]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add bimagemgr configuration.
[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 CDRECORD ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-wx-console     enable build of wxWidgets console disabled
860   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
861   --enable-smartalloc     enable smartalloc debugging support disabled
862   --enable-static-tools   enable static tape tools disabled
863   --enable-static-fd      enable static File daemon disabled
864   --enable-static-sd      enable static Storage daemon disabled
865   --enable-static-dir     enable static Director disabled
866   --enable-static-cons    enable static Console disabled
867   --enable-client-only    build client (File daemon) only disabled
868   --disable-conio            disable conio support enabled
869
870   --disable-readline      disable readline support disable
871
872   --disable-largefile     omit support for large files
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877   --with-gnome-includes   Specify location of GNOME headers
878   --with-gnome-libs       Specify location of GNOME libs
879   --with-gnome            Specify prefix for GNOME files
880  --with-readline=DIR             specify readline library directory
881   --with-tcp-wrappers=DIR        enable tcpwrappers support
882   --with-working-dir=PATH        specify path of Bacula working directory
883   --with-scriptdir=PATH    specify path of Bacula scripts directory
884   --with-dump-email=EMAIL        dump email address
885   --with-job-email=EMAIL         job output email address
886   --with-smtp-host=HOST          SMTP mail host address
887   --with-pid-dir=PATH            specify location of Bacula pid files
888   --with-subsys-dir=PATH         specify location of Bacula subsys file
889   --with-baseport=PORT           specify base port address for daemons
890   --with-dir-password=PASSWORD   specify Director's password
891   --with-fd-password=PASSWORD    specify Client's password
892   --with-sd-password=PASSWORD    specify Storage daemon's password
893   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
894   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
895   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
896   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
897   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
898   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
899   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
900   --with-bimagemgr-dataowner=USER   specify bimagemgr data file owner
901   --with-bimagemgr-datagroup=USER   specify bimagemgr data file group
902   --with-dir-user=USER           specify user for Director daemon
903   --with-dir-group=GROUP                 specify group for Director daemon
904   --with-sd-user=USER            specify user for Storage daemon
905   --with-sd-group=GROUP          specify group for Storage daemon
906   --with-fd-user=USER            specify user for File daemon
907   --with-fd-group=GROUP          specify group for File daemon
908   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
909   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
910                           base install directory, defaults to /usr/local/pgsql
911
912   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
913                           install directory, default is to search through
914                           a number of common places for the MySQL files.
915
916   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
917                           install directory, default is to search through
918                           a number of common places for the MySQL files.
919
920   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
921                           install directory, default is to search through
922                           a number of common places for the SQLite files.
923   --with-x                use the X Window System
924
925 Some influential environment variables:
926   CC          C compiler command
927   CFLAGS      C compiler flags
928   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
929               nonstandard directory <lib dir>
930   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
931               headers in a nonstandard directory <include dir>
932   CXX         C++ compiler command
933   CXXFLAGS    C++ compiler flags
934   CPP         C preprocessor
935
936 Use these variables to override the choices made by `configure' or to help
937 it to find libraries and programs with nonstandard names/locations.
938
939 _ACEOF
940 fi
941
942 if test "$ac_init_help" = "recursive"; then
943   # If there are subdirs, report their specific --help.
944   ac_popdir=`pwd`
945   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
946     test -d $ac_dir || continue
947     ac_builddir=.
948
949 if test "$ac_dir" != .; then
950   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
951   # A "../" for each directory in $ac_dir_suffix.
952   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
953 else
954   ac_dir_suffix= ac_top_builddir=
955 fi
956
957 case $srcdir in
958   .)  # No --srcdir option.  We are building in place.
959     ac_srcdir=.
960     if test -z "$ac_top_builddir"; then
961        ac_top_srcdir=.
962     else
963        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
964     fi ;;
965   [\\/]* | ?:[\\/]* )  # Absolute path.
966     ac_srcdir=$srcdir$ac_dir_suffix;
967     ac_top_srcdir=$srcdir ;;
968   *) # Relative path.
969     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
970     ac_top_srcdir=$ac_top_builddir$srcdir ;;
971 esac
972 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
973 # absolute.
974 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
975 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
976 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
977 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
978
979     cd $ac_dir
980     # Check for guested configure; otherwise get Cygnus style configure.
981     if test -f $ac_srcdir/configure.gnu; then
982       echo
983       $SHELL $ac_srcdir/configure.gnu  --help=recursive
984     elif test -f $ac_srcdir/configure; then
985       echo
986       $SHELL $ac_srcdir/configure  --help=recursive
987     elif test -f $ac_srcdir/configure.ac ||
988            test -f $ac_srcdir/configure.in; then
989       echo
990       $ac_configure --help
991     else
992       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
993     fi
994     cd $ac_popdir
995   done
996 fi
997
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1000   cat <<\_ACEOF
1001
1002 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1003 Free Software Foundation, Inc.
1004 This configure script is free software; the Free Software Foundation
1005 gives unlimited permission to copy, distribute and modify it.
1006 _ACEOF
1007   exit 0
1008 fi
1009 exec 5>config.log
1010 cat >&5 <<_ACEOF
1011 This file contains any messages produced by compilers while
1012 running configure, to aid debugging if configure makes a mistake.
1013
1014 It was created by $as_me, which was
1015 generated by GNU Autoconf 2.57.  Invocation command line was
1016
1017   $ $0 $@
1018
1019 _ACEOF
1020 {
1021 cat <<_ASUNAME
1022 ## --------- ##
1023 ## Platform. ##
1024 ## --------- ##
1025
1026 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031
1032 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1034
1035 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1036 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1037 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1039 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1040 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1041 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1042
1043 _ASUNAME
1044
1045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1046 for as_dir in $PATH
1047 do
1048   IFS=$as_save_IFS
1049   test -z "$as_dir" && as_dir=.
1050   echo "PATH: $as_dir"
1051 done
1052
1053 } >&5
1054
1055 cat >&5 <<_ACEOF
1056
1057
1058 ## ----------- ##
1059 ## Core tests. ##
1060 ## ----------- ##
1061
1062 _ACEOF
1063
1064
1065 # Keep a trace of the command line.
1066 # Strip out --no-create and --no-recursion so they do not pile up.
1067 # Strip out --silent because we don't want to record it for future runs.
1068 # Also quote any args containing shell meta-characters.
1069 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_configure_args=
1071 ac_configure_args0=
1072 ac_configure_args1=
1073 ac_sep=
1074 ac_must_keep_next=false
1075 for ac_pass in 1 2
1076 do
1077   for ac_arg
1078   do
1079     case $ac_arg in
1080     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082     | -silent | --silent | --silen | --sile | --sil)
1083       continue ;;
1084     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086     esac
1087     case $ac_pass in
1088     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089     2)
1090       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091       if test $ac_must_keep_next = true; then
1092         ac_must_keep_next=false # Got value, back to normal.
1093       else
1094         case $ac_arg in
1095           *=* | --config-cache | -C | -disable-* | --disable-* \
1096           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098           | -with-* | --with-* | -without-* | --without-* | --x)
1099             case "$ac_configure_args0 " in
1100               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101             esac
1102             ;;
1103           -* ) ac_must_keep_next=true ;;
1104         esac
1105       fi
1106       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107       # Get rid of the leading space.
1108       ac_sep=" "
1109       ;;
1110     esac
1111   done
1112 done
1113 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115
1116 # When interrupted or exit'd, cleanup temporary files, and complete
1117 # config.log.  We remove comments because anyway the quotes in there
1118 # would cause problems or look ugly.
1119 # WARNING: Be sure not to use single quotes in there, as some shells,
1120 # such as our DU 5.0 friend, will then `close' the trap.
1121 trap 'exit_status=$?
1122   # Save into config.log some information that might help in debugging.
1123   {
1124     echo
1125
1126     cat <<\_ASBOX
1127 ## ---------------- ##
1128 ## Cache variables. ##
1129 ## ---------------- ##
1130 _ASBOX
1131     echo
1132     # The following way of writing the cache mishandles newlines in values,
1133 {
1134   (set) 2>&1 |
1135     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136     *ac_space=\ *)
1137       sed -n \
1138         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1140       ;;
1141     *)
1142       sed -n \
1143         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144       ;;
1145     esac;
1146 }
1147     echo
1148
1149     cat <<\_ASBOX
1150 ## ----------------- ##
1151 ## Output variables. ##
1152 ## ----------------- ##
1153 _ASBOX
1154     echo
1155     for ac_var in $ac_subst_vars
1156     do
1157       eval ac_val=$`echo $ac_var`
1158       echo "$ac_var='"'"'$ac_val'"'"'"
1159     done | sort
1160     echo
1161
1162     if test -n "$ac_subst_files"; then
1163       cat <<\_ASBOX
1164 ## ------------- ##
1165 ## Output files. ##
1166 ## ------------- ##
1167 _ASBOX
1168       echo
1169       for ac_var in $ac_subst_files
1170       do
1171         eval ac_val=$`echo $ac_var`
1172         echo "$ac_var='"'"'$ac_val'"'"'"
1173       done | sort
1174       echo
1175     fi
1176
1177     if test -s confdefs.h; then
1178       cat <<\_ASBOX
1179 ## ----------- ##
1180 ## confdefs.h. ##
1181 ## ----------- ##
1182 _ASBOX
1183       echo
1184       sed "/^$/d" confdefs.h | sort
1185       echo
1186     fi
1187     test "$ac_signal" != 0 &&
1188       echo "$as_me: caught signal $ac_signal"
1189     echo "$as_me: exit $exit_status"
1190   } >&5
1191   rm -f core core.* *.core &&
1192   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193     exit $exit_status
1194      ' 0
1195 for ac_signal in 1 2 13 15; do
1196   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1197 done
1198 ac_signal=0
1199
1200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1201 rm -rf conftest* confdefs.h
1202 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203 echo >confdefs.h
1204
1205 # Predefined preprocessor variables.
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_NAME "$PACKAGE_NAME"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1219 _ACEOF
1220
1221
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_STRING "$PACKAGE_STRING"
1224 _ACEOF
1225
1226
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1229 _ACEOF
1230
1231
1232 # Let the site file select an alternate cache file if it wants to.
1233 # Prefer explicitly selected file to automatically selected ones.
1234 if test -z "$CONFIG_SITE"; then
1235   if test "x$prefix" != xNONE; then
1236     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237   else
1238     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1239   fi
1240 fi
1241 for ac_site_file in $CONFIG_SITE; do
1242   if test -r "$ac_site_file"; then
1243     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244 echo "$as_me: loading site script $ac_site_file" >&6;}
1245     sed 's/^/| /' "$ac_site_file" >&5
1246     . "$ac_site_file"
1247   fi
1248 done
1249
1250 if test -r "$cache_file"; then
1251   # Some versions of bash will fail to source /dev/null (special
1252   # files actually), so we avoid doing that.
1253   if test -f "$cache_file"; then
1254     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255 echo "$as_me: loading cache $cache_file" >&6;}
1256     case $cache_file in
1257       [\\/]* | ?:[\\/]* ) . $cache_file;;
1258       *)                      . ./$cache_file;;
1259     esac
1260   fi
1261 else
1262   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263 echo "$as_me: creating cache $cache_file" >&6;}
1264   >$cache_file
1265 fi
1266
1267 # Check that the precious variables saved in the cache have kept the same
1268 # value.
1269 ac_cache_corrupted=false
1270 for ac_var in `(set) 2>&1 |
1271                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273   eval ac_new_set=\$ac_env_${ac_var}_set
1274   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275   eval ac_new_val="\$ac_env_${ac_var}_value"
1276   case $ac_old_set,$ac_new_set in
1277     set,)
1278       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280       ac_cache_corrupted=: ;;
1281     ,set)
1282       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284       ac_cache_corrupted=: ;;
1285     ,);;
1286     *)
1287       if test "x$ac_old_val" != "x$ac_new_val"; then
1288         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1291 echo "$as_me:   former value:  $ac_old_val" >&2;}
1292         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1293 echo "$as_me:   current value: $ac_new_val" >&2;}
1294         ac_cache_corrupted=:
1295       fi;;
1296   esac
1297   # Pass precious variables to config.status.
1298   if test "$ac_new_set" = set; then
1299     case $ac_new_val in
1300     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302     *) ac_arg=$ac_var=$ac_new_val ;;
1303     esac
1304     case " $ac_configure_args " in
1305       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1306       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1307     esac
1308   fi
1309 done
1310 if $ac_cache_corrupted; then
1311   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315    { (exit 1); exit 1; }; }
1316 fi
1317
1318 ac_ext=c
1319 ac_cpp='$CPP $CPPFLAGS'
1320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342 BUILD_DIR=`pwd`
1343 cd ..
1344 TOP_DIR=`pwd`
1345 cd ${BUILD_DIR}
1346
1347 ac_aux_dir=
1348 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1349   if test -f $ac_dir/install-sh; then
1350     ac_aux_dir=$ac_dir
1351     ac_install_sh="$ac_aux_dir/install-sh -c"
1352     break
1353   elif test -f $ac_dir/install.sh; then
1354     ac_aux_dir=$ac_dir
1355     ac_install_sh="$ac_aux_dir/install.sh -c"
1356     break
1357   elif test -f $ac_dir/shtool; then
1358     ac_aux_dir=$ac_dir
1359     ac_install_sh="$ac_aux_dir/shtool install -c"
1360     break
1361   fi
1362 done
1363 if test -z "$ac_aux_dir"; then
1364   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1365 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1366    { (exit 1); exit 1; }; }
1367 fi
1368 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1369 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1370 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1371
1372           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1373
1374
1375
1376
1377
1378 for ac_prog in true
1379 do
1380   # Extract the first word of "$ac_prog", so it can be a program name with args.
1381 set dummy $ac_prog; ac_word=$2
1382 echo "$as_me:$LINENO: checking for $ac_word" >&5
1383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1384 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1385   echo $ECHO_N "(cached) $ECHO_C" >&6
1386 else
1387   case $TRUEPRG in
1388   [\\/]* | ?:[\\/]*)
1389   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1390   ;;
1391   *)
1392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1393 for as_dir in $PATH
1394 do
1395   IFS=$as_save_IFS
1396   test -z "$as_dir" && as_dir=.
1397   for ac_exec_ext in '' $ac_executable_extensions; do
1398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1399     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1401     break 2
1402   fi
1403 done
1404 done
1405
1406   ;;
1407 esac
1408 fi
1409 TRUEPRG=$ac_cv_path_TRUEPRG
1410
1411 if test -n "$TRUEPRG"; then
1412   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1413 echo "${ECHO_T}$TRUEPRG" >&6
1414 else
1415   echo "$as_me:$LINENO: result: no" >&5
1416 echo "${ECHO_T}no" >&6
1417 fi
1418
1419   test -n "$TRUEPRG" && break
1420 done
1421 test -n "$TRUEPRG" || TRUEPRG=":"
1422
1423 for ac_prog in false
1424 do
1425   # Extract the first word of "$ac_prog", so it can be a program name with args.
1426 set dummy $ac_prog; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1430   echo $ECHO_N "(cached) $ECHO_C" >&6
1431 else
1432   case $FALSEPRG in
1433   [\\/]* | ?:[\\/]*)
1434   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1435   ;;
1436   *)
1437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1438 for as_dir in $PATH
1439 do
1440   IFS=$as_save_IFS
1441   test -z "$as_dir" && as_dir=.
1442   for ac_exec_ext in '' $ac_executable_extensions; do
1443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446     break 2
1447   fi
1448 done
1449 done
1450
1451   ;;
1452 esac
1453 fi
1454 FALSEPRG=$ac_cv_path_FALSEPRG
1455
1456 if test -n "$FALSEPRG"; then
1457   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1458 echo "${ECHO_T}$FALSEPRG" >&6
1459 else
1460   echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1462 fi
1463
1464   test -n "$FALSEPRG" && break
1465 done
1466 test -n "$FALSEPRG" || FALSEPRG=":"
1467
1468
1469 #AC_CANONICAL_HOST
1470
1471 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1472 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1473 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1474 echo "configuring for bacula $VERSION ($DATE)"
1475
1476
1477
1478 ac_ext=c
1479 ac_cpp='$CPP $CPPFLAGS'
1480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1483 if test -n "$ac_tool_prefix"; then
1484   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1485 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1486 echo "$as_me:$LINENO: checking for $ac_word" >&5
1487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488 if test "${ac_cv_prog_CC+set}" = set; then
1489   echo $ECHO_N "(cached) $ECHO_C" >&6
1490 else
1491   if test -n "$CC"; then
1492   ac_cv_prog_CC="$CC" # Let the user override the test.
1493 else
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1496 do
1497   IFS=$as_save_IFS
1498   test -z "$as_dir" && as_dir=.
1499   for ac_exec_ext in '' $ac_executable_extensions; do
1500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1501     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1503     break 2
1504   fi
1505 done
1506 done
1507
1508 fi
1509 fi
1510 CC=$ac_cv_prog_CC
1511 if test -n "$CC"; then
1512   echo "$as_me:$LINENO: result: $CC" >&5
1513 echo "${ECHO_T}$CC" >&6
1514 else
1515   echo "$as_me:$LINENO: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1517 fi
1518
1519 fi
1520 if test -z "$ac_cv_prog_CC"; then
1521   ac_ct_CC=$CC
1522   # Extract the first word of "gcc", so it can be a program name with args.
1523 set dummy gcc; ac_word=$2
1524 echo "$as_me:$LINENO: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1527   echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529   if test -n "$ac_ct_CC"; then
1530   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1531 else
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1534 do
1535   IFS=$as_save_IFS
1536   test -z "$as_dir" && as_dir=.
1537   for ac_exec_ext in '' $ac_executable_extensions; do
1538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539     ac_cv_prog_ac_ct_CC="gcc"
1540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541     break 2
1542   fi
1543 done
1544 done
1545
1546 fi
1547 fi
1548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1549 if test -n "$ac_ct_CC"; then
1550   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1551 echo "${ECHO_T}$ac_ct_CC" >&6
1552 else
1553   echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1555 fi
1556
1557   CC=$ac_ct_CC
1558 else
1559   CC="$ac_cv_prog_CC"
1560 fi
1561
1562 if test -z "$CC"; then
1563   if test -n "$ac_tool_prefix"; then
1564   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1565 set dummy ${ac_tool_prefix}cc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_CC+set}" = set; then
1569   echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571   if test -n "$CC"; then
1572   ac_cv_prog_CC="$CC" # Let the user override the test.
1573 else
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1576 do
1577   IFS=$as_save_IFS
1578   test -z "$as_dir" && as_dir=.
1579   for ac_exec_ext in '' $ac_executable_extensions; do
1580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581     ac_cv_prog_CC="${ac_tool_prefix}cc"
1582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583     break 2
1584   fi
1585 done
1586 done
1587
1588 fi
1589 fi
1590 CC=$ac_cv_prog_CC
1591 if test -n "$CC"; then
1592   echo "$as_me:$LINENO: result: $CC" >&5
1593 echo "${ECHO_T}$CC" >&6
1594 else
1595   echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1597 fi
1598
1599 fi
1600 if test -z "$ac_cv_prog_CC"; then
1601   ac_ct_CC=$CC
1602   # Extract the first word of "cc", so it can be a program name with args.
1603 set dummy cc; ac_word=$2
1604 echo "$as_me:$LINENO: checking for $ac_word" >&5
1605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1607   echo $ECHO_N "(cached) $ECHO_C" >&6
1608 else
1609   if test -n "$ac_ct_CC"; then
1610   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1611 else
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1614 do
1615   IFS=$as_save_IFS
1616   test -z "$as_dir" && as_dir=.
1617   for ac_exec_ext in '' $ac_executable_extensions; do
1618   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619     ac_cv_prog_ac_ct_CC="cc"
1620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1621     break 2
1622   fi
1623 done
1624 done
1625
1626 fi
1627 fi
1628 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1629 if test -n "$ac_ct_CC"; then
1630   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1631 echo "${ECHO_T}$ac_ct_CC" >&6
1632 else
1633   echo "$as_me:$LINENO: result: no" >&5
1634 echo "${ECHO_T}no" >&6
1635 fi
1636
1637   CC=$ac_ct_CC
1638 else
1639   CC="$ac_cv_prog_CC"
1640 fi
1641
1642 fi
1643 if test -z "$CC"; then
1644   # Extract the first word of "cc", so it can be a program name with args.
1645 set dummy cc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_CC+set}" = set; then
1649   echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651   if test -n "$CC"; then
1652   ac_cv_prog_CC="$CC" # Let the user override the test.
1653 else
1654   ac_prog_rejected=no
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   for ac_exec_ext in '' $ac_executable_extensions; do
1661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1663        ac_prog_rejected=yes
1664        continue
1665      fi
1666     ac_cv_prog_CC="cc"
1667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668     break 2
1669   fi
1670 done
1671 done
1672
1673 if test $ac_prog_rejected = yes; then
1674   # We found a bogon in the path, so make sure we never use it.
1675   set dummy $ac_cv_prog_CC
1676   shift
1677   if test $# != 0; then
1678     # We chose a different compiler from the bogus one.
1679     # However, it has the same basename, so the bogon will be chosen
1680     # first if we set CC to just the basename; use the full file name.
1681     shift
1682     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1683   fi
1684 fi
1685 fi
1686 fi
1687 CC=$ac_cv_prog_CC
1688 if test -n "$CC"; then
1689   echo "$as_me:$LINENO: result: $CC" >&5
1690 echo "${ECHO_T}$CC" >&6
1691 else
1692   echo "$as_me:$LINENO: result: no" >&5
1693 echo "${ECHO_T}no" >&6
1694 fi
1695
1696 fi
1697 if test -z "$CC"; then
1698   if test -n "$ac_tool_prefix"; then
1699   for ac_prog in cl
1700   do
1701     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1703 echo "$as_me:$LINENO: checking for $ac_word" >&5
1704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705 if test "${ac_cv_prog_CC+set}" = set; then
1706   echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708   if test -n "$CC"; then
1709   ac_cv_prog_CC="$CC" # Let the user override the test.
1710 else
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   for ac_exec_ext in '' $ac_executable_extensions; do
1717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720     break 2
1721   fi
1722 done
1723 done
1724
1725 fi
1726 fi
1727 CC=$ac_cv_prog_CC
1728 if test -n "$CC"; then
1729   echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1731 else
1732   echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1734 fi
1735
1736     test -n "$CC" && break
1737   done
1738 fi
1739 if test -z "$CC"; then
1740   ac_ct_CC=$CC
1741   for ac_prog in cl
1742 do
1743   # Extract the first word of "$ac_prog", so it can be a program name with args.
1744 set dummy $ac_prog; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1748   echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750   if test -n "$ac_ct_CC"; then
1751   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1752 else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1755 do
1756   IFS=$as_save_IFS
1757   test -z "$as_dir" && as_dir=.
1758   for ac_exec_ext in '' $ac_executable_extensions; do
1759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760     ac_cv_prog_ac_ct_CC="$ac_prog"
1761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762     break 2
1763   fi
1764 done
1765 done
1766
1767 fi
1768 fi
1769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1770 if test -n "$ac_ct_CC"; then
1771   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1772 echo "${ECHO_T}$ac_ct_CC" >&6
1773 else
1774   echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 fi
1777
1778   test -n "$ac_ct_CC" && break
1779 done
1780
1781   CC=$ac_ct_CC
1782 fi
1783
1784 fi
1785
1786
1787 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1788 See \`config.log' for more details." >&5
1789 echo "$as_me: error: no acceptable C compiler found in \$PATH
1790 See \`config.log' for more details." >&2;}
1791    { (exit 1); exit 1; }; }
1792
1793 # Provide some information about the compiler.
1794 echo "$as_me:$LINENO:" \
1795      "checking for C compiler version" >&5
1796 ac_compiler=`set X $ac_compile; echo $2`
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1798   (eval $ac_compiler --version </dev/null >&5) 2>&5
1799   ac_status=$?
1800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801   (exit $ac_status); }
1802 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1803   (eval $ac_compiler -v </dev/null >&5) 2>&5
1804   ac_status=$?
1805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806   (exit $ac_status); }
1807 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1808   (eval $ac_compiler -V </dev/null >&5) 2>&5
1809   ac_status=$?
1810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1811   (exit $ac_status); }
1812
1813 cat >conftest.$ac_ext <<_ACEOF
1814 #line $LINENO "configure"
1815 /* confdefs.h.  */
1816 _ACEOF
1817 cat confdefs.h >>conftest.$ac_ext
1818 cat >>conftest.$ac_ext <<_ACEOF
1819 /* end confdefs.h.  */
1820
1821 int
1822 main ()
1823 {
1824
1825   ;
1826   return 0;
1827 }
1828 _ACEOF
1829 ac_clean_files_save=$ac_clean_files
1830 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1831 # Try to create an executable without -o first, disregard a.out.
1832 # It will help us diagnose broken compilers, and finding out an intuition
1833 # of exeext.
1834 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1835 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1836 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1837 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1838   (eval $ac_link_default) 2>&5
1839   ac_status=$?
1840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841   (exit $ac_status); }; then
1842   # Find the output, starting from the most likely.  This scheme is
1843 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1844 # resort.
1845
1846 # Be careful to initialize this variable, since it used to be cached.
1847 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1848 ac_cv_exeext=
1849 # b.out is created by i960 compilers.
1850 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1851 do
1852   test -f "$ac_file" || continue
1853   case $ac_file in
1854     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1855         ;;
1856     conftest.$ac_ext )
1857         # This is the source file.
1858         ;;
1859     [ab].out )
1860         # We found the default executable, but exeext='' is most
1861         # certainly right.
1862         break;;
1863     *.* )
1864         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1865         # FIXME: I believe we export ac_cv_exeext for Libtool,
1866         # but it would be cool to find out if it's true.  Does anybody
1867         # maintain Libtool? --akim.
1868         export ac_cv_exeext
1869         break;;
1870     * )
1871         break;;
1872   esac
1873 done
1874 else
1875   echo "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1879 See \`config.log' for more details." >&5
1880 echo "$as_me: error: C compiler cannot create executables
1881 See \`config.log' for more details." >&2;}
1882    { (exit 77); exit 77; }; }
1883 fi
1884
1885 ac_exeext=$ac_cv_exeext
1886 echo "$as_me:$LINENO: result: $ac_file" >&5
1887 echo "${ECHO_T}$ac_file" >&6
1888
1889 # Check the compiler produces executables we can run.  If not, either
1890 # the compiler is broken, or we cross compile.
1891 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1892 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1893 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1894 # If not cross compiling, check that we can run a simple program.
1895 if test "$cross_compiling" != yes; then
1896   if { ac_try='./$ac_file'
1897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1898   (eval $ac_try) 2>&5
1899   ac_status=$?
1900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901   (exit $ac_status); }; }; then
1902     cross_compiling=no
1903   else
1904     if test "$cross_compiling" = maybe; then
1905         cross_compiling=yes
1906     else
1907         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1908 If you meant to cross compile, use \`--host'.
1909 See \`config.log' for more details." >&5
1910 echo "$as_me: error: cannot run C compiled programs.
1911 If you meant to cross compile, use \`--host'.
1912 See \`config.log' for more details." >&2;}
1913    { (exit 1); exit 1; }; }
1914     fi
1915   fi
1916 fi
1917 echo "$as_me:$LINENO: result: yes" >&5
1918 echo "${ECHO_T}yes" >&6
1919
1920 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1921 ac_clean_files=$ac_clean_files_save
1922 # Check the compiler produces executables we can run.  If not, either
1923 # the compiler is broken, or we cross compile.
1924 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1925 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1926 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1927 echo "${ECHO_T}$cross_compiling" >&6
1928
1929 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1930 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1932   (eval $ac_link) 2>&5
1933   ac_status=$?
1934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935   (exit $ac_status); }; then
1936   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1937 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1938 # work properly (i.e., refer to `conftest.exe'), while it won't with
1939 # `rm'.
1940 for ac_file in conftest.exe conftest conftest.*; do
1941   test -f "$ac_file" || continue
1942   case $ac_file in
1943     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1944     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1945           export ac_cv_exeext
1946           break;;
1947     * ) break;;
1948   esac
1949 done
1950 else
1951   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1952 See \`config.log' for more details." >&5
1953 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1954 See \`config.log' for more details." >&2;}
1955    { (exit 1); exit 1; }; }
1956 fi
1957
1958 rm -f conftest$ac_cv_exeext
1959 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1960 echo "${ECHO_T}$ac_cv_exeext" >&6
1961
1962 rm -f conftest.$ac_ext
1963 EXEEXT=$ac_cv_exeext
1964 ac_exeext=$EXEEXT
1965 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1966 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1967 if test "${ac_cv_objext+set}" = set; then
1968   echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970   cat >conftest.$ac_ext <<_ACEOF
1971 #line $LINENO "configure"
1972 /* confdefs.h.  */
1973 _ACEOF
1974 cat confdefs.h >>conftest.$ac_ext
1975 cat >>conftest.$ac_ext <<_ACEOF
1976 /* end confdefs.h.  */
1977
1978 int
1979 main ()
1980 {
1981
1982   ;
1983   return 0;
1984 }
1985 _ACEOF
1986 rm -f conftest.o conftest.obj
1987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1988   (eval $ac_compile) 2>&5
1989   ac_status=$?
1990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991   (exit $ac_status); }; then
1992   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1993   case $ac_file in
1994     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1995     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1996        break;;
1997   esac
1998 done
1999 else
2000   echo "$as_me: failed program was:" >&5
2001 sed 's/^/| /' conftest.$ac_ext >&5
2002
2003 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2004 See \`config.log' for more details." >&5
2005 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2006 See \`config.log' for more details." >&2;}
2007    { (exit 1); exit 1; }; }
2008 fi
2009
2010 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2011 fi
2012 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2013 echo "${ECHO_T}$ac_cv_objext" >&6
2014 OBJEXT=$ac_cv_objext
2015 ac_objext=$OBJEXT
2016 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2017 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2018 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   cat >conftest.$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2023 /* confdefs.h.  */
2024 _ACEOF
2025 cat confdefs.h >>conftest.$ac_ext
2026 cat >>conftest.$ac_ext <<_ACEOF
2027 /* end confdefs.h.  */
2028
2029 int
2030 main ()
2031 {
2032 #ifndef __GNUC__
2033        choke me
2034 #endif
2035
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042   (eval $ac_compile) 2>&5
2043   ac_status=$?
2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045   (exit $ac_status); } &&
2046          { ac_try='test -s conftest.$ac_objext'
2047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048   (eval $ac_try) 2>&5
2049   ac_status=$?
2050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051   (exit $ac_status); }; }; then
2052   ac_compiler_gnu=yes
2053 else
2054   echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2056
2057 ac_compiler_gnu=no
2058 fi
2059 rm -f conftest.$ac_objext conftest.$ac_ext
2060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2061
2062 fi
2063 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2064 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2065 GCC=`test $ac_compiler_gnu = yes && echo yes`
2066 ac_test_CFLAGS=${CFLAGS+set}
2067 ac_save_CFLAGS=$CFLAGS
2068 CFLAGS="-g"
2069 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2070 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2071 if test "${ac_cv_prog_cc_g+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   cat >conftest.$ac_ext <<_ACEOF
2075 #line $LINENO "configure"
2076 /* confdefs.h.  */
2077 _ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h.  */
2081
2082 int
2083 main ()
2084 {
2085
2086   ;
2087   return 0;
2088 }
2089 _ACEOF
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092   (eval $ac_compile) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); } &&
2096          { ac_try='test -s conftest.$ac_objext'
2097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098   (eval $ac_try) 2>&5
2099   ac_status=$?
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); }; }; then
2102   ac_cv_prog_cc_g=yes
2103 else
2104   echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2106
2107 ac_cv_prog_cc_g=no
2108 fi
2109 rm -f conftest.$ac_objext conftest.$ac_ext
2110 fi
2111 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2112 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2113 if test "$ac_test_CFLAGS" = set; then
2114   CFLAGS=$ac_save_CFLAGS
2115 elif test $ac_cv_prog_cc_g = yes; then
2116   if test "$GCC" = yes; then
2117     CFLAGS="-g -O2"
2118   else
2119     CFLAGS="-g"
2120   fi
2121 else
2122   if test "$GCC" = yes; then
2123     CFLAGS="-O2"
2124   else
2125     CFLAGS=
2126   fi
2127 fi
2128 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2129 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2130 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   ac_cv_prog_cc_stdc=no
2134 ac_save_CC=$CC
2135 cat >conftest.$ac_ext <<_ACEOF
2136 #line $LINENO "configure"
2137 /* confdefs.h.  */
2138 _ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h.  */
2142 #include <stdarg.h>
2143 #include <stdio.h>
2144 #include <sys/types.h>
2145 #include <sys/stat.h>
2146 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2147 struct buf { int x; };
2148 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2149 static char *e (p, i)
2150      char **p;
2151      int i;
2152 {
2153   return p[i];
2154 }
2155 static char *f (char * (*g) (char **, int), char **p, ...)
2156 {
2157   char *s;
2158   va_list v;
2159   va_start (v,p);
2160   s = g (p, va_arg (v,int));
2161   va_end (v);
2162   return s;
2163 }
2164 int test (int i, double x);
2165 struct s1 {int (*f) (int a);};
2166 struct s2 {int (*f) (double a);};
2167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2168 int argc;
2169 char **argv;
2170 int
2171 main ()
2172 {
2173 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 # Don't try gcc -ansi; that turns off useful extensions and
2179 # breaks some systems' header files.
2180 # AIX                   -qlanglvl=ansi
2181 # Ultrix and OSF/1      -std1
2182 # HP-UX 10.20 and later -Ae
2183 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2184 # SVR4                  -Xc -D__EXTENSIONS__
2185 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2186 do
2187   CC="$ac_save_CC $ac_arg"
2188   rm -f conftest.$ac_objext
2189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190   (eval $ac_compile) 2>&5
2191   ac_status=$?
2192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193   (exit $ac_status); } &&
2194          { ac_try='test -s conftest.$ac_objext'
2195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2196   (eval $ac_try) 2>&5
2197   ac_status=$?
2198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); }; }; then
2200   ac_cv_prog_cc_stdc=$ac_arg
2201 break
2202 else
2203   echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 fi
2207 rm -f conftest.$ac_objext
2208 done
2209 rm -f conftest.$ac_ext conftest.$ac_objext
2210 CC=$ac_save_CC
2211
2212 fi
2213
2214 case "x$ac_cv_prog_cc_stdc" in
2215   x|xno)
2216     echo "$as_me:$LINENO: result: none needed" >&5
2217 echo "${ECHO_T}none needed" >&6 ;;
2218   *)
2219     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2220 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2221     CC="$CC $ac_cv_prog_cc_stdc" ;;
2222 esac
2223
2224 # Some people use a C++ compiler to compile C.  Since we use `exit',
2225 # in C++ we need to declare it.  In case someone uses the same compiler
2226 # for both compiling C and C++ we need to have the C++ compiler decide
2227 # the declaration of exit, since it's the most demanding environment.
2228 cat >conftest.$ac_ext <<_ACEOF
2229 #ifndef __cplusplus
2230   choke me
2231 #endif
2232 _ACEOF
2233 rm -f conftest.$ac_objext
2234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235   (eval $ac_compile) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); } &&
2239          { ac_try='test -s conftest.$ac_objext'
2240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2241   (eval $ac_try) 2>&5
2242   ac_status=$?
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); }; }; then
2245   for ac_declaration in \
2246    ''\
2247    '#include <stdlib.h>' \
2248    'extern "C" void std::exit (int) throw (); using std::exit;' \
2249    'extern "C" void std::exit (int); using std::exit;' \
2250    'extern "C" void exit (int) throw ();' \
2251    'extern "C" void exit (int);' \
2252    'void exit (int);'
2253 do
2254   cat >conftest.$ac_ext <<_ACEOF
2255 #line $LINENO "configure"
2256 /* confdefs.h.  */
2257 _ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h.  */
2261 #include <stdlib.h>
2262 $ac_declaration
2263 int
2264 main ()
2265 {
2266 exit (42);
2267   ;
2268   return 0;
2269 }
2270 _ACEOF
2271 rm -f conftest.$ac_objext
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273   (eval $ac_compile) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); } &&
2277          { ac_try='test -s conftest.$ac_objext'
2278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279   (eval $ac_try) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }; }; then
2283   :
2284 else
2285   echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287
2288 continue
2289 fi
2290 rm -f conftest.$ac_objext conftest.$ac_ext
2291   cat >conftest.$ac_ext <<_ACEOF
2292 #line $LINENO "configure"
2293 /* confdefs.h.  */
2294 _ACEOF
2295 cat confdefs.h >>conftest.$ac_ext
2296 cat >>conftest.$ac_ext <<_ACEOF
2297 /* end confdefs.h.  */
2298 $ac_declaration
2299 int
2300 main ()
2301 {
2302 exit (42);
2303   ;
2304   return 0;
2305 }
2306 _ACEOF
2307 rm -f conftest.$ac_objext
2308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309   (eval $ac_compile) 2>&5
2310   ac_status=$?
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); } &&
2313          { ac_try='test -s conftest.$ac_objext'
2314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315   (eval $ac_try) 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }; }; then
2319   break
2320 else
2321   echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2323
2324 fi
2325 rm -f conftest.$ac_objext conftest.$ac_ext
2326 done
2327 rm -f conftest*
2328 if test -n "$ac_declaration"; then
2329   echo '#ifdef __cplusplus' >>confdefs.h
2330   echo $ac_declaration      >>confdefs.h
2331   echo '#endif'             >>confdefs.h
2332 fi
2333
2334 else
2335   echo "$as_me: failed program was:" >&5
2336 sed 's/^/| /' conftest.$ac_ext >&5
2337
2338 fi
2339 rm -f conftest.$ac_objext conftest.$ac_ext
2340 ac_ext=c
2341 ac_cpp='$CPP $CPPFLAGS'
2342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345
2346 ac_ext=cc
2347 ac_cpp='$CXXCPP $CPPFLAGS'
2348 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2351 if test -n "$ac_tool_prefix"; then
2352   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2353   do
2354     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2356 echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2358 if test "${ac_cv_prog_CXX+set}" = set; then
2359   echo $ECHO_N "(cached) $ECHO_C" >&6
2360 else
2361   if test -n "$CXX"; then
2362   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2363 else
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2365 for as_dir in $PATH
2366 do
2367   IFS=$as_save_IFS
2368   test -z "$as_dir" && as_dir=.
2369   for ac_exec_ext in '' $ac_executable_extensions; do
2370   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2371     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373     break 2
2374   fi
2375 done
2376 done
2377
2378 fi
2379 fi
2380 CXX=$ac_cv_prog_CXX
2381 if test -n "$CXX"; then
2382   echo "$as_me:$LINENO: result: $CXX" >&5
2383 echo "${ECHO_T}$CXX" >&6
2384 else
2385   echo "$as_me:$LINENO: result: no" >&5
2386 echo "${ECHO_T}no" >&6
2387 fi
2388
2389     test -n "$CXX" && break
2390   done
2391 fi
2392 if test -z "$CXX"; then
2393   ac_ct_CXX=$CXX
2394   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2395 do
2396   # Extract the first word of "$ac_prog", so it can be a program name with args.
2397 set dummy $ac_prog; ac_word=$2
2398 echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   if test -n "$ac_ct_CXX"; then
2404   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409   IFS=$as_save_IFS
2410   test -z "$as_dir" && as_dir=.
2411   for ac_exec_ext in '' $ac_executable_extensions; do
2412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413     ac_cv_prog_ac_ct_CXX="$ac_prog"
2414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415     break 2
2416   fi
2417 done
2418 done
2419
2420 fi
2421 fi
2422 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2423 if test -n "$ac_ct_CXX"; then
2424   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2425 echo "${ECHO_T}$ac_ct_CXX" >&6
2426 else
2427   echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2429 fi
2430
2431   test -n "$ac_ct_CXX" && break
2432 done
2433 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2434
2435   CXX=$ac_ct_CXX
2436 fi
2437
2438
2439 # Provide some information about the compiler.
2440 echo "$as_me:$LINENO:" \
2441      "checking for C++ compiler version" >&5
2442 ac_compiler=`set X $ac_compile; echo $2`
2443 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2444   (eval $ac_compiler --version </dev/null >&5) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }
2448 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2449   (eval $ac_compiler -v </dev/null >&5) 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }
2453 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2454   (eval $ac_compiler -V </dev/null >&5) 2>&5
2455   ac_status=$?
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); }
2458
2459 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2460 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2461 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   cat >conftest.$ac_ext <<_ACEOF
2465 #line $LINENO "configure"
2466 /* confdefs.h.  */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h.  */
2471
2472 int
2473 main ()
2474 {
2475 #ifndef __GNUC__
2476        choke me
2477 #endif
2478
2479   ;
2480   return 0;
2481 }
2482 _ACEOF
2483 rm -f conftest.$ac_objext
2484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2485   (eval $ac_compile) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); } &&
2489          { ac_try='test -s conftest.$ac_objext'
2490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491   (eval $ac_try) 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; }; then
2495   ac_compiler_gnu=yes
2496 else
2497   echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 ac_compiler_gnu=no
2501 fi
2502 rm -f conftest.$ac_objext conftest.$ac_ext
2503 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2504
2505 fi
2506 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2507 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2508 GXX=`test $ac_compiler_gnu = yes && echo yes`
2509 ac_test_CXXFLAGS=${CXXFLAGS+set}
2510 ac_save_CXXFLAGS=$CXXFLAGS
2511 CXXFLAGS="-g"
2512 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2513 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2514 if test "${ac_cv_prog_cxx_g+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   cat >conftest.$ac_ext <<_ACEOF
2518 #line $LINENO "configure"
2519 /* confdefs.h.  */
2520 _ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h.  */
2524
2525 int
2526 main ()
2527 {
2528
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533 rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535   (eval $ac_compile) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); } &&
2539          { ac_try='test -s conftest.$ac_objext'
2540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541   (eval $ac_try) 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }; }; then
2545   ac_cv_prog_cxx_g=yes
2546 else
2547   echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550 ac_cv_prog_cxx_g=no
2551 fi
2552 rm -f conftest.$ac_objext conftest.$ac_ext
2553 fi
2554 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2555 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2556 if test "$ac_test_CXXFLAGS" = set; then
2557   CXXFLAGS=$ac_save_CXXFLAGS
2558 elif test $ac_cv_prog_cxx_g = yes; then
2559   if test "$GXX" = yes; then
2560     CXXFLAGS="-g -O2"
2561   else
2562     CXXFLAGS="-g"
2563   fi
2564 else
2565   if test "$GXX" = yes; then
2566     CXXFLAGS="-O2"
2567   else
2568     CXXFLAGS=
2569   fi
2570 fi
2571 for ac_declaration in \
2572    ''\
2573    '#include <stdlib.h>' \
2574    'extern "C" void std::exit (int) throw (); using std::exit;' \
2575    'extern "C" void std::exit (int); using std::exit;' \
2576    'extern "C" void exit (int) throw ();' \
2577    'extern "C" void exit (int);' \
2578    'void exit (int);'
2579 do
2580   cat >conftest.$ac_ext <<_ACEOF
2581 #line $LINENO "configure"
2582 /* confdefs.h.  */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h.  */
2587 #include <stdlib.h>
2588 $ac_declaration
2589 int
2590 main ()
2591 {
2592 exit (42);
2593   ;
2594   return 0;
2595 }
2596 _ACEOF
2597 rm -f conftest.$ac_objext
2598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599   (eval $ac_compile) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); } &&
2603          { ac_try='test -s conftest.$ac_objext'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; }; then
2609   :
2610 else
2611   echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 continue
2615 fi
2616 rm -f conftest.$ac_objext conftest.$ac_ext
2617   cat >conftest.$ac_ext <<_ACEOF
2618 #line $LINENO "configure"
2619 /* confdefs.h.  */
2620 _ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h.  */
2624 $ac_declaration
2625 int
2626 main ()
2627 {
2628 exit (42);
2629   ;
2630   return 0;
2631 }
2632 _ACEOF
2633 rm -f conftest.$ac_objext
2634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635   (eval $ac_compile) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); } &&
2639          { ac_try='test -s conftest.$ac_objext'
2640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641   (eval $ac_try) 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); }; }; then
2645   break
2646 else
2647   echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650 fi
2651 rm -f conftest.$ac_objext conftest.$ac_ext
2652 done
2653 rm -f conftest*
2654 if test -n "$ac_declaration"; then
2655   echo '#ifdef __cplusplus' >>confdefs.h
2656   echo $ac_declaration      >>confdefs.h
2657   echo '#endif'             >>confdefs.h
2658 fi
2659
2660 ac_ext=c
2661 ac_cpp='$CPP $CPPFLAGS'
2662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2665
2666 if test "x$CC" != xcc; then
2667   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2668 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2669 else
2670   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2671 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2672 fi
2673 set dummy $CC; ac_cc=`echo $2 |
2674                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2675 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678   cat >conftest.$ac_ext <<_ACEOF
2679 #line $LINENO "configure"
2680 /* confdefs.h.  */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h.  */
2685
2686 int
2687 main ()
2688 {
2689
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 # Make sure it works both with $CC and with simple cc.
2695 # We do the test twice because some compilers refuse to overwrite an
2696 # existing .o file with -o, though they will create one.
2697 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2698 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699   (eval $ac_try) 2>&5
2700   ac_status=$?
2701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702   (exit $ac_status); } &&
2703    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); };
2708 then
2709   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2710   if test "x$CC" != xcc; then
2711     # Test first that cc exists at all.
2712     if { ac_try='cc -c conftest.$ac_ext >&5'
2713   { (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); }; }; then
2718       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2719       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720   (eval $ac_try) 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); } &&
2724          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725   (eval $ac_try) 2>&5
2726   ac_status=$?
2727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728   (exit $ac_status); };
2729       then
2730         # cc works too.
2731         :
2732       else
2733         # cc exists but doesn't like -o.
2734         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2735       fi
2736     fi
2737   fi
2738 else
2739   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2740 fi
2741 rm -f conftest*
2742
2743 fi
2744 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2745   echo "$as_me:$LINENO: result: yes" >&5
2746 echo "${ECHO_T}yes" >&6
2747 else
2748   echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6
2750
2751 cat >>confdefs.h <<\_ACEOF
2752 #define NO_MINUS_C_MINUS_O 1
2753 _ACEOF
2754
2755 fi
2756
2757 ac_ext=c
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2763 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2764 # On Suns, sometimes $CPP names a directory.
2765 if test -n "$CPP" && test -d "$CPP"; then
2766   CPP=
2767 fi
2768 if test -z "$CPP"; then
2769   if test "${ac_cv_prog_CPP+set}" = set; then
2770   echo $ECHO_N "(cached) $ECHO_C" >&6
2771 else
2772       # Double quotes because CPP needs to be expanded
2773     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2774     do
2775       ac_preproc_ok=false
2776 for ac_c_preproc_warn_flag in '' yes
2777 do
2778   # Use a header file that comes with gcc, so configuring glibc
2779   # with a fresh cross-compiler works.
2780   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2781   # <limits.h> exists even on freestanding compilers.
2782   # On the NeXT, cc -E runs the code through the compiler's parser,
2783   # not just through cpp. "Syntax error" is here to catch this case.
2784   cat >conftest.$ac_ext <<_ACEOF
2785 #line $LINENO "configure"
2786 /* confdefs.h.  */
2787 _ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h.  */
2791 #ifdef __STDC__
2792 # include <limits.h>
2793 #else
2794 # include <assert.h>
2795 #endif
2796                      Syntax error
2797 _ACEOF
2798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2800   ac_status=$?
2801   grep -v '^ *+' conftest.er1 >conftest.err
2802   rm -f conftest.er1
2803   cat conftest.err >&5
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); } >/dev/null; then
2806   if test -s conftest.err; then
2807     ac_cpp_err=$ac_c_preproc_warn_flag
2808   else
2809     ac_cpp_err=
2810   fi
2811 else
2812   ac_cpp_err=yes
2813 fi
2814 if test -z "$ac_cpp_err"; then
2815   :
2816 else
2817   echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820   # Broken: fails on valid input.
2821 continue
2822 fi
2823 rm -f conftest.err conftest.$ac_ext
2824
2825   # OK, works on sane cases.  Now check whether non-existent headers
2826   # can be detected and how.
2827   cat >conftest.$ac_ext <<_ACEOF
2828 #line $LINENO "configure"
2829 /* confdefs.h.  */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h.  */
2834 #include <ac_nonexistent.h>
2835 _ACEOF
2836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2838   ac_status=$?
2839   grep -v '^ *+' conftest.er1 >conftest.err
2840   rm -f conftest.er1
2841   cat conftest.err >&5
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } >/dev/null; then
2844   if test -s conftest.err; then
2845     ac_cpp_err=$ac_c_preproc_warn_flag
2846   else
2847     ac_cpp_err=
2848   fi
2849 else
2850   ac_cpp_err=yes
2851 fi
2852 if test -z "$ac_cpp_err"; then
2853   # Broken: success on invalid input.
2854 continue
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859   # Passes both tests.
2860 ac_preproc_ok=:
2861 break
2862 fi
2863 rm -f conftest.err conftest.$ac_ext
2864
2865 done
2866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2867 rm -f conftest.err conftest.$ac_ext
2868 if $ac_preproc_ok; then
2869   break
2870 fi
2871
2872     done
2873     ac_cv_prog_CPP=$CPP
2874
2875 fi
2876   CPP=$ac_cv_prog_CPP
2877 else
2878   ac_cv_prog_CPP=$CPP
2879 fi
2880 echo "$as_me:$LINENO: result: $CPP" >&5
2881 echo "${ECHO_T}$CPP" >&6
2882 ac_preproc_ok=false
2883 for ac_c_preproc_warn_flag in '' yes
2884 do
2885   # Use a header file that comes with gcc, so configuring glibc
2886   # with a fresh cross-compiler works.
2887   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2888   # <limits.h> exists even on freestanding compilers.
2889   # On the NeXT, cc -E runs the code through the compiler's parser,
2890   # not just through cpp. "Syntax error" is here to catch this case.
2891   cat >conftest.$ac_ext <<_ACEOF
2892 #line $LINENO "configure"
2893 /* confdefs.h.  */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h.  */
2898 #ifdef __STDC__
2899 # include <limits.h>
2900 #else
2901 # include <assert.h>
2902 #endif
2903                      Syntax error
2904 _ACEOF
2905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2907   ac_status=$?
2908   grep -v '^ *+' conftest.er1 >conftest.err
2909   rm -f conftest.er1
2910   cat conftest.err >&5
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); } >/dev/null; then
2913   if test -s conftest.err; then
2914     ac_cpp_err=$ac_c_preproc_warn_flag
2915   else
2916     ac_cpp_err=
2917   fi
2918 else
2919   ac_cpp_err=yes
2920 fi
2921 if test -z "$ac_cpp_err"; then
2922   :
2923 else
2924   echo "$as_me: failed program was:" >&5
2925 sed 's/^/| /' conftest.$ac_ext >&5
2926
2927   # Broken: fails on valid input.
2928 continue
2929 fi
2930 rm -f conftest.err conftest.$ac_ext
2931
2932   # OK, works on sane cases.  Now check whether non-existent headers
2933   # can be detected and how.
2934   cat >conftest.$ac_ext <<_ACEOF
2935 #line $LINENO "configure"
2936 /* confdefs.h.  */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h.  */
2941 #include <ac_nonexistent.h>
2942 _ACEOF
2943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2945   ac_status=$?
2946   grep -v '^ *+' conftest.er1 >conftest.err
2947   rm -f conftest.er1
2948   cat conftest.err >&5
2949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950   (exit $ac_status); } >/dev/null; then
2951   if test -s conftest.err; then
2952     ac_cpp_err=$ac_c_preproc_warn_flag
2953   else
2954     ac_cpp_err=
2955   fi
2956 else
2957   ac_cpp_err=yes
2958 fi
2959 if test -z "$ac_cpp_err"; then
2960   # Broken: success on invalid input.
2961 continue
2962 else
2963   echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966   # Passes both tests.
2967 ac_preproc_ok=:
2968 break
2969 fi
2970 rm -f conftest.err conftest.$ac_ext
2971
2972 done
2973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2974 rm -f conftest.err conftest.$ac_ext
2975 if $ac_preproc_ok; then
2976   :
2977 else
2978   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2979 See \`config.log' for more details." >&5
2980 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2981 See \`config.log' for more details." >&2;}
2982    { (exit 1); exit 1; }; }
2983 fi
2984
2985 ac_ext=c
2986 ac_cpp='$CPP $CPPFLAGS'
2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990
2991
2992 echo "$as_me:$LINENO: checking for egrep" >&5
2993 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2994 if test "${ac_cv_prog_egrep+set}" = set; then
2995   echo $ECHO_N "(cached) $ECHO_C" >&6
2996 else
2997   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2998     then ac_cv_prog_egrep='grep -E'
2999     else ac_cv_prog_egrep='egrep'
3000     fi
3001 fi
3002 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3003 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3004  EGREP=$ac_cv_prog_egrep
3005
3006
3007 if test $ac_cv_c_compiler_gnu = yes; then
3008     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3009 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3010 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3011   echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013     ac_pattern="Autoconf.*'x'"
3014   cat >conftest.$ac_ext <<_ACEOF
3015 #line $LINENO "configure"
3016 /* confdefs.h.  */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h.  */
3021 #include <sgtty.h>
3022 Autoconf TIOCGETP
3023 _ACEOF
3024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3025   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3026   ac_cv_prog_gcc_traditional=yes
3027 else
3028   ac_cv_prog_gcc_traditional=no
3029 fi
3030 rm -f conftest*
3031
3032
3033   if test $ac_cv_prog_gcc_traditional = no; then
3034     cat >conftest.$ac_ext <<_ACEOF
3035 #line $LINENO "configure"
3036 /* confdefs.h.  */
3037 _ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h.  */
3041 #include <termio.h>
3042 Autoconf TCGETA
3043 _ACEOF
3044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3045   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3046   ac_cv_prog_gcc_traditional=yes
3047 fi
3048 rm -f conftest*
3049
3050   fi
3051 fi
3052 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3053 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3054   if test $ac_cv_prog_gcc_traditional = yes; then
3055     CC="$CC -traditional"
3056   fi
3057 fi
3058
3059 if test "x$CC" = xgcc
3060 then
3061    cat >>confdefs.h <<\_ACEOF
3062 #define HAVE_GCC 1
3063 _ACEOF
3064
3065 fi
3066
3067 # Find a good install program.  We prefer a C program (faster),
3068 # so one script is as good as another.  But avoid the broken or
3069 # incompatible versions:
3070 # SysV /etc/install, /usr/sbin/install
3071 # SunOS /usr/etc/install
3072 # IRIX /sbin/install
3073 # AIX /bin/install
3074 # AmigaOS /C/install, which installs bootblocks on floppy discs
3075 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3076 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3077 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3078 # ./install, which can be erroneously created by make from ./install.sh.
3079 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3080 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3081 if test -z "$INSTALL"; then
3082 if test "${ac_cv_path_install+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090   # Account for people who put trailing slashes in PATH elements.
3091 case $as_dir/ in
3092   ./ | .// | /cC/* | \
3093   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3094   /usr/ucb/* ) ;;
3095   *)
3096     # OSF1 and SCO ODT 3.0 have their own names for install.
3097     # Don't use installbsd from OSF since it installs stuff as root
3098     # by default.
3099     for ac_prog in ginstall scoinst install; do
3100       for ac_exec_ext in '' $ac_executable_extensions; do
3101         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3102           if test $ac_prog = install &&
3103             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3104             # AIX install.  It has an incompatible calling convention.
3105             :
3106           elif test $ac_prog = install &&
3107             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3108             # program-specific install script used by HP pwplus--don't use.
3109             :
3110           else
3111             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3112             break 3
3113           fi
3114         fi
3115       done
3116     done
3117     ;;
3118 esac
3119 done
3120
3121
3122 fi
3123   if test "${ac_cv_path_install+set}" = set; then
3124     INSTALL=$ac_cv_path_install
3125   else
3126     # As a last resort, use the slow shell script.  We don't cache a
3127     # path for INSTALL within a source directory, because that will
3128     # break other packages using the cache if that directory is
3129     # removed, or if the path is relative.
3130     INSTALL=$ac_install_sh
3131   fi
3132 fi
3133 echo "$as_me:$LINENO: result: $INSTALL" >&5
3134 echo "${ECHO_T}$INSTALL" >&6
3135
3136 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3137 # It thinks the first close brace ends the variable substitution.
3138 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3139
3140 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3141
3142 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3143
3144 if test -n "$ac_tool_prefix"; then
3145   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3147 echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3149 if test "${ac_cv_prog_RANLIB+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152   if test -n "$RANLIB"; then
3153   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3157 do
3158   IFS=$as_save_IFS
3159   test -z "$as_dir" && as_dir=.
3160   for ac_exec_ext in '' $ac_executable_extensions; do
3161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164     break 2
3165   fi
3166 done
3167 done
3168
3169 fi
3170 fi
3171 RANLIB=$ac_cv_prog_RANLIB
3172 if test -n "$RANLIB"; then
3173   echo "$as_me:$LINENO: result: $RANLIB" >&5
3174 echo "${ECHO_T}$RANLIB" >&6
3175 else
3176   echo "$as_me:$LINENO: result: no" >&5
3177 echo "${ECHO_T}no" >&6
3178 fi
3179
3180 fi
3181 if test -z "$ac_cv_prog_RANLIB"; then
3182   ac_ct_RANLIB=$RANLIB
3183   # Extract the first word of "ranlib", so it can be a program name with args.
3184 set dummy ranlib; ac_word=$2
3185 echo "$as_me:$LINENO: checking for $ac_word" >&5
3186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3187 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3188   echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190   if test -n "$ac_ct_RANLIB"; then
3191   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3192 else
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3195 do
3196   IFS=$as_save_IFS
3197   test -z "$as_dir" && as_dir=.
3198   for ac_exec_ext in '' $ac_executable_extensions; do
3199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200     ac_cv_prog_ac_ct_RANLIB="ranlib"
3201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3202     break 2
3203   fi
3204 done
3205 done
3206
3207   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3208 fi
3209 fi
3210 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3211 if test -n "$ac_ct_RANLIB"; then
3212   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3213 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3214 else
3215   echo "$as_me:$LINENO: result: no" >&5
3216 echo "${ECHO_T}no" >&6
3217 fi
3218
3219   RANLIB=$ac_ct_RANLIB
3220 else
3221   RANLIB="$ac_cv_prog_RANLIB"
3222 fi
3223
3224 # Extract the first word of "mv", so it can be a program name with args.
3225 set dummy mv; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_path_MV+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   case $MV in
3232   [\\/]* | ?:[\\/]*)
3233   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3234   ;;
3235   *)
3236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239   IFS=$as_save_IFS
3240   test -z "$as_dir" && as_dir=.
3241   for ac_exec_ext in '' $ac_executable_extensions; do
3242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245     break 2
3246   fi
3247 done
3248 done
3249
3250   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3251   ;;
3252 esac
3253 fi
3254 MV=$ac_cv_path_MV
3255
3256 if test -n "$MV"; then
3257   echo "$as_me:$LINENO: result: $MV" >&5
3258 echo "${ECHO_T}$MV" >&6
3259 else
3260   echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3262 fi
3263
3264 # Extract the first word of "rm", so it can be a program name with args.
3265 set dummy rm; ac_word=$2
3266 echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3268 if test "${ac_cv_path_RM+set}" = set; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   case $RM in
3272   [\\/]* | ?:[\\/]*)
3273   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3274   ;;
3275   *)
3276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281   for ac_exec_ext in '' $ac_executable_extensions; do
3282   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3284     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288 done
3289
3290   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3291   ;;
3292 esac
3293 fi
3294 RM=$ac_cv_path_RM
3295
3296 if test -n "$RM"; then
3297   echo "$as_me:$LINENO: result: $RM" >&5
3298 echo "${ECHO_T}$RM" >&6
3299 else
3300   echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6
3302 fi
3303
3304 # Extract the first word of "cp", so it can be a program name with args.
3305 set dummy cp; ac_word=$2
3306 echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308 if test "${ac_cv_path_CP+set}" = set; then
3309   echo $ECHO_N "(cached) $ECHO_C" >&6
3310 else
3311   case $CP in
3312   [\\/]* | ?:[\\/]*)
3313   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3314   ;;
3315   *)
3316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319   IFS=$as_save_IFS
3320   test -z "$as_dir" && as_dir=.
3321   for ac_exec_ext in '' $ac_executable_extensions; do
3322   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325     break 2
3326   fi
3327 done
3328 done
3329
3330   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3331   ;;
3332 esac
3333 fi
3334 CP=$ac_cv_path_CP
3335
3336 if test -n "$CP"; then
3337   echo "$as_me:$LINENO: result: $CP" >&5
3338 echo "${ECHO_T}$CP" >&6
3339 else
3340   echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3342 fi
3343
3344 # Extract the first word of "sed", so it can be a program name with args.
3345 set dummy sed; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_path_SED+set}" = set; then
3349   echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351   case $SED in
3352   [\\/]* | ?:[\\/]*)
3353   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3354   ;;
3355   *)
3356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357 for as_dir in $PATH
3358 do
3359   IFS=$as_save_IFS
3360   test -z "$as_dir" && as_dir=.
3361   for ac_exec_ext in '' $ac_executable_extensions; do
3362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365     break 2
3366   fi
3367 done
3368 done
3369
3370   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3371   ;;
3372 esac
3373 fi
3374 SED=$ac_cv_path_SED
3375
3376 if test -n "$SED"; then
3377   echo "$as_me:$LINENO: result: $SED" >&5
3378 echo "${ECHO_T}$SED" >&6
3379 else
3380   echo "$as_me:$LINENO: result: no" >&5
3381 echo "${ECHO_T}no" >&6
3382 fi
3383
3384 # Extract the first word of "awk", so it can be a program name with args.
3385 set dummy awk; ac_word=$2
3386 echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388 if test "${ac_cv_path_AWK+set}" = set; then
3389   echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391   case $AWK in
3392   [\\/]* | ?:[\\/]*)
3393   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3394   ;;
3395   *)
3396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399   IFS=$as_save_IFS
3400   test -z "$as_dir" && as_dir=.
3401   for ac_exec_ext in '' $ac_executable_extensions; do
3402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3405     break 2
3406   fi
3407 done
3408 done
3409
3410   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3411   ;;
3412 esac
3413 fi
3414 AWK=$ac_cv_path_AWK
3415
3416 if test -n "$AWK"; then
3417   echo "$as_me:$LINENO: result: $AWK" >&5
3418 echo "${ECHO_T}$AWK" >&6
3419 else
3420   echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 fi
3423
3424 # Extract the first word of "echo", so it can be a program name with args.
3425 set dummy echo; ac_word=$2
3426 echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3428 if test "${ac_cv_path_ECHO+set}" = set; then
3429   echo $ECHO_N "(cached) $ECHO_C" >&6
3430 else
3431   case $ECHO in
3432   [\\/]* | ?:[\\/]*)
3433   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3434   ;;
3435   *)
3436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439   IFS=$as_save_IFS
3440   test -z "$as_dir" && as_dir=.
3441   for ac_exec_ext in '' $ac_executable_extensions; do
3442   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445     break 2
3446   fi
3447 done
3448 done
3449
3450   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3451   ;;
3452 esac
3453 fi
3454 ECHO=$ac_cv_path_ECHO
3455
3456 if test -n "$ECHO"; then
3457   echo "$as_me:$LINENO: result: $ECHO" >&5
3458 echo "${ECHO_T}$ECHO" >&6
3459 else
3460   echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3462 fi
3463
3464 # Extract the first word of "cmp", so it can be a program name with args.
3465 set dummy cmp; ac_word=$2
3466 echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468 if test "${ac_cv_path_CMP+set}" = set; then
3469   echo $ECHO_N "(cached) $ECHO_C" >&6
3470 else
3471   case $CMP in
3472   [\\/]* | ?:[\\/]*)
3473   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3474   ;;
3475   *)
3476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3478 do
3479   IFS=$as_save_IFS
3480   test -z "$as_dir" && as_dir=.
3481   for ac_exec_ext in '' $ac_executable_extensions; do
3482   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485     break 2
3486   fi
3487 done
3488 done
3489
3490   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3491   ;;
3492 esac
3493 fi
3494 CMP=$ac_cv_path_CMP
3495
3496 if test -n "$CMP"; then
3497   echo "$as_me:$LINENO: result: $CMP" >&5
3498 echo "${ECHO_T}$CMP" >&6
3499 else
3500   echo "$as_me:$LINENO: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3502 fi
3503
3504 # Extract the first word of "tbl", so it can be a program name with args.
3505 set dummy tbl; ac_word=$2
3506 echo "$as_me:$LINENO: checking for $ac_word" >&5
3507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3508 if test "${ac_cv_path_TBL+set}" = set; then
3509   echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511   case $TBL in
3512   [\\/]* | ?:[\\/]*)
3513   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3514   ;;
3515   *)
3516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519   IFS=$as_save_IFS
3520   test -z "$as_dir" && as_dir=.
3521   for ac_exec_ext in '' $ac_executable_extensions; do
3522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3525     break 2
3526   fi
3527 done
3528 done
3529
3530   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3531   ;;
3532 esac
3533 fi
3534 TBL=$ac_cv_path_TBL
3535
3536 if test -n "$TBL"; then
3537   echo "$as_me:$LINENO: result: $TBL" >&5
3538 echo "${ECHO_T}$TBL" >&6
3539 else
3540   echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3542 fi
3543
3544 # Extract the first word of "ar", so it can be a program name with args.
3545 set dummy ar; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_path_AR+set}" = set; then
3549   echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551   case $AR in
3552   [\\/]* | ?:[\\/]*)
3553   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3554   ;;
3555   *)
3556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH
3558 do
3559   IFS=$as_save_IFS
3560   test -z "$as_dir" && as_dir=.
3561   for ac_exec_ext in '' $ac_executable_extensions; do
3562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565     break 2
3566   fi
3567 done
3568 done
3569
3570   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3571   ;;
3572 esac
3573 fi
3574 AR=$ac_cv_path_AR
3575
3576 if test -n "$AR"; then
3577   echo "$as_me:$LINENO: result: $AR" >&5
3578 echo "${ECHO_T}$AR" >&6
3579 else
3580   echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3582 fi
3583
3584 # Extract the first word of "openssl", so it can be a program name with args.
3585 set dummy openssl; ac_word=$2
3586 echo "$as_me:$LINENO: checking for $ac_word" >&5
3587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3588 if test "${ac_cv_path_OPENSSL+set}" = set; then
3589   echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591   case $OPENSSL in
3592   [\\/]* | ?:[\\/]*)
3593   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3594   ;;
3595   *)
3596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3598 do
3599   IFS=$as_save_IFS
3600   test -z "$as_dir" && as_dir=.
3601   for ac_exec_ext in '' $ac_executable_extensions; do
3602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3603     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605     break 2
3606   fi
3607 done
3608 done
3609
3610   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3611   ;;
3612 esac
3613 fi
3614 OPENSSL=$ac_cv_path_OPENSSL
3615
3616 if test -n "$OPENSSL"; then
3617   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3618 echo "${ECHO_T}$OPENSSL" >&6
3619 else
3620   echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6
3622 fi
3623
3624 # Extract the first word of "mtx", so it can be a program name with args.
3625 set dummy mtx; ac_word=$2
3626 echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3628 if test "${ac_cv_path_MTX+set}" = set; then
3629   echo $ECHO_N "(cached) $ECHO_C" >&6
3630 else
3631   case $MTX in
3632   [\\/]* | ?:[\\/]*)
3633   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3634   ;;
3635   *)
3636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637 for as_dir in $PATH
3638 do
3639   IFS=$as_save_IFS
3640   test -z "$as_dir" && as_dir=.
3641   for ac_exec_ext in '' $ac_executable_extensions; do
3642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645     break 2
3646   fi
3647 done
3648 done
3649
3650   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3651   ;;
3652 esac
3653 fi
3654 MTX=$ac_cv_path_MTX
3655
3656 if test -n "$MTX"; then
3657   echo "$as_me:$LINENO: result: $MTX" >&5
3658 echo "${ECHO_T}$MTX" >&6
3659 else
3660   echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3662 fi
3663
3664 # Extract the first word of "pkg-config", so it can be a program name with args.
3665 set dummy pkg-config; ac_word=$2
3666 echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3669   echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671   case $PKGCONFIG in
3672   [\\/]* | ?:[\\/]*)
3673   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3674   ;;
3675   *)
3676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679   IFS=$as_save_IFS
3680   test -z "$as_dir" && as_dir=.
3681   for ac_exec_ext in '' $ac_executable_extensions; do
3682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3685     break 2
3686   fi
3687 done
3688 done
3689
3690   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3691   ;;
3692 esac
3693 fi
3694 PKGCONFIG=$ac_cv_path_PKGCONFIG
3695
3696 if test -n "$PKGCONFIG"; then
3697   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3698 echo "${ECHO_T}$PKGCONFIG" >&6
3699 else
3700   echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3702 fi
3703
3704 # Extract the first word of "wx-config", so it can be a program name with args.
3705 set dummy wx-config; ac_word=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3709   echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711   case $WXCONFIG in
3712   [\\/]* | ?:[\\/]*)
3713   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3714   ;;
3715   *)
3716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 for as_dir in $PATH
3718 do
3719   IFS=$as_save_IFS
3720   test -z "$as_dir" && as_dir=.
3721   for ac_exec_ext in '' $ac_executable_extensions; do
3722   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725     break 2
3726   fi
3727 done
3728 done
3729
3730   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3731   ;;
3732 esac
3733 fi
3734 WXCONFIG=$ac_cv_path_WXCONFIG
3735
3736 if test -n "$WXCONFIG"; then
3737   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3738 echo "${ECHO_T}$WXCONFIG" >&6
3739 else
3740   echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3742 fi
3743
3744 # Extract the first word of "cdrecord", so it can be a program name with args.
3745 set dummy cdrecord; ac_word=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_path_CDRECORD+set}" = set; then
3749   echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751   case $CDRECORD in
3752   [\\/]* | ?:[\\/]*)
3753   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3754   ;;
3755   *)
3756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3758 do
3759   IFS=$as_save_IFS
3760   test -z "$as_dir" && as_dir=.
3761   for ac_exec_ext in '' $ac_executable_extensions; do
3762   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3764     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3765     break 2
3766   fi
3767 done
3768 done
3769
3770   ;;
3771 esac
3772 fi
3773 CDRECORD=$ac_cv_path_CDRECORD
3774
3775 if test -n "$CDRECORD"; then
3776   echo "$as_me:$LINENO: result: $CDRECORD" >&5
3777 echo "${ECHO_T}$CDRECORD" >&6
3778 else
3779   echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3781 fi
3782
3783
3784 test -n "$ARFLAG" || ARFLAGS="cr"
3785
3786
3787 MAKE_SHELL=/bin/sh
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797 # Make sure we can run config.sub.
3798 $ac_config_sub sun4 >/dev/null 2>&1 ||
3799   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3800 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3801    { (exit 1); exit 1; }; }
3802
3803 echo "$as_me:$LINENO: checking build system type" >&5
3804 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3805 if test "${ac_cv_build+set}" = set; then
3806   echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808   ac_cv_build_alias=$build_alias
3809 test -z "$ac_cv_build_alias" &&
3810   ac_cv_build_alias=`$ac_config_guess`
3811 test -z "$ac_cv_build_alias" &&
3812   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3813 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3814    { (exit 1); exit 1; }; }
3815 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3816   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3817 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3818    { (exit 1); exit 1; }; }
3819
3820 fi
3821 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3822 echo "${ECHO_T}$ac_cv_build" >&6
3823 build=$ac_cv_build
3824 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3825 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3826 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3827
3828
3829
3830 echo "$as_me:$LINENO: checking host system type" >&5
3831 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3832 if test "${ac_cv_host+set}" = set; then
3833   echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835   ac_cv_host_alias=$host_alias
3836 test -z "$ac_cv_host_alias" &&
3837   ac_cv_host_alias=$ac_cv_build_alias
3838 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3839   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3840 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3841    { (exit 1); exit 1; }; }
3842
3843 fi
3844 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3845 echo "${ECHO_T}$ac_cv_host" >&6
3846 host=$ac_cv_host
3847 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3848 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3849 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3850
3851
3852 case $host_os in
3853   *cygwin* ) CYGWIN=yes;;
3854          * ) CYGWIN=no;;
3855 esac
3856
3857 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3858 then
3859
3860
3861 if $TRUEPRG; then
3862   HAVE_SUN_OS_TRUE=
3863   HAVE_SUN_OS_FALSE='#'
3864 else
3865   HAVE_SUN_OS_TRUE='#'
3866   HAVE_SUN_OS_FALSE=
3867 fi
3868         cat >>confdefs.h <<\_ACEOF
3869 #define HAVE_SUN_OS 1
3870 _ACEOF
3871
3872 else
3873
3874
3875 if $FALSEPRG; then
3876   HAVE_SUN_OS_TRUE=
3877   HAVE_SUN_OS_FALSE='#'
3878 else
3879   HAVE_SUN_OS_TRUE='#'
3880   HAVE_SUN_OS_FALSE=
3881 fi
3882 fi
3883
3884 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3885 then
3886
3887
3888 if $TRUEPRG; then
3889   HAVE_OSF1_OS_TRUE=
3890   HAVE_OSF1_OS_FALSE='#'
3891 else
3892   HAVE_OSF1_OS_TRUE='#'
3893   HAVE_OSF1_OS_FALSE=
3894 fi
3895         cat >>confdefs.h <<\_ACEOF
3896 #define HAVE_OSF1_OS 1
3897 _ACEOF
3898
3899 else
3900
3901
3902 if $FALSEPRG; then
3903   HAVE_OSF1_OS_TRUE=
3904   HAVE_OSF1_OS_FALSE='#'
3905 else
3906   HAVE_OSF1_OS_TRUE='#'
3907   HAVE_OSF1_OS_FALSE=
3908 fi
3909 fi
3910
3911 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3912 then
3913
3914
3915 if $TRUEPRG; then
3916   HAVE_AIX_OS_TRUE=
3917   HAVE_AIX_OS_FALSE='#'
3918 else
3919   HAVE_AIX_OS_TRUE='#'
3920   HAVE_AIX_OS_FALSE=
3921 fi
3922         cat >>confdefs.h <<\_ACEOF
3923 #define HAVE_AIX_OS 1
3924 _ACEOF
3925
3926 else
3927
3928
3929 if $FALSEPRG; then
3930   HAVE_AIX_OS_TRUE=
3931   HAVE_AIX_OS_FALSE='#'
3932 else
3933   HAVE_AIX_OS_TRUE='#'
3934   HAVE_AIX_OS_FALSE=
3935 fi
3936 fi
3937
3938 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3939 then
3940
3941
3942 if $TRUEPRG; then
3943   HAVE_HPUX_OS_TRUE=
3944   HAVE_HPUX_OS_FALSE='#'
3945 else
3946   HAVE_HPUX_OS_TRUE='#'
3947   HAVE_HPUX_OS_FALSE=
3948 fi
3949         cat >>confdefs.h <<\_ACEOF
3950 #define HAVE_HPUX_OS 1
3951 _ACEOF
3952
3953 else
3954
3955
3956 if $FALSEPRG; then
3957   HAVE_HPUX_OS_TRUE=
3958   HAVE_HPUX_OS_FALSE='#'
3959 else
3960   HAVE_HPUX_OS_TRUE='#'
3961   HAVE_HPUX_OS_FALSE=
3962 fi
3963 fi
3964
3965 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3966 then
3967
3968
3969 if $TRUEPRG; then
3970   HAVE_LINUX_OS_TRUE=
3971   HAVE_LINUX_OS_FALSE='#'
3972 else
3973   HAVE_LINUX_OS_TRUE='#'
3974   HAVE_LINUX_OS_FALSE=
3975 fi
3976         cat >>confdefs.h <<\_ACEOF
3977 #define HAVE_LINUX_OS 1
3978 _ACEOF
3979
3980 else
3981
3982
3983 if $FALSEPRG; then
3984   HAVE_LINUX_OS_TRUE=
3985   HAVE_LINUX_OS_FALSE='#'
3986 else
3987   HAVE_LINUX_OS_TRUE='#'
3988   HAVE_LINUX_OS_FALSE=
3989 fi
3990 fi
3991
3992 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3993 then
3994
3995
3996 if $TRUEPRG; then
3997   HAVE_FREEBSD_OS_TRUE=
3998   HAVE_FREEBSD_OS_FALSE='#'
3999 else
4000   HAVE_FREEBSD_OS_TRUE='#'
4001   HAVE_FREEBSD_OS_FALSE=
4002 fi
4003         cat >>confdefs.h <<\_ACEOF
4004 #define HAVE_FREEBSD_OS 1
4005 _ACEOF
4006
4007 else
4008
4009
4010 if $FALSEPRG; then
4011   HAVE_FREEBSD_OS_TRUE=
4012   HAVE_FREEBSD_OS_FALSE='#'
4013 else
4014   HAVE_FREEBSD_OS_TRUE='#'
4015   HAVE_FREEBSD_OS_FALSE=
4016 fi
4017 fi
4018
4019 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4020 then
4021
4022
4023 if $TRUEPRG; then
4024   HAVE_NETBSD_OS_TRUE=
4025   HAVE_NETBSD_OS_FALSE='#'
4026 else
4027   HAVE_NETBSD_OS_TRUE='#'
4028   HAVE_NETBSD_OS_FALSE=
4029 fi
4030         cat >>confdefs.h <<\_ACEOF
4031 #define HAVE_NETBSD_OS 1
4032 _ACEOF
4033
4034 else
4035
4036
4037 if $FALSEPRG; then
4038   HAVE_NETBSD_OS_TRUE=
4039   HAVE_NETBSD_OS_FALSE='#'
4040 else
4041   HAVE_NETBSD_OS_TRUE='#'
4042   HAVE_NETBSD_OS_FALSE=
4043 fi
4044 fi
4045
4046 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4047 then
4048
4049
4050 if $TRUEPRG; then
4051   HAVE_OPENBSD_OS_TRUE=
4052   HAVE_OPENBSD_OS_FALSE='#'
4053 else
4054   HAVE_OPENBSD_OS_TRUE='#'
4055   HAVE_OPENBSD_OS_FALSE=
4056 fi
4057         cat >>confdefs.h <<\_ACEOF
4058 #define HAVE_OPENBSD_OS 1
4059 _ACEOF
4060
4061 else
4062
4063
4064 if $FALSEPRG; then
4065   HAVE_OPENBSD_OS_TRUE=
4066   HAVE_OPENBSD_OS_FALSE='#'
4067 else
4068   HAVE_OPENBSD_OS_TRUE='#'
4069   HAVE_OPENBSD_OS_FALSE=
4070 fi
4071 fi
4072
4073 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4074 then
4075
4076
4077 if $TRUEPRG; then
4078   HAVE_BSDI_OS_TRUE=
4079   HAVE_BSDI_OS_FALSE='#'
4080 else
4081   HAVE_BSDI_OS_TRUE='#'
4082   HAVE_BSDI_OS_FALSE=
4083 fi
4084         cat >>confdefs.h <<\_ACEOF
4085 #define HAVE_BSDI_OS 1
4086 _ACEOF
4087
4088 else
4089
4090
4091 if $FALSEPRG; then
4092   HAVE_BSDI_OS_TRUE=
4093   HAVE_BSDI_OS_FALSE='#'
4094 else
4095   HAVE_BSDI_OS_TRUE='#'
4096   HAVE_BSDI_OS_FALSE=
4097 fi
4098 fi
4099
4100 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4101 then
4102
4103
4104 if $TRUEPRG; then
4105   HAVE_SGI_OS_TRUE=
4106   HAVE_SGI_OS_FALSE='#'
4107 else
4108   HAVE_SGI_OS_TRUE='#'
4109   HAVE_SGI_OS_FALSE=
4110 fi
4111         cat >>confdefs.h <<\_ACEOF
4112 #define HAVE_SGI_OS 1
4113 _ACEOF
4114
4115 else
4116
4117
4118 if $FALSEPRG; then
4119   HAVE_SGI_OS_TRUE=
4120   HAVE_SGI_OS_FALSE='#'
4121 else
4122   HAVE_SGI_OS_TRUE='#'
4123   HAVE_SGI_OS_FALSE=
4124 fi
4125 fi
4126
4127 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4128 then
4129
4130
4131 if $TRUEPRG; then
4132   HAVE_IRIX_OS_TRUE=
4133   HAVE_IRIX_OS_FALSE='#'
4134 else
4135   HAVE_IRIX_OS_TRUE='#'
4136   HAVE_IRIX_OS_FALSE=
4137 fi
4138         cat >>confdefs.h <<\_ACEOF
4139 #define HAVE_IRIX_OS 1
4140 _ACEOF
4141
4142 else
4143
4144
4145 if $FALSEPRG; then
4146   HAVE_IRIX_OS_TRUE=
4147   HAVE_IRIX_OS_FALSE='#'
4148 else
4149   HAVE_IRIX_OS_TRUE='#'
4150   HAVE_IRIX_OS_FALSE=
4151 fi
4152 fi
4153
4154 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4155 then
4156
4157
4158 if $TRUEPRG; then
4159   HAVE_DARWIN_OS_TRUE=
4160   HAVE_DARWIN_OS_FALSE='#'
4161 else
4162   HAVE_DARWIN_OS_TRUE='#'
4163   HAVE_DARWIN_OS_FALSE=
4164 fi
4165     cat >>confdefs.h <<\_ACEOF
4166 #define HAVE_DARWIN_OS 1
4167 _ACEOF
4168
4169 else
4170
4171
4172 if $FALSEPRG; then
4173   HAVE_DARWIN_OS_TRUE=
4174   HAVE_DARWIN_OS_FALSE='#'
4175 else
4176   HAVE_DARWIN_OS_TRUE='#'
4177   HAVE_DARWIN_OS_FALSE=
4178 fi
4179 fi
4180
4181
4182 # -----------------------------------------------------------
4183 # ----------------------------------------------------------
4184 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4185 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4186 if test "x$DISTNAME" != "x"
4187 then
4188         echo "distname set to $DISTNAME"
4189 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4190 then
4191         DISTNAME=alpha
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4193 then
4194         DISTNAME=aix
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4196 then
4197         DISTNAME=hpux
4198 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4199 then
4200         DISTNAME=solaris
4201 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4202 then
4203         DISTNAME=freebsd
4204 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4205 then
4206         DISTNAME=netbsd
4207 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4208 then
4209         DISTNAME=openbsd
4210 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4211 then
4212         DISTNAME=irix
4213 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4214 then
4215         DISTNAME=bsdi
4216 elif test -f /etc/SuSE-release
4217 then
4218         DISTNAME=suse
4219 elif test -d /etc/SuSEconfig
4220 then
4221         DISTNAME=suse5
4222 elif test -f /etc/mandrake-release
4223 then
4224         DISTNAME=mandrake
4225 elif test -f /etc/whitebox-release
4226 then
4227        DISTNAME=redhat
4228 elif test -f /etc/redhat-release
4229 then
4230         DISTNAME=redhat
4231 elif test -f /etc/gentoo-release
4232 then
4233         DISTNAME=gentoo
4234 elif test -f /etc/debian_version
4235 then
4236         DISTNAME=debian
4237 elif test -f /etc/slackware-version
4238 then
4239         DISTNAME=slackware
4240 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4241 then
4242     DISTNAME=darwin
4243 elif test -f /etc/engarde-version
4244 then
4245         DISTNAME=engarde
4246 elif test "$CYGWIN" = yes
4247 then
4248         DISTNAME=cygwin
4249         cat >>confdefs.h <<\_ACEOF
4250 #define HAVE_CYGWIN 1
4251 _ACEOF
4252
4253 else
4254         DISTNAME=unknown
4255 fi
4256 echo "$as_me:$LINENO: result: done" >&5
4257 echo "${ECHO_T}done" >&6
4258
4259
4260 # -----------------------------------------------------------
4261 # ----------------------------------------------------------
4262
4263
4264
4265 if false; then
4266   INSIDE_GNOME_COMMON_TRUE=
4267   INSIDE_GNOME_COMMON_FALSE='#'
4268 else
4269   INSIDE_GNOME_COMMON_TRUE='#'
4270   INSIDE_GNOME_COMMON_FALSE=
4271 fi
4272
4273         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4274
4275         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4276
4277
4278 # ------------------------------------------------------------------
4279 #  If the user has not set --prefix, we set our default to nothing.
4280 #  In this case, if the user has not set --sysconfdir, we set it
4281 #  to the package default of /etc/bacula.  If either --prefix or
4282 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4283 # ------------------------------------------------------------------
4284 if test x${prefix} = xNONE ; then
4285     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4286         sysconfdir=/etc/bacula
4287     fi
4288     prefix=
4289 fi
4290 sysconfdir=`eval echo ${sysconfdir}`
4291
4292 # -------------------------------------------------------------------------
4293 #  If the user has not set --exec-prefix, we default to ${prefix}
4294 # -------------------------------------------------------------------------
4295 if test x${exec_prefix} = xNONE ; then
4296     exec_prefix=${prefix}
4297 fi
4298
4299 # ------------------------------------------------------------------
4300 # If the user has not set --sbindir, we set our default as /sbin
4301 # ------------------------------------------------------------------
4302 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4303     sbindir=${exec_prefix}/sbin
4304 fi
4305 sbindir=`eval echo ${sbindir}`
4306
4307 # ------------------------------------------------------------------
4308 # All list of languages for which a translation exist. Each
4309 #  language is separated by a space.
4310 # ------------------------------------------------------------------
4311 ALL_LINGUAS=""
4312
4313 for ac_prog in msgfmt
4314 do
4315   # Extract the first word of "$ac_prog", so it can be a program name with args.
4316 set dummy $ac_prog; ac_word=$2
4317 echo "$as_me:$LINENO: checking for $ac_word" >&5
4318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4319 if test "${ac_cv_path_MSGFMT+set}" = set; then
4320   echo $ECHO_N "(cached) $ECHO_C" >&6
4321 else
4322   case $MSGFMT in
4323   [\\/]* | ?:[\\/]*)
4324   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4325   ;;
4326   *)
4327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH
4329 do
4330   IFS=$as_save_IFS
4331   test -z "$as_dir" && as_dir=.
4332   for ac_exec_ext in '' $ac_executable_extensions; do
4333   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4334     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336     break 2
4337   fi
4338 done
4339 done
4340
4341   ;;
4342 esac
4343 fi
4344 MSGFMT=$ac_cv_path_MSGFMT
4345
4346 if test -n "$MSGFMT"; then
4347   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4348 echo "${ECHO_T}$MSGFMT" >&6
4349 else
4350   echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6
4352 fi
4353
4354   test -n "$MSGFMT" && break
4355 done
4356 test -n "$MSGFMT" || MSGFMT="no"
4357
4358 if test "$MSGFMT" = "no"
4359 then
4360    echo 'msgfmt program not found, disabling NLS !'
4361    USE_NLS=no
4362    USE_INCLUDED_LIBINTL=no
4363 #else
4364 #   AM_GNU_GETTEXT
4365 fi
4366
4367
4368 support_mysql=no
4369 support_sqlite=no
4370 support_postgresql=no
4371 support_smartalloc=yes
4372 support_readline=yes
4373 support_conio=yes
4374 support_gnome=no
4375 support_wx_console=no
4376 gnome_version=
4377 support_static_tools=no
4378 support_static_fd=no
4379 support_static_sd=no
4380 support_static_dir=no
4381 support_static_cons=no
4382 build_client_only=no
4383 cats=
4384 db_name=Internal
4385 DB_NAME=bdb
4386
4387
4388 # -------------------------------------------
4389 # gnome (default off)
4390 # -------------------------------------------
4391 # Check whether --enable-gnome or --disable-gnome was given.
4392 if test "${enable_gnome+set}" = set; then
4393   enableval="$enable_gnome"
4394   if test x$enableval = xyes; then
4395     support_gnome=yes
4396   fi
4397 fi;
4398
4399 GNOME_DIR=
4400 if test x$support_gnome = xyes; then
4401   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4402   pkg=$?
4403   if test $pkg = 0; then
4404      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4405      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4406      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4407      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4408
4409
4410
4411
4412      GNOME_DIR=src/gnome2-console
4413      gnome_version="Version 2.x"
4414   else
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4427 if test "${with_gnome_includes+set}" = set; then
4428   withval="$with_gnome_includes"
4429
4430         CFLAGS="$CFLAGS -I$withval"
4431
4432 fi;
4433
4434
4435 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4436 if test "${with_gnome_libs+set}" = set; then
4437   withval="$with_gnome_libs"
4438
4439         LDFLAGS="$LDFLAGS -L$withval"
4440         gnome_prefix=$withval
4441
4442 fi;
4443
4444
4445 # Check whether --with-gnome or --without-gnome was given.
4446 if test "${with_gnome+set}" = set; then
4447   withval="$with_gnome"
4448   if test x$withval = xyes; then
4449                         want_gnome=yes
4450                                                                         :
4451                 else
4452                         if test "x$withval" = xno; then
4453                                 want_gnome=no
4454                         else
4455                                 want_gnome=yes
4456                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4457                                 CFLAGS="$CFLAGS -I$withval/include"
4458                                 gnome_prefix=$withval/lib
4459                         fi
4460                 fi
4461 else
4462   want_gnome=yes
4463 fi;
4464
4465         if test "x$want_gnome" = xyes; then
4466
4467             # Extract the first word of "gnome-config", so it can be a program name with args.
4468 set dummy gnome-config; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   case $GNOME_CONFIG in
4475   [\\/]* | ?:[\\/]*)
4476   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4477   ;;
4478   *)
4479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482   IFS=$as_save_IFS
4483   test -z "$as_dir" && as_dir=.
4484   for ac_exec_ext in '' $ac_executable_extensions; do
4485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488     break 2
4489   fi
4490 done
4491 done
4492
4493   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4494   ;;
4495 esac
4496 fi
4497 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4498
4499 if test -n "$GNOME_CONFIG"; then
4500   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4501 echo "${ECHO_T}$GNOME_CONFIG" >&6
4502 else
4503   echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4505 fi
4506
4507             if test "$GNOME_CONFIG" = "no"; then
4508               no_gnome_config="yes"
4509             else
4510               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4511 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4512               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4513                 echo "$as_me:$LINENO: result: yes" >&5
4514 echo "${ECHO_T}yes" >&6
4515
4516
4517         # Extract the first word of "orbit-config", so it can be a program name with args.
4518 set dummy orbit-config; ac_word=$2
4519 echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4521 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524   case $ORBIT_CONFIG in
4525   [\\/]* | ?:[\\/]*)
4526   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4527   ;;
4528   *)
4529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532   IFS=$as_save_IFS
4533   test -z "$as_dir" && as_dir=.
4534   for ac_exec_ext in '' $ac_executable_extensions; do
4535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541 done
4542
4543   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4544   ;;
4545 esac
4546 fi
4547 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4548
4549 if test -n "$ORBIT_CONFIG"; then
4550   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4551 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4552 else
4553   echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6
4555 fi
4556
4557         # Extract the first word of "orbit-idl", so it can be a program name with args.
4558 set dummy orbit-idl; ac_word=$2
4559 echo "$as_me:$LINENO: checking for $ac_word" >&5
4560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4562   echo $ECHO_N "(cached) $ECHO_C" >&6
4563 else
4564   case $ORBIT_IDL in
4565   [\\/]* | ?:[\\/]*)
4566   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4567   ;;
4568   *)
4569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4571 do
4572   IFS=$as_save_IFS
4573   test -z "$as_dir" && as_dir=.
4574   for ac_exec_ext in '' $ac_executable_extensions; do
4575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4576     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578     break 2
4579   fi
4580 done
4581 done
4582
4583   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4584   ;;
4585 esac
4586 fi
4587 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4588
4589 if test -n "$ORBIT_IDL"; then
4590   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4591 echo "${ECHO_T}$ORBIT_IDL" >&6
4592 else
4593   echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6
4595 fi
4596
4597         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4598 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4599 if test "${gnome_cv_orbit_found+set}" = set; then
4600   echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602
4603                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4604                         gnome_cv_orbit_found=no
4605                 else
4606                         gnome_cv_orbit_found=yes
4607                 fi
4608
4609 fi
4610 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4611 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4612
4613
4614 if test x$gnome_cv_orbit_found = xyes; then
4615   HAVE_ORBIT_TRUE=
4616   HAVE_ORBIT_FALSE='#'
4617 else
4618   HAVE_ORBIT_TRUE='#'
4619   HAVE_ORBIT_FALSE=
4620 fi
4621         if test x$gnome_cv_orbit_found = xyes; then
4622
4623                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4624                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4625
4626
4627         else
4628                 if test xfail = xfailure; then
4629                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4630 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4631    { (exit 1); exit 1; }; }
4632                 fi
4633         fi
4634
4635         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4636 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4637 if test "${gnome_cv_gnorba_found+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640
4641                 gnome_cv_gnorba_found=no
4642                 if test x$gnome_cv_orbit_found = xyes; then
4643                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4644                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4645                         if test -n "$GNORBA_LIBS"; then
4646                                 gnome_cv_gnorba_found=yes
4647                         fi
4648                 fi
4649
4650 fi
4651 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4652 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4653
4654
4655 if test x$gnome_cv_gnorba_found = xyes; then
4656   HAVE_GNORBA_TRUE=
4657   HAVE_GNORBA_FALSE='#'
4658 else
4659   HAVE_GNORBA_TRUE='#'
4660   HAVE_GNORBA_FALSE=
4661 fi
4662         if test x$gnome_cv_orbit_found = xyes; then
4663
4664                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4665                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4666
4667
4668         else
4669                 if test xfail = xfailure; then
4670                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4671 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4672    { (exit 1); exit 1; }; }
4673                 fi
4674         fi
4675
4676                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4677                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4678                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4679                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4680                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4681                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4682                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4683
4684               else
4685                 echo "$as_me:$LINENO: result: no" >&5
4686 echo "${ECHO_T}no" >&6
4687                 no_gnome_config="yes"
4688               fi
4689             fi
4690
4691             if test x$exec_prefix = xNONE; then
4692                 if test x$prefix = xNONE; then
4693                     gnome_prefix=$ac_default_prefix/lib
4694                 else
4695                     gnome_prefix=$prefix/lib
4696                 fi
4697             else
4698                 gnome_prefix=`eval echo \`echo $libdir\``
4699             fi
4700
4701             if test "$no_gnome_config" = "yes"; then
4702               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4703 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4704               if test -f $gnome_prefix/gnomeConf.sh; then
4705                 echo "$as_me:$LINENO: result: found" >&5
4706 echo "${ECHO_T}found" >&6
4707                 echo "loading gnome configuration from" \
4708                      "$gnome_prefix/gnomeConf.sh"
4709                 . $gnome_prefix/gnomeConf.sh
4710
4711               else
4712                 echo "$as_me:$LINENO: result: not found" >&5
4713 echo "${ECHO_T}not found" >&6
4714                 if test xfail = xfail; then
4715                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4716 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4717    { (exit 1); exit 1; }; }
4718                 fi
4719               fi
4720             fi
4721         fi
4722
4723         if test -n ""; then
4724           n=""
4725           for i in $n; do
4726             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4727 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4728             case $i in
4729               applets)
4730
4731                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4732                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4733 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4734               docklets)
4735
4736                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4737                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4738 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4739               capplet)
4740
4741                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4742                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4743 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4744               *)
4745                 echo "$as_me:$LINENO: result: unknown library" >&5
4746 echo "${ECHO_T}unknown library" >&6
4747             esac
4748             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4749             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4750           done
4751         fi
4752
4753
4754      GNOME_DIR=src/gnome-console
4755      gnome_version="Version 1.4"
4756   fi
4757 fi
4758
4759
4760
4761 # -------------------------------------------
4762 # wx-console (default off)
4763 # -------------------------------------------
4764 # Check whether --enable-wx-console or --disable-wx-console was given.
4765 if test "${enable_wx_console+set}" = set; then
4766   enableval="$enable_wx_console"
4767   if test x$enableval = xyes; then
4768     support_wx_console=yes
4769   fi
4770 fi;
4771
4772 WX_DIR=
4773 if test x$support_wx_console = xyes; then
4774   abc=`$WXCONFIG --cppflags`
4775   pkg=$?
4776   if test $pkg = 0; then
4777      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4778      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4779
4780
4781      WX_DIR=src/wx-console
4782   else
4783      echo " "
4784      echo "wx-config program not found. wx-console disabled."
4785      echo " "
4786      support_wx_console=no
4787   fi
4788 fi
4789
4790
4791
4792 # -------------------------------------------
4793 # tray-monitor (default off)
4794 # -------------------------------------------
4795 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4796 if test "${enable_tray_monitor+set}" = set; then
4797   enableval="$enable_tray_monitor"
4798   if test x$enableval = xyes; then
4799     support_tray_monitor=yes
4800   fi
4801 fi;
4802
4803 TRAY_MONITOR_DIR=
4804 if test x$support_tray_monitor = xyes; then
4805   abc=`$PKGCONFIG --exists gtk+-2.0`
4806   pkg=$?
4807   if test $pkg = 0; then
4808      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4809      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4810
4811
4812      TRAY_MONITOR_DIR=src/tray-monitor
4813      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4814      pkg=$?
4815      if test $pkg = 0; then
4816         cat >>confdefs.h <<\_ACEOF
4817 #define HAVE_GTK_2_4 1
4818 _ACEOF
4819
4820      fi
4821   fi
4822 fi
4823
4824
4825 # -------------------------------------------
4826 # smartalloc (default off)
4827 # -------------------------------------------
4828 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4829 if test "${enable_smartalloc+set}" = set; then
4830   enableval="$enable_smartalloc"
4831   if test x$enableval = xno; then
4832     support_smartalloc=no
4833   fi
4834 fi;
4835
4836 if test x$support_smartalloc = xyes; then
4837    cat >>confdefs.h <<\_ACEOF
4838 #define SMARTALLOC 1
4839 _ACEOF
4840
4841 fi
4842
4843 # -------------------------------------------
4844 # static-tools (default off)
4845 # -------------------------------------------
4846 # Check whether --enable-static-tools or --disable-static-tools was given.
4847 if test "${enable_static_tools+set}" = set; then
4848   enableval="$enable_static_tools"
4849   if test x$enableval = xyes; then
4850      support_static_tools=yes
4851    fi
4852 fi;
4853
4854 TTOOL_LDFLAGS=
4855 if test x$support_static_tools = xyes; then
4856    TTOOL_LDFLAGS="-static"
4857 fi
4858
4859
4860 # -------------------------------------------
4861 # static-fd    (default off)
4862 # -------------------------------------------
4863 # Check whether --enable-static-fd or --disable-static-fd was given.
4864 if test "${enable_static_fd+set}" = set; then
4865   enableval="$enable_static_fd"
4866   if test x$enableval = xyes; then
4867      support_static_fd=yes
4868    fi
4869 fi;
4870
4871 STATIC_FD=
4872 if test x$support_static_fd = xyes; then
4873    STATIC_FD="static-bacula-fd"
4874 fi
4875
4876
4877 # -------------------------------------------
4878 # static-sd    (default off)
4879 # -------------------------------------------
4880 # Check whether --enable-static-sd or --disable-static-sd was given.
4881 if test "${enable_static_sd+set}" = set; then
4882   enableval="$enable_static_sd"
4883   if test x$enableval = xyes; then
4884      support_static_sd=yes
4885    fi
4886 fi;
4887
4888 STATIC_SD=
4889 if test x$support_static_sd = xyes; then
4890    STATIC_SD="static-bacula-sd"
4891 fi
4892
4893
4894 # -------------------------------------------
4895 # static-dir   (default off)
4896 # -------------------------------------------
4897 # Check whether --enable-static-dir or --disable-static-dir was given.
4898 if test "${enable_static_dir+set}" = set; then
4899   enableval="$enable_static_dir"
4900   if test x$enableval = xyes; then
4901      support_static_dir=yes
4902    fi
4903 fi;
4904
4905 STATIC_DIR=
4906 if test x$support_static_dir = xyes; then
4907    STATIC_DIR="static-bacula-dir"
4908 fi
4909
4910
4911 # -------------------------------------------
4912 # static-cons  (default off)
4913 # -------------------------------------------
4914 # Check whether --enable-static-cons or --disable-static-cons was given.
4915 if test "${enable_static_cons+set}" = set; then
4916   enableval="$enable_static_cons"
4917   if test x$enableval = xyes; then
4918      support_static_cons=yes
4919    fi
4920 fi;
4921
4922 STATIC_CONS=
4923 STATIC_GNOME_CONS=
4924 STATIC_WX_CONS=
4925 if test x$support_static_cons = xyes; then
4926    STATIC_CONS="static-bconsole"
4927    STATIC_GNOME_CONS="static-gnome-console"
4928    STATIC_WX_CONS="static-wx-console"
4929 fi
4930
4931
4932
4933
4934 # -------------------------------------------
4935 # client_only  (default off)
4936 # -------------------------------------------
4937 # Check whether --enable-client-only or --disable-client-only was given.
4938 if test "${enable_client_only+set}" = set; then
4939   enableval="$enable_client_only"
4940   if test x$enableval = xyes; then
4941      build_client_only=yes
4942     db_name=None
4943     DB_NAME=none
4944    fi
4945 fi;
4946 if test x$build_client_only = xno; then
4947    ALL_DIRS="subdirs"
4948 else
4949    ALL_DIRS=""
4950 fi
4951
4952
4953 # ---------------------------------------------------
4954 # Check for conio (Bacula readline substitute)(
4955 # ---------------------------------------------------
4956 # this allows you to turn it completely off
4957 # Check whether --enable-conio or --disable-conio was given.
4958 if test "${enable_conio+set}" = set; then
4959   enableval="$enable_conio"
4960   if test x$enableval = xno; then
4961     support_conio=no
4962   fi
4963 fi;
4964
4965 got_conio="no"
4966 if test x$support_conio = xyes; then
4967    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4968 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4969 if test "${ac_cv_header_stdc+set}" = set; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
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 <stdlib.h>
4980 #include <stdarg.h>
4981 #include <string.h>
4982 #include <float.h>
4983
4984 int
4985 main ()
4986 {
4987
4988   ;
4989   return 0;
4990 }
4991 _ACEOF
4992 rm -f conftest.$ac_objext
4993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4994   (eval $ac_compile) 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); } &&
4998          { ac_try='test -s conftest.$ac_objext'
4999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000   (eval $ac_try) 2>&5
5001   ac_status=$?
5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003   (exit $ac_status); }; }; then
5004   ac_cv_header_stdc=yes
5005 else
5006   echo "$as_me: failed program was:" >&5
5007 sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 ac_cv_header_stdc=no
5010 fi
5011 rm -f conftest.$ac_objext conftest.$ac_ext
5012
5013 if test $ac_cv_header_stdc = yes; then
5014   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5015   cat >conftest.$ac_ext <<_ACEOF
5016 #line $LINENO "configure"
5017 /* confdefs.h.  */
5018 _ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h.  */
5022 #include <string.h>
5023
5024 _ACEOF
5025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5026   $EGREP "memchr" >/dev/null 2>&1; then
5027   :
5028 else
5029   ac_cv_header_stdc=no
5030 fi
5031 rm -f conftest*
5032
5033 fi
5034
5035 if test $ac_cv_header_stdc = yes; then
5036   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5037   cat >conftest.$ac_ext <<_ACEOF
5038 #line $LINENO "configure"
5039 /* confdefs.h.  */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h.  */
5044 #include <stdlib.h>
5045
5046 _ACEOF
5047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5048   $EGREP "free" >/dev/null 2>&1; then
5049   :
5050 else
5051   ac_cv_header_stdc=no
5052 fi
5053 rm -f conftest*
5054
5055 fi
5056
5057 if test $ac_cv_header_stdc = yes; then
5058   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5059   if test "$cross_compiling" = yes; then
5060   :
5061 else
5062   cat >conftest.$ac_ext <<_ACEOF
5063 #line $LINENO "configure"
5064 /* confdefs.h.  */
5065 _ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h.  */
5069 #include <ctype.h>
5070 #if ((' ' & 0x0FF) == 0x020)
5071 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5072 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5073 #else
5074 # define ISLOWER(c) \
5075                    (('a' <= (c) && (c) <= 'i') \
5076                      || ('j' <= (c) && (c) <= 'r') \
5077                      || ('s' <= (c) && (c) <= 'z'))
5078 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5079 #endif
5080
5081 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5082 int
5083 main ()
5084 {
5085   int i;
5086   for (i = 0; i < 256; i++)
5087     if (XOR (islower (i), ISLOWER (i))
5088         || toupper (i) != TOUPPER (i))
5089       exit(2);
5090   exit (0);
5091 }
5092 _ACEOF
5093 rm -f conftest$ac_exeext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5095   (eval $ac_link) 2>&5
5096   ac_status=$?
5097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100   (eval $ac_try) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); }; }; then
5104   :
5105 else
5106   echo "$as_me: program exited with status $ac_status" >&5
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 ( exit $ac_status )
5111 ac_cv_header_stdc=no
5112 fi
5113 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5114 fi
5115 fi
5116 fi
5117 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5118 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5119 if test $ac_cv_header_stdc = yes; then
5120
5121 cat >>confdefs.h <<\_ACEOF
5122 #define STDC_HEADERS 1
5123 _ACEOF
5124
5125 fi
5126
5127 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5138                   inttypes.h stdint.h unistd.h
5139 do
5140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5141 echo "$as_me:$LINENO: checking for $ac_header" >&5
5142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5144   echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146   cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5148 /* confdefs.h.  */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h.  */
5153 $ac_includes_default
5154
5155 #include <$ac_header>
5156 _ACEOF
5157 rm -f conftest.$ac_objext
5158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5159   (eval $ac_compile) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); } &&
5163          { ac_try='test -s conftest.$ac_objext'
5164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165   (eval $ac_try) 2>&5
5166   ac_status=$?
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); }; }; then
5169   eval "$as_ac_Header=yes"
5170 else
5171   echo "$as_me: failed program was:" >&5
5172 sed 's/^/| /' conftest.$ac_ext >&5
5173
5174 eval "$as_ac_Header=no"
5175 fi
5176 rm -f conftest.$ac_objext conftest.$ac_ext
5177 fi
5178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5181   cat >>confdefs.h <<_ACEOF
5182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5183 _ACEOF
5184
5185 fi
5186
5187 done
5188
5189
5190 if test "${ac_cv_header_termcap_h+set}" = set; then
5191   echo "$as_me:$LINENO: checking for termcap.h" >&5
5192 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5193 if test "${ac_cv_header_termcap_h+set}" = set; then
5194   echo $ECHO_N "(cached) $ECHO_C" >&6
5195 fi
5196 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5197 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5198 else
5199   # Is the header compilable?
5200 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5201 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5202 cat >conftest.$ac_ext <<_ACEOF
5203 #line $LINENO "configure"
5204 /* confdefs.h.  */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
5208 /* end confdefs.h.  */
5209 $ac_includes_default
5210 #include <termcap.h>
5211 _ACEOF
5212 rm -f conftest.$ac_objext
5213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5214   (eval $ac_compile) 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); } &&
5218          { ac_try='test -s conftest.$ac_objext'
5219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220   (eval $ac_try) 2>&5
5221   ac_status=$?
5222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223   (exit $ac_status); }; }; then
5224   ac_header_compiler=yes
5225 else
5226   echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5228
5229 ac_header_compiler=no
5230 fi
5231 rm -f conftest.$ac_objext conftest.$ac_ext
5232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5233 echo "${ECHO_T}$ac_header_compiler" >&6
5234
5235 # Is the header present?
5236 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5237 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5238 cat >conftest.$ac_ext <<_ACEOF
5239 #line $LINENO "configure"
5240 /* confdefs.h.  */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h.  */
5245 #include <termcap.h>
5246 _ACEOF
5247 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5248   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5249   ac_status=$?
5250   grep -v '^ *+' conftest.er1 >conftest.err
5251   rm -f conftest.er1
5252   cat conftest.err >&5
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); } >/dev/null; then
5255   if test -s conftest.err; then
5256     ac_cpp_err=$ac_c_preproc_warn_flag
5257   else
5258     ac_cpp_err=
5259   fi
5260 else
5261   ac_cpp_err=yes
5262 fi
5263 if test -z "$ac_cpp_err"; then
5264   ac_header_preproc=yes
5265 else
5266   echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5268
5269   ac_header_preproc=no
5270 fi
5271 rm -f conftest.err conftest.$ac_ext
5272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5273 echo "${ECHO_T}$ac_header_preproc" >&6
5274
5275 # So?  What about this header?
5276 case $ac_header_compiler:$ac_header_preproc in
5277   yes:no )
5278     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5279 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5280     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5281 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5282     (
5283       cat <<\_ASBOX
5284 ## ------------------------------------ ##
5285 ## Report this to bug-autoconf@gnu.org. ##
5286 ## ------------------------------------ ##
5287 _ASBOX
5288     ) |
5289       sed "s/^/$as_me: WARNING:     /" >&2
5290     ;;
5291   no:yes )
5292     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5293 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5294     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5295 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5296     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5297 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5298     (
5299       cat <<\_ASBOX
5300 ## ------------------------------------ ##
5301 ## Report this to bug-autoconf@gnu.org. ##
5302 ## ------------------------------------ ##
5303 _ASBOX
5304     ) |
5305       sed "s/^/$as_me: WARNING:     /" >&2
5306     ;;
5307 esac
5308 echo "$as_me:$LINENO: checking for termcap.h" >&5
5309 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5310 if test "${ac_cv_header_termcap_h+set}" = set; then
5311   echo $ECHO_N "(cached) $ECHO_C" >&6
5312 else
5313   ac_cv_header_termcap_h=$ac_header_preproc
5314 fi
5315 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5316 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5317
5318 fi
5319 if test $ac_cv_header_termcap_h = yes; then
5320    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5321 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5322 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325   ac_check_lib_save_LIBS=$LIBS
5326 LIBS="-ltermcap  $LIBS"
5327 cat >conftest.$ac_ext <<_ACEOF
5328 #line $LINENO "configure"
5329 /* confdefs.h.  */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h.  */
5334
5335 /* Override any gcc2 internal prototype to avoid an error.  */
5336 #ifdef __cplusplus
5337 extern "C"
5338 #endif
5339 /* We use char because int might match the return type of a gcc2
5340    builtin and then its argument prototype would still apply.  */
5341 char tgetent ();
5342 int
5343 main ()
5344 {
5345 tgetent ();
5346   ;
5347   return 0;
5348 }
5349 _ACEOF
5350 rm -f conftest.$ac_objext conftest$ac_exeext
5351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5352   (eval $ac_link) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); } &&
5356          { ac_try='test -s conftest$ac_exeext'
5357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358   (eval $ac_try) 2>&5
5359   ac_status=$?
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); }; }; then
5362   ac_cv_lib_termcap_tgetent=yes
5363 else
5364   echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5366
5367 ac_cv_lib_termcap_tgetent=no
5368 fi
5369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5370 LIBS=$ac_check_lib_save_LIBS
5371 fi
5372 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5373 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5374 if test $ac_cv_lib_termcap_tgetent = yes; then
5375    CONS_LIBS="-ltermcap"
5376          CONS_OBJ="conio.o"
5377          CONS_SRC="conio.c"
5378          got_conio="yes"
5379          support_readline=no
5380
5381 cat >>confdefs.h <<\_ACEOF
5382 #define HAVE_CONIO 1
5383 _ACEOF
5384
5385
5386 else
5387    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5388 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5389 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5390   echo $ECHO_N "(cached) $ECHO_C" >&6
5391 else
5392   ac_check_lib_save_LIBS=$LIBS
5393 LIBS="-lncurses  $LIBS"
5394 cat >conftest.$ac_ext <<_ACEOF
5395 #line $LINENO "configure"
5396 /* confdefs.h.  */
5397 _ACEOF
5398 cat confdefs.h >>conftest.$ac_ext
5399 cat >>conftest.$ac_ext <<_ACEOF
5400 /* end confdefs.h.  */
5401
5402 /* Override any gcc2 internal prototype to avoid an error.  */
5403 #ifdef __cplusplus
5404 extern "C"
5405 #endif
5406 /* We use char because int might match the return type of a gcc2
5407    builtin and then its argument prototype would still apply.  */
5408 char tgetent ();
5409 int
5410 main ()
5411 {
5412 tgetent ();
5413   ;
5414   return 0;
5415 }
5416 _ACEOF
5417 rm -f conftest.$ac_objext conftest$ac_exeext
5418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5419   (eval $ac_link) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); } &&
5423          { ac_try='test -s conftest$ac_exeext'
5424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5425   (eval $ac_try) 2>&5
5426   ac_status=$?
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); }; }; then
5429   ac_cv_lib_ncurses_tgetent=yes
5430 else
5431   echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5433
5434 ac_cv_lib_ncurses_tgetent=no
5435 fi
5436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5437 LIBS=$ac_check_lib_save_LIBS
5438 fi
5439 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5440 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5441 if test $ac_cv_lib_ncurses_tgetent = yes; then
5442    CONS_LIBS="-lncurses"
5443            CONS_OBJ="conio.o"
5444            CONS_SRC="conio.c"
5445            got_conio="yes"
5446            support_readline=no
5447
5448 cat >>confdefs.h <<\_ACEOF
5449 #define HAVE_CONIO 1
5450 _ACEOF
5451
5452
5453 fi
5454
5455
5456 fi
5457
5458
5459 else
5460
5461
5462 for ac_header in curses.h
5463 do
5464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5466   echo "$as_me:$LINENO: checking for $ac_header" >&5
5467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5469   echo $ECHO_N "(cached) $ECHO_C" >&6
5470 fi
5471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5473 else
5474   # Is the header compilable?
5475 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5477 cat >conftest.$ac_ext <<_ACEOF
5478 #line $LINENO "configure"
5479 /* confdefs.h.  */
5480 _ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h.  */
5484 $ac_includes_default
5485 #include <$ac_header>
5486 _ACEOF
5487 rm -f conftest.$ac_objext
5488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5489   (eval $ac_compile) 2>&5
5490   ac_status=$?
5491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492   (exit $ac_status); } &&
5493          { ac_try='test -s conftest.$ac_objext'
5494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5495   (eval $ac_try) 2>&5
5496   ac_status=$?
5497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498   (exit $ac_status); }; }; then
5499   ac_header_compiler=yes
5500 else
5501   echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504 ac_header_compiler=no
5505 fi
5506 rm -f conftest.$ac_objext conftest.$ac_ext
5507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5508 echo "${ECHO_T}$ac_header_compiler" >&6
5509
5510 # Is the header present?
5511 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5513 cat >conftest.$ac_ext <<_ACEOF
5514 #line $LINENO "configure"
5515 /* confdefs.h.  */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h.  */
5520 #include <$ac_header>
5521 _ACEOF
5522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5523   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5524   ac_status=$?
5525   grep -v '^ *+' conftest.er1 >conftest.err
5526   rm -f conftest.er1
5527   cat conftest.err >&5
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); } >/dev/null; then
5530   if test -s conftest.err; then
5531     ac_cpp_err=$ac_c_preproc_warn_flag
5532   else
5533     ac_cpp_err=
5534   fi
5535 else
5536   ac_cpp_err=yes
5537 fi
5538 if test -z "$ac_cpp_err"; then
5539   ac_header_preproc=yes
5540 else
5541   echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544   ac_header_preproc=no
5545 fi
5546 rm -f conftest.err conftest.$ac_ext
5547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5548 echo "${ECHO_T}$ac_header_preproc" >&6
5549
5550 # So?  What about this header?
5551 case $ac_header_compiler:$ac_header_preproc in
5552   yes:no )
5553     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5557     (
5558       cat <<\_ASBOX
5559 ## ------------------------------------ ##
5560 ## Report this to bug-autoconf@gnu.org. ##
5561 ## ------------------------------------ ##
5562 _ASBOX
5563     ) |
5564       sed "s/^/$as_me: WARNING:     /" >&2
5565     ;;
5566   no:yes )
5567     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5569     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5573     (
5574       cat <<\_ASBOX
5575 ## ------------------------------------ ##
5576 ## Report this to bug-autoconf@gnu.org. ##
5577 ## ------------------------------------ ##
5578 _ASBOX
5579     ) |
5580       sed "s/^/$as_me: WARNING:     /" >&2
5581     ;;
5582 esac
5583 echo "$as_me:$LINENO: checking for $ac_header" >&5
5584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5586   echo $ECHO_N "(cached) $ECHO_C" >&6
5587 else
5588   eval "$as_ac_Header=$ac_header_preproc"
5589 fi
5590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5592
5593 fi
5594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5595   cat >>confdefs.h <<_ACEOF
5596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5597 _ACEOF
5598
5599 fi
5600
5601 done
5602
5603          echo "$as_me:$LINENO: checking for term.h" >&5
5604 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5605 if test "${ac_cv_header_term_h+set}" = set; then
5606   echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608   cat >conftest.$ac_ext <<_ACEOF
5609 #line $LINENO "configure"
5610 /* confdefs.h.  */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h.  */
5615 #if HAVE_CURSES_H
5616 #include <curses.h>
5617 #endif
5618
5619
5620 #include <term.h>
5621 _ACEOF
5622 rm -f conftest.$ac_objext
5623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624   (eval $ac_compile) 2>&5
5625   ac_status=$?
5626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627   (exit $ac_status); } &&
5628          { ac_try='test -s conftest.$ac_objext'
5629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630   (eval $ac_try) 2>&5
5631   ac_status=$?
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); }; }; then
5634   ac_cv_header_term_h=yes
5635 else
5636   echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5638
5639 ac_cv_header_term_h=no
5640 fi
5641 rm -f conftest.$ac_objext conftest.$ac_ext
5642 fi
5643 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5644 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5645 if test $ac_cv_header_term_h = yes; then
5646    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5647 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5648 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5649   echo $ECHO_N "(cached) $ECHO_C" >&6
5650 else
5651   ac_check_lib_save_LIBS=$LIBS
5652 LIBS="-lcurses  $LIBS"
5653 cat >conftest.$ac_ext <<_ACEOF
5654 #line $LINENO "configure"
5655 /* confdefs.h.  */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h.  */
5660
5661 /* Override any gcc2 internal prototype to avoid an error.  */
5662 #ifdef __cplusplus
5663 extern "C"
5664 #endif
5665 /* We use char because int might match the return type of a gcc2
5666    builtin and then its argument prototype would still apply.  */
5667 char tgetent ();
5668 int
5669 main ()
5670 {
5671 tgetent ();
5672   ;
5673   return 0;
5674 }
5675 _ACEOF
5676 rm -f conftest.$ac_objext conftest$ac_exeext
5677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5678   (eval $ac_link) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); } &&
5682          { ac_try='test -s conftest$ac_exeext'
5683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5684   (eval $ac_try) 2>&5
5685   ac_status=$?
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); }; }; then
5688   ac_cv_lib_curses_tgetent=yes
5689 else
5690   echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693 ac_cv_lib_curses_tgetent=no
5694 fi
5695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5696 LIBS=$ac_check_lib_save_LIBS
5697 fi
5698 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5699 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5700 if test $ac_cv_lib_curses_tgetent = yes; then
5701    CONS_LIBS="-lcurses"
5702                    CONS_OBJ="conio.o"
5703                    CONS_SRC="conio.c"
5704                    got_conio="yes"
5705                    support_readline=no
5706
5707 cat >>confdefs.h <<\_ACEOF
5708 #define HAVE_CONIO 1
5709 _ACEOF
5710
5711
5712 fi
5713
5714
5715 else
5716    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5717 fi
5718
5719
5720
5721 fi
5722
5723
5724 fi
5725
5726
5727 # ---------------------------------------------------
5728 # Check for readline support/directory (default off)
5729 # ---------------------------------------------------
5730 # this allows you to turn it completely off
5731 # Check whether --enable-readline or --disable-readline was given.
5732 if test "${enable_readline+set}" = set; then
5733   enableval="$enable_readline"
5734   if test x$enableval = xno; then
5735     support_readline=no
5736   fi
5737 fi;
5738
5739 got_readline="no"
5740 READLINE_SRC=
5741 if test x$support_readline = xyes; then
5742
5743 # Check whether --with-readline or --without-readline was given.
5744 if test "${with_readline+set}" = set; then
5745   withval="$with_readline"
5746
5747         case "$with_readline" in
5748         no) : ;;
5749         yes|*)
5750           if test "$with_readline" != "yes"; then
5751             CONS_INC="-I${with_readline}"
5752             CONS_LDFLAGS="-L$with_readline"
5753           else
5754              with_readline="/usr/include/readline"
5755           fi
5756           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5758   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5759 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5761   echo $ECHO_N "(cached) $ECHO_C" >&6
5762 fi
5763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5764 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5765 else
5766   # Is the header compilable?
5767 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5768 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5769 cat >conftest.$ac_ext <<_ACEOF
5770 #line $LINENO "configure"
5771 /* confdefs.h.  */
5772 _ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h.  */
5776 $ac_includes_default
5777 #include <${with_readline}/readline.h>
5778 _ACEOF
5779 rm -f conftest.$ac_objext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781   (eval $ac_compile) 2>&5
5782   ac_status=$?
5783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784   (exit $ac_status); } &&
5785          { ac_try='test -s conftest.$ac_objext'
5786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787   (eval $ac_try) 2>&5
5788   ac_status=$?
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); }; }; then
5791   ac_header_compiler=yes
5792 else
5793   echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5795
5796 ac_header_compiler=no
5797 fi
5798 rm -f conftest.$ac_objext conftest.$ac_ext
5799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5800 echo "${ECHO_T}$ac_header_compiler" >&6
5801
5802 # Is the header present?
5803 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5804 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5805 cat >conftest.$ac_ext <<_ACEOF
5806 #line $LINENO "configure"
5807 /* confdefs.h.  */
5808 _ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h.  */
5812 #include <${with_readline}/readline.h>
5813 _ACEOF
5814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5815   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5816   ac_status=$?
5817   grep -v '^ *+' conftest.er1 >conftest.err
5818   rm -f conftest.er1
5819   cat conftest.err >&5
5820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821   (exit $ac_status); } >/dev/null; then
5822   if test -s conftest.err; then
5823     ac_cpp_err=$ac_c_preproc_warn_flag
5824   else
5825     ac_cpp_err=
5826   fi
5827 else
5828   ac_cpp_err=yes
5829 fi
5830 if test -z "$ac_cpp_err"; then
5831   ac_header_preproc=yes
5832 else
5833   echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.$ac_ext >&5
5835
5836   ac_header_preproc=no
5837 fi
5838 rm -f conftest.err conftest.$ac_ext
5839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5840 echo "${ECHO_T}$ac_header_preproc" >&6
5841
5842 # So?  What about this header?
5843 case $ac_header_compiler:$ac_header_preproc in
5844   yes:no )
5845     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5846 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5847     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5848 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5849     (
5850       cat <<\_ASBOX
5851 ## ------------------------------------ ##
5852 ## Report this to bug-autoconf@gnu.org. ##
5853 ## ------------------------------------ ##
5854 _ASBOX
5855     ) |
5856       sed "s/^/$as_me: WARNING:     /" >&2
5857     ;;
5858   no:yes )
5859     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5860 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5861     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5862 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5863     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5864 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5865     (
5866       cat <<\_ASBOX
5867 ## ------------------------------------ ##
5868 ## Report this to bug-autoconf@gnu.org. ##
5869 ## ------------------------------------ ##
5870 _ASBOX
5871     ) |
5872       sed "s/^/$as_me: WARNING:     /" >&2
5873     ;;
5874 esac
5875 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5876 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   eval "$as_ac_Header=$ac_header_preproc"
5881 fi
5882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5884
5885 fi
5886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5887    cat >>confdefs.h <<\_ACEOF
5888 #define HAVE_READLINE 1
5889 _ACEOF
5890
5891                CONS_LIBS="-lreadline -ltermcap"
5892                got_readline="yes"
5893
5894 else
5895    echo " "
5896                echo "readline.h not found. readline turned off ..."
5897                echo " "
5898
5899
5900 fi
5901
5902
5903           ;;
5904         esac
5905
5906 else
5907
5908        # check for standard readline library
5909        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5910   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5911 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5912 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5913   echo $ECHO_N "(cached) $ECHO_C" >&6
5914 fi
5915 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5916 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5917 else
5918   # Is the header compilable?
5919 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5920 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5921 cat >conftest.$ac_ext <<_ACEOF
5922 #line $LINENO "configure"
5923 /* confdefs.h.  */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h.  */
5928 $ac_includes_default
5929 #include </usr/include/readline/readline.h>
5930 _ACEOF
5931 rm -f conftest.$ac_objext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933   (eval $ac_compile) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); } &&
5937          { ac_try='test -s conftest.$ac_objext'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; }; then
5943   ac_header_compiler=yes
5944 else
5945   echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 ac_header_compiler=no
5949 fi
5950 rm -f conftest.$ac_objext conftest.$ac_ext
5951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5952 echo "${ECHO_T}$ac_header_compiler" >&6
5953
5954 # Is the header present?
5955 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5956 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5957 cat >conftest.$ac_ext <<_ACEOF
5958 #line $LINENO "configure"
5959 /* confdefs.h.  */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h.  */
5964 #include </usr/include/readline/readline.h>
5965 _ACEOF
5966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5967   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5968   ac_status=$?
5969   grep -v '^ *+' conftest.er1 >conftest.err
5970   rm -f conftest.er1
5971   cat conftest.err >&5
5972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973   (exit $ac_status); } >/dev/null; then
5974   if test -s conftest.err; then
5975     ac_cpp_err=$ac_c_preproc_warn_flag
5976   else
5977     ac_cpp_err=
5978   fi
5979 else
5980   ac_cpp_err=yes
5981 fi
5982 if test -z "$ac_cpp_err"; then
5983   ac_header_preproc=yes
5984 else
5985   echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5987
5988   ac_header_preproc=no
5989 fi
5990 rm -f conftest.err conftest.$ac_ext
5991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5992 echo "${ECHO_T}$ac_header_preproc" >&6
5993
5994 # So?  What about this header?
5995 case $ac_header_compiler:$ac_header_preproc in
5996   yes:no )
5997     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5998 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5999     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6000 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6001     (
6002       cat <<\_ASBOX
6003 ## ------------------------------------ ##
6004 ## Report this to bug-autoconf@gnu.org. ##
6005 ## ------------------------------------ ##
6006 _ASBOX
6007     ) |
6008       sed "s/^/$as_me: WARNING:     /" >&2
6009     ;;
6010   no:yes )
6011     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6012 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6013     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6014 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6015     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6016 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6017     (
6018       cat <<\_ASBOX
6019 ## ------------------------------------ ##
6020 ## Report this to bug-autoconf@gnu.org. ##
6021 ## ------------------------------------ ##
6022 _ASBOX
6023     ) |
6024       sed "s/^/$as_me: WARNING:     /" >&2
6025     ;;
6026 esac
6027 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6028 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6029 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6033 fi
6034 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6035 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6036
6037 fi
6038 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6039    cat >>confdefs.h <<\_ACEOF
6040 #define HAVE_READLINE 1
6041 _ACEOF
6042
6043            got_readline="yes"
6044            CONS_INC="-I/usr/include/readline"
6045            CONS_LIBS="-lreadline -ltermcap"
6046
6047 else
6048
6049            # Did not find standard library, so try Bacula's default
6050             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6052   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6053 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 fi
6057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6059 else
6060   # Is the header compilable?
6061 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6062 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6063 cat >conftest.$ac_ext <<_ACEOF
6064 #line $LINENO "configure"
6065 /* confdefs.h.  */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h.  */
6070 $ac_includes_default
6071 #include <${TOP_DIR}/depkgs/readline/readline.h>
6072 _ACEOF
6073 rm -f conftest.$ac_objext
6074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6075   (eval $ac_compile) 2>&5
6076   ac_status=$?
6077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078   (exit $ac_status); } &&
6079          { ac_try='test -s conftest.$ac_objext'
6080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081   (eval $ac_try) 2>&5
6082   ac_status=$?
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); }; }; then
6085   ac_header_compiler=yes
6086 else
6087   echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6089
6090 ac_header_compiler=no
6091 fi
6092 rm -f conftest.$ac_objext conftest.$ac_ext
6093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6094 echo "${ECHO_T}$ac_header_compiler" >&6
6095
6096 # Is the header present?
6097 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6098 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
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 #include <${TOP_DIR}/depkgs/readline/readline.h>
6107 _ACEOF
6108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6110   ac_status=$?
6111   grep -v '^ *+' conftest.er1 >conftest.err
6112   rm -f conftest.er1
6113   cat conftest.err >&5
6114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115   (exit $ac_status); } >/dev/null; then
6116   if test -s conftest.err; then
6117     ac_cpp_err=$ac_c_preproc_warn_flag
6118   else
6119     ac_cpp_err=
6120   fi
6121 else
6122   ac_cpp_err=yes
6123 fi
6124 if test -z "$ac_cpp_err"; then
6125   ac_header_preproc=yes
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130   ac_header_preproc=no
6131 fi
6132 rm -f conftest.err conftest.$ac_ext
6133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6134 echo "${ECHO_T}$ac_header_preproc" >&6
6135
6136 # So?  What about this header?
6137 case $ac_header_compiler:$ac_header_preproc in
6138   yes:no )
6139     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6140 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6141     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6142 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6143     (
6144       cat <<\_ASBOX
6145 ## ------------------------------------ ##
6146 ## Report this to bug-autoconf@gnu.org. ##
6147 ## ------------------------------------ ##
6148 _ASBOX
6149     ) |
6150       sed "s/^/$as_me: WARNING:     /" >&2
6151     ;;
6152   no:yes )
6153     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6154 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6155     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6156 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6157     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6158 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6159     (
6160       cat <<\_ASBOX
6161 ## ------------------------------------ ##
6162 ## Report this to bug-autoconf@gnu.org. ##
6163 ## ------------------------------------ ##
6164 _ASBOX
6165     ) |
6166       sed "s/^/$as_me: WARNING:     /" >&2
6167     ;;
6168 esac
6169 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6170 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6172   echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174   eval "$as_ac_Header=$ac_header_preproc"
6175 fi
6176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6178
6179 fi
6180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6181    cat >>confdefs.h <<\_ACEOF
6182 #define HAVE_READLINE 1
6183 _ACEOF
6184
6185                  got_readline="yes"
6186                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6187                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6188                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6189                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6190
6191 else
6192    echo " "
6193                 echo "readline.h not found. readline turned off ..."
6194                 echo " "
6195
6196
6197 fi
6198
6199
6200
6201
6202 fi
6203
6204
6205
6206
6207 fi;
6208 fi
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219 # Minimal stuff for readline Makefile configuration
6220 MAKE_SHELL=/bin/sh
6221
6222 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6223 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6224 if test "${ac_cv_header_stat_broken+set}" = set; then
6225   echo $ECHO_N "(cached) $ECHO_C" >&6
6226 else
6227   cat >conftest.$ac_ext <<_ACEOF
6228 #line $LINENO "configure"
6229 /* confdefs.h.  */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h.  */
6234 #include <sys/types.h>
6235 #include <sys/stat.h>
6236
6237 #if defined(S_ISBLK) && defined(S_IFDIR)
6238 # if S_ISBLK (S_IFDIR)
6239 You lose.
6240 # endif
6241 #endif
6242
6243 #if defined(S_ISBLK) && defined(S_IFCHR)
6244 # if S_ISBLK (S_IFCHR)
6245 You lose.
6246 # endif
6247 #endif
6248
6249 #if defined(S_ISLNK) && defined(S_IFREG)
6250 # if S_ISLNK (S_IFREG)
6251 You lose.
6252 # endif
6253 #endif
6254
6255 #if defined(S_ISSOCK) && defined(S_IFREG)
6256 # if S_ISSOCK (S_IFREG)
6257 You lose.
6258 # endif
6259 #endif
6260
6261 _ACEOF
6262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6263   $EGREP "You lose" >/dev/null 2>&1; then
6264   ac_cv_header_stat_broken=yes
6265 else
6266   ac_cv_header_stat_broken=no
6267 fi
6268 rm -f conftest*
6269
6270 fi
6271 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6272 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6273 if test $ac_cv_header_stat_broken = yes; then
6274
6275 cat >>confdefs.h <<\_ACEOF
6276 #define STAT_MACROS_BROKEN 1
6277 _ACEOF
6278
6279 fi
6280
6281
6282
6283
6284
6285
6286 ac_header_dirent=no
6287 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6288   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6289 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6290 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6292   echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294   cat >conftest.$ac_ext <<_ACEOF
6295 #line $LINENO "configure"
6296 /* confdefs.h.  */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h.  */
6301 #include <sys/types.h>
6302 #include <$ac_hdr>
6303
6304 int
6305 main ()
6306 {
6307 if ((DIR *) 0)
6308 return 0;
6309   ;
6310   return 0;
6311 }
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6315   (eval $ac_compile) 2>&5
6316   ac_status=$?
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); } &&
6319          { ac_try='test -s conftest.$ac_objext'
6320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6321   (eval $ac_try) 2>&5
6322   ac_status=$?
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); }; }; then
6325   eval "$as_ac_Header=yes"
6326 else
6327   echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6329
6330 eval "$as_ac_Header=no"
6331 fi
6332 rm -f conftest.$ac_objext conftest.$ac_ext
6333 fi
6334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6337   cat >>confdefs.h <<_ACEOF
6338 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6339 _ACEOF
6340
6341 ac_header_dirent=$ac_hdr; break
6342 fi
6343
6344 done
6345 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6346 if test $ac_header_dirent = dirent.h; then
6347   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6348 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6349 if test "${ac_cv_search_opendir+set}" = set; then
6350   echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352   ac_func_search_save_LIBS=$LIBS
6353 ac_cv_search_opendir=no
6354 cat >conftest.$ac_ext <<_ACEOF
6355 #line $LINENO "configure"
6356 /* confdefs.h.  */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h.  */
6361
6362 /* Override any gcc2 internal prototype to avoid an error.  */
6363 #ifdef __cplusplus
6364 extern "C"
6365 #endif
6366 /* We use char because int might match the return type of a gcc2
6367    builtin and then its argument prototype would still apply.  */
6368 char opendir ();
6369 int
6370 main ()
6371 {
6372 opendir ();
6373   ;
6374   return 0;
6375 }
6376 _ACEOF
6377 rm -f conftest.$ac_objext conftest$ac_exeext
6378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6379   (eval $ac_link) 2>&5
6380   ac_status=$?
6381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382   (exit $ac_status); } &&
6383          { ac_try='test -s conftest$ac_exeext'
6384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385   (eval $ac_try) 2>&5
6386   ac_status=$?
6387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388   (exit $ac_status); }; }; then
6389   ac_cv_search_opendir="none required"
6390 else
6391   echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6393
6394 fi
6395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6396 if test "$ac_cv_search_opendir" = no; then
6397   for ac_lib in dir; do
6398     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6399     cat >conftest.$ac_ext <<_ACEOF
6400 #line $LINENO "configure"
6401 /* confdefs.h.  */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h.  */
6406
6407 /* Override any gcc2 internal prototype to avoid an error.  */
6408 #ifdef __cplusplus
6409 extern "C"
6410 #endif
6411 /* We use char because int might match the return type of a gcc2
6412    builtin and then its argument prototype would still apply.  */
6413 char opendir ();
6414 int
6415 main ()
6416 {
6417 opendir ();
6418   ;
6419   return 0;
6420 }
6421 _ACEOF
6422 rm -f conftest.$ac_objext conftest$ac_exeext
6423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6424   (eval $ac_link) 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); } &&
6428          { ac_try='test -s conftest$ac_exeext'
6429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6430   (eval $ac_try) 2>&5
6431   ac_status=$?
6432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433   (exit $ac_status); }; }; then
6434   ac_cv_search_opendir="-l$ac_lib"
6435 break
6436 else
6437   echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6439
6440 fi
6441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6442   done
6443 fi
6444 LIBS=$ac_func_search_save_LIBS
6445 fi
6446 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6447 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6448 if test "$ac_cv_search_opendir" != no; then
6449   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6450
6451 fi
6452
6453 else
6454   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6455 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6456 if test "${ac_cv_search_opendir+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   ac_func_search_save_LIBS=$LIBS
6460 ac_cv_search_opendir=no
6461 cat >conftest.$ac_ext <<_ACEOF
6462 #line $LINENO "configure"
6463 /* confdefs.h.  */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h.  */
6468
6469 /* Override any gcc2 internal prototype to avoid an error.  */
6470 #ifdef __cplusplus
6471 extern "C"
6472 #endif
6473 /* We use char because int might match the return type of a gcc2
6474    builtin and then its argument prototype would still apply.  */
6475 char opendir ();
6476 int
6477 main ()
6478 {
6479 opendir ();
6480   ;
6481   return 0;
6482 }
6483 _ACEOF
6484 rm -f conftest.$ac_objext conftest$ac_exeext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6486   (eval $ac_link) 2>&5
6487   ac_status=$?
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); } &&
6490          { ac_try='test -s conftest$ac_exeext'
6491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492   (eval $ac_try) 2>&5
6493   ac_status=$?
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); }; }; then
6496   ac_cv_search_opendir="none required"
6497 else
6498   echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6500
6501 fi
6502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6503 if test "$ac_cv_search_opendir" = no; then
6504   for ac_lib in x; do
6505     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6506     cat >conftest.$ac_ext <<_ACEOF
6507 #line $LINENO "configure"
6508 /* confdefs.h.  */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h.  */
6513
6514 /* Override any gcc2 internal prototype to avoid an error.  */
6515 #ifdef __cplusplus
6516 extern "C"
6517 #endif
6518 /* We use char because int might match the return type of a gcc2
6519    builtin and then its argument prototype would still apply.  */
6520 char opendir ();
6521 int
6522 main ()
6523 {
6524 opendir ();
6525   ;
6526   return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest.$ac_objext conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531   (eval $ac_link) 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); } &&
6535          { ac_try='test -s conftest$ac_exeext'
6536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537   (eval $ac_try) 2>&5
6538   ac_status=$?
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); }; }; then
6541   ac_cv_search_opendir="-l$ac_lib"
6542 break
6543 else
6544   echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6546
6547 fi
6548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6549   done
6550 fi
6551 LIBS=$ac_func_search_save_LIBS
6552 fi
6553 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6554 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6555 if test "$ac_cv_search_opendir" != no; then
6556   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6557
6558 fi
6559
6560 fi
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6571 do
6572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6573 echo "$as_me:$LINENO: checking for $ac_func" >&5
6574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6575 if eval "test \"\${$as_ac_var+set}\" = set"; then
6576   echo $ECHO_N "(cached) $ECHO_C" >&6
6577 else
6578   cat >conftest.$ac_ext <<_ACEOF
6579 #line $LINENO "configure"
6580 /* confdefs.h.  */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h.  */
6585 /* System header to define __stub macros and hopefully few prototypes,
6586     which can conflict with char $ac_func (); below.
6587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6588     <limits.h> exists even on freestanding compilers.  */
6589 #ifdef __STDC__
6590 # include <limits.h>
6591 #else
6592 # include <assert.h>
6593 #endif
6594 /* Override any gcc2 internal prototype to avoid an error.  */
6595 #ifdef __cplusplus
6596 extern "C"
6597 {
6598 #endif
6599 /* We use char because int might match the return type of a gcc2
6600    builtin and then its argument prototype would still apply.  */
6601 char $ac_func ();
6602 /* The GNU C library defines this for functions which it implements
6603     to always fail with ENOSYS.  Some functions are actually named
6604     something starting with __ and the normal name is an alias.  */
6605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6606 choke me
6607 #else
6608 char (*f) () = $ac_func;
6609 #endif
6610 #ifdef __cplusplus
6611 }
6612 #endif
6613
6614 int
6615 main ()
6616 {
6617 return f != $ac_func;
6618   ;
6619   return 0;
6620 }
6621 _ACEOF
6622 rm -f conftest.$ac_objext conftest$ac_exeext
6623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6624   (eval $ac_link) 2>&5
6625   ac_status=$?
6626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627   (exit $ac_status); } &&
6628          { ac_try='test -s conftest$ac_exeext'
6629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6630   (eval $ac_try) 2>&5
6631   ac_status=$?
6632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633   (exit $ac_status); }; }; then
6634   eval "$as_ac_var=yes"
6635 else
6636   echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6638
6639 eval "$as_ac_var=no"
6640 fi
6641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6642 fi
6643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6645 if test `eval echo '${'$as_ac_var'}'` = yes; then
6646   cat >>confdefs.h <<_ACEOF
6647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6648 _ACEOF
6649
6650 fi
6651 done
6652
6653
6654
6655 for ac_func in nanosleep nl_langinfo
6656 do
6657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6658 echo "$as_me:$LINENO: checking for $ac_func" >&5
6659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6660 if eval "test \"\${$as_ac_var+set}\" = set"; then
6661   echo $ECHO_N "(cached) $ECHO_C" >&6
6662 else
6663   cat >conftest.$ac_ext <<_ACEOF
6664 #line $LINENO "configure"
6665 /* confdefs.h.  */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h.  */
6670 /* System header to define __stub macros and hopefully few prototypes,
6671     which can conflict with char $ac_func (); below.
6672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6673     <limits.h> exists even on freestanding compilers.  */
6674 #ifdef __STDC__
6675 # include <limits.h>
6676 #else
6677 # include <assert.h>
6678 #endif
6679 /* Override any gcc2 internal prototype to avoid an error.  */
6680 #ifdef __cplusplus
6681 extern "C"
6682 {
6683 #endif
6684 /* We use char because int might match the return type of a gcc2
6685    builtin and then its argument prototype would still apply.  */
6686 char $ac_func ();
6687 /* The GNU C library defines this for functions which it implements
6688     to always fail with ENOSYS.  Some functions are actually named
6689     something starting with __ and the normal name is an alias.  */
6690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6691 choke me
6692 #else
6693 char (*f) () = $ac_func;
6694 #endif
6695 #ifdef __cplusplus
6696 }
6697 #endif
6698
6699 int
6700 main ()
6701 {
6702 return f != $ac_func;
6703   ;
6704   return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6709   (eval $ac_link) 2>&5
6710   ac_status=$?
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); } &&
6713          { ac_try='test -s conftest$ac_exeext'
6714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715   (eval $ac_try) 2>&5
6716   ac_status=$?
6717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718   (exit $ac_status); }; }; then
6719   eval "$as_ac_var=yes"
6720 else
6721   echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6723
6724 eval "$as_ac_var=no"
6725 fi
6726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6727 fi
6728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6730 if test `eval echo '${'$as_ac_var'}'` = yes; then
6731   cat >>confdefs.h <<_ACEOF
6732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6733 _ACEOF
6734
6735 fi
6736 done
6737
6738
6739 for ac_header in varargs.h
6740 do
6741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6743   echo "$as_me:$LINENO: checking for $ac_header" >&5
6744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6746   echo $ECHO_N "(cached) $ECHO_C" >&6
6747 fi
6748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6750 else
6751   # Is the header compilable?
6752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6754 cat >conftest.$ac_ext <<_ACEOF
6755 #line $LINENO "configure"
6756 /* confdefs.h.  */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h.  */
6761 $ac_includes_default
6762 #include <$ac_header>
6763 _ACEOF
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6766   (eval $ac_compile) 2>&5
6767   ac_status=$?
6768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); } &&
6770          { ac_try='test -s conftest.$ac_objext'
6771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772   (eval $ac_try) 2>&5
6773   ac_status=$?
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); }; }; then
6776   ac_header_compiler=yes
6777 else
6778   echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6780
6781 ac_header_compiler=no
6782 fi
6783 rm -f conftest.$ac_objext conftest.$ac_ext
6784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6785 echo "${ECHO_T}$ac_header_compiler" >&6
6786
6787 # Is the header present?
6788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6790 cat >conftest.$ac_ext <<_ACEOF
6791 #line $LINENO "configure"
6792 /* confdefs.h.  */
6793 _ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h.  */
6797 #include <$ac_header>
6798 _ACEOF
6799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6801   ac_status=$?
6802   grep -v '^ *+' conftest.er1 >conftest.err
6803   rm -f conftest.er1
6804   cat conftest.err >&5
6805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); } >/dev/null; then
6807   if test -s conftest.err; then
6808     ac_cpp_err=$ac_c_preproc_warn_flag
6809   else
6810     ac_cpp_err=
6811   fi
6812 else
6813   ac_cpp_err=yes
6814 fi
6815 if test -z "$ac_cpp_err"; then
6816   ac_header_preproc=yes
6817 else
6818   echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6820
6821   ac_header_preproc=no
6822 fi
6823 rm -f conftest.err conftest.$ac_ext
6824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6825 echo "${ECHO_T}$ac_header_preproc" >&6
6826
6827 # So?  What about this header?
6828 case $ac_header_compiler:$ac_header_preproc in
6829   yes:no )
6830     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6832     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6834     (
6835       cat <<\_ASBOX
6836 ## ------------------------------------ ##
6837 ## Report this to bug-autoconf@gnu.org. ##
6838 ## ------------------------------------ ##
6839 _ASBOX
6840     ) |
6841       sed "s/^/$as_me: WARNING:     /" >&2
6842     ;;
6843   no:yes )
6844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6846     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6850     (
6851       cat <<\_ASBOX
6852 ## ------------------------------------ ##
6853 ## Report this to bug-autoconf@gnu.org. ##
6854 ## ------------------------------------ ##
6855 _ASBOX
6856     ) |
6857       sed "s/^/$as_me: WARNING:     /" >&2
6858     ;;
6859 esac
6860 echo "$as_me:$LINENO: checking for $ac_header" >&5
6861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6863   echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865   eval "$as_ac_Header=$ac_header_preproc"
6866 fi
6867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6869
6870 fi
6871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6872   cat >>confdefs.h <<_ACEOF
6873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6874 _ACEOF
6875
6876 fi
6877
6878 done
6879
6880
6881 # End of readline/conio stuff
6882 # -----------------------------------------------------------------------
6883
6884 # -------------------------------------------
6885 # check for cdrecord writer location
6886 # get scsibus,target,lun
6887 # -------------------------------------------
6888 CDSTL="3,0,0"
6889 if test ! x$CDRECORD = x ; then
6890    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
6891    if test x${CDSTL} = x ; then
6892       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
6893    fi
6894    if test x${CDSTL} = x ; then
6895       CDSTL="3,0,0"
6896    fi
6897 fi
6898
6899
6900
6901 # ---------------------------------------------------
6902 # Check for GMP support/directory
6903 # ---------------------------------------------------
6904 #GMP_SRC=
6905 #local_gmp="no"
6906 #AC_ARG_WITH(gmp,
6907 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6908 #  [
6909 #     case "$with_gmp" in
6910 #     no) : ;;
6911 #     yes|*)
6912 #       if test "$with_gmp" != "yes"; then
6913 #         GMP_INC="-I$with_gmp"
6914 #         GMP_LIBS="-lgmp"
6915 #         GMP_LDFLAGS="-L$with_gmp"
6916 #       else
6917 #          with_gmp="/usr/include"
6918 #       fi
6919 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6920 #          [ AC_MSG_RESULT(yes)
6921 #            AC_DEFINE(HAVE_GMP)
6922 #            GMP_LIBS="-lgmp"
6923 #            got_gmp="yes"
6924 #          ],
6925 #          [ AC_MSG_ERROR([*** gmp library missing])
6926 #          ]
6927 #       )
6928 #       ;;
6929 #     esac
6930 #  ],[
6931 #    # check for standard gmp library
6932 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6933 #    [ AC_MSG_RESULT(yes)
6934 #      AC_DEFINE(HAVE_GMP)
6935 #      got_gmp="yes"
6936 #      GMP_INC=
6937 #      GMP_LIBS="-lgmp"
6938 #    ], [
6939 #      # Did not find standard library, so use our own
6940 #      AC_MSG_RESULT(yes)
6941 #      AC_DEFINE(HAVE_GMP)
6942 #      got_gmp="yes"
6943 #      local_gmp="yes"
6944 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6945 #      GMP_LIBS="-lgmp"
6946 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6947 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6948 #    ])
6949 #  ]
6950 #)
6951 #AC_SUBST(GMP_INC)
6952 #AC_SUBST(GMP_LIBS)
6953 #AC_SUBST(GMP_LDFLAGS)
6954 #AC_SUBST(GMP_SRC)
6955
6956 # End of GMP stuff
6957 # -----------------------------------------------------------------------
6958
6959
6960 # ---------------------------------------------------
6961 # Check for CWEB support/directory
6962 # ---------------------------------------------------
6963 #CWEB_SRC=
6964 #CWEB=/bin
6965 #local_cweb="no"
6966 #AC_ARG_WITH(cweb,
6967 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6968 #  [
6969 #     case "$with_cweb" in
6970 #     no) : ;;
6971 #     yes|*)
6972 #       if test "$with_cweb" != "yes"; then
6973 #         CWEB_INC="-I$with_cweb"
6974 #         CWEB_LIBS="-lcweb"
6975 #         CWEB_LDFLAGS="-L$with_cweb"
6976 #       else
6977 #          with_cweb="/usr/include"
6978 #       fi
6979 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6980 #          [ AC_MSG_RESULT(yes)
6981 #            AC_DEFINE(HAVE_CWEB)
6982 #            CWEB_LIBS="-lcweb"
6983 #            got_cweb="yes"
6984 #          ],
6985 #          [ AC_MSG_ERROR([*** cweb library missing])
6986 #          ]
6987 #       )
6988 #       ;;
6989 #     esac
6990 #  ],[
6991 #    # check for standard cweb library
6992 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6993 #    [ AC_MSG_RESULT(yes)
6994 #      AC_DEFINE(HAVE_CWEB)
6995 #      got_cweb="yes"
6996 #      CWEB_INC=
6997 #      CWEB_LIBS="-lcweb"
6998 #    ], [
6999 #      # Did not find starndard library, so use our own
7000 #      AC_MSG_RESULT(yes)
7001 #      AC_DEFINE(HAVE_CWEB)
7002 #      got_cweb="yes"
7003 #      local_cweb="yes"
7004 #      CWEB=${TOP_DIR}/depkgs/cweb
7005 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7006 #      CWEB_LIBS="-lcweb"
7007 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7008 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7009 #    ])
7010 #  ]
7011 #)
7012 #AC_SUBST(CWEB)
7013 #AC_SUBST(CWEB_INC)
7014 #AC_SUBST(CWEB_LIBS)
7015 #AC_SUBST(CWEB_LDFLAGS)
7016 #AC_SUBST(CWEB_SRC)
7017
7018 # End of CWEB stuff
7019 # -----------------------------------------------------------------------
7020
7021 #
7022 # Find where sockets are (especially for Solaris)
7023 # Do this before the TCP Wrappers test since tcp wrappers
7024 # uses the socket library and some linkers are stupid.
7025 #
7026 echo "$as_me:$LINENO: checking for socket" >&5
7027 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7028 if test "${ac_cv_func_socket+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   cat >conftest.$ac_ext <<_ACEOF
7032 #line $LINENO "configure"
7033 /* confdefs.h.  */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h.  */
7038 /* System header to define __stub macros and hopefully few prototypes,
7039     which can conflict with char socket (); below.
7040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7041     <limits.h> exists even on freestanding compilers.  */
7042 #ifdef __STDC__
7043 # include <limits.h>
7044 #else
7045 # include <assert.h>
7046 #endif
7047 /* Override any gcc2 internal prototype to avoid an error.  */
7048 #ifdef __cplusplus
7049 extern "C"
7050 {
7051 #endif
7052 /* We use char because int might match the return type of a gcc2
7053    builtin and then its argument prototype would still apply.  */
7054 char socket ();
7055 /* The GNU C library defines this for functions which it implements
7056     to always fail with ENOSYS.  Some functions are actually named
7057     something starting with __ and the normal name is an alias.  */
7058 #if defined (__stub_socket) || defined (__stub___socket)
7059 choke me
7060 #else
7061 char (*f) () = socket;
7062 #endif
7063 #ifdef __cplusplus
7064 }
7065 #endif
7066
7067 int
7068 main ()
7069 {
7070 return f != socket;
7071   ;
7072   return 0;
7073 }
7074 _ACEOF
7075 rm -f conftest.$ac_objext conftest$ac_exeext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7077   (eval $ac_link) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); } &&
7081          { ac_try='test -s conftest$ac_exeext'
7082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083   (eval $ac_try) 2>&5
7084   ac_status=$?
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); }; }; then
7087   ac_cv_func_socket=yes
7088 else
7089   echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 ac_cv_func_socket=no
7093 fi
7094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7095 fi
7096 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7097 echo "${ECHO_T}$ac_cv_func_socket" >&6
7098 if test $ac_cv_func_socket = yes; then
7099   echo "$as_me:$LINENO: result: using libc's socket" >&5
7100 echo "${ECHO_T}using libc's socket" >&6
7101 else
7102
7103 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7104 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7105 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7106   echo $ECHO_N "(cached) $ECHO_C" >&6
7107 else
7108   ac_check_lib_save_LIBS=$LIBS
7109 LIBS="-lxnet  $LIBS"
7110 cat >conftest.$ac_ext <<_ACEOF
7111 #line $LINENO "configure"
7112 /* confdefs.h.  */
7113 _ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h.  */
7117
7118 /* Override any gcc2 internal prototype to avoid an error.  */
7119 #ifdef __cplusplus
7120 extern "C"
7121 #endif
7122 /* We use char because int might match the return type of a gcc2
7123    builtin and then its argument prototype would still apply.  */
7124 char socket ();
7125 int
7126 main ()
7127 {
7128 socket ();
7129   ;
7130   return 0;
7131 }
7132 _ACEOF
7133 rm -f conftest.$ac_objext conftest$ac_exeext
7134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7135   (eval $ac_link) 2>&5
7136   ac_status=$?
7137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138   (exit $ac_status); } &&
7139          { ac_try='test -s conftest$ac_exeext'
7140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141   (eval $ac_try) 2>&5
7142   ac_status=$?
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); }; }; then
7145   ac_cv_lib_xnet_socket=yes
7146 else
7147   echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7149
7150 ac_cv_lib_xnet_socket=no
7151 fi
7152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7153 LIBS=$ac_check_lib_save_LIBS
7154 fi
7155 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7156 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7157 if test $ac_cv_lib_xnet_socket = yes; then
7158   cat >>confdefs.h <<_ACEOF
7159 #define HAVE_LIBXNET 1
7160 _ACEOF
7161
7162   LIBS="-lxnet $LIBS"
7163
7164 fi
7165
7166
7167 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7168 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7169 if test "${ac_cv_lib_socket_socket+set}" = set; then
7170   echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172   ac_check_lib_save_LIBS=$LIBS
7173 LIBS="-lsocket  $LIBS"
7174 cat >conftest.$ac_ext <<_ACEOF
7175 #line $LINENO "configure"
7176 /* confdefs.h.  */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h.  */
7181
7182 /* Override any gcc2 internal prototype to avoid an error.  */
7183 #ifdef __cplusplus
7184 extern "C"
7185 #endif
7186 /* We use char because int might match the return type of a gcc2
7187    builtin and then its argument prototype would still apply.  */
7188 char socket ();
7189 int
7190 main ()
7191 {
7192 socket ();
7193   ;
7194   return 0;
7195 }
7196 _ACEOF
7197 rm -f conftest.$ac_objext conftest$ac_exeext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199   (eval $ac_link) 2>&5
7200   ac_status=$?
7201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202   (exit $ac_status); } &&
7203          { ac_try='test -s conftest$ac_exeext'
7204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205   (eval $ac_try) 2>&5
7206   ac_status=$?
7207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208   (exit $ac_status); }; }; then
7209   ac_cv_lib_socket_socket=yes
7210 else
7211   echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7213
7214 ac_cv_lib_socket_socket=no
7215 fi
7216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7217 LIBS=$ac_check_lib_save_LIBS
7218 fi
7219 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7220 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7221 if test $ac_cv_lib_socket_socket = yes; then
7222   cat >>confdefs.h <<_ACEOF
7223 #define HAVE_LIBSOCKET 1
7224 _ACEOF
7225
7226   LIBS="-lsocket $LIBS"
7227
7228 fi
7229
7230
7231 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7232 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7233 if test "${ac_cv_lib_inet_socket+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   ac_check_lib_save_LIBS=$LIBS
7237 LIBS="-linet  $LIBS"
7238 cat >conftest.$ac_ext <<_ACEOF
7239 #line $LINENO "configure"
7240 /* confdefs.h.  */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h.  */
7245
7246 /* Override any gcc2 internal prototype to avoid an error.  */
7247 #ifdef __cplusplus
7248 extern "C"
7249 #endif
7250 /* We use char because int might match the return type of a gcc2
7251    builtin and then its argument prototype would still apply.  */
7252 char socket ();
7253 int
7254 main ()
7255 {
7256 socket ();
7257   ;
7258   return 0;
7259 }
7260 _ACEOF
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7263   (eval $ac_link) 2>&5
7264   ac_status=$?
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); } &&
7267          { ac_try='test -s conftest$ac_exeext'
7268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269   (eval $ac_try) 2>&5
7270   ac_status=$?
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); }; }; then
7273   ac_cv_lib_inet_socket=yes
7274 else
7275   echo "$as_me: failed program was:" >&5
7276 sed 's/^/| /' conftest.$ac_ext >&5
7277
7278 ac_cv_lib_inet_socket=no
7279 fi
7280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7281 LIBS=$ac_check_lib_save_LIBS
7282 fi
7283 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7284 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7285 if test $ac_cv_lib_inet_socket = yes; then
7286   cat >>confdefs.h <<_ACEOF
7287 #define HAVE_LIBINET 1
7288 _ACEOF
7289
7290   LIBS="-linet $LIBS"
7291
7292 fi
7293
7294 fi
7295
7296
7297
7298 # -----------------------------------------------------------
7299 # Check whether user wants TCP wrappers support (default off)
7300 # -----------------------------------------------------------
7301 TCPW_MSG="no"
7302
7303 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7304 if test "${with_tcp_wrappers+set}" = set; then
7305   withval="$with_tcp_wrappers"
7306
7307     if test "x$withval" != "xno" ; then
7308        saved_LIBS="$LIBS"
7309        LIBS="$saved_LIBS -lwrap"
7310        echo "$as_me:$LINENO: checking for libwrap" >&5
7311 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7312        cat >conftest.$ac_ext <<_ACEOF
7313 #line $LINENO "configure"
7314 /* confdefs.h.  */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h.  */
7319  #include <tcpd.h>
7320              int deny_severity = 0;
7321              int allow_severity = 0;
7322              struct request_info *req;
7323 int
7324 main ()
7325 {
7326  hosts_access(req);
7327   ;
7328   return 0;
7329 }
7330 _ACEOF
7331 rm -f conftest.$ac_objext conftest$ac_exeext
7332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7333   (eval $ac_link) 2>&5
7334   ac_status=$?
7335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336   (exit $ac_status); } &&
7337          { ac_try='test -s conftest$ac_exeext'
7338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7339   (eval $ac_try) 2>&5
7340   ac_status=$?
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); }; }; then
7343
7344             echo "$as_me:$LINENO: result: yes" >&5
7345 echo "${ECHO_T}yes" >&6
7346             cat >>confdefs.h <<\_ACEOF
7347 #define HAVE_LIBWRAP 1
7348 _ACEOF
7349
7350             TCPW_MSG="yes"
7351
7352 else
7353   echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.$ac_ext >&5
7355
7356
7357             LIBS="$saved_LIBS -lwrap -lnsl"
7358             cat >conftest.$ac_ext <<_ACEOF
7359 #line $LINENO "configure"
7360 /* confdefs.h.  */
7361 _ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h.  */
7365  #include <tcpd.h>
7366                  int deny_severity = 0;
7367                  int allow_severity = 0;
7368                  struct request_info *req;
7369 int
7370 main ()
7371 {
7372  hosts_access(req);
7373   ;
7374   return 0;
7375 }
7376 _ACEOF
7377 rm -f conftest.$ac_objext conftest$ac_exeext
7378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7379   (eval $ac_link) 2>&5
7380   ac_status=$?
7381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382   (exit $ac_status); } &&
7383          { ac_try='test -s conftest$ac_exeext'
7384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385   (eval $ac_try) 2>&5
7386   ac_status=$?
7387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388   (exit $ac_status); }; }; then
7389
7390                  echo "$as_me:$LINENO: result: yes" >&5
7391 echo "${ECHO_T}yes" >&6
7392                  cat >>confdefs.h <<\_ACEOF
7393 #define HAVE_LIBWRAP 1
7394 _ACEOF
7395
7396                  TCPW_MSG="yes"
7397
7398 else
7399   echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7403 echo "$as_me: error: *** libwrap missing" >&2;}
7404    { (exit 1); exit 1; }; }
7405
7406 fi
7407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7408
7409 fi
7410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7411     fi
7412
7413
7414 fi;
7415
7416 # ------------------------------------------
7417 # Where to place working dir
7418 # ------------------------------------------
7419 working_dir=`eval echo ${prefix}/var/bacula/working`
7420
7421 # Check whether --with-working-dir or --without-working-dir was given.
7422 if test "${with_working_dir+set}" = set; then
7423   withval="$with_working_dir"
7424
7425        if test "x$withval" != "xno" ; then
7426               working_dir=$withval
7427        fi
7428
7429
7430 fi;
7431
7432
7433
7434
7435 # ------------------------------------------
7436 # Where to place scriptdir (script files)
7437 # ------------------------------------------
7438 scriptdir=`eval echo ${sysconfdir}`
7439
7440 # Check whether --with-scriptdir or --without-scriptdir was given.
7441 if test "${with_scriptdir+set}" = set; then
7442   withval="$with_scriptdir"
7443
7444        if test "x$withval" != "xno" ; then
7445               scriptdir=$withval
7446        fi
7447
7448
7449 fi;
7450
7451
7452
7453
7454 # ------------------------------------------
7455 # Where to send dump email
7456 # ------------------------------------------
7457 dump_email=root@localhost
7458
7459 # Check whether --with-dump-email or --without-dump-email was given.
7460 if test "${with_dump_email+set}" = set; then
7461   withval="$with_dump_email"
7462
7463        if test "x$withval" != "xno" ; then
7464               dump_email=$withval
7465        fi
7466
7467
7468 fi;
7469
7470
7471
7472 # ------------------------------------------
7473 # Where to send job email
7474 # ------------------------------------------
7475 job_email=root@localhost
7476
7477 # Check whether --with-job-email or --without-job-email was given.
7478 if test "${with_job_email+set}" = set; then
7479   withval="$with_job_email"
7480
7481        if test "x$withval" != "xno" ; then
7482               job_email=$withval
7483        fi
7484
7485
7486 fi;
7487
7488
7489
7490 # ------------------------------------------
7491 # Where to find smtp host
7492 # ------------------------------------------
7493 smtp_host=localhost
7494
7495 # Check whether --with-smtp_host or --without-smtp_host was given.
7496 if test "${with_smtp_host+set}" = set; then
7497   withval="$with_smtp_host"
7498
7499        if test "x$withval" != "xno" ; then
7500               smtp_host=$withval
7501        fi
7502
7503
7504 fi;
7505
7506
7507
7508
7509 # ------------------------------------
7510 # Where to place pid files
7511 # ------------------------------------
7512 piddir=/var/run
7513
7514 # Check whether --with-pid-dir or --without-pid-dir was given.
7515 if test "${with_pid_dir+set}" = set; then
7516   withval="$with_pid_dir"
7517
7518         if test "x$withval" != "xno" ; then
7519             piddir=$withval
7520         fi
7521
7522
7523 fi;
7524
7525 cat >>confdefs.h <<_ACEOF
7526 #define _PATH_BACULA_PIDDIR "$piddir"
7527 _ACEOF
7528
7529
7530
7531
7532 # ------------------------------------
7533 # Where to place subsys "lock file"
7534 # ------------------------------------
7535 subsysdir=/var/run/subsys
7536
7537 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7538 if test "${with_subsys_dir+set}" = set; then
7539   withval="$with_subsys_dir"
7540
7541         if test "x$withval" != "xno" ; then
7542             subsysdir=$withval
7543         fi
7544
7545
7546 fi;
7547
7548
7549
7550
7551
7552 # ------------------------------------
7553 # Where to start assigning ports
7554 # ------------------------------------
7555 baseport=9101
7556
7557 # Check whether --with-baseport or --without-baseport was given.
7558 if test "${with_baseport+set}" = set; then
7559   withval="$with_baseport"
7560
7561         if test "x$withval" != "xno" ; then
7562              baseport=$withval
7563         fi
7564
7565
7566 fi;
7567
7568
7569 dir_port=`expr $baseport`
7570 fd_port=`expr $baseport + 1`
7571 sd_port=`expr $fd_port + 1`
7572
7573
7574
7575
7576
7577
7578 # ------------------------------------------
7579 # Generate passwords
7580 # ------------------------------------------
7581 dir_password=
7582
7583 # Check whether --with-dir-password or --without-dir-password was given.
7584 if test "${with_dir_password+set}" = set; then
7585   withval="$with_dir_password"
7586
7587        if test "x$withval" != "xno" ; then
7588            dir_password=$withval
7589        fi
7590
7591
7592 fi;
7593
7594 if test "x$dir_password" = "x" ; then
7595    if test "x$OPENSSL" = "xnone" ; then
7596 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7597       key=`autoconf/randpass 33`
7598    else
7599       key=`openssl rand -base64 33`
7600    fi
7601    dir_password=$key
7602 fi
7603
7604 fd_password=
7605
7606 # Check whether --with-fd-password or --without-fd-password was given.
7607 if test "${with_fd_password+set}" = set; then
7608   withval="$with_fd_password"
7609
7610        if test "x$withval" != "xno" ; then
7611            fd_password=$withval
7612        fi
7613
7614
7615 fi;
7616
7617 if test "x$fd_password" = "x" ; then
7618    if test "x$OPENSSL" = "xnone" ; then
7619 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7620       key=`autoconf/randpass 37`
7621    else
7622       key=`openssl rand -base64 33`
7623    fi
7624    fd_password=$key
7625 fi
7626
7627 sd_password=
7628
7629 # Check whether --with-sd-password or --without-sd-password was given.
7630 if test "${with_sd_password+set}" = set; then
7631   withval="$with_sd_password"
7632
7633        if test "x$withval" != "xno" ; then
7634            sd_password=$withval
7635        fi
7636
7637
7638 fi;
7639
7640 if test "x$sd_password" = "x" ; then
7641    if test "x$OPENSSL" = "xnone" ; then
7642 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7643       key=`autoconf/randpass 41`
7644    else
7645       key=`openssl rand -base64 33`
7646    fi
7647    sd_password=$key
7648 fi
7649
7650 mon_dir_password=
7651
7652 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7653 if test "${with_mon_dir_password+set}" = set; then
7654   withval="$with_mon_dir_password"
7655
7656        if test "x$withval" != "xno" ; then
7657            mon_dir_password=$withval
7658        fi
7659
7660
7661 fi;
7662
7663 if test "x$mon_dir_password" = "x" ; then
7664    if test "x$OPENSSL" = "xnone" ; then
7665 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7666       key=`autoconf/randpass 33`
7667    else
7668       key=`openssl rand -base64 33`
7669    fi
7670    mon_dir_password=$key
7671 fi
7672
7673 mon_fd_password=
7674
7675 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7676 if test "${with_mon_fd_password+set}" = set; then
7677   withval="$with_mon_fd_password"
7678
7679        if test "x$withval" != "xno" ; then
7680            mon_fd_password=$withval
7681        fi
7682
7683
7684 fi;
7685
7686 if test "x$mon_fd_password" = "x" ; then
7687    if test "x$OPENSSL" = "xnone" ; then
7688 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7689       key=`autoconf/randpass 37`
7690    else
7691       key=`openssl rand -base64 33`
7692    fi
7693    mon_fd_password=$key
7694 fi
7695
7696 mon_sd_password=
7697
7698 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7699 if test "${with_mon_sd_password+set}" = set; then
7700   withval="$with_mon_sd_password"
7701
7702        if test "x$withval" != "xno" ; then
7703            mon_sd_password=$withval
7704        fi
7705
7706
7707 fi;
7708
7709 if test "x$mon_sd_password" = "x" ; then
7710    if test "x$OPENSSL" = "xnone" ; then
7711 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7712       key=`autoconf/randpass 41`
7713    else
7714       key=`openssl rand -base64 33`
7715    fi
7716    mon_sd_password=$key
7717 fi
7718
7719
7720
7721
7722
7723
7724
7725
7726 # -------------------------------------------------------------------------
7727 #  Set variables for bimagemgr installation
7728 # -------------------------------------------------------------------------
7729 bimagemgr_cgidir=/var/www/cgi-bin
7730
7731 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
7732 if test "${with_bimagemgr_cgidir+set}" = set; then
7733   withval="$with_bimagemgr_cgidir"
7734
7735        if test "x$withval" != "xno" ; then
7736            bimagemgr_cgidir=$withval
7737        fi
7738
7739
7740 fi;
7741
7742 bimagemgr_docdir=/var/www/html
7743
7744 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
7745 if test "${with_bimagemgr_docdir+set}" = set; then
7746   withval="$with_bimagemgr_docdir"
7747
7748        if test "x$withval" != "xno" ; then
7749            bimagemgr_docdir=$withval
7750        fi
7751
7752
7753 fi;
7754
7755 bimagemgr_binowner=root
7756
7757 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
7758 if test "${with_bimagemgr_binowner+set}" = set; then
7759   withval="$with_bimagemgr_binowner"
7760
7761        if test "x$withval" != "xno" ; then
7762            bimagemgr_binowner=$withval
7763        fi
7764
7765
7766 fi;
7767
7768 bimagemgr_bingroup=root
7769
7770 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
7771 if test "${with_bimagemgr_bingroup+set}" = set; then
7772   withval="$with_bimagemgr_bingroup"
7773
7774        if test "x$withval" != "xno" ; then
7775            bimagemgr_bingroup=$withval
7776        fi
7777
7778
7779 fi;
7780
7781 bimagemgr_dataowner=apache
7782
7783 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
7784 if test "${with_bimagemgr_dataowner+set}" = set; then
7785   withval="$with_bimagemgr_dataowner"
7786
7787        if test "x$withval" != "xno" ; then
7788            bimagemgr_dataowner=$withval
7789        fi
7790
7791
7792 fi;
7793
7794 bimagemgr_datagroup=apache
7795
7796 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
7797 if test "${with_bimagemgr_datagroup+set}" = set; then
7798   withval="$with_bimagemgr_datagroup"
7799
7800        if test "x$withval" != "xno" ; then
7801            bimagemgr_datagroup=$withval
7802        fi
7803
7804
7805 fi;
7806
7807
7808
7809
7810
7811
7812
7813
7814 #
7815 # Handle users and groups for each daemon
7816 #
7817 dir_user=
7818
7819 # Check whether --with-dir_user or --without-dir_user was given.
7820 if test "${with_dir_user+set}" = set; then
7821   withval="$with_dir_user"
7822
7823         if test "x$withval" != "x" ; then
7824              dir_user=$withval
7825         fi
7826
7827
7828 fi;
7829
7830 dir_group=
7831
7832 # Check whether --with-dir_group or --without-dir_group was given.
7833 if test "${with_dir_group+set}" = set; then
7834   withval="$with_dir_group"
7835
7836         if test "x$withval" != "x" ; then
7837              dir_group=$withval
7838         fi
7839
7840
7841 fi;
7842
7843 sd_user=
7844
7845 # Check whether --with-sd_user or --without-sd_user was given.
7846 if test "${with_sd_user+set}" = set; then
7847   withval="$with_sd_user"
7848
7849         if test "x$withval" != "x" ; then
7850              sd_user=$withval
7851         fi
7852
7853
7854 fi;
7855
7856 sd_group=
7857
7858 # Check whether --with-sd_group or --without-sd_group was given.
7859 if test "${with_sd_group+set}" = set; then
7860   withval="$with_sd_group"
7861
7862         if test "x$withval" != "x" ; then
7863              sd_group=$withval
7864         fi
7865
7866
7867 fi;
7868
7869 fd_user=
7870
7871 # Check whether --with-fd_user or --without-fd_user was given.
7872 if test "${with_fd_user+set}" = set; then
7873   withval="$with_fd_user"
7874
7875         if test "x$withval" != "x" ; then
7876              fd_user=$withval
7877         fi
7878
7879
7880 fi;
7881
7882 fd_group=
7883
7884 # Check whether --with-fd_group or --without-fd_group was given.
7885 if test "${with_fd_group+set}" = set; then
7886   withval="$with_fd_group"
7887
7888         if test "x$withval" != "x" ; then
7889              fd_group=$withval
7890         fi
7891
7892
7893 fi;
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905 #
7906 # allow setting default executable permissions
7907 #
7908 SBINPERM=0754
7909
7910 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7911 if test "${with_sbin_perm+set}" = set; then
7912   withval="$with_sbin_perm"
7913
7914         if test "x$withval" != "x" ; then
7915             SBINPERM=$withval
7916         fi
7917
7918
7919 fi;
7920
7921
7922
7923 # ------------------------------------------------
7924 # Bacula check for various SQL database engines
7925 # ------------------------------------------------
7926
7927 db_found=no
7928 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7929 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7930
7931 # Check whether --with-postgresql or --without-postgresql was given.
7932 if test "${with_postgresql+set}" = set; then
7933   withval="$with_postgresql"
7934
7935   if test "$withval" != "no"; then
7936       if test "$db_found" = "yes"; then
7937           echo "$as_me:$LINENO: result: error" >&5
7938 echo "${ECHO_T}error" >&6
7939           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7940 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7941    { (exit 1); exit 1; }; };
7942       fi
7943       if test "$withval" = "yes"; then
7944           if test -f /usr/local/include/libpq-fe.h; then
7945               POSTGRESQL_INCDIR=/usr/local/include
7946               POSTGRESQL_LIBDIR=/usr/local/lib
7947               POSTGRESQL_BINDIR=/usr/local/bin
7948           elif test -f /usr/include/libpq-fe.h; then
7949               POSTGRESQL_INCDIR=/usr/include
7950               POSTGRESQL_LIBDIR=/usr/lib
7951               POSTGRESQL_BINDIR=/usr/bin
7952           elif test -f /usr/include/pgsql/libpq-fe.h; then
7953               POSTGRESQL_INCDIR=/usr/include/pgsql
7954               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7955               POSTGRESQL_BINDIR=/usr/bin
7956           elif test -f /usr/include/postgresql/libpq-fe.h; then
7957               POSTGRESQL_INCDIR=/usr/include/postgresql
7958               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7959               POSTGRESQL_BINDIR=/usr/bin
7960           else
7961               echo "$as_me:$LINENO: result: no" >&5
7962 echo "${ECHO_T}no" >&6
7963               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7964 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7965    { (exit 1); exit 1; }; }
7966           fi
7967       elif test -f $withval/include/libpq-fe.h; then
7968           POSTGRESQL_INCDIR=$withval/include
7969           POSTGRESQL_LIBDIR=$withval/lib
7970           POSTGRESQL_BINDIR=$withval/bin
7971       elif test -f $withval/include/postgresql/libpq-fe.h; then
7972           POSTGRESQL_INCDIR=$withval/include/postgresql
7973           POSTGRESQL_LIBDIR=$withval/lib
7974           POSTGRESQL_BINDIR=$withval/bin
7975       else
7976           echo "$as_me:$LINENO: result: no" >&5
7977 echo "${ECHO_T}no" >&6
7978           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7979 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7980    { (exit 1); exit 1; }; }
7981       fi
7982       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7983       echo "$as_me:$LINENO: checking for crypt" >&5
7984 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7985 if test "${ac_cv_func_crypt+set}" = set; then
7986   echo $ECHO_N "(cached) $ECHO_C" >&6
7987 else
7988   cat >conftest.$ac_ext <<_ACEOF
7989 #line $LINENO "configure"
7990 /* confdefs.h.  */
7991 _ACEOF
7992 cat confdefs.h >>conftest.$ac_ext
7993 cat >>conftest.$ac_ext <<_ACEOF
7994 /* end confdefs.h.  */
7995 /* System header to define __stub macros and hopefully few prototypes,
7996     which can conflict with char crypt (); below.
7997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7998     <limits.h> exists even on freestanding compilers.  */
7999 #ifdef __STDC__
8000 # include <limits.h>
8001 #else
8002 # include <assert.h>
8003 #endif
8004 /* Override any gcc2 internal prototype to avoid an error.  */
8005 #ifdef __cplusplus
8006 extern "C"
8007 {
8008 #endif
8009 /* We use char because int might match the return type of a gcc2
8010    builtin and then its argument prototype would still apply.  */
8011 char crypt ();
8012 /* The GNU C library defines this for functions which it implements
8013     to always fail with ENOSYS.  Some functions are actually named
8014     something starting with __ and the normal name is an alias.  */
8015 #if defined (__stub_crypt) || defined (__stub___crypt)
8016 choke me
8017 #else
8018 char (*f) () = crypt;
8019 #endif
8020 #ifdef __cplusplus
8021 }
8022 #endif
8023
8024 int
8025 main ()
8026 {
8027 return f != crypt;
8028   ;
8029   return 0;
8030 }
8031 _ACEOF
8032 rm -f conftest.$ac_objext conftest$ac_exeext
8033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8034   (eval $ac_link) 2>&5
8035   ac_status=$?
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); } &&
8038          { ac_try='test -s conftest$ac_exeext'
8039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040   (eval $ac_try) 2>&5
8041   ac_status=$?
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); }; }; then
8044   ac_cv_func_crypt=yes
8045 else
8046   echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8048
8049 ac_cv_func_crypt=no
8050 fi
8051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8052 fi
8053 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8054 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8055 if test $ac_cv_func_crypt = yes; then
8056   :
8057 else
8058   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8059 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8060 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8061   echo $ECHO_N "(cached) $ECHO_C" >&6
8062 else
8063   ac_check_lib_save_LIBS=$LIBS
8064 LIBS="-lcrypt  $LIBS"
8065 cat >conftest.$ac_ext <<_ACEOF
8066 #line $LINENO "configure"
8067 /* confdefs.h.  */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h.  */
8072
8073 /* Override any gcc2 internal prototype to avoid an error.  */
8074 #ifdef __cplusplus
8075 extern "C"
8076 #endif
8077 /* We use char because int might match the return type of a gcc2
8078    builtin and then its argument prototype would still apply.  */
8079 char crypt ();
8080 int
8081 main ()
8082 {
8083 crypt ();
8084   ;
8085   return 0;
8086 }
8087 _ACEOF
8088 rm -f conftest.$ac_objext conftest$ac_exeext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090   (eval $ac_link) 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); } &&
8094          { ac_try='test -s conftest$ac_exeext'
8095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096   (eval $ac_try) 2>&5
8097   ac_status=$?
8098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099   (exit $ac_status); }; }; then
8100   ac_cv_lib_crypt_crypt=yes
8101 else
8102   echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105 ac_cv_lib_crypt_crypt=no
8106 fi
8107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8108 LIBS=$ac_check_lib_save_LIBS
8109 fi
8110 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8111 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8112 if test $ac_cv_lib_crypt_crypt = yes; then
8113   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8114 fi
8115
8116 fi
8117
8118       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8119       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8120       SQL_BINDIR=$POSTGRESQL_BINDIR
8121       cat >>confdefs.h <<\_ACEOF
8122 #define HAVE_POSTGRESQL 1
8123 _ACEOF
8124
8125       echo "$as_me:$LINENO: result: yes" >&5
8126 echo "${ECHO_T}yes" >&6
8127       db_found=yes
8128       support_postgresql=yes
8129       db_name=PostgreSQL
8130       DB_NAME=postgresql
8131   else
8132       echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6
8134   fi
8135
8136 else
8137
8138   echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6
8140
8141 fi;
8142
8143
8144
8145
8146
8147
8148
8149 db_found=no
8150 echo "$as_me:$LINENO: checking for MySQL support" >&5
8151 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8152
8153 # Check whether --with-mysql or --without-mysql was given.
8154 if test "${with_mysql+set}" = set; then
8155   withval="$with_mysql"
8156
8157   if test "$withval" != "no"; then
8158         if test "$withval" = "yes"; then
8159                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8160                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8161                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8162                         MYSQL_BINDIR=/usr/local/mysql/bin
8163                 elif test -f /usr/include/mysql/mysql.h; then
8164                         MYSQL_INCDIR=/usr/include/mysql
8165                         MYSQL_LIBDIR=/usr/lib/mysql
8166                         MYSQL_BINDIR=/usr/bin
8167                 elif test -f /usr/include/mysql.h; then
8168                         MYSQL_INCDIR=/usr/include
8169                         MYSQL_LIBDIR=/usr/lib
8170                         MYSQL_BINDIR=/usr/bin
8171                 elif test -f /usr/local/include/mysql/mysql.h; then
8172                         MYSQL_INCDIR=/usr/local/include/mysql
8173                         MYSQL_LIBDIR=/usr/local/lib/mysql
8174                         MYSQL_BINDIR=/usr/local/bin
8175                 elif test -f /usr/local/include/mysql.h; then
8176                         MYSQL_INCDIR=/usr/local/include
8177                         MYSQL_LIBDIR=/usr/local/lib
8178                         MYSQL_BINDIR=/usr/local/bin
8179                 else
8180                    echo "$as_me:$LINENO: result: no" >&5
8181 echo "${ECHO_T}no" >&6
8182                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8183 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8184    { (exit 1); exit 1; }; }
8185                 fi
8186         else
8187                 if test -f $withval/include/mysql/mysql.h; then
8188                         MYSQL_INCDIR=$withval/include/mysql
8189                         MYSQL_LIBDIR=$withval/lib/mysql
8190                         MYSQL_BINDIR=$withval/bin
8191                 elif test -f $withval/include/mysql.h; then
8192                         MYSQL_INCDIR=$withval/include
8193                         MYSQL_LIBDIR=$withval/lib
8194                         MYSQL_BINDIR=$withval/bin
8195                 else
8196                    echo "$as_me:$LINENO: result: no" >&5
8197 echo "${ECHO_T}no" >&6
8198                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8199 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8200    { (exit 1); exit 1; }; }
8201                 fi
8202         fi
8203     SQL_INCLUDE=-I$MYSQL_INCDIR
8204     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8205        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8206        cat >>confdefs.h <<\_ACEOF
8207 #define HAVE_THREAD_SAFE_MYSQL 1
8208 _ACEOF
8209
8210     else
8211        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8212     fi
8213     SQL_BINDIR=$MYSQL_BINDIR
8214
8215     cat >>confdefs.h <<\_ACEOF
8216 #define HAVE_MYSQL 1
8217 _ACEOF
8218
8219     echo "$as_me:$LINENO: result: yes" >&5
8220 echo "${ECHO_T}yes" >&6
8221     db_found=yes
8222     support_mysql=yes
8223     db_name=MySQL
8224     DB_NAME=mysql
8225
8226   else
8227         echo "$as_me:$LINENO: result: no" >&5
8228 echo "${ECHO_T}no" >&6
8229   fi
8230
8231
8232 fi;
8233
8234
8235 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8236 if test "${with_embedded_mysql+set}" = set; then
8237   withval="$with_embedded_mysql"
8238
8239   if test "$withval" != "no"; then
8240         if test "$withval" = "yes"; then
8241                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8242                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8243                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8244                         MYSQL_BINDIR=/usr/local/mysql/bin
8245                 elif test -f /usr/include/mysql/mysql.h; then
8246                         MYSQL_INCDIR=/usr/include/mysql
8247                         MYSQL_LIBDIR=/usr/lib/mysql
8248                         MYSQL_BINDIR=/usr/bin
8249                 elif test -f /usr/include/mysql.h; then
8250                         MYSQL_INCDIR=/usr/include
8251                         MYSQL_LIBDIR=/usr/lib
8252                         MYSQL_BINDIR=/usr/bin
8253                 elif test -f /usr/local/include/mysql/mysql.h; then
8254                         MYSQL_INCDIR=/usr/local/include/mysql
8255                         MYSQL_LIBDIR=/usr/local/lib/mysql
8256                         MYSQL_BINDIR=/usr/local/bin
8257                 elif test -f /usr/local/include/mysql.h; then
8258                         MYSQL_INCDIR=/usr/local/include
8259                         MYSQL_LIBDIR=/usr/local/lib
8260                         MYSQL_BINDIR=/usr/local/bin
8261                 else
8262                    echo "$as_me:$LINENO: result: no" >&5
8263 echo "${ECHO_T}no" >&6
8264                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8265 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8266    { (exit 1); exit 1; }; }
8267                 fi
8268         else
8269                 if test -f $withval/include/mysql/mysql.h; then
8270                         MYSQL_INCDIR=$withval/include/mysql
8271                         MYSQL_LIBDIR=$withval/lib/mysql
8272                         MYSQL_BINDIR=$withval/bin
8273                 elif test -f $withval/include/mysql.h; then
8274                         MYSQL_INCDIR=$withval/include
8275                         MYSQL_LIBDIR=$withval/lib
8276                         MYSQL_BINDIR=$withval/bin
8277                 else
8278                    echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6
8280                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8281 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8282    { (exit 1); exit 1; }; }
8283                 fi
8284         fi
8285     SQL_INCLUDE=-I$MYSQL_INCDIR
8286     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8287     SQL_BINDIR=$MYSQL_BINDIR
8288
8289     cat >>confdefs.h <<\_ACEOF
8290 #define HAVE_MYSQL 1
8291 _ACEOF
8292
8293     cat >>confdefs.h <<\_ACEOF
8294 #define HAVE_EMBEDDED_MYSQL 1
8295 _ACEOF
8296
8297     echo "$as_me:$LINENO: result: yes" >&5
8298 echo "${ECHO_T}yes" >&6
8299     db_found=yes
8300     support_mysql=yes
8301     db_name=MySQL
8302     DB_NAME=mysql
8303
8304   else
8305         echo "$as_me:$LINENO: result: no" >&5
8306 echo "${ECHO_T}no" >&6
8307   fi
8308
8309
8310 fi;
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320 db_found=no
8321 echo "$as_me:$LINENO: checking for SQLite support" >&5
8322 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8323
8324 # Check whether --with-sqlite or --without-sqlite was given.
8325 if test "${with_sqlite+set}" = set; then
8326   withval="$with_sqlite"
8327
8328   if test "$withval" != "no"; then
8329      if test "$withval" = "yes"; then
8330         if test -f /usr/local/include/sqlite.h; then
8331            SQLITE_INCDIR=/usr/local/include
8332            SQLITE_LIBDIR=/usr/local/lib
8333            SQLITE_BINDIR=/usr/local/bin
8334         elif test -f /usr/include/sqlite.h; then
8335            SQLITE_INCDIR=/usr/include
8336            SQLITE_LIBDIR=/usr/lib
8337            SQLITE_BINDIR=/usr/bin
8338         elif test -f $prefix/include/sqlite.h; then
8339            SQLITE_INCDIR=$prefix/include
8340            SQLITE_LIBDIR=$prefix/lib
8341            SQLITE_BINDIR=$prefix/bin
8342         else
8343            echo "$as_me:$LINENO: result: no" >&5
8344 echo "${ECHO_T}no" >&6
8345            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8346 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8347    { (exit 1); exit 1; }; }
8348         fi
8349      else
8350         if test -f $withval/sqlite.h; then
8351            SQLITE_INCDIR=$withval
8352            SQLITE_LIBDIR=$withval
8353            SQLITE_BINDIR=$withval
8354         elif test -f $withval/include/sqlite.h; then
8355            SQLITE_INCDIR=$withval/include
8356            SQLITE_LIBDIR=$withval/lib
8357            SQLITE_BINDIR=$withval/bin
8358         else
8359            echo "$as_me:$LINENO: result: no" >&5
8360 echo "${ECHO_T}no" >&6
8361            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8362 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8363    { (exit 1); exit 1; }; }
8364         fi
8365      fi
8366      SQL_INCLUDE=-I$SQLITE_INCDIR
8367      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8368      SQL_BINDIR=$SQLITE_BINDIR
8369
8370      cat >>confdefs.h <<\_ACEOF
8371 #define HAVE_SQLITE 1
8372 _ACEOF
8373
8374      echo "$as_me:$LINENO: result: yes" >&5
8375 echo "${ECHO_T}yes" >&6
8376      db_found=yes
8377      support_sqlite=yes
8378      db_name=SQLite
8379      DB_NAME=sqlite
8380
8381   else
8382      echo "$as_me:$LINENO: result: no" >&5
8383 echo "${ECHO_T}no" >&6
8384   fi
8385
8386 else
8387
8388   echo "$as_me:$LINENO: result: no" >&5
8389 echo "${ECHO_T}no" >&6
8390
8391 fi;
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401 cat >>confdefs.h <<\_ACEOF
8402 #define PROTOTYPES 1
8403 _ACEOF
8404
8405
8406 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8407     if test -z "$CCOPTS"; then
8408         CCOPTS='-g -O2 -Wall'
8409     fi
8410     CFLAGS="$CCOPTS"
8411 fi
8412
8413
8414
8415
8416 largefile_support="no"
8417
8418    # Check whether --enable-largefile or --disable-largefile was given.
8419 if test "${enable_largefile+set}" = set; then
8420   enableval="$enable_largefile"
8421
8422 fi;
8423    if test "$enable_largefile" != no; then
8424      if test -n "$ac_tool_prefix"; then
8425   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8426 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8427 echo "$as_me:$LINENO: checking for $ac_word" >&5
8428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8429 if test "${ac_cv_prog_GETCONF+set}" = set; then
8430   echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432   if test -n "$GETCONF"; then
8433   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8434 else
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8437 do
8438   IFS=$as_save_IFS
8439   test -z "$as_dir" && as_dir=.
8440   for ac_exec_ext in '' $ac_executable_extensions; do
8441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8444     break 2
8445   fi
8446 done
8447 done
8448
8449 fi
8450 fi
8451 GETCONF=$ac_cv_prog_GETCONF
8452 if test -n "$GETCONF"; then
8453   echo "$as_me:$LINENO: result: $GETCONF" >&5
8454 echo "${ECHO_T}$GETCONF" >&6
8455 else
8456   echo "$as_me:$LINENO: result: no" >&5
8457 echo "${ECHO_T}no" >&6
8458 fi
8459
8460 fi
8461 if test -z "$ac_cv_prog_GETCONF"; then
8462   ac_ct_GETCONF=$GETCONF
8463   # Extract the first word of "getconf", so it can be a program name with args.
8464 set dummy getconf; ac_word=$2
8465 echo "$as_me:$LINENO: checking for $ac_word" >&5
8466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8467 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8468   echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470   if test -n "$ac_ct_GETCONF"; then
8471   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8472 else
8473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474 for as_dir in $PATH
8475 do
8476   IFS=$as_save_IFS
8477   test -z "$as_dir" && as_dir=.
8478   for ac_exec_ext in '' $ac_executable_extensions; do
8479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8480     ac_cv_prog_ac_ct_GETCONF="getconf"
8481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8482     break 2
8483   fi
8484 done
8485 done
8486
8487 fi
8488 fi
8489 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8490 if test -n "$ac_ct_GETCONF"; then
8491   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8492 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8493 else
8494   echo "$as_me:$LINENO: result: no" >&5
8495 echo "${ECHO_T}no" >&6
8496 fi
8497
8498   GETCONF=$ac_ct_GETCONF
8499 else
8500   GETCONF="$ac_cv_prog_GETCONF"
8501 fi
8502
8503      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8504 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8505 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8506   echo $ECHO_N "(cached) $ECHO_C" >&6
8507 else
8508   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8509         ac_cv_sys_largefile_CFLAGS=no
8510         case "$host_os" in
8511            # IRIX 6.2 and later require cc -n32.
8512            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8513              if test "$GCC" != yes; then
8514                ac_cv_sys_largefile_CFLAGS=-n32
8515              fi
8516              ac_save_CC="$CC"
8517              CC="$CC $ac_cv_sys_largefile_CFLAGS"
8518              cat >conftest.$ac_ext <<_ACEOF
8519 #line $LINENO "configure"
8520 /* confdefs.h.  */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h.  */
8525
8526 int
8527 main ()
8528 {
8529
8530   ;
8531   return 0;
8532 }
8533 _ACEOF
8534 rm -f conftest.$ac_objext conftest$ac_exeext
8535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8536   (eval $ac_link) 2>&5
8537   ac_status=$?
8538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } &&
8540          { ac_try='test -s conftest$ac_exeext'
8541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542   (eval $ac_try) 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; }; then
8546   :
8547 else
8548   echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8550
8551 ac_cv_sys_largefile_CFLAGS=no
8552 fi
8553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8554              CC="$ac_save_CC"
8555            esac
8556       }
8557 fi
8558 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8559 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8560      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8561 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8562 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8563   echo $ECHO_N "(cached) $ECHO_C" >&6
8564 else
8565   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8566         ac_cv_sys_largefile_LDFLAGS=no
8567
8568       }
8569 fi
8570 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8571 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8572      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8573 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8574 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8575   echo $ECHO_N "(cached) $ECHO_C" >&6
8576 else
8577   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8578         ac_cv_sys_largefile_LIBS=no
8579
8580       }
8581 fi
8582 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8583 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8584
8585      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8586        case "$ac_flag" in
8587        no) ;;
8588        -D_FILE_OFFSET_BITS=*) ;;
8589        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8590        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8591        -D?* | -I?*)
8592          case "$ac_flag" in
8593    no) ;;
8594    ?*)
8595      case "$CPPFLAGS" in
8596      '') CPPFLAGS="$ac_flag" ;;
8597      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8598      esac ;;
8599    esac ;;
8600        *)
8601          case "$ac_flag" in
8602    no) ;;
8603    ?*)
8604      case "$CFLAGS" in
8605      '') CFLAGS="$ac_flag" ;;
8606      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8607      esac ;;
8608    esac ;;
8609        esac
8610      done
8611      case "$ac_cv_sys_largefile_LDFLAGS" in
8612    no) ;;
8613    ?*)
8614      case "$LDFLAGS" in
8615      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8616      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8617      esac ;;
8618    esac
8619      case "$ac_cv_sys_largefile_LIBS" in
8620    no) ;;
8621    ?*)
8622      case "$LIBS" in
8623      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8624      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8625      esac ;;
8626    esac
8627      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8628 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8629 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8630   echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632   ac_cv_sys_file_offset_bits=no
8633       ac_cv_sys_file_offset_bits=64
8634       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8635         case "$ac_flag" in
8636         -D_FILE_OFFSET_BITS)
8637           ac_cv_sys_file_offset_bits=1 ;;
8638         -D_FILE_OFFSET_BITS=*)
8639           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8640         esac
8641       done
8642
8643 fi
8644 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8645 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8646    if test "$ac_cv_sys_file_offset_bits" != no; then
8647
8648 cat >>confdefs.h <<_ACEOF
8649 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8650 _ACEOF
8651
8652    fi
8653      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8654 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8655 if test "${ac_cv_sys_largefile_source+set}" = set; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   ac_cv_sys_largefile_source=no
8659       ac_cv_sys_largefile_source=1
8660       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8661         case "$ac_flag" in
8662         -D_LARGEFILE_SOURCE)
8663           ac_cv_sys_largefile_source=1 ;;
8664         -D_LARGEFILE_SOURCE=*)
8665           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8666         esac
8667       done
8668
8669 fi
8670 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8671 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8672    if test "$ac_cv_sys_largefile_source" != no; then
8673
8674 cat >>confdefs.h <<_ACEOF
8675 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8676 _ACEOF
8677
8678    fi
8679      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8680 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8681 if test "${ac_cv_sys_large_files+set}" = set; then
8682   echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684   ac_cv_sys_large_files=no
8685       ac_cv_sys_large_files=1
8686       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8687         case "$ac_flag" in
8688         -D_LARGE_FILES)
8689           ac_cv_sys_large_files=1 ;;
8690         -D_LARGE_FILES=*)
8691           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8692         esac
8693       done
8694
8695 fi
8696 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8697 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8698    if test "$ac_cv_sys_large_files" != no; then
8699
8700 cat >>confdefs.h <<_ACEOF
8701 #define _LARGE_FILES $ac_cv_sys_large_files
8702 _ACEOF
8703
8704    fi
8705    fi
8706
8707
8708
8709 echo "$as_me:$LINENO: checking for X" >&5
8710 echo $ECHO_N "checking for X... $ECHO_C" >&6
8711
8712
8713 # Check whether --with-x or --without-x was given.
8714 if test "${with_x+set}" = set; then
8715   withval="$with_x"
8716
8717 fi;
8718 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8719 if test "x$with_x" = xno; then
8720   # The user explicitly disabled X.
8721   have_x=disabled
8722 else
8723   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8724     # Both variables are already set.
8725     have_x=yes
8726   else
8727     if test "${ac_cv_have_x+set}" = set; then
8728   echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730   # One or both of the vars are not set, and there is no cached value.
8731 ac_x_includes=no ac_x_libraries=no
8732 rm -fr conftest.dir
8733 if mkdir conftest.dir; then
8734   cd conftest.dir
8735   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8736   cat >Imakefile <<'_ACEOF'
8737 acfindx:
8738         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8739 _ACEOF
8740   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8741     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8742     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8743     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8744     for ac_extension in a so sl; do
8745       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8746          test -f $ac_im_libdir/libX11.$ac_extension; then
8747         ac_im_usrlibdir=$ac_im_libdir; break
8748       fi
8749     done
8750     # Screen out bogus values from the imake configuration.  They are
8751     # bogus both because they are the default anyway, and because
8752     # using them would break gcc on systems where it needs fixed includes.
8753     case $ac_im_incroot in
8754         /usr/include) ;;
8755         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8756     esac
8757     case $ac_im_usrlibdir in
8758         /usr/lib | /lib) ;;
8759         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8760     esac
8761   fi
8762   cd ..
8763   rm -fr conftest.dir
8764 fi
8765
8766 # Standard set of common directories for X headers.
8767 # Check X11 before X11Rn because it is often a symlink to the current release.
8768 ac_x_header_dirs='
8769 /usr/X11/include
8770 /usr/X11R6/include
8771 /usr/X11R5/include
8772 /usr/X11R4/include
8773
8774 /usr/include/X11
8775 /usr/include/X11R6
8776 /usr/include/X11R5
8777 /usr/include/X11R4
8778
8779 /usr/local/X11/include
8780 /usr/local/X11R6/include
8781 /usr/local/X11R5/include
8782 /usr/local/X11R4/include
8783
8784 /usr/local/include/X11
8785 /usr/local/include/X11R6
8786 /usr/local/include/X11R5
8787 /usr/local/include/X11R4
8788
8789 /usr/X386/include
8790 /usr/x386/include
8791 /usr/XFree86/include/X11
8792
8793 /usr/include
8794 /usr/local/include
8795 /usr/unsupported/include
8796 /usr/athena/include
8797 /usr/local/x11r5/include
8798 /usr/lpp/Xamples/include
8799
8800 /usr/openwin/include
8801 /usr/openwin/share/include'
8802
8803 if test "$ac_x_includes" = no; then
8804   # Guess where to find include files, by looking for Intrinsic.h.
8805   # First, try using that file with no special directory specified.
8806   cat >conftest.$ac_ext <<_ACEOF
8807 #line $LINENO "configure"
8808 /* confdefs.h.  */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h.  */
8813 #include <X11/Intrinsic.h>
8814 _ACEOF
8815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8817   ac_status=$?
8818   grep -v '^ *+' conftest.er1 >conftest.err
8819   rm -f conftest.er1
8820   cat conftest.err >&5
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); } >/dev/null; then
8823   if test -s conftest.err; then
8824     ac_cpp_err=$ac_c_preproc_warn_flag
8825   else
8826     ac_cpp_err=
8827   fi
8828 else
8829   ac_cpp_err=yes
8830 fi
8831 if test -z "$ac_cpp_err"; then
8832   # We can compile using X headers with no special include directory.
8833 ac_x_includes=
8834 else
8835   echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8837
8838   for ac_dir in $ac_x_header_dirs; do
8839   if test -r "$ac_dir/X11/Intrinsic.h"; then
8840     ac_x_includes=$ac_dir
8841     break
8842   fi
8843 done
8844 fi
8845 rm -f conftest.err conftest.$ac_ext
8846 fi # $ac_x_includes = no
8847
8848 if test "$ac_x_libraries" = no; then
8849   # Check for the libraries.
8850   # See if we find them without any special options.
8851   # Don't add to $LIBS permanently.
8852   ac_save_LIBS=$LIBS
8853   LIBS="-lXt $LIBS"
8854   cat >conftest.$ac_ext <<_ACEOF
8855 #line $LINENO "configure"
8856 /* confdefs.h.  */
8857 _ACEOF
8858 cat confdefs.h >>conftest.$ac_ext
8859 cat >>conftest.$ac_ext <<_ACEOF
8860 /* end confdefs.h.  */
8861 #include <X11/Intrinsic.h>
8862 int
8863 main ()
8864 {
8865 XtMalloc (0)
8866   ;
8867   return 0;
8868 }
8869 _ACEOF
8870 rm -f conftest.$ac_objext conftest$ac_exeext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8872   (eval $ac_link) 2>&5
8873   ac_status=$?
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); } &&
8876          { ac_try='test -s conftest$ac_exeext'
8877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8878   (eval $ac_try) 2>&5
8879   ac_status=$?
8880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); }; }; then
8882   LIBS=$ac_save_LIBS
8883 # We can link X programs with no special library path.
8884 ac_x_libraries=
8885 else
8886   echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8888
8889 LIBS=$ac_save_LIBS
8890 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8891 do
8892   # Don't even attempt the hair of trying to link an X program!
8893   for ac_extension in a so sl; do
8894     if test -r $ac_dir/libXt.$ac_extension; then
8895       ac_x_libraries=$ac_dir
8896       break 2
8897     fi
8898   done
8899 done
8900 fi
8901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8902 fi # $ac_x_libraries = no
8903
8904 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8905   # Didn't find X anywhere.  Cache the known absence of X.
8906   ac_cv_have_x="have_x=no"
8907 else
8908   # Record where we found X for the cache.
8909   ac_cv_have_x="have_x=yes \
8910                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8911 fi
8912 fi
8913
8914   fi
8915   eval "$ac_cv_have_x"
8916 fi # $with_x != no
8917
8918 if test "$have_x" != yes; then
8919   echo "$as_me:$LINENO: result: $have_x" >&5
8920 echo "${ECHO_T}$have_x" >&6
8921   no_x=yes
8922 else
8923   # If each of the values was on the command line, it overrides each guess.
8924   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8925   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8926   # Update the cache value to reflect the command line values.
8927   ac_cv_have_x="have_x=yes \
8928                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8929   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8930 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8931 fi
8932
8933 if test "$no_x" = yes; then
8934   # Not all programs may use this symbol, but it does not hurt to define it.
8935
8936 cat >>confdefs.h <<\_ACEOF
8937 #define X_DISPLAY_MISSING 1
8938 _ACEOF
8939
8940   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8941 else
8942   if test -n "$x_includes"; then
8943     X_CFLAGS="$X_CFLAGS -I$x_includes"
8944   fi
8945
8946   # It would also be nice to do this for all -L options, not just this one.
8947   if test -n "$x_libraries"; then
8948     X_LIBS="$X_LIBS -L$x_libraries"
8949     # For Solaris; some versions of Sun CC require a space after -R and
8950     # others require no space.  Words are not sufficient . . . .
8951     case `(uname -sr) 2>/dev/null` in
8952     "SunOS 5"*)
8953       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8954 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8955       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8956       cat >conftest.$ac_ext <<_ACEOF
8957 #line $LINENO "configure"
8958 /* confdefs.h.  */
8959 _ACEOF
8960 cat confdefs.h >>conftest.$ac_ext
8961 cat >>conftest.$ac_ext <<_ACEOF
8962 /* end confdefs.h.  */
8963
8964 int
8965 main ()
8966 {
8967
8968   ;
8969   return 0;
8970 }
8971 _ACEOF
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8974   (eval $ac_link) 2>&5
8975   ac_status=$?
8976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977   (exit $ac_status); } &&
8978          { ac_try='test -s conftest$ac_exeext'
8979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980   (eval $ac_try) 2>&5
8981   ac_status=$?
8982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983   (exit $ac_status); }; }; then
8984   ac_R_nospace=yes
8985 else
8986   echo "$as_me: failed program was:" >&5
8987 sed 's/^/| /' conftest.$ac_ext >&5
8988
8989 ac_R_nospace=no
8990 fi
8991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8992       if test $ac_R_nospace = yes; then
8993         echo "$as_me:$LINENO: result: no" >&5
8994 echo "${ECHO_T}no" >&6
8995         X_LIBS="$X_LIBS -R$x_libraries"
8996       else
8997         LIBS="$ac_xsave_LIBS -R $x_libraries"
8998         cat >conftest.$ac_ext <<_ACEOF
8999 #line $LINENO "configure"
9000 /* confdefs.h.  */
9001 _ACEOF
9002 cat confdefs.h >>conftest.$ac_ext
9003 cat >>conftest.$ac_ext <<_ACEOF
9004 /* end confdefs.h.  */
9005
9006 int
9007 main ()
9008 {
9009
9010   ;
9011   return 0;
9012 }
9013 _ACEOF
9014 rm -f conftest.$ac_objext conftest$ac_exeext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9016   (eval $ac_link) 2>&5
9017   ac_status=$?
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); } &&
9020          { ac_try='test -s conftest$ac_exeext'
9021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022   (eval $ac_try) 2>&5
9023   ac_status=$?
9024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025   (exit $ac_status); }; }; then
9026   ac_R_space=yes
9027 else
9028   echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031 ac_R_space=no
9032 fi
9033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9034         if test $ac_R_space = yes; then
9035           echo "$as_me:$LINENO: result: yes" >&5
9036 echo "${ECHO_T}yes" >&6
9037           X_LIBS="$X_LIBS -R $x_libraries"
9038         else
9039           echo "$as_me:$LINENO: result: neither works" >&5
9040 echo "${ECHO_T}neither works" >&6
9041         fi
9042       fi
9043       LIBS=$ac_xsave_LIBS
9044     esac
9045   fi
9046
9047   # Check for system-dependent libraries X programs must link with.
9048   # Do this before checking for the system-independent R6 libraries
9049   # (-lICE), since we may need -lsocket or whatever for X linking.
9050
9051   if test "$ISC" = yes; then
9052     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9053   else
9054     # Martyn Johnson says this is needed for Ultrix, if the X
9055     # libraries were built with DECnet support.  And Karl Berry says
9056     # the Alpha needs dnet_stub (dnet does not exist).
9057     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9058     cat >conftest.$ac_ext <<_ACEOF
9059 #line $LINENO "configure"
9060 /* confdefs.h.  */
9061 _ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h.  */
9065
9066 /* Override any gcc2 internal prototype to avoid an error.  */
9067 #ifdef __cplusplus
9068 extern "C"
9069 #endif
9070 /* We use char because int might match the return type of a gcc2
9071    builtin and then its argument prototype would still apply.  */
9072 char XOpenDisplay ();
9073 int
9074 main ()
9075 {
9076 XOpenDisplay ();
9077   ;
9078   return 0;
9079 }
9080 _ACEOF
9081 rm -f conftest.$ac_objext conftest$ac_exeext
9082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9083   (eval $ac_link) 2>&5
9084   ac_status=$?
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); } &&
9087          { ac_try='test -s conftest$ac_exeext'
9088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089   (eval $ac_try) 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); }; }; then
9093   :
9094 else
9095   echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9097
9098 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9099 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9100 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9101   echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103   ac_check_lib_save_LIBS=$LIBS
9104 LIBS="-ldnet  $LIBS"
9105 cat >conftest.$ac_ext <<_ACEOF
9106 #line $LINENO "configure"
9107 /* confdefs.h.  */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h.  */
9112
9113 /* Override any gcc2 internal prototype to avoid an error.  */
9114 #ifdef __cplusplus
9115 extern "C"
9116 #endif
9117 /* We use char because int might match the return type of a gcc2
9118    builtin and then its argument prototype would still apply.  */
9119 char dnet_ntoa ();
9120 int
9121 main ()
9122 {
9123 dnet_ntoa ();
9124   ;
9125   return 0;
9126 }
9127 _ACEOF
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9130   (eval $ac_link) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); } &&
9134          { ac_try='test -s conftest$ac_exeext'
9135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136   (eval $ac_try) 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); }; }; then
9140   ac_cv_lib_dnet_dnet_ntoa=yes
9141 else
9142   echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9144
9145 ac_cv_lib_dnet_dnet_ntoa=no
9146 fi
9147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9148 LIBS=$ac_check_lib_save_LIBS
9149 fi
9150 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9151 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9152 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9153   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9154 fi
9155
9156     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9157       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9158 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9159 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9160   echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162   ac_check_lib_save_LIBS=$LIBS
9163 LIBS="-ldnet_stub  $LIBS"
9164 cat >conftest.$ac_ext <<_ACEOF
9165 #line $LINENO "configure"
9166 /* confdefs.h.  */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h.  */
9171
9172 /* Override any gcc2 internal prototype to avoid an error.  */
9173 #ifdef __cplusplus
9174 extern "C"
9175 #endif
9176 /* We use char because int might match the return type of a gcc2
9177    builtin and then its argument prototype would still apply.  */
9178 char dnet_ntoa ();
9179 int
9180 main ()
9181 {
9182 dnet_ntoa ();
9183   ;
9184   return 0;
9185 }
9186 _ACEOF
9187 rm -f conftest.$ac_objext conftest$ac_exeext
9188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9189   (eval $ac_link) 2>&5
9190   ac_status=$?
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   (exit $ac_status); } &&
9193          { ac_try='test -s conftest$ac_exeext'
9194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195   (eval $ac_try) 2>&5
9196   ac_status=$?
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); }; }; then
9199   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9200 else
9201   echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9203
9204 ac_cv_lib_dnet_stub_dnet_ntoa=no
9205 fi
9206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9207 LIBS=$ac_check_lib_save_LIBS
9208 fi
9209 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9210 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9211 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9212   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9213 fi
9214
9215     fi
9216 fi
9217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9218     LIBS="$ac_xsave_LIBS"
9219
9220     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9221     # to get the SysV transport functions.
9222     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9223     # needs -lnsl.
9224     # The nsl library prevents programs from opening the X display
9225     # on Irix 5.2, according to T.E. Dickey.
9226     # The functions gethostbyname, getservbyname, and inet_addr are
9227     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9228     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9229 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9230 if test "${ac_cv_func_gethostbyname+set}" = set; then
9231   echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233   cat >conftest.$ac_ext <<_ACEOF
9234 #line $LINENO "configure"
9235 /* confdefs.h.  */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h.  */
9240 /* System header to define __stub macros and hopefully few prototypes,
9241     which can conflict with char gethostbyname (); below.
9242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9243     <limits.h> exists even on freestanding compilers.  */
9244 #ifdef __STDC__
9245 # include <limits.h>
9246 #else
9247 # include <assert.h>
9248 #endif
9249 /* Override any gcc2 internal prototype to avoid an error.  */
9250 #ifdef __cplusplus
9251 extern "C"
9252 {
9253 #endif
9254 /* We use char because int might match the return type of a gcc2
9255    builtin and then its argument prototype would still apply.  */
9256 char gethostbyname ();
9257 /* The GNU C library defines this for functions which it implements
9258     to always fail with ENOSYS.  Some functions are actually named
9259     something starting with __ and the normal name is an alias.  */
9260 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9261 choke me
9262 #else
9263 char (*f) () = gethostbyname;
9264 #endif
9265 #ifdef __cplusplus
9266 }
9267 #endif
9268
9269 int
9270 main ()
9271 {
9272 return f != gethostbyname;
9273   ;
9274   return 0;
9275 }
9276 _ACEOF
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9279   (eval $ac_link) 2>&5
9280   ac_status=$?
9281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   (exit $ac_status); } &&
9283          { ac_try='test -s conftest$ac_exeext'
9284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285   (eval $ac_try) 2>&5
9286   ac_status=$?
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); }; }; then
9289   ac_cv_func_gethostbyname=yes
9290 else
9291   echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9293
9294 ac_cv_func_gethostbyname=no
9295 fi
9296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9297 fi
9298 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9299 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9300
9301     if test $ac_cv_func_gethostbyname = no; then
9302       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9303 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9304 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9305   echo $ECHO_N "(cached) $ECHO_C" >&6
9306 else
9307   ac_check_lib_save_LIBS=$LIBS
9308 LIBS="-lnsl  $LIBS"
9309 cat >conftest.$ac_ext <<_ACEOF
9310 #line $LINENO "configure"
9311 /* confdefs.h.  */
9312 _ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h.  */
9316
9317 /* Override any gcc2 internal prototype to avoid an error.  */
9318 #ifdef __cplusplus
9319 extern "C"
9320 #endif
9321 /* We use char because int might match the return type of a gcc2
9322    builtin and then its argument prototype would still apply.  */
9323 char gethostbyname ();
9324 int
9325 main ()
9326 {
9327 gethostbyname ();
9328   ;
9329   return 0;
9330 }
9331 _ACEOF
9332 rm -f conftest.$ac_objext conftest$ac_exeext
9333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9334   (eval $ac_link) 2>&5
9335   ac_status=$?
9336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337   (exit $ac_status); } &&
9338          { ac_try='test -s conftest$ac_exeext'
9339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340   (eval $ac_try) 2>&5
9341   ac_status=$?
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); }; }; then
9344   ac_cv_lib_nsl_gethostbyname=yes
9345 else
9346   echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9348
9349 ac_cv_lib_nsl_gethostbyname=no
9350 fi
9351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9352 LIBS=$ac_check_lib_save_LIBS
9353 fi
9354 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9355 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9356 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9357   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9358 fi
9359
9360       if test $ac_cv_lib_nsl_gethostbyname = no; then
9361         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9362 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9363 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9364   echo $ECHO_N "(cached) $ECHO_C" >&6
9365 else
9366   ac_check_lib_save_LIBS=$LIBS
9367 LIBS="-lbsd  $LIBS"
9368 cat >conftest.$ac_ext <<_ACEOF
9369 #line $LINENO "configure"
9370 /* confdefs.h.  */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h.  */
9375
9376 /* Override any gcc2 internal prototype to avoid an error.  */
9377 #ifdef __cplusplus
9378 extern "C"
9379 #endif
9380 /* We use char because int might match the return type of a gcc2
9381    builtin and then its argument prototype would still apply.  */
9382 char gethostbyname ();
9383 int
9384 main ()
9385 {
9386 gethostbyname ();
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393   (eval $ac_link) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } &&
9397          { ac_try='test -s conftest$ac_exeext'
9398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399   (eval $ac_try) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); }; }; then
9403   ac_cv_lib_bsd_gethostbyname=yes
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408 ac_cv_lib_bsd_gethostbyname=no
9409 fi
9410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9411 LIBS=$ac_check_lib_save_LIBS
9412 fi
9413 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9414 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9415 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9416   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9417 fi
9418
9419       fi
9420     fi
9421
9422     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9423     # socket/setsockopt and other routines are undefined under SCO ODT
9424     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9425     # on later versions), says Simon Leinen: it contains gethostby*
9426     # variants that don't use the name server (or something).  -lsocket
9427     # must be given before -lnsl if both are needed.  We assume that
9428     # if connect needs -lnsl, so does gethostbyname.
9429     echo "$as_me:$LINENO: checking for connect" >&5
9430 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9431 if test "${ac_cv_func_connect+set}" = set; then
9432   echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434   cat >conftest.$ac_ext <<_ACEOF
9435 #line $LINENO "configure"
9436 /* confdefs.h.  */
9437 _ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h.  */
9441 /* System header to define __stub macros and hopefully few prototypes,
9442     which can conflict with char connect (); below.
9443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9444     <limits.h> exists even on freestanding compilers.  */
9445 #ifdef __STDC__
9446 # include <limits.h>
9447 #else
9448 # include <assert.h>
9449 #endif
9450 /* Override any gcc2 internal prototype to avoid an error.  */
9451 #ifdef __cplusplus
9452 extern "C"
9453 {
9454 #endif
9455 /* We use char because int might match the return type of a gcc2
9456    builtin and then its argument prototype would still apply.  */
9457 char connect ();
9458 /* The GNU C library defines this for functions which it implements
9459     to always fail with ENOSYS.  Some functions are actually named
9460     something starting with __ and the normal name is an alias.  */
9461 #if defined (__stub_connect) || defined (__stub___connect)
9462 choke me
9463 #else
9464 char (*f) () = connect;
9465 #endif
9466 #ifdef __cplusplus
9467 }
9468 #endif
9469
9470 int
9471 main ()
9472 {
9473 return f != connect;
9474   ;
9475   return 0;
9476 }
9477 _ACEOF
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9480   (eval $ac_link) 2>&5
9481   ac_status=$?
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); } &&
9484          { ac_try='test -s conftest$ac_exeext'
9485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9486   (eval $ac_try) 2>&5
9487   ac_status=$?
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); }; }; then
9490   ac_cv_func_connect=yes
9491 else
9492   echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9494
9495 ac_cv_func_connect=no
9496 fi
9497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9498 fi
9499 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9500 echo "${ECHO_T}$ac_cv_func_connect" >&6
9501
9502     if test $ac_cv_func_connect = no; then
9503       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9504 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9505 if test "${ac_cv_lib_socket_connect+set}" = set; then
9506   echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508   ac_check_lib_save_LIBS=$LIBS
9509 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9510 cat >conftest.$ac_ext <<_ACEOF
9511 #line $LINENO "configure"
9512 /* confdefs.h.  */
9513 _ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h.  */
9517
9518 /* Override any gcc2 internal prototype to avoid an error.  */
9519 #ifdef __cplusplus
9520 extern "C"
9521 #endif
9522 /* We use char because int might match the return type of a gcc2
9523    builtin and then its argument prototype would still apply.  */
9524 char connect ();
9525 int
9526 main ()
9527 {
9528 connect ();
9529   ;
9530   return 0;
9531 }
9532 _ACEOF
9533 rm -f conftest.$ac_objext conftest$ac_exeext
9534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535   (eval $ac_link) 2>&5
9536   ac_status=$?
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); } &&
9539          { ac_try='test -s conftest$ac_exeext'
9540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9541   (eval $ac_try) 2>&5
9542   ac_status=$?
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); }; }; then
9545   ac_cv_lib_socket_connect=yes
9546 else
9547   echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9549
9550 ac_cv_lib_socket_connect=no
9551 fi
9552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9553 LIBS=$ac_check_lib_save_LIBS
9554 fi
9555 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9556 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9557 if test $ac_cv_lib_socket_connect = yes; then
9558   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9559 fi
9560
9561     fi
9562
9563     # Guillermo Gomez says -lposix is necessary on A/UX.
9564     echo "$as_me:$LINENO: checking for remove" >&5
9565 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9566 if test "${ac_cv_func_remove+set}" = set; then
9567   echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569   cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9571 /* confdefs.h.  */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h.  */
9576 /* System header to define __stub macros and hopefully few prototypes,
9577     which can conflict with char remove (); below.
9578     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9579     <limits.h> exists even on freestanding compilers.  */
9580 #ifdef __STDC__
9581 # include <limits.h>
9582 #else
9583 # include <assert.h>
9584 #endif
9585 /* Override any gcc2 internal prototype to avoid an error.  */
9586 #ifdef __cplusplus
9587 extern "C"
9588 {
9589 #endif
9590 /* We use char because int might match the return type of a gcc2
9591    builtin and then its argument prototype would still apply.  */
9592 char remove ();
9593 /* The GNU C library defines this for functions which it implements
9594     to always fail with ENOSYS.  Some functions are actually named
9595     something starting with __ and the normal name is an alias.  */
9596 #if defined (__stub_remove) || defined (__stub___remove)
9597 choke me
9598 #else
9599 char (*f) () = remove;
9600 #endif
9601 #ifdef __cplusplus
9602 }
9603 #endif
9604
9605 int
9606 main ()
9607 {
9608 return f != remove;
9609   ;
9610   return 0;
9611 }
9612 _ACEOF
9613 rm -f conftest.$ac_objext conftest$ac_exeext
9614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9615   (eval $ac_link) 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); } &&
9619          { ac_try='test -s conftest$ac_exeext'
9620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621   (eval $ac_try) 2>&5
9622   ac_status=$?
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); }; }; then
9625   ac_cv_func_remove=yes
9626 else
9627   echo "$as_me: failed program was:" >&5
9628 sed 's/^/| /' conftest.$ac_ext >&5
9629
9630 ac_cv_func_remove=no
9631 fi
9632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9633 fi
9634 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9635 echo "${ECHO_T}$ac_cv_func_remove" >&6
9636
9637     if test $ac_cv_func_remove = no; then
9638       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9639 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9640 if test "${ac_cv_lib_posix_remove+set}" = set; then
9641   echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643   ac_check_lib_save_LIBS=$LIBS
9644 LIBS="-lposix  $LIBS"
9645 cat >conftest.$ac_ext <<_ACEOF
9646 #line $LINENO "configure"
9647 /* confdefs.h.  */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h.  */
9652
9653 /* Override any gcc2 internal prototype to avoid an error.  */
9654 #ifdef __cplusplus
9655 extern "C"
9656 #endif
9657 /* We use char because int might match the return type of a gcc2
9658    builtin and then its argument prototype would still apply.  */
9659 char remove ();
9660 int
9661 main ()
9662 {
9663 remove ();
9664   ;
9665   return 0;
9666 }
9667 _ACEOF
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670   (eval $ac_link) 2>&5
9671   ac_status=$?
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); } &&
9674          { ac_try='test -s conftest$ac_exeext'
9675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9676   (eval $ac_try) 2>&5
9677   ac_status=$?
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); }; }; then
9680   ac_cv_lib_posix_remove=yes
9681 else
9682   echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9684
9685 ac_cv_lib_posix_remove=no
9686 fi
9687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9688 LIBS=$ac_check_lib_save_LIBS
9689 fi
9690 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9691 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9692 if test $ac_cv_lib_posix_remove = yes; then
9693   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9694 fi
9695
9696     fi
9697
9698     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9699     echo "$as_me:$LINENO: checking for shmat" >&5
9700 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9701 if test "${ac_cv_func_shmat+set}" = set; then
9702   echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704   cat >conftest.$ac_ext <<_ACEOF
9705 #line $LINENO "configure"
9706 /* confdefs.h.  */
9707 _ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h.  */
9711 /* System header to define __stub macros and hopefully few prototypes,
9712     which can conflict with char shmat (); below.
9713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9714     <limits.h> exists even on freestanding compilers.  */
9715 #ifdef __STDC__
9716 # include <limits.h>
9717 #else
9718 # include <assert.h>
9719 #endif
9720 /* Override any gcc2 internal prototype to avoid an error.  */
9721 #ifdef __cplusplus
9722 extern "C"
9723 {
9724 #endif
9725 /* We use char because int might match the return type of a gcc2
9726    builtin and then its argument prototype would still apply.  */
9727 char shmat ();
9728 /* The GNU C library defines this for functions which it implements
9729     to always fail with ENOSYS.  Some functions are actually named
9730     something starting with __ and the normal name is an alias.  */
9731 #if defined (__stub_shmat) || defined (__stub___shmat)
9732 choke me
9733 #else
9734 char (*f) () = shmat;
9735 #endif
9736 #ifdef __cplusplus
9737 }
9738 #endif
9739
9740 int
9741 main ()
9742 {
9743 return f != shmat;
9744   ;
9745   return 0;
9746 }
9747 _ACEOF
9748 rm -f conftest.$ac_objext conftest$ac_exeext
9749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750   (eval $ac_link) 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); } &&
9754          { ac_try='test -s conftest$ac_exeext'
9755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756   (eval $ac_try) 2>&5
9757   ac_status=$?
9758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759   (exit $ac_status); }; }; then
9760   ac_cv_func_shmat=yes
9761 else
9762   echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9764
9765 ac_cv_func_shmat=no
9766 fi
9767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9768 fi
9769 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9770 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9771
9772     if test $ac_cv_func_shmat = no; then
9773       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9774 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9775 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9776   echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778   ac_check_lib_save_LIBS=$LIBS
9779 LIBS="-lipc  $LIBS"
9780 cat >conftest.$ac_ext <<_ACEOF
9781 #line $LINENO "configure"
9782 /* confdefs.h.  */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h.  */
9787
9788 /* Override any gcc2 internal prototype to avoid an error.  */
9789 #ifdef __cplusplus
9790 extern "C"
9791 #endif
9792 /* We use char because int might match the return type of a gcc2
9793    builtin and then its argument prototype would still apply.  */
9794 char shmat ();
9795 int
9796 main ()
9797 {
9798 shmat ();
9799   ;
9800   return 0;
9801 }
9802 _ACEOF
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9805   (eval $ac_link) 2>&5
9806   ac_status=$?
9807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808   (exit $ac_status); } &&
9809          { ac_try='test -s conftest$ac_exeext'
9810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811   (eval $ac_try) 2>&5
9812   ac_status=$?
9813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); }; }; then
9815   ac_cv_lib_ipc_shmat=yes
9816 else
9817   echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9819
9820 ac_cv_lib_ipc_shmat=no
9821 fi
9822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9823 LIBS=$ac_check_lib_save_LIBS
9824 fi
9825 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9826 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9827 if test $ac_cv_lib_ipc_shmat = yes; then
9828   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9829 fi
9830
9831     fi
9832   fi
9833
9834   # Check for libraries that X11R6 Xt/Xaw programs need.
9835   ac_save_LDFLAGS=$LDFLAGS
9836   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9837   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9838   # check for ICE first), but we must link in the order -lSM -lICE or
9839   # we get undefined symbols.  So assume we have SM if we have ICE.
9840   # These have to be linked with before -lX11, unlike the other
9841   # libraries we check for below, so use a different variable.
9842   # John Interrante, Karl Berry
9843   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9844 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9845 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9846   echo $ECHO_N "(cached) $ECHO_C" >&6
9847 else
9848   ac_check_lib_save_LIBS=$LIBS
9849 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9850 cat >conftest.$ac_ext <<_ACEOF
9851 #line $LINENO "configure"
9852 /* confdefs.h.  */
9853 _ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h.  */
9857
9858 /* Override any gcc2 internal prototype to avoid an error.  */
9859 #ifdef __cplusplus
9860 extern "C"
9861 #endif
9862 /* We use char because int might match the return type of a gcc2
9863    builtin and then its argument prototype would still apply.  */
9864 char IceConnectionNumber ();
9865 int
9866 main ()
9867 {
9868 IceConnectionNumber ();
9869   ;
9870   return 0;
9871 }
9872 _ACEOF
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9875   (eval $ac_link) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); } &&
9879          { ac_try='test -s conftest$ac_exeext'
9880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881   (eval $ac_try) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; }; then
9885   ac_cv_lib_ICE_IceConnectionNumber=yes
9886 else
9887   echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890 ac_cv_lib_ICE_IceConnectionNumber=no
9891 fi
9892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9893 LIBS=$ac_check_lib_save_LIBS
9894 fi
9895 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9896 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9897 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9898   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9899 fi
9900
9901   LDFLAGS=$ac_save_LDFLAGS
9902
9903 fi
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933 for ac_header in \
9934         assert.h \
9935         fcntl.h \
9936         grp.h \
9937         pwd.h \
9938         libc.h \
9939         limits.h \
9940         stdarg.h \
9941         stdlib.h \
9942         stdint.h \
9943         string.h \
9944         termios.h \
9945         termcap.h \
9946         term.h \
9947         unistd.h \
9948         sys/bitypes.h \
9949         sys/byteorder.h \
9950         sys/ioctl.h \
9951         sys/select.h \
9952         sys/sockio.h \
9953         sys/time.h \
9954         sys/socket.h \
9955         arpa/nameser.h \
9956         resolv.h \
9957         mtio.h \
9958         sys/mtio.h \
9959         sys/tape.h \
9960         regex.h \
9961
9962 do
9963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9965   echo "$as_me:$LINENO: checking for $ac_header" >&5
9966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9968   echo $ECHO_N "(cached) $ECHO_C" >&6
9969 fi
9970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9972 else
9973   # Is the header compilable?
9974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9976 cat >conftest.$ac_ext <<_ACEOF
9977 #line $LINENO "configure"
9978 /* confdefs.h.  */
9979 _ACEOF
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h.  */
9983 $ac_includes_default
9984 #include <$ac_header>
9985 _ACEOF
9986 rm -f conftest.$ac_objext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9988   (eval $ac_compile) 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); } &&
9992          { ac_try='test -s conftest.$ac_objext'
9993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994   (eval $ac_try) 2>&5
9995   ac_status=$?
9996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997   (exit $ac_status); }; }; then
9998   ac_header_compiler=yes
9999 else
10000   echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10002
10003 ac_header_compiler=no
10004 fi
10005 rm -f conftest.$ac_objext conftest.$ac_ext
10006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10007 echo "${ECHO_T}$ac_header_compiler" >&6
10008
10009 # Is the header present?
10010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10012 cat >conftest.$ac_ext <<_ACEOF
10013 #line $LINENO "configure"
10014 /* confdefs.h.  */
10015 _ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h.  */
10019 #include <$ac_header>
10020 _ACEOF
10021 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10022   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10023   ac_status=$?
10024   grep -v '^ *+' conftest.er1 >conftest.err
10025   rm -f conftest.er1
10026   cat conftest.err >&5
10027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028   (exit $ac_status); } >/dev/null; then
10029   if test -s conftest.err; then
10030     ac_cpp_err=$ac_c_preproc_warn_flag
10031   else
10032     ac_cpp_err=
10033   fi
10034 else
10035   ac_cpp_err=yes
10036 fi
10037 if test -z "$ac_cpp_err"; then
10038   ac_header_preproc=yes
10039 else
10040   echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10042
10043   ac_header_preproc=no
10044 fi
10045 rm -f conftest.err conftest.$ac_ext
10046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10047 echo "${ECHO_T}$ac_header_preproc" >&6
10048
10049 # So?  What about this header?
10050 case $ac_header_compiler:$ac_header_preproc in
10051   yes:no )
10052     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10056     (
10057       cat <<\_ASBOX
10058 ## ------------------------------------ ##
10059 ## Report this to bug-autoconf@gnu.org. ##
10060 ## ------------------------------------ ##
10061 _ASBOX
10062     ) |
10063       sed "s/^/$as_me: WARNING:     /" >&2
10064     ;;
10065   no:yes )
10066     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10068     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10072     (
10073       cat <<\_ASBOX
10074 ## ------------------------------------ ##
10075 ## Report this to bug-autoconf@gnu.org. ##
10076 ## ------------------------------------ ##
10077 _ASBOX
10078     ) |
10079       sed "s/^/$as_me: WARNING:     /" >&2
10080     ;;
10081 esac
10082 echo "$as_me:$LINENO: checking for $ac_header" >&5
10083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10085   echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087   eval "$as_ac_Header=$ac_header_preproc"
10088 fi
10089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10091
10092 fi
10093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10094   cat >>confdefs.h <<_ACEOF
10095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10096 _ACEOF
10097
10098 fi
10099
10100 done
10101
10102 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10103 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10104 if test "${ac_cv_header_stdc+set}" = set; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 else
10107   cat >conftest.$ac_ext <<_ACEOF
10108 #line $LINENO "configure"
10109 /* confdefs.h.  */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h.  */
10114 #include <stdlib.h>
10115 #include <stdarg.h>
10116 #include <string.h>
10117 #include <float.h>
10118
10119 int
10120 main ()
10121 {
10122
10123   ;
10124   return 0;
10125 }
10126 _ACEOF
10127 rm -f conftest.$ac_objext
10128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10129   (eval $ac_compile) 2>&5
10130   ac_status=$?
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); } &&
10133          { ac_try='test -s conftest.$ac_objext'
10134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10135   (eval $ac_try) 2>&5
10136   ac_status=$?
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); }; }; then
10139   ac_cv_header_stdc=yes
10140 else
10141   echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10143
10144 ac_cv_header_stdc=no
10145 fi
10146 rm -f conftest.$ac_objext conftest.$ac_ext
10147
10148 if test $ac_cv_header_stdc = yes; then
10149   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10150   cat >conftest.$ac_ext <<_ACEOF
10151 #line $LINENO "configure"
10152 /* confdefs.h.  */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h.  */
10157 #include <string.h>
10158
10159 _ACEOF
10160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10161   $EGREP "memchr" >/dev/null 2>&1; then
10162   :
10163 else
10164   ac_cv_header_stdc=no
10165 fi
10166 rm -f conftest*
10167
10168 fi
10169
10170 if test $ac_cv_header_stdc = yes; then
10171   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10172   cat >conftest.$ac_ext <<_ACEOF
10173 #line $LINENO "configure"
10174 /* confdefs.h.  */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h.  */
10179 #include <stdlib.h>
10180
10181 _ACEOF
10182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10183   $EGREP "free" >/dev/null 2>&1; then
10184   :
10185 else
10186   ac_cv_header_stdc=no
10187 fi
10188 rm -f conftest*
10189
10190 fi
10191
10192 if test $ac_cv_header_stdc = yes; then
10193   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10194   if test "$cross_compiling" = yes; then
10195   :
10196 else
10197   cat >conftest.$ac_ext <<_ACEOF
10198 #line $LINENO "configure"
10199 /* confdefs.h.  */
10200 _ACEOF
10201 cat confdefs.h >>conftest.$ac_ext
10202 cat >>conftest.$ac_ext <<_ACEOF
10203 /* end confdefs.h.  */
10204 #include <ctype.h>
10205 #if ((' ' & 0x0FF) == 0x020)
10206 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10207 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10208 #else
10209 # define ISLOWER(c) \
10210                    (('a' <= (c) && (c) <= 'i') \
10211                      || ('j' <= (c) && (c) <= 'r') \
10212                      || ('s' <= (c) && (c) <= 'z'))
10213 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10214 #endif
10215
10216 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10217 int
10218 main ()
10219 {
10220   int i;
10221   for (i = 0; i < 256; i++)
10222     if (XOR (islower (i), ISLOWER (i))
10223         || toupper (i) != TOUPPER (i))
10224       exit(2);
10225   exit (0);
10226 }
10227 _ACEOF
10228 rm -f conftest$ac_exeext
10229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10230   (eval $ac_link) 2>&5
10231   ac_status=$?
10232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235   (eval $ac_try) 2>&5
10236   ac_status=$?
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); }; }; then
10239   :
10240 else
10241   echo "$as_me: program exited with status $ac_status" >&5
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10244
10245 ( exit $ac_status )
10246 ac_cv_header_stdc=no
10247 fi
10248 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10249 fi
10250 fi
10251 fi
10252 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10253 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10254 if test $ac_cv_header_stdc = yes; then
10255
10256 cat >>confdefs.h <<\_ACEOF
10257 #define STDC_HEADERS 1
10258 _ACEOF
10259
10260 fi
10261
10262 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10263 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10264 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10265   echo $ECHO_N "(cached) $ECHO_C" >&6
10266 else
10267   cat >conftest.$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10269 /* confdefs.h.  */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h.  */
10274 #include <sys/types.h>
10275 int
10276 main ()
10277 {
10278 return makedev(0, 0);
10279   ;
10280   return 0;
10281 }
10282 _ACEOF
10283 rm -f conftest.$ac_objext conftest$ac_exeext
10284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10285   (eval $ac_link) 2>&5
10286   ac_status=$?
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); } &&
10289          { ac_try='test -s conftest$ac_exeext'
10290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291   (eval $ac_try) 2>&5
10292   ac_status=$?
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); }; }; then
10295   ac_cv_header_sys_types_h_makedev=yes
10296 else
10297   echo "$as_me: failed program was:" >&5
10298 sed 's/^/| /' conftest.$ac_ext >&5
10299
10300 ac_cv_header_sys_types_h_makedev=no
10301 fi
10302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10303
10304 fi
10305 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10306 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10307
10308 if test $ac_cv_header_sys_types_h_makedev = no; then
10309 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10310   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10311 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10312 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10313   echo $ECHO_N "(cached) $ECHO_C" >&6
10314 fi
10315 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10316 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10317 else
10318   # Is the header compilable?
10319 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10320 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10321 cat >conftest.$ac_ext <<_ACEOF
10322 #line $LINENO "configure"
10323 /* confdefs.h.  */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h.  */
10328 $ac_includes_default
10329 #include <sys/mkdev.h>
10330 _ACEOF
10331 rm -f conftest.$ac_objext
10332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10333   (eval $ac_compile) 2>&5
10334   ac_status=$?
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); } &&
10337          { ac_try='test -s conftest.$ac_objext'
10338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339   (eval $ac_try) 2>&5
10340   ac_status=$?
10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342   (exit $ac_status); }; }; then
10343   ac_header_compiler=yes
10344 else
10345   echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10347
10348 ac_header_compiler=no
10349 fi
10350 rm -f conftest.$ac_objext conftest.$ac_ext
10351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10352 echo "${ECHO_T}$ac_header_compiler" >&6
10353
10354 # Is the header present?
10355 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10356 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10357 cat >conftest.$ac_ext <<_ACEOF
10358 #line $LINENO "configure"
10359 /* confdefs.h.  */
10360 _ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h.  */
10364 #include <sys/mkdev.h>
10365 _ACEOF
10366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10368   ac_status=$?
10369   grep -v '^ *+' conftest.er1 >conftest.err
10370   rm -f conftest.er1
10371   cat conftest.err >&5
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); } >/dev/null; then
10374   if test -s conftest.err; then
10375     ac_cpp_err=$ac_c_preproc_warn_flag
10376   else
10377     ac_cpp_err=
10378   fi
10379 else
10380   ac_cpp_err=yes
10381 fi
10382 if test -z "$ac_cpp_err"; then
10383   ac_header_preproc=yes
10384 else
10385   echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10387
10388   ac_header_preproc=no
10389 fi
10390 rm -f conftest.err conftest.$ac_ext
10391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10392 echo "${ECHO_T}$ac_header_preproc" >&6
10393
10394 # So?  What about this header?
10395 case $ac_header_compiler:$ac_header_preproc in
10396   yes:no )
10397     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10398 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10399     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10400 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10401     (
10402       cat <<\_ASBOX
10403 ## ------------------------------------ ##
10404 ## Report this to bug-autoconf@gnu.org. ##
10405 ## ------------------------------------ ##
10406 _ASBOX
10407     ) |
10408       sed "s/^/$as_me: WARNING:     /" >&2
10409     ;;
10410   no:yes )
10411     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10412 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10413     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10414 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10415     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10416 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10417     (
10418       cat <<\_ASBOX
10419 ## ------------------------------------ ##
10420 ## Report this to bug-autoconf@gnu.org. ##
10421 ## ------------------------------------ ##
10422 _ASBOX
10423     ) |
10424       sed "s/^/$as_me: WARNING:     /" >&2
10425     ;;
10426 esac
10427 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10428 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10429 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10430   echo $ECHO_N "(cached) $ECHO_C" >&6
10431 else
10432   ac_cv_header_sys_mkdev_h=$ac_header_preproc
10433 fi
10434 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10435 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10436
10437 fi
10438 if test $ac_cv_header_sys_mkdev_h = yes; then
10439
10440 cat >>confdefs.h <<\_ACEOF
10441 #define MAJOR_IN_MKDEV 1
10442 _ACEOF
10443
10444 fi
10445
10446
10447
10448   if test $ac_cv_header_sys_mkdev_h = no; then
10449     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10450   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10451 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10452 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10453   echo $ECHO_N "(cached) $ECHO_C" >&6
10454 fi
10455 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10456 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10457 else
10458   # Is the header compilable?
10459 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10460 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10461 cat >conftest.$ac_ext <<_ACEOF
10462 #line $LINENO "configure"
10463 /* confdefs.h.  */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h.  */
10468 $ac_includes_default
10469 #include <sys/sysmacros.h>
10470 _ACEOF
10471 rm -f conftest.$ac_objext
10472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10473   (eval $ac_compile) 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); } &&
10477          { ac_try='test -s conftest.$ac_objext'
10478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479   (eval $ac_try) 2>&5
10480   ac_status=$?
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); }; }; then
10483   ac_header_compiler=yes
10484 else
10485   echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 ac_header_compiler=no
10489 fi
10490 rm -f conftest.$ac_objext conftest.$ac_ext
10491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10492 echo "${ECHO_T}$ac_header_compiler" >&6
10493
10494 # Is the header present?
10495 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10496 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10497 cat >conftest.$ac_ext <<_ACEOF
10498 #line $LINENO "configure"
10499 /* confdefs.h.  */
10500 _ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h.  */
10504 #include <sys/sysmacros.h>
10505 _ACEOF
10506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10507   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10508   ac_status=$?
10509   grep -v '^ *+' conftest.er1 >conftest.err
10510   rm -f conftest.er1
10511   cat conftest.err >&5
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); } >/dev/null; then
10514   if test -s conftest.err; then
10515     ac_cpp_err=$ac_c_preproc_warn_flag
10516   else
10517     ac_cpp_err=
10518   fi
10519 else
10520   ac_cpp_err=yes
10521 fi
10522 if test -z "$ac_cpp_err"; then
10523   ac_header_preproc=yes
10524 else
10525   echo "$as_me: failed program was:" >&5
10526 sed 's/^/| /' conftest.$ac_ext >&5
10527
10528   ac_header_preproc=no
10529 fi
10530 rm -f conftest.err conftest.$ac_ext
10531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10532 echo "${ECHO_T}$ac_header_preproc" >&6
10533
10534 # So?  What about this header?
10535 case $ac_header_compiler:$ac_header_preproc in
10536   yes:no )
10537     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10538 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10539     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10540 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10541     (
10542       cat <<\_ASBOX
10543 ## ------------------------------------ ##
10544 ## Report this to bug-autoconf@gnu.org. ##
10545 ## ------------------------------------ ##
10546 _ASBOX
10547     ) |
10548       sed "s/^/$as_me: WARNING:     /" >&2
10549     ;;
10550   no:yes )
10551     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10552 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10553     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10554 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10555     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10556 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10557     (
10558       cat <<\_ASBOX
10559 ## ------------------------------------ ##
10560 ## Report this to bug-autoconf@gnu.org. ##
10561 ## ------------------------------------ ##
10562 _ASBOX
10563     ) |
10564       sed "s/^/$as_me: WARNING:     /" >&2
10565     ;;
10566 esac
10567 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10568 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10569 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10570   echo $ECHO_N "(cached) $ECHO_C" >&6
10571 else
10572   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10573 fi
10574 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10575 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10576
10577 fi
10578 if test $ac_cv_header_sys_sysmacros_h = yes; then
10579
10580 cat >>confdefs.h <<\_ACEOF
10581 #define MAJOR_IN_SYSMACROS 1
10582 _ACEOF
10583
10584 fi
10585
10586
10587   fi
10588 fi
10589
10590
10591
10592
10593
10594
10595 ac_header_dirent=no
10596 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10597   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10598 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10599 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10601   echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603   cat >conftest.$ac_ext <<_ACEOF
10604 #line $LINENO "configure"
10605 /* confdefs.h.  */
10606 _ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h.  */
10610 #include <sys/types.h>
10611 #include <$ac_hdr>
10612
10613 int
10614 main ()
10615 {
10616 if ((DIR *) 0)
10617 return 0;
10618   ;
10619   return 0;
10620 }
10621 _ACEOF
10622 rm -f conftest.$ac_objext
10623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10624   (eval $ac_compile) 2>&5
10625   ac_status=$?
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); } &&
10628          { ac_try='test -s conftest.$ac_objext'
10629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630   (eval $ac_try) 2>&5
10631   ac_status=$?
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); }; }; then
10634   eval "$as_ac_Header=yes"
10635 else
10636   echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10638
10639 eval "$as_ac_Header=no"
10640 fi
10641 rm -f conftest.$ac_objext conftest.$ac_ext
10642 fi
10643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10646   cat >>confdefs.h <<_ACEOF
10647 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10648 _ACEOF
10649
10650 ac_header_dirent=$ac_hdr; break
10651 fi
10652
10653 done
10654 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10655 if test $ac_header_dirent = dirent.h; then
10656   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10657 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10658 if test "${ac_cv_search_opendir+set}" = set; then
10659   echo $ECHO_N "(cached) $ECHO_C" >&6
10660 else
10661   ac_func_search_save_LIBS=$LIBS
10662 ac_cv_search_opendir=no
10663 cat >conftest.$ac_ext <<_ACEOF
10664 #line $LINENO "configure"
10665 /* confdefs.h.  */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h.  */
10670
10671 /* Override any gcc2 internal prototype to avoid an error.  */
10672 #ifdef __cplusplus
10673 extern "C"
10674 #endif
10675 /* We use char because int might match the return type of a gcc2
10676    builtin and then its argument prototype would still apply.  */
10677 char opendir ();
10678 int
10679 main ()
10680 {
10681 opendir ();
10682   ;
10683   return 0;
10684 }
10685 _ACEOF
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10688   (eval $ac_link) 2>&5
10689   ac_status=$?
10690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691   (exit $ac_status); } &&
10692          { ac_try='test -s conftest$ac_exeext'
10693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694   (eval $ac_try) 2>&5
10695   ac_status=$?
10696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697   (exit $ac_status); }; }; then
10698   ac_cv_search_opendir="none required"
10699 else
10700   echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10702
10703 fi
10704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10705 if test "$ac_cv_search_opendir" = no; then
10706   for ac_lib in dir; do
10707     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10708     cat >conftest.$ac_ext <<_ACEOF
10709 #line $LINENO "configure"
10710 /* confdefs.h.  */
10711 _ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h.  */
10715
10716 /* Override any gcc2 internal prototype to avoid an error.  */
10717 #ifdef __cplusplus
10718 extern "C"
10719 #endif
10720 /* We use char because int might match the return type of a gcc2
10721    builtin and then its argument prototype would still apply.  */
10722 char opendir ();
10723 int
10724 main ()
10725 {
10726 opendir ();
10727   ;
10728   return 0;
10729 }
10730 _ACEOF
10731 rm -f conftest.$ac_objext conftest$ac_exeext
10732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10733   (eval $ac_link) 2>&5
10734   ac_status=$?
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); } &&
10737          { ac_try='test -s conftest$ac_exeext'
10738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739   (eval $ac_try) 2>&5
10740   ac_status=$?
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); }; }; then
10743   ac_cv_search_opendir="-l$ac_lib"
10744 break
10745 else
10746   echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749 fi
10750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10751   done
10752 fi
10753 LIBS=$ac_func_search_save_LIBS
10754 fi
10755 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10756 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10757 if test "$ac_cv_search_opendir" != no; then
10758   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10759
10760 fi
10761
10762 else
10763   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10764 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10765 if test "${ac_cv_search_opendir+set}" = set; then
10766   echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768   ac_func_search_save_LIBS=$LIBS
10769 ac_cv_search_opendir=no
10770 cat >conftest.$ac_ext <<_ACEOF
10771 #line $LINENO "configure"
10772 /* confdefs.h.  */
10773 _ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h.  */
10777
10778 /* Override any gcc2 internal prototype to avoid an error.  */
10779 #ifdef __cplusplus
10780 extern "C"
10781 #endif
10782 /* We use char because int might match the return type of a gcc2
10783    builtin and then its argument prototype would still apply.  */
10784 char opendir ();
10785 int
10786 main ()
10787 {
10788 opendir ();
10789   ;
10790   return 0;
10791 }
10792 _ACEOF
10793 rm -f conftest.$ac_objext conftest$ac_exeext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795   (eval $ac_link) 2>&5
10796   ac_status=$?
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); } &&
10799          { ac_try='test -s conftest$ac_exeext'
10800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10801   (eval $ac_try) 2>&5
10802   ac_status=$?
10803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804   (exit $ac_status); }; }; then
10805   ac_cv_search_opendir="none required"
10806 else
10807   echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10809
10810 fi
10811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10812 if test "$ac_cv_search_opendir" = no; then
10813   for ac_lib in x; do
10814     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10815     cat >conftest.$ac_ext <<_ACEOF
10816 #line $LINENO "configure"
10817 /* confdefs.h.  */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h.  */
10822
10823 /* Override any gcc2 internal prototype to avoid an error.  */
10824 #ifdef __cplusplus
10825 extern "C"
10826 #endif
10827 /* We use char because int might match the return type of a gcc2
10828    builtin and then its argument prototype would still apply.  */
10829 char opendir ();
10830 int
10831 main ()
10832 {
10833 opendir ();
10834   ;
10835   return 0;
10836 }
10837 _ACEOF
10838 rm -f conftest.$ac_objext conftest$ac_exeext
10839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10840   (eval $ac_link) 2>&5
10841   ac_status=$?
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); } &&
10844          { ac_try='test -s conftest$ac_exeext'
10845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846   (eval $ac_try) 2>&5
10847   ac_status=$?
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); }; }; then
10850   ac_cv_search_opendir="-l$ac_lib"
10851 break
10852 else
10853   echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10855
10856 fi
10857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10858   done
10859 fi
10860 LIBS=$ac_func_search_save_LIBS
10861 fi
10862 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10863 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10864 if test "$ac_cv_search_opendir" != no; then
10865   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10866
10867 fi
10868
10869 fi
10870
10871 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10872 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10873 if test "${ac_cv_header_stat_broken+set}" = set; then
10874   echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876   cat >conftest.$ac_ext <<_ACEOF
10877 #line $LINENO "configure"
10878 /* confdefs.h.  */
10879 _ACEOF
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h.  */
10883 #include <sys/types.h>
10884 #include <sys/stat.h>
10885
10886 #if defined(S_ISBLK) && defined(S_IFDIR)
10887 # if S_ISBLK (S_IFDIR)
10888 You lose.
10889 # endif
10890 #endif
10891
10892 #if defined(S_ISBLK) && defined(S_IFCHR)
10893 # if S_ISBLK (S_IFCHR)
10894 You lose.
10895 # endif
10896 #endif
10897
10898 #if defined(S_ISLNK) && defined(S_IFREG)
10899 # if S_ISLNK (S_IFREG)
10900 You lose.
10901 # endif
10902 #endif
10903
10904 #if defined(S_ISSOCK) && defined(S_IFREG)
10905 # if S_ISSOCK (S_IFREG)
10906 You lose.
10907 # endif
10908 #endif
10909
10910 _ACEOF
10911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10912   $EGREP "You lose" >/dev/null 2>&1; then
10913   ac_cv_header_stat_broken=yes
10914 else
10915   ac_cv_header_stat_broken=no
10916 fi
10917 rm -f conftest*
10918
10919 fi
10920 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10921 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10922 if test $ac_cv_header_stat_broken = yes; then
10923
10924 cat >>confdefs.h <<\_ACEOF
10925 #define STAT_MACROS_BROKEN 1
10926 _ACEOF
10927
10928 fi
10929
10930 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10931 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10932 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10933   echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935   cat >conftest.$ac_ext <<_ACEOF
10936 #line $LINENO "configure"
10937 /* confdefs.h.  */
10938 _ACEOF
10939 cat confdefs.h >>conftest.$ac_ext
10940 cat >>conftest.$ac_ext <<_ACEOF
10941 /* end confdefs.h.  */
10942 #include <sys/types.h>
10943 #include <sys/wait.h>
10944 #ifndef WEXITSTATUS
10945 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10946 #endif
10947 #ifndef WIFEXITED
10948 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10949 #endif
10950
10951 int
10952 main ()
10953 {
10954   int s;
10955   wait (&s);
10956   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10957   ;
10958   return 0;
10959 }
10960 _ACEOF
10961 rm -f conftest.$ac_objext
10962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10963   (eval $ac_compile) 2>&5
10964   ac_status=$?
10965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966   (exit $ac_status); } &&
10967          { ac_try='test -s conftest.$ac_objext'
10968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10969   (eval $ac_try) 2>&5
10970   ac_status=$?
10971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972   (exit $ac_status); }; }; then
10973   ac_cv_header_sys_wait_h=yes
10974 else
10975   echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10977
10978 ac_cv_header_sys_wait_h=no
10979 fi
10980 rm -f conftest.$ac_objext conftest.$ac_ext
10981 fi
10982 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10983 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10984 if test $ac_cv_header_sys_wait_h = yes; then
10985
10986 cat >>confdefs.h <<\_ACEOF
10987 #define HAVE_SYS_WAIT_H 1
10988 _ACEOF
10989
10990 fi
10991
10992 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10993 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10994 if test "${ac_cv_header_time+set}" = set; then
10995   echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997   cat >conftest.$ac_ext <<_ACEOF
10998 #line $LINENO "configure"
10999 /* confdefs.h.  */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h.  */
11004 #include <sys/types.h>
11005 #include <sys/time.h>
11006 #include <time.h>
11007
11008 int
11009 main ()
11010 {
11011 if ((struct tm *) 0)
11012 return 0;
11013   ;
11014   return 0;
11015 }
11016 _ACEOF
11017 rm -f conftest.$ac_objext
11018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11019   (eval $ac_compile) 2>&5
11020   ac_status=$?
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); } &&
11023          { ac_try='test -s conftest.$ac_objext'
11024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025   (eval $ac_try) 2>&5
11026   ac_status=$?
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); }; }; then
11029   ac_cv_header_time=yes
11030 else
11031   echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11033
11034 ac_cv_header_time=no
11035 fi
11036 rm -f conftest.$ac_objext conftest.$ac_ext
11037 fi
11038 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11039 echo "${ECHO_T}$ac_cv_header_time" >&6
11040 if test $ac_cv_header_time = yes; then
11041
11042 cat >>confdefs.h <<\_ACEOF
11043 #define TIME_WITH_SYS_TIME 1
11044 _ACEOF
11045
11046 fi
11047
11048
11049 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11050 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11051 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11052   echo $ECHO_N "(cached) $ECHO_C" >&6
11053 else
11054   cat >conftest.$ac_ext <<_ACEOF
11055 #line $LINENO "configure"
11056 /* confdefs.h.  */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h.  */
11061 $ac_includes_default
11062 int
11063 main ()
11064 {
11065 static struct stat ac_aggr;
11066 if (ac_aggr.st_blksize)
11067 return 0;
11068   ;
11069   return 0;
11070 }
11071 _ACEOF
11072 rm -f conftest.$ac_objext
11073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11074   (eval $ac_compile) 2>&5
11075   ac_status=$?
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); } &&
11078          { ac_try='test -s conftest.$ac_objext'
11079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11080   (eval $ac_try) 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); }; }; then
11084   ac_cv_member_struct_stat_st_blksize=yes
11085 else
11086   echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11088
11089 cat >conftest.$ac_ext <<_ACEOF
11090 #line $LINENO "configure"
11091 /* confdefs.h.  */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h.  */
11096 $ac_includes_default
11097 int
11098 main ()
11099 {
11100 static struct stat ac_aggr;
11101 if (sizeof ac_aggr.st_blksize)
11102 return 0;
11103   ;
11104   return 0;
11105 }
11106 _ACEOF
11107 rm -f conftest.$ac_objext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11109   (eval $ac_compile) 2>&5
11110   ac_status=$?
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); } &&
11113          { ac_try='test -s conftest.$ac_objext'
11114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115   (eval $ac_try) 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; }; then
11119   ac_cv_member_struct_stat_st_blksize=yes
11120 else
11121   echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11123
11124 ac_cv_member_struct_stat_st_blksize=no
11125 fi
11126 rm -f conftest.$ac_objext conftest.$ac_ext
11127 fi
11128 rm -f conftest.$ac_objext conftest.$ac_ext
11129 fi
11130 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11131 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11132 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11133
11134 cat >>confdefs.h <<_ACEOF
11135 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11136 _ACEOF
11137
11138
11139 cat >>confdefs.h <<\_ACEOF
11140 #define HAVE_ST_BLKSIZE 1
11141 _ACEOF
11142
11143 fi
11144
11145
11146 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11147 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11148 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11149   echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151   cat >conftest.$ac_ext <<_ACEOF
11152 #line $LINENO "configure"
11153 /* confdefs.h.  */
11154 _ACEOF
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h.  */
11158 $ac_includes_default
11159 int
11160 main ()
11161 {
11162 static struct stat ac_aggr;
11163 if (ac_aggr.st_blocks)
11164 return 0;
11165   ;
11166   return 0;
11167 }
11168 _ACEOF
11169 rm -f conftest.$ac_objext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11171   (eval $ac_compile) 2>&5
11172   ac_status=$?
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); } &&
11175          { ac_try='test -s conftest.$ac_objext'
11176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11177   (eval $ac_try) 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); }; }; then
11181   ac_cv_member_struct_stat_st_blocks=yes
11182 else
11183   echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11185
11186 cat >conftest.$ac_ext <<_ACEOF
11187 #line $LINENO "configure"
11188 /* confdefs.h.  */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h.  */
11193 $ac_includes_default
11194 int
11195 main ()
11196 {
11197 static struct stat ac_aggr;
11198 if (sizeof ac_aggr.st_blocks)
11199 return 0;
11200   ;
11201   return 0;
11202 }
11203 _ACEOF
11204 rm -f conftest.$ac_objext
11205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11206   (eval $ac_compile) 2>&5
11207   ac_status=$?
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); } &&
11210          { ac_try='test -s conftest.$ac_objext'
11211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212   (eval $ac_try) 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); }; }; then
11216   ac_cv_member_struct_stat_st_blocks=yes
11217 else
11218   echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11220
11221 ac_cv_member_struct_stat_st_blocks=no
11222 fi
11223 rm -f conftest.$ac_objext conftest.$ac_ext
11224 fi
11225 rm -f conftest.$ac_objext conftest.$ac_ext
11226 fi
11227 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11228 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11229 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11230
11231 cat >>confdefs.h <<_ACEOF
11232 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11233 _ACEOF
11234
11235
11236 cat >>confdefs.h <<\_ACEOF
11237 #define HAVE_ST_BLOCKS 1
11238 _ACEOF
11239
11240 else
11241   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11242 fi
11243
11244
11245 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11246 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11247 if test "${ac_cv_struct_tm+set}" = set; then
11248   echo $ECHO_N "(cached) $ECHO_C" >&6
11249 else
11250   cat >conftest.$ac_ext <<_ACEOF
11251 #line $LINENO "configure"
11252 /* confdefs.h.  */
11253 _ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h.  */
11257 #include <sys/types.h>
11258 #include <time.h>
11259
11260 int
11261 main ()
11262 {
11263 struct tm *tp; tp->tm_sec;
11264   ;
11265   return 0;
11266 }
11267 _ACEOF
11268 rm -f conftest.$ac_objext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270   (eval $ac_compile) 2>&5
11271   ac_status=$?
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); } &&
11274          { ac_try='test -s conftest.$ac_objext'
11275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11276   (eval $ac_try) 2>&5
11277   ac_status=$?
11278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279   (exit $ac_status); }; }; then
11280   ac_cv_struct_tm=time.h
11281 else
11282   echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11284
11285 ac_cv_struct_tm=sys/time.h
11286 fi
11287 rm -f conftest.$ac_objext conftest.$ac_ext
11288 fi
11289 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11290 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11291 if test $ac_cv_struct_tm = sys/time.h; then
11292
11293 cat >>confdefs.h <<\_ACEOF
11294 #define TM_IN_SYS_TIME 1
11295 _ACEOF
11296
11297 fi
11298
11299 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11300 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11301 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11302   echo $ECHO_N "(cached) $ECHO_C" >&6
11303 else
11304   cat >conftest.$ac_ext <<_ACEOF
11305 #line $LINENO "configure"
11306 /* confdefs.h.  */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h.  */
11311 #include <sys/types.h>
11312 #include <$ac_cv_struct_tm>
11313
11314
11315 int
11316 main ()
11317 {
11318 static struct tm ac_aggr;
11319 if (ac_aggr.tm_zone)
11320 return 0;
11321   ;
11322   return 0;
11323 }
11324 _ACEOF
11325 rm -f conftest.$ac_objext
11326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11327   (eval $ac_compile) 2>&5
11328   ac_status=$?
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } &&
11331          { ac_try='test -s conftest.$ac_objext'
11332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11333   (eval $ac_try) 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); }; }; then
11337   ac_cv_member_struct_tm_tm_zone=yes
11338 else
11339   echo "$as_me: failed program was:" >&5
11340 sed 's/^/| /' conftest.$ac_ext >&5
11341
11342 cat >conftest.$ac_ext <<_ACEOF
11343 #line $LINENO "configure"
11344 /* confdefs.h.  */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h.  */
11349 #include <sys/types.h>
11350 #include <$ac_cv_struct_tm>
11351
11352
11353 int
11354 main ()
11355 {
11356 static struct tm ac_aggr;
11357 if (sizeof ac_aggr.tm_zone)
11358 return 0;
11359   ;
11360   return 0;
11361 }
11362 _ACEOF
11363 rm -f conftest.$ac_objext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11365   (eval $ac_compile) 2>&5
11366   ac_status=$?
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); } &&
11369          { ac_try='test -s conftest.$ac_objext'
11370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371   (eval $ac_try) 2>&5
11372   ac_status=$?
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); }; }; then
11375   ac_cv_member_struct_tm_tm_zone=yes
11376 else
11377   echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11379
11380 ac_cv_member_struct_tm_tm_zone=no
11381 fi
11382 rm -f conftest.$ac_objext conftest.$ac_ext
11383 fi
11384 rm -f conftest.$ac_objext conftest.$ac_ext
11385 fi
11386 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11387 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11388 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11389
11390 cat >>confdefs.h <<_ACEOF
11391 #define HAVE_STRUCT_TM_TM_ZONE 1
11392 _ACEOF
11393
11394
11395 fi
11396
11397 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11398
11399 cat >>confdefs.h <<\_ACEOF
11400 #define HAVE_TM_ZONE 1
11401 _ACEOF
11402
11403 else
11404   echo "$as_me:$LINENO: checking for tzname" >&5
11405 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11406 if test "${ac_cv_var_tzname+set}" = set; then
11407   echo $ECHO_N "(cached) $ECHO_C" >&6
11408 else
11409   cat >conftest.$ac_ext <<_ACEOF
11410 #line $LINENO "configure"
11411 /* confdefs.h.  */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h.  */
11416 #include <time.h>
11417 #ifndef tzname /* For SGI.  */
11418 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11419 #endif
11420
11421 int
11422 main ()
11423 {
11424 atoi(*tzname);
11425   ;
11426   return 0;
11427 }
11428 _ACEOF
11429 rm -f conftest.$ac_objext conftest$ac_exeext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11431   (eval $ac_link) 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); } &&
11435          { ac_try='test -s conftest$ac_exeext'
11436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437   (eval $ac_try) 2>&5
11438   ac_status=$?
11439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440   (exit $ac_status); }; }; then
11441   ac_cv_var_tzname=yes
11442 else
11443   echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11445
11446 ac_cv_var_tzname=no
11447 fi
11448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11449 fi
11450 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11451 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11452   if test $ac_cv_var_tzname = yes; then
11453
11454 cat >>confdefs.h <<\_ACEOF
11455 #define HAVE_TZNAME 1
11456 _ACEOF
11457
11458   fi
11459 fi
11460
11461
11462 echo "$as_me:$LINENO: checking for utime.h" >&5
11463 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11464 if test "${ba_cv_header_utime_h+set}" = set; then
11465   echo $ECHO_N "(cached) $ECHO_C" >&6
11466 else
11467   cat >conftest.$ac_ext <<_ACEOF
11468 #line $LINENO "configure"
11469 /* confdefs.h.  */
11470 _ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h.  */
11474
11475 #include <sys/types.h>
11476 #include <utime.h>
11477 int
11478 main ()
11479 {
11480 struct utimbuf foo
11481   ;
11482   return 0;
11483 }
11484 _ACEOF
11485 rm -f conftest.$ac_objext
11486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11487   (eval $ac_compile) 2>&5
11488   ac_status=$?
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); } &&
11491          { ac_try='test -s conftest.$ac_objext'
11492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493   (eval $ac_try) 2>&5
11494   ac_status=$?
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); }; }; then
11497   ba_cv_header_utime_h=yes
11498 else
11499   echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11501
11502 ba_cv_header_utime_h=no
11503 fi
11504 rm -f conftest.$ac_objext conftest.$ac_ext
11505 fi
11506 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11507 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11508 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11509 #define HAVE_UTIME_H 1
11510 _ACEOF
11511
11512
11513 echo "$as_me:$LINENO: checking for socklen_t" >&5
11514 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11515 if test "${ba_cv_header_socklen_t+set}" = set; then
11516   echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518   cat >conftest.$ac_ext <<_ACEOF
11519 #line $LINENO "configure"
11520 /* confdefs.h.  */
11521 _ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h.  */
11525
11526 #include <sys/types.h>
11527 #include <sys/socket.h>
11528 int
11529 main ()
11530 {
11531 socklen_t x
11532   ;
11533   return 0;
11534 }
11535 _ACEOF
11536 rm -f conftest.$ac_objext
11537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11538   (eval $ac_compile) 2>&5
11539   ac_status=$?
11540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541   (exit $ac_status); } &&
11542          { ac_try='test -s conftest.$ac_objext'
11543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544   (eval $ac_try) 2>&5
11545   ac_status=$?
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); }; }; then
11548   ba_cv_header_socklen_t=yes
11549 else
11550   echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11552
11553 ba_cv_header_socklen_t=no
11554 fi
11555 rm -f conftest.$ac_objext conftest.$ac_ext
11556 fi
11557 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11558 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11559 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11560 #define HAVE_SOCKLEN_T 1
11561 _ACEOF
11562
11563
11564 echo "$as_me:$LINENO: checking for bigendian" >&5
11565 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11566 if test "${ba_cv_bigendian+set}" = set; then
11567   echo $ECHO_N "(cached) $ECHO_C" >&6
11568 else
11569   if test "$cross_compiling" = yes; then
11570   ba_cv_bigendian=no
11571 else
11572   cat >conftest.$ac_ext <<_ACEOF
11573 #line $LINENO "configure"
11574 /* confdefs.h.  */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h.  */
11579 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11580 _ACEOF
11581 rm -f conftest$ac_exeext
11582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11583   (eval $ac_link) 2>&5
11584   ac_status=$?
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588   (eval $ac_try) 2>&5
11589   ac_status=$?
11590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); }; }; then
11592   ba_cv_bigendian=yes
11593 else
11594   echo "$as_me: program exited with status $ac_status" >&5
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11597
11598 ( exit $ac_status )
11599 ba_cv_bigendian=no
11600 fi
11601 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11602 fi
11603 fi
11604 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11605 echo "${ECHO_T}$ba_cv_bigendian" >&6
11606 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11607 #define HAVE_BIGENDIAN 1
11608 _ACEOF
11609
11610
11611
11612 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11613 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11614 if test "${ac_cv_c_const+set}" = set; then
11615   echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617   cat >conftest.$ac_ext <<_ACEOF
11618 #line $LINENO "configure"
11619 /* confdefs.h.  */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h.  */
11624
11625 int
11626 main ()
11627 {
11628 /* FIXME: Include the comments suggested by Paul. */
11629 #ifndef __cplusplus
11630   /* Ultrix mips cc rejects this.  */
11631   typedef int charset[2];
11632   const charset x;
11633   /* SunOS 4.1.1 cc rejects this.  */
11634   char const *const *ccp;
11635   char **p;
11636   /* NEC SVR4.0.2 mips cc rejects this.  */
11637   struct point {int x, y;};
11638   static struct point const zero = {0,0};
11639   /* AIX XL C 1.02.0.0 rejects this.
11640      It does not let you subtract one const X* pointer from another in
11641      an arm of an if-expression whose if-part is not a constant
11642      expression */
11643   const char *g = "string";
11644   ccp = &g + (g ? g-g : 0);
11645   /* HPUX 7.0 cc rejects these. */
11646   ++ccp;
11647   p = (char**) ccp;
11648   ccp = (char const *const *) p;
11649   { /* SCO 3.2v4 cc rejects this.  */
11650     char *t;
11651     char const *s = 0 ? (char *) 0 : (char const *) 0;
11652
11653     *t++ = 0;
11654   }
11655   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11656     int x[] = {25, 17};
11657     const int *foo = &x[0];
11658     ++foo;
11659   }
11660   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11661     typedef const int *iptr;
11662     iptr p = 0;
11663     ++p;
11664   }
11665   { /* AIX XL C 1.02.0.0 rejects this saying
11666        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11667     struct s { int j; const int *ap[3]; };
11668     struct s *b; b->j = 5;
11669   }
11670   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11671     const int foo = 10;
11672   }
11673 #endif
11674
11675   ;
11676   return 0;
11677 }
11678 _ACEOF
11679 rm -f conftest.$ac_objext
11680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11681   (eval $ac_compile) 2>&5
11682   ac_status=$?
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); } &&
11685          { ac_try='test -s conftest.$ac_objext'
11686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687   (eval $ac_try) 2>&5
11688   ac_status=$?
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); }; }; then
11691   ac_cv_c_const=yes
11692 else
11693   echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11695
11696 ac_cv_c_const=no
11697 fi
11698 rm -f conftest.$ac_objext conftest.$ac_ext
11699 fi
11700 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11701 echo "${ECHO_T}$ac_cv_c_const" >&6
11702 if test $ac_cv_c_const = no; then
11703
11704 cat >>confdefs.h <<\_ACEOF
11705 #define const
11706 _ACEOF
11707
11708 fi
11709
11710
11711
11712 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11713 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11714 fstype=no
11715 # The order of these tests is important.
11716 cat >conftest.$ac_ext <<_ACEOF
11717 #line $LINENO "configure"
11718 /* confdefs.h.  */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h.  */
11723 #include <sys/statvfs.h>
11724 #include <sys/fstyp.h>
11725 _ACEOF
11726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11727   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11728   ac_status=$?
11729   grep -v '^ *+' conftest.er1 >conftest.err
11730   rm -f conftest.er1
11731   cat conftest.err >&5
11732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733   (exit $ac_status); } >/dev/null; then
11734   if test -s conftest.err; then
11735     ac_cpp_err=$ac_c_preproc_warn_flag
11736   else
11737     ac_cpp_err=
11738   fi
11739 else
11740   ac_cpp_err=yes
11741 fi
11742 if test -z "$ac_cpp_err"; then
11743   cat >>confdefs.h <<\_ACEOF
11744 #define FSTYPE_STATVFS 1
11745 _ACEOF
11746  fstype=SVR4
11747 else
11748   echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11750
11751
11752 fi
11753 rm -f conftest.err conftest.$ac_ext
11754 if test $fstype = no; then
11755 cat >conftest.$ac_ext <<_ACEOF
11756 #line $LINENO "configure"
11757 /* confdefs.h.  */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h.  */
11762 #include <sys/statfs.h>
11763 #include <sys/fstyp.h>
11764 _ACEOF
11765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11766   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11767   ac_status=$?
11768   grep -v '^ *+' conftest.er1 >conftest.err
11769   rm -f conftest.er1
11770   cat conftest.err >&5
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); } >/dev/null; then
11773   if test -s conftest.err; then
11774     ac_cpp_err=$ac_c_preproc_warn_flag
11775   else
11776     ac_cpp_err=
11777   fi
11778 else
11779   ac_cpp_err=yes
11780 fi
11781 if test -z "$ac_cpp_err"; then
11782   cat >>confdefs.h <<\_ACEOF
11783 #define FSTYPE_USG_STATFS 1
11784 _ACEOF
11785  fstype=SVR3
11786 else
11787   echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790
11791 fi
11792 rm -f conftest.err conftest.$ac_ext
11793 fi
11794 if test $fstype = no; then
11795 cat >conftest.$ac_ext <<_ACEOF
11796 #line $LINENO "configure"
11797 /* confdefs.h.  */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h.  */
11802 #include <sys/statfs.h>
11803 #include <sys/vmount.h>
11804 _ACEOF
11805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11807   ac_status=$?
11808   grep -v '^ *+' conftest.er1 >conftest.err
11809   rm -f conftest.er1
11810   cat conftest.err >&5
11811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812   (exit $ac_status); } >/dev/null; then
11813   if test -s conftest.err; then
11814     ac_cpp_err=$ac_c_preproc_warn_flag
11815   else
11816     ac_cpp_err=
11817   fi
11818 else
11819   ac_cpp_err=yes
11820 fi
11821 if test -z "$ac_cpp_err"; then
11822   cat >>confdefs.h <<\_ACEOF
11823 #define FSTYPE_AIX_STATFS 1
11824 _ACEOF
11825  fstype=AIX
11826 else
11827   echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11829
11830
11831 fi
11832 rm -f conftest.err conftest.$ac_ext
11833 fi
11834 if test $fstype = no; then
11835 cat >conftest.$ac_ext <<_ACEOF
11836 #line $LINENO "configure"
11837 /* confdefs.h.  */
11838 _ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h.  */
11842 #include <mntent.h>
11843 _ACEOF
11844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11846   ac_status=$?
11847   grep -v '^ *+' conftest.er1 >conftest.err
11848   rm -f conftest.er1
11849   cat conftest.err >&5
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); } >/dev/null; then
11852   if test -s conftest.err; then
11853     ac_cpp_err=$ac_c_preproc_warn_flag
11854   else
11855     ac_cpp_err=
11856   fi
11857 else
11858   ac_cpp_err=yes
11859 fi
11860 if test -z "$ac_cpp_err"; then
11861   cat >>confdefs.h <<\_ACEOF
11862 #define FSTYPE_MNTENT 1
11863 _ACEOF
11864  fstype=4.3BSD
11865 else
11866   echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11868
11869
11870 fi
11871 rm -f conftest.err conftest.$ac_ext
11872 fi
11873 if test $fstype = no; then
11874 cat >conftest.$ac_ext <<_ACEOF
11875 #line $LINENO "configure"
11876 /* confdefs.h.  */
11877 _ACEOF
11878 cat confdefs.h >>conftest.$ac_ext
11879 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h.  */
11881 #include <sys/mount.h>
11882
11883 _ACEOF
11884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11885   $EGREP "f_type;" >/dev/null 2>&1; then
11886   cat >>confdefs.h <<\_ACEOF
11887 #define FSTYPE_STATFS 1
11888 _ACEOF
11889  fstype=4.4BSD/OSF1
11890 fi
11891 rm -f conftest*
11892
11893 fi
11894 if test $fstype = no; then
11895 cat >conftest.$ac_ext <<_ACEOF
11896 #line $LINENO "configure"
11897 /* confdefs.h.  */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h.  */
11902 #include <sys/mount.h>
11903 #include <sys/fs_types.h>
11904 _ACEOF
11905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11907   ac_status=$?
11908   grep -v '^ *+' conftest.er1 >conftest.err
11909   rm -f conftest.er1
11910   cat conftest.err >&5
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } >/dev/null; then
11913   if test -s conftest.err; then
11914     ac_cpp_err=$ac_c_preproc_warn_flag
11915   else
11916     ac_cpp_err=
11917   fi
11918 else
11919   ac_cpp_err=yes
11920 fi
11921 if test -z "$ac_cpp_err"; then
11922   cat >>confdefs.h <<\_ACEOF
11923 #define FSTYPE_GETMNT 1
11924 _ACEOF
11925  fstype=Ultrix
11926 else
11927   echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11929
11930
11931 fi
11932 rm -f conftest.err conftest.$ac_ext
11933 fi
11934 echo "$as_me:$LINENO: result: $fstype" >&5
11935 echo "${ECHO_T}$fstype" >&6
11936
11937 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11938 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11939 if test "${ac_cv_type_signal+set}" = set; then
11940   echo $ECHO_N "(cached) $ECHO_C" >&6
11941 else
11942   cat >conftest.$ac_ext <<_ACEOF
11943 #line $LINENO "configure"
11944 /* confdefs.h.  */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h.  */
11949 #include <sys/types.h>
11950 #include <signal.h>
11951 #ifdef signal
11952 # undef signal
11953 #endif
11954 #ifdef __cplusplus
11955 extern "C" void (*signal (int, void (*)(int)))(int);
11956 #else
11957 void (*signal ()) ();
11958 #endif
11959
11960 int
11961 main ()
11962 {
11963 int i;
11964   ;
11965   return 0;
11966 }
11967 _ACEOF
11968 rm -f conftest.$ac_objext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11970   (eval $ac_compile) 2>&5
11971   ac_status=$?
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } &&
11974          { ac_try='test -s conftest.$ac_objext'
11975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976   (eval $ac_try) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; }; then
11980   ac_cv_type_signal=void
11981 else
11982   echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11984
11985 ac_cv_type_signal=int
11986 fi
11987 rm -f conftest.$ac_objext conftest.$ac_ext
11988 fi
11989 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11990 echo "${ECHO_T}$ac_cv_type_signal" >&6
11991
11992 cat >>confdefs.h <<_ACEOF
11993 #define RETSIGTYPE $ac_cv_type_signal
11994 _ACEOF
11995
11996
11997
11998 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11999 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12000 if test "${bash_cv_signal_vintage+set}" = set; then
12001   echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003
12004   cat >conftest.$ac_ext <<_ACEOF
12005 #line $LINENO "configure"
12006 /* confdefs.h.  */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h.  */
12011 #include <signal.h>
12012 int
12013 main ()
12014 {
12015
12016     sigset_t ss;
12017     struct sigaction sa;
12018     sigemptyset(&ss); sigsuspend(&ss);
12019     sigaction(SIGINT, &sa, (struct sigaction *) 0);
12020     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12021
12022   ;
12023   return 0;
12024 }
12025 _ACEOF
12026 rm -f conftest.$ac_objext conftest$ac_exeext
12027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028   (eval $ac_link) 2>&5
12029   ac_status=$?
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); } &&
12032          { ac_try='test -s conftest$ac_exeext'
12033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034   (eval $ac_try) 2>&5
12035   ac_status=$?
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); }; }; then
12038   bash_cv_signal_vintage=posix
12039 else
12040   echo "$as_me: failed program was:" >&5
12041 sed 's/^/| /' conftest.$ac_ext >&5
12042
12043
12044     cat >conftest.$ac_ext <<_ACEOF
12045 #line $LINENO "configure"
12046 /* confdefs.h.  */
12047 _ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h.  */
12051 #include <signal.h>
12052 int
12053 main ()
12054 {
12055
12056         int mask = sigmask(SIGINT);
12057         sigsetmask(mask); sigblock(mask); sigpause(mask);
12058
12059   ;
12060   return 0;
12061 }
12062 _ACEOF
12063 rm -f conftest.$ac_objext conftest$ac_exeext
12064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12065   (eval $ac_link) 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); } &&
12069          { ac_try='test -s conftest$ac_exeext'
12070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071   (eval $ac_try) 2>&5
12072   ac_status=$?
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); }; }; then
12075   bash_cv_signal_vintage=4.2bsd
12076 else
12077   echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12079
12080
12081       cat >conftest.$ac_ext <<_ACEOF
12082 #line $LINENO "configure"
12083 /* confdefs.h.  */
12084 _ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h.  */
12088
12089         #include <signal.h>
12090         RETSIGTYPE foo() { }
12091 int
12092 main ()
12093 {
12094
12095                 int mask = sigmask(SIGINT);
12096                 sigset(SIGINT, foo); sigrelse(SIGINT);
12097                 sighold(SIGINT); sigpause(SIGINT);
12098
12099   ;
12100   return 0;
12101 }
12102 _ACEOF
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12105   (eval $ac_link) 2>&5
12106   ac_status=$?
12107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108   (exit $ac_status); } &&
12109          { ac_try='test -s conftest$ac_exeext'
12110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111   (eval $ac_try) 2>&5
12112   ac_status=$?
12113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114   (exit $ac_status); }; }; then
12115   bash_cv_signal_vintage=svr3
12116 else
12117   echo "$as_me: failed program was:" >&5
12118 sed 's/^/| /' conftest.$ac_ext >&5
12119
12120 bash_cv_signal_vintage=v7
12121
12122 fi
12123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12124
12125 fi
12126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12127
12128 fi
12129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12130
12131 fi
12132
12133 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12134 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12135 if test "$bash_cv_signal_vintage" = posix; then
12136 cat >>confdefs.h <<\_ACEOF
12137 #define HAVE_POSIX_SIGNALS 1
12138 _ACEOF
12139
12140 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12141 cat >>confdefs.h <<\_ACEOF
12142 #define HAVE_BSD_SIGNALS 1
12143 _ACEOF
12144
12145 elif test "$bash_cv_signal_vintage" = svr3; then
12146 cat >>confdefs.h <<\_ACEOF
12147 #define HAVE_USG_SIGHOLD 1
12148 _ACEOF
12149
12150 fi
12151
12152 echo "$as_me:$LINENO: checking for mode_t" >&5
12153 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12154 if test "${ac_cv_type_mode_t+set}" = set; then
12155   echo $ECHO_N "(cached) $ECHO_C" >&6
12156 else
12157   cat >conftest.$ac_ext <<_ACEOF
12158 #line $LINENO "configure"
12159 /* confdefs.h.  */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h.  */
12164 $ac_includes_default
12165 int
12166 main ()
12167 {
12168 if ((mode_t *) 0)
12169   return 0;
12170 if (sizeof (mode_t))
12171   return 0;
12172   ;
12173   return 0;
12174 }
12175 _ACEOF
12176 rm -f conftest.$ac_objext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12178   (eval $ac_compile) 2>&5
12179   ac_status=$?
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); } &&
12182          { ac_try='test -s conftest.$ac_objext'
12183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184   (eval $ac_try) 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); }; }; then
12188   ac_cv_type_mode_t=yes
12189 else
12190   echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12192
12193 ac_cv_type_mode_t=no
12194 fi
12195 rm -f conftest.$ac_objext conftest.$ac_ext
12196 fi
12197 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12198 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12199 if test $ac_cv_type_mode_t = yes; then
12200   :
12201 else
12202
12203 cat >>confdefs.h <<_ACEOF
12204 #define mode_t int
12205 _ACEOF
12206
12207 fi
12208
12209 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12210 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12211 if test "${ac_cv_type_uid_t+set}" = set; then
12212   echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214   cat >conftest.$ac_ext <<_ACEOF
12215 #line $LINENO "configure"
12216 /* confdefs.h.  */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h.  */
12221 #include <sys/types.h>
12222
12223 _ACEOF
12224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12225   $EGREP "uid_t" >/dev/null 2>&1; then
12226   ac_cv_type_uid_t=yes
12227 else
12228   ac_cv_type_uid_t=no
12229 fi
12230 rm -f conftest*
12231
12232 fi
12233 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12234 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12235 if test $ac_cv_type_uid_t = no; then
12236
12237 cat >>confdefs.h <<\_ACEOF
12238 #define uid_t int
12239 _ACEOF
12240
12241
12242 cat >>confdefs.h <<\_ACEOF
12243 #define gid_t int
12244 _ACEOF
12245
12246 fi
12247
12248 echo "$as_me:$LINENO: checking for size_t" >&5
12249 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12250 if test "${ac_cv_type_size_t+set}" = set; then
12251   echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253   cat >conftest.$ac_ext <<_ACEOF
12254 #line $LINENO "configure"
12255 /* confdefs.h.  */
12256 _ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h.  */
12260 $ac_includes_default
12261 int
12262 main ()
12263 {
12264 if ((size_t *) 0)
12265   return 0;
12266 if (sizeof (size_t))
12267   return 0;
12268   ;
12269   return 0;
12270 }
12271 _ACEOF
12272 rm -f conftest.$ac_objext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12274   (eval $ac_compile) 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); } &&
12278          { ac_try='test -s conftest.$ac_objext'
12279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280   (eval $ac_try) 2>&5
12281   ac_status=$?
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); }; }; then
12284   ac_cv_type_size_t=yes
12285 else
12286   echo "$as_me: failed program was:" >&5
12287 sed 's/^/| /' conftest.$ac_ext >&5
12288
12289 ac_cv_type_size_t=no
12290 fi
12291 rm -f conftest.$ac_objext conftest.$ac_ext
12292 fi
12293 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12294 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12295 if test $ac_cv_type_size_t = yes; then
12296   :
12297 else
12298
12299 cat >>confdefs.h <<_ACEOF
12300 #define size_t unsigned
12301 _ACEOF
12302
12303 fi
12304
12305 echo "$as_me:$LINENO: checking for pid_t" >&5
12306 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12307 if test "${ac_cv_type_pid_t+set}" = set; then
12308   echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310   cat >conftest.$ac_ext <<_ACEOF
12311 #line $LINENO "configure"
12312 /* confdefs.h.  */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h.  */
12317 $ac_includes_default
12318 int
12319 main ()
12320 {
12321 if ((pid_t *) 0)
12322   return 0;
12323 if (sizeof (pid_t))
12324   return 0;
12325   ;
12326   return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext
12330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12331   (eval $ac_compile) 2>&5
12332   ac_status=$?
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); } &&
12335          { ac_try='test -s conftest.$ac_objext'
12336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12337   (eval $ac_try) 2>&5
12338   ac_status=$?
12339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340   (exit $ac_status); }; }; then
12341   ac_cv_type_pid_t=yes
12342 else
12343   echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12345
12346 ac_cv_type_pid_t=no
12347 fi
12348 rm -f conftest.$ac_objext conftest.$ac_ext
12349 fi
12350 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12351 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12352 if test $ac_cv_type_pid_t = yes; then
12353   :
12354 else
12355
12356 cat >>confdefs.h <<_ACEOF
12357 #define pid_t int
12358 _ACEOF
12359
12360 fi
12361
12362 echo "$as_me:$LINENO: checking for off_t" >&5
12363 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12364 if test "${ac_cv_type_off_t+set}" = set; then
12365   echo $ECHO_N "(cached) $ECHO_C" >&6
12366 else
12367   cat >conftest.$ac_ext <<_ACEOF
12368 #line $LINENO "configure"
12369 /* confdefs.h.  */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h.  */
12374 $ac_includes_default
12375 int
12376 main ()
12377 {
12378 if ((off_t *) 0)
12379   return 0;
12380 if (sizeof (off_t))
12381   return 0;
12382   ;
12383   return 0;
12384 }
12385 _ACEOF
12386 rm -f conftest.$ac_objext
12387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12388   (eval $ac_compile) 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); } &&
12392          { ac_try='test -s conftest.$ac_objext'
12393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394   (eval $ac_try) 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; }; then
12398   ac_cv_type_off_t=yes
12399 else
12400   echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403 ac_cv_type_off_t=no
12404 fi
12405 rm -f conftest.$ac_objext conftest.$ac_ext
12406 fi
12407 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12408 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12409 if test $ac_cv_type_off_t = yes; then
12410   :
12411 else
12412
12413 cat >>confdefs.h <<_ACEOF
12414 #define off_t long
12415 _ACEOF
12416
12417 fi
12418
12419 echo "$as_me:$LINENO: checking for ino_t" >&5
12420 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12421 if test "${ac_cv_type_ino_t+set}" = set; then
12422   echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424   cat >conftest.$ac_ext <<_ACEOF
12425 #line $LINENO "configure"
12426 /* confdefs.h.  */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h.  */
12431 $ac_includes_default
12432 int
12433 main ()
12434 {
12435 if ((ino_t *) 0)
12436   return 0;
12437 if (sizeof (ino_t))
12438   return 0;
12439   ;
12440   return 0;
12441 }
12442 _ACEOF
12443 rm -f conftest.$ac_objext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445   (eval $ac_compile) 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); } &&
12449          { ac_try='test -s conftest.$ac_objext'
12450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451   (eval $ac_try) 2>&5
12452   ac_status=$?
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); }; }; then
12455   ac_cv_type_ino_t=yes
12456 else
12457   echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460 ac_cv_type_ino_t=no
12461 fi
12462 rm -f conftest.$ac_objext conftest.$ac_ext
12463 fi
12464 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12465 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12466 if test $ac_cv_type_ino_t = yes; then
12467   :
12468 else
12469
12470 cat >>confdefs.h <<_ACEOF
12471 #define ino_t unsigned long
12472 _ACEOF
12473
12474 fi
12475
12476 echo "$as_me:$LINENO: checking for dev_t" >&5
12477 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12478 if test "${ac_cv_type_dev_t+set}" = set; then
12479   echo $ECHO_N "(cached) $ECHO_C" >&6
12480 else
12481   cat >conftest.$ac_ext <<_ACEOF
12482 #line $LINENO "configure"
12483 /* confdefs.h.  */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h.  */
12488 $ac_includes_default
12489 int
12490 main ()
12491 {
12492 if ((dev_t *) 0)
12493   return 0;
12494 if (sizeof (dev_t))
12495   return 0;
12496   ;
12497   return 0;
12498 }
12499 _ACEOF
12500 rm -f conftest.$ac_objext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502   (eval $ac_compile) 2>&5
12503   ac_status=$?
12504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505   (exit $ac_status); } &&
12506          { ac_try='test -s conftest.$ac_objext'
12507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508   (eval $ac_try) 2>&5
12509   ac_status=$?
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); }; }; then
12512   ac_cv_type_dev_t=yes
12513 else
12514   echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12516
12517 ac_cv_type_dev_t=no
12518 fi
12519 rm -f conftest.$ac_objext conftest.$ac_ext
12520 fi
12521 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12522 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12523 if test $ac_cv_type_dev_t = yes; then
12524   :
12525 else
12526
12527 cat >>confdefs.h <<_ACEOF
12528 #define dev_t unsigned long
12529 _ACEOF
12530
12531 fi
12532
12533 echo "$as_me:$LINENO: checking for daddr_t" >&5
12534 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12535 if test "${ac_cv_type_daddr_t+set}" = set; then
12536   echo $ECHO_N "(cached) $ECHO_C" >&6
12537 else
12538   cat >conftest.$ac_ext <<_ACEOF
12539 #line $LINENO "configure"
12540 /* confdefs.h.  */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h.  */
12545 $ac_includes_default
12546 int
12547 main ()
12548 {
12549 if ((daddr_t *) 0)
12550   return 0;
12551 if (sizeof (daddr_t))
12552   return 0;
12553   ;
12554   return 0;
12555 }
12556 _ACEOF
12557 rm -f conftest.$ac_objext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12559   (eval $ac_compile) 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } &&
12563          { ac_try='test -s conftest.$ac_objext'
12564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565   (eval $ac_try) 2>&5
12566   ac_status=$?
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); }; }; then
12569   ac_cv_type_daddr_t=yes
12570 else
12571   echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12573
12574 ac_cv_type_daddr_t=no
12575 fi
12576 rm -f conftest.$ac_objext conftest.$ac_ext
12577 fi
12578 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12579 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12580 if test $ac_cv_type_daddr_t = yes; then
12581   :
12582 else
12583
12584 cat >>confdefs.h <<_ACEOF
12585 #define daddr_t long
12586 _ACEOF
12587
12588 fi
12589
12590 echo "$as_me:$LINENO: checking for major_t" >&5
12591 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12592 if test "${ac_cv_type_major_t+set}" = set; then
12593   echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595   cat >conftest.$ac_ext <<_ACEOF
12596 #line $LINENO "configure"
12597 /* confdefs.h.  */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h.  */
12602 $ac_includes_default
12603 int
12604 main ()
12605 {
12606 if ((major_t *) 0)
12607   return 0;
12608 if (sizeof (major_t))
12609   return 0;
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest.$ac_objext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616   (eval $ac_compile) 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); } &&
12620          { ac_try='test -s conftest.$ac_objext'
12621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622   (eval $ac_try) 2>&5
12623   ac_status=$?
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); }; }; then
12626   ac_cv_type_major_t=yes
12627 else
12628   echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12630
12631 ac_cv_type_major_t=no
12632 fi
12633 rm -f conftest.$ac_objext conftest.$ac_ext
12634 fi
12635 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12636 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12637 if test $ac_cv_type_major_t = yes; then
12638   :
12639 else
12640
12641 cat >>confdefs.h <<_ACEOF
12642 #define major_t int
12643 _ACEOF
12644
12645 fi
12646
12647 echo "$as_me:$LINENO: checking for minor_t" >&5
12648 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12649 if test "${ac_cv_type_minor_t+set}" = set; then
12650   echo $ECHO_N "(cached) $ECHO_C" >&6
12651 else
12652   cat >conftest.$ac_ext <<_ACEOF
12653 #line $LINENO "configure"
12654 /* confdefs.h.  */
12655 _ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h.  */
12659 $ac_includes_default
12660 int
12661 main ()
12662 {
12663 if ((minor_t *) 0)
12664   return 0;
12665 if (sizeof (minor_t))
12666   return 0;
12667   ;
12668   return 0;
12669 }
12670 _ACEOF
12671 rm -f conftest.$ac_objext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673   (eval $ac_compile) 2>&5
12674   ac_status=$?
12675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676   (exit $ac_status); } &&
12677          { ac_try='test -s conftest.$ac_objext'
12678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679   (eval $ac_try) 2>&5
12680   ac_status=$?
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); }; }; then
12683   ac_cv_type_minor_t=yes
12684 else
12685   echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12687
12688 ac_cv_type_minor_t=no
12689 fi
12690 rm -f conftest.$ac_objext conftest.$ac_ext
12691 fi
12692 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12693 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12694 if test $ac_cv_type_minor_t = yes; then
12695   :
12696 else
12697
12698 cat >>confdefs.h <<_ACEOF
12699 #define minor_t int
12700 _ACEOF
12701
12702 fi
12703
12704 echo "$as_me:$LINENO: checking for ssize_t" >&5
12705 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12706 if test "${ac_cv_type_ssize_t+set}" = set; then
12707   echo $ECHO_N "(cached) $ECHO_C" >&6
12708 else
12709   cat >conftest.$ac_ext <<_ACEOF
12710 #line $LINENO "configure"
12711 /* confdefs.h.  */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h.  */
12716 $ac_includes_default
12717 int
12718 main ()
12719 {
12720 if ((ssize_t *) 0)
12721   return 0;
12722 if (sizeof (ssize_t))
12723   return 0;
12724   ;
12725   return 0;
12726 }
12727 _ACEOF
12728 rm -f conftest.$ac_objext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730   (eval $ac_compile) 2>&5
12731   ac_status=$?
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); } &&
12734          { ac_try='test -s conftest.$ac_objext'
12735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736   (eval $ac_try) 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); }; }; then
12740   ac_cv_type_ssize_t=yes
12741 else
12742   echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12744
12745 ac_cv_type_ssize_t=no
12746 fi
12747 rm -f conftest.$ac_objext conftest.$ac_ext
12748 fi
12749 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12750 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12751 if test $ac_cv_type_ssize_t = yes; then
12752   :
12753 else
12754
12755 cat >>confdefs.h <<_ACEOF
12756 #define ssize_t int
12757 _ACEOF
12758
12759 fi
12760
12761 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12762 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12763 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12764   echo $ECHO_N "(cached) $ECHO_C" >&6
12765 else
12766   cat >conftest.$ac_ext <<_ACEOF
12767 #line $LINENO "configure"
12768 /* confdefs.h.  */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h.  */
12773 $ac_includes_default
12774 int
12775 main ()
12776 {
12777 static struct stat ac_aggr;
12778 if (ac_aggr.st_blocks)
12779 return 0;
12780   ;
12781   return 0;
12782 }
12783 _ACEOF
12784 rm -f conftest.$ac_objext
12785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12786   (eval $ac_compile) 2>&5
12787   ac_status=$?
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); } &&
12790          { ac_try='test -s conftest.$ac_objext'
12791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12792   (eval $ac_try) 2>&5
12793   ac_status=$?
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); }; }; then
12796   ac_cv_member_struct_stat_st_blocks=yes
12797 else
12798   echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12800
12801 cat >conftest.$ac_ext <<_ACEOF
12802 #line $LINENO "configure"
12803 /* confdefs.h.  */
12804 _ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h.  */
12808 $ac_includes_default
12809 int
12810 main ()
12811 {
12812 static struct stat ac_aggr;
12813 if (sizeof ac_aggr.st_blocks)
12814 return 0;
12815   ;
12816   return 0;
12817 }
12818 _ACEOF
12819 rm -f conftest.$ac_objext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12821   (eval $ac_compile) 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); } &&
12825          { ac_try='test -s conftest.$ac_objext'
12826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827   (eval $ac_try) 2>&5
12828   ac_status=$?
12829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830   (exit $ac_status); }; }; then
12831   ac_cv_member_struct_stat_st_blocks=yes
12832 else
12833   echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12835
12836 ac_cv_member_struct_stat_st_blocks=no
12837 fi
12838 rm -f conftest.$ac_objext conftest.$ac_ext
12839 fi
12840 rm -f conftest.$ac_objext conftest.$ac_ext
12841 fi
12842 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12843 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12844 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12845
12846 cat >>confdefs.h <<_ACEOF
12847 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12848 _ACEOF
12849
12850
12851 cat >>confdefs.h <<\_ACEOF
12852 #define HAVE_ST_BLOCKS 1
12853 _ACEOF
12854
12855 else
12856   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12857 fi
12858
12859
12860
12861 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12862 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12863 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12864   echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866   cat >conftest.$ac_ext <<_ACEOF
12867 #line $LINENO "configure"
12868 /* confdefs.h.  */
12869 _ACEOF
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h.  */
12873 $ac_includes_default
12874 int
12875 main ()
12876 {
12877 static struct stat ac_aggr;
12878 if (ac_aggr.st_rdev)
12879 return 0;
12880   ;
12881   return 0;
12882 }
12883 _ACEOF
12884 rm -f conftest.$ac_objext
12885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12886   (eval $ac_compile) 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); } &&
12890          { ac_try='test -s conftest.$ac_objext'
12891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892   (eval $ac_try) 2>&5
12893   ac_status=$?
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); }; }; then
12896   ac_cv_member_struct_stat_st_rdev=yes
12897 else
12898   echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12900
12901 cat >conftest.$ac_ext <<_ACEOF
12902 #line $LINENO "configure"
12903 /* confdefs.h.  */
12904 _ACEOF
12905 cat confdefs.h >>conftest.$ac_ext
12906 cat >>conftest.$ac_ext <<_ACEOF
12907 /* end confdefs.h.  */
12908 $ac_includes_default
12909 int
12910 main ()
12911 {
12912 static struct stat ac_aggr;
12913 if (sizeof ac_aggr.st_rdev)
12914 return 0;
12915   ;
12916   return 0;
12917 }
12918 _ACEOF
12919 rm -f conftest.$ac_objext
12920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12921   (eval $ac_compile) 2>&5
12922   ac_status=$?
12923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924   (exit $ac_status); } &&
12925          { ac_try='test -s conftest.$ac_objext'
12926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927   (eval $ac_try) 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); }; }; then
12931   ac_cv_member_struct_stat_st_rdev=yes
12932 else
12933   echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12935
12936 ac_cv_member_struct_stat_st_rdev=no
12937 fi
12938 rm -f conftest.$ac_objext conftest.$ac_ext
12939 fi
12940 rm -f conftest.$ac_objext conftest.$ac_ext
12941 fi
12942 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12943 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12944 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12945
12946 cat >>confdefs.h <<_ACEOF
12947 #define HAVE_STRUCT_STAT_ST_RDEV 1
12948 _ACEOF
12949
12950
12951 cat >>confdefs.h <<\_ACEOF
12952 #define HAVE_ST_RDEV 1
12953 _ACEOF
12954
12955 fi
12956
12957
12958 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12959 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12960 if test "${ac_cv_struct_tm+set}" = set; then
12961   echo $ECHO_N "(cached) $ECHO_C" >&6
12962 else
12963   cat >conftest.$ac_ext <<_ACEOF
12964 #line $LINENO "configure"
12965 /* confdefs.h.  */
12966 _ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h.  */
12970 #include <sys/types.h>
12971 #include <time.h>
12972
12973 int
12974 main ()
12975 {
12976 struct tm *tp; tp->tm_sec;
12977   ;
12978   return 0;
12979 }
12980 _ACEOF
12981 rm -f conftest.$ac_objext
12982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12983   (eval $ac_compile) 2>&5
12984   ac_status=$?
12985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986   (exit $ac_status); } &&
12987          { ac_try='test -s conftest.$ac_objext'
12988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989   (eval $ac_try) 2>&5
12990   ac_status=$?
12991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992   (exit $ac_status); }; }; then
12993   ac_cv_struct_tm=time.h
12994 else
12995   echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12997
12998 ac_cv_struct_tm=sys/time.h
12999 fi
13000 rm -f conftest.$ac_objext conftest.$ac_ext
13001 fi
13002 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13003 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13004 if test $ac_cv_struct_tm = sys/time.h; then
13005
13006 cat >>confdefs.h <<\_ACEOF
13007 #define TM_IN_SYS_TIME 1
13008 _ACEOF
13009
13010 fi
13011
13012 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13013 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13014 if test "${ac_cv_c_const+set}" = set; then
13015   echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017   cat >conftest.$ac_ext <<_ACEOF
13018 #line $LINENO "configure"
13019 /* confdefs.h.  */
13020 _ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h.  */
13024
13025 int
13026 main ()
13027 {
13028 /* FIXME: Include the comments suggested by Paul. */
13029 #ifndef __cplusplus
13030   /* Ultrix mips cc rejects this.  */
13031   typedef int charset[2];
13032   const charset x;
13033   /* SunOS 4.1.1 cc rejects this.  */
13034   char const *const *ccp;
13035   char **p;
13036   /* NEC SVR4.0.2 mips cc rejects this.  */
13037   struct point {int x, y;};
13038   static struct point const zero = {0,0};
13039   /* AIX XL C 1.02.0.0 rejects this.
13040      It does not let you subtract one const X* pointer from another in
13041      an arm of an if-expression whose if-part is not a constant
13042      expression */
13043   const char *g = "string";
13044   ccp = &g + (g ? g-g : 0);
13045   /* HPUX 7.0 cc rejects these. */
13046   ++ccp;
13047   p = (char**) ccp;
13048   ccp = (char const *const *) p;
13049   { /* SCO 3.2v4 cc rejects this.  */
13050     char *t;
13051     char const *s = 0 ? (char *) 0 : (char const *) 0;
13052
13053     *t++ = 0;
13054   }
13055   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13056     int x[] = {25, 17};
13057     const int *foo = &x[0];
13058     ++foo;
13059   }
13060   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13061     typedef const int *iptr;
13062     iptr p = 0;
13063     ++p;
13064   }
13065   { /* AIX XL C 1.02.0.0 rejects this saying
13066        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13067     struct s { int j; const int *ap[3]; };
13068     struct s *b; b->j = 5;
13069   }
13070   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13071     const int foo = 10;
13072   }
13073 #endif
13074
13075   ;
13076   return 0;
13077 }
13078 _ACEOF
13079 rm -f conftest.$ac_objext
13080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13081   (eval $ac_compile) 2>&5
13082   ac_status=$?
13083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084   (exit $ac_status); } &&
13085          { ac_try='test -s conftest.$ac_objext'
13086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087   (eval $ac_try) 2>&5
13088   ac_status=$?
13089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090   (exit $ac_status); }; }; then
13091   ac_cv_c_const=yes
13092 else
13093   echo "$as_me: failed program was:" >&5
13094 sed 's/^/| /' conftest.$ac_ext >&5
13095
13096 ac_cv_c_const=no
13097 fi
13098 rm -f conftest.$ac_objext conftest.$ac_ext
13099 fi
13100 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13101 echo "${ECHO_T}$ac_cv_c_const" >&6
13102 if test $ac_cv_c_const = no; then
13103
13104 cat >>confdefs.h <<\_ACEOF
13105 #define const
13106 _ACEOF
13107
13108 fi
13109
13110
13111
13112 echo "$as_me:$LINENO: checking for char" >&5
13113 echo $ECHO_N "checking for char... $ECHO_C" >&6
13114 if test "${ac_cv_type_char+set}" = set; then
13115   echo $ECHO_N "(cached) $ECHO_C" >&6
13116 else
13117   cat >conftest.$ac_ext <<_ACEOF
13118 #line $LINENO "configure"
13119 /* confdefs.h.  */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h.  */
13124 $ac_includes_default
13125 int
13126 main ()
13127 {
13128 if ((char *) 0)
13129   return 0;
13130 if (sizeof (char))
13131   return 0;
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 rm -f conftest.$ac_objext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13138   (eval $ac_compile) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); } &&
13142          { ac_try='test -s conftest.$ac_objext'
13143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144   (eval $ac_try) 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }; }; then
13148   ac_cv_type_char=yes
13149 else
13150   echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13152
13153 ac_cv_type_char=no
13154 fi
13155 rm -f conftest.$ac_objext conftest.$ac_ext
13156 fi
13157 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13158 echo "${ECHO_T}$ac_cv_type_char" >&6
13159
13160 echo "$as_me:$LINENO: checking size of char" >&5
13161 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13162 if test "${ac_cv_sizeof_char+set}" = set; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 else
13165   if test "$ac_cv_type_char" = yes; then
13166   # The cast to unsigned long works around a bug in the HP C Compiler
13167   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13168   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13169   # This bug is HP SR number 8606223364.
13170   if test "$cross_compiling" = yes; then
13171   # Depending upon the size, compute the lo and hi bounds.
13172 cat >conftest.$ac_ext <<_ACEOF
13173 #line $LINENO "configure"
13174 /* confdefs.h.  */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h.  */
13179 $ac_includes_default
13180 int
13181 main ()
13182 {
13183 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13184 test_array [0] = 0
13185
13186   ;
13187   return 0;
13188 }
13189 _ACEOF
13190 rm -f conftest.$ac_objext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13192   (eval $ac_compile) 2>&5
13193   ac_status=$?
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } &&
13196          { ac_try='test -s conftest.$ac_objext'
13197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13198   (eval $ac_try) 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); }; }; then
13202   ac_lo=0 ac_mid=0
13203   while :; do
13204     cat >conftest.$ac_ext <<_ACEOF
13205 #line $LINENO "configure"
13206 /* confdefs.h.  */
13207 _ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h.  */
13211 $ac_includes_default
13212 int
13213 main ()
13214 {
13215 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13216 test_array [0] = 0
13217
13218   ;
13219   return 0;
13220 }
13221 _ACEOF
13222 rm -f conftest.$ac_objext
13223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13224   (eval $ac_compile) 2>&5
13225   ac_status=$?
13226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227   (exit $ac_status); } &&
13228          { ac_try='test -s conftest.$ac_objext'
13229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13230   (eval $ac_try) 2>&5
13231   ac_status=$?
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); }; }; then
13234   ac_hi=$ac_mid; break
13235 else
13236   echo "$as_me: failed program was:" >&5
13237 sed 's/^/| /' conftest.$ac_ext >&5
13238
13239 ac_lo=`expr $ac_mid + 1`
13240                     if test $ac_lo -le $ac_mid; then
13241                       ac_lo= ac_hi=
13242                       break
13243                     fi
13244                     ac_mid=`expr 2 '*' $ac_mid + 1`
13245 fi
13246 rm -f conftest.$ac_objext conftest.$ac_ext
13247   done
13248 else
13249   echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13251
13252 cat >conftest.$ac_ext <<_ACEOF
13253 #line $LINENO "configure"
13254 /* confdefs.h.  */
13255 _ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h.  */
13259 $ac_includes_default
13260 int
13261 main ()
13262 {
13263 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13264 test_array [0] = 0
13265
13266   ;
13267   return 0;
13268 }
13269 _ACEOF
13270 rm -f conftest.$ac_objext
13271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13272   (eval $ac_compile) 2>&5
13273   ac_status=$?
13274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275   (exit $ac_status); } &&
13276          { ac_try='test -s conftest.$ac_objext'
13277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278   (eval $ac_try) 2>&5
13279   ac_status=$?
13280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); }; }; then
13282   ac_hi=-1 ac_mid=-1
13283   while :; do
13284     cat >conftest.$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13286 /* confdefs.h.  */
13287 _ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h.  */
13291 $ac_includes_default
13292 int
13293 main ()
13294 {
13295 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13296 test_array [0] = 0
13297
13298   ;
13299   return 0;
13300 }
13301 _ACEOF
13302 rm -f conftest.$ac_objext
13303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13304   (eval $ac_compile) 2>&5
13305   ac_status=$?
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); } &&
13308          { ac_try='test -s conftest.$ac_objext'
13309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13310   (eval $ac_try) 2>&5
13311   ac_status=$?
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); }; }; then
13314   ac_lo=$ac_mid; break
13315 else
13316   echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13318
13319 ac_hi=`expr '(' $ac_mid ')' - 1`
13320                        if test $ac_mid -le $ac_hi; then
13321                          ac_lo= ac_hi=
13322                          break
13323                        fi
13324                        ac_mid=`expr 2 '*' $ac_mid`
13325 fi
13326 rm -f conftest.$ac_objext conftest.$ac_ext
13327   done
13328 else
13329   echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ac_lo= ac_hi=
13333 fi
13334 rm -f conftest.$ac_objext conftest.$ac_ext
13335 fi
13336 rm -f conftest.$ac_objext conftest.$ac_ext
13337 # Binary search between lo and hi bounds.
13338 while test "x$ac_lo" != "x$ac_hi"; do
13339   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13340   cat >conftest.$ac_ext <<_ACEOF
13341 #line $LINENO "configure"
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347 $ac_includes_default
13348 int
13349 main ()
13350 {
13351 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13352 test_array [0] = 0
13353
13354   ;
13355   return 0;
13356 }
13357 _ACEOF
13358 rm -f conftest.$ac_objext
13359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13360   (eval $ac_compile) 2>&5
13361   ac_status=$?
13362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363   (exit $ac_status); } &&
13364          { ac_try='test -s conftest.$ac_objext'
13365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366   (eval $ac_try) 2>&5
13367   ac_status=$?
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); }; }; then
13370   ac_hi=$ac_mid
13371 else
13372   echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13374
13375 ac_lo=`expr '(' $ac_mid ')' + 1`
13376 fi
13377 rm -f conftest.$ac_objext conftest.$ac_ext
13378 done
13379 case $ac_lo in
13380 ?*) ac_cv_sizeof_char=$ac_lo;;
13381 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13382 See \`config.log' for more details." >&5
13383 echo "$as_me: error: cannot compute sizeof (char), 77
13384 See \`config.log' for more details." >&2;}
13385    { (exit 1); exit 1; }; } ;;
13386 esac
13387 else
13388   if test "$cross_compiling" = yes; then
13389   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13390 See \`config.log' for more details." >&5
13391 echo "$as_me: error: cannot run test program while cross compiling
13392 See \`config.log' for more details." >&2;}
13393    { (exit 1); exit 1; }; }
13394 else
13395   cat >conftest.$ac_ext <<_ACEOF
13396 #line $LINENO "configure"
13397 /* confdefs.h.  */
13398 _ACEOF
13399 cat confdefs.h >>conftest.$ac_ext
13400 cat >>conftest.$ac_ext <<_ACEOF
13401 /* end confdefs.h.  */
13402 $ac_includes_default
13403 long longval () { return (long) (sizeof (char)); }
13404 unsigned long ulongval () { return (long) (sizeof (char)); }
13405 #include <stdio.h>
13406 #include <stdlib.h>
13407 int
13408 main ()
13409 {
13410
13411   FILE *f = fopen ("conftest.val", "w");
13412   if (! f)
13413     exit (1);
13414   if (((long) (sizeof (char))) < 0)
13415     {
13416       long i = longval ();
13417       if (i != ((long) (sizeof (char))))
13418         exit (1);
13419       fprintf (f, "%ld\n", i);
13420     }
13421   else
13422     {
13423       unsigned long i = ulongval ();
13424       if (i != ((long) (sizeof (char))))
13425         exit (1);
13426       fprintf (f, "%lu\n", i);
13427     }
13428   exit (ferror (f) || fclose (f) != 0);
13429
13430   ;
13431   return 0;
13432 }
13433 _ACEOF
13434 rm -f conftest$ac_exeext
13435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13436   (eval $ac_link) 2>&5
13437   ac_status=$?
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441   (eval $ac_try) 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; }; then
13445   ac_cv_sizeof_char=`cat conftest.val`
13446 else
13447   echo "$as_me: program exited with status $ac_status" >&5
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451 ( exit $ac_status )
13452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13453 See \`config.log' for more details." >&5
13454 echo "$as_me: error: cannot compute sizeof (char), 77
13455 See \`config.log' for more details." >&2;}
13456    { (exit 1); exit 1; }; }
13457 fi
13458 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13459 fi
13460 fi
13461 rm -f conftest.val
13462 else
13463   ac_cv_sizeof_char=0
13464 fi
13465 fi
13466 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13467 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13468 cat >>confdefs.h <<_ACEOF
13469 #define SIZEOF_CHAR $ac_cv_sizeof_char
13470 _ACEOF
13471
13472
13473 echo "$as_me:$LINENO: checking for short int" >&5
13474 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13475 if test "${ac_cv_type_short_int+set}" = set; then
13476   echo $ECHO_N "(cached) $ECHO_C" >&6
13477 else
13478   cat >conftest.$ac_ext <<_ACEOF
13479 #line $LINENO "configure"
13480 /* confdefs.h.  */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h.  */
13485 $ac_includes_default
13486 int
13487 main ()
13488 {
13489 if ((short int *) 0)
13490   return 0;
13491 if (sizeof (short int))
13492   return 0;
13493   ;
13494   return 0;
13495 }
13496 _ACEOF
13497 rm -f conftest.$ac_objext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13499   (eval $ac_compile) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); } &&
13503          { ac_try='test -s conftest.$ac_objext'
13504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505   (eval $ac_try) 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; }; then
13509   ac_cv_type_short_int=yes
13510 else
13511   echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 ac_cv_type_short_int=no
13515 fi
13516 rm -f conftest.$ac_objext conftest.$ac_ext
13517 fi
13518 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13519 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13520
13521 echo "$as_me:$LINENO: checking size of short int" >&5
13522 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13523 if test "${ac_cv_sizeof_short_int+set}" = set; then
13524   echo $ECHO_N "(cached) $ECHO_C" >&6
13525 else
13526   if test "$ac_cv_type_short_int" = yes; then
13527   # The cast to unsigned long works around a bug in the HP C Compiler
13528   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13529   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13530   # This bug is HP SR number 8606223364.
13531   if test "$cross_compiling" = yes; then
13532   # Depending upon the size, compute the lo and hi bounds.
13533 cat >conftest.$ac_ext <<_ACEOF
13534 #line $LINENO "configure"
13535 /* confdefs.h.  */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h.  */
13540 $ac_includes_default
13541 int
13542 main ()
13543 {
13544 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13545 test_array [0] = 0
13546
13547   ;
13548   return 0;
13549 }
13550 _ACEOF
13551 rm -f conftest.$ac_objext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13553   (eval $ac_compile) 2>&5
13554   ac_status=$?
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); } &&
13557          { ac_try='test -s conftest.$ac_objext'
13558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559   (eval $ac_try) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }; }; then
13563   ac_lo=0 ac_mid=0
13564   while :; do
13565     cat >conftest.$ac_ext <<_ACEOF
13566 #line $LINENO "configure"
13567 /* confdefs.h.  */
13568 _ACEOF
13569 cat confdefs.h >>conftest.$ac_ext
13570 cat >>conftest.$ac_ext <<_ACEOF
13571 /* end confdefs.h.  */
13572 $ac_includes_default
13573 int
13574 main ()
13575 {
13576 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13577 test_array [0] = 0
13578
13579   ;
13580   return 0;
13581 }
13582 _ACEOF
13583 rm -f conftest.$ac_objext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585   (eval $ac_compile) 2>&5
13586   ac_status=$?
13587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588   (exit $ac_status); } &&
13589          { ac_try='test -s conftest.$ac_objext'
13590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591   (eval $ac_try) 2>&5
13592   ac_status=$?
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); }; }; then
13595   ac_hi=$ac_mid; break
13596 else
13597   echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13599
13600 ac_lo=`expr $ac_mid + 1`
13601                     if test $ac_lo -le $ac_mid; then
13602                       ac_lo= ac_hi=
13603                       break
13604                     fi
13605                     ac_mid=`expr 2 '*' $ac_mid + 1`
13606 fi
13607 rm -f conftest.$ac_objext conftest.$ac_ext
13608   done
13609 else
13610   echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13612
13613 cat >conftest.$ac_ext <<_ACEOF
13614 #line $LINENO "configure"
13615 /* confdefs.h.  */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h.  */
13620 $ac_includes_default
13621 int
13622 main ()
13623 {
13624 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13625 test_array [0] = 0
13626
13627   ;
13628   return 0;
13629 }
13630 _ACEOF
13631 rm -f conftest.$ac_objext
13632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13633   (eval $ac_compile) 2>&5
13634   ac_status=$?
13635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636   (exit $ac_status); } &&
13637          { ac_try='test -s conftest.$ac_objext'
13638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639   (eval $ac_try) 2>&5
13640   ac_status=$?
13641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642   (exit $ac_status); }; }; then
13643   ac_hi=-1 ac_mid=-1
13644   while :; do
13645     cat >conftest.$ac_ext <<_ACEOF
13646 #line $LINENO "configure"
13647 /* confdefs.h.  */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h.  */
13652 $ac_includes_default
13653 int
13654 main ()
13655 {
13656 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13657 test_array [0] = 0
13658
13659   ;
13660   return 0;
13661 }
13662 _ACEOF
13663 rm -f conftest.$ac_objext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665   (eval $ac_compile) 2>&5
13666   ac_status=$?
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); } &&
13669          { ac_try='test -s conftest.$ac_objext'
13670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13671   (eval $ac_try) 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }; }; then
13675   ac_lo=$ac_mid; break
13676 else
13677   echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13679
13680 ac_hi=`expr '(' $ac_mid ')' - 1`
13681                        if test $ac_mid -le $ac_hi; then
13682                          ac_lo= ac_hi=
13683                          break
13684                        fi
13685                        ac_mid=`expr 2 '*' $ac_mid`
13686 fi
13687 rm -f conftest.$ac_objext conftest.$ac_ext
13688   done
13689 else
13690   echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693 ac_lo= ac_hi=
13694 fi
13695 rm -f conftest.$ac_objext conftest.$ac_ext
13696 fi
13697 rm -f conftest.$ac_objext conftest.$ac_ext
13698 # Binary search between lo and hi bounds.
13699 while test "x$ac_lo" != "x$ac_hi"; do
13700   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13701   cat >conftest.$ac_ext <<_ACEOF
13702 #line $LINENO "configure"
13703 /* confdefs.h.  */
13704 _ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h.  */
13708 $ac_includes_default
13709 int
13710 main ()
13711 {
13712 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13713 test_array [0] = 0
13714
13715   ;
13716   return 0;
13717 }
13718 _ACEOF
13719 rm -f conftest.$ac_objext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13721   (eval $ac_compile) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); } &&
13725          { ac_try='test -s conftest.$ac_objext'
13726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13727   (eval $ac_try) 2>&5
13728   ac_status=$?
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); }; }; then
13731   ac_hi=$ac_mid
13732 else
13733   echo "$as_me: failed program was:" >&5
13734 sed 's/^/| /' conftest.$ac_ext >&5
13735
13736 ac_lo=`expr '(' $ac_mid ')' + 1`
13737 fi
13738 rm -f conftest.$ac_objext conftest.$ac_ext
13739 done
13740 case $ac_lo in
13741 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13742 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13743 See \`config.log' for more details." >&5
13744 echo "$as_me: error: cannot compute sizeof (short int), 77
13745 See \`config.log' for more details." >&2;}
13746    { (exit 1); exit 1; }; } ;;
13747 esac
13748 else
13749   if test "$cross_compiling" = yes; then
13750   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13751 See \`config.log' for more details." >&5
13752 echo "$as_me: error: cannot run test program while cross compiling
13753 See \`config.log' for more details." >&2;}
13754    { (exit 1); exit 1; }; }
13755 else
13756   cat >conftest.$ac_ext <<_ACEOF
13757 #line $LINENO "configure"
13758 /* confdefs.h.  */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h.  */
13763 $ac_includes_default
13764 long longval () { return (long) (sizeof (short int)); }
13765 unsigned long ulongval () { return (long) (sizeof (short int)); }
13766 #include <stdio.h>
13767 #include <stdlib.h>
13768 int
13769 main ()
13770 {
13771
13772   FILE *f = fopen ("conftest.val", "w");
13773   if (! f)
13774     exit (1);
13775   if (((long) (sizeof (short int))) < 0)
13776     {
13777       long i = longval ();
13778       if (i != ((long) (sizeof (short int))))
13779         exit (1);
13780       fprintf (f, "%ld\n", i);
13781     }
13782   else
13783     {
13784       unsigned long i = ulongval ();
13785       if (i != ((long) (sizeof (short int))))
13786         exit (1);
13787       fprintf (f, "%lu\n", i);
13788     }
13789   exit (ferror (f) || fclose (f) != 0);
13790
13791   ;
13792   return 0;
13793 }
13794 _ACEOF
13795 rm -f conftest$ac_exeext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13797   (eval $ac_link) 2>&5
13798   ac_status=$?
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802   (eval $ac_try) 2>&5
13803   ac_status=$?
13804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805   (exit $ac_status); }; }; then
13806   ac_cv_sizeof_short_int=`cat conftest.val`
13807 else
13808   echo "$as_me: program exited with status $ac_status" >&5
13809 echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13811
13812 ( exit $ac_status )
13813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13814 See \`config.log' for more details." >&5
13815 echo "$as_me: error: cannot compute sizeof (short int), 77
13816 See \`config.log' for more details." >&2;}
13817    { (exit 1); exit 1; }; }
13818 fi
13819 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13820 fi
13821 fi
13822 rm -f conftest.val
13823 else
13824   ac_cv_sizeof_short_int=0
13825 fi
13826 fi
13827 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13828 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13829 cat >>confdefs.h <<_ACEOF
13830 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13831 _ACEOF
13832
13833
13834 echo "$as_me:$LINENO: checking for int" >&5
13835 echo $ECHO_N "checking for int... $ECHO_C" >&6
13836 if test "${ac_cv_type_int+set}" = set; then
13837   echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839   cat >conftest.$ac_ext <<_ACEOF
13840 #line $LINENO "configure"
13841 /* confdefs.h.  */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h.  */
13846 $ac_includes_default
13847 int
13848 main ()
13849 {
13850 if ((int *) 0)
13851   return 0;
13852 if (sizeof (int))
13853   return 0;
13854   ;
13855   return 0;
13856 }
13857 _ACEOF
13858 rm -f conftest.$ac_objext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13860   (eval $ac_compile) 2>&5
13861   ac_status=$?
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); } &&
13864          { ac_try='test -s conftest.$ac_objext'
13865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866   (eval $ac_try) 2>&5
13867   ac_status=$?
13868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869   (exit $ac_status); }; }; then
13870   ac_cv_type_int=yes
13871 else
13872   echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13874
13875 ac_cv_type_int=no
13876 fi
13877 rm -f conftest.$ac_objext conftest.$ac_ext
13878 fi
13879 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13880 echo "${ECHO_T}$ac_cv_type_int" >&6
13881
13882 echo "$as_me:$LINENO: checking size of int" >&5
13883 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13884 if test "${ac_cv_sizeof_int+set}" = set; then
13885   echo $ECHO_N "(cached) $ECHO_C" >&6
13886 else
13887   if test "$ac_cv_type_int" = yes; then
13888   # The cast to unsigned long works around a bug in the HP C Compiler
13889   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13890   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13891   # This bug is HP SR number 8606223364.
13892   if test "$cross_compiling" = yes; then
13893   # Depending upon the size, compute the lo and hi bounds.
13894 cat >conftest.$ac_ext <<_ACEOF
13895 #line $LINENO "configure"
13896 /* confdefs.h.  */
13897 _ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h.  */
13901 $ac_includes_default
13902 int
13903 main ()
13904 {
13905 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13906 test_array [0] = 0
13907
13908   ;
13909   return 0;
13910 }
13911 _ACEOF
13912 rm -f conftest.$ac_objext
13913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13914   (eval $ac_compile) 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); } &&
13918          { ac_try='test -s conftest.$ac_objext'
13919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920   (eval $ac_try) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); }; }; then
13924   ac_lo=0 ac_mid=0
13925   while :; do
13926     cat >conftest.$ac_ext <<_ACEOF
13927 #line $LINENO "configure"
13928 /* confdefs.h.  */
13929 _ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h.  */
13933 $ac_includes_default
13934 int
13935 main ()
13936 {
13937 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13938 test_array [0] = 0
13939
13940   ;
13941   return 0;
13942 }
13943 _ACEOF
13944 rm -f conftest.$ac_objext
13945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13946   (eval $ac_compile) 2>&5
13947   ac_status=$?
13948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949   (exit $ac_status); } &&
13950          { ac_try='test -s conftest.$ac_objext'
13951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952   (eval $ac_try) 2>&5
13953   ac_status=$?
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); }; }; then
13956   ac_hi=$ac_mid; break
13957 else
13958   echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13960
13961 ac_lo=`expr $ac_mid + 1`
13962                     if test $ac_lo -le $ac_mid; then
13963                       ac_lo= ac_hi=
13964                       break
13965                     fi
13966                     ac_mid=`expr 2 '*' $ac_mid + 1`
13967 fi
13968 rm -f conftest.$ac_objext conftest.$ac_ext
13969   done
13970 else
13971   echo "$as_me: failed program was:" >&5
13972 sed 's/^/| /' conftest.$ac_ext >&5
13973
13974 cat >conftest.$ac_ext <<_ACEOF
13975 #line $LINENO "configure"
13976 /* confdefs.h.  */
13977 _ACEOF
13978 cat confdefs.h >>conftest.$ac_ext
13979 cat >>conftest.$ac_ext <<_ACEOF
13980 /* end confdefs.h.  */
13981 $ac_includes_default
13982 int
13983 main ()
13984 {
13985 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13986 test_array [0] = 0
13987
13988   ;
13989   return 0;
13990 }
13991 _ACEOF
13992 rm -f conftest.$ac_objext
13993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13994   (eval $ac_compile) 2>&5
13995   ac_status=$?
13996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997   (exit $ac_status); } &&
13998          { ac_try='test -s conftest.$ac_objext'
13999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000   (eval $ac_try) 2>&5
14001   ac_status=$?
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); }; }; then
14004   ac_hi=-1 ac_mid=-1
14005   while :; do
14006     cat >conftest.$ac_ext <<_ACEOF
14007 #line $LINENO "configure"
14008 /* confdefs.h.  */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h.  */
14013 $ac_includes_default
14014 int
14015 main ()
14016 {
14017 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14018 test_array [0] = 0
14019
14020   ;
14021   return 0;
14022 }
14023 _ACEOF
14024 rm -f conftest.$ac_objext
14025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14026   (eval $ac_compile) 2>&5
14027   ac_status=$?
14028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029   (exit $ac_status); } &&
14030          { ac_try='test -s conftest.$ac_objext'
14031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032   (eval $ac_try) 2>&5
14033   ac_status=$?
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); }; }; then
14036   ac_lo=$ac_mid; break
14037 else
14038   echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14040
14041 ac_hi=`expr '(' $ac_mid ')' - 1`
14042                        if test $ac_mid -le $ac_hi; then
14043                          ac_lo= ac_hi=
14044                          break
14045                        fi
14046                        ac_mid=`expr 2 '*' $ac_mid`
14047 fi
14048 rm -f conftest.$ac_objext conftest.$ac_ext
14049   done
14050 else
14051   echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14053
14054 ac_lo= ac_hi=
14055 fi
14056 rm -f conftest.$ac_objext conftest.$ac_ext
14057 fi
14058 rm -f conftest.$ac_objext conftest.$ac_ext
14059 # Binary search between lo and hi bounds.
14060 while test "x$ac_lo" != "x$ac_hi"; do
14061   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14062   cat >conftest.$ac_ext <<_ACEOF
14063 #line $LINENO "configure"
14064 /* confdefs.h.  */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h.  */
14069 $ac_includes_default
14070 int
14071 main ()
14072 {
14073 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14074 test_array [0] = 0
14075
14076   ;
14077   return 0;
14078 }
14079 _ACEOF
14080 rm -f conftest.$ac_objext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14082   (eval $ac_compile) 2>&5
14083   ac_status=$?
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); } &&
14086          { ac_try='test -s conftest.$ac_objext'
14087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088   (eval $ac_try) 2>&5
14089   ac_status=$?
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); }; }; then
14092   ac_hi=$ac_mid
14093 else
14094   echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14096
14097 ac_lo=`expr '(' $ac_mid ')' + 1`
14098 fi
14099 rm -f conftest.$ac_objext conftest.$ac_ext
14100 done
14101 case $ac_lo in
14102 ?*) ac_cv_sizeof_int=$ac_lo;;
14103 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14104 See \`config.log' for more details." >&5
14105 echo "$as_me: error: cannot compute sizeof (int), 77
14106 See \`config.log' for more details." >&2;}
14107    { (exit 1); exit 1; }; } ;;
14108 esac
14109 else
14110   if test "$cross_compiling" = yes; then
14111   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14112 See \`config.log' for more details." >&5
14113 echo "$as_me: error: cannot run test program while cross compiling
14114 See \`config.log' for more details." >&2;}
14115    { (exit 1); exit 1; }; }
14116 else
14117   cat >conftest.$ac_ext <<_ACEOF
14118 #line $LINENO "configure"
14119 /* confdefs.h.  */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h.  */
14124 $ac_includes_default
14125 long longval () { return (long) (sizeof (int)); }
14126 unsigned long ulongval () { return (long) (sizeof (int)); }
14127 #include <stdio.h>
14128 #include <stdlib.h>
14129 int
14130 main ()
14131 {
14132
14133   FILE *f = fopen ("conftest.val", "w");
14134   if (! f)
14135     exit (1);
14136   if (((long) (sizeof (int))) < 0)
14137     {
14138       long i = longval ();
14139       if (i != ((long) (sizeof (int))))
14140         exit (1);
14141       fprintf (f, "%ld\n", i);
14142     }
14143   else
14144     {
14145       unsigned long i = ulongval ();
14146       if (i != ((long) (sizeof (int))))
14147         exit (1);
14148       fprintf (f, "%lu\n", i);
14149     }
14150   exit (ferror (f) || fclose (f) != 0);
14151
14152   ;
14153   return 0;
14154 }
14155 _ACEOF
14156 rm -f conftest$ac_exeext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14158   (eval $ac_link) 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163   (eval $ac_try) 2>&5
14164   ac_status=$?
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); }; }; then
14167   ac_cv_sizeof_int=`cat conftest.val`
14168 else
14169   echo "$as_me: program exited with status $ac_status" >&5
14170 echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14172
14173 ( exit $ac_status )
14174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14175 See \`config.log' for more details." >&5
14176 echo "$as_me: error: cannot compute sizeof (int), 77
14177 See \`config.log' for more details." >&2;}
14178    { (exit 1); exit 1; }; }
14179 fi
14180 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14181 fi
14182 fi
14183 rm -f conftest.val
14184 else
14185   ac_cv_sizeof_int=0
14186 fi
14187 fi
14188 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14189 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14190 cat >>confdefs.h <<_ACEOF
14191 #define SIZEOF_INT $ac_cv_sizeof_int
14192 _ACEOF
14193
14194
14195 echo "$as_me:$LINENO: checking for long int" >&5
14196 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14197 if test "${ac_cv_type_long_int+set}" = set; then
14198   echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200   cat >conftest.$ac_ext <<_ACEOF
14201 #line $LINENO "configure"
14202 /* confdefs.h.  */
14203 _ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h.  */
14207 $ac_includes_default
14208 int
14209 main ()
14210 {
14211 if ((long int *) 0)
14212   return 0;
14213 if (sizeof (long int))
14214   return 0;
14215   ;
14216   return 0;
14217 }
14218 _ACEOF
14219 rm -f conftest.$ac_objext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14221   (eval $ac_compile) 2>&5
14222   ac_status=$?
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); } &&
14225          { ac_try='test -s conftest.$ac_objext'
14226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227   (eval $ac_try) 2>&5
14228   ac_status=$?
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); }; }; then
14231   ac_cv_type_long_int=yes
14232 else
14233   echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14235
14236 ac_cv_type_long_int=no
14237 fi
14238 rm -f conftest.$ac_objext conftest.$ac_ext
14239 fi
14240 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14241 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14242
14243 echo "$as_me:$LINENO: checking size of long int" >&5
14244 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14245 if test "${ac_cv_sizeof_long_int+set}" = set; then
14246   echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248   if test "$ac_cv_type_long_int" = yes; then
14249   # The cast to unsigned long works around a bug in the HP C Compiler
14250   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14251   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14252   # This bug is HP SR number 8606223364.
14253   if test "$cross_compiling" = yes; then
14254   # Depending upon the size, compute the lo and hi bounds.
14255 cat >conftest.$ac_ext <<_ACEOF
14256 #line $LINENO "configure"
14257 /* confdefs.h.  */
14258 _ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h.  */
14262 $ac_includes_default
14263 int
14264 main ()
14265 {
14266 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14267 test_array [0] = 0
14268
14269   ;
14270   return 0;
14271 }
14272 _ACEOF
14273 rm -f conftest.$ac_objext
14274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14275   (eval $ac_compile) 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); } &&
14279          { ac_try='test -s conftest.$ac_objext'
14280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281   (eval $ac_try) 2>&5
14282   ac_status=$?
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); }; }; then
14285   ac_lo=0 ac_mid=0
14286   while :; do
14287     cat >conftest.$ac_ext <<_ACEOF
14288 #line $LINENO "configure"
14289 /* confdefs.h.  */
14290 _ACEOF
14291 cat confdefs.h >>conftest.$ac_ext
14292 cat >>conftest.$ac_ext <<_ACEOF
14293 /* end confdefs.h.  */
14294 $ac_includes_default
14295 int
14296 main ()
14297 {
14298 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14299 test_array [0] = 0
14300
14301   ;
14302   return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307   (eval $ac_compile) 2>&5
14308   ac_status=$?
14309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310   (exit $ac_status); } &&
14311          { ac_try='test -s conftest.$ac_objext'
14312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14313   (eval $ac_try) 2>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); }; }; then
14317   ac_hi=$ac_mid; break
14318 else
14319   echo "$as_me: failed program was:" >&5
14320 sed 's/^/| /' conftest.$ac_ext >&5
14321
14322 ac_lo=`expr $ac_mid + 1`
14323                     if test $ac_lo -le $ac_mid; then
14324                       ac_lo= ac_hi=
14325                       break
14326                     fi
14327                     ac_mid=`expr 2 '*' $ac_mid + 1`
14328 fi
14329 rm -f conftest.$ac_objext conftest.$ac_ext
14330   done
14331 else
14332   echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14334
14335 cat >conftest.$ac_ext <<_ACEOF
14336 #line $LINENO "configure"
14337 /* confdefs.h.  */
14338 _ACEOF
14339 cat confdefs.h >>conftest.$ac_ext
14340 cat >>conftest.$ac_ext <<_ACEOF
14341 /* end confdefs.h.  */
14342 $ac_includes_default
14343 int
14344 main ()
14345 {
14346 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14347 test_array [0] = 0
14348
14349   ;
14350   return 0;
14351 }
14352 _ACEOF
14353 rm -f conftest.$ac_objext
14354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14355   (eval $ac_compile) 2>&5
14356   ac_status=$?
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); } &&
14359          { ac_try='test -s conftest.$ac_objext'
14360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14361   (eval $ac_try) 2>&5
14362   ac_status=$?
14363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364   (exit $ac_status); }; }; then
14365   ac_hi=-1 ac_mid=-1
14366   while :; do
14367     cat >conftest.$ac_ext <<_ACEOF
14368 #line $LINENO "configure"
14369 /* confdefs.h.  */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h.  */
14374 $ac_includes_default
14375 int
14376 main ()
14377 {
14378 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14379 test_array [0] = 0
14380
14381   ;
14382   return 0;
14383 }
14384 _ACEOF
14385 rm -f conftest.$ac_objext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387   (eval $ac_compile) 2>&5
14388   ac_status=$?
14389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); } &&
14391          { ac_try='test -s conftest.$ac_objext'
14392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393   (eval $ac_try) 2>&5
14394   ac_status=$?
14395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396   (exit $ac_status); }; }; then
14397   ac_lo=$ac_mid; break
14398 else
14399   echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14401
14402 ac_hi=`expr '(' $ac_mid ')' - 1`
14403                        if test $ac_mid -le $ac_hi; then
14404                          ac_lo= ac_hi=
14405                          break
14406                        fi
14407                        ac_mid=`expr 2 '*' $ac_mid`
14408 fi
14409 rm -f conftest.$ac_objext conftest.$ac_ext
14410   done
14411 else
14412   echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14414
14415 ac_lo= ac_hi=
14416 fi
14417 rm -f conftest.$ac_objext conftest.$ac_ext
14418 fi
14419 rm -f conftest.$ac_objext conftest.$ac_ext
14420 # Binary search between lo and hi bounds.
14421 while test "x$ac_lo" != "x$ac_hi"; do
14422   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14423   cat >conftest.$ac_ext <<_ACEOF
14424 #line $LINENO "configure"
14425 /* confdefs.h.  */
14426 _ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h.  */
14430 $ac_includes_default
14431 int
14432 main ()
14433 {
14434 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14435 test_array [0] = 0
14436
14437   ;
14438   return 0;
14439 }
14440 _ACEOF
14441 rm -f conftest.$ac_objext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14443   (eval $ac_compile) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } &&
14447          { ac_try='test -s conftest.$ac_objext'
14448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449   (eval $ac_try) 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); }; }; then
14453   ac_hi=$ac_mid
14454 else
14455   echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14457
14458 ac_lo=`expr '(' $ac_mid ')' + 1`
14459 fi
14460 rm -f conftest.$ac_objext conftest.$ac_ext
14461 done
14462 case $ac_lo in
14463 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14464 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14465 See \`config.log' for more details." >&5
14466 echo "$as_me: error: cannot compute sizeof (long int), 77
14467 See \`config.log' for more details." >&2;}
14468    { (exit 1); exit 1; }; } ;;
14469 esac
14470 else
14471   if test "$cross_compiling" = yes; then
14472   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14473 See \`config.log' for more details." >&5
14474 echo "$as_me: error: cannot run test program while cross compiling
14475 See \`config.log' for more details." >&2;}
14476    { (exit 1); exit 1; }; }
14477 else
14478   cat >conftest.$ac_ext <<_ACEOF
14479 #line $LINENO "configure"
14480 /* confdefs.h.  */
14481 _ACEOF
14482 cat confdefs.h >>conftest.$ac_ext
14483 cat >>conftest.$ac_ext <<_ACEOF
14484 /* end confdefs.h.  */
14485 $ac_includes_default
14486 long longval () { return (long) (sizeof (long int)); }
14487 unsigned long ulongval () { return (long) (sizeof (long int)); }
14488 #include <stdio.h>
14489 #include <stdlib.h>
14490 int
14491 main ()
14492 {
14493
14494   FILE *f = fopen ("conftest.val", "w");
14495   if (! f)
14496     exit (1);
14497   if (((long) (sizeof (long int))) < 0)
14498     {
14499       long i = longval ();
14500       if (i != ((long) (sizeof (long int))))
14501         exit (1);
14502       fprintf (f, "%ld\n", i);
14503     }
14504   else
14505     {
14506       unsigned long i = ulongval ();
14507       if (i != ((long) (sizeof (long int))))
14508         exit (1);
14509       fprintf (f, "%lu\n", i);
14510     }
14511   exit (ferror (f) || fclose (f) != 0);
14512
14513   ;
14514   return 0;
14515 }
14516 _ACEOF
14517 rm -f conftest$ac_exeext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14519   (eval $ac_link) 2>&5
14520   ac_status=$?
14521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524   (eval $ac_try) 2>&5
14525   ac_status=$?
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); }; }; then
14528   ac_cv_sizeof_long_int=`cat conftest.val`
14529 else
14530   echo "$as_me: program exited with status $ac_status" >&5
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14533
14534 ( exit $ac_status )
14535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14536 See \`config.log' for more details." >&5
14537 echo "$as_me: error: cannot compute sizeof (long int), 77
14538 See \`config.log' for more details." >&2;}
14539    { (exit 1); exit 1; }; }
14540 fi
14541 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14542 fi
14543 fi
14544 rm -f conftest.val
14545 else
14546   ac_cv_sizeof_long_int=0
14547 fi
14548 fi
14549 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14550 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14551 cat >>confdefs.h <<_ACEOF
14552 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14553 _ACEOF
14554
14555
14556 echo "$as_me:$LINENO: checking for long long int" >&5
14557 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14558 if test "${ac_cv_type_long_long_int+set}" = set; then
14559   echo $ECHO_N "(cached) $ECHO_C" >&6
14560 else
14561   cat >conftest.$ac_ext <<_ACEOF
14562 #line $LINENO "configure"
14563 /* confdefs.h.  */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h.  */
14568 $ac_includes_default
14569 int
14570 main ()
14571 {
14572 if ((long long int *) 0)
14573   return 0;
14574 if (sizeof (long long int))
14575   return 0;
14576   ;
14577   return 0;
14578 }
14579 _ACEOF
14580 rm -f conftest.$ac_objext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582   (eval $ac_compile) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); } &&
14586          { ac_try='test -s conftest.$ac_objext'
14587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588   (eval $ac_try) 2>&5
14589   ac_status=$?
14590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591   (exit $ac_status); }; }; then
14592   ac_cv_type_long_long_int=yes
14593 else
14594   echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14596
14597 ac_cv_type_long_long_int=no
14598 fi
14599 rm -f conftest.$ac_objext conftest.$ac_ext
14600 fi
14601 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14602 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14603
14604 echo "$as_me:$LINENO: checking size of long long int" >&5
14605 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14606 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14607   echo $ECHO_N "(cached) $ECHO_C" >&6
14608 else
14609   if test "$ac_cv_type_long_long_int" = yes; then
14610   # The cast to unsigned long works around a bug in the HP C Compiler
14611   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14612   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14613   # This bug is HP SR number 8606223364.
14614   if test "$cross_compiling" = yes; then
14615   # Depending upon the size, compute the lo and hi bounds.
14616 cat >conftest.$ac_ext <<_ACEOF
14617 #line $LINENO "configure"
14618 /* confdefs.h.  */
14619 _ACEOF
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h.  */
14623 $ac_includes_default
14624 int
14625 main ()
14626 {
14627 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14628 test_array [0] = 0
14629
14630   ;
14631   return 0;
14632 }
14633 _ACEOF
14634 rm -f conftest.$ac_objext
14635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14636   (eval $ac_compile) 2>&5
14637   ac_status=$?
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); } &&
14640          { ac_try='test -s conftest.$ac_objext'
14641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14642   (eval $ac_try) 2>&5
14643   ac_status=$?
14644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645   (exit $ac_status); }; }; then
14646   ac_lo=0 ac_mid=0
14647   while :; do
14648     cat >conftest.$ac_ext <<_ACEOF
14649 #line $LINENO "configure"
14650 /* confdefs.h.  */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h.  */
14655 $ac_includes_default
14656 int
14657 main ()
14658 {
14659 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14660 test_array [0] = 0
14661
14662   ;
14663   return 0;
14664 }
14665 _ACEOF
14666 rm -f conftest.$ac_objext
14667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14668   (eval $ac_compile) 2>&5
14669   ac_status=$?
14670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671   (exit $ac_status); } &&
14672          { ac_try='test -s conftest.$ac_objext'
14673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674   (eval $ac_try) 2>&5
14675   ac_status=$?
14676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677   (exit $ac_status); }; }; then
14678   ac_hi=$ac_mid; break
14679 else
14680   echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14682
14683 ac_lo=`expr $ac_mid + 1`
14684                     if test $ac_lo -le $ac_mid; then
14685                       ac_lo= ac_hi=
14686                       break
14687                     fi
14688                     ac_mid=`expr 2 '*' $ac_mid + 1`
14689 fi
14690 rm -f conftest.$ac_objext conftest.$ac_ext
14691   done
14692 else
14693   echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14695
14696 cat >conftest.$ac_ext <<_ACEOF
14697 #line $LINENO "configure"
14698 /* confdefs.h.  */
14699 _ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h.  */
14703 $ac_includes_default
14704 int
14705 main ()
14706 {
14707 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14708 test_array [0] = 0
14709
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_hi=-1 ac_mid=-1
14727   while :; do
14728     cat >conftest.$ac_ext <<_ACEOF
14729 #line $LINENO "configure"
14730 /* confdefs.h.  */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h.  */
14735 $ac_includes_default
14736 int
14737 main ()
14738 {
14739 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14740 test_array [0] = 0
14741
14742   ;
14743   return 0;
14744 }
14745 _ACEOF
14746 rm -f conftest.$ac_objext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14748   (eval $ac_compile) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); } &&
14752          { ac_try='test -s conftest.$ac_objext'
14753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754   (eval $ac_try) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); }; }; then
14758   ac_lo=$ac_mid; break
14759 else
14760   echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14762
14763 ac_hi=`expr '(' $ac_mid ')' - 1`
14764                        if test $ac_mid -le $ac_hi; then
14765                          ac_lo= ac_hi=
14766                          break
14767                        fi
14768                        ac_mid=`expr 2 '*' $ac_mid`
14769 fi
14770 rm -f conftest.$ac_objext conftest.$ac_ext
14771   done
14772 else
14773   echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776 ac_lo= ac_hi=
14777 fi
14778 rm -f conftest.$ac_objext conftest.$ac_ext
14779 fi
14780 rm -f conftest.$ac_objext conftest.$ac_ext
14781 # Binary search between lo and hi bounds.
14782 while test "x$ac_lo" != "x$ac_hi"; do
14783   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14784   cat >conftest.$ac_ext <<_ACEOF
14785 #line $LINENO "configure"
14786 /* confdefs.h.  */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h.  */
14791 $ac_includes_default
14792 int
14793 main ()
14794 {
14795 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14796 test_array [0] = 0
14797
14798   ;
14799   return 0;
14800 }
14801 _ACEOF
14802 rm -f conftest.$ac_objext
14803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14804   (eval $ac_compile) 2>&5
14805   ac_status=$?
14806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); } &&
14808          { ac_try='test -s conftest.$ac_objext'
14809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810   (eval $ac_try) 2>&5
14811   ac_status=$?
14812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813   (exit $ac_status); }; }; then
14814   ac_hi=$ac_mid
14815 else
14816   echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14818
14819 ac_lo=`expr '(' $ac_mid ')' + 1`
14820 fi
14821 rm -f conftest.$ac_objext conftest.$ac_ext
14822 done
14823 case $ac_lo in
14824 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14825 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14826 See \`config.log' for more details." >&5
14827 echo "$as_me: error: cannot compute sizeof (long long int), 77
14828 See \`config.log' for more details." >&2;}
14829    { (exit 1); exit 1; }; } ;;
14830 esac
14831 else
14832   if test "$cross_compiling" = yes; then
14833   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14834 See \`config.log' for more details." >&5
14835 echo "$as_me: error: cannot run test program while cross compiling
14836 See \`config.log' for more details." >&2;}
14837    { (exit 1); exit 1; }; }
14838 else
14839   cat >conftest.$ac_ext <<_ACEOF
14840 #line $LINENO "configure"
14841 /* confdefs.h.  */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h.  */
14846 $ac_includes_default
14847 long longval () { return (long) (sizeof (long long int)); }
14848 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14849 #include <stdio.h>
14850 #include <stdlib.h>
14851 int
14852 main ()
14853 {
14854
14855   FILE *f = fopen ("conftest.val", "w");
14856   if (! f)
14857     exit (1);
14858   if (((long) (sizeof (long long int))) < 0)
14859     {
14860       long i = longval ();
14861       if (i != ((long) (sizeof (long long int))))
14862         exit (1);
14863       fprintf (f, "%ld\n", i);
14864     }
14865   else
14866     {
14867       unsigned long i = ulongval ();
14868       if (i != ((long) (sizeof (long long int))))
14869         exit (1);
14870       fprintf (f, "%lu\n", i);
14871     }
14872   exit (ferror (f) || fclose (f) != 0);
14873
14874   ;
14875   return 0;
14876 }
14877 _ACEOF
14878 rm -f conftest$ac_exeext
14879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14880   (eval $ac_link) 2>&5
14881   ac_status=$?
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885   (eval $ac_try) 2>&5
14886   ac_status=$?
14887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888   (exit $ac_status); }; }; then
14889   ac_cv_sizeof_long_long_int=`cat conftest.val`
14890 else
14891   echo "$as_me: program exited with status $ac_status" >&5
14892 echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.$ac_ext >&5
14894
14895 ( exit $ac_status )
14896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14897 See \`config.log' for more details." >&5
14898 echo "$as_me: error: cannot compute sizeof (long long int), 77
14899 See \`config.log' for more details." >&2;}
14900    { (exit 1); exit 1; }; }
14901 fi
14902 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14903 fi
14904 fi
14905 rm -f conftest.val
14906 else
14907   ac_cv_sizeof_long_long_int=0
14908 fi
14909 fi
14910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14911 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14912 cat >>confdefs.h <<_ACEOF
14913 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14914 _ACEOF
14915
14916
14917 echo "$as_me:$LINENO: checking for int *" >&5
14918 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14919 if test "${ac_cv_type_int_p+set}" = set; then
14920   echo $ECHO_N "(cached) $ECHO_C" >&6
14921 else
14922   cat >conftest.$ac_ext <<_ACEOF
14923 #line $LINENO "configure"
14924 /* confdefs.h.  */
14925 _ACEOF
14926 cat confdefs.h >>conftest.$ac_ext
14927 cat >>conftest.$ac_ext <<_ACEOF
14928 /* end confdefs.h.  */
14929 $ac_includes_default
14930 int
14931 main ()
14932 {
14933 if ((int * *) 0)
14934   return 0;
14935 if (sizeof (int *))
14936   return 0;
14937   ;
14938   return 0;
14939 }
14940 _ACEOF
14941 rm -f conftest.$ac_objext
14942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14943   (eval $ac_compile) 2>&5
14944   ac_status=$?
14945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946   (exit $ac_status); } &&
14947          { ac_try='test -s conftest.$ac_objext'
14948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949   (eval $ac_try) 2>&5
14950   ac_status=$?
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); }; }; then
14953   ac_cv_type_int_p=yes
14954 else
14955   echo "$as_me: failed program was:" >&5
14956 sed 's/^/| /' conftest.$ac_ext >&5
14957
14958 ac_cv_type_int_p=no
14959 fi
14960 rm -f conftest.$ac_objext conftest.$ac_ext
14961 fi
14962 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14963 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14964
14965 echo "$as_me:$LINENO: checking size of int *" >&5
14966 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14967 if test "${ac_cv_sizeof_int_p+set}" = set; then
14968   echo $ECHO_N "(cached) $ECHO_C" >&6
14969 else
14970   if test "$ac_cv_type_int_p" = yes; then
14971   # The cast to unsigned long works around a bug in the HP C Compiler
14972   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14973   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14974   # This bug is HP SR number 8606223364.
14975   if test "$cross_compiling" = yes; then
14976   # Depending upon the size, compute the lo and hi bounds.
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 $ac_includes_default
14985 int
14986 main ()
14987 {
14988 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14989 test_array [0] = 0
14990
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   ac_lo=0 ac_mid=0
15008   while :; do
15009     cat >conftest.$ac_ext <<_ACEOF
15010 #line $LINENO "configure"
15011 /* confdefs.h.  */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h.  */
15016 $ac_includes_default
15017 int
15018 main ()
15019 {
15020 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15021 test_array [0] = 0
15022
15023   ;
15024   return 0;
15025 }
15026 _ACEOF
15027 rm -f conftest.$ac_objext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029   (eval $ac_compile) 2>&5
15030   ac_status=$?
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); } &&
15033          { ac_try='test -s conftest.$ac_objext'
15034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035   (eval $ac_try) 2>&5
15036   ac_status=$?
15037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   (exit $ac_status); }; }; then
15039   ac_hi=$ac_mid; break
15040 else
15041   echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15043
15044 ac_lo=`expr $ac_mid + 1`
15045                     if test $ac_lo -le $ac_mid; then
15046                       ac_lo= ac_hi=
15047                       break
15048                     fi
15049                     ac_mid=`expr 2 '*' $ac_mid + 1`
15050 fi
15051 rm -f conftest.$ac_objext conftest.$ac_ext
15052   done
15053 else
15054   echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15056
15057 cat >conftest.$ac_ext <<_ACEOF
15058 #line $LINENO "configure"
15059 /* confdefs.h.  */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h.  */
15064 $ac_includes_default
15065 int
15066 main ()
15067 {
15068 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15069 test_array [0] = 0
15070
15071   ;
15072   return 0;
15073 }
15074 _ACEOF
15075 rm -f conftest.$ac_objext
15076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15077   (eval $ac_compile) 2>&5
15078   ac_status=$?
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); } &&
15081          { ac_try='test -s conftest.$ac_objext'
15082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083   (eval $ac_try) 2>&5
15084   ac_status=$?
15085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086   (exit $ac_status); }; }; then
15087   ac_hi=-1 ac_mid=-1
15088   while :; do
15089     cat >conftest.$ac_ext <<_ACEOF
15090 #line $LINENO "configure"
15091 /* confdefs.h.  */
15092 _ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h.  */
15096 $ac_includes_default
15097 int
15098 main ()
15099 {
15100 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15101 test_array [0] = 0
15102
15103   ;
15104   return 0;
15105 }
15106 _ACEOF
15107 rm -f conftest.$ac_objext
15108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15109   (eval $ac_compile) 2>&5
15110   ac_status=$?
15111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); } &&
15113          { ac_try='test -s conftest.$ac_objext'
15114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115   (eval $ac_try) 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); }; }; then
15119   ac_lo=$ac_mid; break
15120 else
15121   echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15123
15124 ac_hi=`expr '(' $ac_mid ')' - 1`
15125                        if test $ac_mid -le $ac_hi; then
15126                          ac_lo= ac_hi=
15127                          break
15128                        fi
15129                        ac_mid=`expr 2 '*' $ac_mid`
15130 fi
15131 rm -f conftest.$ac_objext conftest.$ac_ext
15132   done
15133 else
15134   echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15136
15137 ac_lo= ac_hi=
15138 fi
15139 rm -f conftest.$ac_objext conftest.$ac_ext
15140 fi
15141 rm -f conftest.$ac_objext conftest.$ac_ext
15142 # Binary search between lo and hi bounds.
15143 while test "x$ac_lo" != "x$ac_hi"; do
15144   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15145   cat >conftest.$ac_ext <<_ACEOF
15146 #line $LINENO "configure"
15147 /* confdefs.h.  */
15148 _ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h.  */
15152 $ac_includes_default
15153 int
15154 main ()
15155 {
15156 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15157 test_array [0] = 0
15158
15159   ;
15160   return 0;
15161 }
15162 _ACEOF
15163 rm -f conftest.$ac_objext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15165   (eval $ac_compile) 2>&5
15166   ac_status=$?
15167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168   (exit $ac_status); } &&
15169          { ac_try='test -s conftest.$ac_objext'
15170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171   (eval $ac_try) 2>&5
15172   ac_status=$?
15173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); }; }; then
15175   ac_hi=$ac_mid
15176 else
15177   echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15179
15180 ac_lo=`expr '(' $ac_mid ')' + 1`
15181 fi
15182 rm -f conftest.$ac_objext conftest.$ac_ext
15183 done
15184 case $ac_lo in
15185 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15186 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15187 See \`config.log' for more details." >&5
15188 echo "$as_me: error: cannot compute sizeof (int *), 77
15189 See \`config.log' for more details." >&2;}
15190    { (exit 1); exit 1; }; } ;;
15191 esac
15192 else
15193   if test "$cross_compiling" = yes; then
15194   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15195 See \`config.log' for more details." >&5
15196 echo "$as_me: error: cannot run test program while cross compiling
15197 See \`config.log' for more details." >&2;}
15198    { (exit 1); exit 1; }; }
15199 else
15200   cat >conftest.$ac_ext <<_ACEOF
15201 #line $LINENO "configure"
15202 /* confdefs.h.  */
15203 _ACEOF
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h.  */
15207 $ac_includes_default
15208 long longval () { return (long) (sizeof (int *)); }
15209 unsigned long ulongval () { return (long) (sizeof (int *)); }
15210 #include <stdio.h>
15211 #include <stdlib.h>
15212 int
15213 main ()
15214 {
15215
15216   FILE *f = fopen ("conftest.val", "w");
15217   if (! f)
15218     exit (1);
15219   if (((long) (sizeof (int *))) < 0)
15220     {
15221       long i = longval ();
15222       if (i != ((long) (sizeof (int *))))
15223         exit (1);
15224       fprintf (f, "%ld\n", i);
15225     }
15226   else
15227     {
15228       unsigned long i = ulongval ();
15229       if (i != ((long) (sizeof (int *))))
15230         exit (1);
15231       fprintf (f, "%lu\n", i);
15232     }
15233   exit (ferror (f) || fclose (f) != 0);
15234
15235   ;
15236   return 0;
15237 }
15238 _ACEOF
15239 rm -f conftest$ac_exeext
15240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15241   (eval $ac_link) 2>&5
15242   ac_status=$?
15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246   (eval $ac_try) 2>&5
15247   ac_status=$?
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); }; }; then
15250   ac_cv_sizeof_int_p=`cat conftest.val`
15251 else
15252   echo "$as_me: program exited with status $ac_status" >&5
15253 echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15255
15256 ( exit $ac_status )
15257 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15258 See \`config.log' for more details." >&5
15259 echo "$as_me: error: cannot compute sizeof (int *), 77
15260 See \`config.log' for more details." >&2;}
15261    { (exit 1); exit 1; }; }
15262 fi
15263 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15264 fi
15265 fi
15266 rm -f conftest.val
15267 else
15268   ac_cv_sizeof_int_p=0
15269 fi
15270 fi
15271 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15272 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15273 cat >>confdefs.h <<_ACEOF
15274 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15275 _ACEOF
15276
15277
15278
15279 # Check for sys/types.h types
15280 echo "$as_me:$LINENO: checking for u_int type" >&5
15281 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15282 if test "${ac_cv_have_u_int+set}" = set; then
15283   echo $ECHO_N "(cached) $ECHO_C" >&6
15284 else
15285
15286     cat >conftest.$ac_ext <<_ACEOF
15287 #line $LINENO "configure"
15288 /* confdefs.h.  */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h.  */
15293  #include <sys/types.h>
15294 int
15295 main ()
15296 {
15297  u_int a; a = 1;
15298   ;
15299   return 0;
15300 }
15301 _ACEOF
15302 rm -f conftest.$ac_objext
15303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15304   (eval $ac_compile) 2>&5
15305   ac_status=$?
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); } &&
15308          { ac_try='test -s conftest.$ac_objext'
15309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310   (eval $ac_try) 2>&5
15311   ac_status=$?
15312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); }; }; then
15314    ac_cv_have_u_int="yes"
15315 else
15316   echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15318
15319  ac_cv_have_u_int="no"
15320
15321 fi
15322 rm -f conftest.$ac_objext conftest.$ac_ext
15323
15324 fi
15325 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15326 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15327 if test "x$ac_cv_have_u_int" = "xyes" ; then
15328    cat >>confdefs.h <<\_ACEOF
15329 #define HAVE_U_INT 1
15330 _ACEOF
15331
15332    have_u_int=1
15333 fi
15334
15335 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15336 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15337 if test "${ac_cv_have_intmax_t+set}" = set; then
15338   echo $ECHO_N "(cached) $ECHO_C" >&6
15339 else
15340
15341    cat >conftest.$ac_ext <<_ACEOF
15342 #line $LINENO "configure"
15343 /* confdefs.h.  */
15344 _ACEOF
15345 cat confdefs.h >>conftest.$ac_ext
15346 cat >>conftest.$ac_ext <<_ACEOF
15347 /* end confdefs.h.  */
15348  #include <sys/types.h>
15349 int
15350 main ()
15351 {
15352  intmax_t a; a = 1;
15353   ;
15354   return 0;
15355 }
15356 _ACEOF
15357 rm -f conftest.$ac_objext
15358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15359   (eval $ac_compile) 2>&5
15360   ac_status=$?
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); } &&
15363          { ac_try='test -s conftest.$ac_objext'
15364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15365   (eval $ac_try) 2>&5
15366   ac_status=$?
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); }; }; then
15369    ac_cv_have_intmax_t="yes"
15370 else
15371   echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15373
15374
15375          cat >conftest.$ac_ext <<_ACEOF
15376 #line $LINENO "configure"
15377 /* confdefs.h.  */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h.  */
15382  #include <stdint.h>
15383 int
15384 main ()
15385 {
15386  intmax_t a; a = 1;
15387   ;
15388   return 0;
15389 }
15390 _ACEOF
15391 rm -f conftest.$ac_objext
15392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15393   (eval $ac_compile) 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); } &&
15397          { ac_try='test -s conftest.$ac_objext'
15398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399   (eval $ac_try) 2>&5
15400   ac_status=$?
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); }; }; then
15403    ac_cv_have_intmax_t="yes"
15404 else
15405   echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15407
15408  ac_cv_have_intmax_t="no"
15409
15410 fi
15411 rm -f conftest.$ac_objext conftest.$ac_ext
15412
15413
15414 fi
15415 rm -f conftest.$ac_objext conftest.$ac_ext
15416
15417
15418 fi
15419 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15420 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15421 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15422    cat >>confdefs.h <<\_ACEOF
15423 #define HAVE_INTMAX_T 1
15424 _ACEOF
15425
15426    have_intmax_t=1
15427 fi
15428
15429
15430 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15431 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15432 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15433   echo $ECHO_N "(cached) $ECHO_C" >&6
15434 else
15435
15436    cat >conftest.$ac_ext <<_ACEOF
15437 #line $LINENO "configure"
15438 /* confdefs.h.  */
15439 _ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h.  */
15443  #include <sys/types.h>
15444 int
15445 main ()
15446 {
15447  u_intmax_t a; a = 1;
15448   ;
15449   return 0;
15450 }
15451 _ACEOF
15452 rm -f conftest.$ac_objext
15453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15454   (eval $ac_compile) 2>&5
15455   ac_status=$?
15456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457   (exit $ac_status); } &&
15458          { ac_try='test -s conftest.$ac_objext'
15459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460   (eval $ac_try) 2>&5
15461   ac_status=$?
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); }; }; then
15464    ac_cv_have_u_intmax_t="yes"
15465 else
15466   echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15468
15469
15470          cat >conftest.$ac_ext <<_ACEOF
15471 #line $LINENO "configure"
15472 /* confdefs.h.  */
15473 _ACEOF
15474 cat confdefs.h >>conftest.$ac_ext
15475 cat >>conftest.$ac_ext <<_ACEOF
15476 /* end confdefs.h.  */
15477  #include <stdint.h>
15478 int
15479 main ()
15480 {
15481  u_intmax_t a; a = 1;
15482   ;
15483   return 0;
15484 }
15485 _ACEOF
15486 rm -f conftest.$ac_objext
15487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15488   (eval $ac_compile) 2>&5
15489   ac_status=$?
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); } &&
15492          { ac_try='test -s conftest.$ac_objext'
15493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494   (eval $ac_try) 2>&5
15495   ac_status=$?
15496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497   (exit $ac_status); }; }; then
15498    ac_cv_have_u_intmax_t="yes"
15499 else
15500   echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15502
15503  ac_cv_have_u_intmax_t="no"
15504
15505 fi
15506 rm -f conftest.$ac_objext conftest.$ac_ext
15507
15508
15509 fi
15510 rm -f conftest.$ac_objext conftest.$ac_ext
15511
15512 fi
15513 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15514 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15515 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15516    cat >>confdefs.h <<\_ACEOF
15517 #define HAVE_U_INTMAX_T 1
15518 _ACEOF
15519
15520    have_u_intmax_t=1
15521 fi
15522
15523
15524 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15525 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15526 if test "${ac_cv_have_intxx_t+set}" = set; then
15527   echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529
15530    cat >conftest.$ac_ext <<_ACEOF
15531 #line $LINENO "configure"
15532 /* confdefs.h.  */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h.  */
15537  #include <sys/types.h>
15538 int
15539 main ()
15540 {
15541  int8_t a; int16_t b; int32_t c; a = b = c = 1;
15542   ;
15543   return 0;
15544 }
15545 _ACEOF
15546 rm -f conftest.$ac_objext
15547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15548   (eval $ac_compile) 2>&5
15549   ac_status=$?
15550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551   (exit $ac_status); } &&
15552          { ac_try='test -s conftest.$ac_objext'
15553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554   (eval $ac_try) 2>&5
15555   ac_status=$?
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); }; }; then
15558    ac_cv_have_intxx_t="yes"
15559 else
15560   echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15562
15563  ac_cv_have_intxx_t="no"
15564
15565 fi
15566 rm -f conftest.$ac_objext conftest.$ac_ext
15567
15568 fi
15569 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15570 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15571 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15572    cat >>confdefs.h <<\_ACEOF
15573 #define HAVE_INTXX_T 1
15574 _ACEOF
15575
15576    have_intxx_t=1
15577 fi
15578
15579 echo "$as_me:$LINENO: checking for int64_t type" >&5
15580 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15581 if test "${ac_cv_have_int64_t+set}" = set; then
15582   echo $ECHO_N "(cached) $ECHO_C" >&6
15583 else
15584
15585    cat >conftest.$ac_ext <<_ACEOF
15586 #line $LINENO "configure"
15587 /* confdefs.h.  */
15588 _ACEOF
15589 cat confdefs.h >>conftest.$ac_ext
15590 cat >>conftest.$ac_ext <<_ACEOF
15591 /* end confdefs.h.  */
15592  #include <sys/types.h>
15593 int
15594 main ()
15595 {
15596  int64_t a; a = 1;
15597   ;
15598   return 0;
15599 }
15600 _ACEOF
15601 rm -f conftest.$ac_objext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15603   (eval $ac_compile) 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); } &&
15607          { ac_try='test -s conftest.$ac_objext'
15608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609   (eval $ac_try) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; }; then
15613    ac_cv_have_int64_t="yes"
15614 else
15615   echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15617
15618  ac_cv_have_int64_t="no"
15619
15620 fi
15621 rm -f conftest.$ac_objext conftest.$ac_ext
15622
15623 fi
15624 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15625 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15626 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15627    cat >>confdefs.h <<\_ACEOF
15628 #define HAVE_INT64_T 1
15629 _ACEOF
15630
15631    have_int64_t=1
15632 fi
15633
15634 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15635 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15636 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15637   echo $ECHO_N "(cached) $ECHO_C" >&6
15638 else
15639
15640    cat >conftest.$ac_ext <<_ACEOF
15641 #line $LINENO "configure"
15642 /* confdefs.h.  */
15643 _ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h.  */
15647  #include <sys/types.h>
15648 int
15649 main ()
15650 {
15651  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15652   ;
15653   return 0;
15654 }
15655 _ACEOF
15656 rm -f conftest.$ac_objext
15657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15658   (eval $ac_compile) 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); } &&
15662          { ac_try='test -s conftest.$ac_objext'
15663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664   (eval $ac_try) 2>&5
15665   ac_status=$?
15666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667   (exit $ac_status); }; }; then
15668    ac_cv_have_u_intxx_t="yes"
15669 else
15670   echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15672
15673  ac_cv_have_u_intxx_t="no"
15674
15675 fi
15676 rm -f conftest.$ac_objext conftest.$ac_ext
15677
15678 fi
15679 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15680 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15681 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15682    cat >>confdefs.h <<\_ACEOF
15683 #define HAVE_U_INTXX_T 1
15684 _ACEOF
15685
15686    have_u_intxx_t=1
15687 fi
15688
15689 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15690 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15691 if test "${ac_cv_have_u_int64_t+set}" = set; then
15692   echo $ECHO_N "(cached) $ECHO_C" >&6
15693 else
15694
15695    cat >conftest.$ac_ext <<_ACEOF
15696 #line $LINENO "configure"
15697 /* confdefs.h.  */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h.  */
15702  #include <sys/types.h>
15703 int
15704 main ()
15705 {
15706  u_int64_t a; a = 1;
15707   ;
15708   return 0;
15709 }
15710 _ACEOF
15711 rm -f conftest.$ac_objext
15712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15713   (eval $ac_compile) 2>&5
15714   ac_status=$?
15715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716   (exit $ac_status); } &&
15717          { ac_try='test -s conftest.$ac_objext'
15718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719   (eval $ac_try) 2>&5
15720   ac_status=$?
15721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); }; }; then
15723    ac_cv_have_u_int64_t="yes"
15724 else
15725   echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15727
15728  ac_cv_have_u_int64_t="no"
15729
15730 fi
15731 rm -f conftest.$ac_objext conftest.$ac_ext
15732
15733 fi
15734 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15735 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15736 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15737    cat >>confdefs.h <<\_ACEOF
15738 #define HAVE_U_INT64_T 1
15739 _ACEOF
15740
15741    have_u_int64_t=1
15742 fi
15743
15744 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15745            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15746 then
15747    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15748 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15749    cat >conftest.$ac_ext <<_ACEOF
15750 #line $LINENO "configure"
15751 /* confdefs.h.  */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h.  */
15756  #include <sys/bitypes.h>
15757 int
15758 main ()
15759 {
15760  int8_t a; int16_t b; int32_t c;
15761         u_int8_t e; u_int16_t f; u_int32_t g;
15762         a = b = c = e = f = g = 1;
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest.$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769   (eval $ac_compile) 2>&5
15770   ac_status=$?
15771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772   (exit $ac_status); } &&
15773          { ac_try='test -s conftest.$ac_objext'
15774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775   (eval $ac_try) 2>&5
15776   ac_status=$?
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); }; }; then
15779    cat >>confdefs.h <<\_ACEOF
15780 #define HAVE_U_INTXX_T 1
15781 _ACEOF
15782
15783         cat >>confdefs.h <<\_ACEOF
15784 #define HAVE_INTXX_T 1
15785 _ACEOF
15786
15787         cat >>confdefs.h <<\_ACEOF
15788 #define HAVE_SYS_BITYPES_H 1
15789 _ACEOF
15790
15791         echo "$as_me:$LINENO: result: yes" >&5
15792 echo "${ECHO_T}yes" >&6
15793 else
15794   echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15796
15797  echo "$as_me:$LINENO: result: no" >&5
15798 echo "${ECHO_T}no" >&6
15799
15800 fi
15801 rm -f conftest.$ac_objext conftest.$ac_ext
15802 fi
15803
15804 if test -z "$have_u_intxx_t" ; then
15805    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15806 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15807 if test "${ac_cv_have_uintxx_t+set}" = set; then
15808   echo $ECHO_N "(cached) $ECHO_C" >&6
15809 else
15810
15811       cat >conftest.$ac_ext <<_ACEOF
15812 #line $LINENO "configure"
15813 /* confdefs.h.  */
15814 _ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h.  */
15818  #include <sys/types.h>
15819 int
15820 main ()
15821 {
15822  uint8_t a; uint16_t b;
15823            uint32_t c; a = b = c = 1;
15824   ;
15825   return 0;
15826 }
15827 _ACEOF
15828 rm -f conftest.$ac_objext
15829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15830   (eval $ac_compile) 2>&5
15831   ac_status=$?
15832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833   (exit $ac_status); } &&
15834          { ac_try='test -s conftest.$ac_objext'
15835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836   (eval $ac_try) 2>&5
15837   ac_status=$?
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); }; }; then
15840    ac_cv_have_uintxx_t="yes"
15841 else
15842   echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15844
15845  ac_cv_have_uintxx_t="no"
15846
15847 fi
15848 rm -f conftest.$ac_objext conftest.$ac_ext
15849
15850 fi
15851 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15852 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15853    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15854       cat >>confdefs.h <<\_ACEOF
15855 #define HAVE_UINTXX_T 1
15856 _ACEOF
15857
15858    fi
15859 fi
15860
15861 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15862           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15863 then
15864    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15865 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15866    cat >conftest.$ac_ext <<_ACEOF
15867 #line $LINENO "configure"
15868 /* confdefs.h.  */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h.  */
15873  #include <sys/bitypes.h>
15874 int
15875 main ()
15876 {
15877  int64_t a; u_int64_t b;
15878        a = b = 1;
15879   ;
15880   return 0;
15881 }
15882 _ACEOF
15883 rm -f conftest.$ac_objext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15885   (eval $ac_compile) 2>&5
15886   ac_status=$?
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } &&
15889          { ac_try='test -s conftest.$ac_objext'
15890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891   (eval $ac_try) 2>&5
15892   ac_status=$?
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); }; }; then
15895    cat >>confdefs.h <<\_ACEOF
15896 #define HAVE_U_INT64_T 1
15897 _ACEOF
15898
15899        cat >>confdefs.h <<\_ACEOF
15900 #define HAVE_INT64_T 1
15901 _ACEOF
15902
15903        echo "$as_me:$LINENO: result: yes" >&5
15904 echo "${ECHO_T}yes" >&6
15905 else
15906   echo "$as_me: failed program was:" >&5
15907 sed 's/^/| /' conftest.$ac_ext >&5
15908
15909  echo "$as_me:$LINENO: result: no" >&5
15910 echo "${ECHO_T}no" >&6
15911
15912 fi
15913 rm -f conftest.$ac_objext conftest.$ac_ext
15914 fi
15915
15916 if (test -z "$have_uintxx_t" && \
15917           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15918 then
15919    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15920 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15921    cat >conftest.$ac_ext <<_ACEOF
15922 #line $LINENO "configure"
15923 /* confdefs.h.  */
15924 _ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h.  */
15928  #include <sys/bitypes.h>
15929 int
15930 main ()
15931 {
15932  uint8_t a; uint16_t b;
15933           uint32_t c; a = b = c = 1;
15934   ;
15935   return 0;
15936 }
15937 _ACEOF
15938 rm -f conftest.$ac_objext
15939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15940   (eval $ac_compile) 2>&5
15941   ac_status=$?
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); } &&
15944          { ac_try='test -s conftest.$ac_objext'
15945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946   (eval $ac_try) 2>&5
15947   ac_status=$?
15948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); }; }; then
15950    cat >>confdefs.h <<\_ACEOF
15951 #define HAVE_UINTXX_T 1
15952 _ACEOF
15953
15954        echo "$as_me:$LINENO: result: yes" >&5
15955 echo "${ECHO_T}yes" >&6
15956 else
15957   echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15959
15960  echo "$as_me:$LINENO: result: no" >&5
15961 echo "${ECHO_T}no" >&6
15962
15963 fi
15964 rm -f conftest.$ac_objext conftest.$ac_ext
15965
15966 fi
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984 for ac_func in \
15985         fork \
15986         getcwd \
15987         gethostname \
15988         getpid \
15989         gettimeofday \
15990         setpgid \
15991         setpgrp \
15992         setsid \
15993         signal \
15994         strerror \
15995         strncmp \
15996         strncpy \
15997         vfprintf \
15998
15999 do
16000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16001 echo "$as_me:$LINENO: checking for $ac_func" >&5
16002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16003 if eval "test \"\${$as_ac_var+set}\" = set"; then
16004   echo $ECHO_N "(cached) $ECHO_C" >&6
16005 else
16006   cat >conftest.$ac_ext <<_ACEOF
16007 #line $LINENO "configure"
16008 /* confdefs.h.  */
16009 _ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h.  */
16013 /* System header to define __stub macros and hopefully few prototypes,
16014     which can conflict with char $ac_func (); below.
16015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16016     <limits.h> exists even on freestanding compilers.  */
16017 #ifdef __STDC__
16018 # include <limits.h>
16019 #else
16020 # include <assert.h>
16021 #endif
16022 /* Override any gcc2 internal prototype to avoid an error.  */
16023 #ifdef __cplusplus
16024 extern "C"
16025 {
16026 #endif
16027 /* We use char because int might match the return type of a gcc2
16028    builtin and then its argument prototype would still apply.  */
16029 char $ac_func ();
16030 /* The GNU C library defines this for functions which it implements
16031     to always fail with ENOSYS.  Some functions are actually named
16032     something starting with __ and the normal name is an alias.  */
16033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16034 choke me
16035 #else
16036 char (*f) () = $ac_func;
16037 #endif
16038 #ifdef __cplusplus
16039 }
16040 #endif
16041
16042 int
16043 main ()
16044 {
16045 return f != $ac_func;
16046   ;
16047   return 0;
16048 }
16049 _ACEOF
16050 rm -f conftest.$ac_objext conftest$ac_exeext
16051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16052   (eval $ac_link) 2>&5
16053   ac_status=$?
16054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055   (exit $ac_status); } &&
16056          { ac_try='test -s conftest$ac_exeext'
16057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058   (eval $ac_try) 2>&5
16059   ac_status=$?
16060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061   (exit $ac_status); }; }; then
16062   eval "$as_ac_var=yes"
16063 else
16064   echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16066
16067 eval "$as_ac_var=no"
16068 fi
16069 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16070 fi
16071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16073 if test `eval echo '${'$as_ac_var'}'` = yes; then
16074   cat >>confdefs.h <<_ACEOF
16075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16076 _ACEOF
16077
16078 else
16079   echo 'configure: cannot find needed function.'; exit 1
16080
16081 fi
16082 done
16083
16084
16085
16086 for ac_func in fchdir
16087 do
16088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16089 echo "$as_me:$LINENO: checking for $ac_func" >&5
16090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16091 if eval "test \"\${$as_ac_var+set}\" = set"; then
16092   echo $ECHO_N "(cached) $ECHO_C" >&6
16093 else
16094   cat >conftest.$ac_ext <<_ACEOF
16095 #line $LINENO "configure"
16096 /* confdefs.h.  */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h.  */
16101 /* System header to define __stub macros and hopefully few prototypes,
16102     which can conflict with char $ac_func (); below.
16103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16104     <limits.h> exists even on freestanding compilers.  */
16105 #ifdef __STDC__
16106 # include <limits.h>
16107 #else
16108 # include <assert.h>
16109 #endif
16110 /* Override any gcc2 internal prototype to avoid an error.  */
16111 #ifdef __cplusplus
16112 extern "C"
16113 {
16114 #endif
16115 /* We use char because int might match the return type of a gcc2
16116    builtin and then its argument prototype would still apply.  */
16117 char $ac_func ();
16118 /* The GNU C library defines this for functions which it implements
16119     to always fail with ENOSYS.  Some functions are actually named
16120     something starting with __ and the normal name is an alias.  */
16121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16122 choke me
16123 #else
16124 char (*f) () = $ac_func;
16125 #endif
16126 #ifdef __cplusplus
16127 }
16128 #endif
16129
16130 int
16131 main ()
16132 {
16133 return f != $ac_func;
16134   ;
16135   return 0;
16136 }
16137 _ACEOF
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16140   (eval $ac_link) 2>&5
16141   ac_status=$?
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); } &&
16144          { ac_try='test -s conftest$ac_exeext'
16145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146   (eval $ac_try) 2>&5
16147   ac_status=$?
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); }; }; then
16150   eval "$as_ac_var=yes"
16151 else
16152   echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16154
16155 eval "$as_ac_var=no"
16156 fi
16157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16158 fi
16159 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16160 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16161 if test `eval echo '${'$as_ac_var'}'` = yes; then
16162   cat >>confdefs.h <<_ACEOF
16163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16164 _ACEOF
16165  cat >>confdefs.h <<\_ACEOF
16166 #define HAVE_FCHDIR 1
16167 _ACEOF
16168
16169 fi
16170 done
16171
16172
16173 for ac_func in strtoll
16174 do
16175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16176 echo "$as_me:$LINENO: checking for $ac_func" >&5
16177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16178 if eval "test \"\${$as_ac_var+set}\" = set"; then
16179   echo $ECHO_N "(cached) $ECHO_C" >&6
16180 else
16181   cat >conftest.$ac_ext <<_ACEOF
16182 #line $LINENO "configure"
16183 /* confdefs.h.  */
16184 _ACEOF
16185 cat confdefs.h >>conftest.$ac_ext
16186 cat >>conftest.$ac_ext <<_ACEOF
16187 /* end confdefs.h.  */
16188 /* System header to define __stub macros and hopefully few prototypes,
16189     which can conflict with char $ac_func (); below.
16190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16191     <limits.h> exists even on freestanding compilers.  */
16192 #ifdef __STDC__
16193 # include <limits.h>
16194 #else
16195 # include <assert.h>
16196 #endif
16197 /* Override any gcc2 internal prototype to avoid an error.  */
16198 #ifdef __cplusplus
16199 extern "C"
16200 {
16201 #endif
16202 /* We use char because int might match the return type of a gcc2
16203    builtin and then its argument prototype would still apply.  */
16204 char $ac_func ();
16205 /* The GNU C library defines this for functions which it implements
16206     to always fail with ENOSYS.  Some functions are actually named
16207     something starting with __ and the normal name is an alias.  */
16208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16209 choke me
16210 #else
16211 char (*f) () = $ac_func;
16212 #endif
16213 #ifdef __cplusplus
16214 }
16215 #endif
16216
16217 int
16218 main ()
16219 {
16220 return f != $ac_func;
16221   ;
16222   return 0;
16223 }
16224 _ACEOF
16225 rm -f conftest.$ac_objext conftest$ac_exeext
16226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16227   (eval $ac_link) 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); } &&
16231          { ac_try='test -s conftest$ac_exeext'
16232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233   (eval $ac_try) 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); }; }; then
16237   eval "$as_ac_var=yes"
16238 else
16239   echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16241
16242 eval "$as_ac_var=no"
16243 fi
16244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16245 fi
16246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16248 if test `eval echo '${'$as_ac_var'}'` = yes; then
16249   cat >>confdefs.h <<_ACEOF
16250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16251 _ACEOF
16252  cat >>confdefs.h <<\_ACEOF
16253 #define HAVE_STRTOLL 1
16254 _ACEOF
16255
16256 fi
16257 done
16258
16259
16260
16261 for ac_func in chflags
16262 do
16263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16264 echo "$as_me:$LINENO: checking for $ac_func" >&5
16265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16266 if eval "test \"\${$as_ac_var+set}\" = set"; then
16267   echo $ECHO_N "(cached) $ECHO_C" >&6
16268 else
16269   cat >conftest.$ac_ext <<_ACEOF
16270 #line $LINENO "configure"
16271 /* confdefs.h.  */
16272 _ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h.  */
16276 /* System header to define __stub macros and hopefully few prototypes,
16277     which can conflict with char $ac_func (); below.
16278     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16279     <limits.h> exists even on freestanding compilers.  */
16280 #ifdef __STDC__
16281 # include <limits.h>
16282 #else
16283 # include <assert.h>
16284 #endif
16285 /* Override any gcc2 internal prototype to avoid an error.  */
16286 #ifdef __cplusplus
16287 extern "C"
16288 {
16289 #endif
16290 /* We use char because int might match the return type of a gcc2
16291    builtin and then its argument prototype would still apply.  */
16292 char $ac_func ();
16293 /* The GNU C library defines this for functions which it implements
16294     to always fail with ENOSYS.  Some functions are actually named
16295     something starting with __ and the normal name is an alias.  */
16296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16297 choke me
16298 #else
16299 char (*f) () = $ac_func;
16300 #endif
16301 #ifdef __cplusplus
16302 }
16303 #endif
16304
16305 int
16306 main ()
16307 {
16308 return f != $ac_func;
16309   ;
16310   return 0;
16311 }
16312 _ACEOF
16313 rm -f conftest.$ac_objext conftest$ac_exeext
16314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16315   (eval $ac_link) 2>&5
16316   ac_status=$?
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); } &&
16319          { ac_try='test -s conftest$ac_exeext'
16320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321   (eval $ac_try) 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }; }; then
16325   eval "$as_ac_var=yes"
16326 else
16327   echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16329
16330 eval "$as_ac_var=no"
16331 fi
16332 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16333 fi
16334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16336 if test `eval echo '${'$as_ac_var'}'` = yes; then
16337   cat >>confdefs.h <<_ACEOF
16338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16339 _ACEOF
16340
16341 fi
16342 done
16343
16344
16345
16346
16347
16348
16349 for ac_func in snprintf vsnprintf gethostid getdomainname
16350 do
16351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16352 echo "$as_me:$LINENO: checking for $ac_func" >&5
16353 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16354 if eval "test \"\${$as_ac_var+set}\" = set"; then
16355   echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357   cat >conftest.$ac_ext <<_ACEOF
16358 #line $LINENO "configure"
16359 /* confdefs.h.  */
16360 _ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h.  */
16364 /* System header to define __stub macros and hopefully few prototypes,
16365     which can conflict with char $ac_func (); below.
16366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16367     <limits.h> exists even on freestanding compilers.  */
16368 #ifdef __STDC__
16369 # include <limits.h>
16370 #else
16371 # include <assert.h>
16372 #endif
16373 /* Override any gcc2 internal prototype to avoid an error.  */
16374 #ifdef __cplusplus
16375 extern "C"
16376 {
16377 #endif
16378 /* We use char because int might match the return type of a gcc2
16379    builtin and then its argument prototype would still apply.  */
16380 char $ac_func ();
16381 /* The GNU C library defines this for functions which it implements
16382     to always fail with ENOSYS.  Some functions are actually named
16383     something starting with __ and the normal name is an alias.  */
16384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16385 choke me
16386 #else
16387 char (*f) () = $ac_func;
16388 #endif
16389 #ifdef __cplusplus
16390 }
16391 #endif
16392
16393 int
16394 main ()
16395 {
16396 return f != $ac_func;
16397   ;
16398   return 0;
16399 }
16400 _ACEOF
16401 rm -f conftest.$ac_objext conftest$ac_exeext
16402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16403   (eval $ac_link) 2>&5
16404   ac_status=$?
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); } &&
16407          { ac_try='test -s conftest$ac_exeext'
16408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409   (eval $ac_try) 2>&5
16410   ac_status=$?
16411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412   (exit $ac_status); }; }; then
16413   eval "$as_ac_var=yes"
16414 else
16415   echo "$as_me: failed program was:" >&5
16416 sed 's/^/| /' conftest.$ac_ext >&5
16417
16418 eval "$as_ac_var=no"
16419 fi
16420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16421 fi
16422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16423 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16424 if test `eval echo '${'$as_ac_var'}'` = yes; then
16425   cat >>confdefs.h <<_ACEOF
16426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16427 _ACEOF
16428
16429 fi
16430 done
16431
16432
16433
16434
16435
16436
16437 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16438 do
16439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16440 echo "$as_me:$LINENO: checking for $ac_func" >&5
16441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16442 if eval "test \"\${$as_ac_var+set}\" = set"; then
16443   echo $ECHO_N "(cached) $ECHO_C" >&6
16444 else
16445   cat >conftest.$ac_ext <<_ACEOF
16446 #line $LINENO "configure"
16447 /* confdefs.h.  */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h.  */
16452 /* System header to define __stub macros and hopefully few prototypes,
16453     which can conflict with char $ac_func (); below.
16454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16455     <limits.h> exists even on freestanding compilers.  */
16456 #ifdef __STDC__
16457 # include <limits.h>
16458 #else
16459 # include <assert.h>
16460 #endif
16461 /* Override any gcc2 internal prototype to avoid an error.  */
16462 #ifdef __cplusplus
16463 extern "C"
16464 {
16465 #endif
16466 /* We use char because int might match the return type of a gcc2
16467    builtin and then its argument prototype would still apply.  */
16468 char $ac_func ();
16469 /* The GNU C library defines this for functions which it implements
16470     to always fail with ENOSYS.  Some functions are actually named
16471     something starting with __ and the normal name is an alias.  */
16472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16473 choke me
16474 #else
16475 char (*f) () = $ac_func;
16476 #endif
16477 #ifdef __cplusplus
16478 }
16479 #endif
16480
16481 int
16482 main ()
16483 {
16484 return f != $ac_func;
16485   ;
16486   return 0;
16487 }
16488 _ACEOF
16489 rm -f conftest.$ac_objext conftest$ac_exeext
16490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16491   (eval $ac_link) 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); } &&
16495          { ac_try='test -s conftest$ac_exeext'
16496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497   (eval $ac_try) 2>&5
16498   ac_status=$?
16499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500   (exit $ac_status); }; }; then
16501   eval "$as_ac_var=yes"
16502 else
16503   echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16505
16506 eval "$as_ac_var=no"
16507 fi
16508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16509 fi
16510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16512 if test `eval echo '${'$as_ac_var'}'` = yes; then
16513   cat >>confdefs.h <<_ACEOF
16514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16515 _ACEOF
16516
16517 fi
16518 done
16519
16520
16521 # If resolver functions are not in libc check for -lnsl or -lresolv.
16522 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16523 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16524 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16525   echo $ECHO_N "(cached) $ECHO_C" >&6
16526 else
16527   cat >conftest.$ac_ext <<_ACEOF
16528 #line $LINENO "configure"
16529 /* confdefs.h.  */
16530 _ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h.  */
16534 /* System header to define __stub macros and hopefully few prototypes,
16535     which can conflict with char gethostbyname_r (); below.
16536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16537     <limits.h> exists even on freestanding compilers.  */
16538 #ifdef __STDC__
16539 # include <limits.h>
16540 #else
16541 # include <assert.h>
16542 #endif
16543 /* Override any gcc2 internal prototype to avoid an error.  */
16544 #ifdef __cplusplus
16545 extern "C"
16546 {
16547 #endif
16548 /* We use char because int might match the return type of a gcc2
16549    builtin and then its argument prototype would still apply.  */
16550 char gethostbyname_r ();
16551 /* The GNU C library defines this for functions which it implements
16552     to always fail with ENOSYS.  Some functions are actually named
16553     something starting with __ and the normal name is an alias.  */
16554 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16555 choke me
16556 #else
16557 char (*f) () = gethostbyname_r;
16558 #endif
16559 #ifdef __cplusplus
16560 }
16561 #endif
16562
16563 int
16564 main ()
16565 {
16566 return f != gethostbyname_r;
16567   ;
16568   return 0;
16569 }
16570 _ACEOF
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16573   (eval $ac_link) 2>&5
16574   ac_status=$?
16575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576   (exit $ac_status); } &&
16577          { ac_try='test -s conftest$ac_exeext'
16578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579   (eval $ac_try) 2>&5
16580   ac_status=$?
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); }; }; then
16583   ac_cv_func_gethostbyname_r=yes
16584 else
16585   echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16587
16588 ac_cv_func_gethostbyname_r=no
16589 fi
16590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16591 fi
16592 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16593 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16594 if test $ac_cv_func_gethostbyname_r = yes; then
16595   echo "$as_me:$LINENO: result: using libc's resolver" >&5
16596 echo "${ECHO_T}using libc's resolver" >&6
16597 else
16598
16599 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16600 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16601 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16602   echo $ECHO_N "(cached) $ECHO_C" >&6
16603 else
16604   ac_check_lib_save_LIBS=$LIBS
16605 LIBS="-lnsl  $LIBS"
16606 cat >conftest.$ac_ext <<_ACEOF
16607 #line $LINENO "configure"
16608 /* confdefs.h.  */
16609 _ACEOF
16610 cat confdefs.h >>conftest.$ac_ext
16611 cat >>conftest.$ac_ext <<_ACEOF
16612 /* end confdefs.h.  */
16613
16614 /* Override any gcc2 internal prototype to avoid an error.  */
16615 #ifdef __cplusplus
16616 extern "C"
16617 #endif
16618 /* We use char because int might match the return type of a gcc2
16619    builtin and then its argument prototype would still apply.  */
16620 char gethostbyname_r ();
16621 int
16622 main ()
16623 {
16624 gethostbyname_r ();
16625   ;
16626   return 0;
16627 }
16628 _ACEOF
16629 rm -f conftest.$ac_objext conftest$ac_exeext
16630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16631   (eval $ac_link) 2>&5
16632   ac_status=$?
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); } &&
16635          { ac_try='test -s conftest$ac_exeext'
16636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16637   (eval $ac_try) 2>&5
16638   ac_status=$?
16639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640   (exit $ac_status); }; }; then
16641   ac_cv_lib_nsl_gethostbyname_r=yes
16642 else
16643   echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16645
16646 ac_cv_lib_nsl_gethostbyname_r=no
16647 fi
16648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16649 LIBS=$ac_check_lib_save_LIBS
16650 fi
16651 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16652 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16653 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16654   cat >>confdefs.h <<_ACEOF
16655 #define HAVE_LIBNSL 1
16656 _ACEOF
16657
16658   LIBS="-lnsl $LIBS"
16659
16660 fi
16661
16662
16663 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16664 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16665 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16666   echo $ECHO_N "(cached) $ECHO_C" >&6
16667 else
16668   ac_check_lib_save_LIBS=$LIBS
16669 LIBS="-lresolv  $LIBS"
16670 cat >conftest.$ac_ext <<_ACEOF
16671 #line $LINENO "configure"
16672 /* confdefs.h.  */
16673 _ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h.  */
16677
16678 /* Override any gcc2 internal prototype to avoid an error.  */
16679 #ifdef __cplusplus
16680 extern "C"
16681 #endif
16682 /* We use char because int might match the return type of a gcc2
16683    builtin and then its argument prototype would still apply.  */
16684 char gethostbyname_r ();
16685 int
16686 main ()
16687 {
16688 gethostbyname_r ();
16689   ;
16690   return 0;
16691 }
16692 _ACEOF
16693 rm -f conftest.$ac_objext conftest$ac_exeext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16695   (eval $ac_link) 2>&5
16696   ac_status=$?
16697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698   (exit $ac_status); } &&
16699          { ac_try='test -s conftest$ac_exeext'
16700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701   (eval $ac_try) 2>&5
16702   ac_status=$?
16703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704   (exit $ac_status); }; }; then
16705   ac_cv_lib_resolv_gethostbyname_r=yes
16706 else
16707   echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16709
16710 ac_cv_lib_resolv_gethostbyname_r=no
16711 fi
16712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16713 LIBS=$ac_check_lib_save_LIBS
16714 fi
16715 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16716 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16717 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16718   cat >>confdefs.h <<_ACEOF
16719 #define HAVE_LIBRESOLV 1
16720 _ACEOF
16721
16722   LIBS="-lresolv $LIBS"
16723
16724 fi
16725
16726 fi
16727
16728
16729
16730
16731
16732 for ac_func in inet_pton
16733 do
16734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16735 echo "$as_me:$LINENO: checking for $ac_func" >&5
16736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16737 if eval "test \"\${$as_ac_var+set}\" = set"; then
16738   echo $ECHO_N "(cached) $ECHO_C" >&6
16739 else
16740   cat >conftest.$ac_ext <<_ACEOF
16741 #line $LINENO "configure"
16742 /* confdefs.h.  */
16743 _ACEOF
16744 cat confdefs.h >>conftest.$ac_ext
16745 cat >>conftest.$ac_ext <<_ACEOF
16746 /* end confdefs.h.  */
16747 /* System header to define __stub macros and hopefully few prototypes,
16748     which can conflict with char $ac_func (); below.
16749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16750     <limits.h> exists even on freestanding compilers.  */
16751 #ifdef __STDC__
16752 # include <limits.h>
16753 #else
16754 # include <assert.h>
16755 #endif
16756 /* Override any gcc2 internal prototype to avoid an error.  */
16757 #ifdef __cplusplus
16758 extern "C"
16759 {
16760 #endif
16761 /* We use char because int might match the return type of a gcc2
16762    builtin and then its argument prototype would still apply.  */
16763 char $ac_func ();
16764 /* The GNU C library defines this for functions which it implements
16765     to always fail with ENOSYS.  Some functions are actually named
16766     something starting with __ and the normal name is an alias.  */
16767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16768 choke me
16769 #else
16770 char (*f) () = $ac_func;
16771 #endif
16772 #ifdef __cplusplus
16773 }
16774 #endif
16775
16776 int
16777 main ()
16778 {
16779 return f != $ac_func;
16780   ;
16781   return 0;
16782 }
16783 _ACEOF
16784 rm -f conftest.$ac_objext conftest$ac_exeext
16785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16786   (eval $ac_link) 2>&5
16787   ac_status=$?
16788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789   (exit $ac_status); } &&
16790          { ac_try='test -s conftest$ac_exeext'
16791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16792   (eval $ac_try) 2>&5
16793   ac_status=$?
16794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795   (exit $ac_status); }; }; then
16796   eval "$as_ac_var=yes"
16797 else
16798   echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.$ac_ext >&5
16800
16801 eval "$as_ac_var=no"
16802 fi
16803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16804 fi
16805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16807 if test `eval echo '${'$as_ac_var'}'` = yes; then
16808   cat >>confdefs.h <<_ACEOF
16809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16810 _ACEOF
16811  cat >>confdefs.h <<\_ACEOF
16812 #define HAVE_INET_PTON 1
16813 _ACEOF
16814
16815 fi
16816 done
16817
16818
16819 for ac_func in inet_ntop
16820 do
16821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16822 echo "$as_me:$LINENO: checking for $ac_func" >&5
16823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16824 if eval "test \"\${$as_ac_var+set}\" = set"; then
16825   echo $ECHO_N "(cached) $ECHO_C" >&6
16826 else
16827   cat >conftest.$ac_ext <<_ACEOF
16828 #line $LINENO "configure"
16829 /* confdefs.h.  */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h.  */
16834 /* System header to define __stub macros and hopefully few prototypes,
16835     which can conflict with char $ac_func (); below.
16836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16837     <limits.h> exists even on freestanding compilers.  */
16838 #ifdef __STDC__
16839 # include <limits.h>
16840 #else
16841 # include <assert.h>
16842 #endif
16843 /* Override any gcc2 internal prototype to avoid an error.  */
16844 #ifdef __cplusplus
16845 extern "C"
16846 {
16847 #endif
16848 /* We use char because int might match the return type of a gcc2
16849    builtin and then its argument prototype would still apply.  */
16850 char $ac_func ();
16851 /* The GNU C library defines this for functions which it implements
16852     to always fail with ENOSYS.  Some functions are actually named
16853     something starting with __ and the normal name is an alias.  */
16854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16855 choke me
16856 #else
16857 char (*f) () = $ac_func;
16858 #endif
16859 #ifdef __cplusplus
16860 }
16861 #endif
16862
16863 int
16864 main ()
16865 {
16866 return f != $ac_func;
16867   ;
16868   return 0;
16869 }
16870 _ACEOF
16871 rm -f conftest.$ac_objext conftest$ac_exeext
16872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16873   (eval $ac_link) 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); } &&
16877          { ac_try='test -s conftest$ac_exeext'
16878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879   (eval $ac_try) 2>&5
16880   ac_status=$?
16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882   (exit $ac_status); }; }; then
16883   eval "$as_ac_var=yes"
16884 else
16885   echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16887
16888 eval "$as_ac_var=no"
16889 fi
16890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16891 fi
16892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16893 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16894 if test `eval echo '${'$as_ac_var'}'` = yes; then
16895   cat >>confdefs.h <<_ACEOF
16896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16897 _ACEOF
16898  cat >>confdefs.h <<\_ACEOF
16899 #define HAVE_INET_NTOP 1
16900 _ACEOF
16901
16902 fi
16903 done
16904
16905
16906 for ac_func in gethostbyname2
16907 do
16908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16909 echo "$as_me:$LINENO: checking for $ac_func" >&5
16910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16911 if eval "test \"\${$as_ac_var+set}\" = set"; then
16912   echo $ECHO_N "(cached) $ECHO_C" >&6
16913 else
16914   cat >conftest.$ac_ext <<_ACEOF
16915 #line $LINENO "configure"
16916 /* confdefs.h.  */
16917 _ACEOF
16918 cat confdefs.h >>conftest.$ac_ext
16919 cat >>conftest.$ac_ext <<_ACEOF
16920 /* end confdefs.h.  */
16921 /* System header to define __stub macros and hopefully few prototypes,
16922     which can conflict with char $ac_func (); below.
16923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16924     <limits.h> exists even on freestanding compilers.  */
16925 #ifdef __STDC__
16926 # include <limits.h>
16927 #else
16928 # include <assert.h>
16929 #endif
16930 /* Override any gcc2 internal prototype to avoid an error.  */
16931 #ifdef __cplusplus
16932 extern "C"
16933 {
16934 #endif
16935 /* We use char because int might match the return type of a gcc2
16936    builtin and then its argument prototype would still apply.  */
16937 char $ac_func ();
16938 /* The GNU C library defines this for functions which it implements
16939     to always fail with ENOSYS.  Some functions are actually named
16940     something starting with __ and the normal name is an alias.  */
16941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16942 choke me
16943 #else
16944 char (*f) () = $ac_func;
16945 #endif
16946 #ifdef __cplusplus
16947 }
16948 #endif
16949
16950 int
16951 main ()
16952 {
16953 return f != $ac_func;
16954   ;
16955   return 0;
16956 }
16957 _ACEOF
16958 rm -f conftest.$ac_objext conftest$ac_exeext
16959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16960   (eval $ac_link) 2>&5
16961   ac_status=$?
16962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); } &&
16964          { ac_try='test -s conftest$ac_exeext'
16965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966   (eval $ac_try) 2>&5
16967   ac_status=$?
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); }; }; then
16970   eval "$as_ac_var=yes"
16971 else
16972   echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16974
16975 eval "$as_ac_var=no"
16976 fi
16977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16978 fi
16979 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16980 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16981 if test `eval echo '${'$as_ac_var'}'` = yes; then
16982   cat >>confdefs.h <<_ACEOF
16983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16984 _ACEOF
16985  cat >>confdefs.h <<\_ACEOF
16986 #define HAVE_GETHOSTBYNAME2 1
16987 _ACEOF
16988
16989 fi
16990 done
16991
16992
16993 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16994 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16995 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16996   echo $ECHO_N "(cached) $ECHO_C" >&6
16997 else
16998   cat >conftest.$ac_ext <<_ACEOF
16999 #line $LINENO "configure"
17000 /* confdefs.h.  */
17001 _ACEOF
17002 cat confdefs.h >>conftest.$ac_ext
17003 cat >>conftest.$ac_ext <<_ACEOF
17004 /* end confdefs.h.  */
17005 #include <sys/socket.h>
17006 int
17007 main ()
17008 {
17009 struct sockaddr s; s.sa_len;
17010   ;
17011   return 0;
17012 }
17013 _ACEOF
17014 rm -f conftest.$ac_objext
17015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17016   (eval $ac_compile) 2>&5
17017   ac_status=$?
17018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019   (exit $ac_status); } &&
17020          { ac_try='test -s conftest.$ac_objext'
17021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17022   (eval $ac_try) 2>&5
17023   ac_status=$?
17024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025   (exit $ac_status); }; }; then
17026   ac_cv_struct_sockaddr_sa_len=yes
17027 else
17028   echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.$ac_ext >&5
17030
17031 ac_cv_struct_sockaddr_sa_len=no
17032 fi
17033 rm -f conftest.$ac_objext conftest.$ac_ext
17034 fi
17035 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
17036 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
17037
17038  if test $ac_cv_struct_sockaddr_sa_len = yes; then
17039
17040 cat >>confdefs.h <<\_ACEOF
17041 #define HAVE_SA_LEN 1
17042 _ACEOF
17043
17044  fi
17045
17046
17047 echo "$as_me:$LINENO: checking for IPv6 support" >&5
17048 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
17049 if test "${ac_cv_ipv6_support+set}" = set; then
17050   echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052   cat >conftest.$ac_ext <<_ACEOF
17053 #line $LINENO "configure"
17054 /* confdefs.h.  */
17055 _ACEOF
17056 cat confdefs.h >>conftest.$ac_ext
17057 cat >>conftest.$ac_ext <<_ACEOF
17058 /* end confdefs.h.  */
17059  #include <sys/types.h>
17060 #include <sys/socket.h>
17061 #include <netinet/in.h>
17062 int
17063 main ()
17064 {
17065 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
17066  0;
17067   ;
17068   return 0;
17069 }
17070 _ACEOF
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17073   (eval $ac_link) 2>&5
17074   ac_status=$?
17075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076   (exit $ac_status); } &&
17077          { ac_try='test -s conftest$ac_exeext'
17078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079   (eval $ac_try) 2>&5
17080   ac_status=$?
17081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082   (exit $ac_status); }; }; then
17083   ac_cv_ipv6_support=yes
17084 else
17085   echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17087
17088 ac_cv_ipv6_support=no
17089 fi
17090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17091 fi
17092 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
17093 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
17094
17095 if test "$ac_cv_ipv6_support" = yes; then
17096
17097 cat >>confdefs.h <<\_ACEOF
17098 #define HAVE_IPV6 1
17099 _ACEOF
17100
17101 fi
17102
17103
17104
17105
17106 for ac_func in strftime
17107 do
17108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17109 echo "$as_me:$LINENO: checking for $ac_func" >&5
17110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17111 if eval "test \"\${$as_ac_var+set}\" = set"; then
17112   echo $ECHO_N "(cached) $ECHO_C" >&6
17113 else
17114   cat >conftest.$ac_ext <<_ACEOF
17115 #line $LINENO "configure"
17116 /* confdefs.h.  */
17117 _ACEOF
17118 cat confdefs.h >>conftest.$ac_ext
17119 cat >>conftest.$ac_ext <<_ACEOF
17120 /* end confdefs.h.  */
17121 /* System header to define __stub macros and hopefully few prototypes,
17122     which can conflict with char $ac_func (); below.
17123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17124     <limits.h> exists even on freestanding compilers.  */
17125 #ifdef __STDC__
17126 # include <limits.h>
17127 #else
17128 # include <assert.h>
17129 #endif
17130 /* Override any gcc2 internal prototype to avoid an error.  */
17131 #ifdef __cplusplus
17132 extern "C"
17133 {
17134 #endif
17135 /* We use char because int might match the return type of a gcc2
17136    builtin and then its argument prototype would still apply.  */
17137 char $ac_func ();
17138 /* The GNU C library defines this for functions which it implements
17139     to always fail with ENOSYS.  Some functions are actually named
17140     something starting with __ and the normal name is an alias.  */
17141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17142 choke me
17143 #else
17144 char (*f) () = $ac_func;
17145 #endif
17146 #ifdef __cplusplus
17147 }
17148 #endif
17149
17150 int
17151 main ()
17152 {
17153 return f != $ac_func;
17154   ;
17155   return 0;
17156 }
17157 _ACEOF
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17160   (eval $ac_link) 2>&5
17161   ac_status=$?
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); } &&
17164          { ac_try='test -s conftest$ac_exeext'
17165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17166   (eval $ac_try) 2>&5
17167   ac_status=$?
17168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169   (exit $ac_status); }; }; then
17170   eval "$as_ac_var=yes"
17171 else
17172   echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17174
17175 eval "$as_ac_var=no"
17176 fi
17177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17178 fi
17179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17181 if test `eval echo '${'$as_ac_var'}'` = yes; then
17182   cat >>confdefs.h <<_ACEOF
17183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17184 _ACEOF
17185
17186 else
17187   # strftime is in -lintl on SCO UNIX.
17188 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17189 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17190 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17191   echo $ECHO_N "(cached) $ECHO_C" >&6
17192 else
17193   ac_check_lib_save_LIBS=$LIBS
17194 LIBS="-lintl  $LIBS"
17195 cat >conftest.$ac_ext <<_ACEOF
17196 #line $LINENO "configure"
17197 /* confdefs.h.  */
17198 _ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
17201 /* end confdefs.h.  */
17202
17203 /* Override any gcc2 internal prototype to avoid an error.  */
17204 #ifdef __cplusplus
17205 extern "C"
17206 #endif
17207 /* We use char because int might match the return type of a gcc2
17208    builtin and then its argument prototype would still apply.  */
17209 char strftime ();
17210 int
17211 main ()
17212 {
17213 strftime ();
17214   ;
17215   return 0;
17216 }
17217 _ACEOF
17218 rm -f conftest.$ac_objext conftest$ac_exeext
17219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17220   (eval $ac_link) 2>&5
17221   ac_status=$?
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); } &&
17224          { ac_try='test -s conftest$ac_exeext'
17225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226   (eval $ac_try) 2>&5
17227   ac_status=$?
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); }; }; then
17230   ac_cv_lib_intl_strftime=yes
17231 else
17232   echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17234
17235 ac_cv_lib_intl_strftime=no
17236 fi
17237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17238 LIBS=$ac_check_lib_save_LIBS
17239 fi
17240 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17241 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17242 if test $ac_cv_lib_intl_strftime = yes; then
17243   cat >>confdefs.h <<\_ACEOF
17244 #define HAVE_STRFTIME 1
17245 _ACEOF
17246
17247 LIBS="-lintl $LIBS"
17248 fi
17249
17250 fi
17251 done
17252
17253
17254 for ac_func in vprintf
17255 do
17256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17257 echo "$as_me:$LINENO: checking for $ac_func" >&5
17258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17259 if eval "test \"\${$as_ac_var+set}\" = set"; then
17260   echo $ECHO_N "(cached) $ECHO_C" >&6
17261 else
17262   cat >conftest.$ac_ext <<_ACEOF
17263 #line $LINENO "configure"
17264 /* confdefs.h.  */
17265 _ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h.  */
17269 /* System header to define __stub macros and hopefully few prototypes,
17270     which can conflict with char $ac_func (); below.
17271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17272     <limits.h> exists even on freestanding compilers.  */
17273 #ifdef __STDC__
17274 # include <limits.h>
17275 #else
17276 # include <assert.h>
17277 #endif
17278 /* Override any gcc2 internal prototype to avoid an error.  */
17279 #ifdef __cplusplus
17280 extern "C"
17281 {
17282 #endif
17283 /* We use char because int might match the return type of a gcc2
17284    builtin and then its argument prototype would still apply.  */
17285 char $ac_func ();
17286 /* The GNU C library defines this for functions which it implements
17287     to always fail with ENOSYS.  Some functions are actually named
17288     something starting with __ and the normal name is an alias.  */
17289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17290 choke me
17291 #else
17292 char (*f) () = $ac_func;
17293 #endif
17294 #ifdef __cplusplus
17295 }
17296 #endif
17297
17298 int
17299 main ()
17300 {
17301 return f != $ac_func;
17302   ;
17303   return 0;
17304 }
17305 _ACEOF
17306 rm -f conftest.$ac_objext conftest$ac_exeext
17307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17308   (eval $ac_link) 2>&5
17309   ac_status=$?
17310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311   (exit $ac_status); } &&
17312          { ac_try='test -s conftest$ac_exeext'
17313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17314   (eval $ac_try) 2>&5
17315   ac_status=$?
17316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317   (exit $ac_status); }; }; then
17318   eval "$as_ac_var=yes"
17319 else
17320   echo "$as_me: failed program was:" >&5
17321 sed 's/^/| /' conftest.$ac_ext >&5
17322
17323 eval "$as_ac_var=no"
17324 fi
17325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17326 fi
17327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17329 if test `eval echo '${'$as_ac_var'}'` = yes; then
17330   cat >>confdefs.h <<_ACEOF
17331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17332 _ACEOF
17333
17334 echo "$as_me:$LINENO: checking for _doprnt" >&5
17335 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17336 if test "${ac_cv_func__doprnt+set}" = set; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339   cat >conftest.$ac_ext <<_ACEOF
17340 #line $LINENO "configure"
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 /* System header to define __stub macros and hopefully few prototypes,
17347     which can conflict with char _doprnt (); below.
17348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17349     <limits.h> exists even on freestanding compilers.  */
17350 #ifdef __STDC__
17351 # include <limits.h>
17352 #else
17353 # include <assert.h>
17354 #endif
17355 /* Override any gcc2 internal prototype to avoid an error.  */
17356 #ifdef __cplusplus
17357 extern "C"
17358 {
17359 #endif
17360 /* We use char because int might match the return type of a gcc2
17361    builtin and then its argument prototype would still apply.  */
17362 char _doprnt ();
17363 /* The GNU C library defines this for functions which it implements
17364     to always fail with ENOSYS.  Some functions are actually named
17365     something starting with __ and the normal name is an alias.  */
17366 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17367 choke me
17368 #else
17369 char (*f) () = _doprnt;
17370 #endif
17371 #ifdef __cplusplus
17372 }
17373 #endif
17374
17375 int
17376 main ()
17377 {
17378 return f != _doprnt;
17379   ;
17380   return 0;
17381 }
17382 _ACEOF
17383 rm -f conftest.$ac_objext conftest$ac_exeext
17384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17385   (eval $ac_link) 2>&5
17386   ac_status=$?
17387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388   (exit $ac_status); } &&
17389          { ac_try='test -s conftest$ac_exeext'
17390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391   (eval $ac_try) 2>&5
17392   ac_status=$?
17393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394   (exit $ac_status); }; }; then
17395   ac_cv_func__doprnt=yes
17396 else
17397   echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17399
17400 ac_cv_func__doprnt=no
17401 fi
17402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17403 fi
17404 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17405 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17406 if test $ac_cv_func__doprnt = yes; then
17407
17408 cat >>confdefs.h <<\_ACEOF
17409 #define HAVE_DOPRNT 1
17410 _ACEOF
17411
17412 fi
17413
17414 fi
17415 done
17416
17417
17418 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17419 # for constant arguments.  Useless!
17420 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17421 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17422 if test "${ac_cv_working_alloca_h+set}" = set; then
17423   echo $ECHO_N "(cached) $ECHO_C" >&6
17424 else
17425   cat >conftest.$ac_ext <<_ACEOF
17426 #line $LINENO "configure"
17427 /* confdefs.h.  */
17428 _ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h.  */
17432 #include <alloca.h>
17433 int
17434 main ()
17435 {
17436 char *p = (char *) alloca (2 * sizeof (int));
17437   ;
17438   return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17443   (eval $ac_link) 2>&5
17444   ac_status=$?
17445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446   (exit $ac_status); } &&
17447          { ac_try='test -s conftest$ac_exeext'
17448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17449   (eval $ac_try) 2>&5
17450   ac_status=$?
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); }; }; then
17453   ac_cv_working_alloca_h=yes
17454 else
17455   echo "$as_me: failed program was:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17457
17458 ac_cv_working_alloca_h=no
17459 fi
17460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17461 fi
17462 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17463 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17464 if test $ac_cv_working_alloca_h = yes; then
17465
17466 cat >>confdefs.h <<\_ACEOF
17467 #define HAVE_ALLOCA_H 1
17468 _ACEOF
17469
17470 fi
17471
17472 echo "$as_me:$LINENO: checking for alloca" >&5
17473 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17474 if test "${ac_cv_func_alloca_works+set}" = set; then
17475   echo $ECHO_N "(cached) $ECHO_C" >&6
17476 else
17477   cat >conftest.$ac_ext <<_ACEOF
17478 #line $LINENO "configure"
17479 /* confdefs.h.  */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h.  */
17484 #ifdef __GNUC__
17485 # define alloca __builtin_alloca
17486 #else
17487 # ifdef _MSC_VER
17488 #  include <malloc.h>
17489 #  define alloca _alloca
17490 # else
17491 #  if HAVE_ALLOCA_H
17492 #   include <alloca.h>
17493 #  else
17494 #   ifdef _AIX
17495  #pragma alloca
17496 #   else
17497 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17498 char *alloca ();
17499 #    endif
17500 #   endif
17501 #  endif
17502 # endif
17503 #endif
17504
17505 int
17506 main ()
17507 {
17508 char *p = (char *) alloca (1);
17509   ;
17510   return 0;
17511 }
17512 _ACEOF
17513 rm -f conftest.$ac_objext conftest$ac_exeext
17514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17515   (eval $ac_link) 2>&5
17516   ac_status=$?
17517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518   (exit $ac_status); } &&
17519          { ac_try='test -s conftest$ac_exeext'
17520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17521   (eval $ac_try) 2>&5
17522   ac_status=$?
17523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); }; }; then
17525   ac_cv_func_alloca_works=yes
17526 else
17527   echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17529
17530 ac_cv_func_alloca_works=no
17531 fi
17532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17533 fi
17534 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17535 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17536
17537 if test $ac_cv_func_alloca_works = yes; then
17538
17539 cat >>confdefs.h <<\_ACEOF
17540 #define HAVE_ALLOCA 1
17541 _ACEOF
17542
17543 else
17544   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17545 # that cause trouble.  Some versions do not even contain alloca or
17546 # contain a buggy version.  If you still want to use their alloca,
17547 # use ar to extract alloca.o from them instead of compiling alloca.c.
17548
17549 ALLOCA=alloca.$ac_objext
17550
17551 cat >>confdefs.h <<\_ACEOF
17552 #define C_ALLOCA 1
17553 _ACEOF
17554
17555
17556 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17557 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17558 if test "${ac_cv_os_cray+set}" = set; then
17559   echo $ECHO_N "(cached) $ECHO_C" >&6
17560 else
17561   cat >conftest.$ac_ext <<_ACEOF
17562 #line $LINENO "configure"
17563 /* confdefs.h.  */
17564 _ACEOF
17565 cat confdefs.h >>conftest.$ac_ext
17566 cat >>conftest.$ac_ext <<_ACEOF
17567 /* end confdefs.h.  */
17568 #if defined(CRAY) && ! defined(CRAY2)
17569 webecray
17570 #else
17571 wenotbecray
17572 #endif
17573
17574 _ACEOF
17575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17576   $EGREP "webecray" >/dev/null 2>&1; then
17577   ac_cv_os_cray=yes
17578 else
17579   ac_cv_os_cray=no
17580 fi
17581 rm -f conftest*
17582
17583 fi
17584 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17585 echo "${ECHO_T}$ac_cv_os_cray" >&6
17586 if test $ac_cv_os_cray = yes; then
17587   for ac_func in _getb67 GETB67 getb67; do
17588     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17589 echo "$as_me:$LINENO: checking for $ac_func" >&5
17590 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17591 if eval "test \"\${$as_ac_var+set}\" = set"; then
17592   echo $ECHO_N "(cached) $ECHO_C" >&6
17593 else
17594   cat >conftest.$ac_ext <<_ACEOF
17595 #line $LINENO "configure"
17596 /* confdefs.h.  */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h.  */
17601 /* System header to define __stub macros and hopefully few prototypes,
17602     which can conflict with char $ac_func (); below.
17603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17604     <limits.h> exists even on freestanding compilers.  */
17605 #ifdef __STDC__
17606 # include <limits.h>
17607 #else
17608 # include <assert.h>
17609 #endif
17610 /* Override any gcc2 internal prototype to avoid an error.  */
17611 #ifdef __cplusplus
17612 extern "C"
17613 {
17614 #endif
17615 /* We use char because int might match the return type of a gcc2
17616    builtin and then its argument prototype would still apply.  */
17617 char $ac_func ();
17618 /* The GNU C library defines this for functions which it implements
17619     to always fail with ENOSYS.  Some functions are actually named
17620     something starting with __ and the normal name is an alias.  */
17621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17622 choke me
17623 #else
17624 char (*f) () = $ac_func;
17625 #endif
17626 #ifdef __cplusplus
17627 }
17628 #endif
17629
17630 int
17631 main ()
17632 {
17633 return f != $ac_func;
17634   ;
17635   return 0;
17636 }
17637 _ACEOF
17638 rm -f conftest.$ac_objext conftest$ac_exeext
17639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17640   (eval $ac_link) 2>&5
17641   ac_status=$?
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); } &&
17644          { ac_try='test -s conftest$ac_exeext'
17645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646   (eval $ac_try) 2>&5
17647   ac_status=$?
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); }; }; then
17650   eval "$as_ac_var=yes"
17651 else
17652   echo "$as_me: failed program was:" >&5
17653 sed 's/^/| /' conftest.$ac_ext >&5
17654
17655 eval "$as_ac_var=no"
17656 fi
17657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17658 fi
17659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17661 if test `eval echo '${'$as_ac_var'}'` = yes; then
17662
17663 cat >>confdefs.h <<_ACEOF
17664 #define CRAY_STACKSEG_END $ac_func
17665 _ACEOF
17666
17667     break
17668 fi
17669
17670   done
17671 fi
17672
17673 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17674 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17675 if test "${ac_cv_c_stack_direction+set}" = set; then
17676   echo $ECHO_N "(cached) $ECHO_C" >&6
17677 else
17678   if test "$cross_compiling" = yes; then
17679   ac_cv_c_stack_direction=0
17680 else
17681   cat >conftest.$ac_ext <<_ACEOF
17682 #line $LINENO "configure"
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688 int
17689 find_stack_direction ()
17690 {
17691   static char *addr = 0;
17692   auto char dummy;
17693   if (addr == 0)
17694     {
17695       addr = &dummy;
17696       return find_stack_direction ();
17697     }
17698   else
17699     return (&dummy > addr) ? 1 : -1;
17700 }
17701
17702 int
17703 main ()
17704 {
17705   exit (find_stack_direction () < 0);
17706 }
17707 _ACEOF
17708 rm -f conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710   (eval $ac_link) 2>&5
17711   ac_status=$?
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715   (eval $ac_try) 2>&5
17716   ac_status=$?
17717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718   (exit $ac_status); }; }; then
17719   ac_cv_c_stack_direction=1
17720 else
17721   echo "$as_me: program exited with status $ac_status" >&5
17722 echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17724
17725 ( exit $ac_status )
17726 ac_cv_c_stack_direction=-1
17727 fi
17728 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17729 fi
17730 fi
17731 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17732 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17733
17734 cat >>confdefs.h <<_ACEOF
17735 #define STACK_DIRECTION $ac_cv_c_stack_direction
17736 _ACEOF
17737
17738
17739 fi
17740
17741 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17742 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17743 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17744 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17745   echo $ECHO_N "(cached) $ECHO_C" >&6
17746 else
17747   ac_check_lib_save_LIBS=$LIBS
17748 LIBS="-lsun  $LIBS"
17749 cat >conftest.$ac_ext <<_ACEOF
17750 #line $LINENO "configure"
17751 /* confdefs.h.  */
17752 _ACEOF
17753 cat confdefs.h >>conftest.$ac_ext
17754 cat >>conftest.$ac_ext <<_ACEOF
17755 /* end confdefs.h.  */
17756
17757 /* Override any gcc2 internal prototype to avoid an error.  */
17758 #ifdef __cplusplus
17759 extern "C"
17760 #endif
17761 /* We use char because int might match the return type of a gcc2
17762    builtin and then its argument prototype would still apply.  */
17763 char getmntent ();
17764 int
17765 main ()
17766 {
17767 getmntent ();
17768   ;
17769   return 0;
17770 }
17771 _ACEOF
17772 rm -f conftest.$ac_objext conftest$ac_exeext
17773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17774   (eval $ac_link) 2>&5
17775   ac_status=$?
17776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777   (exit $ac_status); } &&
17778          { ac_try='test -s conftest$ac_exeext'
17779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780   (eval $ac_try) 2>&5
17781   ac_status=$?
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); }; }; then
17784   ac_cv_lib_sun_getmntent=yes
17785 else
17786   echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17788
17789 ac_cv_lib_sun_getmntent=no
17790 fi
17791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17792 LIBS=$ac_check_lib_save_LIBS
17793 fi
17794 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17795 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17796 if test $ac_cv_lib_sun_getmntent = yes; then
17797   LIBS="-lsun $LIBS"
17798 else
17799   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17800 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17801 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17802   echo $ECHO_N "(cached) $ECHO_C" >&6
17803 else
17804   ac_check_lib_save_LIBS=$LIBS
17805 LIBS="-lseq  $LIBS"
17806 cat >conftest.$ac_ext <<_ACEOF
17807 #line $LINENO "configure"
17808 /* confdefs.h.  */
17809 _ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h.  */
17813
17814 /* Override any gcc2 internal prototype to avoid an error.  */
17815 #ifdef __cplusplus
17816 extern "C"
17817 #endif
17818 /* We use char because int might match the return type of a gcc2
17819    builtin and then its argument prototype would still apply.  */
17820 char getmntent ();
17821 int
17822 main ()
17823 {
17824 getmntent ();
17825   ;
17826   return 0;
17827 }
17828 _ACEOF
17829 rm -f conftest.$ac_objext conftest$ac_exeext
17830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17831   (eval $ac_link) 2>&5
17832   ac_status=$?
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); } &&
17835          { ac_try='test -s conftest$ac_exeext'
17836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837   (eval $ac_try) 2>&5
17838   ac_status=$?
17839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); }; }; then
17841   ac_cv_lib_seq_getmntent=yes
17842 else
17843   echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846 ac_cv_lib_seq_getmntent=no
17847 fi
17848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17849 LIBS=$ac_check_lib_save_LIBS
17850 fi
17851 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17852 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17853 if test $ac_cv_lib_seq_getmntent = yes; then
17854   LIBS="-lseq $LIBS"
17855 else
17856   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17857 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17858 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17859   echo $ECHO_N "(cached) $ECHO_C" >&6
17860 else
17861   ac_check_lib_save_LIBS=$LIBS
17862 LIBS="-lgen  $LIBS"
17863 cat >conftest.$ac_ext <<_ACEOF
17864 #line $LINENO "configure"
17865 /* confdefs.h.  */
17866 _ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h.  */
17870
17871 /* Override any gcc2 internal prototype to avoid an error.  */
17872 #ifdef __cplusplus
17873 extern "C"
17874 #endif
17875 /* We use char because int might match the return type of a gcc2
17876    builtin and then its argument prototype would still apply.  */
17877 char getmntent ();
17878 int
17879 main ()
17880 {
17881 getmntent ();
17882   ;
17883   return 0;
17884 }
17885 _ACEOF
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888   (eval $ac_link) 2>&5
17889   ac_status=$?
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); } &&
17892          { ac_try='test -s conftest$ac_exeext'
17893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894   (eval $ac_try) 2>&5
17895   ac_status=$?
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); }; }; then
17898   ac_cv_lib_gen_getmntent=yes
17899 else
17900   echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17902
17903 ac_cv_lib_gen_getmntent=no
17904 fi
17905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17906 LIBS=$ac_check_lib_save_LIBS
17907 fi
17908 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17909 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17910 if test $ac_cv_lib_gen_getmntent = yes; then
17911   LIBS="-lgen $LIBS"
17912 fi
17913
17914 fi
17915
17916 fi
17917
17918
17919 for ac_func in getmntent
17920 do
17921 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17922 echo "$as_me:$LINENO: checking for $ac_func" >&5
17923 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17924 if eval "test \"\${$as_ac_var+set}\" = set"; then
17925   echo $ECHO_N "(cached) $ECHO_C" >&6
17926 else
17927   cat >conftest.$ac_ext <<_ACEOF
17928 #line $LINENO "configure"
17929 /* confdefs.h.  */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h.  */
17934 /* System header to define __stub macros and hopefully few prototypes,
17935     which can conflict with char $ac_func (); below.
17936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17937     <limits.h> exists even on freestanding compilers.  */
17938 #ifdef __STDC__
17939 # include <limits.h>
17940 #else
17941 # include <assert.h>
17942 #endif
17943 /* Override any gcc2 internal prototype to avoid an error.  */
17944 #ifdef __cplusplus
17945 extern "C"
17946 {
17947 #endif
17948 /* We use char because int might match the return type of a gcc2
17949    builtin and then its argument prototype would still apply.  */
17950 char $ac_func ();
17951 /* The GNU C library defines this for functions which it implements
17952     to always fail with ENOSYS.  Some functions are actually named
17953     something starting with __ and the normal name is an alias.  */
17954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17955 choke me
17956 #else
17957 char (*f) () = $ac_func;
17958 #endif
17959 #ifdef __cplusplus
17960 }
17961 #endif
17962
17963 int
17964 main ()
17965 {
17966 return f != $ac_func;
17967   ;
17968   return 0;
17969 }
17970 _ACEOF
17971 rm -f conftest.$ac_objext conftest$ac_exeext
17972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17973   (eval $ac_link) 2>&5
17974   ac_status=$?
17975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976   (exit $ac_status); } &&
17977          { ac_try='test -s conftest$ac_exeext'
17978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17979   (eval $ac_try) 2>&5
17980   ac_status=$?
17981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982   (exit $ac_status); }; }; then
17983   eval "$as_ac_var=yes"
17984 else
17985   echo "$as_me: failed program was:" >&5
17986 sed 's/^/| /' conftest.$ac_ext >&5
17987
17988 eval "$as_ac_var=no"
17989 fi
17990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17991 fi
17992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17994 if test `eval echo '${'$as_ac_var'}'` = yes; then
17995   cat >>confdefs.h <<_ACEOF
17996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17997 _ACEOF
17998
17999 fi
18000 done
18001
18002
18003 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
18004 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
18005 if test "${ac_cv_func_closedir_void+set}" = set; then
18006   echo $ECHO_N "(cached) $ECHO_C" >&6
18007 else
18008   if test "$cross_compiling" = yes; then
18009   ac_cv_func_closedir_void=yes
18010 else
18011   cat >conftest.$ac_ext <<_ACEOF
18012 #line $LINENO "configure"
18013 /* confdefs.h.  */
18014 _ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h.  */
18018 $ac_includes_default
18019 #include <$ac_header_dirent>
18020 #ifndef __cplusplus
18021 int closedir ();
18022 #endif
18023
18024 int
18025 main ()
18026 {
18027 exit (closedir (opendir (".")) != 0);
18028   ;
18029   return 0;
18030 }
18031 _ACEOF
18032 rm -f conftest$ac_exeext
18033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18034   (eval $ac_link) 2>&5
18035   ac_status=$?
18036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039   (eval $ac_try) 2>&5
18040   ac_status=$?
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); }; }; then
18043   ac_cv_func_closedir_void=no
18044 else
18045   echo "$as_me: program exited with status $ac_status" >&5
18046 echo "$as_me: failed program was:" >&5
18047 sed 's/^/| /' conftest.$ac_ext >&5
18048
18049 ( exit $ac_status )
18050 ac_cv_func_closedir_void=yes
18051 fi
18052 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18053 fi
18054 fi
18055 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
18056 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
18057 if test $ac_cv_func_closedir_void = yes; then
18058
18059 cat >>confdefs.h <<\_ACEOF
18060 #define CLOSEDIR_VOID 1
18061 _ACEOF
18062
18063 fi
18064
18065 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18066 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18067 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18068   echo $ECHO_N "(cached) $ECHO_C" >&6
18069 else
18070   if test "$cross_compiling" = yes; then
18071   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18072 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18073    { (exit 1); exit 1; }; }
18074 else
18075   cat >conftest.$ac_ext <<_ACEOF
18076 #line $LINENO "configure"
18077 /* confdefs.h.  */
18078 _ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h.  */
18082 #if HAVE_UNISTD_H
18083 # include <unistd.h>
18084 #endif
18085
18086 int
18087 main ()
18088 {
18089 /* If this system has a BSD-style setpgrp which takes arguments,
18090   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18091   exit successfully. */
18092   exit (setpgrp (1,1) == -1 ? 0 : 1);
18093   ;
18094   return 0;
18095 }
18096 _ACEOF
18097 rm -f conftest$ac_exeext
18098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18099   (eval $ac_link) 2>&5
18100   ac_status=$?
18101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104   (eval $ac_try) 2>&5
18105   ac_status=$?
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); }; }; then
18108   ac_cv_func_setpgrp_void=no
18109 else
18110   echo "$as_me: program exited with status $ac_status" >&5
18111 echo "$as_me: failed program was:" >&5
18112 sed 's/^/| /' conftest.$ac_ext >&5
18113
18114 ( exit $ac_status )
18115 ac_cv_func_setpgrp_void=yes
18116 fi
18117 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18118 fi
18119 fi
18120 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18121 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18122 if test $ac_cv_func_setpgrp_void = yes; then
18123
18124 cat >>confdefs.h <<\_ACEOF
18125 #define SETPGRP_VOID 1
18126 _ACEOF
18127
18128 fi
18129                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
18130 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
18131 if test "${ac_cv_func_fnmatch_works+set}" = set; then
18132   echo $ECHO_N "(cached) $ECHO_C" >&6
18133 else
18134   # Some versions of Solaris, SCO, and the GNU C Library
18135    # have a broken or incompatible fnmatch.
18136    # So we run a test program.  If we are cross-compiling, take no chance.
18137    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
18138    if test "$cross_compiling" = yes; then
18139   ac_cv_func_fnmatch_works=cross
18140 else
18141   cat >conftest.$ac_ext <<_ACEOF
18142 #line $LINENO "configure"
18143 /* confdefs.h.  */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h.  */
18148 #include <fnmatch.h>
18149 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
18150 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
18151
18152 int
18153 main ()
18154 {
18155 exit
18156            (!(y ("a*", "abc", 0)
18157               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
18158               && y ("a\\\\bc", "abc", 0)
18159               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
18160               && y ("*x", ".x", 0)
18161               && n ("*x", ".x", FNM_PERIOD)
18162               && 1));
18163   ;
18164   return 0;
18165 }
18166 _ACEOF
18167 rm -f conftest$ac_exeext
18168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18169   (eval $ac_link) 2>&5
18170   ac_status=$?
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174   (eval $ac_try) 2>&5
18175   ac_status=$?
18176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177   (exit $ac_status); }; }; then
18178   ac_cv_func_fnmatch_works=yes
18179 else
18180   echo "$as_me: program exited with status $ac_status" >&5
18181 echo "$as_me: failed program was:" >&5
18182 sed 's/^/| /' conftest.$ac_ext >&5
18183
18184 ( exit $ac_status )
18185 ac_cv_func_fnmatch_works=no
18186 fi
18187 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18188 fi
18189 fi
18190 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
18191 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
18192 if test $ac_cv_func_fnmatch_works = yes; then
18193
18194 cat >>confdefs.h <<\_ACEOF
18195 #define HAVE_FNMATCH 1
18196 _ACEOF
18197
18198 fi
18199
18200
18201
18202
18203
18204 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18205 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18206 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18207   echo $ECHO_N "(cached) $ECHO_C" >&6
18208 else
18209   ac_check_lib_save_LIBS=$LIBS
18210 LIBS="-lxpg4  $LIBS"
18211 cat >conftest.$ac_ext <<_ACEOF
18212 #line $LINENO "configure"
18213 /* confdefs.h.  */
18214 _ACEOF
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h.  */
18218
18219 /* Override any gcc2 internal prototype to avoid an error.  */
18220 #ifdef __cplusplus
18221 extern "C"
18222 #endif
18223 /* We use char because int might match the return type of a gcc2
18224    builtin and then its argument prototype would still apply.  */
18225 char setlocale ();
18226 int
18227 main ()
18228 {
18229 setlocale ();
18230   ;
18231   return 0;
18232 }
18233 _ACEOF
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18236   (eval $ac_link) 2>&5
18237   ac_status=$?
18238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239   (exit $ac_status); } &&
18240          { ac_try='test -s conftest$ac_exeext'
18241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242   (eval $ac_try) 2>&5
18243   ac_status=$?
18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); }; }; then
18246   ac_cv_lib_xpg4_setlocale=yes
18247 else
18248   echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18250
18251 ac_cv_lib_xpg4_setlocale=no
18252 fi
18253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18254 LIBS=$ac_check_lib_save_LIBS
18255 fi
18256 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18257 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18258 if test $ac_cv_lib_xpg4_setlocale = yes; then
18259   LIBS="$LIBS -lxpg4"
18260 fi
18261
18262
18263
18264
18265 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18266 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18267 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18268   echo $ECHO_N "(cached) $ECHO_C" >&6
18269 else
18270   ac_check_lib_save_LIBS=$LIBS
18271 LIBS="-lsun  $LIBS"
18272 cat >conftest.$ac_ext <<_ACEOF
18273 #line $LINENO "configure"
18274 /* confdefs.h.  */
18275 _ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h.  */
18279
18280 /* Override any gcc2 internal prototype to avoid an error.  */
18281 #ifdef __cplusplus
18282 extern "C"
18283 #endif
18284 /* We use char because int might match the return type of a gcc2
18285    builtin and then its argument prototype would still apply.  */
18286 char getpwnam ();
18287 int
18288 main ()
18289 {
18290 getpwnam ();
18291   ;
18292   return 0;
18293 }
18294 _ACEOF
18295 rm -f conftest.$ac_objext conftest$ac_exeext
18296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18297   (eval $ac_link) 2>&5
18298   ac_status=$?
18299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300   (exit $ac_status); } &&
18301          { ac_try='test -s conftest$ac_exeext'
18302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303   (eval $ac_try) 2>&5
18304   ac_status=$?
18305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306   (exit $ac_status); }; }; then
18307   ac_cv_lib_sun_getpwnam=yes
18308 else
18309   echo "$as_me: failed program was:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18311
18312 ac_cv_lib_sun_getpwnam=no
18313 fi
18314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18315 LIBS=$ac_check_lib_save_LIBS
18316 fi
18317 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18318 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18319 if test $ac_cv_lib_sun_getpwnam = yes; then
18320   cat >>confdefs.h <<_ACEOF
18321 #define HAVE_LIBSUN 1
18322 _ACEOF
18323
18324   LIBS="-lsun $LIBS"
18325
18326 fi
18327
18328
18329
18330 for ac_header in zlib.h
18331 do
18332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18334   echo "$as_me:$LINENO: checking for $ac_header" >&5
18335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18337   echo $ECHO_N "(cached) $ECHO_C" >&6
18338 fi
18339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18341 else
18342   # Is the header compilable?
18343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18345 cat >conftest.$ac_ext <<_ACEOF
18346 #line $LINENO "configure"
18347 /* confdefs.h.  */
18348 _ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h.  */
18352 $ac_includes_default
18353 #include <$ac_header>
18354 _ACEOF
18355 rm -f conftest.$ac_objext
18356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18357   (eval $ac_compile) 2>&5
18358   ac_status=$?
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); } &&
18361          { ac_try='test -s conftest.$ac_objext'
18362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363   (eval $ac_try) 2>&5
18364   ac_status=$?
18365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366   (exit $ac_status); }; }; then
18367   ac_header_compiler=yes
18368 else
18369   echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18371
18372 ac_header_compiler=no
18373 fi
18374 rm -f conftest.$ac_objext conftest.$ac_ext
18375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18376 echo "${ECHO_T}$ac_header_compiler" >&6
18377
18378 # Is the header present?
18379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18381 cat >conftest.$ac_ext <<_ACEOF
18382 #line $LINENO "configure"
18383 /* confdefs.h.  */
18384 _ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h.  */
18388 #include <$ac_header>
18389 _ACEOF
18390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18392   ac_status=$?
18393   grep -v '^ *+' conftest.er1 >conftest.err
18394   rm -f conftest.er1
18395   cat conftest.err >&5
18396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397   (exit $ac_status); } >/dev/null; then
18398   if test -s conftest.err; then
18399     ac_cpp_err=$ac_c_preproc_warn_flag
18400   else
18401     ac_cpp_err=
18402   fi
18403 else
18404   ac_cpp_err=yes
18405 fi
18406 if test -z "$ac_cpp_err"; then
18407   ac_header_preproc=yes
18408 else
18409   echo "$as_me: failed program was:" >&5
18410 sed 's/^/| /' conftest.$ac_ext >&5
18411
18412   ac_header_preproc=no
18413 fi
18414 rm -f conftest.err conftest.$ac_ext
18415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18416 echo "${ECHO_T}$ac_header_preproc" >&6
18417
18418 # So?  What about this header?
18419 case $ac_header_compiler:$ac_header_preproc in
18420   yes:no )
18421     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18423     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18425     (
18426       cat <<\_ASBOX
18427 ## ------------------------------------ ##
18428 ## Report this to bug-autoconf@gnu.org. ##
18429 ## ------------------------------------ ##
18430 _ASBOX
18431     ) |
18432       sed "s/^/$as_me: WARNING:     /" >&2
18433     ;;
18434   no:yes )
18435     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18437     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18441     (
18442       cat <<\_ASBOX
18443 ## ------------------------------------ ##
18444 ## Report this to bug-autoconf@gnu.org. ##
18445 ## ------------------------------------ ##
18446 _ASBOX
18447     ) |
18448       sed "s/^/$as_me: WARNING:     /" >&2
18449     ;;
18450 esac
18451 echo "$as_me:$LINENO: checking for $ac_header" >&5
18452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18453 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18454   echo $ECHO_N "(cached) $ECHO_C" >&6
18455 else
18456   eval "$as_ac_Header=$ac_header_preproc"
18457 fi
18458 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18459 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18460
18461 fi
18462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18463   cat >>confdefs.h <<_ACEOF
18464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18465 _ACEOF
18466
18467 fi
18468
18469 done
18470
18471 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18472 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18473 if test "${ac_cv_lib_z_deflate+set}" = set; then
18474   echo $ECHO_N "(cached) $ECHO_C" >&6
18475 else
18476   ac_check_lib_save_LIBS=$LIBS
18477 LIBS="-lz  $LIBS"
18478 cat >conftest.$ac_ext <<_ACEOF
18479 #line $LINENO "configure"
18480 /* confdefs.h.  */
18481 _ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h.  */
18485
18486 /* Override any gcc2 internal prototype to avoid an error.  */
18487 #ifdef __cplusplus
18488 extern "C"
18489 #endif
18490 /* We use char because int might match the return type of a gcc2
18491    builtin and then its argument prototype would still apply.  */
18492 char deflate ();
18493 int
18494 main ()
18495 {
18496 deflate ();
18497   ;
18498   return 0;
18499 }
18500 _ACEOF
18501 rm -f conftest.$ac_objext conftest$ac_exeext
18502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18503   (eval $ac_link) 2>&5
18504   ac_status=$?
18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506   (exit $ac_status); } &&
18507          { ac_try='test -s conftest$ac_exeext'
18508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18509   (eval $ac_try) 2>&5
18510   ac_status=$?
18511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512   (exit $ac_status); }; }; then
18513   ac_cv_lib_z_deflate=yes
18514 else
18515   echo "$as_me: failed program was:" >&5
18516 sed 's/^/| /' conftest.$ac_ext >&5
18517
18518 ac_cv_lib_z_deflate=no
18519 fi
18520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18521 LIBS=$ac_check_lib_save_LIBS
18522 fi
18523 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18524 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18525 if test $ac_cv_lib_z_deflate = yes; then
18526   FDLIBS="-lz"
18527 fi
18528
18529 have_zlib=no
18530 if test x$FDLIBS = x-lz; then
18531   cat >>confdefs.h <<\_ACEOF
18532 #define HAVE_LIBZ 1
18533 _ACEOF
18534
18535   have_zlib=yes
18536 fi
18537
18538 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18539   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18540 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18541 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18542   echo $ECHO_N "(cached) $ECHO_C" >&6
18543 fi
18544 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18545 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18546 else
18547   # Is the header compilable?
18548 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18549 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18550 cat >conftest.$ac_ext <<_ACEOF
18551 #line $LINENO "configure"
18552 /* confdefs.h.  */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h.  */
18557 $ac_includes_default
18558 #include <sys/acl.h>
18559 _ACEOF
18560 rm -f conftest.$ac_objext
18561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18562   (eval $ac_compile) 2>&5
18563   ac_status=$?
18564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565   (exit $ac_status); } &&
18566          { ac_try='test -s conftest.$ac_objext'
18567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568   (eval $ac_try) 2>&5
18569   ac_status=$?
18570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571   (exit $ac_status); }; }; then
18572   ac_header_compiler=yes
18573 else
18574   echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18576
18577 ac_header_compiler=no
18578 fi
18579 rm -f conftest.$ac_objext conftest.$ac_ext
18580 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18581 echo "${ECHO_T}$ac_header_compiler" >&6
18582
18583 # Is the header present?
18584 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18585 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18586 cat >conftest.$ac_ext <<_ACEOF
18587 #line $LINENO "configure"
18588 /* confdefs.h.  */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h.  */
18593 #include <sys/acl.h>
18594 _ACEOF
18595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18596   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18597   ac_status=$?
18598   grep -v '^ *+' conftest.er1 >conftest.err
18599   rm -f conftest.er1
18600   cat conftest.err >&5
18601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602   (exit $ac_status); } >/dev/null; then
18603   if test -s conftest.err; then
18604     ac_cpp_err=$ac_c_preproc_warn_flag
18605   else
18606     ac_cpp_err=
18607   fi
18608 else
18609   ac_cpp_err=yes
18610 fi
18611 if test -z "$ac_cpp_err"; then
18612   ac_header_preproc=yes
18613 else
18614   echo "$as_me: failed program was:" >&5
18615 sed 's/^/| /' conftest.$ac_ext >&5
18616
18617   ac_header_preproc=no
18618 fi
18619 rm -f conftest.err conftest.$ac_ext
18620 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18621 echo "${ECHO_T}$ac_header_preproc" >&6
18622
18623 # So?  What about this header?
18624 case $ac_header_compiler:$ac_header_preproc in
18625   yes:no )
18626     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18627 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18628     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18629 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18630     (
18631       cat <<\_ASBOX
18632 ## ------------------------------------ ##
18633 ## Report this to bug-autoconf@gnu.org. ##
18634 ## ------------------------------------ ##
18635 _ASBOX
18636     ) |
18637       sed "s/^/$as_me: WARNING:     /" >&2
18638     ;;
18639   no:yes )
18640     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18641 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18642     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18643 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18644     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18645 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18646     (
18647       cat <<\_ASBOX
18648 ## ------------------------------------ ##
18649 ## Report this to bug-autoconf@gnu.org. ##
18650 ## ------------------------------------ ##
18651 _ASBOX
18652     ) |
18653       sed "s/^/$as_me: WARNING:     /" >&2
18654     ;;
18655 esac
18656 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18657 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18658 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18659   echo $ECHO_N "(cached) $ECHO_C" >&6
18660 else
18661   ac_cv_header_sys_acl_h=$ac_header_preproc
18662 fi
18663 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18664 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18665
18666 fi
18667
18668
18669 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18670 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18671 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18672   echo $ECHO_N "(cached) $ECHO_C" >&6
18673 else
18674   ac_check_lib_save_LIBS=$LIBS
18675 LIBS="-lacl  $LIBS"
18676 cat >conftest.$ac_ext <<_ACEOF
18677 #line $LINENO "configure"
18678 /* confdefs.h.  */
18679 _ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h.  */
18683
18684 /* Override any gcc2 internal prototype to avoid an error.  */
18685 #ifdef __cplusplus
18686 extern "C"
18687 #endif
18688 /* We use char because int might match the return type of a gcc2
18689    builtin and then its argument prototype would still apply.  */
18690 char acl_get_file ();
18691 int
18692 main ()
18693 {
18694 acl_get_file ();
18695   ;
18696   return 0;
18697 }
18698 _ACEOF
18699 rm -f conftest.$ac_objext conftest$ac_exeext
18700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18701   (eval $ac_link) 2>&5
18702   ac_status=$?
18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); } &&
18705          { ac_try='test -s conftest$ac_exeext'
18706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707   (eval $ac_try) 2>&5
18708   ac_status=$?
18709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710   (exit $ac_status); }; }; then
18711   ac_cv_lib_acl_acl_get_file=yes
18712 else
18713   echo "$as_me: failed program was:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18715
18716 ac_cv_lib_acl_acl_get_file=no
18717 fi
18718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18719 LIBS=$ac_check_lib_save_LIBS
18720 fi
18721 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18722 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18723 if test $ac_cv_lib_acl_acl_get_file = yes; then
18724   FDLIBS="-lacl $FDLIBS"
18725 fi
18726
18727 have_acl=no
18728 if test $ac_cv_lib_acl_acl_get_file = yes; then
18729    cat >>confdefs.h <<\_ACEOF
18730 #define HAVE_ACL 1
18731 _ACEOF
18732
18733    have_acl=yes
18734 fi
18735
18736 PTHREAD_LIB=""
18737 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18738 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18739 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18740   echo $ECHO_N "(cached) $ECHO_C" >&6
18741 else
18742   ac_check_lib_save_LIBS=$LIBS
18743 LIBS="-lpthread  $LIBS"
18744 cat >conftest.$ac_ext <<_ACEOF
18745 #line $LINENO "configure"
18746 /* confdefs.h.  */
18747 _ACEOF
18748 cat confdefs.h >>conftest.$ac_ext
18749 cat >>conftest.$ac_ext <<_ACEOF
18750 /* end confdefs.h.  */
18751
18752 /* Override any gcc2 internal prototype to avoid an error.  */
18753 #ifdef __cplusplus
18754 extern "C"
18755 #endif
18756 /* We use char because int might match the return type of a gcc2
18757    builtin and then its argument prototype would still apply.  */
18758 char pthread_create ();
18759 int
18760 main ()
18761 {
18762 pthread_create ();
18763   ;
18764   return 0;
18765 }
18766 _ACEOF
18767 rm -f conftest.$ac_objext conftest$ac_exeext
18768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18769   (eval $ac_link) 2>&5
18770   ac_status=$?
18771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772   (exit $ac_status); } &&
18773          { ac_try='test -s conftest$ac_exeext'
18774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775   (eval $ac_try) 2>&5
18776   ac_status=$?
18777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778   (exit $ac_status); }; }; then
18779   ac_cv_lib_pthread_pthread_create=yes
18780 else
18781   echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18783
18784 ac_cv_lib_pthread_pthread_create=no
18785 fi
18786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18787 LIBS=$ac_check_lib_save_LIBS
18788 fi
18789 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18790 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18791 if test $ac_cv_lib_pthread_pthread_create = yes; then
18792   PTHREAD_LIB="-lpthread"
18793 else
18794   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18795 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18796 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18797   echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799   ac_check_lib_save_LIBS=$LIBS
18800 LIBS="-lpthreads  $LIBS"
18801 cat >conftest.$ac_ext <<_ACEOF
18802 #line $LINENO "configure"
18803 /* confdefs.h.  */
18804 _ACEOF
18805 cat confdefs.h >>conftest.$ac_ext
18806 cat >>conftest.$ac_ext <<_ACEOF
18807 /* end confdefs.h.  */
18808
18809 /* Override any gcc2 internal prototype to avoid an error.  */
18810 #ifdef __cplusplus
18811 extern "C"
18812 #endif
18813 /* We use char because int might match the return type of a gcc2
18814    builtin and then its argument prototype would still apply.  */
18815 char pthread_create ();
18816 int
18817 main ()
18818 {
18819 pthread_create ();
18820   ;
18821   return 0;
18822 }
18823 _ACEOF
18824 rm -f conftest.$ac_objext conftest$ac_exeext
18825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18826   (eval $ac_link) 2>&5
18827   ac_status=$?
18828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829   (exit $ac_status); } &&
18830          { ac_try='test -s conftest$ac_exeext'
18831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18832   (eval $ac_try) 2>&5
18833   ac_status=$?
18834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835   (exit $ac_status); }; }; then
18836   ac_cv_lib_pthreads_pthread_create=yes
18837 else
18838   echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18840
18841 ac_cv_lib_pthreads_pthread_create=no
18842 fi
18843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18844 LIBS=$ac_check_lib_save_LIBS
18845 fi
18846 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18847 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18848 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18849   PTHREAD_LIB="-lpthreads"
18850 else
18851   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18852 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18853 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18854   echo $ECHO_N "(cached) $ECHO_C" >&6
18855 else
18856   ac_check_lib_save_LIBS=$LIBS
18857 LIBS="-lc_r  $LIBS"
18858 cat >conftest.$ac_ext <<_ACEOF
18859 #line $LINENO "configure"
18860 /* confdefs.h.  */
18861 _ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h.  */
18865
18866 /* Override any gcc2 internal prototype to avoid an error.  */
18867 #ifdef __cplusplus
18868 extern "C"
18869 #endif
18870 /* We use char because int might match the return type of a gcc2
18871    builtin and then its argument prototype would still apply.  */
18872 char pthread_create ();
18873 int
18874 main ()
18875 {
18876 pthread_create ();
18877   ;
18878   return 0;
18879 }
18880 _ACEOF
18881 rm -f conftest.$ac_objext conftest$ac_exeext
18882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18883   (eval $ac_link) 2>&5
18884   ac_status=$?
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); } &&
18887          { ac_try='test -s conftest$ac_exeext'
18888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889   (eval $ac_try) 2>&5
18890   ac_status=$?
18891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892   (exit $ac_status); }; }; then
18893   ac_cv_lib_c_r_pthread_create=yes
18894 else
18895   echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.$ac_ext >&5
18897
18898 ac_cv_lib_c_r_pthread_create=no
18899 fi
18900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18901 LIBS=$ac_check_lib_save_LIBS
18902 fi
18903 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18904 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18905 if test $ac_cv_lib_c_r_pthread_create = yes; then
18906   PTHREAD_LIB="-lc_r"
18907 else
18908   echo "$as_me:$LINENO: checking for pthread_create" >&5
18909 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18910 if test "${ac_cv_func_pthread_create+set}" = set; then
18911   echo $ECHO_N "(cached) $ECHO_C" >&6
18912 else
18913   cat >conftest.$ac_ext <<_ACEOF
18914 #line $LINENO "configure"
18915 /* confdefs.h.  */
18916 _ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h.  */
18920 /* System header to define __stub macros and hopefully few prototypes,
18921     which can conflict with char pthread_create (); below.
18922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18923     <limits.h> exists even on freestanding compilers.  */
18924 #ifdef __STDC__
18925 # include <limits.h>
18926 #else
18927 # include <assert.h>
18928 #endif
18929 /* Override any gcc2 internal prototype to avoid an error.  */
18930 #ifdef __cplusplus
18931 extern "C"
18932 {
18933 #endif
18934 /* We use char because int might match the return type of a gcc2
18935    builtin and then its argument prototype would still apply.  */
18936 char pthread_create ();
18937 /* The GNU C library defines this for functions which it implements
18938     to always fail with ENOSYS.  Some functions are actually named
18939     something starting with __ and the normal name is an alias.  */
18940 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18941 choke me
18942 #else
18943 char (*f) () = pthread_create;
18944 #endif
18945 #ifdef __cplusplus
18946 }
18947 #endif
18948
18949 int
18950 main ()
18951 {
18952 return f != pthread_create;
18953   ;
18954   return 0;
18955 }
18956 _ACEOF
18957 rm -f conftest.$ac_objext conftest$ac_exeext
18958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18959   (eval $ac_link) 2>&5
18960   ac_status=$?
18961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962   (exit $ac_status); } &&
18963          { ac_try='test -s conftest$ac_exeext'
18964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965   (eval $ac_try) 2>&5
18966   ac_status=$?
18967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); }; }; then
18969   ac_cv_func_pthread_create=yes
18970 else
18971   echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974 ac_cv_func_pthread_create=no
18975 fi
18976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18977 fi
18978 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18979 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18980
18981
18982 fi
18983
18984
18985 fi
18986
18987
18988 fi
18989
18990
18991
18992 cat >>confdefs.h <<\_ACEOF
18993 #define FDLIBS 1
18994 _ACEOF
18995
18996
18997
18998 CFLAGS=${CFLAGS--O}
18999 LDFLAGS=${LDFLAGS--O}
19000 DB_LIBS="${SQL_LFLAGS}"
19001
19002 CPPFLAGS="$CPPFLAGS"
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017 OBJLIST=
19018
19019
19020 lld="lld"
19021 llu="llu"
19022
19023 WCFLAGS=
19024 WLDFLAGS=
19025
19026 #
19027 # Finally we set appropriate distribution specific
19028 #  variables and defaults
19029 #
19030 # PFILES are platform specific files
19031 PFILES="platforms/Makefile"
19032 PSCMD="ps -e"
19033 WIN32=
19034 MACOSX=
19035 hostname=`uname -n | cut -d '.' -f 1`
19036 case "$DISTNAME" in
19037 aix)
19038         DISTVER=`uname -r`
19039         PSCMD="ps -e -o pid,comm"
19040         PFILES="${PFILES} \
19041            platforms/aix/Makefile"
19042         TAPEDRIVE="/dev/rmt0.1"
19043   ;;
19044 alpha)
19045         DISTVER=`uname -r`
19046         PTHREAD_LIB="-lpthread -lexc"
19047         if test "${CC}" = "gcc" ; then
19048            lld="lld"
19049            llu="llu"
19050         else
19051            lld="ld"
19052            llu="lu"
19053         fi
19054         TAPEDRIVE="/dev/nrmt0"
19055   ;;
19056 bsdi)
19057         DISTVER=`uname -a |awk '{print $3}'`
19058         TAPEDRIVE="/dev/nrmt0"
19059         PTHREAD_LIB="-pthread"
19060         CFLAGS="${CFLAGS} -pthread"
19061         PSCMD="ps -x -o pid,command"
19062         lld="qd"
19063         llu="qu"
19064         PFILES="${PFILES} \
19065             platforms/bsdi/Makefile \
19066             platforms/bsdi/bacula-fd \
19067             platforms/bsdi/bacula-sd \
19068             platforms/bsdi/bacula-dir"
19069         largefile_support="yes"
19070   ;;
19071 cygwin)
19072         DISTVER=`uname -a |awk '{print $3}'`
19073         TAPEDRIVE="/dev/nrst0"
19074         WIN32=win32
19075         WCFLAGS="-mwindows"
19076         WLDFLAGS="-mwindows"
19077   ;;
19078 darwin)
19079         DISTVER=`uname -r`
19080         TAPEDRIVE="/dev/nst0"
19081         PSCMD="ps -e -o pid,command"
19082         MACOSX=macosx
19083         PFILES="${PFILES} \
19084            platforms/darwin/Makefile"
19085   ;;
19086 debian)
19087         DISTVER=`cat /etc/debian_version`
19088         TAPEDRIVE="/dev/nrst0"
19089         PSCMD="ps -e -o pid,command"
19090   ;;
19091 freebsd)
19092         DISTVER=`uname -a |awk '{print $3}'`
19093         VER=`echo $DISTVER | cut -c 1`
19094         if test x$VER = x4 ; then
19095            PTHREAD_LIB="-pthread"
19096            CFLAGS="${CFLAGS} -pthread"
19097         fi
19098         lld="qd"
19099         llu="qu"
19100         TAPEDRIVE="/dev/nrsa0"
19101         PSCMD="ps -x -o pid,command"
19102         PFILES="${PFILES} \
19103             platforms/freebsd/Makefile \
19104             platforms/freebsd/bacula-fd \
19105             platforms/freebsd/bacula-sd \
19106             platforms/freebsd/bacula-dir"
19107         largefile_support="yes"
19108   ;;
19109 hpux)
19110         PSCMD="UNIX95=1 ps -e -o pid,comm"
19111         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
19112         DISTVER=`uname -r`
19113         TAPEDRIVE="/dev/rmt/0hnb"
19114   ;;
19115 irix)
19116         DISTVER=`uname -r`
19117         TAPEDRIVE="/dev/rmt/0cbn"
19118         PSCMD="ps -e -o pid,comm"
19119         PFILES="${PFILES} \
19120             platforms/irix/Makefile \
19121             platforms/irix/bacula-fd \
19122             platforms/irix/bacula-sd \
19123             platforms/irix/bacula-dir"
19124   ;;
19125 netbsd)
19126         DISTVER=`uname -a |awk '{print $3}'`
19127         lld="qd"
19128         llu="qu"
19129         TAPEDRIVE="/dev/nrst0"
19130         PSCMD="ps -a -o pid,command"
19131         PTHREAD_LIB="-pthread"
19132         CFLAGS="${CFLAGS} -pthread"
19133   ;;
19134 openbsd)
19135         DISTVER=`uname -a |awk '{print $3}'`
19136         lld="qd"
19137         llu="qu"
19138         TAPEDRIVE="/dev/nrst0"
19139         PSCMD="ps -ax -o pid,command"
19140         PTHREAD_LIB="-pthread"
19141         CFLAGS="${CFLAGS} -pthread"
19142         PFILES="${PFILES} \
19143             platforms/openbsd/Makefile \
19144             platforms/openbsd/bacula-fd \
19145             platforms/openbsd/bacula-sd \
19146             platforms/openbsd/bacula-dir"
19147   ;;
19148 redhat)
19149         if test -f /etc/whitebox-release ; then
19150            f=/etc/whitebox-release
19151         else
19152            f=/etc/redhat-release
19153         fi
19154         if test `cat $f | grep release |\
19155                    cut -f 3 -d ' '`x = "Enterprise"x ; then
19156            DISTVER="Enterprise "`cat $f | grep release |\
19157                     cut -f 6 -d ' '`
19158         else
19159             DISTVER=`cat /etc/redhat-release | grep release |\
19160                      cut -f 5 -d ' '`
19161         fi
19162         TAPEDRIVE="/dev/nst0"
19163         PSCMD="ps -e -o pid,command"
19164         PFILES="${PFILES} \
19165             platforms/redhat/Makefile \
19166             platforms/redhat/bacula-fd \
19167             platforms/redhat/bacula-sd \
19168             platforms/redhat/bacula-dir \
19169             platforms/redhat/bacula.spec \
19170             "
19171         hostname=`hostname -s`
19172   ;;
19173 mandrake)
19174         DISTVER=`cat /etc/mandrake-release | grep release |\
19175            cut -f 5 -d ' '`
19176         TAPEDRIVE="/dev/nst0"
19177         PSCMD="ps -e -o pid,command"
19178         PFILES="${PFILES} \
19179             platforms/mandrake/Makefile \
19180             platforms/mandrake/bacula-fd \
19181             platforms/mandrake/bacula-sd \
19182             platforms/mandrake/bacula-dir \
19183             platforms/mandrake/bacula.spec \
19184             "
19185   ;;
19186 gentoo)
19187         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19188         TAPEDRIVE="/dev/nst0"
19189         PSCMD="ps -e -o pid,command"
19190         PFILES="${PFILES} \
19191             platforms/gentoo/Makefile \
19192          platforms/gentoo/bacula-init \
19193             platforms/gentoo/bacula-fd \
19194             platforms/gentoo/bacula-sd \
19195             platforms/gentoo/bacula-dir"
19196   ;;
19197 slackware)
19198         DISTVER=`cat /etc/slackware-version`
19199         TAPEDRIVE="/dev/nst0"
19200         PSCMD="ps -e -o pid,command"
19201         PFILES="${PFILES} \
19202             platforms/slackware/Makefile \
19203             platforms/slackware/rc.bacula-fd \
19204             platforms/slackware/rc.bacula-sd \
19205             platforms/slackware/rc.bacula-dir\
19206             platforms/slackware/functions.bacula"
19207   ;;
19208 solaris)
19209         DISTVER=`uname -r`
19210         TAPEDRIVE="/dev/rmt/0cbn"
19211         PSCMD="ps -e -o pid,comm"
19212         PFILES="${PFILES} \
19213             platforms/solaris/Makefile \
19214             platforms/solaris/bacula-fd \
19215             platforms/solaris/bacula-sd \
19216             platforms/solaris/bacula-dir"
19217         if test x$DISTVER = x5.6 ; then
19218             cat >>confdefs.h <<\_ACEOF
19219 #define HAVE_OLD_SOCKOPT 1
19220 _ACEOF
19221
19222         fi
19223   ;;
19224 suse)
19225         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19226             cut -f 3 -d ' '`
19227         TAPEDRIVE="/dev/nst0"
19228         PSCMD="ps -e -o pid,command"
19229         PFILES="${PFILES} \
19230             platforms/suse/Makefile \
19231             platforms/suse/bacula-fd \
19232             platforms/suse/bacula-sd \
19233             platforms/suse/bacula-dir \
19234             platforms/suse/bacula \
19235             platforms/suse/bacula.spec"
19236   ;;
19237 suse5)
19238         DISTNAME=suse
19239         DISTVER=5.x
19240         TAPEDRIVE="/dev/nst0"
19241         PSCMD="ps -e -o pid,command"
19242         PFILES="${PFILES} \
19243             platforms/suse/Makefile \
19244             platforms/suse/bacula-fd \
19245             platforms/suse/bacula-sd \
19246             platforms/suse/bacula-dir"
19247   ;;
19248 unknown)
19249         DISTVER=unknown
19250         TAPEDRIVE="/dev/nst0"
19251   ;;
19252 *)
19253   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19254   ;;
19255 esac
19256
19257
19258
19259 LIBS="$PTHREAD_LIB $LIBS"
19260
19261 cat >>confdefs.h <<_ACEOF
19262 #define lld "$lld"
19263 _ACEOF
19264
19265 cat >>confdefs.h <<_ACEOF
19266 #define llu "$llu"
19267 _ACEOF
19268
19269
19270
19271
19272
19273
19274
19275
19276 MCOMMON=./autoconf/Make.common
19277
19278
19279 if test "x${subsysdir}" = "x${sbindir}" ; then
19280    echo " "
19281    echo " "
19282    echo "You have set both --sbindir and --with-subsys-dir"
19283    echo "  equal to: ${subsysdir} "
19284    echo "This is not permitted. Please reconfigure."
19285    echo " "
19286    echo "Aborting configuration ..."
19287    echo " "
19288    echo " "
19289    exit 1
19290 fi
19291
19292                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/bacula-tray-monitor.desktop doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile src/bimagemgr/Makefile $PFILES"
19293           ac_config_commands="$ac_config_commands default"
19294 cat >confcache <<\_ACEOF
19295 # This file is a shell script that caches the results of configure
19296 # tests run on this system so they can be shared between configure
19297 # scripts and configure runs, see configure's option --config-cache.
19298 # It is not useful on other systems.  If it contains results you don't
19299 # want to keep, you may remove or edit it.
19300 #
19301 # config.status only pays attention to the cache file if you give it
19302 # the --recheck option to rerun configure.
19303 #
19304 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19305 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19306 # following values.
19307
19308 _ACEOF
19309
19310 # The following way of writing the cache mishandles newlines in values,
19311 # but we know of no workaround that is simple, portable, and efficient.
19312 # So, don't put newlines in cache variables' values.
19313 # Ultrix sh set writes to stderr and can't be redirected directly,
19314 # and sets the high bit in the cache file unless we assign to the vars.
19315 {
19316   (set) 2>&1 |
19317     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19318     *ac_space=\ *)
19319       # `set' does not quote correctly, so add quotes (double-quote
19320       # substitution turns \\\\ into \\, and sed turns \\ into \).
19321       sed -n \
19322         "s/'/'\\\\''/g;
19323           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19324       ;;
19325     *)
19326       # `set' quotes correctly as required by POSIX, so do not add quotes.
19327       sed -n \
19328         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19329       ;;
19330     esac;
19331 } |
19332   sed '
19333      t clear
19334      : clear
19335      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19336      t end
19337      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19338      : end' >>confcache
19339 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19340   if test -w $cache_file; then
19341     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19342     cat confcache >$cache_file
19343   else
19344     echo "not updating unwritable cache $cache_file"
19345   fi
19346 fi
19347 rm -f confcache
19348
19349 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19350 # Let make expand exec_prefix.
19351 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19352
19353 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19354 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19355 # trailing colons and then remove the whole line if VPATH becomes empty
19356 # (actually we leave an empty line to preserve line numbers).
19357 if test "x$srcdir" = x.; then
19358   ac_vpsub='/^[         ]*VPATH[        ]*=/{
19359 s/:*\$(srcdir):*/:/;
19360 s/:*\${srcdir}:*/:/;
19361 s/:*@srcdir@:*/:/;
19362 s/^\([^=]*=[    ]*\):*/\1/;
19363 s/:*$//;
19364 s/^[^=]*=[      ]*$//;
19365 }'
19366 fi
19367
19368 DEFS=-DHAVE_CONFIG_H
19369
19370 ac_libobjs=
19371 ac_ltlibobjs=
19372 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19373   # 1. Remove the extension, and $U if already installed.
19374   ac_i=`echo "$ac_i" |
19375          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19376   # 2. Add them.
19377   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19378   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19379 done
19380 LIBOBJS=$ac_libobjs
19381
19382 LTLIBOBJS=$ac_ltlibobjs
19383
19384
19385
19386 : ${CONFIG_STATUS=./config.status}
19387 ac_clean_files_save=$ac_clean_files
19388 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19389 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19390 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19391 cat >$CONFIG_STATUS <<_ACEOF
19392 #! $SHELL
19393 # Generated by $as_me.
19394 # Run this file to recreate the current configuration.
19395 # Compiler output produced by configure, useful for debugging
19396 # configure, is in config.log if it exists.
19397
19398 debug=false
19399 ac_cs_recheck=false
19400 ac_cs_silent=false
19401 SHELL=\${CONFIG_SHELL-$SHELL}
19402 _ACEOF
19403
19404 cat >>$CONFIG_STATUS <<\_ACEOF
19405 ## --------------------- ##
19406 ## M4sh Initialization.  ##
19407 ## --------------------- ##
19408
19409 # Be Bourne compatible
19410 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19411   emulate sh
19412   NULLCMD=:
19413   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19414   # is contrary to our usage.  Disable this feature.
19415   alias -g '${1+"$@"}'='"$@"'
19416 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19417   set -o posix
19418 fi
19419
19420 # Support unset when possible.
19421 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19422   as_unset=unset
19423 else
19424   as_unset=false
19425 fi
19426
19427
19428 # Work around bugs in pre-3.0 UWIN ksh.
19429 $as_unset ENV MAIL MAILPATH
19430 PS1='$ '
19431 PS2='> '
19432 PS4='+ '
19433
19434 # NLS nuisances.
19435 for as_var in \
19436   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19437   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19438   LC_TELEPHONE LC_TIME
19439 do
19440   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19441     eval $as_var=C; export $as_var
19442   else
19443     $as_unset $as_var
19444   fi
19445 done
19446
19447 # Required to use basename.
19448 if expr a : '\(a\)' >/dev/null 2>&1; then
19449   as_expr=expr
19450 else
19451   as_expr=false
19452 fi
19453
19454 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19455   as_basename=basename
19456 else
19457   as_basename=false
19458 fi
19459
19460
19461 # Name of the executable.
19462 as_me=`$as_basename "$0" ||
19463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19464          X"$0" : 'X\(//\)$' \| \
19465          X"$0" : 'X\(/\)$' \| \
19466          .     : '\(.\)' 2>/dev/null ||
19467 echo X/"$0" |
19468     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19469           /^X\/\(\/\/\)$/{ s//\1/; q; }
19470           /^X\/\(\/\).*/{ s//\1/; q; }
19471           s/.*/./; q'`
19472
19473
19474 # PATH needs CR, and LINENO needs CR and PATH.
19475 # Avoid depending upon Character Ranges.
19476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19479 as_cr_digits='0123456789'
19480 as_cr_alnum=$as_cr_Letters$as_cr_digits
19481
19482 # The user is always right.
19483 if test "${PATH_SEPARATOR+set}" != set; then
19484   echo "#! /bin/sh" >conf$$.sh
19485   echo  "exit 0"   >>conf$$.sh
19486   chmod +x conf$$.sh
19487   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19488     PATH_SEPARATOR=';'
19489   else
19490     PATH_SEPARATOR=:
19491   fi
19492   rm -f conf$$.sh
19493 fi
19494
19495
19496   as_lineno_1=$LINENO
19497   as_lineno_2=$LINENO
19498   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19499   test "x$as_lineno_1" != "x$as_lineno_2" &&
19500   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19501   # Find who we are.  Look in the path if we contain no path at all
19502   # relative or not.
19503   case $0 in
19504     *[\\/]* ) as_myself=$0 ;;
19505     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19506 for as_dir in $PATH
19507 do
19508   IFS=$as_save_IFS
19509   test -z "$as_dir" && as_dir=.
19510   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19511 done
19512
19513        ;;
19514   esac
19515   # We did not find ourselves, most probably we were run as `sh COMMAND'
19516   # in which case we are not to be found in the path.
19517   if test "x$as_myself" = x; then
19518     as_myself=$0
19519   fi
19520   if test ! -f "$as_myself"; then
19521     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19522 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19523    { (exit 1); exit 1; }; }
19524   fi
19525   case $CONFIG_SHELL in
19526   '')
19527     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19528 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19529 do
19530   IFS=$as_save_IFS
19531   test -z "$as_dir" && as_dir=.
19532   for as_base in sh bash ksh sh5; do
19533          case $as_dir in
19534          /*)
19535            if ("$as_dir/$as_base" -c '
19536   as_lineno_1=$LINENO
19537   as_lineno_2=$LINENO
19538   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19539   test "x$as_lineno_1" != "x$as_lineno_2" &&
19540   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19541              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19542              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19543              CONFIG_SHELL=$as_dir/$as_base
19544              export CONFIG_SHELL
19545              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19546            fi;;
19547          esac
19548        done
19549 done
19550 ;;
19551   esac
19552
19553   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19554   # uniformly replaced by the line number.  The first 'sed' inserts a
19555   # line-number line before each line; the second 'sed' does the real
19556   # work.  The second script uses 'N' to pair each line-number line
19557   # with the numbered line, and appends trailing '-' during
19558   # substitution so that $LINENO is not a special case at line end.
19559   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19560   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19561   sed '=' <$as_myself |
19562     sed '
19563       N
19564       s,$,-,
19565       : loop
19566       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19567       t loop
19568       s,-$,,
19569       s,^['$as_cr_digits']*\n,,
19570     ' >$as_me.lineno &&
19571   chmod +x $as_me.lineno ||
19572     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19573 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19574    { (exit 1); exit 1; }; }
19575
19576   # Don't try to exec as it changes $[0], causing all sort of problems
19577   # (the dirname of $[0] is not the place where we might find the
19578   # original and so on.  Autoconf is especially sensible to this).
19579   . ./$as_me.lineno
19580   # Exit status is that of the last command.
19581   exit
19582 }
19583
19584
19585 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19586   *c*,-n*) ECHO_N= ECHO_C='
19587 ' ECHO_T='      ' ;;
19588   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19589   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19590 esac
19591
19592 if expr a : '\(a\)' >/dev/null 2>&1; then
19593   as_expr=expr
19594 else
19595   as_expr=false
19596 fi
19597
19598 rm -f conf$$ conf$$.exe conf$$.file
19599 echo >conf$$.file
19600 if ln -s conf$$.file conf$$ 2>/dev/null; then
19601   # We could just check for DJGPP; but this test a) works b) is more generic
19602   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19603   if test -f conf$$.exe; then
19604     # Don't use ln at all; we don't have any links
19605     as_ln_s='cp -p'
19606   else
19607     as_ln_s='ln -s'
19608   fi
19609 elif ln conf$$.file conf$$ 2>/dev/null; then
19610   as_ln_s=ln
19611 else
19612   as_ln_s='cp -p'
19613 fi
19614 rm -f conf$$ conf$$.exe conf$$.file
19615
19616 if mkdir -p . 2>/dev/null; then
19617   as_mkdir_p=:
19618 else
19619   as_mkdir_p=false
19620 fi
19621
19622 as_executable_p="test -f"
19623
19624 # Sed expression to map a string onto a valid CPP name.
19625 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19626
19627 # Sed expression to map a string onto a valid variable name.
19628 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19629
19630
19631 # IFS
19632 # We need space, tab and new line, in precisely that order.
19633 as_nl='
19634 '
19635 IFS="   $as_nl"
19636
19637 # CDPATH.
19638 $as_unset CDPATH
19639
19640 exec 6>&1
19641
19642 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19643 # report actual input values of CONFIG_FILES etc. instead of their
19644 # values after options handling.  Logging --version etc. is OK.
19645 exec 5>>config.log
19646 {
19647   echo
19648   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19649 ## Running $as_me. ##
19650 _ASBOX
19651 } >&5
19652 cat >&5 <<_CSEOF
19653
19654 This file was extended by $as_me, which was
19655 generated by GNU Autoconf 2.57.  Invocation command line was
19656
19657   CONFIG_FILES    = $CONFIG_FILES
19658   CONFIG_HEADERS  = $CONFIG_HEADERS
19659   CONFIG_LINKS    = $CONFIG_LINKS
19660   CONFIG_COMMANDS = $CONFIG_COMMANDS
19661   $ $0 $@
19662
19663 _CSEOF
19664 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19665 echo >&5
19666 _ACEOF
19667
19668 # Files that config.status was made for.
19669 if test -n "$ac_config_files"; then
19670   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19671 fi
19672
19673 if test -n "$ac_config_headers"; then
19674   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19675 fi
19676
19677 if test -n "$ac_config_links"; then
19678   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19679 fi
19680
19681 if test -n "$ac_config_commands"; then
19682   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19683 fi
19684
19685 cat >>$CONFIG_STATUS <<\_ACEOF
19686
19687 ac_cs_usage="\
19688 \`$as_me' instantiates files from templates according to the
19689 current configuration.
19690
19691 Usage: $0 [OPTIONS] [FILE]...
19692
19693   -h, --help       print this help, then exit
19694   -V, --version    print version number, then exit
19695   -q, --quiet      do not print progress messages
19696   -d, --debug      don't remove temporary files
19697       --recheck    update $as_me by reconfiguring in the same conditions
19698   --file=FILE[:TEMPLATE]
19699                    instantiate the configuration file FILE
19700   --header=FILE[:TEMPLATE]
19701                    instantiate the configuration header FILE
19702
19703 Configuration files:
19704 $config_files
19705
19706 Configuration headers:
19707 $config_headers
19708
19709 Configuration commands:
19710 $config_commands
19711
19712 Report bugs to <bug-autoconf@gnu.org>."
19713 _ACEOF
19714
19715 cat >>$CONFIG_STATUS <<_ACEOF
19716 ac_cs_version="\\
19717 config.status
19718 configured by $0, generated by GNU Autoconf 2.57,
19719   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19720
19721 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19722 Free Software Foundation, Inc.
19723 This config.status script is free software; the Free Software Foundation
19724 gives unlimited permission to copy, distribute and modify it."
19725 srcdir=$srcdir
19726 INSTALL="$INSTALL"
19727 _ACEOF
19728
19729 cat >>$CONFIG_STATUS <<\_ACEOF
19730 # If no file are specified by the user, then we need to provide default
19731 # value.  By we need to know if files were specified by the user.
19732 ac_need_defaults=:
19733 while test $# != 0
19734 do
19735   case $1 in
19736   --*=*)
19737     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19738     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19739     ac_shift=:
19740     ;;
19741   -*)
19742     ac_option=$1
19743     ac_optarg=$2
19744     ac_shift=shift
19745     ;;
19746   *) # This is not an option, so the user has probably given explicit
19747      # arguments.
19748      ac_option=$1
19749      ac_need_defaults=false;;
19750   esac
19751
19752   case $ac_option in
19753   # Handling of the options.
19754 _ACEOF
19755 cat >>$CONFIG_STATUS <<\_ACEOF
19756   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19757     ac_cs_recheck=: ;;
19758   --version | --vers* | -V )
19759     echo "$ac_cs_version"; exit 0 ;;
19760   --he | --h)
19761     # Conflict between --help and --header
19762     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19763 Try \`$0 --help' for more information." >&5
19764 echo "$as_me: error: ambiguous option: $1
19765 Try \`$0 --help' for more information." >&2;}
19766    { (exit 1); exit 1; }; };;
19767   --help | --hel | -h )
19768     echo "$ac_cs_usage"; exit 0 ;;
19769   --debug | --d* | -d )
19770     debug=: ;;
19771   --file | --fil | --fi | --f )
19772     $ac_shift
19773     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19774     ac_need_defaults=false;;
19775   --header | --heade | --head | --hea )
19776     $ac_shift
19777     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19778     ac_need_defaults=false;;
19779   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19780   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19781     ac_cs_silent=: ;;
19782
19783   # This is an error.
19784   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19785 Try \`$0 --help' for more information." >&5
19786 echo "$as_me: error: unrecognized option: $1
19787 Try \`$0 --help' for more information." >&2;}
19788    { (exit 1); exit 1; }; } ;;
19789
19790   *) ac_config_targets="$ac_config_targets $1" ;;
19791
19792   esac
19793   shift
19794 done
19795
19796 ac_configure_extra_args=
19797
19798 if $ac_cs_silent; then
19799   exec 6>/dev/null
19800   ac_configure_extra_args="$ac_configure_extra_args --silent"
19801 fi
19802
19803 _ACEOF
19804 cat >>$CONFIG_STATUS <<_ACEOF
19805 if \$ac_cs_recheck; then
19806   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19807   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19808 fi
19809
19810 _ACEOF
19811
19812
19813
19814
19815
19816 cat >>$CONFIG_STATUS <<\_ACEOF
19817 for ac_config_target in $ac_config_targets
19818 do
19819   case "$ac_config_target" in
19820   # Handling of arguments.
19821   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19822   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19823   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19824   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19825   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19826   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19827   "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
19828   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19829   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19830   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19831   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19832   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19833   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19834   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19835   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19836   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19837   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19838   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19839   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19840   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19841   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19842   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19843   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19844   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19845   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19846   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19847   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19848   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19849   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
19850   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19851   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19852   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19853   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19854   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19855   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19856   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19857   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19858   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19859   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19860   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19861   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19862   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19863   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19864   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19865   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19866   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19867   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19868   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19869   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19870   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19871   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19872   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19873   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19874   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19875   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19876   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19877   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19878   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19879   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19880   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19881   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19882   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19883   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19884   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19885   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19886   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19887   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19888   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19889   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19890   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19891   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19892   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19893   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19894   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19895   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19896   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19897   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19898   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19899   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19900   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19901   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19902   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19903   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19904   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19905   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19906   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19907   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19908   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19909   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19910   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19911   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19912   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19913   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
19914   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
19915   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19916   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19917   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19918   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19919 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19920    { (exit 1); exit 1; }; };;
19921   esac
19922 done
19923
19924 # If the user did not use the arguments to specify the items to instantiate,
19925 # then the envvar interface is used.  Set only those that are not.
19926 # We use the long form for the default assignment because of an extremely
19927 # bizarre bug on SunOS 4.1.3.
19928 if $ac_need_defaults; then
19929   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19930   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19931   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19932 fi
19933
19934 # Have a temporary directory for convenience.  Make it in the build tree
19935 # simply because there is no reason to put it here, and in addition,
19936 # creating and moving files from /tmp can sometimes cause problems.
19937 # Create a temporary directory, and hook for its removal unless debugging.
19938 $debug ||
19939 {
19940   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19941   trap '{ (exit 1); exit 1; }' 1 2 13 15
19942 }
19943
19944 # Create a (secure) tmp directory for tmp files.
19945
19946 {
19947   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19948   test -n "$tmp" && test -d "$tmp"
19949 }  ||
19950 {
19951   tmp=./confstat$$-$RANDOM
19952   (umask 077 && mkdir $tmp)
19953 } ||
19954 {
19955    echo "$me: cannot create a temporary directory in ." >&2
19956    { (exit 1); exit 1; }
19957 }
19958
19959 _ACEOF
19960
19961 cat >>$CONFIG_STATUS <<_ACEOF
19962
19963 #
19964 # CONFIG_FILES section.
19965 #
19966
19967 # No need to generate the scripts if there are no CONFIG_FILES.
19968 # This happens for instance when ./config.status config.h
19969 if test -n "\$CONFIG_FILES"; then
19970   # Protect against being on the right side of a sed subst in config.status.
19971   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19972    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19973 s,@SHELL@,$SHELL,;t t
19974 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19975 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19976 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19977 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19978 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19979 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19980 s,@exec_prefix@,$exec_prefix,;t t
19981 s,@prefix@,$prefix,;t t
19982 s,@program_transform_name@,$program_transform_name,;t t
19983 s,@bindir@,$bindir,;t t
19984 s,@sbindir@,$sbindir,;t t
19985 s,@libexecdir@,$libexecdir,;t t
19986 s,@datadir@,$datadir,;t t
19987 s,@sysconfdir@,$sysconfdir,;t t
19988 s,@sharedstatedir@,$sharedstatedir,;t t
19989 s,@localstatedir@,$localstatedir,;t t
19990 s,@libdir@,$libdir,;t t
19991 s,@includedir@,$includedir,;t t
19992 s,@oldincludedir@,$oldincludedir,;t t
19993 s,@infodir@,$infodir,;t t
19994 s,@mandir@,$mandir,;t t
19995 s,@build_alias@,$build_alias,;t t
19996 s,@host_alias@,$host_alias,;t t
19997 s,@target_alias@,$target_alias,;t t
19998 s,@DEFS@,$DEFS,;t t
19999 s,@ECHO_C@,$ECHO_C,;t t
20000 s,@ECHO_N@,$ECHO_N,;t t
20001 s,@ECHO_T@,$ECHO_T,;t t
20002 s,@LIBS@,$LIBS,;t t
20003 s,@BUILD_DIR@,$BUILD_DIR,;t t
20004 s,@TRUEPRG@,$TRUEPRG,;t t
20005 s,@FALSEPRG@,$FALSEPRG,;t t
20006 s,@VERSION@,$VERSION,;t t
20007 s,@DATE@,$DATE,;t t
20008 s,@LSMDATE@,$LSMDATE,;t t
20009 s,@CC@,$CC,;t t
20010 s,@CFLAGS@,$CFLAGS,;t t
20011 s,@LDFLAGS@,$LDFLAGS,;t t
20012 s,@CPPFLAGS@,$CPPFLAGS,;t t
20013 s,@ac_ct_CC@,$ac_ct_CC,;t t
20014 s,@EXEEXT@,$EXEEXT,;t t
20015 s,@OBJEXT@,$OBJEXT,;t t
20016 s,@CXX@,$CXX,;t t
20017 s,@CXXFLAGS@,$CXXFLAGS,;t t
20018 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20019 s,@CPP@,$CPP,;t t
20020 s,@EGREP@,$EGREP,;t t
20021 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20022 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20023 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20024 s,@RANLIB@,$RANLIB,;t t
20025 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20026 s,@MV@,$MV,;t t
20027 s,@RM@,$RM,;t t
20028 s,@CP@,$CP,;t t
20029 s,@SED@,$SED,;t t
20030 s,@AWK@,$AWK,;t t
20031 s,@ECHO@,$ECHO,;t t
20032 s,@CMP@,$CMP,;t t
20033 s,@TBL@,$TBL,;t t
20034 s,@AR@,$AR,;t t
20035 s,@OPENSSL@,$OPENSSL,;t t
20036 s,@MTX@,$MTX,;t t
20037 s,@PKGCONFIG@,$PKGCONFIG,;t t
20038 s,@WXCONFIG@,$WXCONFIG,;t t
20039 s,@CDRECORD@,$CDRECORD,;t t
20040 s,@ARFLAGS@,$ARFLAGS,;t t
20041 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
20042 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
20043 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
20044 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
20045 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
20046 s,@build@,$build,;t t
20047 s,@build_cpu@,$build_cpu,;t t
20048 s,@build_vendor@,$build_vendor,;t t
20049 s,@build_os@,$build_os,;t t
20050 s,@host@,$host,;t t
20051 s,@host_cpu@,$host_cpu,;t t
20052 s,@host_vendor@,$host_vendor,;t t
20053 s,@host_os@,$host_os,;t t
20054 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
20055 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
20056 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
20057 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
20058 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
20059 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
20060 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
20061 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
20062 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
20063 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
20064 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
20065 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
20066 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
20067 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
20068 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
20069 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
20070 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
20071 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
20072 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
20073 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
20074 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
20075 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
20076 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
20077 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
20078 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
20079 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
20080 s,@MSGFMT@,$MSGFMT,;t t
20081 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
20082 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
20083 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
20084 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
20085 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
20086 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
20087 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
20088 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
20089 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
20090 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
20091 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
20092 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
20093 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
20094 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
20095 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
20096 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
20097 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
20098 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
20099 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
20100 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
20101 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
20102 s,@GNOME_DIR@,$GNOME_DIR,;t t
20103 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
20104 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
20105 s,@WX_DIR@,$WX_DIR,;t t
20106 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
20107 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
20108 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
20109 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
20110 s,@STATIC_FD@,$STATIC_FD,;t t
20111 s,@STATIC_SD@,$STATIC_SD,;t t
20112 s,@STATIC_DIR@,$STATIC_DIR,;t t
20113 s,@STATIC_CONS@,$STATIC_CONS,;t t
20114 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
20115 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
20116 s,@ALL_DIRS@,$ALL_DIRS,;t t
20117 s,@CONS_INC@,$CONS_INC,;t t
20118 s,@CONS_OBJ@,$CONS_OBJ,;t t
20119 s,@CONS_SRC@,$CONS_SRC,;t t
20120 s,@CONS_LIBS@,$CONS_LIBS,;t t
20121 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
20122 s,@READLINE_SRC@,$READLINE_SRC,;t t
20123 s,@CDSTL@,$CDSTL,;t t
20124 s,@working_dir@,$working_dir,;t t
20125 s,@scriptdir@,$scriptdir,;t t
20126 s,@dump_email@,$dump_email,;t t
20127 s,@job_email@,$job_email,;t t
20128 s,@smtp_host@,$smtp_host,;t t
20129 s,@piddir@,$piddir,;t t
20130 s,@subsysdir@,$subsysdir,;t t
20131 s,@baseport@,$baseport,;t t
20132 s,@dir_port@,$dir_port,;t t
20133 s,@fd_port@,$fd_port,;t t
20134 s,@sd_port@,$sd_port,;t t
20135 s,@dir_password@,$dir_password,;t t
20136 s,@fd_password@,$fd_password,;t t
20137 s,@sd_password@,$sd_password,;t t
20138 s,@mon_dir_password@,$mon_dir_password,;t t
20139 s,@mon_fd_password@,$mon_fd_password,;t t
20140 s,@mon_sd_password@,$mon_sd_password,;t t
20141 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
20142 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
20143 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
20144 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
20145 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
20146 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
20147 s,@dir_user@,$dir_user,;t t
20148 s,@dir_group@,$dir_group,;t t
20149 s,@sd_user@,$sd_user,;t t
20150 s,@sd_group@,$sd_group,;t t
20151 s,@fd_user@,$fd_user,;t t
20152 s,@fd_group@,$fd_group,;t t
20153 s,@SBINPERM@,$SBINPERM,;t t
20154 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
20155 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
20156 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
20157 s,@cats@,$cats,;t t
20158 s,@DB_NAME@,$DB_NAME,;t t
20159 s,@GETCONF@,$GETCONF,;t t
20160 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20161 s,@X_CFLAGS@,$X_CFLAGS,;t t
20162 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20163 s,@X_LIBS@,$X_LIBS,;t t
20164 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20165 s,@LIBOBJS@,$LIBOBJS,;t t
20166 s,@ALLOCA@,$ALLOCA,;t t
20167 s,@FDLIBS@,$FDLIBS,;t t
20168 s,@DEBUG@,$DEBUG,;t t
20169 s,@DINCLUDE@,$DINCLUDE,;t t
20170 s,@DLIB@,$DLIB,;t t
20171 s,@DB_LIBS@,$DB_LIBS,;t t
20172 s,@WCFLAGS@,$WCFLAGS,;t t
20173 s,@WLDFLAGS@,$WLDFLAGS,;t t
20174 s,@OBJLIST@,$OBJLIST,;t t
20175 s,@hostname@,$hostname,;t t
20176 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20177 s,@PSCMD@,$PSCMD,;t t
20178 s,@WIN32@,$WIN32,;t t
20179 s,@MACOSX@,$MACOSX,;t t
20180 s,@DISTNAME@,$DISTNAME,;t t
20181 s,@DISTVER@,$DISTVER,;t t
20182 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20183 /@MCOMMON@/r $MCOMMON
20184 s,@MCOMMON@,,;t t
20185 CEOF
20186
20187 _ACEOF
20188
20189   cat >>$CONFIG_STATUS <<\_ACEOF
20190   # Split the substitutions into bite-sized pieces for seds with
20191   # small command number limits, like on Digital OSF/1 and HP-UX.
20192   ac_max_sed_lines=48
20193   ac_sed_frag=1 # Number of current file.
20194   ac_beg=1 # First line for current file.
20195   ac_end=$ac_max_sed_lines # Line after last line for current file.
20196   ac_more_lines=:
20197   ac_sed_cmds=
20198   while $ac_more_lines; do
20199     if test $ac_beg -gt 1; then
20200       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20201     else
20202       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20203     fi
20204     if test ! -s $tmp/subs.frag; then
20205       ac_more_lines=false
20206     else
20207       # The purpose of the label and of the branching condition is to
20208       # speed up the sed processing (if there are no `@' at all, there
20209       # is no need to browse any of the substitutions).
20210       # These are the two extra sed commands mentioned above.
20211       (echo ':t
20212   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20213       if test -z "$ac_sed_cmds"; then
20214         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20215       else
20216         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20217       fi
20218       ac_sed_frag=`expr $ac_sed_frag + 1`
20219       ac_beg=$ac_end
20220       ac_end=`expr $ac_end + $ac_max_sed_lines`
20221     fi
20222   done
20223   if test -z "$ac_sed_cmds"; then
20224     ac_sed_cmds=cat
20225   fi
20226 fi # test -n "$CONFIG_FILES"
20227
20228 _ACEOF
20229 cat >>$CONFIG_STATUS <<\_ACEOF
20230 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20231   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20232   case $ac_file in
20233   - | *:- | *:-:* ) # input from stdin
20234         cat >$tmp/stdin
20235         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20236         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20237   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20238         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20239   * )   ac_file_in=$ac_file.in ;;
20240   esac
20241
20242   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20243   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20245          X"$ac_file" : 'X\(//\)[^/]' \| \
20246          X"$ac_file" : 'X\(//\)$' \| \
20247          X"$ac_file" : 'X\(/\)' \| \
20248          .     : '\(.\)' 2>/dev/null ||
20249 echo X"$ac_file" |
20250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20251           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20252           /^X\(\/\/\)$/{ s//\1/; q; }
20253           /^X\(\/\).*/{ s//\1/; q; }
20254           s/.*/./; q'`
20255   { if $as_mkdir_p; then
20256     mkdir -p "$ac_dir"
20257   else
20258     as_dir="$ac_dir"
20259     as_dirs=
20260     while test ! -d "$as_dir"; do
20261       as_dirs="$as_dir $as_dirs"
20262       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20264          X"$as_dir" : 'X\(//\)[^/]' \| \
20265          X"$as_dir" : 'X\(//\)$' \| \
20266          X"$as_dir" : 'X\(/\)' \| \
20267          .     : '\(.\)' 2>/dev/null ||
20268 echo X"$as_dir" |
20269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20270           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20271           /^X\(\/\/\)$/{ s//\1/; q; }
20272           /^X\(\/\).*/{ s//\1/; q; }
20273           s/.*/./; q'`
20274     done
20275     test ! -n "$as_dirs" || mkdir $as_dirs
20276   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20277 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20278    { (exit 1); exit 1; }; }; }
20279
20280   ac_builddir=.
20281
20282 if test "$ac_dir" != .; then
20283   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20284   # A "../" for each directory in $ac_dir_suffix.
20285   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20286 else
20287   ac_dir_suffix= ac_top_builddir=
20288 fi
20289
20290 case $srcdir in
20291   .)  # No --srcdir option.  We are building in place.
20292     ac_srcdir=.
20293     if test -z "$ac_top_builddir"; then
20294        ac_top_srcdir=.
20295     else
20296        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20297     fi ;;
20298   [\\/]* | ?:[\\/]* )  # Absolute path.
20299     ac_srcdir=$srcdir$ac_dir_suffix;
20300     ac_top_srcdir=$srcdir ;;
20301   *) # Relative path.
20302     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20303     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20304 esac
20305 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20306 # absolute.
20307 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20308 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20309 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20310 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20311
20312
20313   case $INSTALL in
20314   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20315   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20316   esac
20317
20318   if test x"$ac_file" != x-; then
20319     { echo "$as_me:$LINENO: creating $ac_file" >&5
20320 echo "$as_me: creating $ac_file" >&6;}
20321     rm -f "$ac_file"
20322   fi
20323   # Let's still pretend it is `configure' which instantiates (i.e., don't
20324   # use $as_me), people would be surprised to read:
20325   #    /* config.h.  Generated by config.status.  */
20326   if test x"$ac_file" = x-; then
20327     configure_input=
20328   else
20329     configure_input="$ac_file.  "
20330   fi
20331   configure_input=$configure_input"Generated from `echo $ac_file_in |
20332                                      sed 's,.*/,,'` by configure."
20333
20334   # First look for the input files in the build tree, otherwise in the
20335   # src tree.
20336   ac_file_inputs=`IFS=:
20337     for f in $ac_file_in; do
20338       case $f in
20339       -) echo $tmp/stdin ;;
20340       [\\/$]*)
20341          # Absolute (can't be DOS-style, as IFS=:)
20342          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20343 echo "$as_me: error: cannot find input file: $f" >&2;}
20344    { (exit 1); exit 1; }; }
20345          echo $f;;
20346       *) # Relative
20347          if test -f "$f"; then
20348            # Build tree
20349            echo $f
20350          elif test -f "$srcdir/$f"; then
20351            # Source tree
20352            echo $srcdir/$f
20353          else
20354            # /dev/null tree
20355            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20356 echo "$as_me: error: cannot find input file: $f" >&2;}
20357    { (exit 1); exit 1; }; }
20358          fi;;
20359       esac
20360     done` || { (exit 1); exit 1; }
20361 _ACEOF
20362 cat >>$CONFIG_STATUS <<_ACEOF
20363   sed "$ac_vpsub
20364 $extrasub
20365 _ACEOF
20366 cat >>$CONFIG_STATUS <<\_ACEOF
20367 :t
20368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20369 s,@configure_input@,$configure_input,;t t
20370 s,@srcdir@,$ac_srcdir,;t t
20371 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20372 s,@top_srcdir@,$ac_top_srcdir,;t t
20373 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20374 s,@builddir@,$ac_builddir,;t t
20375 s,@abs_builddir@,$ac_abs_builddir,;t t
20376 s,@top_builddir@,$ac_top_builddir,;t t
20377 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20378 s,@INSTALL@,$ac_INSTALL,;t t
20379 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20380   rm -f $tmp/stdin
20381   if test x"$ac_file" != x-; then
20382     mv $tmp/out $ac_file
20383   else
20384     cat $tmp/out
20385     rm -f $tmp/out
20386   fi
20387
20388 done
20389 _ACEOF
20390 cat >>$CONFIG_STATUS <<\_ACEOF
20391
20392 #
20393 # CONFIG_HEADER section.
20394 #
20395
20396 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20397 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20398 #
20399 # ac_d sets the value in "#define NAME VALUE" lines.
20400 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20401 ac_dB='[        ].*$,\1#\2'
20402 ac_dC=' '
20403 ac_dD=',;t'
20404 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20405 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20406 ac_uB='$,\1#\2define\3'
20407 ac_uC=' '
20408 ac_uD=',;t'
20409
20410 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20411   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20412   case $ac_file in
20413   - | *:- | *:-:* ) # input from stdin
20414         cat >$tmp/stdin
20415         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20416         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20417   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20418         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20419   * )   ac_file_in=$ac_file.in ;;
20420   esac
20421
20422   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20423 echo "$as_me: creating $ac_file" >&6;}
20424
20425   # First look for the input files in the build tree, otherwise in the
20426   # src tree.
20427   ac_file_inputs=`IFS=:
20428     for f in $ac_file_in; do
20429       case $f in
20430       -) echo $tmp/stdin ;;
20431       [\\/$]*)
20432          # Absolute (can't be DOS-style, as IFS=:)
20433          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20434 echo "$as_me: error: cannot find input file: $f" >&2;}
20435    { (exit 1); exit 1; }; }
20436          echo $f;;
20437       *) # Relative
20438          if test -f "$f"; then
20439            # Build tree
20440            echo $f
20441          elif test -f "$srcdir/$f"; then
20442            # Source tree
20443            echo $srcdir/$f
20444          else
20445            # /dev/null tree
20446            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20447 echo "$as_me: error: cannot find input file: $f" >&2;}
20448    { (exit 1); exit 1; }; }
20449          fi;;
20450       esac
20451     done` || { (exit 1); exit 1; }
20452   # Remove the trailing spaces.
20453   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20454
20455 _ACEOF
20456
20457 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20458 # `conftest.undefs', that substitutes the proper values into
20459 # config.h.in to produce config.h.  The first handles `#define'
20460 # templates, and the second `#undef' templates.
20461 # And first: Protect against being on the right side of a sed subst in
20462 # config.status.  Protect against being in an unquoted here document
20463 # in config.status.
20464 rm -f conftest.defines conftest.undefs
20465 # Using a here document instead of a string reduces the quoting nightmare.
20466 # Putting comments in sed scripts is not portable.
20467 #
20468 # `end' is used to avoid that the second main sed command (meant for
20469 # 0-ary CPP macros) applies to n-ary macro definitions.
20470 # See the Autoconf documentation for `clear'.
20471 cat >confdef2sed.sed <<\_ACEOF
20472 s/[\\&,]/\\&/g
20473 s,[\\$`],\\&,g
20474 t clear
20475 : clear
20476 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20477 t end
20478 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20479 : end
20480 _ACEOF
20481 # If some macros were called several times there might be several times
20482 # the same #defines, which is useless.  Nevertheless, we may not want to
20483 # sort them, since we want the *last* AC-DEFINE to be honored.
20484 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20485 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20486 rm -f confdef2sed.sed
20487
20488 # This sed command replaces #undef with comments.  This is necessary, for
20489 # example, in the case of _POSIX_SOURCE, which is predefined and required
20490 # on some systems where configure will not decide to define it.
20491 cat >>conftest.undefs <<\_ACEOF
20492 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20493 _ACEOF
20494
20495 # Break up conftest.defines because some shells have a limit on the size
20496 # of here documents, and old seds have small limits too (100 cmds).
20497 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20498 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20499 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20500 echo '  :' >>$CONFIG_STATUS
20501 rm -f conftest.tail
20502 while grep . conftest.defines >/dev/null
20503 do
20504   # Write a limited-size here document to $tmp/defines.sed.
20505   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20506   # Speed up: don't consider the non `#define' lines.
20507   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20508   # Work around the forget-to-reset-the-flag bug.
20509   echo 't clr' >>$CONFIG_STATUS
20510   echo ': clr' >>$CONFIG_STATUS
20511   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20512   echo 'CEOF
20513   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20514   rm -f $tmp/in
20515   mv $tmp/out $tmp/in
20516 ' >>$CONFIG_STATUS
20517   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20518   rm -f conftest.defines
20519   mv conftest.tail conftest.defines
20520 done
20521 rm -f conftest.defines
20522 echo '  fi # grep' >>$CONFIG_STATUS
20523 echo >>$CONFIG_STATUS
20524
20525 # Break up conftest.undefs because some shells have a limit on the size
20526 # of here documents, and old seds have small limits too (100 cmds).
20527 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20528 rm -f conftest.tail
20529 while grep . conftest.undefs >/dev/null
20530 do
20531   # Write a limited-size here document to $tmp/undefs.sed.
20532   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20533   # Speed up: don't consider the non `#undef'
20534   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20535   # Work around the forget-to-reset-the-flag bug.
20536   echo 't clr' >>$CONFIG_STATUS
20537   echo ': clr' >>$CONFIG_STATUS
20538   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20539   echo 'CEOF
20540   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20541   rm -f $tmp/in
20542   mv $tmp/out $tmp/in
20543 ' >>$CONFIG_STATUS
20544   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20545   rm -f conftest.undefs
20546   mv conftest.tail conftest.undefs
20547 done
20548 rm -f conftest.undefs
20549
20550 cat >>$CONFIG_STATUS <<\_ACEOF
20551   # Let's still pretend it is `configure' which instantiates (i.e., don't
20552   # use $as_me), people would be surprised to read:
20553   #    /* config.h.  Generated by config.status.  */
20554   if test x"$ac_file" = x-; then
20555     echo "/* Generated by configure.  */" >$tmp/config.h
20556   else
20557     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20558   fi
20559   cat $tmp/in >>$tmp/config.h
20560   rm -f $tmp/in
20561   if test x"$ac_file" != x-; then
20562     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20563       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20564 echo "$as_me: $ac_file is unchanged" >&6;}
20565     else
20566       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20568          X"$ac_file" : 'X\(//\)[^/]' \| \
20569          X"$ac_file" : 'X\(//\)$' \| \
20570          X"$ac_file" : 'X\(/\)' \| \
20571          .     : '\(.\)' 2>/dev/null ||
20572 echo X"$ac_file" |
20573     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20574           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20575           /^X\(\/\/\)$/{ s//\1/; q; }
20576           /^X\(\/\).*/{ s//\1/; q; }
20577           s/.*/./; q'`
20578       { if $as_mkdir_p; then
20579     mkdir -p "$ac_dir"
20580   else
20581     as_dir="$ac_dir"
20582     as_dirs=
20583     while test ! -d "$as_dir"; do
20584       as_dirs="$as_dir $as_dirs"
20585       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20587          X"$as_dir" : 'X\(//\)[^/]' \| \
20588          X"$as_dir" : 'X\(//\)$' \| \
20589          X"$as_dir" : 'X\(/\)' \| \
20590          .     : '\(.\)' 2>/dev/null ||
20591 echo X"$as_dir" |
20592     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20593           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20594           /^X\(\/\/\)$/{ s//\1/; q; }
20595           /^X\(\/\).*/{ s//\1/; q; }
20596           s/.*/./; q'`
20597     done
20598     test ! -n "$as_dirs" || mkdir $as_dirs
20599   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20600 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20601    { (exit 1); exit 1; }; }; }
20602
20603       rm -f $ac_file
20604       mv $tmp/config.h $ac_file
20605     fi
20606   else
20607     cat $tmp/config.h
20608     rm -f $tmp/config.h
20609   fi
20610 done
20611 _ACEOF
20612 cat >>$CONFIG_STATUS <<\_ACEOF
20613
20614 #
20615 # CONFIG_COMMANDS section.
20616 #
20617 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20618   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20619   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20620   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20621 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20622          X"$ac_dest" : 'X\(//\)[^/]' \| \
20623          X"$ac_dest" : 'X\(//\)$' \| \
20624          X"$ac_dest" : 'X\(/\)' \| \
20625          .     : '\(.\)' 2>/dev/null ||
20626 echo X"$ac_dest" |
20627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20628           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20629           /^X\(\/\/\)$/{ s//\1/; q; }
20630           /^X\(\/\).*/{ s//\1/; q; }
20631           s/.*/./; q'`
20632   ac_builddir=.
20633
20634 if test "$ac_dir" != .; then
20635   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20636   # A "../" for each directory in $ac_dir_suffix.
20637   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20638 else
20639   ac_dir_suffix= ac_top_builddir=
20640 fi
20641
20642 case $srcdir in
20643   .)  # No --srcdir option.  We are building in place.
20644     ac_srcdir=.
20645     if test -z "$ac_top_builddir"; then
20646        ac_top_srcdir=.
20647     else
20648        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20649     fi ;;
20650   [\\/]* | ?:[\\/]* )  # Absolute path.
20651     ac_srcdir=$srcdir$ac_dir_suffix;
20652     ac_top_srcdir=$srcdir ;;
20653   *) # Relative path.
20654     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20655     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20656 esac
20657 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20658 # absolute.
20659 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20660 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20661 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20662 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20663
20664
20665   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20666 echo "$as_me: executing $ac_dest commands" >&6;}
20667   case $ac_dest in
20668     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20669  ;;
20670   esac
20671 done
20672 _ACEOF
20673
20674 cat >>$CONFIG_STATUS <<\_ACEOF
20675
20676 { (exit 0); exit 0; }
20677 _ACEOF
20678 chmod +x $CONFIG_STATUS
20679 ac_clean_files=$ac_clean_files_save
20680
20681
20682 # configure is writing to config.log, and then calls config.status.
20683 # config.status does its own redirection, appending to config.log.
20684 # Unfortunately, on DOS this fails, as config.log is still kept open
20685 # by configure, so config.status won't be able to write to it; its
20686 # output is simply discarded.  So we exec the FD to /dev/null,
20687 # effectively closing config.log, so it can be properly (re)opened and
20688 # appended to by config.status.  When coming back to configure, we
20689 # need to make the FD available again.
20690 if test "$no_create" != yes; then
20691   ac_cs_success=:
20692   ac_config_status_args=
20693   test "$silent" = yes &&
20694     ac_config_status_args="$ac_config_status_args --quiet"
20695   exec 5>/dev/null
20696   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20697   exec 5>>config.log
20698   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20699   # would make configure fail if this is the last instruction.
20700   $ac_cs_success || { (exit 1); exit 1; }
20701 fi
20702
20703
20704 cd scripts
20705 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20706 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20707 cd ..
20708
20709 c=src/cats
20710
20711 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20712 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20713
20714 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20715 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20716
20717 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20718 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20719
20720 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20721 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20722
20723 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20724 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20725
20726 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20727 chmod 755 $c/sqlite
20728 chmod 755 $c/mysql
20729
20730 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20731    largefile_support="yes"
20732 fi
20733
20734 #
20735 # A whole lot of hand springs to get the compiler version.
20736 #  This is because gcc changed the output in version 3.0
20737 #
20738 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20739 if test "x${CCVERSION}" = "x" ; then
20740   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20741 fi
20742 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20743 if test x"${CXXVERSION}" = x ; then
20744   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20745 fi
20746
20747 if test "x${subsysdir}" = "x${sbindir}" ; then
20748    echo " "
20749    echo " "
20750    echo "You have set --sbindir and --with-subsys-dir"
20751    echo "  both equal to: ${subsysdir} "
20752    echo "  This is not permitted. Please reconfigure."
20753    echo " "
20754    echo "Aborting configuration ..."
20755    echo " "
20756    echo " "
20757    exit 1
20758 fi
20759
20760 if test "x${db_name}" = "xInternal" ; then
20761    echo " "
20762    echo " "
20763    echo "You have not specified either --enable-client-only or one of the"
20764    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20765    echo "  This is not permitted. Please reconfigure."
20766    echo " "
20767    echo "Aborting the configuration ..."
20768    echo " "
20769    echo " "
20770    exit 1
20771 fi
20772
20773 echo "
20774 Configuration on `date`:
20775
20776   Host:                       $host -- ${DISTNAME} ${DISTVER}
20777   Bacula version:             ${VERSION} (${DATE})
20778   Source code location:       ${srcdir}
20779   Install binaries:           ${sbindir}
20780   Install config files:       ${sysconfdir}
20781   Scripts directory:          ${scriptdir}
20782   Working directory:          ${working_dir}
20783   PID directory:              ${piddir}
20784   Subsys directory:           ${subsysdir}
20785   C Compiler:                 ${CC} ${CCVERSION}
20786   C++ Compiler:               ${CXX} ${CXXVERSION}
20787   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20788   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20789   Libraries:                  ${LIBS}
20790   Statically Linked Tools:    ${support_static_tools}
20791   Statically Linked FD:       ${support_static_fd}
20792   Statically Linked SD:       ${support_static_sd}
20793   Statically Linked DIR:      ${support_static_dir}
20794   Statically Linked CONS:     ${support_static_cons}
20795   Database type:              ${db_name}
20796   Database lib:               ${DB_LIBS}
20797
20798   Job Output Email:           ${job_email}
20799   Traceback Email:            ${dump_email}
20800   SMTP Host Address:          ${smtp_host}
20801
20802   Director Port:              ${dir_port}
20803   File daemon Port:           ${fd_port}
20804   Storage daemon Port:        ${sd_port}
20805
20806   Director User:              ${dir_user}
20807   Director Group:             ${dir_group}
20808   Storage Daemon User:        ${sd_user}
20809   Storage DaemonGroup:        ${sd_group}
20810   File Daemon User:           ${fd_user}
20811   File Daemon Group:          ${fd_group}
20812
20813   SQL binaries Directory      ${SQL_BINDIR}
20814
20815   Large file support:         $largefile_support
20816   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20817   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20818   TCP Wrappers support:       ${TCPW_MSG}
20819   ZLIB support:               ${have_zlib}
20820   enable-smartalloc:          ${support_smartalloc}
20821   enable-gnome:               ${support_gnome} ${gnome_version}
20822   enable-wx-console:          ${support_wx_console}
20823   enable-tray-monitor:        ${support_tray_monitor}
20824   client-only:                ${build_client_only}
20825   ACL support:                ${have_acl}
20826
20827   " > config.out
20828
20829 cat config.out
20830
20831 # old stuff
20832 # cweb support:               ${got_cweb} ${CWEB_SRC}
20833   # gmp support:                      ${got_gmp} ${GMP_SRC}