]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Doc updates + fixes to rescue script
[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 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-dir-user=USER           specify user for Director daemon
897   --with-dir-group=GROUP                 specify group for Director daemon
898   --with-sd-user=USER            specify user for Storage daemon
899   --with-sd-group=GROUP          specify group for Storage daemon
900   --with-fd-user=USER            specify user for File daemon
901   --with-fd-group=GROUP          specify group for File daemon
902   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
903   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
904                           base install directory, defaults to /usr/local/pgsql
905
906   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
907                           install directory, default is to search through
908                           a number of common places for the MySQL files.
909
910   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
911                           install directory, default is to search through
912                           a number of common places for the MySQL files.
913
914   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
915                           install directory, default is to search through
916                           a number of common places for the SQLite files.
917   --with-x                use the X Window System
918
919 Some influential environment variables:
920   CC          C compiler command
921   CFLAGS      C compiler flags
922   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
923               nonstandard directory <lib dir>
924   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
925               headers in a nonstandard directory <include dir>
926   CXX         C++ compiler command
927   CXXFLAGS    C++ compiler flags
928   CPP         C preprocessor
929
930 Use these variables to override the choices made by `configure' or to help
931 it to find libraries and programs with nonstandard names/locations.
932
933 _ACEOF
934 fi
935
936 if test "$ac_init_help" = "recursive"; then
937   # If there are subdirs, report their specific --help.
938   ac_popdir=`pwd`
939   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
940     test -d $ac_dir || continue
941     ac_builddir=.
942
943 if test "$ac_dir" != .; then
944   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
945   # A "../" for each directory in $ac_dir_suffix.
946   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
947 else
948   ac_dir_suffix= ac_top_builddir=
949 fi
950
951 case $srcdir in
952   .)  # No --srcdir option.  We are building in place.
953     ac_srcdir=.
954     if test -z "$ac_top_builddir"; then
955        ac_top_srcdir=.
956     else
957        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
958     fi ;;
959   [\\/]* | ?:[\\/]* )  # Absolute path.
960     ac_srcdir=$srcdir$ac_dir_suffix;
961     ac_top_srcdir=$srcdir ;;
962   *) # Relative path.
963     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
964     ac_top_srcdir=$ac_top_builddir$srcdir ;;
965 esac
966 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
967 # absolute.
968 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
969 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
970 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
971 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
972
973     cd $ac_dir
974     # Check for guested configure; otherwise get Cygnus style configure.
975     if test -f $ac_srcdir/configure.gnu; then
976       echo
977       $SHELL $ac_srcdir/configure.gnu  --help=recursive
978     elif test -f $ac_srcdir/configure; then
979       echo
980       $SHELL $ac_srcdir/configure  --help=recursive
981     elif test -f $ac_srcdir/configure.ac ||
982            test -f $ac_srcdir/configure.in; then
983       echo
984       $ac_configure --help
985     else
986       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987     fi
988     cd $ac_popdir
989   done
990 fi
991
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
994   cat <<\_ACEOF
995
996 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
997 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1000 _ACEOF
1001   exit 0
1002 fi
1003 exec 5>config.log
1004 cat >&5 <<_ACEOF
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1007
1008 It was created by $as_me, which was
1009 generated by GNU Autoconf 2.57.  Invocation command line was
1010
1011   $ $0 $@
1012
1013 _ACEOF
1014 {
1015 cat <<_ASUNAME
1016 ## --------- ##
1017 ## Platform. ##
1018 ## --------- ##
1019
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1025
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1028
1029 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1030 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1033 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1034 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1035 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1036
1037 _ASUNAME
1038
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 for as_dir in $PATH
1041 do
1042   IFS=$as_save_IFS
1043   test -z "$as_dir" && as_dir=.
1044   echo "PATH: $as_dir"
1045 done
1046
1047 } >&5
1048
1049 cat >&5 <<_ACEOF
1050
1051
1052 ## ----------- ##
1053 ## Core tests. ##
1054 ## ----------- ##
1055
1056 _ACEOF
1057
1058
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_configure_args=
1065 ac_configure_args0=
1066 ac_configure_args1=
1067 ac_sep=
1068 ac_must_keep_next=false
1069 for ac_pass in 1 2
1070 do
1071   for ac_arg
1072   do
1073     case $ac_arg in
1074     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076     | -silent | --silent | --silen | --sile | --sil)
1077       continue ;;
1078     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080     esac
1081     case $ac_pass in
1082     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083     2)
1084       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085       if test $ac_must_keep_next = true; then
1086         ac_must_keep_next=false # Got value, back to normal.
1087       else
1088         case $ac_arg in
1089           *=* | --config-cache | -C | -disable-* | --disable-* \
1090           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092           | -with-* | --with-* | -without-* | --without-* | --x)
1093             case "$ac_configure_args0 " in
1094               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095             esac
1096             ;;
1097           -* ) ac_must_keep_next=true ;;
1098         esac
1099       fi
1100       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101       # Get rid of the leading space.
1102       ac_sep=" "
1103       ;;
1104     esac
1105   done
1106 done
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log.  We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116   # Save into config.log some information that might help in debugging.
1117   {
1118     echo
1119
1120     cat <<\_ASBOX
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1124 _ASBOX
1125     echo
1126     # The following way of writing the cache mishandles newlines in values,
1127 {
1128   (set) 2>&1 |
1129     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130     *ac_space=\ *)
1131       sed -n \
1132         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134       ;;
1135     *)
1136       sed -n \
1137         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138       ;;
1139     esac;
1140 }
1141     echo
1142
1143     cat <<\_ASBOX
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1147 _ASBOX
1148     echo
1149     for ac_var in $ac_subst_vars
1150     do
1151       eval ac_val=$`echo $ac_var`
1152       echo "$ac_var='"'"'$ac_val'"'"'"
1153     done | sort
1154     echo
1155
1156     if test -n "$ac_subst_files"; then
1157       cat <<\_ASBOX
1158 ## ------------- ##
1159 ## Output files. ##
1160 ## ------------- ##
1161 _ASBOX
1162       echo
1163       for ac_var in $ac_subst_files
1164       do
1165         eval ac_val=$`echo $ac_var`
1166         echo "$ac_var='"'"'$ac_val'"'"'"
1167       done | sort
1168       echo
1169     fi
1170
1171     if test -s confdefs.h; then
1172       cat <<\_ASBOX
1173 ## ----------- ##
1174 ## confdefs.h. ##
1175 ## ----------- ##
1176 _ASBOX
1177       echo
1178       sed "/^$/d" confdefs.h | sort
1179       echo
1180     fi
1181     test "$ac_signal" != 0 &&
1182       echo "$as_me: caught signal $ac_signal"
1183     echo "$as_me: exit $exit_status"
1184   } >&5
1185   rm -f core core.* *.core &&
1186   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187     exit $exit_status
1188      ' 0
1189 for ac_signal in 1 2 13 15; do
1190   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 done
1192 ac_signal=0
1193
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 echo >confdefs.h
1198
1199 # Predefined preprocessor variables.
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 _ACEOF
1224
1225
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229   if test "x$prefix" != xNONE; then
1230     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231   else
1232     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233   fi
1234 fi
1235 for ac_site_file in $CONFIG_SITE; do
1236   if test -r "$ac_site_file"; then
1237     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239     sed 's/^/| /' "$ac_site_file" >&5
1240     . "$ac_site_file"
1241   fi
1242 done
1243
1244 if test -r "$cache_file"; then
1245   # Some versions of bash will fail to source /dev/null (special
1246   # files actually), so we avoid doing that.
1247   if test -f "$cache_file"; then
1248     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1250     case $cache_file in
1251       [\\/]* | ?:[\\/]* ) . $cache_file;;
1252       *)                      . ./$cache_file;;
1253     esac
1254   fi
1255 else
1256   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1258   >$cache_file
1259 fi
1260
1261 # Check that the precious variables saved in the cache have kept the same
1262 # value.
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267   eval ac_new_set=\$ac_env_${ac_var}_set
1268   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269   eval ac_new_val="\$ac_env_${ac_var}_value"
1270   case $ac_old_set,$ac_new_set in
1271     set,)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,set)
1276       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278       ac_cache_corrupted=: ;;
1279     ,);;
1280     *)
1281       if test "x$ac_old_val" != "x$ac_new_val"; then
1282         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1285 echo "$as_me:   former value:  $ac_old_val" >&2;}
1286         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1287 echo "$as_me:   current value: $ac_new_val" >&2;}
1288         ac_cache_corrupted=:
1289       fi;;
1290   esac
1291   # Pass precious variables to config.status.
1292   if test "$ac_new_set" = set; then
1293     case $ac_new_val in
1294     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296     *) ac_arg=$ac_var=$ac_new_val ;;
1297     esac
1298     case " $ac_configure_args " in
1299       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1300       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301     esac
1302   fi
1303 done
1304 if $ac_cache_corrupted; then
1305   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309    { (exit 1); exit 1; }; }
1310 fi
1311
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336 BUILD_DIR=`pwd`
1337 cd ..
1338 TOP_DIR=`pwd`
1339 cd ${BUILD_DIR}
1340
1341 ac_aux_dir=
1342 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1343   if test -f $ac_dir/install-sh; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/install-sh -c"
1346     break
1347   elif test -f $ac_dir/install.sh; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/install.sh -c"
1350     break
1351   elif test -f $ac_dir/shtool; then
1352     ac_aux_dir=$ac_dir
1353     ac_install_sh="$ac_aux_dir/shtool install -c"
1354     break
1355   fi
1356 done
1357 if test -z "$ac_aux_dir"; then
1358   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1359 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1360    { (exit 1); exit 1; }; }
1361 fi
1362 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1363 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1364 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1365
1366           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1367
1368
1369
1370
1371
1372 for ac_prog in true
1373 do
1374   # Extract the first word of "$ac_prog", so it can be a program name with args.
1375 set dummy $ac_prog; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1379   echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381   case $TRUEPRG in
1382   [\\/]* | ?:[\\/]*)
1383   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1384   ;;
1385   *)
1386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 for as_dir in $PATH
1388 do
1389   IFS=$as_save_IFS
1390   test -z "$as_dir" && as_dir=.
1391   for ac_exec_ext in '' $ac_executable_extensions; do
1392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395     break 2
1396   fi
1397 done
1398 done
1399
1400   ;;
1401 esac
1402 fi
1403 TRUEPRG=$ac_cv_path_TRUEPRG
1404
1405 if test -n "$TRUEPRG"; then
1406   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1407 echo "${ECHO_T}$TRUEPRG" >&6
1408 else
1409   echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1411 fi
1412
1413   test -n "$TRUEPRG" && break
1414 done
1415 test -n "$TRUEPRG" || TRUEPRG=":"
1416
1417 for ac_prog in false
1418 do
1419   # Extract the first word of "$ac_prog", so it can be a program name with args.
1420 set dummy $ac_prog; ac_word=$2
1421 echo "$as_me:$LINENO: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1424   echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426   case $FALSEPRG in
1427   [\\/]* | ?:[\\/]*)
1428   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1429   ;;
1430   *)
1431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1433 do
1434   IFS=$as_save_IFS
1435   test -z "$as_dir" && as_dir=.
1436   for ac_exec_ext in '' $ac_executable_extensions; do
1437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440     break 2
1441   fi
1442 done
1443 done
1444
1445   ;;
1446 esac
1447 fi
1448 FALSEPRG=$ac_cv_path_FALSEPRG
1449
1450 if test -n "$FALSEPRG"; then
1451   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1452 echo "${ECHO_T}$FALSEPRG" >&6
1453 else
1454   echo "$as_me:$LINENO: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1456 fi
1457
1458   test -n "$FALSEPRG" && break
1459 done
1460 test -n "$FALSEPRG" || FALSEPRG=":"
1461
1462
1463 #AC_CANONICAL_HOST
1464
1465 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1466 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1467 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1468 echo "configuring for bacula $VERSION ($DATE)"
1469
1470
1471
1472 ac_ext=c
1473 ac_cpp='$CPP $CPPFLAGS'
1474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477 if test -n "$ac_tool_prefix"; then
1478   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483   echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485   if test -n "$CC"; then
1486   ac_cv_prog_CC="$CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1490 do
1491   IFS=$as_save_IFS
1492   test -z "$as_dir" && as_dir=.
1493   for ac_exec_ext in '' $ac_executable_extensions; do
1494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497     break 2
1498   fi
1499 done
1500 done
1501
1502 fi
1503 fi
1504 CC=$ac_cv_prog_CC
1505 if test -n "$CC"; then
1506   echo "$as_me:$LINENO: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1508 else
1509   echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511 fi
1512
1513 fi
1514 if test -z "$ac_cv_prog_CC"; then
1515   ac_ct_CC=$CC
1516   # Extract the first word of "gcc", so it can be a program name with args.
1517 set dummy gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   if test -n "$ac_ct_CC"; then
1524   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529   IFS=$as_save_IFS
1530   test -z "$as_dir" && as_dir=.
1531   for ac_exec_ext in '' $ac_executable_extensions; do
1532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533     ac_cv_prog_ac_ct_CC="gcc"
1534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535     break 2
1536   fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543 if test -n "$ac_ct_CC"; then
1544   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545 echo "${ECHO_T}$ac_ct_CC" >&6
1546 else
1547   echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551   CC=$ac_ct_CC
1552 else
1553   CC="$ac_cv_prog_CC"
1554 fi
1555
1556 if test -z "$CC"; then
1557   if test -n "$ac_tool_prefix"; then
1558   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1559 set dummy ${ac_tool_prefix}cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_CC+set}" = set; then
1563   echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565   if test -n "$CC"; then
1566   ac_cv_prog_CC="$CC" # Let the user override the test.
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571   IFS=$as_save_IFS
1572   test -z "$as_dir" && as_dir=.
1573   for ac_exec_ext in '' $ac_executable_extensions; do
1574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575     ac_cv_prog_CC="${ac_tool_prefix}cc"
1576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577     break 2
1578   fi
1579 done
1580 done
1581
1582 fi
1583 fi
1584 CC=$ac_cv_prog_CC
1585 if test -n "$CC"; then
1586   echo "$as_me:$LINENO: result: $CC" >&5
1587 echo "${ECHO_T}$CC" >&6
1588 else
1589   echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1591 fi
1592
1593 fi
1594 if test -z "$ac_cv_prog_CC"; then
1595   ac_ct_CC=$CC
1596   # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601   echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603   if test -n "$ac_ct_CC"; then
1604   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   for ac_exec_ext in '' $ac_executable_extensions; do
1612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613     ac_cv_prog_ac_ct_CC="cc"
1614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615     break 2
1616   fi
1617 done
1618 done
1619
1620 fi
1621 fi
1622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623 if test -n "$ac_ct_CC"; then
1624   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625 echo "${ECHO_T}$ac_ct_CC" >&6
1626 else
1627   echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631   CC=$ac_ct_CC
1632 else
1633   CC="$ac_cv_prog_CC"
1634 fi
1635
1636 fi
1637 if test -z "$CC"; then
1638   # Extract the first word of "cc", so it can be a program name with args.
1639 set dummy cc; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_CC+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   if test -n "$CC"; then
1646   ac_cv_prog_CC="$CC" # Let the user override the test.
1647 else
1648   ac_prog_rejected=no
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652   IFS=$as_save_IFS
1653   test -z "$as_dir" && as_dir=.
1654   for ac_exec_ext in '' $ac_executable_extensions; do
1655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1657        ac_prog_rejected=yes
1658        continue
1659      fi
1660     ac_cv_prog_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 if test $ac_prog_rejected = yes; then
1668   # We found a bogon in the path, so make sure we never use it.
1669   set dummy $ac_cv_prog_CC
1670   shift
1671   if test $# != 0; then
1672     # We chose a different compiler from the bogus one.
1673     # However, it has the same basename, so the bogon will be chosen
1674     # first if we set CC to just the basename; use the full file name.
1675     shift
1676     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1677   fi
1678 fi
1679 fi
1680 fi
1681 CC=$ac_cv_prog_CC
1682 if test -n "$CC"; then
1683   echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1685 else
1686   echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690 fi
1691 if test -z "$CC"; then
1692   if test -n "$ac_tool_prefix"; then
1693   for ac_prog in cl
1694   do
1695     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$CC"; then
1703   ac_cv_prog_CC="$CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723   echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730     test -n "$CC" && break
1731   done
1732 fi
1733 if test -z "$CC"; then
1734   ac_ct_CC=$CC
1735   for ac_prog in cl
1736 do
1737   # Extract the first word of "$ac_prog", so it can be a program name with args.
1738 set dummy $ac_prog; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742   echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744   if test -n "$ac_ct_CC"; then
1745   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1749 do
1750   IFS=$as_save_IFS
1751   test -z "$as_dir" && as_dir=.
1752   for ac_exec_ext in '' $ac_executable_extensions; do
1753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754     ac_cv_prog_ac_ct_CC="$ac_prog"
1755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756     break 2
1757   fi
1758 done
1759 done
1760
1761 fi
1762 fi
1763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764 if test -n "$ac_ct_CC"; then
1765   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766 echo "${ECHO_T}$ac_ct_CC" >&6
1767 else
1768   echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770 fi
1771
1772   test -n "$ac_ct_CC" && break
1773 done
1774
1775   CC=$ac_ct_CC
1776 fi
1777
1778 fi
1779
1780
1781 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1782 See \`config.log' for more details." >&5
1783 echo "$as_me: error: no acceptable C compiler found in \$PATH
1784 See \`config.log' for more details." >&2;}
1785    { (exit 1); exit 1; }; }
1786
1787 # Provide some information about the compiler.
1788 echo "$as_me:$LINENO:" \
1789      "checking for C compiler version" >&5
1790 ac_compiler=`set X $ac_compile; echo $2`
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1792   (eval $ac_compiler --version </dev/null >&5) 2>&5
1793   ac_status=$?
1794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795   (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1797   (eval $ac_compiler -v </dev/null >&5) 2>&5
1798   ac_status=$?
1799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800   (exit $ac_status); }
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1802   (eval $ac_compiler -V </dev/null >&5) 2>&5
1803   ac_status=$?
1804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805   (exit $ac_status); }
1806
1807 cat >conftest.$ac_ext <<_ACEOF
1808 #line $LINENO "configure"
1809 /* confdefs.h.  */
1810 _ACEOF
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h.  */
1814
1815 int
1816 main ()
1817 {
1818
1819   ;
1820   return 0;
1821 }
1822 _ACEOF
1823 ac_clean_files_save=$ac_clean_files
1824 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1825 # Try to create an executable without -o first, disregard a.out.
1826 # It will help us diagnose broken compilers, and finding out an intuition
1827 # of exeext.
1828 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1829 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1830 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1831 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1832   (eval $ac_link_default) 2>&5
1833   ac_status=$?
1834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835   (exit $ac_status); }; then
1836   # Find the output, starting from the most likely.  This scheme is
1837 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1838 # resort.
1839
1840 # Be careful to initialize this variable, since it used to be cached.
1841 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1842 ac_cv_exeext=
1843 # b.out is created by i960 compilers.
1844 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1845 do
1846   test -f "$ac_file" || continue
1847   case $ac_file in
1848     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1849         ;;
1850     conftest.$ac_ext )
1851         # This is the source file.
1852         ;;
1853     [ab].out )
1854         # We found the default executable, but exeext='' is most
1855         # certainly right.
1856         break;;
1857     *.* )
1858         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1859         # FIXME: I believe we export ac_cv_exeext for Libtool,
1860         # but it would be cool to find out if it's true.  Does anybody
1861         # maintain Libtool? --akim.
1862         export ac_cv_exeext
1863         break;;
1864     * )
1865         break;;
1866   esac
1867 done
1868 else
1869   echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1873 See \`config.log' for more details." >&5
1874 echo "$as_me: error: C compiler cannot create executables
1875 See \`config.log' for more details." >&2;}
1876    { (exit 77); exit 77; }; }
1877 fi
1878
1879 ac_exeext=$ac_cv_exeext
1880 echo "$as_me:$LINENO: result: $ac_file" >&5
1881 echo "${ECHO_T}$ac_file" >&6
1882
1883 # Check the compiler produces executables we can run.  If not, either
1884 # the compiler is broken, or we cross compile.
1885 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1886 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1887 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1888 # If not cross compiling, check that we can run a simple program.
1889 if test "$cross_compiling" != yes; then
1890   if { ac_try='./$ac_file'
1891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892   (eval $ac_try) 2>&5
1893   ac_status=$?
1894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895   (exit $ac_status); }; }; then
1896     cross_compiling=no
1897   else
1898     if test "$cross_compiling" = maybe; then
1899         cross_compiling=yes
1900     else
1901         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot run C compiled programs.
1905 If you meant to cross compile, use \`--host'.
1906 See \`config.log' for more details." >&2;}
1907    { (exit 1); exit 1; }; }
1908     fi
1909   fi
1910 fi
1911 echo "$as_me:$LINENO: result: yes" >&5
1912 echo "${ECHO_T}yes" >&6
1913
1914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1915 ac_clean_files=$ac_clean_files_save
1916 # Check the compiler produces executables we can run.  If not, either
1917 # the compiler is broken, or we cross compile.
1918 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1920 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1921 echo "${ECHO_T}$cross_compiling" >&6
1922
1923 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1926   (eval $ac_link) 2>&5
1927   ac_status=$?
1928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929   (exit $ac_status); }; then
1930   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1931 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1932 # work properly (i.e., refer to `conftest.exe'), while it won't with
1933 # `rm'.
1934 for ac_file in conftest.exe conftest conftest.*; do
1935   test -f "$ac_file" || continue
1936   case $ac_file in
1937     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1938     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1939           export ac_cv_exeext
1940           break;;
1941     * ) break;;
1942   esac
1943 done
1944 else
1945   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1946 See \`config.log' for more details." >&5
1947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1948 See \`config.log' for more details." >&2;}
1949    { (exit 1); exit 1; }; }
1950 fi
1951
1952 rm -f conftest$ac_cv_exeext
1953 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1954 echo "${ECHO_T}$ac_cv_exeext" >&6
1955
1956 rm -f conftest.$ac_ext
1957 EXEEXT=$ac_cv_exeext
1958 ac_exeext=$EXEEXT
1959 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1961 if test "${ac_cv_objext+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   cat >conftest.$ac_ext <<_ACEOF
1965 #line $LINENO "configure"
1966 /* confdefs.h.  */
1967 _ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h.  */
1971
1972 int
1973 main ()
1974 {
1975
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 rm -f conftest.o conftest.obj
1981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982   (eval $ac_compile) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); }; then
1986   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1987   case $ac_file in
1988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1989     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1990        break;;
1991   esac
1992 done
1993 else
1994   echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1998 See \`config.log' for more details." >&5
1999 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2000 See \`config.log' for more details." >&2;}
2001    { (exit 1); exit 1; }; }
2002 fi
2003
2004 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2005 fi
2006 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2007 echo "${ECHO_T}$ac_cv_objext" >&6
2008 OBJEXT=$ac_cv_objext
2009 ac_objext=$OBJEXT
2010 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2011 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2012 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   cat >conftest.$ac_ext <<_ACEOF
2016 #line $LINENO "configure"
2017 /* confdefs.h.  */
2018 _ACEOF
2019 cat confdefs.h >>conftest.$ac_ext
2020 cat >>conftest.$ac_ext <<_ACEOF
2021 /* end confdefs.h.  */
2022
2023 int
2024 main ()
2025 {
2026 #ifndef __GNUC__
2027        choke me
2028 #endif
2029
2030   ;
2031   return 0;
2032 }
2033 _ACEOF
2034 rm -f conftest.$ac_objext
2035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036   (eval $ac_compile) 2>&5
2037   ac_status=$?
2038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039   (exit $ac_status); } &&
2040          { ac_try='test -s conftest.$ac_objext'
2041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042   (eval $ac_try) 2>&5
2043   ac_status=$?
2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045   (exit $ac_status); }; }; then
2046   ac_compiler_gnu=yes
2047 else
2048   echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_compiler_gnu=no
2052 fi
2053 rm -f conftest.$ac_objext conftest.$ac_ext
2054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2055
2056 fi
2057 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2059 GCC=`test $ac_compiler_gnu = yes && echo yes`
2060 ac_test_CFLAGS=${CFLAGS+set}
2061 ac_save_CFLAGS=$CFLAGS
2062 CFLAGS="-g"
2063 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_g+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   cat >conftest.$ac_ext <<_ACEOF
2069 #line $LINENO "configure"
2070 /* confdefs.h.  */
2071 _ACEOF
2072 cat confdefs.h >>conftest.$ac_ext
2073 cat >>conftest.$ac_ext <<_ACEOF
2074 /* end confdefs.h.  */
2075
2076 int
2077 main ()
2078 {
2079
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086   (eval $ac_compile) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); } &&
2090          { ac_try='test -s conftest.$ac_objext'
2091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092   (eval $ac_try) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; }; then
2096   ac_cv_prog_cc_g=yes
2097 else
2098   echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 ac_cv_prog_cc_g=no
2102 fi
2103 rm -f conftest.$ac_objext conftest.$ac_ext
2104 fi
2105 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2107 if test "$ac_test_CFLAGS" = set; then
2108   CFLAGS=$ac_save_CFLAGS
2109 elif test $ac_cv_prog_cc_g = yes; then
2110   if test "$GCC" = yes; then
2111     CFLAGS="-g -O2"
2112   else
2113     CFLAGS="-g"
2114   fi
2115 else
2116   if test "$GCC" = yes; then
2117     CFLAGS="-O2"
2118   else
2119     CFLAGS=
2120   fi
2121 fi
2122 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2123 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2124 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2125   echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127   ac_cv_prog_cc_stdc=no
2128 ac_save_CC=$CC
2129 cat >conftest.$ac_ext <<_ACEOF
2130 #line $LINENO "configure"
2131 /* confdefs.h.  */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h.  */
2136 #include <stdarg.h>
2137 #include <stdio.h>
2138 #include <sys/types.h>
2139 #include <sys/stat.h>
2140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2141 struct buf { int x; };
2142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2143 static char *e (p, i)
2144      char **p;
2145      int i;
2146 {
2147   return p[i];
2148 }
2149 static char *f (char * (*g) (char **, int), char **p, ...)
2150 {
2151   char *s;
2152   va_list v;
2153   va_start (v,p);
2154   s = g (p, va_arg (v,int));
2155   va_end (v);
2156   return s;
2157 }
2158 int test (int i, double x);
2159 struct s1 {int (*f) (int a);};
2160 struct s2 {int (*f) (double a);};
2161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2162 int argc;
2163 char **argv;
2164 int
2165 main ()
2166 {
2167 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2168   ;
2169   return 0;
2170 }
2171 _ACEOF
2172 # Don't try gcc -ansi; that turns off useful extensions and
2173 # breaks some systems' header files.
2174 # AIX                   -qlanglvl=ansi
2175 # Ultrix and OSF/1      -std1
2176 # HP-UX 10.20 and later -Ae
2177 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2178 # SVR4                  -Xc -D__EXTENSIONS__
2179 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2180 do
2181   CC="$ac_save_CC $ac_arg"
2182   rm -f conftest.$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184   (eval $ac_compile) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); } &&
2188          { ac_try='test -s conftest.$ac_objext'
2189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190   (eval $ac_try) 2>&5
2191   ac_status=$?
2192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193   (exit $ac_status); }; }; then
2194   ac_cv_prog_cc_stdc=$ac_arg
2195 break
2196 else
2197   echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 fi
2201 rm -f conftest.$ac_objext
2202 done
2203 rm -f conftest.$ac_ext conftest.$ac_objext
2204 CC=$ac_save_CC
2205
2206 fi
2207
2208 case "x$ac_cv_prog_cc_stdc" in
2209   x|xno)
2210     echo "$as_me:$LINENO: result: none needed" >&5
2211 echo "${ECHO_T}none needed" >&6 ;;
2212   *)
2213     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2214 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2215     CC="$CC $ac_cv_prog_cc_stdc" ;;
2216 esac
2217
2218 # Some people use a C++ compiler to compile C.  Since we use `exit',
2219 # in C++ we need to declare it.  In case someone uses the same compiler
2220 # for both compiling C and C++ we need to have the C++ compiler decide
2221 # the declaration of exit, since it's the most demanding environment.
2222 cat >conftest.$ac_ext <<_ACEOF
2223 #ifndef __cplusplus
2224   choke me
2225 #endif
2226 _ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229   (eval $ac_compile) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); } &&
2233          { ac_try='test -s conftest.$ac_objext'
2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235   (eval $ac_try) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; }; then
2239   for ac_declaration in \
2240    ''\
2241    '#include <stdlib.h>' \
2242    'extern "C" void std::exit (int) throw (); using std::exit;' \
2243    'extern "C" void std::exit (int); using std::exit;' \
2244    'extern "C" void exit (int) throw ();' \
2245    'extern "C" void exit (int);' \
2246    'void exit (int);'
2247 do
2248   cat >conftest.$ac_ext <<_ACEOF
2249 #line $LINENO "configure"
2250 /* confdefs.h.  */
2251 _ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h.  */
2255 #include <stdlib.h>
2256 $ac_declaration
2257 int
2258 main ()
2259 {
2260 exit (42);
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267   (eval $ac_compile) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); } &&
2271          { ac_try='test -s conftest.$ac_objext'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277   :
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 continue
2283 fi
2284 rm -f conftest.$ac_objext conftest.$ac_ext
2285   cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2287 /* confdefs.h.  */
2288 _ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h.  */
2292 $ac_declaration
2293 int
2294 main ()
2295 {
2296 exit (42);
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303   (eval $ac_compile) 2>&5
2304   ac_status=$?
2305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306   (exit $ac_status); } &&
2307          { ac_try='test -s conftest.$ac_objext'
2308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309   (eval $ac_try) 2>&5
2310   ac_status=$?
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); }; }; then
2313   break
2314 else
2315   echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2317
2318 fi
2319 rm -f conftest.$ac_objext conftest.$ac_ext
2320 done
2321 rm -f conftest*
2322 if test -n "$ac_declaration"; then
2323   echo '#ifdef __cplusplus' >>confdefs.h
2324   echo $ac_declaration      >>confdefs.h
2325   echo '#endif'             >>confdefs.h
2326 fi
2327
2328 else
2329   echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 fi
2333 rm -f conftest.$ac_objext conftest.$ac_ext
2334 ac_ext=c
2335 ac_cpp='$CPP $CPPFLAGS'
2336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2339
2340 ac_ext=cc
2341 ac_cpp='$CXXCPP $CPPFLAGS'
2342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2345 if test -n "$ac_tool_prefix"; then
2346   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2347   do
2348     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2350 echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_prog_CXX+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   if test -n "$CXX"; then
2356   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370 done
2371
2372 fi
2373 fi
2374 CXX=$ac_cv_prog_CXX
2375 if test -n "$CXX"; then
2376   echo "$as_me:$LINENO: result: $CXX" >&5
2377 echo "${ECHO_T}$CXX" >&6
2378 else
2379   echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2381 fi
2382
2383     test -n "$CXX" && break
2384   done
2385 fi
2386 if test -z "$CXX"; then
2387   ac_ct_CXX=$CXX
2388   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2389 do
2390   # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   if test -n "$ac_ct_CXX"; then
2398   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405   for ac_exec_ext in '' $ac_executable_extensions; do
2406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407     ac_cv_prog_ac_ct_CXX="$ac_prog"
2408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409     break 2
2410   fi
2411 done
2412 done
2413
2414 fi
2415 fi
2416 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2417 if test -n "$ac_ct_CXX"; then
2418   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2419 echo "${ECHO_T}$ac_ct_CXX" >&6
2420 else
2421   echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425   test -n "$ac_ct_CXX" && break
2426 done
2427 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2428
2429   CXX=$ac_ct_CXX
2430 fi
2431
2432
2433 # Provide some information about the compiler.
2434 echo "$as_me:$LINENO:" \
2435      "checking for C++ compiler version" >&5
2436 ac_compiler=`set X $ac_compile; echo $2`
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2438   (eval $ac_compiler --version </dev/null >&5) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }
2442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2443   (eval $ac_compiler -v </dev/null >&5) 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); }
2447 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2448   (eval $ac_compiler -V </dev/null >&5) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }
2452
2453 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2454 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   cat >conftest.$ac_ext <<_ACEOF
2459 #line $LINENO "configure"
2460 /* confdefs.h.  */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h.  */
2465
2466 int
2467 main ()
2468 {
2469 #ifndef __GNUC__
2470        choke me
2471 #endif
2472
2473   ;
2474   return 0;
2475 }
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479   (eval $ac_compile) 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); } &&
2483          { ac_try='test -s conftest.$ac_objext'
2484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485   (eval $ac_try) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489   ac_compiler_gnu=yes
2490 else
2491   echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 ac_compiler_gnu=no
2495 fi
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2497 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2498
2499 fi
2500 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2501 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2502 GXX=`test $ac_compiler_gnu = yes && echo yes`
2503 ac_test_CXXFLAGS=${CXXFLAGS+set}
2504 ac_save_CXXFLAGS=$CXXFLAGS
2505 CXXFLAGS="-g"
2506 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2507 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2508 if test "${ac_cv_prog_cxx_g+set}" = set; then
2509   echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511   cat >conftest.$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2513 /* confdefs.h.  */
2514 _ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h.  */
2518
2519 int
2520 main ()
2521 {
2522
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529   (eval $ac_compile) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } &&
2533          { ac_try='test -s conftest.$ac_objext'
2534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535   (eval $ac_try) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; }; then
2539   ac_cv_prog_cxx_g=yes
2540 else
2541   echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_cv_prog_cxx_g=no
2545 fi
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2547 fi
2548 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2549 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2550 if test "$ac_test_CXXFLAGS" = set; then
2551   CXXFLAGS=$ac_save_CXXFLAGS
2552 elif test $ac_cv_prog_cxx_g = yes; then
2553   if test "$GXX" = yes; then
2554     CXXFLAGS="-g -O2"
2555   else
2556     CXXFLAGS="-g"
2557   fi
2558 else
2559   if test "$GXX" = yes; then
2560     CXXFLAGS="-O2"
2561   else
2562     CXXFLAGS=
2563   fi
2564 fi
2565 for ac_declaration in \
2566    ''\
2567    '#include <stdlib.h>' \
2568    'extern "C" void std::exit (int) throw (); using std::exit;' \
2569    'extern "C" void std::exit (int); using std::exit;' \
2570    'extern "C" void exit (int) throw ();' \
2571    'extern "C" void exit (int);' \
2572    'void exit (int);'
2573 do
2574   cat >conftest.$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2576 /* confdefs.h.  */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h.  */
2581 #include <stdlib.h>
2582 $ac_declaration
2583 int
2584 main ()
2585 {
2586 exit (42);
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593   (eval $ac_compile) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); } &&
2597          { ac_try='test -s conftest.$ac_objext'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; }; then
2603   :
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 continue
2609 fi
2610 rm -f conftest.$ac_objext conftest.$ac_ext
2611   cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618 $ac_declaration
2619 int
2620 main ()
2621 {
2622 exit (42);
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629   (eval $ac_compile) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   break
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 fi
2645 rm -f conftest.$ac_objext conftest.$ac_ext
2646 done
2647 rm -f conftest*
2648 if test -n "$ac_declaration"; then
2649   echo '#ifdef __cplusplus' >>confdefs.h
2650   echo $ac_declaration      >>confdefs.h
2651   echo '#endif'             >>confdefs.h
2652 fi
2653
2654 ac_ext=c
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660 if test "x$CC" != xcc; then
2661   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2662 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2663 else
2664   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2665 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2666 fi
2667 set dummy $CC; ac_cc=`echo $2 |
2668                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2669 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   cat >conftest.$ac_ext <<_ACEOF
2673 #line $LINENO "configure"
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679
2680 int
2681 main ()
2682 {
2683
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 # Make sure it works both with $CC and with simple cc.
2689 # We do the test twice because some compilers refuse to overwrite an
2690 # existing .o file with -o, though they will create one.
2691 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2692 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693   (eval $ac_try) 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); } &&
2697    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); };
2702 then
2703   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2704   if test "x$CC" != xcc; then
2705     # Test first that cc exists at all.
2706     if { ac_try='cc -c conftest.$ac_ext >&5'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; }; then
2712       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2713       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); };
2723       then
2724         # cc works too.
2725         :
2726       else
2727         # cc exists but doesn't like -o.
2728         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2729       fi
2730     fi
2731   fi
2732 else
2733   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2734 fi
2735 rm -f conftest*
2736
2737 fi
2738 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2739   echo "$as_me:$LINENO: result: yes" >&5
2740 echo "${ECHO_T}yes" >&6
2741 else
2742   echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2744
2745 cat >>confdefs.h <<\_ACEOF
2746 #define NO_MINUS_C_MINUS_O 1
2747 _ACEOF
2748
2749 fi
2750
2751 ac_ext=c
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2758 # On Suns, sometimes $CPP names a directory.
2759 if test -n "$CPP" && test -d "$CPP"; then
2760   CPP=
2761 fi
2762 if test -z "$CPP"; then
2763   if test "${ac_cv_prog_CPP+set}" = set; then
2764   echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766       # Double quotes because CPP needs to be expanded
2767     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2768     do
2769       ac_preproc_ok=false
2770 for ac_c_preproc_warn_flag in '' yes
2771 do
2772   # Use a header file that comes with gcc, so configuring glibc
2773   # with a fresh cross-compiler works.
2774   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2775   # <limits.h> exists even on freestanding compilers.
2776   # On the NeXT, cc -E runs the code through the compiler's parser,
2777   # not just through cpp. "Syntax error" is here to catch this case.
2778   cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785 #ifdef __STDC__
2786 # include <limits.h>
2787 #else
2788 # include <assert.h>
2789 #endif
2790                      Syntax error
2791 _ACEOF
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2794   ac_status=$?
2795   grep -v '^ *+' conftest.er1 >conftest.err
2796   rm -f conftest.er1
2797   cat conftest.err >&5
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); } >/dev/null; then
2800   if test -s conftest.err; then
2801     ac_cpp_err=$ac_c_preproc_warn_flag
2802   else
2803     ac_cpp_err=
2804   fi
2805 else
2806   ac_cpp_err=yes
2807 fi
2808 if test -z "$ac_cpp_err"; then
2809   :
2810 else
2811   echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814   # Broken: fails on valid input.
2815 continue
2816 fi
2817 rm -f conftest.err conftest.$ac_ext
2818
2819   # OK, works on sane cases.  Now check whether non-existent headers
2820   # can be detected and how.
2821   cat >conftest.$ac_ext <<_ACEOF
2822 #line $LINENO "configure"
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828 #include <ac_nonexistent.h>
2829 _ACEOF
2830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2832   ac_status=$?
2833   grep -v '^ *+' conftest.er1 >conftest.err
2834   rm -f conftest.er1
2835   cat conftest.err >&5
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); } >/dev/null; then
2838   if test -s conftest.err; then
2839     ac_cpp_err=$ac_c_preproc_warn_flag
2840   else
2841     ac_cpp_err=
2842   fi
2843 else
2844   ac_cpp_err=yes
2845 fi
2846 if test -z "$ac_cpp_err"; then
2847   # Broken: success on invalid input.
2848 continue
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853   # Passes both tests.
2854 ac_preproc_ok=:
2855 break
2856 fi
2857 rm -f conftest.err conftest.$ac_ext
2858
2859 done
2860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2861 rm -f conftest.err conftest.$ac_ext
2862 if $ac_preproc_ok; then
2863   break
2864 fi
2865
2866     done
2867     ac_cv_prog_CPP=$CPP
2868
2869 fi
2870   CPP=$ac_cv_prog_CPP
2871 else
2872   ac_cv_prog_CPP=$CPP
2873 fi
2874 echo "$as_me:$LINENO: result: $CPP" >&5
2875 echo "${ECHO_T}$CPP" >&6
2876 ac_preproc_ok=false
2877 for ac_c_preproc_warn_flag in '' yes
2878 do
2879   # Use a header file that comes with gcc, so configuring glibc
2880   # with a fresh cross-compiler works.
2881   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2882   # <limits.h> exists even on freestanding compilers.
2883   # On the NeXT, cc -E runs the code through the compiler's parser,
2884   # not just through cpp. "Syntax error" is here to catch this case.
2885   cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892 #ifdef __STDC__
2893 # include <limits.h>
2894 #else
2895 # include <assert.h>
2896 #endif
2897                      Syntax error
2898 _ACEOF
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } >/dev/null; then
2907   if test -s conftest.err; then
2908     ac_cpp_err=$ac_c_preproc_warn_flag
2909   else
2910     ac_cpp_err=
2911   fi
2912 else
2913   ac_cpp_err=yes
2914 fi
2915 if test -z "$ac_cpp_err"; then
2916   :
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921   # Broken: fails on valid input.
2922 continue
2923 fi
2924 rm -f conftest.err conftest.$ac_ext
2925
2926   # OK, works on sane cases.  Now check whether non-existent headers
2927   # can be detected and how.
2928   cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935 #include <ac_nonexistent.h>
2936 _ACEOF
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939   ac_status=$?
2940   grep -v '^ *+' conftest.er1 >conftest.err
2941   rm -f conftest.er1
2942   cat conftest.err >&5
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } >/dev/null; then
2945   if test -s conftest.err; then
2946     ac_cpp_err=$ac_c_preproc_warn_flag
2947   else
2948     ac_cpp_err=
2949   fi
2950 else
2951   ac_cpp_err=yes
2952 fi
2953 if test -z "$ac_cpp_err"; then
2954   # Broken: success on invalid input.
2955 continue
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960   # Passes both tests.
2961 ac_preproc_ok=:
2962 break
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966 done
2967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2968 rm -f conftest.err conftest.$ac_ext
2969 if $ac_preproc_ok; then
2970   :
2971 else
2972   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2975 See \`config.log' for more details." >&2;}
2976    { (exit 1); exit 1; }; }
2977 fi
2978
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984
2985
2986 echo "$as_me:$LINENO: checking for egrep" >&5
2987 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2988 if test "${ac_cv_prog_egrep+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2992     then ac_cv_prog_egrep='grep -E'
2993     else ac_cv_prog_egrep='egrep'
2994     fi
2995 fi
2996 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2997 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2998  EGREP=$ac_cv_prog_egrep
2999
3000
3001 if test $ac_cv_c_compiler_gnu = yes; then
3002     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3003 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3004 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3005   echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007     ac_pattern="Autoconf.*'x'"
3008   cat >conftest.$ac_ext <<_ACEOF
3009 #line $LINENO "configure"
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015 #include <sgtty.h>
3016 Autoconf TIOCGETP
3017 _ACEOF
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3020   ac_cv_prog_gcc_traditional=yes
3021 else
3022   ac_cv_prog_gcc_traditional=no
3023 fi
3024 rm -f conftest*
3025
3026
3027   if test $ac_cv_prog_gcc_traditional = no; then
3028     cat >conftest.$ac_ext <<_ACEOF
3029 #line $LINENO "configure"
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035 #include <termio.h>
3036 Autoconf TCGETA
3037 _ACEOF
3038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3039   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3040   ac_cv_prog_gcc_traditional=yes
3041 fi
3042 rm -f conftest*
3043
3044   fi
3045 fi
3046 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3047 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3048   if test $ac_cv_prog_gcc_traditional = yes; then
3049     CC="$CC -traditional"
3050   fi
3051 fi
3052
3053 if test x$CC = xgcc
3054 then
3055    cat >>confdefs.h <<\_ACEOF
3056 #define HAVE_GCC 1
3057 _ACEOF
3058
3059 fi
3060
3061 # Find a good install program.  We prefer a C program (faster),
3062 # so one script is as good as another.  But avoid the broken or
3063 # incompatible versions:
3064 # SysV /etc/install, /usr/sbin/install
3065 # SunOS /usr/etc/install
3066 # IRIX /sbin/install
3067 # AIX /bin/install
3068 # AmigaOS /C/install, which installs bootblocks on floppy discs
3069 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3072 # ./install, which can be erroneously created by make from ./install.sh.
3073 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3074 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3075 if test -z "$INSTALL"; then
3076 if test "${ac_cv_path_install+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082   IFS=$as_save_IFS
3083   test -z "$as_dir" && as_dir=.
3084   # Account for people who put trailing slashes in PATH elements.
3085 case $as_dir/ in
3086   ./ | .// | /cC/* | \
3087   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3088   /usr/ucb/* ) ;;
3089   *)
3090     # OSF1 and SCO ODT 3.0 have their own names for install.
3091     # Don't use installbsd from OSF since it installs stuff as root
3092     # by default.
3093     for ac_prog in ginstall scoinst install; do
3094       for ac_exec_ext in '' $ac_executable_extensions; do
3095         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3096           if test $ac_prog = install &&
3097             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098             # AIX install.  It has an incompatible calling convention.
3099             :
3100           elif test $ac_prog = install &&
3101             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3102             # program-specific install script used by HP pwplus--don't use.
3103             :
3104           else
3105             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3106             break 3
3107           fi
3108         fi
3109       done
3110     done
3111     ;;
3112 esac
3113 done
3114
3115
3116 fi
3117   if test "${ac_cv_path_install+set}" = set; then
3118     INSTALL=$ac_cv_path_install
3119   else
3120     # As a last resort, use the slow shell script.  We don't cache a
3121     # path for INSTALL within a source directory, because that will
3122     # break other packages using the cache if that directory is
3123     # removed, or if the path is relative.
3124     INSTALL=$ac_install_sh
3125   fi
3126 fi
3127 echo "$as_me:$LINENO: result: $INSTALL" >&5
3128 echo "${ECHO_T}$INSTALL" >&6
3129
3130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3131 # It thinks the first close brace ends the variable substitution.
3132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3133
3134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3135
3136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3137
3138 if test -n "$ac_tool_prefix"; then
3139   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_RANLIB+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   if test -n "$RANLIB"; then
3147   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152   IFS=$as_save_IFS
3153   test -z "$as_dir" && as_dir=.
3154   for ac_exec_ext in '' $ac_executable_extensions; do
3155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161 done
3162
3163 fi
3164 fi
3165 RANLIB=$ac_cv_prog_RANLIB
3166 if test -n "$RANLIB"; then
3167   echo "$as_me:$LINENO: result: $RANLIB" >&5
3168 echo "${ECHO_T}$RANLIB" >&6
3169 else
3170   echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3172 fi
3173
3174 fi
3175 if test -z "$ac_cv_prog_RANLIB"; then
3176   ac_ct_RANLIB=$RANLIB
3177   # Extract the first word of "ranlib", so it can be a program name with args.
3178 set dummy ranlib; ac_word=$2
3179 echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3182   echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184   if test -n "$ac_ct_RANLIB"; then
3185   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   for ac_exec_ext in '' $ac_executable_extensions; do
3193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194     ac_cv_prog_ac_ct_RANLIB="ranlib"
3195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199 done
3200
3201   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3202 fi
3203 fi
3204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3205 if test -n "$ac_ct_RANLIB"; then
3206   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3207 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3208 else
3209   echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3211 fi
3212
3213   RANLIB=$ac_ct_RANLIB
3214 else
3215   RANLIB="$ac_cv_prog_RANLIB"
3216 fi
3217
3218 # Extract the first word of "mv", so it can be a program name with args.
3219 set dummy mv; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_path_MV+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   case $MV in
3226   [\\/]* | ?:[\\/]*)
3227   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3228   ;;
3229   *)
3230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233   IFS=$as_save_IFS
3234   test -z "$as_dir" && as_dir=.
3235   for ac_exec_ext in '' $ac_executable_extensions; do
3236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239     break 2
3240   fi
3241 done
3242 done
3243
3244   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3245   ;;
3246 esac
3247 fi
3248 MV=$ac_cv_path_MV
3249
3250 if test -n "$MV"; then
3251   echo "$as_me:$LINENO: result: $MV" >&5
3252 echo "${ECHO_T}$MV" >&6
3253 else
3254   echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6
3256 fi
3257
3258 # Extract the first word of "rm", so it can be a program name with args.
3259 set dummy rm; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_path_RM+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   case $RM in
3266   [\\/]* | ?:[\\/]*)
3267   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3268   ;;
3269   *)
3270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275   for ac_exec_ext in '' $ac_executable_extensions; do
3276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282 done
3283
3284   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3285   ;;
3286 esac
3287 fi
3288 RM=$ac_cv_path_RM
3289
3290 if test -n "$RM"; then
3291   echo "$as_me:$LINENO: result: $RM" >&5
3292 echo "${ECHO_T}$RM" >&6
3293 else
3294   echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3296 fi
3297
3298 # Extract the first word of "cp", so it can be a program name with args.
3299 set dummy cp; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_CP+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   case $CP in
3306   [\\/]* | ?:[\\/]*)
3307   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3308   ;;
3309   *)
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   for ac_exec_ext in '' $ac_executable_extensions; do
3316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322 done
3323
3324   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3325   ;;
3326 esac
3327 fi
3328 CP=$ac_cv_path_CP
3329
3330 if test -n "$CP"; then
3331   echo "$as_me:$LINENO: result: $CP" >&5
3332 echo "${ECHO_T}$CP" >&6
3333 else
3334   echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3336 fi
3337
3338 # Extract the first word of "sed", so it can be a program name with args.
3339 set dummy sed; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_path_SED+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   case $SED in
3346   [\\/]* | ?:[\\/]*)
3347   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3348   ;;
3349   *)
3350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363
3364   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3365   ;;
3366 esac
3367 fi
3368 SED=$ac_cv_path_SED
3369
3370 if test -n "$SED"; then
3371   echo "$as_me:$LINENO: result: $SED" >&5
3372 echo "${ECHO_T}$SED" >&6
3373 else
3374   echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3376 fi
3377
3378 # Extract the first word of "awk", so it can be a program name with args.
3379 set dummy awk; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_path_AWK+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   case $AWK in
3386   [\\/]* | ?:[\\/]*)
3387   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3388   ;;
3389   *)
3390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395   for ac_exec_ext in '' $ac_executable_extensions; do
3396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402 done
3403
3404   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3405   ;;
3406 esac
3407 fi
3408 AWK=$ac_cv_path_AWK
3409
3410 if test -n "$AWK"; then
3411   echo "$as_me:$LINENO: result: $AWK" >&5
3412 echo "${ECHO_T}$AWK" >&6
3413 else
3414   echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3416 fi
3417
3418 # Extract the first word of "echo", so it can be a program name with args.
3419 set dummy echo; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_ECHO+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   case $ECHO in
3426   [\\/]* | ?:[\\/]*)
3427   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3428   ;;
3429   *)
3430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443
3444   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3445   ;;
3446 esac
3447 fi
3448 ECHO=$ac_cv_path_ECHO
3449
3450 if test -n "$ECHO"; then
3451   echo "$as_me:$LINENO: result: $ECHO" >&5
3452 echo "${ECHO_T}$ECHO" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 fi
3457
3458 # Extract the first word of "cmp", so it can be a program name with args.
3459 set dummy cmp; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_CMP+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   case $CMP in
3466   [\\/]* | ?:[\\/]*)
3467   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3468   ;;
3469   *)
3470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483
3484   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3485   ;;
3486 esac
3487 fi
3488 CMP=$ac_cv_path_CMP
3489
3490 if test -n "$CMP"; then
3491   echo "$as_me:$LINENO: result: $CMP" >&5
3492 echo "${ECHO_T}$CMP" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498 # Extract the first word of "tbl", so it can be a program name with args.
3499 set dummy tbl; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_TBL+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   case $TBL in
3506   [\\/]* | ?:[\\/]*)
3507   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3508   ;;
3509   *)
3510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523
3524   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3525   ;;
3526 esac
3527 fi
3528 TBL=$ac_cv_path_TBL
3529
3530 if test -n "$TBL"; then
3531   echo "$as_me:$LINENO: result: $TBL" >&5
3532 echo "${ECHO_T}$TBL" >&6
3533 else
3534   echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 fi
3537
3538 # Extract the first word of "ar", so it can be a program name with args.
3539 set dummy ar; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_AR+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   case $AR in
3546   [\\/]* | ?:[\\/]*)
3547   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3548   ;;
3549   *)
3550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555   for ac_exec_ext in '' $ac_executable_extensions; do
3556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562 done
3563
3564   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3565   ;;
3566 esac
3567 fi
3568 AR=$ac_cv_path_AR
3569
3570 if test -n "$AR"; then
3571   echo "$as_me:$LINENO: result: $AR" >&5
3572 echo "${ECHO_T}$AR" >&6
3573 else
3574   echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578 # Extract the first word of "openssl", so it can be a program name with args.
3579 set dummy openssl; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_OPENSSL+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   case $OPENSSL in
3586   [\\/]* | ?:[\\/]*)
3587   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3588   ;;
3589   *)
3590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3605   ;;
3606 esac
3607 fi
3608 OPENSSL=$ac_cv_path_OPENSSL
3609
3610 if test -n "$OPENSSL"; then
3611   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3612 echo "${ECHO_T}$OPENSSL" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618 # Extract the first word of "mtx", so it can be a program name with args.
3619 set dummy mtx; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_MTX+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   case $MTX in
3626   [\\/]* | ?:[\\/]*)
3627   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3628   ;;
3629   *)
3630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643
3644   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3645   ;;
3646 esac
3647 fi
3648 MTX=$ac_cv_path_MTX
3649
3650 if test -n "$MTX"; then
3651   echo "$as_me:$LINENO: result: $MTX" >&5
3652 echo "${ECHO_T}$MTX" >&6
3653 else
3654   echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 fi
3657
3658 # Extract the first word of "pkg-config", so it can be a program name with args.
3659 set dummy pkg-config; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   case $PKGCONFIG in
3666   [\\/]* | ?:[\\/]*)
3667   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3668   ;;
3669   *)
3670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683
3684   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3685   ;;
3686 esac
3687 fi
3688 PKGCONFIG=$ac_cv_path_PKGCONFIG
3689
3690 if test -n "$PKGCONFIG"; then
3691   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3692 echo "${ECHO_T}$PKGCONFIG" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698 # Extract the first word of "wx-config", so it can be a program name with args.
3699 set dummy wx-config; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   case $WXCONFIG in
3706   [\\/]* | ?:[\\/]*)
3707   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3708   ;;
3709   *)
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3725   ;;
3726 esac
3727 fi
3728 WXCONFIG=$ac_cv_path_WXCONFIG
3729
3730 if test -n "$WXCONFIG"; then
3731   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3732 echo "${ECHO_T}$WXCONFIG" >&6
3733 else
3734   echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738 # Extract the first word of "cdrecord", so it can be a program name with args.
3739 set dummy cdrecord; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_CDRECORD+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   case $CDRECORD in
3746   [\\/]* | ?:[\\/]*)
3747   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3748   ;;
3749   *)
3750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755   for ac_exec_ext in '' $ac_executable_extensions; do
3756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762 done
3763
3764   ;;
3765 esac
3766 fi
3767 CDRECORD=$ac_cv_path_CDRECORD
3768
3769 if test -n "$CDRECORD"; then
3770   echo "$as_me:$LINENO: result: $CDRECORD" >&5
3771 echo "${ECHO_T}$CDRECORD" >&6
3772 else
3773   echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3775 fi
3776
3777
3778 test -n "$ARFLAG" || ARFLAGS="cr"
3779
3780
3781 MAKE_SHELL=/bin/sh
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791 # Make sure we can run config.sub.
3792 $ac_config_sub sun4 >/dev/null 2>&1 ||
3793   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3794 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3795    { (exit 1); exit 1; }; }
3796
3797 echo "$as_me:$LINENO: checking build system type" >&5
3798 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3799 if test "${ac_cv_build+set}" = set; then
3800   echo $ECHO_N "(cached) $ECHO_C" >&6
3801 else
3802   ac_cv_build_alias=$build_alias
3803 test -z "$ac_cv_build_alias" &&
3804   ac_cv_build_alias=`$ac_config_guess`
3805 test -z "$ac_cv_build_alias" &&
3806   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3807 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3808    { (exit 1); exit 1; }; }
3809 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3810   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3811 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3812    { (exit 1); exit 1; }; }
3813
3814 fi
3815 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3816 echo "${ECHO_T}$ac_cv_build" >&6
3817 build=$ac_cv_build
3818 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3819 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3820 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3821
3822
3823
3824 echo "$as_me:$LINENO: checking host system type" >&5
3825 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3826 if test "${ac_cv_host+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   ac_cv_host_alias=$host_alias
3830 test -z "$ac_cv_host_alias" &&
3831   ac_cv_host_alias=$ac_cv_build_alias
3832 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3833   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3834 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3835    { (exit 1); exit 1; }; }
3836
3837 fi
3838 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3839 echo "${ECHO_T}$ac_cv_host" >&6
3840 host=$ac_cv_host
3841 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3842 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3843 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3844
3845
3846 case $host_os in
3847   *cygwin* ) CYGWIN=yes;;
3848          * ) CYGWIN=no;;
3849 esac
3850
3851 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3852 then
3853
3854
3855 if $TRUEPRG; then
3856   HAVE_SUN_OS_TRUE=
3857   HAVE_SUN_OS_FALSE='#'
3858 else
3859   HAVE_SUN_OS_TRUE='#'
3860   HAVE_SUN_OS_FALSE=
3861 fi
3862         cat >>confdefs.h <<\_ACEOF
3863 #define HAVE_SUN_OS 1
3864 _ACEOF
3865
3866 else
3867
3868
3869 if $FALSEPRG; then
3870   HAVE_SUN_OS_TRUE=
3871   HAVE_SUN_OS_FALSE='#'
3872 else
3873   HAVE_SUN_OS_TRUE='#'
3874   HAVE_SUN_OS_FALSE=
3875 fi
3876 fi
3877
3878 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3879 then
3880
3881
3882 if $TRUEPRG; then
3883   HAVE_OSF1_OS_TRUE=
3884   HAVE_OSF1_OS_FALSE='#'
3885 else
3886   HAVE_OSF1_OS_TRUE='#'
3887   HAVE_OSF1_OS_FALSE=
3888 fi
3889         cat >>confdefs.h <<\_ACEOF
3890 #define HAVE_OSF1_OS 1
3891 _ACEOF
3892
3893 else
3894
3895
3896 if $FALSEPRG; then
3897   HAVE_OSF1_OS_TRUE=
3898   HAVE_OSF1_OS_FALSE='#'
3899 else
3900   HAVE_OSF1_OS_TRUE='#'
3901   HAVE_OSF1_OS_FALSE=
3902 fi
3903 fi
3904
3905 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3906 then
3907
3908
3909 if $TRUEPRG; then
3910   HAVE_AIX_OS_TRUE=
3911   HAVE_AIX_OS_FALSE='#'
3912 else
3913   HAVE_AIX_OS_TRUE='#'
3914   HAVE_AIX_OS_FALSE=
3915 fi
3916         cat >>confdefs.h <<\_ACEOF
3917 #define HAVE_AIX_OS 1
3918 _ACEOF
3919
3920 else
3921
3922
3923 if $FALSEPRG; then
3924   HAVE_AIX_OS_TRUE=
3925   HAVE_AIX_OS_FALSE='#'
3926 else
3927   HAVE_AIX_OS_TRUE='#'
3928   HAVE_AIX_OS_FALSE=
3929 fi
3930 fi
3931
3932 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3933 then
3934
3935
3936 if $TRUEPRG; then
3937   HAVE_HPUX_OS_TRUE=
3938   HAVE_HPUX_OS_FALSE='#'
3939 else
3940   HAVE_HPUX_OS_TRUE='#'
3941   HAVE_HPUX_OS_FALSE=
3942 fi
3943         cat >>confdefs.h <<\_ACEOF
3944 #define HAVE_HPUX_OS 1
3945 _ACEOF
3946
3947 else
3948
3949
3950 if $FALSEPRG; then
3951   HAVE_HPUX_OS_TRUE=
3952   HAVE_HPUX_OS_FALSE='#'
3953 else
3954   HAVE_HPUX_OS_TRUE='#'
3955   HAVE_HPUX_OS_FALSE=
3956 fi
3957 fi
3958
3959 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3960 then
3961
3962
3963 if $TRUEPRG; then
3964   HAVE_LINUX_OS_TRUE=
3965   HAVE_LINUX_OS_FALSE='#'
3966 else
3967   HAVE_LINUX_OS_TRUE='#'
3968   HAVE_LINUX_OS_FALSE=
3969 fi
3970         cat >>confdefs.h <<\_ACEOF
3971 #define HAVE_LINUX_OS 1
3972 _ACEOF
3973
3974 else
3975
3976
3977 if $FALSEPRG; then
3978   HAVE_LINUX_OS_TRUE=
3979   HAVE_LINUX_OS_FALSE='#'
3980 else
3981   HAVE_LINUX_OS_TRUE='#'
3982   HAVE_LINUX_OS_FALSE=
3983 fi
3984 fi
3985
3986 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3987 then
3988
3989
3990 if $TRUEPRG; then
3991   HAVE_FREEBSD_OS_TRUE=
3992   HAVE_FREEBSD_OS_FALSE='#'
3993 else
3994   HAVE_FREEBSD_OS_TRUE='#'
3995   HAVE_FREEBSD_OS_FALSE=
3996 fi
3997         cat >>confdefs.h <<\_ACEOF
3998 #define HAVE_FREEBSD_OS 1
3999 _ACEOF
4000
4001 else
4002
4003
4004 if $FALSEPRG; then
4005   HAVE_FREEBSD_OS_TRUE=
4006   HAVE_FREEBSD_OS_FALSE='#'
4007 else
4008   HAVE_FREEBSD_OS_TRUE='#'
4009   HAVE_FREEBSD_OS_FALSE=
4010 fi
4011 fi
4012
4013 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4014 then
4015
4016
4017 if $TRUEPRG; then
4018   HAVE_NETBSD_OS_TRUE=
4019   HAVE_NETBSD_OS_FALSE='#'
4020 else
4021   HAVE_NETBSD_OS_TRUE='#'
4022   HAVE_NETBSD_OS_FALSE=
4023 fi
4024         cat >>confdefs.h <<\_ACEOF
4025 #define HAVE_NETBSD_OS 1
4026 _ACEOF
4027
4028 else
4029
4030
4031 if $FALSEPRG; then
4032   HAVE_NETBSD_OS_TRUE=
4033   HAVE_NETBSD_OS_FALSE='#'
4034 else
4035   HAVE_NETBSD_OS_TRUE='#'
4036   HAVE_NETBSD_OS_FALSE=
4037 fi
4038 fi
4039
4040 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4041 then
4042
4043
4044 if $TRUEPRG; then
4045   HAVE_OPENBSD_OS_TRUE=
4046   HAVE_OPENBSD_OS_FALSE='#'
4047 else
4048   HAVE_OPENBSD_OS_TRUE='#'
4049   HAVE_OPENBSD_OS_FALSE=
4050 fi
4051         cat >>confdefs.h <<\_ACEOF
4052 #define HAVE_OPENBSD_OS 1
4053 _ACEOF
4054
4055 else
4056
4057
4058 if $FALSEPRG; then
4059   HAVE_OPENBSD_OS_TRUE=
4060   HAVE_OPENBSD_OS_FALSE='#'
4061 else
4062   HAVE_OPENBSD_OS_TRUE='#'
4063   HAVE_OPENBSD_OS_FALSE=
4064 fi
4065 fi
4066
4067 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4068 then
4069
4070
4071 if $TRUEPRG; then
4072   HAVE_BSDI_OS_TRUE=
4073   HAVE_BSDI_OS_FALSE='#'
4074 else
4075   HAVE_BSDI_OS_TRUE='#'
4076   HAVE_BSDI_OS_FALSE=
4077 fi
4078         cat >>confdefs.h <<\_ACEOF
4079 #define HAVE_BSDI_OS 1
4080 _ACEOF
4081
4082 else
4083
4084
4085 if $FALSEPRG; then
4086   HAVE_BSDI_OS_TRUE=
4087   HAVE_BSDI_OS_FALSE='#'
4088 else
4089   HAVE_BSDI_OS_TRUE='#'
4090   HAVE_BSDI_OS_FALSE=
4091 fi
4092 fi
4093
4094 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4095 then
4096
4097
4098 if $TRUEPRG; then
4099   HAVE_SGI_OS_TRUE=
4100   HAVE_SGI_OS_FALSE='#'
4101 else
4102   HAVE_SGI_OS_TRUE='#'
4103   HAVE_SGI_OS_FALSE=
4104 fi
4105         cat >>confdefs.h <<\_ACEOF
4106 #define HAVE_SGI_OS 1
4107 _ACEOF
4108
4109 else
4110
4111
4112 if $FALSEPRG; then
4113   HAVE_SGI_OS_TRUE=
4114   HAVE_SGI_OS_FALSE='#'
4115 else
4116   HAVE_SGI_OS_TRUE='#'
4117   HAVE_SGI_OS_FALSE=
4118 fi
4119 fi
4120
4121 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4122 then
4123
4124
4125 if $TRUEPRG; then
4126   HAVE_IRIX_OS_TRUE=
4127   HAVE_IRIX_OS_FALSE='#'
4128 else
4129   HAVE_IRIX_OS_TRUE='#'
4130   HAVE_IRIX_OS_FALSE=
4131 fi
4132         cat >>confdefs.h <<\_ACEOF
4133 #define HAVE_IRIX_OS 1
4134 _ACEOF
4135
4136 else
4137
4138
4139 if $FALSEPRG; then
4140   HAVE_IRIX_OS_TRUE=
4141   HAVE_IRIX_OS_FALSE='#'
4142 else
4143   HAVE_IRIX_OS_TRUE='#'
4144   HAVE_IRIX_OS_FALSE=
4145 fi
4146 fi
4147
4148 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4149 then
4150
4151
4152 if $TRUEPRG; then
4153   HAVE_DARWIN_OS_TRUE=
4154   HAVE_DARWIN_OS_FALSE='#'
4155 else
4156   HAVE_DARWIN_OS_TRUE='#'
4157   HAVE_DARWIN_OS_FALSE=
4158 fi
4159     cat >>confdefs.h <<\_ACEOF
4160 #define HAVE_DARWIN_OS 1
4161 _ACEOF
4162
4163 else
4164
4165
4166 if $FALSEPRG; then
4167   HAVE_DARWIN_OS_TRUE=
4168   HAVE_DARWIN_OS_FALSE='#'
4169 else
4170   HAVE_DARWIN_OS_TRUE='#'
4171   HAVE_DARWIN_OS_FALSE=
4172 fi
4173 fi
4174
4175
4176 # -----------------------------------------------------------
4177 # ----------------------------------------------------------
4178 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4179 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4180 if test "x$DISTNAME" != "x"
4181 then
4182         echo "distname set to $DISTNAME"
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4184 then
4185         DISTNAME=alpha
4186 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4187 then
4188         DISTNAME=aix
4189 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4190 then
4191         DISTNAME=hpux
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4193 then
4194         DISTNAME=solaris
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4196 then
4197         DISTNAME=freebsd
4198 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4199 then
4200         DISTNAME=netbsd
4201 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4202 then
4203         DISTNAME=openbsd
4204 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4205 then
4206         DISTNAME=irix
4207 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4208 then
4209         DISTNAME=bsdi
4210 elif test -f /etc/SuSE-release
4211 then
4212         DISTNAME=suse
4213 elif test -d /etc/SuSEconfig
4214 then
4215         DISTNAME=suse5
4216 elif test -f /etc/mandrake-release
4217 then
4218         DISTNAME=mandrake
4219 elif test -f /etc/whitebox-release
4220 then
4221        DISTNAME=redhat
4222 elif test -f /etc/redhat-release
4223 then
4224         DISTNAME=redhat
4225 elif test -f /etc/gentoo-release
4226 then
4227         DISTNAME=gentoo
4228 elif test -f /etc/debian_version
4229 then
4230         DISTNAME=debian
4231 elif test -f /etc/slackware-version
4232 then
4233         DISTNAME=slackware
4234 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4235 then
4236     DISTNAME=darwin
4237 elif test -f /etc/engarde-version
4238 then
4239         DISTNAME=engarde
4240 elif test "$CYGWIN" = yes
4241 then
4242         DISTNAME=cygwin
4243         cat >>confdefs.h <<\_ACEOF
4244 #define HAVE_CYGWIN 1
4245 _ACEOF
4246
4247 else
4248         DISTNAME=unknown
4249 fi
4250 echo "$as_me:$LINENO: result: done" >&5
4251 echo "${ECHO_T}done" >&6
4252
4253
4254 # -----------------------------------------------------------
4255 # ----------------------------------------------------------
4256
4257
4258
4259 if false; then
4260   INSIDE_GNOME_COMMON_TRUE=
4261   INSIDE_GNOME_COMMON_FALSE='#'
4262 else
4263   INSIDE_GNOME_COMMON_TRUE='#'
4264   INSIDE_GNOME_COMMON_FALSE=
4265 fi
4266
4267         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4268
4269         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4270
4271
4272 # ------------------------------------------------------------------
4273 #  If the user has not set --prefix, we set our default to nothing.
4274 #  In this case, if the user has not set --sysconfdir, we set it
4275 #  to the package default of /etc/bacula.  If either --prefix or
4276 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4277 # ------------------------------------------------------------------
4278 if test x${prefix} = xNONE ; then
4279     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4280         sysconfdir=/etc/bacula
4281     fi
4282     prefix=
4283 fi
4284 sysconfdir=`eval echo ${sysconfdir}`
4285
4286 # -------------------------------------------------------------------------
4287 #  If the user has not set --exec-prefix, we default to ${prefix}
4288 # -------------------------------------------------------------------------
4289 if test x${exec_prefix} = xNONE ; then
4290     exec_prefix=${prefix}
4291 fi
4292
4293 # ------------------------------------------------------------------
4294 # If the user has not set --sbindir, we set our default as /sbin
4295 # ------------------------------------------------------------------
4296 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4297     sbindir=${exec_prefix}/sbin
4298 fi
4299 sbindir=`eval echo ${sbindir}`
4300
4301 # ------------------------------------------------------------------
4302 # All list of languages for which a translation exist. Each
4303 #  language is separated by a space.
4304 # ------------------------------------------------------------------
4305 ALL_LINGUAS=""
4306
4307 for ac_prog in msgfmt
4308 do
4309   # Extract the first word of "$ac_prog", so it can be a program name with args.
4310 set dummy $ac_prog; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_path_MSGFMT+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   case $MSGFMT in
4317   [\\/]* | ?:[\\/]*)
4318   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4319   ;;
4320   *)
4321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324   IFS=$as_save_IFS
4325   test -z "$as_dir" && as_dir=.
4326   for ac_exec_ext in '' $ac_executable_extensions; do
4327   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330     break 2
4331   fi
4332 done
4333 done
4334
4335   ;;
4336 esac
4337 fi
4338 MSGFMT=$ac_cv_path_MSGFMT
4339
4340 if test -n "$MSGFMT"; then
4341   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4342 echo "${ECHO_T}$MSGFMT" >&6
4343 else
4344   echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4346 fi
4347
4348   test -n "$MSGFMT" && break
4349 done
4350 test -n "$MSGFMT" || MSGFMT="no"
4351
4352 if test "$MSGFMT" = "no"
4353 then
4354    echo 'msgfmt program not found, disabling NLS !'
4355    USE_NLS=no
4356    USE_INCLUDED_LIBINTL=no
4357 #else
4358 #   AM_GNU_GETTEXT
4359 fi
4360
4361
4362 support_mysql=no
4363 support_sqlite=no
4364 support_postgresql=no
4365 support_smartalloc=yes
4366 support_readline=yes
4367 support_conio=yes
4368 support_gnome=no
4369 support_wx_console=no
4370 gnome_version=
4371 support_static_tools=no
4372 support_static_fd=no
4373 support_static_sd=no
4374 support_static_dir=no
4375 support_static_cons=no
4376 build_client_only=no
4377 cats=
4378 db_name=Internal
4379 DB_NAME=bdb
4380
4381
4382 # -------------------------------------------
4383 # gnome (default off)
4384 # -------------------------------------------
4385 # Check whether --enable-gnome or --disable-gnome was given.
4386 if test "${enable_gnome+set}" = set; then
4387   enableval="$enable_gnome"
4388   if test x$enableval = xyes; then
4389     support_gnome=yes
4390   fi
4391 fi;
4392
4393 GNOME_DIR=
4394 if test x$support_gnome = xyes; then
4395   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4396   pkg=$?
4397   if test $pkg = 0; then
4398      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4399      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4400      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4401      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4402
4403
4404
4405
4406      GNOME_DIR=src/gnome2-console
4407      gnome_version="Version 2.x"
4408   else
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4421 if test "${with_gnome_includes+set}" = set; then
4422   withval="$with_gnome_includes"
4423
4424         CFLAGS="$CFLAGS -I$withval"
4425
4426 fi;
4427
4428
4429 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4430 if test "${with_gnome_libs+set}" = set; then
4431   withval="$with_gnome_libs"
4432
4433         LDFLAGS="$LDFLAGS -L$withval"
4434         gnome_prefix=$withval
4435
4436 fi;
4437
4438
4439 # Check whether --with-gnome or --without-gnome was given.
4440 if test "${with_gnome+set}" = set; then
4441   withval="$with_gnome"
4442   if test x$withval = xyes; then
4443                         want_gnome=yes
4444                                                                         :
4445                 else
4446                         if test "x$withval" = xno; then
4447                                 want_gnome=no
4448                         else
4449                                 want_gnome=yes
4450                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4451                                 CFLAGS="$CFLAGS -I$withval/include"
4452                                 gnome_prefix=$withval/lib
4453                         fi
4454                 fi
4455 else
4456   want_gnome=yes
4457 fi;
4458
4459         if test "x$want_gnome" = xyes; then
4460
4461             # Extract the first word of "gnome-config", so it can be a program name with args.
4462 set dummy gnome-config; ac_word=$2
4463 echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   case $GNOME_CONFIG in
4469   [\\/]* | ?:[\\/]*)
4470   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4471   ;;
4472   *)
4473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476   IFS=$as_save_IFS
4477   test -z "$as_dir" && as_dir=.
4478   for ac_exec_ext in '' $ac_executable_extensions; do
4479   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482     break 2
4483   fi
4484 done
4485 done
4486
4487   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4488   ;;
4489 esac
4490 fi
4491 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4492
4493 if test -n "$GNOME_CONFIG"; then
4494   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4495 echo "${ECHO_T}$GNOME_CONFIG" >&6
4496 else
4497   echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4499 fi
4500
4501             if test "$GNOME_CONFIG" = "no"; then
4502               no_gnome_config="yes"
4503             else
4504               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4505 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4506               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4507                 echo "$as_me:$LINENO: result: yes" >&5
4508 echo "${ECHO_T}yes" >&6
4509
4510
4511         # Extract the first word of "orbit-config", so it can be a program name with args.
4512 set dummy orbit-config; ac_word=$2
4513 echo "$as_me:$LINENO: checking for $ac_word" >&5
4514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4515 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4516   echo $ECHO_N "(cached) $ECHO_C" >&6
4517 else
4518   case $ORBIT_CONFIG in
4519   [\\/]* | ?:[\\/]*)
4520   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4521   ;;
4522   *)
4523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526   IFS=$as_save_IFS
4527   test -z "$as_dir" && as_dir=.
4528   for ac_exec_ext in '' $ac_executable_extensions; do
4529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532     break 2
4533   fi
4534 done
4535 done
4536
4537   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4538   ;;
4539 esac
4540 fi
4541 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4542
4543 if test -n "$ORBIT_CONFIG"; then
4544   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4545 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4546 else
4547   echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4549 fi
4550
4551         # Extract the first word of "orbit-idl", so it can be a program name with args.
4552 set dummy orbit-idl; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   case $ORBIT_IDL in
4559   [\\/]* | ?:[\\/]*)
4560   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4561   ;;
4562   *)
4563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568   for ac_exec_ext in '' $ac_executable_extensions; do
4569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572     break 2
4573   fi
4574 done
4575 done
4576
4577   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4578   ;;
4579 esac
4580 fi
4581 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4582
4583 if test -n "$ORBIT_IDL"; then
4584   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4585 echo "${ECHO_T}$ORBIT_IDL" >&6
4586 else
4587   echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4589 fi
4590
4591         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4592 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4593 if test "${gnome_cv_orbit_found+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596
4597                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4598                         gnome_cv_orbit_found=no
4599                 else
4600                         gnome_cv_orbit_found=yes
4601                 fi
4602
4603 fi
4604 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4605 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4606
4607
4608 if test x$gnome_cv_orbit_found = xyes; then
4609   HAVE_ORBIT_TRUE=
4610   HAVE_ORBIT_FALSE='#'
4611 else
4612   HAVE_ORBIT_TRUE='#'
4613   HAVE_ORBIT_FALSE=
4614 fi
4615         if test x$gnome_cv_orbit_found = xyes; then
4616
4617                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4618                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4619
4620
4621         else
4622                 if test xfail = xfailure; then
4623                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4624 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4625    { (exit 1); exit 1; }; }
4626                 fi
4627         fi
4628
4629         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4630 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4631 if test "${gnome_cv_gnorba_found+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634
4635                 gnome_cv_gnorba_found=no
4636                 if test x$gnome_cv_orbit_found = xyes; then
4637                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4638                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4639                         if test -n "$GNORBA_LIBS"; then
4640                                 gnome_cv_gnorba_found=yes
4641                         fi
4642                 fi
4643
4644 fi
4645 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4646 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4647
4648
4649 if test x$gnome_cv_gnorba_found = xyes; then
4650   HAVE_GNORBA_TRUE=
4651   HAVE_GNORBA_FALSE='#'
4652 else
4653   HAVE_GNORBA_TRUE='#'
4654   HAVE_GNORBA_FALSE=
4655 fi
4656         if test x$gnome_cv_orbit_found = xyes; then
4657
4658                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4659                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4660
4661
4662         else
4663                 if test xfail = xfailure; then
4664                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4665 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4666    { (exit 1); exit 1; }; }
4667                 fi
4668         fi
4669
4670                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4671                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4672                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4673                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4674                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4675                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4676                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4677
4678               else
4679                 echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6
4681                 no_gnome_config="yes"
4682               fi
4683             fi
4684
4685             if test x$exec_prefix = xNONE; then
4686                 if test x$prefix = xNONE; then
4687                     gnome_prefix=$ac_default_prefix/lib
4688                 else
4689                     gnome_prefix=$prefix/lib
4690                 fi
4691             else
4692                 gnome_prefix=`eval echo \`echo $libdir\``
4693             fi
4694
4695             if test "$no_gnome_config" = "yes"; then
4696               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4697 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4698               if test -f $gnome_prefix/gnomeConf.sh; then
4699                 echo "$as_me:$LINENO: result: found" >&5
4700 echo "${ECHO_T}found" >&6
4701                 echo "loading gnome configuration from" \
4702                      "$gnome_prefix/gnomeConf.sh"
4703                 . $gnome_prefix/gnomeConf.sh
4704
4705               else
4706                 echo "$as_me:$LINENO: result: not found" >&5
4707 echo "${ECHO_T}not found" >&6
4708                 if test xfail = xfail; then
4709                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4710 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4711    { (exit 1); exit 1; }; }
4712                 fi
4713               fi
4714             fi
4715         fi
4716
4717         if test -n ""; then
4718           n=""
4719           for i in $n; do
4720             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4721 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4722             case $i in
4723               applets)
4724
4725                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4726                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4727 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4728               docklets)
4729
4730                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4731                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4732 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4733               capplet)
4734
4735                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4736                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4737 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4738               *)
4739                 echo "$as_me:$LINENO: result: unknown library" >&5
4740 echo "${ECHO_T}unknown library" >&6
4741             esac
4742             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4743             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4744           done
4745         fi
4746
4747
4748      GNOME_DIR=src/gnome-console
4749      gnome_version="Version 1.4"
4750   fi
4751 fi
4752
4753
4754
4755 # -------------------------------------------
4756 # wx-console (default off)
4757 # -------------------------------------------
4758 # Check whether --enable-wx-console or --disable-wx-console was given.
4759 if test "${enable_wx_console+set}" = set; then
4760   enableval="$enable_wx_console"
4761   if test x$enableval = xyes; then
4762     support_wx_console=yes
4763   fi
4764 fi;
4765
4766 WX_DIR=
4767 if test x$support_wx_console = xyes; then
4768   abc=`$WXCONFIG --cppflags`
4769   pkg=$?
4770   if test $pkg = 0; then
4771      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4772      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4773
4774
4775      WX_DIR=src/wx-console
4776   else
4777      echo " "
4778      echo "wx-config program not found. wx-console disabled."
4779      echo " "
4780      support_wx_console=no
4781   fi
4782 fi
4783
4784
4785
4786 # -------------------------------------------
4787 # tray-monitor (default off)
4788 # -------------------------------------------
4789 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4790 if test "${enable_tray_monitor+set}" = set; then
4791   enableval="$enable_tray_monitor"
4792   if test x$enableval = xyes; then
4793     support_tray_monitor=yes
4794   fi
4795 fi;
4796
4797 TRAY_MONITOR_DIR=
4798 if test x$support_tray_monitor = xyes; then
4799   abc=`$PKGCONFIG --exists gtk+-2.0`
4800   pkg=$?
4801   if test $pkg = 0; then
4802      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4803      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4804
4805
4806      TRAY_MONITOR_DIR=src/tray-monitor
4807      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4808      pkg=$?
4809      if test $pkg = 0; then
4810         cat >>confdefs.h <<\_ACEOF
4811 #define HAVE_GTK_2_4 1
4812 _ACEOF
4813
4814      fi
4815   fi
4816 fi
4817
4818
4819 # -------------------------------------------
4820 # smartalloc (default off)
4821 # -------------------------------------------
4822 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4823 if test "${enable_smartalloc+set}" = set; then
4824   enableval="$enable_smartalloc"
4825   if test x$enableval = xno; then
4826     support_smartalloc=no
4827   fi
4828 fi;
4829
4830 if test x$support_smartalloc = xyes; then
4831    cat >>confdefs.h <<\_ACEOF
4832 #define SMARTALLOC 1
4833 _ACEOF
4834
4835 fi
4836
4837 # -------------------------------------------
4838 # static-tools (default off)
4839 # -------------------------------------------
4840 # Check whether --enable-static-tools or --disable-static-tools was given.
4841 if test "${enable_static_tools+set}" = set; then
4842   enableval="$enable_static_tools"
4843   if test x$enableval = xyes; then
4844      support_static_tools=yes
4845    fi
4846 fi;
4847
4848 TTOOL_LDFLAGS=
4849 if test x$support_static_tools = xyes; then
4850    TTOOL_LDFLAGS="-static"
4851 fi
4852
4853
4854 # -------------------------------------------
4855 # static-fd    (default off)
4856 # -------------------------------------------
4857 # Check whether --enable-static-fd or --disable-static-fd was given.
4858 if test "${enable_static_fd+set}" = set; then
4859   enableval="$enable_static_fd"
4860   if test x$enableval = xyes; then
4861      support_static_fd=yes
4862    fi
4863 fi;
4864
4865 STATIC_FD=
4866 if test x$support_static_fd = xyes; then
4867    STATIC_FD="static-bacula-fd"
4868 fi
4869
4870
4871 # -------------------------------------------
4872 # static-sd    (default off)
4873 # -------------------------------------------
4874 # Check whether --enable-static-sd or --disable-static-sd was given.
4875 if test "${enable_static_sd+set}" = set; then
4876   enableval="$enable_static_sd"
4877   if test x$enableval = xyes; then
4878      support_static_sd=yes
4879    fi
4880 fi;
4881
4882 STATIC_SD=
4883 if test x$support_static_sd = xyes; then
4884    STATIC_SD="static-bacula-sd"
4885 fi
4886
4887
4888 # -------------------------------------------
4889 # static-dir   (default off)
4890 # -------------------------------------------
4891 # Check whether --enable-static-dir or --disable-static-dir was given.
4892 if test "${enable_static_dir+set}" = set; then
4893   enableval="$enable_static_dir"
4894   if test x$enableval = xyes; then
4895      support_static_dir=yes
4896    fi
4897 fi;
4898
4899 STATIC_DIR=
4900 if test x$support_static_dir = xyes; then
4901    STATIC_DIR="static-bacula-dir"
4902 fi
4903
4904
4905 # -------------------------------------------
4906 # static-cons  (default off)
4907 # -------------------------------------------
4908 # Check whether --enable-static-cons or --disable-static-cons was given.
4909 if test "${enable_static_cons+set}" = set; then
4910   enableval="$enable_static_cons"
4911   if test x$enableval = xyes; then
4912      support_static_cons=yes
4913    fi
4914 fi;
4915
4916 STATIC_CONS=
4917 STATIC_GNOME_CONS=
4918 STATIC_WX_CONS=
4919 if test x$support_static_cons = xyes; then
4920    STATIC_CONS="static-bconsole"
4921    STATIC_GNOME_CONS="static-gnome-console"
4922    STATIC_WX_CONS="static-wx-console"
4923 fi
4924
4925
4926
4927
4928 # -------------------------------------------
4929 # client_only  (default off)
4930 # -------------------------------------------
4931 # Check whether --enable-client-only or --disable-client-only was given.
4932 if test "${enable_client_only+set}" = set; then
4933   enableval="$enable_client_only"
4934   if test x$enableval = xyes; then
4935      build_client_only=yes
4936     db_name=None
4937     DB_NAME=none
4938    fi
4939 fi;
4940 if test x$build_client_only = xno; then
4941    ALL_DIRS="subdirs"
4942 else
4943    ALL_DIRS=""
4944 fi
4945
4946
4947 # ---------------------------------------------------
4948 # Check for conio (Bacula readline substitute)(
4949 # ---------------------------------------------------
4950 # this allows you to turn it completely off
4951 # Check whether --enable-conio or --disable-conio was given.
4952 if test "${enable_conio+set}" = set; then
4953   enableval="$enable_conio"
4954   if test x$enableval = xno; then
4955     support_conio=no
4956   fi
4957 fi;
4958
4959 got_conio="no"
4960 if test x$support_conio = xyes; then
4961    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4962 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4963 if test "${ac_cv_header_stdc+set}" = set; then
4964   echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966   cat >conftest.$ac_ext <<_ACEOF
4967 #line $LINENO "configure"
4968 /* confdefs.h.  */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h.  */
4973 #include <stdlib.h>
4974 #include <stdarg.h>
4975 #include <string.h>
4976 #include <float.h>
4977
4978 int
4979 main ()
4980 {
4981
4982   ;
4983   return 0;
4984 }
4985 _ACEOF
4986 rm -f conftest.$ac_objext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988   (eval $ac_compile) 2>&5
4989   ac_status=$?
4990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991   (exit $ac_status); } &&
4992          { ac_try='test -s conftest.$ac_objext'
4993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994   (eval $ac_try) 2>&5
4995   ac_status=$?
4996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997   (exit $ac_status); }; }; then
4998   ac_cv_header_stdc=yes
4999 else
5000   echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5002
5003 ac_cv_header_stdc=no
5004 fi
5005 rm -f conftest.$ac_objext conftest.$ac_ext
5006
5007 if test $ac_cv_header_stdc = yes; then
5008   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5009   cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016 #include <string.h>
5017
5018 _ACEOF
5019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5020   $EGREP "memchr" >/dev/null 2>&1; then
5021   :
5022 else
5023   ac_cv_header_stdc=no
5024 fi
5025 rm -f conftest*
5026
5027 fi
5028
5029 if test $ac_cv_header_stdc = yes; then
5030   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5031   cat >conftest.$ac_ext <<_ACEOF
5032 #line $LINENO "configure"
5033 /* confdefs.h.  */
5034 _ACEOF
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h.  */
5038 #include <stdlib.h>
5039
5040 _ACEOF
5041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5042   $EGREP "free" >/dev/null 2>&1; then
5043   :
5044 else
5045   ac_cv_header_stdc=no
5046 fi
5047 rm -f conftest*
5048
5049 fi
5050
5051 if test $ac_cv_header_stdc = yes; then
5052   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5053   if test "$cross_compiling" = yes; then
5054   :
5055 else
5056   cat >conftest.$ac_ext <<_ACEOF
5057 #line $LINENO "configure"
5058 /* confdefs.h.  */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h.  */
5063 #include <ctype.h>
5064 #if ((' ' & 0x0FF) == 0x020)
5065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5067 #else
5068 # define ISLOWER(c) \
5069                    (('a' <= (c) && (c) <= 'i') \
5070                      || ('j' <= (c) && (c) <= 'r') \
5071                      || ('s' <= (c) && (c) <= 'z'))
5072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5073 #endif
5074
5075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5076 int
5077 main ()
5078 {
5079   int i;
5080   for (i = 0; i < 256; i++)
5081     if (XOR (islower (i), ISLOWER (i))
5082         || toupper (i) != TOUPPER (i))
5083       exit(2);
5084   exit (0);
5085 }
5086 _ACEOF
5087 rm -f conftest$ac_exeext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5089   (eval $ac_link) 2>&5
5090   ac_status=$?
5091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094   (eval $ac_try) 2>&5
5095   ac_status=$?
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); }; }; then
5098   :
5099 else
5100   echo "$as_me: program exited with status $ac_status" >&5
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5103
5104 ( exit $ac_status )
5105 ac_cv_header_stdc=no
5106 fi
5107 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5108 fi
5109 fi
5110 fi
5111 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5112 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5113 if test $ac_cv_header_stdc = yes; then
5114
5115 cat >>confdefs.h <<\_ACEOF
5116 #define STDC_HEADERS 1
5117 _ACEOF
5118
5119 fi
5120
5121 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5132                   inttypes.h stdint.h unistd.h
5133 do
5134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5135 echo "$as_me:$LINENO: checking for $ac_header" >&5
5136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5138   echo $ECHO_N "(cached) $ECHO_C" >&6
5139 else
5140   cat >conftest.$ac_ext <<_ACEOF
5141 #line $LINENO "configure"
5142 /* confdefs.h.  */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h.  */
5147 $ac_includes_default
5148
5149 #include <$ac_header>
5150 _ACEOF
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153   (eval $ac_compile) 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); } &&
5157          { ac_try='test -s conftest.$ac_objext'
5158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159   (eval $ac_try) 2>&5
5160   ac_status=$?
5161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162   (exit $ac_status); }; }; then
5163   eval "$as_ac_Header=yes"
5164 else
5165   echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5167
5168 eval "$as_ac_Header=no"
5169 fi
5170 rm -f conftest.$ac_objext conftest.$ac_ext
5171 fi
5172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5175   cat >>confdefs.h <<_ACEOF
5176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5177 _ACEOF
5178
5179 fi
5180
5181 done
5182
5183
5184 if test "${ac_cv_header_termcap_h+set}" = set; then
5185   echo "$as_me:$LINENO: checking for termcap.h" >&5
5186 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5187 if test "${ac_cv_header_termcap_h+set}" = set; then
5188   echo $ECHO_N "(cached) $ECHO_C" >&6
5189 fi
5190 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5191 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5192 else
5193   # Is the header compilable?
5194 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5195 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5196 cat >conftest.$ac_ext <<_ACEOF
5197 #line $LINENO "configure"
5198 /* confdefs.h.  */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h.  */
5203 $ac_includes_default
5204 #include <termcap.h>
5205 _ACEOF
5206 rm -f conftest.$ac_objext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208   (eval $ac_compile) 2>&5
5209   ac_status=$?
5210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211   (exit $ac_status); } &&
5212          { ac_try='test -s conftest.$ac_objext'
5213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214   (eval $ac_try) 2>&5
5215   ac_status=$?
5216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); }; }; then
5218   ac_header_compiler=yes
5219 else
5220   echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223 ac_header_compiler=no
5224 fi
5225 rm -f conftest.$ac_objext conftest.$ac_ext
5226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5227 echo "${ECHO_T}$ac_header_compiler" >&6
5228
5229 # Is the header present?
5230 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5231 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5232 cat >conftest.$ac_ext <<_ACEOF
5233 #line $LINENO "configure"
5234 /* confdefs.h.  */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h.  */
5239 #include <termcap.h>
5240 _ACEOF
5241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5243   ac_status=$?
5244   grep -v '^ *+' conftest.er1 >conftest.err
5245   rm -f conftest.er1
5246   cat conftest.err >&5
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); } >/dev/null; then
5249   if test -s conftest.err; then
5250     ac_cpp_err=$ac_c_preproc_warn_flag
5251   else
5252     ac_cpp_err=
5253   fi
5254 else
5255   ac_cpp_err=yes
5256 fi
5257 if test -z "$ac_cpp_err"; then
5258   ac_header_preproc=yes
5259 else
5260   echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5262
5263   ac_header_preproc=no
5264 fi
5265 rm -f conftest.err conftest.$ac_ext
5266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5267 echo "${ECHO_T}$ac_header_preproc" >&6
5268
5269 # So?  What about this header?
5270 case $ac_header_compiler:$ac_header_preproc in
5271   yes:no )
5272     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5273 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5274     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5275 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5276     (
5277       cat <<\_ASBOX
5278 ## ------------------------------------ ##
5279 ## Report this to bug-autoconf@gnu.org. ##
5280 ## ------------------------------------ ##
5281 _ASBOX
5282     ) |
5283       sed "s/^/$as_me: WARNING:     /" >&2
5284     ;;
5285   no:yes )
5286     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5287 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5288     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5289 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5290     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5291 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5292     (
5293       cat <<\_ASBOX
5294 ## ------------------------------------ ##
5295 ## Report this to bug-autoconf@gnu.org. ##
5296 ## ------------------------------------ ##
5297 _ASBOX
5298     ) |
5299       sed "s/^/$as_me: WARNING:     /" >&2
5300     ;;
5301 esac
5302 echo "$as_me:$LINENO: checking for termcap.h" >&5
5303 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5304 if test "${ac_cv_header_termcap_h+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   ac_cv_header_termcap_h=$ac_header_preproc
5308 fi
5309 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5310 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5311
5312 fi
5313 if test $ac_cv_header_termcap_h = yes; then
5314    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5315 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5316 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5317   echo $ECHO_N "(cached) $ECHO_C" >&6
5318 else
5319   ac_check_lib_save_LIBS=$LIBS
5320 LIBS="-ltermcap  $LIBS"
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5323 /* confdefs.h.  */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h.  */
5328
5329 /* Override any gcc2 internal prototype to avoid an error.  */
5330 #ifdef __cplusplus
5331 extern "C"
5332 #endif
5333 /* We use char because int might match the return type of a gcc2
5334    builtin and then its argument prototype would still apply.  */
5335 char tgetent ();
5336 int
5337 main ()
5338 {
5339 tgetent ();
5340   ;
5341   return 0;
5342 }
5343 _ACEOF
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346   (eval $ac_link) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } &&
5350          { ac_try='test -s conftest$ac_exeext'
5351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352   (eval $ac_try) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }; }; then
5356   ac_cv_lib_termcap_tgetent=yes
5357 else
5358   echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5360
5361 ac_cv_lib_termcap_tgetent=no
5362 fi
5363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364 LIBS=$ac_check_lib_save_LIBS
5365 fi
5366 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5367 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5368 if test $ac_cv_lib_termcap_tgetent = yes; then
5369    CONS_LIBS="-ltermcap"
5370          CONS_OBJ="conio.o"
5371          CONS_SRC="conio.c"
5372          got_conio="yes"
5373          support_readline=no
5374
5375 cat >>confdefs.h <<\_ACEOF
5376 #define HAVE_CONIO 1
5377 _ACEOF
5378
5379
5380 else
5381    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5382 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5383 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5384   echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386   ac_check_lib_save_LIBS=$LIBS
5387 LIBS="-lncurses  $LIBS"
5388 cat >conftest.$ac_ext <<_ACEOF
5389 #line $LINENO "configure"
5390 /* confdefs.h.  */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h.  */
5395
5396 /* Override any gcc2 internal prototype to avoid an error.  */
5397 #ifdef __cplusplus
5398 extern "C"
5399 #endif
5400 /* We use char because int might match the return type of a gcc2
5401    builtin and then its argument prototype would still apply.  */
5402 char tgetent ();
5403 int
5404 main ()
5405 {
5406 tgetent ();
5407   ;
5408   return 0;
5409 }
5410 _ACEOF
5411 rm -f conftest.$ac_objext conftest$ac_exeext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5413   (eval $ac_link) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); } &&
5417          { ac_try='test -s conftest$ac_exeext'
5418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419   (eval $ac_try) 2>&5
5420   ac_status=$?
5421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422   (exit $ac_status); }; }; then
5423   ac_cv_lib_ncurses_tgetent=yes
5424 else
5425   echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5427
5428 ac_cv_lib_ncurses_tgetent=no
5429 fi
5430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5431 LIBS=$ac_check_lib_save_LIBS
5432 fi
5433 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5434 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5435 if test $ac_cv_lib_ncurses_tgetent = yes; then
5436    CONS_LIBS="-lncurses"
5437            CONS_OBJ="conio.o"
5438            CONS_SRC="conio.c"
5439            got_conio="yes"
5440            support_readline=no
5441
5442 cat >>confdefs.h <<\_ACEOF
5443 #define HAVE_CONIO 1
5444 _ACEOF
5445
5446
5447 else
5448    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5449 fi
5450
5451
5452 fi
5453
5454
5455 else
5456   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5457 fi
5458
5459
5460 fi
5461
5462
5463 # ---------------------------------------------------
5464 # Check for readline support/directory (default off)
5465 # ---------------------------------------------------
5466 # this allows you to turn it completely off
5467 # Check whether --enable-readline or --disable-readline was given.
5468 if test "${enable_readline+set}" = set; then
5469   enableval="$enable_readline"
5470   if test x$enableval = xno; then
5471     support_readline=no
5472   fi
5473 fi;
5474
5475 got_readline="no"
5476 READLINE_SRC=
5477 if test x$support_readline = xyes; then
5478
5479 # Check whether --with-readline or --without-readline was given.
5480 if test "${with_readline+set}" = set; then
5481   withval="$with_readline"
5482
5483         case "$with_readline" in
5484         no) : ;;
5485         yes|*)
5486           if test "$with_readline" != "yes"; then
5487             CONS_INC="-I${with_readline}"
5488             CONS_LDFLAGS="-L$with_readline"
5489           else
5490              with_readline="/usr/include/readline"
5491           fi
5492           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5494   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5495 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5497   echo $ECHO_N "(cached) $ECHO_C" >&6
5498 fi
5499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5501 else
5502   # Is the header compilable?
5503 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5504 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5505 cat >conftest.$ac_ext <<_ACEOF
5506 #line $LINENO "configure"
5507 /* confdefs.h.  */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h.  */
5512 $ac_includes_default
5513 #include <${with_readline}/readline.h>
5514 _ACEOF
5515 rm -f conftest.$ac_objext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5517   (eval $ac_compile) 2>&5
5518   ac_status=$?
5519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520   (exit $ac_status); } &&
5521          { ac_try='test -s conftest.$ac_objext'
5522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5523   (eval $ac_try) 2>&5
5524   ac_status=$?
5525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526   (exit $ac_status); }; }; then
5527   ac_header_compiler=yes
5528 else
5529   echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5531
5532 ac_header_compiler=no
5533 fi
5534 rm -f conftest.$ac_objext conftest.$ac_ext
5535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5536 echo "${ECHO_T}$ac_header_compiler" >&6
5537
5538 # Is the header present?
5539 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5540 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5541 cat >conftest.$ac_ext <<_ACEOF
5542 #line $LINENO "configure"
5543 /* confdefs.h.  */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h.  */
5548 #include <${with_readline}/readline.h>
5549 _ACEOF
5550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5551   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5552   ac_status=$?
5553   grep -v '^ *+' conftest.er1 >conftest.err
5554   rm -f conftest.er1
5555   cat conftest.err >&5
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); } >/dev/null; then
5558   if test -s conftest.err; then
5559     ac_cpp_err=$ac_c_preproc_warn_flag
5560   else
5561     ac_cpp_err=
5562   fi
5563 else
5564   ac_cpp_err=yes
5565 fi
5566 if test -z "$ac_cpp_err"; then
5567   ac_header_preproc=yes
5568 else
5569   echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572   ac_header_preproc=no
5573 fi
5574 rm -f conftest.err conftest.$ac_ext
5575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5576 echo "${ECHO_T}$ac_header_preproc" >&6
5577
5578 # So?  What about this header?
5579 case $ac_header_compiler:$ac_header_preproc in
5580   yes:no )
5581     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5582 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5583     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5584 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5585     (
5586       cat <<\_ASBOX
5587 ## ------------------------------------ ##
5588 ## Report this to bug-autoconf@gnu.org. ##
5589 ## ------------------------------------ ##
5590 _ASBOX
5591     ) |
5592       sed "s/^/$as_me: WARNING:     /" >&2
5593     ;;
5594   no:yes )
5595     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5596 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5597     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5598 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5599     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5600 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5601     (
5602       cat <<\_ASBOX
5603 ## ------------------------------------ ##
5604 ## Report this to bug-autoconf@gnu.org. ##
5605 ## ------------------------------------ ##
5606 _ASBOX
5607     ) |
5608       sed "s/^/$as_me: WARNING:     /" >&2
5609     ;;
5610 esac
5611 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5612 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5614   echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616   eval "$as_ac_Header=$ac_header_preproc"
5617 fi
5618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5620
5621 fi
5622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5623    cat >>confdefs.h <<\_ACEOF
5624 #define HAVE_READLINE 1
5625 _ACEOF
5626
5627                CONS_LIBS="-lreadline -ltermcap"
5628                got_readline="yes"
5629
5630 else
5631    echo " "
5632                echo "readline.h not found. readline turned off ..."
5633                echo " "
5634
5635
5636 fi
5637
5638
5639           ;;
5640         esac
5641
5642 else
5643
5644        # check for standard readline library
5645        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5646   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5647 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5648 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5649   echo $ECHO_N "(cached) $ECHO_C" >&6
5650 fi
5651 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5652 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5653 else
5654   # Is the header compilable?
5655 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5656 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5657 cat >conftest.$ac_ext <<_ACEOF
5658 #line $LINENO "configure"
5659 /* confdefs.h.  */
5660 _ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h.  */
5664 $ac_includes_default
5665 #include </usr/include/readline/readline.h>
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669   (eval $ac_compile) 2>&5
5670   ac_status=$?
5671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672   (exit $ac_status); } &&
5673          { ac_try='test -s conftest.$ac_objext'
5674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675   (eval $ac_try) 2>&5
5676   ac_status=$?
5677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678   (exit $ac_status); }; }; then
5679   ac_header_compiler=yes
5680 else
5681   echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684 ac_header_compiler=no
5685 fi
5686 rm -f conftest.$ac_objext conftest.$ac_ext
5687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5688 echo "${ECHO_T}$ac_header_compiler" >&6
5689
5690 # Is the header present?
5691 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5692 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5693 cat >conftest.$ac_ext <<_ACEOF
5694 #line $LINENO "configure"
5695 /* confdefs.h.  */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h.  */
5700 #include </usr/include/readline/readline.h>
5701 _ACEOF
5702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5703   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } >/dev/null; then
5710   if test -s conftest.err; then
5711     ac_cpp_err=$ac_c_preproc_warn_flag
5712   else
5713     ac_cpp_err=
5714   fi
5715 else
5716   ac_cpp_err=yes
5717 fi
5718 if test -z "$ac_cpp_err"; then
5719   ac_header_preproc=yes
5720 else
5721   echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5723
5724   ac_header_preproc=no
5725 fi
5726 rm -f conftest.err conftest.$ac_ext
5727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5728 echo "${ECHO_T}$ac_header_preproc" >&6
5729
5730 # So?  What about this header?
5731 case $ac_header_compiler:$ac_header_preproc in
5732   yes:no )
5733     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5734 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5735     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5736 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5737     (
5738       cat <<\_ASBOX
5739 ## ------------------------------------ ##
5740 ## Report this to bug-autoconf@gnu.org. ##
5741 ## ------------------------------------ ##
5742 _ASBOX
5743     ) |
5744       sed "s/^/$as_me: WARNING:     /" >&2
5745     ;;
5746   no:yes )
5747     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5748 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5749     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5750 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5751     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5752 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5753     (
5754       cat <<\_ASBOX
5755 ## ------------------------------------ ##
5756 ## Report this to bug-autoconf@gnu.org. ##
5757 ## ------------------------------------ ##
5758 _ASBOX
5759     ) |
5760       sed "s/^/$as_me: WARNING:     /" >&2
5761     ;;
5762 esac
5763 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5764 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5765 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5766   echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5769 fi
5770 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5771 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5772
5773 fi
5774 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5775    cat >>confdefs.h <<\_ACEOF
5776 #define HAVE_READLINE 1
5777 _ACEOF
5778
5779            got_readline="yes"
5780            CONS_INC="-I/usr/include/readline"
5781            CONS_LIBS="-lreadline -ltermcap"
5782
5783 else
5784
5785            # Did not find standard library, so try Bacula's default
5786             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5788   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5789 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5791   echo $ECHO_N "(cached) $ECHO_C" >&6
5792 fi
5793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5795 else
5796   # Is the header compilable?
5797 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5798 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5799 cat >conftest.$ac_ext <<_ACEOF
5800 #line $LINENO "configure"
5801 /* confdefs.h.  */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h.  */
5806 $ac_includes_default
5807 #include <${TOP_DIR}/depkgs/readline/readline.h>
5808 _ACEOF
5809 rm -f conftest.$ac_objext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811   (eval $ac_compile) 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } &&
5815          { ac_try='test -s conftest.$ac_objext'
5816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817   (eval $ac_try) 2>&5
5818   ac_status=$?
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); }; }; then
5821   ac_header_compiler=yes
5822 else
5823   echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5825
5826 ac_header_compiler=no
5827 fi
5828 rm -f conftest.$ac_objext conftest.$ac_ext
5829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5830 echo "${ECHO_T}$ac_header_compiler" >&6
5831
5832 # Is the header present?
5833 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5834 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5835 cat >conftest.$ac_ext <<_ACEOF
5836 #line $LINENO "configure"
5837 /* confdefs.h.  */
5838 _ACEOF
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h.  */
5842 #include <${TOP_DIR}/depkgs/readline/readline.h>
5843 _ACEOF
5844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5845   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5846   ac_status=$?
5847   grep -v '^ *+' conftest.er1 >conftest.err
5848   rm -f conftest.er1
5849   cat conftest.err >&5
5850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); } >/dev/null; then
5852   if test -s conftest.err; then
5853     ac_cpp_err=$ac_c_preproc_warn_flag
5854   else
5855     ac_cpp_err=
5856   fi
5857 else
5858   ac_cpp_err=yes
5859 fi
5860 if test -z "$ac_cpp_err"; then
5861   ac_header_preproc=yes
5862 else
5863   echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5865
5866   ac_header_preproc=no
5867 fi
5868 rm -f conftest.err conftest.$ac_ext
5869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5870 echo "${ECHO_T}$ac_header_preproc" >&6
5871
5872 # So?  What about this header?
5873 case $ac_header_compiler:$ac_header_preproc in
5874   yes:no )
5875     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5876 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5877     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5878 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5879     (
5880       cat <<\_ASBOX
5881 ## ------------------------------------ ##
5882 ## Report this to bug-autoconf@gnu.org. ##
5883 ## ------------------------------------ ##
5884 _ASBOX
5885     ) |
5886       sed "s/^/$as_me: WARNING:     /" >&2
5887     ;;
5888   no:yes )
5889     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5890 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5891     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5892 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5893     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5894 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5895     (
5896       cat <<\_ASBOX
5897 ## ------------------------------------ ##
5898 ## Report this to bug-autoconf@gnu.org. ##
5899 ## ------------------------------------ ##
5900 _ASBOX
5901     ) |
5902       sed "s/^/$as_me: WARNING:     /" >&2
5903     ;;
5904 esac
5905 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5906 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5908   echo $ECHO_N "(cached) $ECHO_C" >&6
5909 else
5910   eval "$as_ac_Header=$ac_header_preproc"
5911 fi
5912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5914
5915 fi
5916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5917    cat >>confdefs.h <<\_ACEOF
5918 #define HAVE_READLINE 1
5919 _ACEOF
5920
5921                  got_readline="yes"
5922                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5923                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5924                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5925                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5926
5927 else
5928    echo " "
5929                 echo "readline.h not found. readline turned off ..."
5930                 echo " "
5931
5932
5933 fi
5934
5935
5936
5937
5938 fi
5939
5940
5941
5942
5943 fi;
5944 fi
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955 # Minimal stuff for readline Makefile configuration
5956 MAKE_SHELL=/bin/sh
5957
5958 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5959 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5960 if test "${ac_cv_header_stat_broken+set}" = set; then
5961   echo $ECHO_N "(cached) $ECHO_C" >&6
5962 else
5963   cat >conftest.$ac_ext <<_ACEOF
5964 #line $LINENO "configure"
5965 /* confdefs.h.  */
5966 _ACEOF
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h.  */
5970 #include <sys/types.h>
5971 #include <sys/stat.h>
5972
5973 #if defined(S_ISBLK) && defined(S_IFDIR)
5974 # if S_ISBLK (S_IFDIR)
5975 You lose.
5976 # endif
5977 #endif
5978
5979 #if defined(S_ISBLK) && defined(S_IFCHR)
5980 # if S_ISBLK (S_IFCHR)
5981 You lose.
5982 # endif
5983 #endif
5984
5985 #if defined(S_ISLNK) && defined(S_IFREG)
5986 # if S_ISLNK (S_IFREG)
5987 You lose.
5988 # endif
5989 #endif
5990
5991 #if defined(S_ISSOCK) && defined(S_IFREG)
5992 # if S_ISSOCK (S_IFREG)
5993 You lose.
5994 # endif
5995 #endif
5996
5997 _ACEOF
5998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5999   $EGREP "You lose" >/dev/null 2>&1; then
6000   ac_cv_header_stat_broken=yes
6001 else
6002   ac_cv_header_stat_broken=no
6003 fi
6004 rm -f conftest*
6005
6006 fi
6007 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6008 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6009 if test $ac_cv_header_stat_broken = yes; then
6010
6011 cat >>confdefs.h <<\_ACEOF
6012 #define STAT_MACROS_BROKEN 1
6013 _ACEOF
6014
6015 fi
6016
6017
6018
6019
6020
6021
6022 ac_header_dirent=no
6023 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6024   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6025 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6026 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6028   echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030   cat >conftest.$ac_ext <<_ACEOF
6031 #line $LINENO "configure"
6032 /* confdefs.h.  */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h.  */
6037 #include <sys/types.h>
6038 #include <$ac_hdr>
6039
6040 int
6041 main ()
6042 {
6043 if ((DIR *) 0)
6044 return 0;
6045   ;
6046   return 0;
6047 }
6048 _ACEOF
6049 rm -f conftest.$ac_objext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6051   (eval $ac_compile) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); } &&
6055          { ac_try='test -s conftest.$ac_objext'
6056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057   (eval $ac_try) 2>&5
6058   ac_status=$?
6059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); }; }; then
6061   eval "$as_ac_Header=yes"
6062 else
6063   echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 eval "$as_ac_Header=no"
6067 fi
6068 rm -f conftest.$ac_objext conftest.$ac_ext
6069 fi
6070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6073   cat >>confdefs.h <<_ACEOF
6074 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6075 _ACEOF
6076
6077 ac_header_dirent=$ac_hdr; break
6078 fi
6079
6080 done
6081 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6082 if test $ac_header_dirent = dirent.h; then
6083   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6084 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6085 if test "${ac_cv_search_opendir+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   ac_func_search_save_LIBS=$LIBS
6089 ac_cv_search_opendir=no
6090 cat >conftest.$ac_ext <<_ACEOF
6091 #line $LINENO "configure"
6092 /* confdefs.h.  */
6093 _ACEOF
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h.  */
6097
6098 /* Override any gcc2 internal prototype to avoid an error.  */
6099 #ifdef __cplusplus
6100 extern "C"
6101 #endif
6102 /* We use char because int might match the return type of a gcc2
6103    builtin and then its argument prototype would still apply.  */
6104 char opendir ();
6105 int
6106 main ()
6107 {
6108 opendir ();
6109   ;
6110   return 0;
6111 }
6112 _ACEOF
6113 rm -f conftest.$ac_objext conftest$ac_exeext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6115   (eval $ac_link) 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } &&
6119          { ac_try='test -s conftest$ac_exeext'
6120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121   (eval $ac_try) 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); }; }; then
6125   ac_cv_search_opendir="none required"
6126 else
6127   echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6129
6130 fi
6131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6132 if test "$ac_cv_search_opendir" = no; then
6133   for ac_lib in dir; do
6134     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6135     cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6137 /* confdefs.h.  */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h.  */
6142
6143 /* Override any gcc2 internal prototype to avoid an error.  */
6144 #ifdef __cplusplus
6145 extern "C"
6146 #endif
6147 /* We use char because int might match the return type of a gcc2
6148    builtin and then its argument prototype would still apply.  */
6149 char opendir ();
6150 int
6151 main ()
6152 {
6153 opendir ();
6154   ;
6155   return 0;
6156 }
6157 _ACEOF
6158 rm -f conftest.$ac_objext conftest$ac_exeext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6160   (eval $ac_link) 2>&5
6161   ac_status=$?
6162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163   (exit $ac_status); } &&
6164          { ac_try='test -s conftest$ac_exeext'
6165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166   (eval $ac_try) 2>&5
6167   ac_status=$?
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); }; }; then
6170   ac_cv_search_opendir="-l$ac_lib"
6171 break
6172 else
6173   echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6175
6176 fi
6177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6178   done
6179 fi
6180 LIBS=$ac_func_search_save_LIBS
6181 fi
6182 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6183 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6184 if test "$ac_cv_search_opendir" != no; then
6185   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6186
6187 fi
6188
6189 else
6190   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6191 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6192 if test "${ac_cv_search_opendir+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195   ac_func_search_save_LIBS=$LIBS
6196 ac_cv_search_opendir=no
6197 cat >conftest.$ac_ext <<_ACEOF
6198 #line $LINENO "configure"
6199 /* confdefs.h.  */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h.  */
6204
6205 /* Override any gcc2 internal prototype to avoid an error.  */
6206 #ifdef __cplusplus
6207 extern "C"
6208 #endif
6209 /* We use char because int might match the return type of a gcc2
6210    builtin and then its argument prototype would still apply.  */
6211 char opendir ();
6212 int
6213 main ()
6214 {
6215 opendir ();
6216   ;
6217   return 0;
6218 }
6219 _ACEOF
6220 rm -f conftest.$ac_objext conftest$ac_exeext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6222   (eval $ac_link) 2>&5
6223   ac_status=$?
6224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225   (exit $ac_status); } &&
6226          { ac_try='test -s conftest$ac_exeext'
6227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228   (eval $ac_try) 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); }; }; then
6232   ac_cv_search_opendir="none required"
6233 else
6234   echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6236
6237 fi
6238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6239 if test "$ac_cv_search_opendir" = no; then
6240   for ac_lib in x; do
6241     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6242     cat >conftest.$ac_ext <<_ACEOF
6243 #line $LINENO "configure"
6244 /* confdefs.h.  */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h.  */
6249
6250 /* Override any gcc2 internal prototype to avoid an error.  */
6251 #ifdef __cplusplus
6252 extern "C"
6253 #endif
6254 /* We use char because int might match the return type of a gcc2
6255    builtin and then its argument prototype would still apply.  */
6256 char opendir ();
6257 int
6258 main ()
6259 {
6260 opendir ();
6261   ;
6262   return 0;
6263 }
6264 _ACEOF
6265 rm -f conftest.$ac_objext conftest$ac_exeext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267   (eval $ac_link) 2>&5
6268   ac_status=$?
6269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270   (exit $ac_status); } &&
6271          { ac_try='test -s conftest$ac_exeext'
6272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273   (eval $ac_try) 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); }; }; then
6277   ac_cv_search_opendir="-l$ac_lib"
6278 break
6279 else
6280   echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6282
6283 fi
6284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6285   done
6286 fi
6287 LIBS=$ac_func_search_save_LIBS
6288 fi
6289 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6290 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6291 if test "$ac_cv_search_opendir" != no; then
6292   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6293
6294 fi
6295
6296 fi
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6307 do
6308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6309 echo "$as_me:$LINENO: checking for $ac_func" >&5
6310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6311 if eval "test \"\${$as_ac_var+set}\" = set"; then
6312   echo $ECHO_N "(cached) $ECHO_C" >&6
6313 else
6314   cat >conftest.$ac_ext <<_ACEOF
6315 #line $LINENO "configure"
6316 /* confdefs.h.  */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h.  */
6321 /* System header to define __stub macros and hopefully few prototypes,
6322     which can conflict with char $ac_func (); below.
6323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6324     <limits.h> exists even on freestanding compilers.  */
6325 #ifdef __STDC__
6326 # include <limits.h>
6327 #else
6328 # include <assert.h>
6329 #endif
6330 /* Override any gcc2 internal prototype to avoid an error.  */
6331 #ifdef __cplusplus
6332 extern "C"
6333 {
6334 #endif
6335 /* We use char because int might match the return type of a gcc2
6336    builtin and then its argument prototype would still apply.  */
6337 char $ac_func ();
6338 /* The GNU C library defines this for functions which it implements
6339     to always fail with ENOSYS.  Some functions are actually named
6340     something starting with __ and the normal name is an alias.  */
6341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6342 choke me
6343 #else
6344 char (*f) () = $ac_func;
6345 #endif
6346 #ifdef __cplusplus
6347 }
6348 #endif
6349
6350 int
6351 main ()
6352 {
6353 return f != $ac_func;
6354   ;
6355   return 0;
6356 }
6357 _ACEOF
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360   (eval $ac_link) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } &&
6364          { ac_try='test -s conftest$ac_exeext'
6365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366   (eval $ac_try) 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }; }; then
6370   eval "$as_ac_var=yes"
6371 else
6372   echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375 eval "$as_ac_var=no"
6376 fi
6377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6378 fi
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6381 if test `eval echo '${'$as_ac_var'}'` = yes; then
6382   cat >>confdefs.h <<_ACEOF
6383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6384 _ACEOF
6385
6386 fi
6387 done
6388
6389
6390
6391 for ac_func in nanosleep nl_langinfo
6392 do
6393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6394 echo "$as_me:$LINENO: checking for $ac_func" >&5
6395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6396 if eval "test \"\${$as_ac_var+set}\" = set"; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
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 /* System header to define __stub macros and hopefully few prototypes,
6407     which can conflict with char $ac_func (); below.
6408     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6409     <limits.h> exists even on freestanding compilers.  */
6410 #ifdef __STDC__
6411 # include <limits.h>
6412 #else
6413 # include <assert.h>
6414 #endif
6415 /* Override any gcc2 internal prototype to avoid an error.  */
6416 #ifdef __cplusplus
6417 extern "C"
6418 {
6419 #endif
6420 /* We use char because int might match the return type of a gcc2
6421    builtin and then its argument prototype would still apply.  */
6422 char $ac_func ();
6423 /* The GNU C library defines this for functions which it implements
6424     to always fail with ENOSYS.  Some functions are actually named
6425     something starting with __ and the normal name is an alias.  */
6426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6427 choke me
6428 #else
6429 char (*f) () = $ac_func;
6430 #endif
6431 #ifdef __cplusplus
6432 }
6433 #endif
6434
6435 int
6436 main ()
6437 {
6438 return f != $ac_func;
6439   ;
6440   return 0;
6441 }
6442 _ACEOF
6443 rm -f conftest.$ac_objext conftest$ac_exeext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445   (eval $ac_link) 2>&5
6446   ac_status=$?
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); } &&
6449          { ac_try='test -s conftest$ac_exeext'
6450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451   (eval $ac_try) 2>&5
6452   ac_status=$?
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); }; }; then
6455   eval "$as_ac_var=yes"
6456 else
6457   echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6459
6460 eval "$as_ac_var=no"
6461 fi
6462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6463 fi
6464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6466 if test `eval echo '${'$as_ac_var'}'` = yes; then
6467   cat >>confdefs.h <<_ACEOF
6468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6469 _ACEOF
6470
6471 fi
6472 done
6473
6474
6475 for ac_header in varargs.h
6476 do
6477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6479   echo "$as_me:$LINENO: checking for $ac_header" >&5
6480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 fi
6484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6486 else
6487   # Is the header compilable?
6488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6490 cat >conftest.$ac_ext <<_ACEOF
6491 #line $LINENO "configure"
6492 /* confdefs.h.  */
6493 _ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h.  */
6497 $ac_includes_default
6498 #include <$ac_header>
6499 _ACEOF
6500 rm -f conftest.$ac_objext
6501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6502   (eval $ac_compile) 2>&5
6503   ac_status=$?
6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505   (exit $ac_status); } &&
6506          { ac_try='test -s conftest.$ac_objext'
6507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6508   (eval $ac_try) 2>&5
6509   ac_status=$?
6510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); }; }; then
6512   ac_header_compiler=yes
6513 else
6514   echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6516
6517 ac_header_compiler=no
6518 fi
6519 rm -f conftest.$ac_objext conftest.$ac_ext
6520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6521 echo "${ECHO_T}$ac_header_compiler" >&6
6522
6523 # Is the header present?
6524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6526 cat >conftest.$ac_ext <<_ACEOF
6527 #line $LINENO "configure"
6528 /* confdefs.h.  */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h.  */
6533 #include <$ac_header>
6534 _ACEOF
6535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6536   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6537   ac_status=$?
6538   grep -v '^ *+' conftest.er1 >conftest.err
6539   rm -f conftest.er1
6540   cat conftest.err >&5
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); } >/dev/null; then
6543   if test -s conftest.err; then
6544     ac_cpp_err=$ac_c_preproc_warn_flag
6545   else
6546     ac_cpp_err=
6547   fi
6548 else
6549   ac_cpp_err=yes
6550 fi
6551 if test -z "$ac_cpp_err"; then
6552   ac_header_preproc=yes
6553 else
6554   echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6556
6557   ac_header_preproc=no
6558 fi
6559 rm -f conftest.err conftest.$ac_ext
6560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6561 echo "${ECHO_T}$ac_header_preproc" >&6
6562
6563 # So?  What about this header?
6564 case $ac_header_compiler:$ac_header_preproc in
6565   yes:no )
6566     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6570     (
6571       cat <<\_ASBOX
6572 ## ------------------------------------ ##
6573 ## Report this to bug-autoconf@gnu.org. ##
6574 ## ------------------------------------ ##
6575 _ASBOX
6576     ) |
6577       sed "s/^/$as_me: WARNING:     /" >&2
6578     ;;
6579   no:yes )
6580     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6582     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6584     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6586     (
6587       cat <<\_ASBOX
6588 ## ------------------------------------ ##
6589 ## Report this to bug-autoconf@gnu.org. ##
6590 ## ------------------------------------ ##
6591 _ASBOX
6592     ) |
6593       sed "s/^/$as_me: WARNING:     /" >&2
6594     ;;
6595 esac
6596 echo "$as_me:$LINENO: checking for $ac_header" >&5
6597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6599   echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601   eval "$as_ac_Header=$ac_header_preproc"
6602 fi
6603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6605
6606 fi
6607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6608   cat >>confdefs.h <<_ACEOF
6609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6610 _ACEOF
6611
6612 fi
6613
6614 done
6615
6616
6617 # End of readline/conio stuff
6618 # -----------------------------------------------------------------------
6619
6620 # -------------------------------------------
6621 # check for cdrecord writer location
6622 # get scsibus,target,lun
6623 # -------------------------------------------
6624 CDSTL="3,0,0"
6625 if test ! x$CDRECORD = x ; then
6626    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
6627    if test x${CDSTL} = x ; then
6628       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
6629    fi
6630    if test x${CDSTL} = x ; then
6631       CDSTL="3,0,0"
6632    fi
6633 fi
6634
6635
6636
6637 # ---------------------------------------------------
6638 # Check for GMP support/directory
6639 # ---------------------------------------------------
6640 #GMP_SRC=
6641 #local_gmp="no"
6642 #AC_ARG_WITH(gmp,
6643 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6644 #  [
6645 #     case "$with_gmp" in
6646 #     no) : ;;
6647 #     yes|*)
6648 #       if test "$with_gmp" != "yes"; then
6649 #         GMP_INC="-I$with_gmp"
6650 #         GMP_LIBS="-lgmp"
6651 #         GMP_LDFLAGS="-L$with_gmp"
6652 #       else
6653 #          with_gmp="/usr/include"
6654 #       fi
6655 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6656 #          [ AC_MSG_RESULT(yes)
6657 #            AC_DEFINE(HAVE_GMP)
6658 #            GMP_LIBS="-lgmp"
6659 #            got_gmp="yes"
6660 #          ],
6661 #          [ AC_MSG_ERROR([*** gmp library missing])
6662 #          ]
6663 #       )
6664 #       ;;
6665 #     esac
6666 #  ],[
6667 #    # check for standard gmp library
6668 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6669 #    [ AC_MSG_RESULT(yes)
6670 #      AC_DEFINE(HAVE_GMP)
6671 #      got_gmp="yes"
6672 #      GMP_INC=
6673 #      GMP_LIBS="-lgmp"
6674 #    ], [
6675 #      # Did not find standard library, so use our own
6676 #      AC_MSG_RESULT(yes)
6677 #      AC_DEFINE(HAVE_GMP)
6678 #      got_gmp="yes"
6679 #      local_gmp="yes"
6680 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6681 #      GMP_LIBS="-lgmp"
6682 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6683 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6684 #    ])
6685 #  ]
6686 #)
6687 #AC_SUBST(GMP_INC)
6688 #AC_SUBST(GMP_LIBS)
6689 #AC_SUBST(GMP_LDFLAGS)
6690 #AC_SUBST(GMP_SRC)
6691
6692 # End of GMP stuff
6693 # -----------------------------------------------------------------------
6694
6695
6696 # ---------------------------------------------------
6697 # Check for CWEB support/directory
6698 # ---------------------------------------------------
6699 #CWEB_SRC=
6700 #CWEB=/bin
6701 #local_cweb="no"
6702 #AC_ARG_WITH(cweb,
6703 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6704 #  [
6705 #     case "$with_cweb" in
6706 #     no) : ;;
6707 #     yes|*)
6708 #       if test "$with_cweb" != "yes"; then
6709 #         CWEB_INC="-I$with_cweb"
6710 #         CWEB_LIBS="-lcweb"
6711 #         CWEB_LDFLAGS="-L$with_cweb"
6712 #       else
6713 #          with_cweb="/usr/include"
6714 #       fi
6715 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6716 #          [ AC_MSG_RESULT(yes)
6717 #            AC_DEFINE(HAVE_CWEB)
6718 #            CWEB_LIBS="-lcweb"
6719 #            got_cweb="yes"
6720 #          ],
6721 #          [ AC_MSG_ERROR([*** cweb library missing])
6722 #          ]
6723 #       )
6724 #       ;;
6725 #     esac
6726 #  ],[
6727 #    # check for standard cweb library
6728 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6729 #    [ AC_MSG_RESULT(yes)
6730 #      AC_DEFINE(HAVE_CWEB)
6731 #      got_cweb="yes"
6732 #      CWEB_INC=
6733 #      CWEB_LIBS="-lcweb"
6734 #    ], [
6735 #      # Did not find starndard library, so use our own
6736 #      AC_MSG_RESULT(yes)
6737 #      AC_DEFINE(HAVE_CWEB)
6738 #      got_cweb="yes"
6739 #      local_cweb="yes"
6740 #      CWEB=${TOP_DIR}/depkgs/cweb
6741 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6742 #      CWEB_LIBS="-lcweb"
6743 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6744 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6745 #    ])
6746 #  ]
6747 #)
6748 #AC_SUBST(CWEB)
6749 #AC_SUBST(CWEB_INC)
6750 #AC_SUBST(CWEB_LIBS)
6751 #AC_SUBST(CWEB_LDFLAGS)
6752 #AC_SUBST(CWEB_SRC)
6753
6754 # End of CWEB stuff
6755 # -----------------------------------------------------------------------
6756
6757
6758
6759 # -----------------------------------------------------------
6760 # Check whether user wants TCP wrappers support (default off)
6761 # -----------------------------------------------------------
6762 TCPW_MSG="no"
6763
6764 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6765 if test "${with_tcp_wrappers+set}" = set; then
6766   withval="$with_tcp_wrappers"
6767
6768     if test "x$withval" != "xno" ; then
6769        saved_LIBS="$LIBS"
6770        LIBS="$saved_LIBS -lwrap"
6771        echo "$as_me:$LINENO: checking for libwrap" >&5
6772 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6773        cat >conftest.$ac_ext <<_ACEOF
6774 #line $LINENO "configure"
6775 /* confdefs.h.  */
6776 _ACEOF
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h.  */
6780  #include <tcpd.h>
6781              int deny_severity = 0;
6782              int allow_severity = 0;
6783              struct request_info *req;
6784 int
6785 main ()
6786 {
6787  hosts_access(req);
6788   ;
6789   return 0;
6790 }
6791 _ACEOF
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6794   (eval $ac_link) 2>&5
6795   ac_status=$?
6796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797   (exit $ac_status); } &&
6798          { ac_try='test -s conftest$ac_exeext'
6799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800   (eval $ac_try) 2>&5
6801   ac_status=$?
6802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803   (exit $ac_status); }; }; then
6804
6805             echo "$as_me:$LINENO: result: yes" >&5
6806 echo "${ECHO_T}yes" >&6
6807             cat >>confdefs.h <<\_ACEOF
6808 #define HAVE_LIBWRAP 1
6809 _ACEOF
6810
6811             TCPW_MSG="yes"
6812
6813 else
6814   echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6816
6817
6818             LIBS="$saved_LIBS -lwrap -lnsl"
6819             cat >conftest.$ac_ext <<_ACEOF
6820 #line $LINENO "configure"
6821 /* confdefs.h.  */
6822 _ACEOF
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h.  */
6826  #include <tcpd.h>
6827                  int deny_severity = 0;
6828                  int allow_severity = 0;
6829                  struct request_info *req;
6830 int
6831 main ()
6832 {
6833  hosts_access(req);
6834   ;
6835   return 0;
6836 }
6837 _ACEOF
6838 rm -f conftest.$ac_objext conftest$ac_exeext
6839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6840   (eval $ac_link) 2>&5
6841   ac_status=$?
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); } &&
6844          { ac_try='test -s conftest$ac_exeext'
6845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846   (eval $ac_try) 2>&5
6847   ac_status=$?
6848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849   (exit $ac_status); }; }; then
6850
6851                  echo "$as_me:$LINENO: result: yes" >&5
6852 echo "${ECHO_T}yes" >&6
6853                  cat >>confdefs.h <<\_ACEOF
6854 #define HAVE_LIBWRAP 1
6855 _ACEOF
6856
6857                  TCPW_MSG="yes"
6858
6859 else
6860   echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6862
6863 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6864 echo "$as_me: error: *** libwrap missing" >&2;}
6865    { (exit 1); exit 1; }; }
6866
6867 fi
6868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6869
6870 fi
6871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6872     fi
6873
6874
6875 fi;
6876
6877 # ------------------------------------------
6878 # Where to place working dir
6879 # ------------------------------------------
6880 working_dir=`eval echo ${prefix}/var/bacula/working`
6881
6882 # Check whether --with-working-dir or --without-working-dir was given.
6883 if test "${with_working_dir+set}" = set; then
6884   withval="$with_working_dir"
6885
6886        if test "x$withval" != "xno" ; then
6887               working_dir=$withval
6888        fi
6889
6890
6891 fi;
6892
6893
6894
6895
6896 # ------------------------------------------
6897 # Where to place scriptdir (script files)
6898 # ------------------------------------------
6899 scriptdir=`eval echo ${sysconfdir}`
6900
6901 # Check whether --with-scriptdir or --without-scriptdir was given.
6902 if test "${with_scriptdir+set}" = set; then
6903   withval="$with_scriptdir"
6904
6905        if test "x$withval" != "xno" ; then
6906               scriptdir=$withval
6907        fi
6908
6909
6910 fi;
6911
6912
6913
6914
6915 # ------------------------------------------
6916 # Where to send dump email
6917 # ------------------------------------------
6918 dump_email=root@localhost
6919
6920 # Check whether --with-dump-email or --without-dump-email was given.
6921 if test "${with_dump_email+set}" = set; then
6922   withval="$with_dump_email"
6923
6924        if test "x$withval" != "xno" ; then
6925               dump_email=$withval
6926        fi
6927
6928
6929 fi;
6930
6931
6932
6933 # ------------------------------------------
6934 # Where to send job email
6935 # ------------------------------------------
6936 job_email=root@localhost
6937
6938 # Check whether --with-job-email or --without-job-email was given.
6939 if test "${with_job_email+set}" = set; then
6940   withval="$with_job_email"
6941
6942        if test "x$withval" != "xno" ; then
6943               job_email=$withval
6944        fi
6945
6946
6947 fi;
6948
6949
6950
6951 # ------------------------------------------
6952 # Where to find smtp host
6953 # ------------------------------------------
6954 smtp_host=localhost
6955
6956 # Check whether --with-smtp_host or --without-smtp_host was given.
6957 if test "${with_smtp_host+set}" = set; then
6958   withval="$with_smtp_host"
6959
6960        if test "x$withval" != "xno" ; then
6961               smtp_host=$withval
6962        fi
6963
6964
6965 fi;
6966
6967
6968
6969
6970 # ------------------------------------
6971 # Where to place pid files
6972 # ------------------------------------
6973 piddir=/var/run
6974
6975 # Check whether --with-pid-dir or --without-pid-dir was given.
6976 if test "${with_pid_dir+set}" = set; then
6977   withval="$with_pid_dir"
6978
6979         if test "x$withval" != "xno" ; then
6980             piddir=$withval
6981         fi
6982
6983
6984 fi;
6985
6986 cat >>confdefs.h <<_ACEOF
6987 #define _PATH_BACULA_PIDDIR "$piddir"
6988 _ACEOF
6989
6990
6991
6992
6993 # ------------------------------------
6994 # Where to place subsys "lock file"
6995 # ------------------------------------
6996 subsysdir=/var/run/subsys
6997
6998 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6999 if test "${with_subsys_dir+set}" = set; then
7000   withval="$with_subsys_dir"
7001
7002         if test "x$withval" != "xno" ; then
7003             subsysdir=$withval
7004         fi
7005
7006
7007 fi;
7008
7009
7010
7011
7012
7013 # ------------------------------------
7014 # Where to start assigning ports
7015 # ------------------------------------
7016 baseport=9101
7017
7018 # Check whether --with-baseport or --without-baseport was given.
7019 if test "${with_baseport+set}" = set; then
7020   withval="$with_baseport"
7021
7022         if test "x$withval" != "xno" ; then
7023              baseport=$withval
7024         fi
7025
7026
7027 fi;
7028
7029
7030 dir_port=`expr $baseport`
7031 fd_port=`expr $baseport + 1`
7032 sd_port=`expr $fd_port + 1`
7033
7034
7035
7036
7037
7038
7039 # ------------------------------------------
7040 # Generate passwords
7041 # ------------------------------------------
7042 dir_password=
7043
7044 # Check whether --with-dir-password or --without-dir-password was given.
7045 if test "${with_dir_password+set}" = set; then
7046   withval="$with_dir_password"
7047
7048        if test "x$withval" != "xno" ; then
7049            dir_password=$withval
7050        fi
7051
7052
7053 fi;
7054
7055 if test "x$dir_password" = "x" ; then
7056    if test "x$OPENSSL" = "xnone" ; then
7057 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7058       key=`autoconf/randpass 33`
7059    else
7060       key=`openssl rand -base64 33`
7061    fi
7062    dir_password=$key
7063 fi
7064
7065 fd_password=
7066
7067 # Check whether --with-fd-password or --without-fd-password was given.
7068 if test "${with_fd_password+set}" = set; then
7069   withval="$with_fd_password"
7070
7071        if test "x$withval" != "xno" ; then
7072            fd_password=$withval
7073        fi
7074
7075
7076 fi;
7077
7078 if test "x$fd_password" = "x" ; then
7079    if test "x$OPENSSL" = "xnone" ; then
7080 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7081       key=`autoconf/randpass 37`
7082    else
7083       key=`openssl rand -base64 33`
7084    fi
7085    fd_password=$key
7086 fi
7087
7088 sd_password=
7089
7090 # Check whether --with-sd-password or --without-sd-password was given.
7091 if test "${with_sd_password+set}" = set; then
7092   withval="$with_sd_password"
7093
7094        if test "x$withval" != "xno" ; then
7095            sd_password=$withval
7096        fi
7097
7098
7099 fi;
7100
7101 if test "x$sd_password" = "x" ; then
7102    if test "x$OPENSSL" = "xnone" ; then
7103 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7104       key=`autoconf/randpass 41`
7105    else
7106       key=`openssl rand -base64 33`
7107    fi
7108    sd_password=$key
7109 fi
7110
7111 mon_dir_password=
7112
7113 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7114 if test "${with_mon_dir_password+set}" = set; then
7115   withval="$with_mon_dir_password"
7116
7117        if test "x$withval" != "xno" ; then
7118            mon_dir_password=$withval
7119        fi
7120
7121
7122 fi;
7123
7124 if test "x$mon_dir_password" = "x" ; then
7125    if test "x$OPENSSL" = "xnone" ; then
7126 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7127       key=`autoconf/randpass 33`
7128    else
7129       key=`openssl rand -base64 33`
7130    fi
7131    mon_dir_password=$key
7132 fi
7133
7134 mon_fd_password=
7135
7136 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7137 if test "${with_mon_fd_password+set}" = set; then
7138   withval="$with_mon_fd_password"
7139
7140        if test "x$withval" != "xno" ; then
7141            mon_fd_password=$withval
7142        fi
7143
7144
7145 fi;
7146
7147 if test "x$mon_fd_password" = "x" ; then
7148    if test "x$OPENSSL" = "xnone" ; then
7149 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7150       key=`autoconf/randpass 37`
7151    else
7152       key=`openssl rand -base64 33`
7153    fi
7154    mon_fd_password=$key
7155 fi
7156
7157 mon_sd_password=
7158
7159 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7160 if test "${with_mon_sd_password+set}" = set; then
7161   withval="$with_mon_sd_password"
7162
7163        if test "x$withval" != "xno" ; then
7164            mon_sd_password=$withval
7165        fi
7166
7167
7168 fi;
7169
7170 if test "x$mon_sd_password" = "x" ; then
7171    if test "x$OPENSSL" = "xnone" ; then
7172 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7173       key=`autoconf/randpass 41`
7174    else
7175       key=`openssl rand -base64 33`
7176    fi
7177    mon_sd_password=$key
7178 fi
7179
7180
7181
7182
7183
7184
7185
7186
7187 #
7188 # Handle users and groups for each daemon
7189 #
7190 dir_user=
7191
7192 # Check whether --with-dir_user or --without-dir_user was given.
7193 if test "${with_dir_user+set}" = set; then
7194   withval="$with_dir_user"
7195
7196         if test "x$withval" != "x" ; then
7197              dir_user=$withval
7198         fi
7199
7200
7201 fi;
7202
7203 dir_group=
7204
7205 # Check whether --with-dir_group or --without-dir_group was given.
7206 if test "${with_dir_group+set}" = set; then
7207   withval="$with_dir_group"
7208
7209         if test "x$withval" != "x" ; then
7210              dir_group=$withval
7211         fi
7212
7213
7214 fi;
7215
7216 sd_user=
7217
7218 # Check whether --with-sd_user or --without-sd_user was given.
7219 if test "${with_sd_user+set}" = set; then
7220   withval="$with_sd_user"
7221
7222         if test "x$withval" != "x" ; then
7223              sd_user=$withval
7224         fi
7225
7226
7227 fi;
7228
7229 sd_group=
7230
7231 # Check whether --with-sd_group or --without-sd_group was given.
7232 if test "${with_sd_group+set}" = set; then
7233   withval="$with_sd_group"
7234
7235         if test "x$withval" != "x" ; then
7236              sd_group=$withval
7237         fi
7238
7239
7240 fi;
7241
7242 fd_user=
7243
7244 # Check whether --with-fd_user or --without-fd_user was given.
7245 if test "${with_fd_user+set}" = set; then
7246   withval="$with_fd_user"
7247
7248         if test "x$withval" != "x" ; then
7249              fd_user=$withval
7250         fi
7251
7252
7253 fi;
7254
7255 fd_group=
7256
7257 # Check whether --with-fd_group or --without-fd_group was given.
7258 if test "${with_fd_group+set}" = set; then
7259   withval="$with_fd_group"
7260
7261         if test "x$withval" != "x" ; then
7262              fd_group=$withval
7263         fi
7264
7265
7266 fi;
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278 #
7279 # allow setting default executable permissions
7280 #
7281 SBINPERM=0754
7282
7283 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7284 if test "${with_sbin_perm+set}" = set; then
7285   withval="$with_sbin_perm"
7286
7287         if test "x$withval" != "x" ; then
7288             SBINPERM=$withval
7289         fi
7290
7291
7292 fi;
7293
7294
7295
7296 # ------------------------------------------------
7297 # Bacula check for various SQL database engines
7298 # ------------------------------------------------
7299
7300 db_found=no
7301 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7302 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7303
7304 # Check whether --with-postgresql or --without-postgresql was given.
7305 if test "${with_postgresql+set}" = set; then
7306   withval="$with_postgresql"
7307
7308   if test "$withval" != "no"; then
7309       if test "$db_found" = "yes"; then
7310           echo "$as_me:$LINENO: result: error" >&5
7311 echo "${ECHO_T}error" >&6
7312           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7313 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7314    { (exit 1); exit 1; }; };
7315       fi
7316       if test "$withval" = "yes"; then
7317           if test -f /usr/local/include/libpq-fe.h; then
7318               POSTGRESQL_INCDIR=/usr/local/include
7319               POSTGRESQL_LIBDIR=/usr/local/lib
7320               POSTGRESQL_BINDIR=/usr/local/bin
7321           elif test -f /usr/include/libpq-fe.h; then
7322               POSTGRESQL_INCDIR=/usr/include
7323               POSTGRESQL_LIBDIR=/usr/lib
7324               POSTGRESQL_BINDIR=/usr/bin
7325           elif test -f /usr/include/pgsql/libpq-fe.h; then
7326               POSTGRESQL_INCDIR=/usr/include/pgsql
7327               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7328               POSTGRESQL_BINDIR=/usr/bin
7329           elif test -f /usr/include/postgresql/libpq-fe.h; then
7330               POSTGRESQL_INCDIR=/usr/include/postgresql
7331               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7332               POSTGRESQL_BINDIR=/usr/bin
7333           else
7334               echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6
7336               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7337 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7338    { (exit 1); exit 1; }; }
7339           fi
7340       elif test -f $withval/include/libpq-fe.h; then
7341           POSTGRESQL_INCDIR=$withval/include
7342           POSTGRESQL_LIBDIR=$withval/lib
7343           POSTGRESQL_BINDIR=$withval/bin
7344       else
7345           echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6
7347           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7348 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7349    { (exit 1); exit 1; }; }
7350       fi
7351       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7352       echo "$as_me:$LINENO: checking for crypt" >&5
7353 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7354 if test "${ac_cv_func_crypt+set}" = set; then
7355   echo $ECHO_N "(cached) $ECHO_C" >&6
7356 else
7357   cat >conftest.$ac_ext <<_ACEOF
7358 #line $LINENO "configure"
7359 /* confdefs.h.  */
7360 _ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h.  */
7364 /* System header to define __stub macros and hopefully few prototypes,
7365     which can conflict with char crypt (); below.
7366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7367     <limits.h> exists even on freestanding compilers.  */
7368 #ifdef __STDC__
7369 # include <limits.h>
7370 #else
7371 # include <assert.h>
7372 #endif
7373 /* Override any gcc2 internal prototype to avoid an error.  */
7374 #ifdef __cplusplus
7375 extern "C"
7376 {
7377 #endif
7378 /* We use char because int might match the return type of a gcc2
7379    builtin and then its argument prototype would still apply.  */
7380 char crypt ();
7381 /* The GNU C library defines this for functions which it implements
7382     to always fail with ENOSYS.  Some functions are actually named
7383     something starting with __ and the normal name is an alias.  */
7384 #if defined (__stub_crypt) || defined (__stub___crypt)
7385 choke me
7386 #else
7387 char (*f) () = crypt;
7388 #endif
7389 #ifdef __cplusplus
7390 }
7391 #endif
7392
7393 int
7394 main ()
7395 {
7396 return f != crypt;
7397   ;
7398   return 0;
7399 }
7400 _ACEOF
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403   (eval $ac_link) 2>&5
7404   ac_status=$?
7405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406   (exit $ac_status); } &&
7407          { ac_try='test -s conftest$ac_exeext'
7408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409   (eval $ac_try) 2>&5
7410   ac_status=$?
7411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412   (exit $ac_status); }; }; then
7413   ac_cv_func_crypt=yes
7414 else
7415   echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7417
7418 ac_cv_func_crypt=no
7419 fi
7420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7421 fi
7422 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7423 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7424 if test $ac_cv_func_crypt = yes; then
7425   :
7426 else
7427   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7428 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7429 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7430   echo $ECHO_N "(cached) $ECHO_C" >&6
7431 else
7432   ac_check_lib_save_LIBS=$LIBS
7433 LIBS="-lcrypt  $LIBS"
7434 cat >conftest.$ac_ext <<_ACEOF
7435 #line $LINENO "configure"
7436 /* confdefs.h.  */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h.  */
7441
7442 /* Override any gcc2 internal prototype to avoid an error.  */
7443 #ifdef __cplusplus
7444 extern "C"
7445 #endif
7446 /* We use char because int might match the return type of a gcc2
7447    builtin and then its argument prototype would still apply.  */
7448 char crypt ();
7449 int
7450 main ()
7451 {
7452 crypt ();
7453   ;
7454   return 0;
7455 }
7456 _ACEOF
7457 rm -f conftest.$ac_objext conftest$ac_exeext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7459   (eval $ac_link) 2>&5
7460   ac_status=$?
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); } &&
7463          { ac_try='test -s conftest$ac_exeext'
7464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465   (eval $ac_try) 2>&5
7466   ac_status=$?
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); }; }; then
7469   ac_cv_lib_crypt_crypt=yes
7470 else
7471   echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7473
7474 ac_cv_lib_crypt_crypt=no
7475 fi
7476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7477 LIBS=$ac_check_lib_save_LIBS
7478 fi
7479 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7480 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7481 if test $ac_cv_lib_crypt_crypt = yes; then
7482   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7483 fi
7484
7485 fi
7486
7487       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7488       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7489       SQL_BINDIR=$POSTGRESQL_BINDIR
7490       cat >>confdefs.h <<\_ACEOF
7491 #define HAVE_POSTGRESQL 1
7492 _ACEOF
7493
7494       echo "$as_me:$LINENO: result: yes" >&5
7495 echo "${ECHO_T}yes" >&6
7496       db_found=yes
7497       support_postgresql=yes
7498       db_name=PostgreSQL
7499       DB_NAME=postgresql
7500   else
7501       echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7503   fi
7504
7505 else
7506
7507   echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6
7509
7510 fi;
7511
7512
7513
7514
7515
7516
7517
7518 db_found=no
7519 echo "$as_me:$LINENO: checking for MySQL support" >&5
7520 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7521
7522 # Check whether --with-mysql or --without-mysql was given.
7523 if test "${with_mysql+set}" = set; then
7524   withval="$with_mysql"
7525
7526   if test "$withval" != "no"; then
7527         if test "$withval" = "yes"; then
7528                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7529                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7530                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7531                         MYSQL_BINDIR=/usr/local/mysql/bin
7532                 elif test -f /usr/include/mysql/mysql.h; then
7533                         MYSQL_INCDIR=/usr/include/mysql
7534                         MYSQL_LIBDIR=/usr/lib/mysql
7535                         MYSQL_BINDIR=/usr/bin
7536                 elif test -f /usr/include/mysql.h; then
7537                         MYSQL_INCDIR=/usr/include
7538                         MYSQL_LIBDIR=/usr/lib
7539                         MYSQL_BINDIR=/usr/bin
7540                 elif test -f /usr/local/include/mysql/mysql.h; then
7541                         MYSQL_INCDIR=/usr/local/include/mysql
7542                         MYSQL_LIBDIR=/usr/local/lib/mysql
7543                         MYSQL_BINDIR=/usr/local/bin
7544                 elif test -f /usr/local/include/mysql.h; then
7545                         MYSQL_INCDIR=/usr/local/include
7546                         MYSQL_LIBDIR=/usr/local/lib
7547                         MYSQL_BINDIR=/usr/local/bin
7548                 else
7549                    echo "$as_me:$LINENO: result: no" >&5
7550 echo "${ECHO_T}no" >&6
7551                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7552 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7553    { (exit 1); exit 1; }; }
7554                 fi
7555         else
7556                 if test -f $withval/include/mysql/mysql.h; then
7557                         MYSQL_INCDIR=$withval/include/mysql
7558                         MYSQL_LIBDIR=$withval/lib/mysql
7559                         MYSQL_BINDIR=$withval/bin
7560                 elif test -f $withval/include/mysql.h; then
7561                         MYSQL_INCDIR=$withval/include
7562                         MYSQL_LIBDIR=$withval/lib
7563                         MYSQL_BINDIR=$withval/bin
7564                 else
7565                    echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6
7567                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7568 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7569    { (exit 1); exit 1; }; }
7570                 fi
7571         fi
7572     SQL_INCLUDE=-I$MYSQL_INCDIR
7573     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7574        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7575        cat >>confdefs.h <<\_ACEOF
7576 #define HAVE_THREAD_SAFE_MYSQL 1
7577 _ACEOF
7578
7579     else
7580        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7581     fi
7582     SQL_BINDIR=$MYSQL_BINDIR
7583
7584     cat >>confdefs.h <<\_ACEOF
7585 #define HAVE_MYSQL 1
7586 _ACEOF
7587
7588     echo "$as_me:$LINENO: result: yes" >&5
7589 echo "${ECHO_T}yes" >&6
7590     db_found=yes
7591     support_mysql=yes
7592     db_name=MySQL
7593     DB_NAME=mysql
7594
7595   else
7596         echo "$as_me:$LINENO: result: no" >&5
7597 echo "${ECHO_T}no" >&6
7598   fi
7599
7600
7601 fi;
7602
7603
7604 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7605 if test "${with_embedded_mysql+set}" = set; then
7606   withval="$with_embedded_mysql"
7607
7608   if test "$withval" != "no"; then
7609         if test "$withval" = "yes"; then
7610                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7611                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7612                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7613                         MYSQL_BINDIR=/usr/local/mysql/bin
7614                 elif test -f /usr/include/mysql/mysql.h; then
7615                         MYSQL_INCDIR=/usr/include/mysql
7616                         MYSQL_LIBDIR=/usr/lib/mysql
7617                         MYSQL_BINDIR=/usr/bin
7618                 elif test -f /usr/include/mysql.h; then
7619                         MYSQL_INCDIR=/usr/include
7620                         MYSQL_LIBDIR=/usr/lib
7621                         MYSQL_BINDIR=/usr/bin
7622                 elif test -f /usr/local/include/mysql/mysql.h; then
7623                         MYSQL_INCDIR=/usr/local/include/mysql
7624                         MYSQL_LIBDIR=/usr/local/lib/mysql
7625                         MYSQL_BINDIR=/usr/local/bin
7626                 elif test -f /usr/local/include/mysql.h; then
7627                         MYSQL_INCDIR=/usr/local/include
7628                         MYSQL_LIBDIR=/usr/local/lib
7629                         MYSQL_BINDIR=/usr/local/bin
7630                 else
7631                    echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6
7633                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7634 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7635    { (exit 1); exit 1; }; }
7636                 fi
7637         else
7638                 if test -f $withval/include/mysql/mysql.h; then
7639                         MYSQL_INCDIR=$withval/include/mysql
7640                         MYSQL_LIBDIR=$withval/lib/mysql
7641                         MYSQL_BINDIR=$withval/bin
7642                 elif test -f $withval/include/mysql.h; then
7643                         MYSQL_INCDIR=$withval/include
7644                         MYSQL_LIBDIR=$withval/lib
7645                         MYSQL_BINDIR=$withval/bin
7646                 else
7647                    echo "$as_me:$LINENO: result: no" >&5
7648 echo "${ECHO_T}no" >&6
7649                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7650 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7651    { (exit 1); exit 1; }; }
7652                 fi
7653         fi
7654     SQL_INCLUDE=-I$MYSQL_INCDIR
7655     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7656     SQL_BINDIR=$MYSQL_BINDIR
7657
7658     cat >>confdefs.h <<\_ACEOF
7659 #define HAVE_MYSQL 1
7660 _ACEOF
7661
7662     cat >>confdefs.h <<\_ACEOF
7663 #define HAVE_EMBEDDED_MYSQL 1
7664 _ACEOF
7665
7666     echo "$as_me:$LINENO: result: yes" >&5
7667 echo "${ECHO_T}yes" >&6
7668     db_found=yes
7669     support_mysql=yes
7670     db_name=MySQL
7671     DB_NAME=mysql
7672
7673   else
7674         echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6
7676   fi
7677
7678
7679 fi;
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689 db_found=no
7690 echo "$as_me:$LINENO: checking for SQLite support" >&5
7691 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7692
7693 # Check whether --with-sqlite or --without-sqlite was given.
7694 if test "${with_sqlite+set}" = set; then
7695   withval="$with_sqlite"
7696
7697   if test "$withval" != "no"; then
7698      if test "$withval" = "yes"; then
7699         if test -f /usr/local/include/sqlite.h; then
7700            SQLITE_INCDIR=/usr/local/include
7701            SQLITE_LIBDIR=/usr/local/lib
7702            SQLITE_BINDIR=/usr/local/bin
7703         elif test -f /usr/include/sqlite.h; then
7704            SQLITE_INCDIR=/usr/include
7705            SQLITE_LIBDIR=/usr/lib
7706            SQLITE_BINDIR=/usr/bin
7707         elif test -f $prefix/include/sqlite.h; then
7708            SQLITE_INCDIR=$prefix/include
7709            SQLITE_LIBDIR=$prefix/lib
7710            SQLITE_BINDIR=$prefix/bin
7711         else
7712            echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6
7714            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7715 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7716    { (exit 1); exit 1; }; }
7717         fi
7718      else
7719         if test -f $withval/sqlite.h; then
7720            SQLITE_INCDIR=$withval
7721            SQLITE_LIBDIR=$withval
7722            SQLITE_BINDIR=$withval
7723         elif test -f $withval/include/sqlite.h; then
7724            SQLITE_INCDIR=$withval/include
7725            SQLITE_LIBDIR=$withval/lib
7726            SQLITE_BINDIR=$withval/bin
7727         else
7728            echo "$as_me:$LINENO: result: no" >&5
7729 echo "${ECHO_T}no" >&6
7730            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7731 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7732    { (exit 1); exit 1; }; }
7733         fi
7734      fi
7735      SQL_INCLUDE=-I$SQLITE_INCDIR
7736      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7737      SQL_BINDIR=$SQLITE_BINDIR
7738
7739      cat >>confdefs.h <<\_ACEOF
7740 #define HAVE_SQLITE 1
7741 _ACEOF
7742
7743      echo "$as_me:$LINENO: result: yes" >&5
7744 echo "${ECHO_T}yes" >&6
7745      db_found=yes
7746      support_sqlite=yes
7747      db_name=SQLite
7748      DB_NAME=sqlite
7749
7750   else
7751      echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6
7753   fi
7754
7755 else
7756
7757   echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6
7759
7760 fi;
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770 cat >>confdefs.h <<\_ACEOF
7771 #define PROTOTYPES 1
7772 _ACEOF
7773
7774
7775 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7776     if test -z "$CCOPTS"; then
7777         CCOPTS='-g -O2 -Wall'
7778     fi
7779     CFLAGS="$CCOPTS"
7780 fi
7781
7782
7783
7784
7785 largefile_support="no"
7786
7787    # Check whether --enable-largefile or --disable-largefile was given.
7788 if test "${enable_largefile+set}" = set; then
7789   enableval="$enable_largefile"
7790
7791 fi;
7792    if test "$enable_largefile" != no; then
7793      if test -n "$ac_tool_prefix"; then
7794   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7795 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7796 echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7798 if test "${ac_cv_prog_GETCONF+set}" = set; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801   if test -n "$GETCONF"; then
7802   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807   IFS=$as_save_IFS
7808   test -z "$as_dir" && as_dir=.
7809   for ac_exec_ext in '' $ac_executable_extensions; do
7810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813     break 2
7814   fi
7815 done
7816 done
7817
7818 fi
7819 fi
7820 GETCONF=$ac_cv_prog_GETCONF
7821 if test -n "$GETCONF"; then
7822   echo "$as_me:$LINENO: result: $GETCONF" >&5
7823 echo "${ECHO_T}$GETCONF" >&6
7824 else
7825   echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6
7827 fi
7828
7829 fi
7830 if test -z "$ac_cv_prog_GETCONF"; then
7831   ac_ct_GETCONF=$GETCONF
7832   # Extract the first word of "getconf", so it can be a program name with args.
7833 set dummy getconf; ac_word=$2
7834 echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7836 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7837   echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839   if test -n "$ac_ct_GETCONF"; then
7840   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7841 else
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 for as_dir in $PATH
7844 do
7845   IFS=$as_save_IFS
7846   test -z "$as_dir" && as_dir=.
7847   for ac_exec_ext in '' $ac_executable_extensions; do
7848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849     ac_cv_prog_ac_ct_GETCONF="getconf"
7850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851     break 2
7852   fi
7853 done
7854 done
7855
7856 fi
7857 fi
7858 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7859 if test -n "$ac_ct_GETCONF"; then
7860   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7861 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7862 else
7863   echo "$as_me:$LINENO: result: no" >&5
7864 echo "${ECHO_T}no" >&6
7865 fi
7866
7867   GETCONF=$ac_ct_GETCONF
7868 else
7869   GETCONF="$ac_cv_prog_GETCONF"
7870 fi
7871
7872      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7873 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7874 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7875   echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7878         ac_cv_sys_largefile_CFLAGS=no
7879         case "$host_os" in
7880            # IRIX 6.2 and later require cc -n32.
7881            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7882              if test "$GCC" != yes; then
7883                ac_cv_sys_largefile_CFLAGS=-n32
7884              fi
7885              ac_save_CC="$CC"
7886              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7887              cat >conftest.$ac_ext <<_ACEOF
7888 #line $LINENO "configure"
7889 /* confdefs.h.  */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h.  */
7894
7895 int
7896 main ()
7897 {
7898
7899   ;
7900   return 0;
7901 }
7902 _ACEOF
7903 rm -f conftest.$ac_objext conftest$ac_exeext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7905   (eval $ac_link) 2>&5
7906   ac_status=$?
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); } &&
7909          { ac_try='test -s conftest$ac_exeext'
7910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911   (eval $ac_try) 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }; }; then
7915   :
7916 else
7917   echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920 ac_cv_sys_largefile_CFLAGS=no
7921 fi
7922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7923              CC="$ac_save_CC"
7924            esac
7925       }
7926 fi
7927 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7928 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7929      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7930 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7931 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7932   echo $ECHO_N "(cached) $ECHO_C" >&6
7933 else
7934   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7935         ac_cv_sys_largefile_LDFLAGS=no
7936
7937       }
7938 fi
7939 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7940 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7941      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7942 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7943 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7944   echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7947         ac_cv_sys_largefile_LIBS=no
7948
7949       }
7950 fi
7951 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7952 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7953
7954      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7955        case "$ac_flag" in
7956        no) ;;
7957        -D_FILE_OFFSET_BITS=*) ;;
7958        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7959        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7960        -D?* | -I?*)
7961          case "$ac_flag" in
7962    no) ;;
7963    ?*)
7964      case "$CPPFLAGS" in
7965      '') CPPFLAGS="$ac_flag" ;;
7966      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7967      esac ;;
7968    esac ;;
7969        *)
7970          case "$ac_flag" in
7971    no) ;;
7972    ?*)
7973      case "$CFLAGS" in
7974      '') CFLAGS="$ac_flag" ;;
7975      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7976      esac ;;
7977    esac ;;
7978        esac
7979      done
7980      case "$ac_cv_sys_largefile_LDFLAGS" in
7981    no) ;;
7982    ?*)
7983      case "$LDFLAGS" in
7984      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7985      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7986      esac ;;
7987    esac
7988      case "$ac_cv_sys_largefile_LIBS" in
7989    no) ;;
7990    ?*)
7991      case "$LIBS" in
7992      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7993      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7994      esac ;;
7995    esac
7996      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7997 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7998 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7999   echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001   ac_cv_sys_file_offset_bits=no
8002       case "$host_os" in
8003         # HP-UX 10.20 and later
8004         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8005           ac_cv_sys_file_offset_bits=64 ;;
8006         esac
8007       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8008         case "$ac_flag" in
8009         -D_FILE_OFFSET_BITS)
8010           ac_cv_sys_file_offset_bits=1 ;;
8011         -D_FILE_OFFSET_BITS=*)
8012           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8013         esac
8014       done
8015
8016 fi
8017 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8018 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8019    if test "$ac_cv_sys_file_offset_bits" != no; then
8020
8021 cat >>confdefs.h <<_ACEOF
8022 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8023 _ACEOF
8024
8025    fi
8026      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8027 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8028 if test "${ac_cv_sys_largefile_source+set}" = set; then
8029   echo $ECHO_N "(cached) $ECHO_C" >&6
8030 else
8031   ac_cv_sys_largefile_source=no
8032       case "$host_os" in
8033         # HP-UX 10.20 and later
8034         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8035           ac_cv_sys_largefile_source=1 ;;
8036         esac
8037       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8038         case "$ac_flag" in
8039         -D_LARGEFILE_SOURCE)
8040           ac_cv_sys_largefile_source=1 ;;
8041         -D_LARGEFILE_SOURCE=*)
8042           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8043         esac
8044       done
8045
8046 fi
8047 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8048 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8049    if test "$ac_cv_sys_largefile_source" != no; then
8050
8051 cat >>confdefs.h <<_ACEOF
8052 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8053 _ACEOF
8054
8055    fi
8056      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8057 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8058 if test "${ac_cv_sys_large_files+set}" = set; then
8059   echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061   ac_cv_sys_large_files=no
8062       case "$host_os" in
8063         # AIX 4.2 and later
8064         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8065           ac_cv_sys_large_files=1 ;;
8066         esac
8067       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8068         case "$ac_flag" in
8069         -D_LARGE_FILES)
8070           ac_cv_sys_large_files=1 ;;
8071         -D_LARGE_FILES=*)
8072           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8073         esac
8074       done
8075
8076 fi
8077 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8078 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8079    if test "$ac_cv_sys_large_files" != no; then
8080
8081 cat >>confdefs.h <<_ACEOF
8082 #define _LARGE_FILES $ac_cv_sys_large_files
8083 _ACEOF
8084
8085    fi
8086    fi
8087
8088
8089
8090 echo "$as_me:$LINENO: checking for X" >&5
8091 echo $ECHO_N "checking for X... $ECHO_C" >&6
8092
8093
8094 # Check whether --with-x or --without-x was given.
8095 if test "${with_x+set}" = set; then
8096   withval="$with_x"
8097
8098 fi;
8099 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8100 if test "x$with_x" = xno; then
8101   # The user explicitly disabled X.
8102   have_x=disabled
8103 else
8104   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8105     # Both variables are already set.
8106     have_x=yes
8107   else
8108     if test "${ac_cv_have_x+set}" = set; then
8109   echo $ECHO_N "(cached) $ECHO_C" >&6
8110 else
8111   # One or both of the vars are not set, and there is no cached value.
8112 ac_x_includes=no ac_x_libraries=no
8113 rm -fr conftest.dir
8114 if mkdir conftest.dir; then
8115   cd conftest.dir
8116   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8117   cat >Imakefile <<'_ACEOF'
8118 acfindx:
8119         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8120 _ACEOF
8121   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8122     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8123     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8124     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8125     for ac_extension in a so sl; do
8126       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8127          test -f $ac_im_libdir/libX11.$ac_extension; then
8128         ac_im_usrlibdir=$ac_im_libdir; break
8129       fi
8130     done
8131     # Screen out bogus values from the imake configuration.  They are
8132     # bogus both because they are the default anyway, and because
8133     # using them would break gcc on systems where it needs fixed includes.
8134     case $ac_im_incroot in
8135         /usr/include) ;;
8136         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8137     esac
8138     case $ac_im_usrlibdir in
8139         /usr/lib | /lib) ;;
8140         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8141     esac
8142   fi
8143   cd ..
8144   rm -fr conftest.dir
8145 fi
8146
8147 # Standard set of common directories for X headers.
8148 # Check X11 before X11Rn because it is often a symlink to the current release.
8149 ac_x_header_dirs='
8150 /usr/X11/include
8151 /usr/X11R6/include
8152 /usr/X11R5/include
8153 /usr/X11R4/include
8154
8155 /usr/include/X11
8156 /usr/include/X11R6
8157 /usr/include/X11R5
8158 /usr/include/X11R4
8159
8160 /usr/local/X11/include
8161 /usr/local/X11R6/include
8162 /usr/local/X11R5/include
8163 /usr/local/X11R4/include
8164
8165 /usr/local/include/X11
8166 /usr/local/include/X11R6
8167 /usr/local/include/X11R5
8168 /usr/local/include/X11R4
8169
8170 /usr/X386/include
8171 /usr/x386/include
8172 /usr/XFree86/include/X11
8173
8174 /usr/include
8175 /usr/local/include
8176 /usr/unsupported/include
8177 /usr/athena/include
8178 /usr/local/x11r5/include
8179 /usr/lpp/Xamples/include
8180
8181 /usr/openwin/include
8182 /usr/openwin/share/include'
8183
8184 if test "$ac_x_includes" = no; then
8185   # Guess where to find include files, by looking for Intrinsic.h.
8186   # First, try using that file with no special directory specified.
8187   cat >conftest.$ac_ext <<_ACEOF
8188 #line $LINENO "configure"
8189 /* confdefs.h.  */
8190 _ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h.  */
8194 #include <X11/Intrinsic.h>
8195 _ACEOF
8196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8197   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } >/dev/null; then
8204   if test -s conftest.err; then
8205     ac_cpp_err=$ac_c_preproc_warn_flag
8206   else
8207     ac_cpp_err=
8208   fi
8209 else
8210   ac_cpp_err=yes
8211 fi
8212 if test -z "$ac_cpp_err"; then
8213   # We can compile using X headers with no special include directory.
8214 ac_x_includes=
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219   for ac_dir in $ac_x_header_dirs; do
8220   if test -r "$ac_dir/X11/Intrinsic.h"; then
8221     ac_x_includes=$ac_dir
8222     break
8223   fi
8224 done
8225 fi
8226 rm -f conftest.err conftest.$ac_ext
8227 fi # $ac_x_includes = no
8228
8229 if test "$ac_x_libraries" = no; then
8230   # Check for the libraries.
8231   # See if we find them without any special options.
8232   # Don't add to $LIBS permanently.
8233   ac_save_LIBS=$LIBS
8234   LIBS="-lXt $LIBS"
8235   cat >conftest.$ac_ext <<_ACEOF
8236 #line $LINENO "configure"
8237 /* confdefs.h.  */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h.  */
8242 #include <X11/Intrinsic.h>
8243 int
8244 main ()
8245 {
8246 XtMalloc (0)
8247   ;
8248   return 0;
8249 }
8250 _ACEOF
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253   (eval $ac_link) 2>&5
8254   ac_status=$?
8255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); } &&
8257          { ac_try='test -s conftest$ac_exeext'
8258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259   (eval $ac_try) 2>&5
8260   ac_status=$?
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); }; }; then
8263   LIBS=$ac_save_LIBS
8264 # We can link X programs with no special library path.
8265 ac_x_libraries=
8266 else
8267   echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8269
8270 LIBS=$ac_save_LIBS
8271 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8272 do
8273   # Don't even attempt the hair of trying to link an X program!
8274   for ac_extension in a so sl; do
8275     if test -r $ac_dir/libXt.$ac_extension; then
8276       ac_x_libraries=$ac_dir
8277       break 2
8278     fi
8279   done
8280 done
8281 fi
8282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8283 fi # $ac_x_libraries = no
8284
8285 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8286   # Didn't find X anywhere.  Cache the known absence of X.
8287   ac_cv_have_x="have_x=no"
8288 else
8289   # Record where we found X for the cache.
8290   ac_cv_have_x="have_x=yes \
8291                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8292 fi
8293 fi
8294
8295   fi
8296   eval "$ac_cv_have_x"
8297 fi # $with_x != no
8298
8299 if test "$have_x" != yes; then
8300   echo "$as_me:$LINENO: result: $have_x" >&5
8301 echo "${ECHO_T}$have_x" >&6
8302   no_x=yes
8303 else
8304   # If each of the values was on the command line, it overrides each guess.
8305   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8306   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8307   # Update the cache value to reflect the command line values.
8308   ac_cv_have_x="have_x=yes \
8309                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8310   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8311 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8312 fi
8313
8314 if test "$no_x" = yes; then
8315   # Not all programs may use this symbol, but it does not hurt to define it.
8316
8317 cat >>confdefs.h <<\_ACEOF
8318 #define X_DISPLAY_MISSING 1
8319 _ACEOF
8320
8321   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8322 else
8323   if test -n "$x_includes"; then
8324     X_CFLAGS="$X_CFLAGS -I$x_includes"
8325   fi
8326
8327   # It would also be nice to do this for all -L options, not just this one.
8328   if test -n "$x_libraries"; then
8329     X_LIBS="$X_LIBS -L$x_libraries"
8330     # For Solaris; some versions of Sun CC require a space after -R and
8331     # others require no space.  Words are not sufficient . . . .
8332     case `(uname -sr) 2>/dev/null` in
8333     "SunOS 5"*)
8334       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8335 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8336       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8337       cat >conftest.$ac_ext <<_ACEOF
8338 #line $LINENO "configure"
8339 /* confdefs.h.  */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h.  */
8344
8345 int
8346 main ()
8347 {
8348
8349   ;
8350   return 0;
8351 }
8352 _ACEOF
8353 rm -f conftest.$ac_objext conftest$ac_exeext
8354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355   (eval $ac_link) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); } &&
8359          { ac_try='test -s conftest$ac_exeext'
8360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361   (eval $ac_try) 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; }; then
8365   ac_R_nospace=yes
8366 else
8367   echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370 ac_R_nospace=no
8371 fi
8372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8373       if test $ac_R_nospace = yes; then
8374         echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6
8376         X_LIBS="$X_LIBS -R$x_libraries"
8377       else
8378         LIBS="$ac_xsave_LIBS -R $x_libraries"
8379         cat >conftest.$ac_ext <<_ACEOF
8380 #line $LINENO "configure"
8381 /* confdefs.h.  */
8382 _ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h.  */
8386
8387 int
8388 main ()
8389 {
8390
8391   ;
8392   return 0;
8393 }
8394 _ACEOF
8395 rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8397   (eval $ac_link) 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); } &&
8401          { ac_try='test -s conftest$ac_exeext'
8402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403   (eval $ac_try) 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); }; }; then
8407   ac_R_space=yes
8408 else
8409   echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412 ac_R_space=no
8413 fi
8414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8415         if test $ac_R_space = yes; then
8416           echo "$as_me:$LINENO: result: yes" >&5
8417 echo "${ECHO_T}yes" >&6
8418           X_LIBS="$X_LIBS -R $x_libraries"
8419         else
8420           echo "$as_me:$LINENO: result: neither works" >&5
8421 echo "${ECHO_T}neither works" >&6
8422         fi
8423       fi
8424       LIBS=$ac_xsave_LIBS
8425     esac
8426   fi
8427
8428   # Check for system-dependent libraries X programs must link with.
8429   # Do this before checking for the system-independent R6 libraries
8430   # (-lICE), since we may need -lsocket or whatever for X linking.
8431
8432   if test "$ISC" = yes; then
8433     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8434   else
8435     # Martyn Johnson says this is needed for Ultrix, if the X
8436     # libraries were built with DECnet support.  And Karl Berry says
8437     # the Alpha needs dnet_stub (dnet does not exist).
8438     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8439     cat >conftest.$ac_ext <<_ACEOF
8440 #line $LINENO "configure"
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446
8447 /* Override any gcc2 internal prototype to avoid an error.  */
8448 #ifdef __cplusplus
8449 extern "C"
8450 #endif
8451 /* We use char because int might match the return type of a gcc2
8452    builtin and then its argument prototype would still apply.  */
8453 char XOpenDisplay ();
8454 int
8455 main ()
8456 {
8457 XOpenDisplay ();
8458   ;
8459   return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464   (eval $ac_link) 2>&5
8465   ac_status=$?
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); } &&
8468          { ac_try='test -s conftest$ac_exeext'
8469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8470   (eval $ac_try) 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); }; }; then
8474   :
8475 else
8476   echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8480 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8481 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8482   echo $ECHO_N "(cached) $ECHO_C" >&6
8483 else
8484   ac_check_lib_save_LIBS=$LIBS
8485 LIBS="-ldnet  $LIBS"
8486 cat >conftest.$ac_ext <<_ACEOF
8487 #line $LINENO "configure"
8488 /* confdefs.h.  */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h.  */
8493
8494 /* Override any gcc2 internal prototype to avoid an error.  */
8495 #ifdef __cplusplus
8496 extern "C"
8497 #endif
8498 /* We use char because int might match the return type of a gcc2
8499    builtin and then its argument prototype would still apply.  */
8500 char dnet_ntoa ();
8501 int
8502 main ()
8503 {
8504 dnet_ntoa ();
8505   ;
8506   return 0;
8507 }
8508 _ACEOF
8509 rm -f conftest.$ac_objext conftest$ac_exeext
8510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8511   (eval $ac_link) 2>&5
8512   ac_status=$?
8513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514   (exit $ac_status); } &&
8515          { ac_try='test -s conftest$ac_exeext'
8516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517   (eval $ac_try) 2>&5
8518   ac_status=$?
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); }; }; then
8521   ac_cv_lib_dnet_dnet_ntoa=yes
8522 else
8523   echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8525
8526 ac_cv_lib_dnet_dnet_ntoa=no
8527 fi
8528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8529 LIBS=$ac_check_lib_save_LIBS
8530 fi
8531 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8532 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8533 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8534   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8535 fi
8536
8537     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8538       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8539 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8540 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8541   echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543   ac_check_lib_save_LIBS=$LIBS
8544 LIBS="-ldnet_stub  $LIBS"
8545 cat >conftest.$ac_ext <<_ACEOF
8546 #line $LINENO "configure"
8547 /* confdefs.h.  */
8548 _ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h.  */
8552
8553 /* Override any gcc2 internal prototype to avoid an error.  */
8554 #ifdef __cplusplus
8555 extern "C"
8556 #endif
8557 /* We use char because int might match the return type of a gcc2
8558    builtin and then its argument prototype would still apply.  */
8559 char dnet_ntoa ();
8560 int
8561 main ()
8562 {
8563 dnet_ntoa ();
8564   ;
8565   return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570   (eval $ac_link) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); } &&
8574          { ac_try='test -s conftest$ac_exeext'
8575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576   (eval $ac_try) 2>&5
8577   ac_status=$?
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); }; }; then
8580   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8581 else
8582   echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 ac_cv_lib_dnet_stub_dnet_ntoa=no
8586 fi
8587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8588 LIBS=$ac_check_lib_save_LIBS
8589 fi
8590 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8591 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8592 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8593   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8594 fi
8595
8596     fi
8597 fi
8598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8599     LIBS="$ac_xsave_LIBS"
8600
8601     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8602     # to get the SysV transport functions.
8603     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8604     # needs -lnsl.
8605     # The nsl library prevents programs from opening the X display
8606     # on Irix 5.2, according to T.E. Dickey.
8607     # The functions gethostbyname, getservbyname, and inet_addr are
8608     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8609     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8610 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8611 if test "${ac_cv_func_gethostbyname+set}" = set; then
8612   echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614   cat >conftest.$ac_ext <<_ACEOF
8615 #line $LINENO "configure"
8616 /* confdefs.h.  */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h.  */
8621 /* System header to define __stub macros and hopefully few prototypes,
8622     which can conflict with char gethostbyname (); below.
8623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8624     <limits.h> exists even on freestanding compilers.  */
8625 #ifdef __STDC__
8626 # include <limits.h>
8627 #else
8628 # include <assert.h>
8629 #endif
8630 /* Override any gcc2 internal prototype to avoid an error.  */
8631 #ifdef __cplusplus
8632 extern "C"
8633 {
8634 #endif
8635 /* We use char because int might match the return type of a gcc2
8636    builtin and then its argument prototype would still apply.  */
8637 char gethostbyname ();
8638 /* The GNU C library defines this for functions which it implements
8639     to always fail with ENOSYS.  Some functions are actually named
8640     something starting with __ and the normal name is an alias.  */
8641 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8642 choke me
8643 #else
8644 char (*f) () = gethostbyname;
8645 #endif
8646 #ifdef __cplusplus
8647 }
8648 #endif
8649
8650 int
8651 main ()
8652 {
8653 return f != gethostbyname;
8654   ;
8655   return 0;
8656 }
8657 _ACEOF
8658 rm -f conftest.$ac_objext conftest$ac_exeext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660   (eval $ac_link) 2>&5
8661   ac_status=$?
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } &&
8664          { ac_try='test -s conftest$ac_exeext'
8665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666   (eval $ac_try) 2>&5
8667   ac_status=$?
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); }; }; then
8670   ac_cv_func_gethostbyname=yes
8671 else
8672   echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8674
8675 ac_cv_func_gethostbyname=no
8676 fi
8677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8678 fi
8679 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8680 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8681
8682     if test $ac_cv_func_gethostbyname = no; then
8683       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8684 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8685 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8686   echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688   ac_check_lib_save_LIBS=$LIBS
8689 LIBS="-lnsl  $LIBS"
8690 cat >conftest.$ac_ext <<_ACEOF
8691 #line $LINENO "configure"
8692 /* confdefs.h.  */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h.  */
8697
8698 /* Override any gcc2 internal prototype to avoid an error.  */
8699 #ifdef __cplusplus
8700 extern "C"
8701 #endif
8702 /* We use char because int might match the return type of a gcc2
8703    builtin and then its argument prototype would still apply.  */
8704 char gethostbyname ();
8705 int
8706 main ()
8707 {
8708 gethostbyname ();
8709   ;
8710   return 0;
8711 }
8712 _ACEOF
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715   (eval $ac_link) 2>&5
8716   ac_status=$?
8717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); } &&
8719          { ac_try='test -s conftest$ac_exeext'
8720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721   (eval $ac_try) 2>&5
8722   ac_status=$?
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); }; }; then
8725   ac_cv_lib_nsl_gethostbyname=yes
8726 else
8727   echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8729
8730 ac_cv_lib_nsl_gethostbyname=no
8731 fi
8732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8733 LIBS=$ac_check_lib_save_LIBS
8734 fi
8735 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8736 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8737 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8738   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8739 fi
8740
8741       if test $ac_cv_lib_nsl_gethostbyname = no; then
8742         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8743 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8744 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8745   echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747   ac_check_lib_save_LIBS=$LIBS
8748 LIBS="-lbsd  $LIBS"
8749 cat >conftest.$ac_ext <<_ACEOF
8750 #line $LINENO "configure"
8751 /* confdefs.h.  */
8752 _ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h.  */
8756
8757 /* Override any gcc2 internal prototype to avoid an error.  */
8758 #ifdef __cplusplus
8759 extern "C"
8760 #endif
8761 /* We use char because int might match the return type of a gcc2
8762    builtin and then its argument prototype would still apply.  */
8763 char gethostbyname ();
8764 int
8765 main ()
8766 {
8767 gethostbyname ();
8768   ;
8769   return 0;
8770 }
8771 _ACEOF
8772 rm -f conftest.$ac_objext conftest$ac_exeext
8773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8774   (eval $ac_link) 2>&5
8775   ac_status=$?
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); } &&
8778          { ac_try='test -s conftest$ac_exeext'
8779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8780   (eval $ac_try) 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); }; }; then
8784   ac_cv_lib_bsd_gethostbyname=yes
8785 else
8786   echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8788
8789 ac_cv_lib_bsd_gethostbyname=no
8790 fi
8791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8792 LIBS=$ac_check_lib_save_LIBS
8793 fi
8794 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8795 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8796 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8797   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8798 fi
8799
8800       fi
8801     fi
8802
8803     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8804     # socket/setsockopt and other routines are undefined under SCO ODT
8805     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8806     # on later versions), says Simon Leinen: it contains gethostby*
8807     # variants that don't use the name server (or something).  -lsocket
8808     # must be given before -lnsl if both are needed.  We assume that
8809     # if connect needs -lnsl, so does gethostbyname.
8810     echo "$as_me:$LINENO: checking for connect" >&5
8811 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8812 if test "${ac_cv_func_connect+set}" = set; then
8813   echo $ECHO_N "(cached) $ECHO_C" >&6
8814 else
8815   cat >conftest.$ac_ext <<_ACEOF
8816 #line $LINENO "configure"
8817 /* confdefs.h.  */
8818 _ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h.  */
8822 /* System header to define __stub macros and hopefully few prototypes,
8823     which can conflict with char connect (); below.
8824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8825     <limits.h> exists even on freestanding compilers.  */
8826 #ifdef __STDC__
8827 # include <limits.h>
8828 #else
8829 # include <assert.h>
8830 #endif
8831 /* Override any gcc2 internal prototype to avoid an error.  */
8832 #ifdef __cplusplus
8833 extern "C"
8834 {
8835 #endif
8836 /* We use char because int might match the return type of a gcc2
8837    builtin and then its argument prototype would still apply.  */
8838 char connect ();
8839 /* The GNU C library defines this for functions which it implements
8840     to always fail with ENOSYS.  Some functions are actually named
8841     something starting with __ and the normal name is an alias.  */
8842 #if defined (__stub_connect) || defined (__stub___connect)
8843 choke me
8844 #else
8845 char (*f) () = connect;
8846 #endif
8847 #ifdef __cplusplus
8848 }
8849 #endif
8850
8851 int
8852 main ()
8853 {
8854 return f != connect;
8855   ;
8856   return 0;
8857 }
8858 _ACEOF
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861   (eval $ac_link) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); } &&
8865          { ac_try='test -s conftest$ac_exeext'
8866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867   (eval $ac_try) 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; }; then
8871   ac_cv_func_connect=yes
8872 else
8873   echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876 ac_cv_func_connect=no
8877 fi
8878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8879 fi
8880 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8881 echo "${ECHO_T}$ac_cv_func_connect" >&6
8882
8883     if test $ac_cv_func_connect = no; then
8884       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8885 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8886 if test "${ac_cv_lib_socket_connect+set}" = set; then
8887   echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889   ac_check_lib_save_LIBS=$LIBS
8890 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8891 cat >conftest.$ac_ext <<_ACEOF
8892 #line $LINENO "configure"
8893 /* confdefs.h.  */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h.  */
8898
8899 /* Override any gcc2 internal prototype to avoid an error.  */
8900 #ifdef __cplusplus
8901 extern "C"
8902 #endif
8903 /* We use char because int might match the return type of a gcc2
8904    builtin and then its argument prototype would still apply.  */
8905 char connect ();
8906 int
8907 main ()
8908 {
8909 connect ();
8910   ;
8911   return 0;
8912 }
8913 _ACEOF
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916   (eval $ac_link) 2>&5
8917   ac_status=$?
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); } &&
8920          { ac_try='test -s conftest$ac_exeext'
8921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922   (eval $ac_try) 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); }; }; then
8926   ac_cv_lib_socket_connect=yes
8927 else
8928   echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8930
8931 ac_cv_lib_socket_connect=no
8932 fi
8933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8934 LIBS=$ac_check_lib_save_LIBS
8935 fi
8936 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8937 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8938 if test $ac_cv_lib_socket_connect = yes; then
8939   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8940 fi
8941
8942     fi
8943
8944     # Guillermo Gomez says -lposix is necessary on A/UX.
8945     echo "$as_me:$LINENO: checking for remove" >&5
8946 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8947 if test "${ac_cv_func_remove+set}" = set; then
8948   echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950   cat >conftest.$ac_ext <<_ACEOF
8951 #line $LINENO "configure"
8952 /* confdefs.h.  */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h.  */
8957 /* System header to define __stub macros and hopefully few prototypes,
8958     which can conflict with char remove (); below.
8959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8960     <limits.h> exists even on freestanding compilers.  */
8961 #ifdef __STDC__
8962 # include <limits.h>
8963 #else
8964 # include <assert.h>
8965 #endif
8966 /* Override any gcc2 internal prototype to avoid an error.  */
8967 #ifdef __cplusplus
8968 extern "C"
8969 {
8970 #endif
8971 /* We use char because int might match the return type of a gcc2
8972    builtin and then its argument prototype would still apply.  */
8973 char remove ();
8974 /* The GNU C library defines this for functions which it implements
8975     to always fail with ENOSYS.  Some functions are actually named
8976     something starting with __ and the normal name is an alias.  */
8977 #if defined (__stub_remove) || defined (__stub___remove)
8978 choke me
8979 #else
8980 char (*f) () = remove;
8981 #endif
8982 #ifdef __cplusplus
8983 }
8984 #endif
8985
8986 int
8987 main ()
8988 {
8989 return f != remove;
8990   ;
8991   return 0;
8992 }
8993 _ACEOF
8994 rm -f conftest.$ac_objext conftest$ac_exeext
8995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8996   (eval $ac_link) 2>&5
8997   ac_status=$?
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); } &&
9000          { ac_try='test -s conftest$ac_exeext'
9001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002   (eval $ac_try) 2>&5
9003   ac_status=$?
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); }; }; then
9006   ac_cv_func_remove=yes
9007 else
9008   echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011 ac_cv_func_remove=no
9012 fi
9013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9014 fi
9015 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9016 echo "${ECHO_T}$ac_cv_func_remove" >&6
9017
9018     if test $ac_cv_func_remove = no; then
9019       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9020 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9021 if test "${ac_cv_lib_posix_remove+set}" = set; then
9022   echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024   ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lposix  $LIBS"
9026 cat >conftest.$ac_ext <<_ACEOF
9027 #line $LINENO "configure"
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033
9034 /* Override any gcc2 internal prototype to avoid an error.  */
9035 #ifdef __cplusplus
9036 extern "C"
9037 #endif
9038 /* We use char because int might match the return type of a gcc2
9039    builtin and then its argument prototype would still apply.  */
9040 char remove ();
9041 int
9042 main ()
9043 {
9044 remove ();
9045   ;
9046   return 0;
9047 }
9048 _ACEOF
9049 rm -f conftest.$ac_objext conftest$ac_exeext
9050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9051   (eval $ac_link) 2>&5
9052   ac_status=$?
9053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054   (exit $ac_status); } &&
9055          { ac_try='test -s conftest$ac_exeext'
9056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9057   (eval $ac_try) 2>&5
9058   ac_status=$?
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); }; }; then
9061   ac_cv_lib_posix_remove=yes
9062 else
9063   echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9065
9066 ac_cv_lib_posix_remove=no
9067 fi
9068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9069 LIBS=$ac_check_lib_save_LIBS
9070 fi
9071 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9072 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9073 if test $ac_cv_lib_posix_remove = yes; then
9074   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9075 fi
9076
9077     fi
9078
9079     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9080     echo "$as_me:$LINENO: checking for shmat" >&5
9081 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9082 if test "${ac_cv_func_shmat+set}" = set; then
9083   echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085   cat >conftest.$ac_ext <<_ACEOF
9086 #line $LINENO "configure"
9087 /* confdefs.h.  */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h.  */
9092 /* System header to define __stub macros and hopefully few prototypes,
9093     which can conflict with char shmat (); below.
9094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9095     <limits.h> exists even on freestanding compilers.  */
9096 #ifdef __STDC__
9097 # include <limits.h>
9098 #else
9099 # include <assert.h>
9100 #endif
9101 /* Override any gcc2 internal prototype to avoid an error.  */
9102 #ifdef __cplusplus
9103 extern "C"
9104 {
9105 #endif
9106 /* We use char because int might match the return type of a gcc2
9107    builtin and then its argument prototype would still apply.  */
9108 char shmat ();
9109 /* The GNU C library defines this for functions which it implements
9110     to always fail with ENOSYS.  Some functions are actually named
9111     something starting with __ and the normal name is an alias.  */
9112 #if defined (__stub_shmat) || defined (__stub___shmat)
9113 choke me
9114 #else
9115 char (*f) () = shmat;
9116 #endif
9117 #ifdef __cplusplus
9118 }
9119 #endif
9120
9121 int
9122 main ()
9123 {
9124 return f != shmat;
9125   ;
9126   return 0;
9127 }
9128 _ACEOF
9129 rm -f conftest.$ac_objext conftest$ac_exeext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9131   (eval $ac_link) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } &&
9135          { ac_try='test -s conftest$ac_exeext'
9136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137   (eval $ac_try) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); }; }; then
9141   ac_cv_func_shmat=yes
9142 else
9143   echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9145
9146 ac_cv_func_shmat=no
9147 fi
9148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9149 fi
9150 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9151 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9152
9153     if test $ac_cv_func_shmat = no; then
9154       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9155 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9156 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9157   echo $ECHO_N "(cached) $ECHO_C" >&6
9158 else
9159   ac_check_lib_save_LIBS=$LIBS
9160 LIBS="-lipc  $LIBS"
9161 cat >conftest.$ac_ext <<_ACEOF
9162 #line $LINENO "configure"
9163 /* confdefs.h.  */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h.  */
9168
9169 /* Override any gcc2 internal prototype to avoid an error.  */
9170 #ifdef __cplusplus
9171 extern "C"
9172 #endif
9173 /* We use char because int might match the return type of a gcc2
9174    builtin and then its argument prototype would still apply.  */
9175 char shmat ();
9176 int
9177 main ()
9178 {
9179 shmat ();
9180   ;
9181   return 0;
9182 }
9183 _ACEOF
9184 rm -f conftest.$ac_objext conftest$ac_exeext
9185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9186   (eval $ac_link) 2>&5
9187   ac_status=$?
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); } &&
9190          { ac_try='test -s conftest$ac_exeext'
9191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192   (eval $ac_try) 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); }; }; then
9196   ac_cv_lib_ipc_shmat=yes
9197 else
9198   echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9200
9201 ac_cv_lib_ipc_shmat=no
9202 fi
9203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9204 LIBS=$ac_check_lib_save_LIBS
9205 fi
9206 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9207 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9208 if test $ac_cv_lib_ipc_shmat = yes; then
9209   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9210 fi
9211
9212     fi
9213   fi
9214
9215   # Check for libraries that X11R6 Xt/Xaw programs need.
9216   ac_save_LDFLAGS=$LDFLAGS
9217   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9218   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9219   # check for ICE first), but we must link in the order -lSM -lICE or
9220   # we get undefined symbols.  So assume we have SM if we have ICE.
9221   # These have to be linked with before -lX11, unlike the other
9222   # libraries we check for below, so use a different variable.
9223   # John Interrante, Karl Berry
9224   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9225 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9226 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   ac_check_lib_save_LIBS=$LIBS
9230 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9231 cat >conftest.$ac_ext <<_ACEOF
9232 #line $LINENO "configure"
9233 /* confdefs.h.  */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h.  */
9238
9239 /* Override any gcc2 internal prototype to avoid an error.  */
9240 #ifdef __cplusplus
9241 extern "C"
9242 #endif
9243 /* We use char because int might match the return type of a gcc2
9244    builtin and then its argument prototype would still apply.  */
9245 char IceConnectionNumber ();
9246 int
9247 main ()
9248 {
9249 IceConnectionNumber ();
9250   ;
9251   return 0;
9252 }
9253 _ACEOF
9254 rm -f conftest.$ac_objext conftest$ac_exeext
9255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9256   (eval $ac_link) 2>&5
9257   ac_status=$?
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); } &&
9260          { ac_try='test -s conftest$ac_exeext'
9261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262   (eval $ac_try) 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); }; }; then
9266   ac_cv_lib_ICE_IceConnectionNumber=yes
9267 else
9268   echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9270
9271 ac_cv_lib_ICE_IceConnectionNumber=no
9272 fi
9273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9274 LIBS=$ac_check_lib_save_LIBS
9275 fi
9276 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9277 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9278 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9279   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9280 fi
9281
9282   LDFLAGS=$ac_save_LDFLAGS
9283
9284 fi
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313 for ac_header in \
9314         assert.h \
9315         fcntl.h \
9316         grp.h \
9317         pwd.h \
9318         libc.h \
9319         limits.h \
9320         stdarg.h \
9321         stdlib.h \
9322         stdint.h \
9323         string.h \
9324         termios.h \
9325         termcap.h \
9326         unistd.h \
9327         sys/bitypes.h \
9328         sys/byteorder.h \
9329         sys/ioctl.h \
9330         sys/select.h \
9331         sys/sockio.h \
9332         sys/time.h \
9333         sys/socket.h \
9334         arpa/nameser.h \
9335         resolv.h \
9336         mtio.h \
9337         sys/mtio.h \
9338         sys/tape.h \
9339         regex.h \
9340
9341 do
9342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9344   echo "$as_me:$LINENO: checking for $ac_header" >&5
9345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9347   echo $ECHO_N "(cached) $ECHO_C" >&6
9348 fi
9349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9351 else
9352   # Is the header compilable?
9353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9355 cat >conftest.$ac_ext <<_ACEOF
9356 #line $LINENO "configure"
9357 /* confdefs.h.  */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h.  */
9362 $ac_includes_default
9363 #include <$ac_header>
9364 _ACEOF
9365 rm -f conftest.$ac_objext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367   (eval $ac_compile) 2>&5
9368   ac_status=$?
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); } &&
9371          { ac_try='test -s conftest.$ac_objext'
9372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9373   (eval $ac_try) 2>&5
9374   ac_status=$?
9375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376   (exit $ac_status); }; }; then
9377   ac_header_compiler=yes
9378 else
9379   echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9381
9382 ac_header_compiler=no
9383 fi
9384 rm -f conftest.$ac_objext conftest.$ac_ext
9385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9386 echo "${ECHO_T}$ac_header_compiler" >&6
9387
9388 # Is the header present?
9389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9391 cat >conftest.$ac_ext <<_ACEOF
9392 #line $LINENO "configure"
9393 /* confdefs.h.  */
9394 _ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h.  */
9398 #include <$ac_header>
9399 _ACEOF
9400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9401   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9402   ac_status=$?
9403   grep -v '^ *+' conftest.er1 >conftest.err
9404   rm -f conftest.er1
9405   cat conftest.err >&5
9406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407   (exit $ac_status); } >/dev/null; then
9408   if test -s conftest.err; then
9409     ac_cpp_err=$ac_c_preproc_warn_flag
9410   else
9411     ac_cpp_err=
9412   fi
9413 else
9414   ac_cpp_err=yes
9415 fi
9416 if test -z "$ac_cpp_err"; then
9417   ac_header_preproc=yes
9418 else
9419   echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9421
9422   ac_header_preproc=no
9423 fi
9424 rm -f conftest.err conftest.$ac_ext
9425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9426 echo "${ECHO_T}$ac_header_preproc" >&6
9427
9428 # So?  What about this header?
9429 case $ac_header_compiler:$ac_header_preproc in
9430   yes:no )
9431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9435     (
9436       cat <<\_ASBOX
9437 ## ------------------------------------ ##
9438 ## Report this to bug-autoconf@gnu.org. ##
9439 ## ------------------------------------ ##
9440 _ASBOX
9441     ) |
9442       sed "s/^/$as_me: WARNING:     /" >&2
9443     ;;
9444   no:yes )
9445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9447     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9451     (
9452       cat <<\_ASBOX
9453 ## ------------------------------------ ##
9454 ## Report this to bug-autoconf@gnu.org. ##
9455 ## ------------------------------------ ##
9456 _ASBOX
9457     ) |
9458       sed "s/^/$as_me: WARNING:     /" >&2
9459     ;;
9460 esac
9461 echo "$as_me:$LINENO: checking for $ac_header" >&5
9462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9464   echo $ECHO_N "(cached) $ECHO_C" >&6
9465 else
9466   eval "$as_ac_Header=$ac_header_preproc"
9467 fi
9468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9470
9471 fi
9472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9473   cat >>confdefs.h <<_ACEOF
9474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9475 _ACEOF
9476
9477 fi
9478
9479 done
9480
9481 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9482 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9483 if test "${ac_cv_header_stdc+set}" = set; then
9484   echo $ECHO_N "(cached) $ECHO_C" >&6
9485 else
9486   cat >conftest.$ac_ext <<_ACEOF
9487 #line $LINENO "configure"
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493 #include <stdlib.h>
9494 #include <stdarg.h>
9495 #include <string.h>
9496 #include <float.h>
9497
9498 int
9499 main ()
9500 {
9501
9502   ;
9503   return 0;
9504 }
9505 _ACEOF
9506 rm -f conftest.$ac_objext
9507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9508   (eval $ac_compile) 2>&5
9509   ac_status=$?
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); } &&
9512          { ac_try='test -s conftest.$ac_objext'
9513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514   (eval $ac_try) 2>&5
9515   ac_status=$?
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); }; }; then
9518   ac_cv_header_stdc=yes
9519 else
9520   echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9522
9523 ac_cv_header_stdc=no
9524 fi
9525 rm -f conftest.$ac_objext conftest.$ac_ext
9526
9527 if test $ac_cv_header_stdc = yes; then
9528   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9529   cat >conftest.$ac_ext <<_ACEOF
9530 #line $LINENO "configure"
9531 /* confdefs.h.  */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h.  */
9536 #include <string.h>
9537
9538 _ACEOF
9539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9540   $EGREP "memchr" >/dev/null 2>&1; then
9541   :
9542 else
9543   ac_cv_header_stdc=no
9544 fi
9545 rm -f conftest*
9546
9547 fi
9548
9549 if test $ac_cv_header_stdc = yes; then
9550   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9551   cat >conftest.$ac_ext <<_ACEOF
9552 #line $LINENO "configure"
9553 /* confdefs.h.  */
9554 _ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h.  */
9558 #include <stdlib.h>
9559
9560 _ACEOF
9561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9562   $EGREP "free" >/dev/null 2>&1; then
9563   :
9564 else
9565   ac_cv_header_stdc=no
9566 fi
9567 rm -f conftest*
9568
9569 fi
9570
9571 if test $ac_cv_header_stdc = yes; then
9572   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9573   if test "$cross_compiling" = yes; then
9574   :
9575 else
9576   cat >conftest.$ac_ext <<_ACEOF
9577 #line $LINENO "configure"
9578 /* confdefs.h.  */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h.  */
9583 #include <ctype.h>
9584 #if ((' ' & 0x0FF) == 0x020)
9585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9587 #else
9588 # define ISLOWER(c) \
9589                    (('a' <= (c) && (c) <= 'i') \
9590                      || ('j' <= (c) && (c) <= 'r') \
9591                      || ('s' <= (c) && (c) <= 'z'))
9592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9593 #endif
9594
9595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9596 int
9597 main ()
9598 {
9599   int i;
9600   for (i = 0; i < 256; i++)
9601     if (XOR (islower (i), ISLOWER (i))
9602         || toupper (i) != TOUPPER (i))
9603       exit(2);
9604   exit (0);
9605 }
9606 _ACEOF
9607 rm -f conftest$ac_exeext
9608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609   (eval $ac_link) 2>&5
9610   ac_status=$?
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614   (eval $ac_try) 2>&5
9615   ac_status=$?
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); }; }; then
9618   :
9619 else
9620   echo "$as_me: program exited with status $ac_status" >&5
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9623
9624 ( exit $ac_status )
9625 ac_cv_header_stdc=no
9626 fi
9627 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9628 fi
9629 fi
9630 fi
9631 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9632 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9633 if test $ac_cv_header_stdc = yes; then
9634
9635 cat >>confdefs.h <<\_ACEOF
9636 #define STDC_HEADERS 1
9637 _ACEOF
9638
9639 fi
9640
9641 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9642 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9643 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9644   echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646   cat >conftest.$ac_ext <<_ACEOF
9647 #line $LINENO "configure"
9648 /* confdefs.h.  */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h.  */
9653 #include <sys/types.h>
9654 int
9655 main ()
9656 {
9657 return makedev(0, 0);
9658   ;
9659   return 0;
9660 }
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664   (eval $ac_link) 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); } &&
9668          { ac_try='test -s conftest$ac_exeext'
9669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670   (eval $ac_try) 2>&5
9671   ac_status=$?
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); }; }; then
9674   ac_cv_header_sys_types_h_makedev=yes
9675 else
9676   echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9678
9679 ac_cv_header_sys_types_h_makedev=no
9680 fi
9681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9682
9683 fi
9684 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9685 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9686
9687 if test $ac_cv_header_sys_types_h_makedev = no; then
9688 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9689   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9690 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9691 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9692   echo $ECHO_N "(cached) $ECHO_C" >&6
9693 fi
9694 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9695 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9696 else
9697   # Is the header compilable?
9698 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9699 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9700 cat >conftest.$ac_ext <<_ACEOF
9701 #line $LINENO "configure"
9702 /* confdefs.h.  */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h.  */
9707 $ac_includes_default
9708 #include <sys/mkdev.h>
9709 _ACEOF
9710 rm -f conftest.$ac_objext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9712   (eval $ac_compile) 2>&5
9713   ac_status=$?
9714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715   (exit $ac_status); } &&
9716          { ac_try='test -s conftest.$ac_objext'
9717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718   (eval $ac_try) 2>&5
9719   ac_status=$?
9720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721   (exit $ac_status); }; }; then
9722   ac_header_compiler=yes
9723 else
9724   echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9726
9727 ac_header_compiler=no
9728 fi
9729 rm -f conftest.$ac_objext conftest.$ac_ext
9730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9731 echo "${ECHO_T}$ac_header_compiler" >&6
9732
9733 # Is the header present?
9734 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9735 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9737 #line $LINENO "configure"
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743 #include <sys/mkdev.h>
9744 _ACEOF
9745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9746   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9747   ac_status=$?
9748   grep -v '^ *+' conftest.er1 >conftest.err
9749   rm -f conftest.er1
9750   cat conftest.err >&5
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); } >/dev/null; then
9753   if test -s conftest.err; then
9754     ac_cpp_err=$ac_c_preproc_warn_flag
9755   else
9756     ac_cpp_err=
9757   fi
9758 else
9759   ac_cpp_err=yes
9760 fi
9761 if test -z "$ac_cpp_err"; then
9762   ac_header_preproc=yes
9763 else
9764   echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9766
9767   ac_header_preproc=no
9768 fi
9769 rm -f conftest.err conftest.$ac_ext
9770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9771 echo "${ECHO_T}$ac_header_preproc" >&6
9772
9773 # So?  What about this header?
9774 case $ac_header_compiler:$ac_header_preproc in
9775   yes:no )
9776     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9777 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9778     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9779 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9780     (
9781       cat <<\_ASBOX
9782 ## ------------------------------------ ##
9783 ## Report this to bug-autoconf@gnu.org. ##
9784 ## ------------------------------------ ##
9785 _ASBOX
9786     ) |
9787       sed "s/^/$as_me: WARNING:     /" >&2
9788     ;;
9789   no:yes )
9790     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9791 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9792     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9793 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9794     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9795 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9796     (
9797       cat <<\_ASBOX
9798 ## ------------------------------------ ##
9799 ## Report this to bug-autoconf@gnu.org. ##
9800 ## ------------------------------------ ##
9801 _ASBOX
9802     ) |
9803       sed "s/^/$as_me: WARNING:     /" >&2
9804     ;;
9805 esac
9806 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9807 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9808 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9809   echo $ECHO_N "(cached) $ECHO_C" >&6
9810 else
9811   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9812 fi
9813 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9814 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9815
9816 fi
9817 if test $ac_cv_header_sys_mkdev_h = yes; then
9818
9819 cat >>confdefs.h <<\_ACEOF
9820 #define MAJOR_IN_MKDEV 1
9821 _ACEOF
9822
9823 fi
9824
9825
9826
9827   if test $ac_cv_header_sys_mkdev_h = no; then
9828     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9829   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9830 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9831 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9832   echo $ECHO_N "(cached) $ECHO_C" >&6
9833 fi
9834 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9835 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9836 else
9837   # Is the header compilable?
9838 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9839 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9840 cat >conftest.$ac_ext <<_ACEOF
9841 #line $LINENO "configure"
9842 /* confdefs.h.  */
9843 _ACEOF
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h.  */
9847 $ac_includes_default
9848 #include <sys/sysmacros.h>
9849 _ACEOF
9850 rm -f conftest.$ac_objext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852   (eval $ac_compile) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); } &&
9856          { ac_try='test -s conftest.$ac_objext'
9857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858   (eval $ac_try) 2>&5
9859   ac_status=$?
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); }; }; then
9862   ac_header_compiler=yes
9863 else
9864   echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9866
9867 ac_header_compiler=no
9868 fi
9869 rm -f conftest.$ac_objext conftest.$ac_ext
9870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9871 echo "${ECHO_T}$ac_header_compiler" >&6
9872
9873 # Is the header present?
9874 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9875 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9876 cat >conftest.$ac_ext <<_ACEOF
9877 #line $LINENO "configure"
9878 /* confdefs.h.  */
9879 _ACEOF
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h.  */
9883 #include <sys/sysmacros.h>
9884 _ACEOF
9885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9887   ac_status=$?
9888   grep -v '^ *+' conftest.er1 >conftest.err
9889   rm -f conftest.er1
9890   cat conftest.err >&5
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); } >/dev/null; then
9893   if test -s conftest.err; then
9894     ac_cpp_err=$ac_c_preproc_warn_flag
9895   else
9896     ac_cpp_err=
9897   fi
9898 else
9899   ac_cpp_err=yes
9900 fi
9901 if test -z "$ac_cpp_err"; then
9902   ac_header_preproc=yes
9903 else
9904   echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907   ac_header_preproc=no
9908 fi
9909 rm -f conftest.err conftest.$ac_ext
9910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9911 echo "${ECHO_T}$ac_header_preproc" >&6
9912
9913 # So?  What about this header?
9914 case $ac_header_compiler:$ac_header_preproc in
9915   yes:no )
9916     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9917 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9918     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9919 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9920     (
9921       cat <<\_ASBOX
9922 ## ------------------------------------ ##
9923 ## Report this to bug-autoconf@gnu.org. ##
9924 ## ------------------------------------ ##
9925 _ASBOX
9926     ) |
9927       sed "s/^/$as_me: WARNING:     /" >&2
9928     ;;
9929   no:yes )
9930     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9931 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9932     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9933 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9934     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9935 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9936     (
9937       cat <<\_ASBOX
9938 ## ------------------------------------ ##
9939 ## Report this to bug-autoconf@gnu.org. ##
9940 ## ------------------------------------ ##
9941 _ASBOX
9942     ) |
9943       sed "s/^/$as_me: WARNING:     /" >&2
9944     ;;
9945 esac
9946 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9947 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9948 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9949   echo $ECHO_N "(cached) $ECHO_C" >&6
9950 else
9951   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9952 fi
9953 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9954 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9955
9956 fi
9957 if test $ac_cv_header_sys_sysmacros_h = yes; then
9958
9959 cat >>confdefs.h <<\_ACEOF
9960 #define MAJOR_IN_SYSMACROS 1
9961 _ACEOF
9962
9963 fi
9964
9965
9966   fi
9967 fi
9968
9969
9970
9971
9972
9973
9974 ac_header_dirent=no
9975 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9976   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9977 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9978 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9980   echo $ECHO_N "(cached) $ECHO_C" >&6
9981 else
9982   cat >conftest.$ac_ext <<_ACEOF
9983 #line $LINENO "configure"
9984 /* confdefs.h.  */
9985 _ACEOF
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h.  */
9989 #include <sys/types.h>
9990 #include <$ac_hdr>
9991
9992 int
9993 main ()
9994 {
9995 if ((DIR *) 0)
9996 return 0;
9997   ;
9998   return 0;
9999 }
10000 _ACEOF
10001 rm -f conftest.$ac_objext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10003   (eval $ac_compile) 2>&5
10004   ac_status=$?
10005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006   (exit $ac_status); } &&
10007          { ac_try='test -s conftest.$ac_objext'
10008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009   (eval $ac_try) 2>&5
10010   ac_status=$?
10011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012   (exit $ac_status); }; }; then
10013   eval "$as_ac_Header=yes"
10014 else
10015   echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10017
10018 eval "$as_ac_Header=no"
10019 fi
10020 rm -f conftest.$ac_objext conftest.$ac_ext
10021 fi
10022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10025   cat >>confdefs.h <<_ACEOF
10026 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10027 _ACEOF
10028
10029 ac_header_dirent=$ac_hdr; break
10030 fi
10031
10032 done
10033 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10034 if test $ac_header_dirent = dirent.h; then
10035   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10036 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10037 if test "${ac_cv_search_opendir+set}" = set; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040   ac_func_search_save_LIBS=$LIBS
10041 ac_cv_search_opendir=no
10042 cat >conftest.$ac_ext <<_ACEOF
10043 #line $LINENO "configure"
10044 /* confdefs.h.  */
10045 _ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h.  */
10049
10050 /* Override any gcc2 internal prototype to avoid an error.  */
10051 #ifdef __cplusplus
10052 extern "C"
10053 #endif
10054 /* We use char because int might match the return type of a gcc2
10055    builtin and then its argument prototype would still apply.  */
10056 char opendir ();
10057 int
10058 main ()
10059 {
10060 opendir ();
10061   ;
10062   return 0;
10063 }
10064 _ACEOF
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067   (eval $ac_link) 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); } &&
10071          { ac_try='test -s conftest$ac_exeext'
10072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073   (eval $ac_try) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; }; then
10077   ac_cv_search_opendir="none required"
10078 else
10079   echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10081
10082 fi
10083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10084 if test "$ac_cv_search_opendir" = no; then
10085   for ac_lib in dir; do
10086     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10087     cat >conftest.$ac_ext <<_ACEOF
10088 #line $LINENO "configure"
10089 /* confdefs.h.  */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h.  */
10094
10095 /* Override any gcc2 internal prototype to avoid an error.  */
10096 #ifdef __cplusplus
10097 extern "C"
10098 #endif
10099 /* We use char because int might match the return type of a gcc2
10100    builtin and then its argument prototype would still apply.  */
10101 char opendir ();
10102 int
10103 main ()
10104 {
10105 opendir ();
10106   ;
10107   return 0;
10108 }
10109 _ACEOF
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10112   (eval $ac_link) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); } &&
10116          { ac_try='test -s conftest$ac_exeext'
10117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118   (eval $ac_try) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; }; then
10122   ac_cv_search_opendir="-l$ac_lib"
10123 break
10124 else
10125   echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10127
10128 fi
10129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10130   done
10131 fi
10132 LIBS=$ac_func_search_save_LIBS
10133 fi
10134 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10135 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10136 if test "$ac_cv_search_opendir" != no; then
10137   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10138
10139 fi
10140
10141 else
10142   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10143 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10144 if test "${ac_cv_search_opendir+set}" = set; then
10145   echo $ECHO_N "(cached) $ECHO_C" >&6
10146 else
10147   ac_func_search_save_LIBS=$LIBS
10148 ac_cv_search_opendir=no
10149 cat >conftest.$ac_ext <<_ACEOF
10150 #line $LINENO "configure"
10151 /* confdefs.h.  */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h.  */
10156
10157 /* Override any gcc2 internal prototype to avoid an error.  */
10158 #ifdef __cplusplus
10159 extern "C"
10160 #endif
10161 /* We use char because int might match the return type of a gcc2
10162    builtin and then its argument prototype would still apply.  */
10163 char opendir ();
10164 int
10165 main ()
10166 {
10167 opendir ();
10168   ;
10169   return 0;
10170 }
10171 _ACEOF
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174   (eval $ac_link) 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } &&
10178          { ac_try='test -s conftest$ac_exeext'
10179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180   (eval $ac_try) 2>&5
10181   ac_status=$?
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); }; }; then
10184   ac_cv_search_opendir="none required"
10185 else
10186   echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10188
10189 fi
10190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10191 if test "$ac_cv_search_opendir" = no; then
10192   for ac_lib in x; do
10193     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10194     cat >conftest.$ac_ext <<_ACEOF
10195 #line $LINENO "configure"
10196 /* confdefs.h.  */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h.  */
10201
10202 /* Override any gcc2 internal prototype to avoid an error.  */
10203 #ifdef __cplusplus
10204 extern "C"
10205 #endif
10206 /* We use char because int might match the return type of a gcc2
10207    builtin and then its argument prototype would still apply.  */
10208 char opendir ();
10209 int
10210 main ()
10211 {
10212 opendir ();
10213   ;
10214   return 0;
10215 }
10216 _ACEOF
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10219   (eval $ac_link) 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); } &&
10223          { ac_try='test -s conftest$ac_exeext'
10224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225   (eval $ac_try) 2>&5
10226   ac_status=$?
10227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228   (exit $ac_status); }; }; then
10229   ac_cv_search_opendir="-l$ac_lib"
10230 break
10231 else
10232   echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10234
10235 fi
10236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10237   done
10238 fi
10239 LIBS=$ac_func_search_save_LIBS
10240 fi
10241 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10242 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10243 if test "$ac_cv_search_opendir" != no; then
10244   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10245
10246 fi
10247
10248 fi
10249
10250 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10251 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10252 if test "${ac_cv_header_stat_broken+set}" = set; then
10253   echo $ECHO_N "(cached) $ECHO_C" >&6
10254 else
10255   cat >conftest.$ac_ext <<_ACEOF
10256 #line $LINENO "configure"
10257 /* confdefs.h.  */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h.  */
10262 #include <sys/types.h>
10263 #include <sys/stat.h>
10264
10265 #if defined(S_ISBLK) && defined(S_IFDIR)
10266 # if S_ISBLK (S_IFDIR)
10267 You lose.
10268 # endif
10269 #endif
10270
10271 #if defined(S_ISBLK) && defined(S_IFCHR)
10272 # if S_ISBLK (S_IFCHR)
10273 You lose.
10274 # endif
10275 #endif
10276
10277 #if defined(S_ISLNK) && defined(S_IFREG)
10278 # if S_ISLNK (S_IFREG)
10279 You lose.
10280 # endif
10281 #endif
10282
10283 #if defined(S_ISSOCK) && defined(S_IFREG)
10284 # if S_ISSOCK (S_IFREG)
10285 You lose.
10286 # endif
10287 #endif
10288
10289 _ACEOF
10290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10291   $EGREP "You lose" >/dev/null 2>&1; then
10292   ac_cv_header_stat_broken=yes
10293 else
10294   ac_cv_header_stat_broken=no
10295 fi
10296 rm -f conftest*
10297
10298 fi
10299 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10300 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10301 if test $ac_cv_header_stat_broken = yes; then
10302
10303 cat >>confdefs.h <<\_ACEOF
10304 #define STAT_MACROS_BROKEN 1
10305 _ACEOF
10306
10307 fi
10308
10309 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10310 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10311 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10312   echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314   cat >conftest.$ac_ext <<_ACEOF
10315 #line $LINENO "configure"
10316 /* confdefs.h.  */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h.  */
10321 #include <sys/types.h>
10322 #include <sys/wait.h>
10323 #ifndef WEXITSTATUS
10324 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10325 #endif
10326 #ifndef WIFEXITED
10327 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10328 #endif
10329
10330 int
10331 main ()
10332 {
10333   int s;
10334   wait (&s);
10335   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10336   ;
10337   return 0;
10338 }
10339 _ACEOF
10340 rm -f conftest.$ac_objext
10341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10342   (eval $ac_compile) 2>&5
10343   ac_status=$?
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); } &&
10346          { ac_try='test -s conftest.$ac_objext'
10347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348   (eval $ac_try) 2>&5
10349   ac_status=$?
10350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351   (exit $ac_status); }; }; then
10352   ac_cv_header_sys_wait_h=yes
10353 else
10354   echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 ac_cv_header_sys_wait_h=no
10358 fi
10359 rm -f conftest.$ac_objext conftest.$ac_ext
10360 fi
10361 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10362 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10363 if test $ac_cv_header_sys_wait_h = yes; then
10364
10365 cat >>confdefs.h <<\_ACEOF
10366 #define HAVE_SYS_WAIT_H 1
10367 _ACEOF
10368
10369 fi
10370
10371 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10372 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10373 if test "${ac_cv_header_time+set}" = set; then
10374   echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376   cat >conftest.$ac_ext <<_ACEOF
10377 #line $LINENO "configure"
10378 /* confdefs.h.  */
10379 _ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h.  */
10383 #include <sys/types.h>
10384 #include <sys/time.h>
10385 #include <time.h>
10386
10387 int
10388 main ()
10389 {
10390 if ((struct tm *) 0)
10391 return 0;
10392   ;
10393   return 0;
10394 }
10395 _ACEOF
10396 rm -f conftest.$ac_objext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10398   (eval $ac_compile) 2>&5
10399   ac_status=$?
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); } &&
10402          { ac_try='test -s conftest.$ac_objext'
10403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404   (eval $ac_try) 2>&5
10405   ac_status=$?
10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); }; }; then
10408   ac_cv_header_time=yes
10409 else
10410   echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10412
10413 ac_cv_header_time=no
10414 fi
10415 rm -f conftest.$ac_objext conftest.$ac_ext
10416 fi
10417 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10418 echo "${ECHO_T}$ac_cv_header_time" >&6
10419 if test $ac_cv_header_time = yes; then
10420
10421 cat >>confdefs.h <<\_ACEOF
10422 #define TIME_WITH_SYS_TIME 1
10423 _ACEOF
10424
10425 fi
10426
10427
10428 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10429 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10430 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10431   echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433   cat >conftest.$ac_ext <<_ACEOF
10434 #line $LINENO "configure"
10435 /* confdefs.h.  */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h.  */
10440 $ac_includes_default
10441 int
10442 main ()
10443 {
10444 static struct stat ac_aggr;
10445 if (ac_aggr.st_blksize)
10446 return 0;
10447   ;
10448   return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10453   (eval $ac_compile) 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } &&
10457          { ac_try='test -s conftest.$ac_objext'
10458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459   (eval $ac_try) 2>&5
10460   ac_status=$?
10461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462   (exit $ac_status); }; }; then
10463   ac_cv_member_struct_stat_st_blksize=yes
10464 else
10465   echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10467
10468 cat >conftest.$ac_ext <<_ACEOF
10469 #line $LINENO "configure"
10470 /* confdefs.h.  */
10471 _ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h.  */
10475 $ac_includes_default
10476 int
10477 main ()
10478 {
10479 static struct stat ac_aggr;
10480 if (sizeof ac_aggr.st_blksize)
10481 return 0;
10482   ;
10483   return 0;
10484 }
10485 _ACEOF
10486 rm -f conftest.$ac_objext
10487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10488   (eval $ac_compile) 2>&5
10489   ac_status=$?
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); } &&
10492          { ac_try='test -s conftest.$ac_objext'
10493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494   (eval $ac_try) 2>&5
10495   ac_status=$?
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); }; }; then
10498   ac_cv_member_struct_stat_st_blksize=yes
10499 else
10500   echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10502
10503 ac_cv_member_struct_stat_st_blksize=no
10504 fi
10505 rm -f conftest.$ac_objext conftest.$ac_ext
10506 fi
10507 rm -f conftest.$ac_objext conftest.$ac_ext
10508 fi
10509 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10510 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10511 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10512
10513 cat >>confdefs.h <<_ACEOF
10514 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10515 _ACEOF
10516
10517
10518 cat >>confdefs.h <<\_ACEOF
10519 #define HAVE_ST_BLKSIZE 1
10520 _ACEOF
10521
10522 fi
10523
10524
10525 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10526 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10527 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10528   echo $ECHO_N "(cached) $ECHO_C" >&6
10529 else
10530   cat >conftest.$ac_ext <<_ACEOF
10531 #line $LINENO "configure"
10532 /* confdefs.h.  */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h.  */
10537 $ac_includes_default
10538 int
10539 main ()
10540 {
10541 static struct stat ac_aggr;
10542 if (ac_aggr.st_blocks)
10543 return 0;
10544   ;
10545   return 0;
10546 }
10547 _ACEOF
10548 rm -f conftest.$ac_objext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10550   (eval $ac_compile) 2>&5
10551   ac_status=$?
10552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553   (exit $ac_status); } &&
10554          { ac_try='test -s conftest.$ac_objext'
10555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556   (eval $ac_try) 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; }; then
10560   ac_cv_member_struct_stat_st_blocks=yes
10561 else
10562   echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10564
10565 cat >conftest.$ac_ext <<_ACEOF
10566 #line $LINENO "configure"
10567 /* confdefs.h.  */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h.  */
10572 $ac_includes_default
10573 int
10574 main ()
10575 {
10576 static struct stat ac_aggr;
10577 if (sizeof ac_aggr.st_blocks)
10578 return 0;
10579   ;
10580   return 0;
10581 }
10582 _ACEOF
10583 rm -f conftest.$ac_objext
10584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10585   (eval $ac_compile) 2>&5
10586   ac_status=$?
10587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588   (exit $ac_status); } &&
10589          { ac_try='test -s conftest.$ac_objext'
10590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591   (eval $ac_try) 2>&5
10592   ac_status=$?
10593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594   (exit $ac_status); }; }; then
10595   ac_cv_member_struct_stat_st_blocks=yes
10596 else
10597   echo "$as_me: failed program was:" >&5
10598 sed 's/^/| /' conftest.$ac_ext >&5
10599
10600 ac_cv_member_struct_stat_st_blocks=no
10601 fi
10602 rm -f conftest.$ac_objext conftest.$ac_ext
10603 fi
10604 rm -f conftest.$ac_objext conftest.$ac_ext
10605 fi
10606 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10607 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10608 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10609
10610 cat >>confdefs.h <<_ACEOF
10611 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10612 _ACEOF
10613
10614
10615 cat >>confdefs.h <<\_ACEOF
10616 #define HAVE_ST_BLOCKS 1
10617 _ACEOF
10618
10619 else
10620   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10621 fi
10622
10623
10624 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10625 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10626 if test "${ac_cv_struct_tm+set}" = set; then
10627   echo $ECHO_N "(cached) $ECHO_C" >&6
10628 else
10629   cat >conftest.$ac_ext <<_ACEOF
10630 #line $LINENO "configure"
10631 /* confdefs.h.  */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h.  */
10636 #include <sys/types.h>
10637 #include <time.h>
10638
10639 int
10640 main ()
10641 {
10642 struct tm *tp; tp->tm_sec;
10643   ;
10644   return 0;
10645 }
10646 _ACEOF
10647 rm -f conftest.$ac_objext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10649   (eval $ac_compile) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); } &&
10653          { ac_try='test -s conftest.$ac_objext'
10654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655   (eval $ac_try) 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; }; then
10659   ac_cv_struct_tm=time.h
10660 else
10661   echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10663
10664 ac_cv_struct_tm=sys/time.h
10665 fi
10666 rm -f conftest.$ac_objext conftest.$ac_ext
10667 fi
10668 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10669 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10670 if test $ac_cv_struct_tm = sys/time.h; then
10671
10672 cat >>confdefs.h <<\_ACEOF
10673 #define TM_IN_SYS_TIME 1
10674 _ACEOF
10675
10676 fi
10677
10678 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10679 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10680 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10681   echo $ECHO_N "(cached) $ECHO_C" >&6
10682 else
10683   cat >conftest.$ac_ext <<_ACEOF
10684 #line $LINENO "configure"
10685 /* confdefs.h.  */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h.  */
10690 #include <sys/types.h>
10691 #include <$ac_cv_struct_tm>
10692
10693
10694 int
10695 main ()
10696 {
10697 static struct tm ac_aggr;
10698 if (ac_aggr.tm_zone)
10699 return 0;
10700   ;
10701   return 0;
10702 }
10703 _ACEOF
10704 rm -f conftest.$ac_objext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10706   (eval $ac_compile) 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); } &&
10710          { ac_try='test -s conftest.$ac_objext'
10711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712   (eval $ac_try) 2>&5
10713   ac_status=$?
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); }; }; then
10716   ac_cv_member_struct_tm_tm_zone=yes
10717 else
10718   echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10720
10721 cat >conftest.$ac_ext <<_ACEOF
10722 #line $LINENO "configure"
10723 /* confdefs.h.  */
10724 _ACEOF
10725 cat confdefs.h >>conftest.$ac_ext
10726 cat >>conftest.$ac_ext <<_ACEOF
10727 /* end confdefs.h.  */
10728 #include <sys/types.h>
10729 #include <$ac_cv_struct_tm>
10730
10731
10732 int
10733 main ()
10734 {
10735 static struct tm ac_aggr;
10736 if (sizeof ac_aggr.tm_zone)
10737 return 0;
10738   ;
10739   return 0;
10740 }
10741 _ACEOF
10742 rm -f conftest.$ac_objext
10743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10744   (eval $ac_compile) 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); } &&
10748          { ac_try='test -s conftest.$ac_objext'
10749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750   (eval $ac_try) 2>&5
10751   ac_status=$?
10752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753   (exit $ac_status); }; }; then
10754   ac_cv_member_struct_tm_tm_zone=yes
10755 else
10756   echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759 ac_cv_member_struct_tm_tm_zone=no
10760 fi
10761 rm -f conftest.$ac_objext conftest.$ac_ext
10762 fi
10763 rm -f conftest.$ac_objext conftest.$ac_ext
10764 fi
10765 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10766 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10767 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10768
10769 cat >>confdefs.h <<_ACEOF
10770 #define HAVE_STRUCT_TM_TM_ZONE 1
10771 _ACEOF
10772
10773
10774 fi
10775
10776 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10777
10778 cat >>confdefs.h <<\_ACEOF
10779 #define HAVE_TM_ZONE 1
10780 _ACEOF
10781
10782 else
10783   echo "$as_me:$LINENO: checking for tzname" >&5
10784 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10785 if test "${ac_cv_var_tzname+set}" = set; then
10786   echo $ECHO_N "(cached) $ECHO_C" >&6
10787 else
10788   cat >conftest.$ac_ext <<_ACEOF
10789 #line $LINENO "configure"
10790 /* confdefs.h.  */
10791 _ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h.  */
10795 #include <time.h>
10796 #ifndef tzname /* For SGI.  */
10797 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10798 #endif
10799
10800 int
10801 main ()
10802 {
10803 atoi(*tzname);
10804   ;
10805   return 0;
10806 }
10807 _ACEOF
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10810   (eval $ac_link) 2>&5
10811   ac_status=$?
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); } &&
10814          { ac_try='test -s conftest$ac_exeext'
10815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816   (eval $ac_try) 2>&5
10817   ac_status=$?
10818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819   (exit $ac_status); }; }; then
10820   ac_cv_var_tzname=yes
10821 else
10822   echo "$as_me: failed program was:" >&5
10823 sed 's/^/| /' conftest.$ac_ext >&5
10824
10825 ac_cv_var_tzname=no
10826 fi
10827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10828 fi
10829 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10830 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10831   if test $ac_cv_var_tzname = yes; then
10832
10833 cat >>confdefs.h <<\_ACEOF
10834 #define HAVE_TZNAME 1
10835 _ACEOF
10836
10837   fi
10838 fi
10839
10840
10841 echo "$as_me:$LINENO: checking for utime.h" >&5
10842 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10843 if test "${ba_cv_header_utime_h+set}" = set; then
10844   echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846   cat >conftest.$ac_ext <<_ACEOF
10847 #line $LINENO "configure"
10848 /* confdefs.h.  */
10849 _ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h.  */
10853
10854 #include <sys/types.h>
10855 #include <utime.h>
10856 int
10857 main ()
10858 {
10859 struct utimbuf foo
10860   ;
10861   return 0;
10862 }
10863 _ACEOF
10864 rm -f conftest.$ac_objext
10865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10866   (eval $ac_compile) 2>&5
10867   ac_status=$?
10868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); } &&
10870          { ac_try='test -s conftest.$ac_objext'
10871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872   (eval $ac_try) 2>&5
10873   ac_status=$?
10874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); }; }; then
10876   ba_cv_header_utime_h=yes
10877 else
10878   echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10880
10881 ba_cv_header_utime_h=no
10882 fi
10883 rm -f conftest.$ac_objext conftest.$ac_ext
10884 fi
10885 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10886 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10887 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10888 #define HAVE_UTIME_H 1
10889 _ACEOF
10890
10891
10892 echo "$as_me:$LINENO: checking for socklen_t" >&5
10893 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10894 if test "${ba_cv_header_socklen_t+set}" = set; then
10895   echo $ECHO_N "(cached) $ECHO_C" >&6
10896 else
10897   cat >conftest.$ac_ext <<_ACEOF
10898 #line $LINENO "configure"
10899 /* confdefs.h.  */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h.  */
10904
10905 #include <sys/types.h>
10906 #include <sys/socket.h>
10907 int
10908 main ()
10909 {
10910 socklen_t x
10911   ;
10912   return 0;
10913 }
10914 _ACEOF
10915 rm -f conftest.$ac_objext
10916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10917   (eval $ac_compile) 2>&5
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); } &&
10921          { ac_try='test -s conftest.$ac_objext'
10922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923   (eval $ac_try) 2>&5
10924   ac_status=$?
10925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926   (exit $ac_status); }; }; then
10927   ba_cv_header_socklen_t=yes
10928 else
10929   echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10931
10932 ba_cv_header_socklen_t=no
10933 fi
10934 rm -f conftest.$ac_objext conftest.$ac_ext
10935 fi
10936 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10937 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10938 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10939 #define HAVE_SOCKLEN_T 1
10940 _ACEOF
10941
10942
10943 echo "$as_me:$LINENO: checking for bigendian" >&5
10944 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10945 if test "${ba_cv_bigendian+set}" = set; then
10946   echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948   if test "$cross_compiling" = yes; then
10949   ba_cv_bigendian=no
10950 else
10951   cat >conftest.$ac_ext <<_ACEOF
10952 #line $LINENO "configure"
10953 /* confdefs.h.  */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h.  */
10958 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10959 _ACEOF
10960 rm -f conftest$ac_exeext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10962   (eval $ac_link) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967   (eval $ac_try) 2>&5
10968   ac_status=$?
10969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970   (exit $ac_status); }; }; then
10971   ba_cv_bigendian=yes
10972 else
10973   echo "$as_me: program exited with status $ac_status" >&5
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10976
10977 ( exit $ac_status )
10978 ba_cv_bigendian=no
10979 fi
10980 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10981 fi
10982 fi
10983 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10984 echo "${ECHO_T}$ba_cv_bigendian" >&6
10985 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10986 #define HAVE_BIGENDIAN 1
10987 _ACEOF
10988
10989
10990
10991 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10992 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10993 if test "${ac_cv_c_const+set}" = set; then
10994   echo $ECHO_N "(cached) $ECHO_C" >&6
10995 else
10996   cat >conftest.$ac_ext <<_ACEOF
10997 #line $LINENO "configure"
10998 /* confdefs.h.  */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h.  */
11003
11004 int
11005 main ()
11006 {
11007 /* FIXME: Include the comments suggested by Paul. */
11008 #ifndef __cplusplus
11009   /* Ultrix mips cc rejects this.  */
11010   typedef int charset[2];
11011   const charset x;
11012   /* SunOS 4.1.1 cc rejects this.  */
11013   char const *const *ccp;
11014   char **p;
11015   /* NEC SVR4.0.2 mips cc rejects this.  */
11016   struct point {int x, y;};
11017   static struct point const zero = {0,0};
11018   /* AIX XL C 1.02.0.0 rejects this.
11019      It does not let you subtract one const X* pointer from another in
11020      an arm of an if-expression whose if-part is not a constant
11021      expression */
11022   const char *g = "string";
11023   ccp = &g + (g ? g-g : 0);
11024   /* HPUX 7.0 cc rejects these. */
11025   ++ccp;
11026   p = (char**) ccp;
11027   ccp = (char const *const *) p;
11028   { /* SCO 3.2v4 cc rejects this.  */
11029     char *t;
11030     char const *s = 0 ? (char *) 0 : (char const *) 0;
11031
11032     *t++ = 0;
11033   }
11034   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11035     int x[] = {25, 17};
11036     const int *foo = &x[0];
11037     ++foo;
11038   }
11039   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11040     typedef const int *iptr;
11041     iptr p = 0;
11042     ++p;
11043   }
11044   { /* AIX XL C 1.02.0.0 rejects this saying
11045        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11046     struct s { int j; const int *ap[3]; };
11047     struct s *b; b->j = 5;
11048   }
11049   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11050     const int foo = 10;
11051   }
11052 #endif
11053
11054   ;
11055   return 0;
11056 }
11057 _ACEOF
11058 rm -f conftest.$ac_objext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11060   (eval $ac_compile) 2>&5
11061   ac_status=$?
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } &&
11064          { ac_try='test -s conftest.$ac_objext'
11065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066   (eval $ac_try) 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; }; then
11070   ac_cv_c_const=yes
11071 else
11072   echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075 ac_cv_c_const=no
11076 fi
11077 rm -f conftest.$ac_objext conftest.$ac_ext
11078 fi
11079 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11080 echo "${ECHO_T}$ac_cv_c_const" >&6
11081 if test $ac_cv_c_const = no; then
11082
11083 cat >>confdefs.h <<\_ACEOF
11084 #define const
11085 _ACEOF
11086
11087 fi
11088
11089
11090
11091 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11092 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11093 fstype=no
11094 # The order of these tests is important.
11095 cat >conftest.$ac_ext <<_ACEOF
11096 #line $LINENO "configure"
11097 /* confdefs.h.  */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h.  */
11102 #include <sys/statvfs.h>
11103 #include <sys/fstyp.h>
11104 _ACEOF
11105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11106   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11107   ac_status=$?
11108   grep -v '^ *+' conftest.er1 >conftest.err
11109   rm -f conftest.er1
11110   cat conftest.err >&5
11111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112   (exit $ac_status); } >/dev/null; then
11113   if test -s conftest.err; then
11114     ac_cpp_err=$ac_c_preproc_warn_flag
11115   else
11116     ac_cpp_err=
11117   fi
11118 else
11119   ac_cpp_err=yes
11120 fi
11121 if test -z "$ac_cpp_err"; then
11122   cat >>confdefs.h <<\_ACEOF
11123 #define FSTYPE_STATVFS 1
11124 _ACEOF
11125  fstype=SVR4
11126 else
11127   echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11129
11130
11131 fi
11132 rm -f conftest.err conftest.$ac_ext
11133 if test $fstype = no; then
11134 cat >conftest.$ac_ext <<_ACEOF
11135 #line $LINENO "configure"
11136 /* confdefs.h.  */
11137 _ACEOF
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h.  */
11141 #include <sys/statfs.h>
11142 #include <sys/fstyp.h>
11143 _ACEOF
11144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11146   ac_status=$?
11147   grep -v '^ *+' conftest.er1 >conftest.err
11148   rm -f conftest.er1
11149   cat conftest.err >&5
11150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151   (exit $ac_status); } >/dev/null; then
11152   if test -s conftest.err; then
11153     ac_cpp_err=$ac_c_preproc_warn_flag
11154   else
11155     ac_cpp_err=
11156   fi
11157 else
11158   ac_cpp_err=yes
11159 fi
11160 if test -z "$ac_cpp_err"; then
11161   cat >>confdefs.h <<\_ACEOF
11162 #define FSTYPE_USG_STATFS 1
11163 _ACEOF
11164  fstype=SVR3
11165 else
11166   echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11168
11169
11170 fi
11171 rm -f conftest.err conftest.$ac_ext
11172 fi
11173 if test $fstype = no; then
11174 cat >conftest.$ac_ext <<_ACEOF
11175 #line $LINENO "configure"
11176 /* confdefs.h.  */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h.  */
11181 #include <sys/statfs.h>
11182 #include <sys/vmount.h>
11183 _ACEOF
11184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11185   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11186   ac_status=$?
11187   grep -v '^ *+' conftest.er1 >conftest.err
11188   rm -f conftest.er1
11189   cat conftest.err >&5
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); } >/dev/null; then
11192   if test -s conftest.err; then
11193     ac_cpp_err=$ac_c_preproc_warn_flag
11194   else
11195     ac_cpp_err=
11196   fi
11197 else
11198   ac_cpp_err=yes
11199 fi
11200 if test -z "$ac_cpp_err"; then
11201   cat >>confdefs.h <<\_ACEOF
11202 #define FSTYPE_AIX_STATFS 1
11203 _ACEOF
11204  fstype=AIX
11205 else
11206   echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11208
11209
11210 fi
11211 rm -f conftest.err conftest.$ac_ext
11212 fi
11213 if test $fstype = no; then
11214 cat >conftest.$ac_ext <<_ACEOF
11215 #line $LINENO "configure"
11216 /* confdefs.h.  */
11217 _ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h.  */
11221 #include <mntent.h>
11222 _ACEOF
11223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11224   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11225   ac_status=$?
11226   grep -v '^ *+' conftest.er1 >conftest.err
11227   rm -f conftest.er1
11228   cat conftest.err >&5
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); } >/dev/null; then
11231   if test -s conftest.err; then
11232     ac_cpp_err=$ac_c_preproc_warn_flag
11233   else
11234     ac_cpp_err=
11235   fi
11236 else
11237   ac_cpp_err=yes
11238 fi
11239 if test -z "$ac_cpp_err"; then
11240   cat >>confdefs.h <<\_ACEOF
11241 #define FSTYPE_MNTENT 1
11242 _ACEOF
11243  fstype=4.3BSD
11244 else
11245   echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11247
11248
11249 fi
11250 rm -f conftest.err conftest.$ac_ext
11251 fi
11252 if test $fstype = no; then
11253 cat >conftest.$ac_ext <<_ACEOF
11254 #line $LINENO "configure"
11255 /* confdefs.h.  */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h.  */
11260 #include <sys/mount.h>
11261
11262 _ACEOF
11263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11264   $EGREP "f_type;" >/dev/null 2>&1; then
11265   cat >>confdefs.h <<\_ACEOF
11266 #define FSTYPE_STATFS 1
11267 _ACEOF
11268  fstype=4.4BSD/OSF1
11269 fi
11270 rm -f conftest*
11271
11272 fi
11273 if test $fstype = no; then
11274 cat >conftest.$ac_ext <<_ACEOF
11275 #line $LINENO "configure"
11276 /* confdefs.h.  */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h.  */
11281 #include <sys/mount.h>
11282 #include <sys/fs_types.h>
11283 _ACEOF
11284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11285   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11286   ac_status=$?
11287   grep -v '^ *+' conftest.er1 >conftest.err
11288   rm -f conftest.er1
11289   cat conftest.err >&5
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); } >/dev/null; then
11292   if test -s conftest.err; then
11293     ac_cpp_err=$ac_c_preproc_warn_flag
11294   else
11295     ac_cpp_err=
11296   fi
11297 else
11298   ac_cpp_err=yes
11299 fi
11300 if test -z "$ac_cpp_err"; then
11301   cat >>confdefs.h <<\_ACEOF
11302 #define FSTYPE_GETMNT 1
11303 _ACEOF
11304  fstype=Ultrix
11305 else
11306   echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11308
11309
11310 fi
11311 rm -f conftest.err conftest.$ac_ext
11312 fi
11313 echo "$as_me:$LINENO: result: $fstype" >&5
11314 echo "${ECHO_T}$fstype" >&6
11315
11316 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11317 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11318 if test "${ac_cv_type_signal+set}" = set; then
11319   echo $ECHO_N "(cached) $ECHO_C" >&6
11320 else
11321   cat >conftest.$ac_ext <<_ACEOF
11322 #line $LINENO "configure"
11323 /* confdefs.h.  */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h.  */
11328 #include <sys/types.h>
11329 #include <signal.h>
11330 #ifdef signal
11331 # undef signal
11332 #endif
11333 #ifdef __cplusplus
11334 extern "C" void (*signal (int, void (*)(int)))(int);
11335 #else
11336 void (*signal ()) ();
11337 #endif
11338
11339 int
11340 main ()
11341 {
11342 int i;
11343   ;
11344   return 0;
11345 }
11346 _ACEOF
11347 rm -f conftest.$ac_objext
11348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11349   (eval $ac_compile) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); } &&
11353          { ac_try='test -s conftest.$ac_objext'
11354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355   (eval $ac_try) 2>&5
11356   ac_status=$?
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); }; }; then
11359   ac_cv_type_signal=void
11360 else
11361   echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11363
11364 ac_cv_type_signal=int
11365 fi
11366 rm -f conftest.$ac_objext conftest.$ac_ext
11367 fi
11368 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11369 echo "${ECHO_T}$ac_cv_type_signal" >&6
11370
11371 cat >>confdefs.h <<_ACEOF
11372 #define RETSIGTYPE $ac_cv_type_signal
11373 _ACEOF
11374
11375
11376
11377 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11378 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11379 if test "${bash_cv_signal_vintage+set}" = set; then
11380   echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382
11383   cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11385 /* confdefs.h.  */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h.  */
11390 #include <signal.h>
11391 int
11392 main ()
11393 {
11394
11395     sigset_t ss;
11396     struct sigaction sa;
11397     sigemptyset(&ss); sigsuspend(&ss);
11398     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11399     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11400
11401   ;
11402   return 0;
11403 }
11404 _ACEOF
11405 rm -f conftest.$ac_objext conftest$ac_exeext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11407   (eval $ac_link) 2>&5
11408   ac_status=$?
11409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410   (exit $ac_status); } &&
11411          { ac_try='test -s conftest$ac_exeext'
11412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413   (eval $ac_try) 2>&5
11414   ac_status=$?
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); }; }; then
11417   bash_cv_signal_vintage=posix
11418 else
11419   echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11421
11422
11423     cat >conftest.$ac_ext <<_ACEOF
11424 #line $LINENO "configure"
11425 /* confdefs.h.  */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h.  */
11430 #include <signal.h>
11431 int
11432 main ()
11433 {
11434
11435         int mask = sigmask(SIGINT);
11436         sigsetmask(mask); sigblock(mask); sigpause(mask);
11437
11438   ;
11439   return 0;
11440 }
11441 _ACEOF
11442 rm -f conftest.$ac_objext conftest$ac_exeext
11443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11444   (eval $ac_link) 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); } &&
11448          { ac_try='test -s conftest$ac_exeext'
11449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450   (eval $ac_try) 2>&5
11451   ac_status=$?
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); }; }; then
11454   bash_cv_signal_vintage=4.2bsd
11455 else
11456   echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11458
11459
11460       cat >conftest.$ac_ext <<_ACEOF
11461 #line $LINENO "configure"
11462 /* confdefs.h.  */
11463 _ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h.  */
11467
11468         #include <signal.h>
11469         RETSIGTYPE foo() { }
11470 int
11471 main ()
11472 {
11473
11474                 int mask = sigmask(SIGINT);
11475                 sigset(SIGINT, foo); sigrelse(SIGINT);
11476                 sighold(SIGINT); sigpause(SIGINT);
11477
11478   ;
11479   return 0;
11480 }
11481 _ACEOF
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11484   (eval $ac_link) 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); } &&
11488          { ac_try='test -s conftest$ac_exeext'
11489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490   (eval $ac_try) 2>&5
11491   ac_status=$?
11492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493   (exit $ac_status); }; }; then
11494   bash_cv_signal_vintage=svr3
11495 else
11496   echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11498
11499 bash_cv_signal_vintage=v7
11500
11501 fi
11502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11503
11504 fi
11505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11506
11507 fi
11508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11509
11510 fi
11511
11512 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11513 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11514 if test "$bash_cv_signal_vintage" = posix; then
11515 cat >>confdefs.h <<\_ACEOF
11516 #define HAVE_POSIX_SIGNALS 1
11517 _ACEOF
11518
11519 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11520 cat >>confdefs.h <<\_ACEOF
11521 #define HAVE_BSD_SIGNALS 1
11522 _ACEOF
11523
11524 elif test "$bash_cv_signal_vintage" = svr3; then
11525 cat >>confdefs.h <<\_ACEOF
11526 #define HAVE_USG_SIGHOLD 1
11527 _ACEOF
11528
11529 fi
11530
11531 echo "$as_me:$LINENO: checking for mode_t" >&5
11532 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11533 if test "${ac_cv_type_mode_t+set}" = set; then
11534   echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536   cat >conftest.$ac_ext <<_ACEOF
11537 #line $LINENO "configure"
11538 /* confdefs.h.  */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h.  */
11543 $ac_includes_default
11544 int
11545 main ()
11546 {
11547 if ((mode_t *) 0)
11548   return 0;
11549 if (sizeof (mode_t))
11550   return 0;
11551   ;
11552   return 0;
11553 }
11554 _ACEOF
11555 rm -f conftest.$ac_objext
11556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11557   (eval $ac_compile) 2>&5
11558   ac_status=$?
11559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560   (exit $ac_status); } &&
11561          { ac_try='test -s conftest.$ac_objext'
11562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563   (eval $ac_try) 2>&5
11564   ac_status=$?
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); }; }; then
11567   ac_cv_type_mode_t=yes
11568 else
11569   echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11571
11572 ac_cv_type_mode_t=no
11573 fi
11574 rm -f conftest.$ac_objext conftest.$ac_ext
11575 fi
11576 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11577 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11578 if test $ac_cv_type_mode_t = yes; then
11579   :
11580 else
11581
11582 cat >>confdefs.h <<_ACEOF
11583 #define mode_t int
11584 _ACEOF
11585
11586 fi
11587
11588 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11589 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11590 if test "${ac_cv_type_uid_t+set}" = set; then
11591   echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593   cat >conftest.$ac_ext <<_ACEOF
11594 #line $LINENO "configure"
11595 /* confdefs.h.  */
11596 _ACEOF
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h.  */
11600 #include <sys/types.h>
11601
11602 _ACEOF
11603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11604   $EGREP "uid_t" >/dev/null 2>&1; then
11605   ac_cv_type_uid_t=yes
11606 else
11607   ac_cv_type_uid_t=no
11608 fi
11609 rm -f conftest*
11610
11611 fi
11612 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11613 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11614 if test $ac_cv_type_uid_t = no; then
11615
11616 cat >>confdefs.h <<\_ACEOF
11617 #define uid_t int
11618 _ACEOF
11619
11620
11621 cat >>confdefs.h <<\_ACEOF
11622 #define gid_t int
11623 _ACEOF
11624
11625 fi
11626
11627 echo "$as_me:$LINENO: checking for size_t" >&5
11628 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11629 if test "${ac_cv_type_size_t+set}" = set; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632   cat >conftest.$ac_ext <<_ACEOF
11633 #line $LINENO "configure"
11634 /* confdefs.h.  */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h.  */
11639 $ac_includes_default
11640 int
11641 main ()
11642 {
11643 if ((size_t *) 0)
11644   return 0;
11645 if (sizeof (size_t))
11646   return 0;
11647   ;
11648   return 0;
11649 }
11650 _ACEOF
11651 rm -f conftest.$ac_objext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11653   (eval $ac_compile) 2>&5
11654   ac_status=$?
11655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656   (exit $ac_status); } &&
11657          { ac_try='test -s conftest.$ac_objext'
11658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659   (eval $ac_try) 2>&5
11660   ac_status=$?
11661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662   (exit $ac_status); }; }; then
11663   ac_cv_type_size_t=yes
11664 else
11665   echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668 ac_cv_type_size_t=no
11669 fi
11670 rm -f conftest.$ac_objext conftest.$ac_ext
11671 fi
11672 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11673 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11674 if test $ac_cv_type_size_t = yes; then
11675   :
11676 else
11677
11678 cat >>confdefs.h <<_ACEOF
11679 #define size_t unsigned
11680 _ACEOF
11681
11682 fi
11683
11684 echo "$as_me:$LINENO: checking for pid_t" >&5
11685 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11686 if test "${ac_cv_type_pid_t+set}" = set; then
11687   echo $ECHO_N "(cached) $ECHO_C" >&6
11688 else
11689   cat >conftest.$ac_ext <<_ACEOF
11690 #line $LINENO "configure"
11691 /* confdefs.h.  */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h.  */
11696 $ac_includes_default
11697 int
11698 main ()
11699 {
11700 if ((pid_t *) 0)
11701   return 0;
11702 if (sizeof (pid_t))
11703   return 0;
11704   ;
11705   return 0;
11706 }
11707 _ACEOF
11708 rm -f conftest.$ac_objext
11709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11710   (eval $ac_compile) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); } &&
11714          { ac_try='test -s conftest.$ac_objext'
11715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716   (eval $ac_try) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   ac_cv_type_pid_t=yes
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725 ac_cv_type_pid_t=no
11726 fi
11727 rm -f conftest.$ac_objext conftest.$ac_ext
11728 fi
11729 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11730 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11731 if test $ac_cv_type_pid_t = yes; then
11732   :
11733 else
11734
11735 cat >>confdefs.h <<_ACEOF
11736 #define pid_t int
11737 _ACEOF
11738
11739 fi
11740
11741 echo "$as_me:$LINENO: checking for off_t" >&5
11742 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11743 if test "${ac_cv_type_off_t+set}" = set; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   cat >conftest.$ac_ext <<_ACEOF
11747 #line $LINENO "configure"
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753 $ac_includes_default
11754 int
11755 main ()
11756 {
11757 if ((off_t *) 0)
11758   return 0;
11759 if (sizeof (off_t))
11760   return 0;
11761   ;
11762   return 0;
11763 }
11764 _ACEOF
11765 rm -f conftest.$ac_objext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11767   (eval $ac_compile) 2>&5
11768   ac_status=$?
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); } &&
11771          { ac_try='test -s conftest.$ac_objext'
11772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773   (eval $ac_try) 2>&5
11774   ac_status=$?
11775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776   (exit $ac_status); }; }; then
11777   ac_cv_type_off_t=yes
11778 else
11779   echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11781
11782 ac_cv_type_off_t=no
11783 fi
11784 rm -f conftest.$ac_objext conftest.$ac_ext
11785 fi
11786 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11787 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11788 if test $ac_cv_type_off_t = yes; then
11789   :
11790 else
11791
11792 cat >>confdefs.h <<_ACEOF
11793 #define off_t long
11794 _ACEOF
11795
11796 fi
11797
11798 echo "$as_me:$LINENO: checking for ino_t" >&5
11799 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11800 if test "${ac_cv_type_ino_t+set}" = set; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 else
11803   cat >conftest.$ac_ext <<_ACEOF
11804 #line $LINENO "configure"
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 $ac_includes_default
11811 int
11812 main ()
11813 {
11814 if ((ino_t *) 0)
11815   return 0;
11816 if (sizeof (ino_t))
11817   return 0;
11818   ;
11819   return 0;
11820 }
11821 _ACEOF
11822 rm -f conftest.$ac_objext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11824   (eval $ac_compile) 2>&5
11825   ac_status=$?
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } &&
11828          { ac_try='test -s conftest.$ac_objext'
11829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830   (eval $ac_try) 2>&5
11831   ac_status=$?
11832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833   (exit $ac_status); }; }; then
11834   ac_cv_type_ino_t=yes
11835 else
11836   echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11838
11839 ac_cv_type_ino_t=no
11840 fi
11841 rm -f conftest.$ac_objext conftest.$ac_ext
11842 fi
11843 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11844 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11845 if test $ac_cv_type_ino_t = yes; then
11846   :
11847 else
11848
11849 cat >>confdefs.h <<_ACEOF
11850 #define ino_t unsigned long
11851 _ACEOF
11852
11853 fi
11854
11855 echo "$as_me:$LINENO: checking for dev_t" >&5
11856 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11857 if test "${ac_cv_type_dev_t+set}" = set; then
11858   echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860   cat >conftest.$ac_ext <<_ACEOF
11861 #line $LINENO "configure"
11862 /* confdefs.h.  */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h.  */
11867 $ac_includes_default
11868 int
11869 main ()
11870 {
11871 if ((dev_t *) 0)
11872   return 0;
11873 if (sizeof (dev_t))
11874   return 0;
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 rm -f conftest.$ac_objext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11881   (eval $ac_compile) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); } &&
11885          { ac_try='test -s conftest.$ac_objext'
11886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887   (eval $ac_try) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; }; then
11891   ac_cv_type_dev_t=yes
11892 else
11893   echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11895
11896 ac_cv_type_dev_t=no
11897 fi
11898 rm -f conftest.$ac_objext conftest.$ac_ext
11899 fi
11900 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11901 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11902 if test $ac_cv_type_dev_t = yes; then
11903   :
11904 else
11905
11906 cat >>confdefs.h <<_ACEOF
11907 #define dev_t unsigned long
11908 _ACEOF
11909
11910 fi
11911
11912 echo "$as_me:$LINENO: checking for daddr_t" >&5
11913 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11914 if test "${ac_cv_type_daddr_t+set}" = set; then
11915   echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917   cat >conftest.$ac_ext <<_ACEOF
11918 #line $LINENO "configure"
11919 /* confdefs.h.  */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h.  */
11924 $ac_includes_default
11925 int
11926 main ()
11927 {
11928 if ((daddr_t *) 0)
11929   return 0;
11930 if (sizeof (daddr_t))
11931   return 0;
11932   ;
11933   return 0;
11934 }
11935 _ACEOF
11936 rm -f conftest.$ac_objext
11937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11938   (eval $ac_compile) 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); } &&
11942          { ac_try='test -s conftest.$ac_objext'
11943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944   (eval $ac_try) 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; }; then
11948   ac_cv_type_daddr_t=yes
11949 else
11950   echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953 ac_cv_type_daddr_t=no
11954 fi
11955 rm -f conftest.$ac_objext conftest.$ac_ext
11956 fi
11957 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11958 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11959 if test $ac_cv_type_daddr_t = yes; then
11960   :
11961 else
11962
11963 cat >>confdefs.h <<_ACEOF
11964 #define daddr_t long
11965 _ACEOF
11966
11967 fi
11968
11969 echo "$as_me:$LINENO: checking for major_t" >&5
11970 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11971 if test "${ac_cv_type_major_t+set}" = set; then
11972   echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974   cat >conftest.$ac_ext <<_ACEOF
11975 #line $LINENO "configure"
11976 /* confdefs.h.  */
11977 _ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h.  */
11981 $ac_includes_default
11982 int
11983 main ()
11984 {
11985 if ((major_t *) 0)
11986   return 0;
11987 if (sizeof (major_t))
11988   return 0;
11989   ;
11990   return 0;
11991 }
11992 _ACEOF
11993 rm -f conftest.$ac_objext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995   (eval $ac_compile) 2>&5
11996   ac_status=$?
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); } &&
11999          { ac_try='test -s conftest.$ac_objext'
12000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001   (eval $ac_try) 2>&5
12002   ac_status=$?
12003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004   (exit $ac_status); }; }; then
12005   ac_cv_type_major_t=yes
12006 else
12007   echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12009
12010 ac_cv_type_major_t=no
12011 fi
12012 rm -f conftest.$ac_objext conftest.$ac_ext
12013 fi
12014 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12015 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12016 if test $ac_cv_type_major_t = yes; then
12017   :
12018 else
12019
12020 cat >>confdefs.h <<_ACEOF
12021 #define major_t int
12022 _ACEOF
12023
12024 fi
12025
12026 echo "$as_me:$LINENO: checking for minor_t" >&5
12027 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12028 if test "${ac_cv_type_minor_t+set}" = set; then
12029   echo $ECHO_N "(cached) $ECHO_C" >&6
12030 else
12031   cat >conftest.$ac_ext <<_ACEOF
12032 #line $LINENO "configure"
12033 /* confdefs.h.  */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h.  */
12038 $ac_includes_default
12039 int
12040 main ()
12041 {
12042 if ((minor_t *) 0)
12043   return 0;
12044 if (sizeof (minor_t))
12045   return 0;
12046   ;
12047   return 0;
12048 }
12049 _ACEOF
12050 rm -f conftest.$ac_objext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12052   (eval $ac_compile) 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } &&
12056          { ac_try='test -s conftest.$ac_objext'
12057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058   (eval $ac_try) 2>&5
12059   ac_status=$?
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); }; }; then
12062   ac_cv_type_minor_t=yes
12063 else
12064   echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12066
12067 ac_cv_type_minor_t=no
12068 fi
12069 rm -f conftest.$ac_objext conftest.$ac_ext
12070 fi
12071 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12072 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12073 if test $ac_cv_type_minor_t = yes; then
12074   :
12075 else
12076
12077 cat >>confdefs.h <<_ACEOF
12078 #define minor_t int
12079 _ACEOF
12080
12081 fi
12082
12083 echo "$as_me:$LINENO: checking for ssize_t" >&5
12084 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12085 if test "${ac_cv_type_ssize_t+set}" = set; then
12086   echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088   cat >conftest.$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12090 /* confdefs.h.  */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h.  */
12095 $ac_includes_default
12096 int
12097 main ()
12098 {
12099 if ((ssize_t *) 0)
12100   return 0;
12101 if (sizeof (ssize_t))
12102   return 0;
12103   ;
12104   return 0;
12105 }
12106 _ACEOF
12107 rm -f conftest.$ac_objext
12108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12109   (eval $ac_compile) 2>&5
12110   ac_status=$?
12111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112   (exit $ac_status); } &&
12113          { ac_try='test -s conftest.$ac_objext'
12114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115   (eval $ac_try) 2>&5
12116   ac_status=$?
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); }; }; then
12119   ac_cv_type_ssize_t=yes
12120 else
12121   echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12123
12124 ac_cv_type_ssize_t=no
12125 fi
12126 rm -f conftest.$ac_objext conftest.$ac_ext
12127 fi
12128 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12129 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12130 if test $ac_cv_type_ssize_t = yes; then
12131   :
12132 else
12133
12134 cat >>confdefs.h <<_ACEOF
12135 #define ssize_t int
12136 _ACEOF
12137
12138 fi
12139
12140 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12141 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12142 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12143   echo $ECHO_N "(cached) $ECHO_C" >&6
12144 else
12145   cat >conftest.$ac_ext <<_ACEOF
12146 #line $LINENO "configure"
12147 /* confdefs.h.  */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h.  */
12152 $ac_includes_default
12153 int
12154 main ()
12155 {
12156 static struct stat ac_aggr;
12157 if (ac_aggr.st_blocks)
12158 return 0;
12159   ;
12160   return 0;
12161 }
12162 _ACEOF
12163 rm -f conftest.$ac_objext
12164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12165   (eval $ac_compile) 2>&5
12166   ac_status=$?
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); } &&
12169          { ac_try='test -s conftest.$ac_objext'
12170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171   (eval $ac_try) 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); }; }; then
12175   ac_cv_member_struct_stat_st_blocks=yes
12176 else
12177   echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180 cat >conftest.$ac_ext <<_ACEOF
12181 #line $LINENO "configure"
12182 /* confdefs.h.  */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h.  */
12187 $ac_includes_default
12188 int
12189 main ()
12190 {
12191 static struct stat ac_aggr;
12192 if (sizeof ac_aggr.st_blocks)
12193 return 0;
12194   ;
12195   return 0;
12196 }
12197 _ACEOF
12198 rm -f conftest.$ac_objext
12199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200   (eval $ac_compile) 2>&5
12201   ac_status=$?
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } &&
12204          { ac_try='test -s conftest.$ac_objext'
12205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206   (eval $ac_try) 2>&5
12207   ac_status=$?
12208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209   (exit $ac_status); }; }; then
12210   ac_cv_member_struct_stat_st_blocks=yes
12211 else
12212   echo "$as_me: failed program was:" >&5
12213 sed 's/^/| /' conftest.$ac_ext >&5
12214
12215 ac_cv_member_struct_stat_st_blocks=no
12216 fi
12217 rm -f conftest.$ac_objext conftest.$ac_ext
12218 fi
12219 rm -f conftest.$ac_objext conftest.$ac_ext
12220 fi
12221 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12222 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12223 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12224
12225 cat >>confdefs.h <<_ACEOF
12226 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12227 _ACEOF
12228
12229
12230 cat >>confdefs.h <<\_ACEOF
12231 #define HAVE_ST_BLOCKS 1
12232 _ACEOF
12233
12234 else
12235   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12236 fi
12237
12238
12239
12240 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12241 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12242 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12243   echo $ECHO_N "(cached) $ECHO_C" >&6
12244 else
12245   cat >conftest.$ac_ext <<_ACEOF
12246 #line $LINENO "configure"
12247 /* confdefs.h.  */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h.  */
12252 $ac_includes_default
12253 int
12254 main ()
12255 {
12256 static struct stat ac_aggr;
12257 if (ac_aggr.st_rdev)
12258 return 0;
12259   ;
12260   return 0;
12261 }
12262 _ACEOF
12263 rm -f conftest.$ac_objext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12265   (eval $ac_compile) 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); } &&
12269          { ac_try='test -s conftest.$ac_objext'
12270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271   (eval $ac_try) 2>&5
12272   ac_status=$?
12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); }; }; then
12275   ac_cv_member_struct_stat_st_rdev=yes
12276 else
12277   echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12279
12280 cat >conftest.$ac_ext <<_ACEOF
12281 #line $LINENO "configure"
12282 /* confdefs.h.  */
12283 _ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h.  */
12287 $ac_includes_default
12288 int
12289 main ()
12290 {
12291 static struct stat ac_aggr;
12292 if (sizeof ac_aggr.st_rdev)
12293 return 0;
12294   ;
12295   return 0;
12296 }
12297 _ACEOF
12298 rm -f conftest.$ac_objext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12300   (eval $ac_compile) 2>&5
12301   ac_status=$?
12302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303   (exit $ac_status); } &&
12304          { ac_try='test -s conftest.$ac_objext'
12305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306   (eval $ac_try) 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); }; }; then
12310   ac_cv_member_struct_stat_st_rdev=yes
12311 else
12312   echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12314
12315 ac_cv_member_struct_stat_st_rdev=no
12316 fi
12317 rm -f conftest.$ac_objext conftest.$ac_ext
12318 fi
12319 rm -f conftest.$ac_objext conftest.$ac_ext
12320 fi
12321 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12322 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12323 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12324
12325 cat >>confdefs.h <<_ACEOF
12326 #define HAVE_STRUCT_STAT_ST_RDEV 1
12327 _ACEOF
12328
12329
12330 cat >>confdefs.h <<\_ACEOF
12331 #define HAVE_ST_RDEV 1
12332 _ACEOF
12333
12334 fi
12335
12336
12337 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12338 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12339 if test "${ac_cv_struct_tm+set}" = set; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342   cat >conftest.$ac_ext <<_ACEOF
12343 #line $LINENO "configure"
12344 /* confdefs.h.  */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h.  */
12349 #include <sys/types.h>
12350 #include <time.h>
12351
12352 int
12353 main ()
12354 {
12355 struct tm *tp; tp->tm_sec;
12356   ;
12357   return 0;
12358 }
12359 _ACEOF
12360 rm -f conftest.$ac_objext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12362   (eval $ac_compile) 2>&5
12363   ac_status=$?
12364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365   (exit $ac_status); } &&
12366          { ac_try='test -s conftest.$ac_objext'
12367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368   (eval $ac_try) 2>&5
12369   ac_status=$?
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); }; }; then
12372   ac_cv_struct_tm=time.h
12373 else
12374   echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12376
12377 ac_cv_struct_tm=sys/time.h
12378 fi
12379 rm -f conftest.$ac_objext conftest.$ac_ext
12380 fi
12381 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12382 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12383 if test $ac_cv_struct_tm = sys/time.h; then
12384
12385 cat >>confdefs.h <<\_ACEOF
12386 #define TM_IN_SYS_TIME 1
12387 _ACEOF
12388
12389 fi
12390
12391 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12392 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12393 if test "${ac_cv_c_const+set}" = set; then
12394   echo $ECHO_N "(cached) $ECHO_C" >&6
12395 else
12396   cat >conftest.$ac_ext <<_ACEOF
12397 #line $LINENO "configure"
12398 /* confdefs.h.  */
12399 _ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h.  */
12403
12404 int
12405 main ()
12406 {
12407 /* FIXME: Include the comments suggested by Paul. */
12408 #ifndef __cplusplus
12409   /* Ultrix mips cc rejects this.  */
12410   typedef int charset[2];
12411   const charset x;
12412   /* SunOS 4.1.1 cc rejects this.  */
12413   char const *const *ccp;
12414   char **p;
12415   /* NEC SVR4.0.2 mips cc rejects this.  */
12416   struct point {int x, y;};
12417   static struct point const zero = {0,0};
12418   /* AIX XL C 1.02.0.0 rejects this.
12419      It does not let you subtract one const X* pointer from another in
12420      an arm of an if-expression whose if-part is not a constant
12421      expression */
12422   const char *g = "string";
12423   ccp = &g + (g ? g-g : 0);
12424   /* HPUX 7.0 cc rejects these. */
12425   ++ccp;
12426   p = (char**) ccp;
12427   ccp = (char const *const *) p;
12428   { /* SCO 3.2v4 cc rejects this.  */
12429     char *t;
12430     char const *s = 0 ? (char *) 0 : (char const *) 0;
12431
12432     *t++ = 0;
12433   }
12434   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12435     int x[] = {25, 17};
12436     const int *foo = &x[0];
12437     ++foo;
12438   }
12439   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12440     typedef const int *iptr;
12441     iptr p = 0;
12442     ++p;
12443   }
12444   { /* AIX XL C 1.02.0.0 rejects this saying
12445        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12446     struct s { int j; const int *ap[3]; };
12447     struct s *b; b->j = 5;
12448   }
12449   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12450     const int foo = 10;
12451   }
12452 #endif
12453
12454   ;
12455   return 0;
12456 }
12457 _ACEOF
12458 rm -f conftest.$ac_objext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12460   (eval $ac_compile) 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); } &&
12464          { ac_try='test -s conftest.$ac_objext'
12465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466   (eval $ac_try) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; }; then
12470   ac_cv_c_const=yes
12471 else
12472   echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12474
12475 ac_cv_c_const=no
12476 fi
12477 rm -f conftest.$ac_objext conftest.$ac_ext
12478 fi
12479 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12480 echo "${ECHO_T}$ac_cv_c_const" >&6
12481 if test $ac_cv_c_const = no; then
12482
12483 cat >>confdefs.h <<\_ACEOF
12484 #define const
12485 _ACEOF
12486
12487 fi
12488
12489
12490
12491 echo "$as_me:$LINENO: checking for char" >&5
12492 echo $ECHO_N "checking for char... $ECHO_C" >&6
12493 if test "${ac_cv_type_char+set}" = set; then
12494   echo $ECHO_N "(cached) $ECHO_C" >&6
12495 else
12496   cat >conftest.$ac_ext <<_ACEOF
12497 #line $LINENO "configure"
12498 /* confdefs.h.  */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h.  */
12503 $ac_includes_default
12504 int
12505 main ()
12506 {
12507 if ((char *) 0)
12508   return 0;
12509 if (sizeof (char))
12510   return 0;
12511   ;
12512   return 0;
12513 }
12514 _ACEOF
12515 rm -f conftest.$ac_objext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12517   (eval $ac_compile) 2>&5
12518   ac_status=$?
12519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520   (exit $ac_status); } &&
12521          { ac_try='test -s conftest.$ac_objext'
12522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523   (eval $ac_try) 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   ac_cv_type_char=yes
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532 ac_cv_type_char=no
12533 fi
12534 rm -f conftest.$ac_objext conftest.$ac_ext
12535 fi
12536 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12537 echo "${ECHO_T}$ac_cv_type_char" >&6
12538
12539 echo "$as_me:$LINENO: checking size of char" >&5
12540 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12541 if test "${ac_cv_sizeof_char+set}" = set; then
12542   echo $ECHO_N "(cached) $ECHO_C" >&6
12543 else
12544   if test "$ac_cv_type_char" = yes; then
12545   # The cast to unsigned long works around a bug in the HP C Compiler
12546   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12547   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12548   # This bug is HP SR number 8606223364.
12549   if test "$cross_compiling" = yes; then
12550   # Depending upon the size, compute the lo and hi bounds.
12551 cat >conftest.$ac_ext <<_ACEOF
12552 #line $LINENO "configure"
12553 /* confdefs.h.  */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h.  */
12558 $ac_includes_default
12559 int
12560 main ()
12561 {
12562 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12563 test_array [0] = 0
12564
12565   ;
12566   return 0;
12567 }
12568 _ACEOF
12569 rm -f conftest.$ac_objext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571   (eval $ac_compile) 2>&5
12572   ac_status=$?
12573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574   (exit $ac_status); } &&
12575          { ac_try='test -s conftest.$ac_objext'
12576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577   (eval $ac_try) 2>&5
12578   ac_status=$?
12579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580   (exit $ac_status); }; }; then
12581   ac_lo=0 ac_mid=0
12582   while :; do
12583     cat >conftest.$ac_ext <<_ACEOF
12584 #line $LINENO "configure"
12585 /* confdefs.h.  */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h.  */
12590 $ac_includes_default
12591 int
12592 main ()
12593 {
12594 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12595 test_array [0] = 0
12596
12597   ;
12598   return 0;
12599 }
12600 _ACEOF
12601 rm -f conftest.$ac_objext
12602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603   (eval $ac_compile) 2>&5
12604   ac_status=$?
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); } &&
12607          { ac_try='test -s conftest.$ac_objext'
12608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609   (eval $ac_try) 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); }; }; then
12613   ac_hi=$ac_mid; break
12614 else
12615   echo "$as_me: failed program was:" >&5
12616 sed 's/^/| /' conftest.$ac_ext >&5
12617
12618 ac_lo=`expr $ac_mid + 1`
12619                     if test $ac_lo -le $ac_mid; then
12620                       ac_lo= ac_hi=
12621                       break
12622                     fi
12623                     ac_mid=`expr 2 '*' $ac_mid + 1`
12624 fi
12625 rm -f conftest.$ac_objext conftest.$ac_ext
12626   done
12627 else
12628   echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12630
12631 cat >conftest.$ac_ext <<_ACEOF
12632 #line $LINENO "configure"
12633 /* confdefs.h.  */
12634 _ACEOF
12635 cat confdefs.h >>conftest.$ac_ext
12636 cat >>conftest.$ac_ext <<_ACEOF
12637 /* end confdefs.h.  */
12638 $ac_includes_default
12639 int
12640 main ()
12641 {
12642 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12643 test_array [0] = 0
12644
12645   ;
12646   return 0;
12647 }
12648 _ACEOF
12649 rm -f conftest.$ac_objext
12650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12651   (eval $ac_compile) 2>&5
12652   ac_status=$?
12653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654   (exit $ac_status); } &&
12655          { ac_try='test -s conftest.$ac_objext'
12656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657   (eval $ac_try) 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); }; }; then
12661   ac_hi=-1 ac_mid=-1
12662   while :; do
12663     cat >conftest.$ac_ext <<_ACEOF
12664 #line $LINENO "configure"
12665 /* confdefs.h.  */
12666 _ACEOF
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h.  */
12670 $ac_includes_default
12671 int
12672 main ()
12673 {
12674 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12675 test_array [0] = 0
12676
12677   ;
12678   return 0;
12679 }
12680 _ACEOF
12681 rm -f conftest.$ac_objext
12682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12683   (eval $ac_compile) 2>&5
12684   ac_status=$?
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); } &&
12687          { ac_try='test -s conftest.$ac_objext'
12688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689   (eval $ac_try) 2>&5
12690   ac_status=$?
12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); }; }; then
12693   ac_lo=$ac_mid; break
12694 else
12695   echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12697
12698 ac_hi=`expr '(' $ac_mid ')' - 1`
12699                        if test $ac_mid -le $ac_hi; then
12700                          ac_lo= ac_hi=
12701                          break
12702                        fi
12703                        ac_mid=`expr 2 '*' $ac_mid`
12704 fi
12705 rm -f conftest.$ac_objext conftest.$ac_ext
12706   done
12707 else
12708   echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12710
12711 ac_lo= ac_hi=
12712 fi
12713 rm -f conftest.$ac_objext conftest.$ac_ext
12714 fi
12715 rm -f conftest.$ac_objext conftest.$ac_ext
12716 # Binary search between lo and hi bounds.
12717 while test "x$ac_lo" != "x$ac_hi"; do
12718   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12719   cat >conftest.$ac_ext <<_ACEOF
12720 #line $LINENO "configure"
12721 /* confdefs.h.  */
12722 _ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h.  */
12726 $ac_includes_default
12727 int
12728 main ()
12729 {
12730 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12731 test_array [0] = 0
12732
12733   ;
12734   return 0;
12735 }
12736 _ACEOF
12737 rm -f conftest.$ac_objext
12738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12739   (eval $ac_compile) 2>&5
12740   ac_status=$?
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); } &&
12743          { ac_try='test -s conftest.$ac_objext'
12744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745   (eval $ac_try) 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); }; }; then
12749   ac_hi=$ac_mid
12750 else
12751   echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12753
12754 ac_lo=`expr '(' $ac_mid ')' + 1`
12755 fi
12756 rm -f conftest.$ac_objext conftest.$ac_ext
12757 done
12758 case $ac_lo in
12759 ?*) ac_cv_sizeof_char=$ac_lo;;
12760 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12761 See \`config.log' for more details." >&5
12762 echo "$as_me: error: cannot compute sizeof (char), 77
12763 See \`config.log' for more details." >&2;}
12764    { (exit 1); exit 1; }; } ;;
12765 esac
12766 else
12767   if test "$cross_compiling" = yes; then
12768   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12769 See \`config.log' for more details." >&5
12770 echo "$as_me: error: cannot run test program while cross compiling
12771 See \`config.log' for more details." >&2;}
12772    { (exit 1); exit 1; }; }
12773 else
12774   cat >conftest.$ac_ext <<_ACEOF
12775 #line $LINENO "configure"
12776 /* confdefs.h.  */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h.  */
12781 $ac_includes_default
12782 long longval () { return (long) (sizeof (char)); }
12783 unsigned long ulongval () { return (long) (sizeof (char)); }
12784 #include <stdio.h>
12785 #include <stdlib.h>
12786 int
12787 main ()
12788 {
12789
12790   FILE *f = fopen ("conftest.val", "w");
12791   if (! f)
12792     exit (1);
12793   if (((long) (sizeof (char))) < 0)
12794     {
12795       long i = longval ();
12796       if (i != ((long) (sizeof (char))))
12797         exit (1);
12798       fprintf (f, "%ld\n", i);
12799     }
12800   else
12801     {
12802       unsigned long i = ulongval ();
12803       if (i != ((long) (sizeof (char))))
12804         exit (1);
12805       fprintf (f, "%lu\n", i);
12806     }
12807   exit (ferror (f) || fclose (f) != 0);
12808
12809   ;
12810   return 0;
12811 }
12812 _ACEOF
12813 rm -f conftest$ac_exeext
12814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12815   (eval $ac_link) 2>&5
12816   ac_status=$?
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820   (eval $ac_try) 2>&5
12821   ac_status=$?
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); }; }; then
12824   ac_cv_sizeof_char=`cat conftest.val`
12825 else
12826   echo "$as_me: program exited with status $ac_status" >&5
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12829
12830 ( exit $ac_status )
12831 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12832 See \`config.log' for more details." >&5
12833 echo "$as_me: error: cannot compute sizeof (char), 77
12834 See \`config.log' for more details." >&2;}
12835    { (exit 1); exit 1; }; }
12836 fi
12837 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12838 fi
12839 fi
12840 rm -f conftest.val
12841 else
12842   ac_cv_sizeof_char=0
12843 fi
12844 fi
12845 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12846 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12847 cat >>confdefs.h <<_ACEOF
12848 #define SIZEOF_CHAR $ac_cv_sizeof_char
12849 _ACEOF
12850
12851
12852 echo "$as_me:$LINENO: checking for short int" >&5
12853 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12854 if test "${ac_cv_type_short_int+set}" = set; then
12855   echo $ECHO_N "(cached) $ECHO_C" >&6
12856 else
12857   cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12859 /* confdefs.h.  */
12860 _ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h.  */
12864 $ac_includes_default
12865 int
12866 main ()
12867 {
12868 if ((short int *) 0)
12869   return 0;
12870 if (sizeof (short int))
12871   return 0;
12872   ;
12873   return 0;
12874 }
12875 _ACEOF
12876 rm -f conftest.$ac_objext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12878   (eval $ac_compile) 2>&5
12879   ac_status=$?
12880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881   (exit $ac_status); } &&
12882          { ac_try='test -s conftest.$ac_objext'
12883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884   (eval $ac_try) 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); }; }; then
12888   ac_cv_type_short_int=yes
12889 else
12890   echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12892
12893 ac_cv_type_short_int=no
12894 fi
12895 rm -f conftest.$ac_objext conftest.$ac_ext
12896 fi
12897 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12898 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12899
12900 echo "$as_me:$LINENO: checking size of short int" >&5
12901 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12902 if test "${ac_cv_sizeof_short_int+set}" = set; then
12903   echo $ECHO_N "(cached) $ECHO_C" >&6
12904 else
12905   if test "$ac_cv_type_short_int" = yes; then
12906   # The cast to unsigned long works around a bug in the HP C Compiler
12907   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12908   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12909   # This bug is HP SR number 8606223364.
12910   if test "$cross_compiling" = yes; then
12911   # Depending upon the size, compute the lo and hi bounds.
12912 cat >conftest.$ac_ext <<_ACEOF
12913 #line $LINENO "configure"
12914 /* confdefs.h.  */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h.  */
12919 $ac_includes_default
12920 int
12921 main ()
12922 {
12923 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12924 test_array [0] = 0
12925
12926   ;
12927   return 0;
12928 }
12929 _ACEOF
12930 rm -f conftest.$ac_objext
12931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12932   (eval $ac_compile) 2>&5
12933   ac_status=$?
12934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); } &&
12936          { ac_try='test -s conftest.$ac_objext'
12937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938   (eval $ac_try) 2>&5
12939   ac_status=$?
12940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941   (exit $ac_status); }; }; then
12942   ac_lo=0 ac_mid=0
12943   while :; do
12944     cat >conftest.$ac_ext <<_ACEOF
12945 #line $LINENO "configure"
12946 /* confdefs.h.  */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h.  */
12951 $ac_includes_default
12952 int
12953 main ()
12954 {
12955 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12956 test_array [0] = 0
12957
12958   ;
12959   return 0;
12960 }
12961 _ACEOF
12962 rm -f conftest.$ac_objext
12963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12964   (eval $ac_compile) 2>&5
12965   ac_status=$?
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); } &&
12968          { ac_try='test -s conftest.$ac_objext'
12969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970   (eval $ac_try) 2>&5
12971   ac_status=$?
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); }; }; then
12974   ac_hi=$ac_mid; break
12975 else
12976   echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12978
12979 ac_lo=`expr $ac_mid + 1`
12980                     if test $ac_lo -le $ac_mid; then
12981                       ac_lo= ac_hi=
12982                       break
12983                     fi
12984                     ac_mid=`expr 2 '*' $ac_mid + 1`
12985 fi
12986 rm -f conftest.$ac_objext conftest.$ac_ext
12987   done
12988 else
12989   echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12991
12992 cat >conftest.$ac_ext <<_ACEOF
12993 #line $LINENO "configure"
12994 /* confdefs.h.  */
12995 _ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h.  */
12999 $ac_includes_default
13000 int
13001 main ()
13002 {
13003 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13004 test_array [0] = 0
13005
13006   ;
13007   return 0;
13008 }
13009 _ACEOF
13010 rm -f conftest.$ac_objext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13012   (eval $ac_compile) 2>&5
13013   ac_status=$?
13014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015   (exit $ac_status); } &&
13016          { ac_try='test -s conftest.$ac_objext'
13017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018   (eval $ac_try) 2>&5
13019   ac_status=$?
13020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021   (exit $ac_status); }; }; then
13022   ac_hi=-1 ac_mid=-1
13023   while :; do
13024     cat >conftest.$ac_ext <<_ACEOF
13025 #line $LINENO "configure"
13026 /* confdefs.h.  */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h.  */
13031 $ac_includes_default
13032 int
13033 main ()
13034 {
13035 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13036 test_array [0] = 0
13037
13038   ;
13039   return 0;
13040 }
13041 _ACEOF
13042 rm -f conftest.$ac_objext
13043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13044   (eval $ac_compile) 2>&5
13045   ac_status=$?
13046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047   (exit $ac_status); } &&
13048          { ac_try='test -s conftest.$ac_objext'
13049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050   (eval $ac_try) 2>&5
13051   ac_status=$?
13052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053   (exit $ac_status); }; }; then
13054   ac_lo=$ac_mid; break
13055 else
13056   echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13058
13059 ac_hi=`expr '(' $ac_mid ')' - 1`
13060                        if test $ac_mid -le $ac_hi; then
13061                          ac_lo= ac_hi=
13062                          break
13063                        fi
13064                        ac_mid=`expr 2 '*' $ac_mid`
13065 fi
13066 rm -f conftest.$ac_objext conftest.$ac_ext
13067   done
13068 else
13069   echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13071
13072 ac_lo= ac_hi=
13073 fi
13074 rm -f conftest.$ac_objext conftest.$ac_ext
13075 fi
13076 rm -f conftest.$ac_objext conftest.$ac_ext
13077 # Binary search between lo and hi bounds.
13078 while test "x$ac_lo" != "x$ac_hi"; do
13079   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13080   cat >conftest.$ac_ext <<_ACEOF
13081 #line $LINENO "configure"
13082 /* confdefs.h.  */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h.  */
13087 $ac_includes_default
13088 int
13089 main ()
13090 {
13091 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13092 test_array [0] = 0
13093
13094   ;
13095   return 0;
13096 }
13097 _ACEOF
13098 rm -f conftest.$ac_objext
13099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13100   (eval $ac_compile) 2>&5
13101   ac_status=$?
13102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103   (exit $ac_status); } &&
13104          { ac_try='test -s conftest.$ac_objext'
13105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106   (eval $ac_try) 2>&5
13107   ac_status=$?
13108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109   (exit $ac_status); }; }; then
13110   ac_hi=$ac_mid
13111 else
13112   echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13114
13115 ac_lo=`expr '(' $ac_mid ')' + 1`
13116 fi
13117 rm -f conftest.$ac_objext conftest.$ac_ext
13118 done
13119 case $ac_lo in
13120 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13121 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13122 See \`config.log' for more details." >&5
13123 echo "$as_me: error: cannot compute sizeof (short int), 77
13124 See \`config.log' for more details." >&2;}
13125    { (exit 1); exit 1; }; } ;;
13126 esac
13127 else
13128   if test "$cross_compiling" = yes; then
13129   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13130 See \`config.log' for more details." >&5
13131 echo "$as_me: error: cannot run test program while cross compiling
13132 See \`config.log' for more details." >&2;}
13133    { (exit 1); exit 1; }; }
13134 else
13135   cat >conftest.$ac_ext <<_ACEOF
13136 #line $LINENO "configure"
13137 /* confdefs.h.  */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h.  */
13142 $ac_includes_default
13143 long longval () { return (long) (sizeof (short int)); }
13144 unsigned long ulongval () { return (long) (sizeof (short int)); }
13145 #include <stdio.h>
13146 #include <stdlib.h>
13147 int
13148 main ()
13149 {
13150
13151   FILE *f = fopen ("conftest.val", "w");
13152   if (! f)
13153     exit (1);
13154   if (((long) (sizeof (short int))) < 0)
13155     {
13156       long i = longval ();
13157       if (i != ((long) (sizeof (short int))))
13158         exit (1);
13159       fprintf (f, "%ld\n", i);
13160     }
13161   else
13162     {
13163       unsigned long i = ulongval ();
13164       if (i != ((long) (sizeof (short int))))
13165         exit (1);
13166       fprintf (f, "%lu\n", i);
13167     }
13168   exit (ferror (f) || fclose (f) != 0);
13169
13170   ;
13171   return 0;
13172 }
13173 _ACEOF
13174 rm -f conftest$ac_exeext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13176   (eval $ac_link) 2>&5
13177   ac_status=$?
13178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181   (eval $ac_try) 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); }; }; then
13185   ac_cv_sizeof_short_int=`cat conftest.val`
13186 else
13187   echo "$as_me: program exited with status $ac_status" >&5
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13190
13191 ( exit $ac_status )
13192 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13193 See \`config.log' for more details." >&5
13194 echo "$as_me: error: cannot compute sizeof (short int), 77
13195 See \`config.log' for more details." >&2;}
13196    { (exit 1); exit 1; }; }
13197 fi
13198 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13199 fi
13200 fi
13201 rm -f conftest.val
13202 else
13203   ac_cv_sizeof_short_int=0
13204 fi
13205 fi
13206 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13207 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13208 cat >>confdefs.h <<_ACEOF
13209 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13210 _ACEOF
13211
13212
13213 echo "$as_me:$LINENO: checking for int" >&5
13214 echo $ECHO_N "checking for int... $ECHO_C" >&6
13215 if test "${ac_cv_type_int+set}" = set; then
13216   echo $ECHO_N "(cached) $ECHO_C" >&6
13217 else
13218   cat >conftest.$ac_ext <<_ACEOF
13219 #line $LINENO "configure"
13220 /* confdefs.h.  */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h.  */
13225 $ac_includes_default
13226 int
13227 main ()
13228 {
13229 if ((int *) 0)
13230   return 0;
13231 if (sizeof (int))
13232   return 0;
13233   ;
13234   return 0;
13235 }
13236 _ACEOF
13237 rm -f conftest.$ac_objext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13239   (eval $ac_compile) 2>&5
13240   ac_status=$?
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); } &&
13243          { ac_try='test -s conftest.$ac_objext'
13244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245   (eval $ac_try) 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); }; }; then
13249   ac_cv_type_int=yes
13250 else
13251   echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253
13254 ac_cv_type_int=no
13255 fi
13256 rm -f conftest.$ac_objext conftest.$ac_ext
13257 fi
13258 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13259 echo "${ECHO_T}$ac_cv_type_int" >&6
13260
13261 echo "$as_me:$LINENO: checking size of int" >&5
13262 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13263 if test "${ac_cv_sizeof_int+set}" = set; then
13264   echo $ECHO_N "(cached) $ECHO_C" >&6
13265 else
13266   if test "$ac_cv_type_int" = yes; then
13267   # The cast to unsigned long works around a bug in the HP C Compiler
13268   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13269   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13270   # This bug is HP SR number 8606223364.
13271   if test "$cross_compiling" = yes; then
13272   # Depending upon the size, compute the lo and hi bounds.
13273 cat >conftest.$ac_ext <<_ACEOF
13274 #line $LINENO "configure"
13275 /* confdefs.h.  */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h.  */
13280 $ac_includes_default
13281 int
13282 main ()
13283 {
13284 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13285 test_array [0] = 0
13286
13287   ;
13288   return 0;
13289 }
13290 _ACEOF
13291 rm -f conftest.$ac_objext
13292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13293   (eval $ac_compile) 2>&5
13294   ac_status=$?
13295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296   (exit $ac_status); } &&
13297          { ac_try='test -s conftest.$ac_objext'
13298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299   (eval $ac_try) 2>&5
13300   ac_status=$?
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); }; }; then
13303   ac_lo=0 ac_mid=0
13304   while :; do
13305     cat >conftest.$ac_ext <<_ACEOF
13306 #line $LINENO "configure"
13307 /* confdefs.h.  */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h.  */
13312 $ac_includes_default
13313 int
13314 main ()
13315 {
13316 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13317 test_array [0] = 0
13318
13319   ;
13320   return 0;
13321 }
13322 _ACEOF
13323 rm -f conftest.$ac_objext
13324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13325   (eval $ac_compile) 2>&5
13326   ac_status=$?
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); } &&
13329          { ac_try='test -s conftest.$ac_objext'
13330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331   (eval $ac_try) 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); }; }; then
13335   ac_hi=$ac_mid; break
13336 else
13337   echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340 ac_lo=`expr $ac_mid + 1`
13341                     if test $ac_lo -le $ac_mid; then
13342                       ac_lo= ac_hi=
13343                       break
13344                     fi
13345                     ac_mid=`expr 2 '*' $ac_mid + 1`
13346 fi
13347 rm -f conftest.$ac_objext conftest.$ac_ext
13348   done
13349 else
13350   echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13352
13353 cat >conftest.$ac_ext <<_ACEOF
13354 #line $LINENO "configure"
13355 /* confdefs.h.  */
13356 _ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h.  */
13360 $ac_includes_default
13361 int
13362 main ()
13363 {
13364 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13365 test_array [0] = 0
13366
13367   ;
13368   return 0;
13369 }
13370 _ACEOF
13371 rm -f conftest.$ac_objext
13372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13373   (eval $ac_compile) 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); } &&
13377          { ac_try='test -s conftest.$ac_objext'
13378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379   (eval $ac_try) 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; }; then
13383   ac_hi=-1 ac_mid=-1
13384   while :; do
13385     cat >conftest.$ac_ext <<_ACEOF
13386 #line $LINENO "configure"
13387 /* confdefs.h.  */
13388 _ACEOF
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h.  */
13392 $ac_includes_default
13393 int
13394 main ()
13395 {
13396 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13397 test_array [0] = 0
13398
13399   ;
13400   return 0;
13401 }
13402 _ACEOF
13403 rm -f conftest.$ac_objext
13404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13405   (eval $ac_compile) 2>&5
13406   ac_status=$?
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); } &&
13409          { ac_try='test -s conftest.$ac_objext'
13410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411   (eval $ac_try) 2>&5
13412   ac_status=$?
13413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414   (exit $ac_status); }; }; then
13415   ac_lo=$ac_mid; break
13416 else
13417   echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13419
13420 ac_hi=`expr '(' $ac_mid ')' - 1`
13421                        if test $ac_mid -le $ac_hi; then
13422                          ac_lo= ac_hi=
13423                          break
13424                        fi
13425                        ac_mid=`expr 2 '*' $ac_mid`
13426 fi
13427 rm -f conftest.$ac_objext conftest.$ac_ext
13428   done
13429 else
13430   echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13432
13433 ac_lo= ac_hi=
13434 fi
13435 rm -f conftest.$ac_objext conftest.$ac_ext
13436 fi
13437 rm -f conftest.$ac_objext conftest.$ac_ext
13438 # Binary search between lo and hi bounds.
13439 while test "x$ac_lo" != "x$ac_hi"; do
13440   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13441   cat >conftest.$ac_ext <<_ACEOF
13442 #line $LINENO "configure"
13443 /* confdefs.h.  */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h.  */
13448 $ac_includes_default
13449 int
13450 main ()
13451 {
13452 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13453 test_array [0] = 0
13454
13455   ;
13456   return 0;
13457 }
13458 _ACEOF
13459 rm -f conftest.$ac_objext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13461   (eval $ac_compile) 2>&5
13462   ac_status=$?
13463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464   (exit $ac_status); } &&
13465          { ac_try='test -s conftest.$ac_objext'
13466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467   (eval $ac_try) 2>&5
13468   ac_status=$?
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); }; }; then
13471   ac_hi=$ac_mid
13472 else
13473   echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13475
13476 ac_lo=`expr '(' $ac_mid ')' + 1`
13477 fi
13478 rm -f conftest.$ac_objext conftest.$ac_ext
13479 done
13480 case $ac_lo in
13481 ?*) ac_cv_sizeof_int=$ac_lo;;
13482 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13483 See \`config.log' for more details." >&5
13484 echo "$as_me: error: cannot compute sizeof (int), 77
13485 See \`config.log' for more details." >&2;}
13486    { (exit 1); exit 1; }; } ;;
13487 esac
13488 else
13489   if test "$cross_compiling" = yes; then
13490   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13491 See \`config.log' for more details." >&5
13492 echo "$as_me: error: cannot run test program while cross compiling
13493 See \`config.log' for more details." >&2;}
13494    { (exit 1); exit 1; }; }
13495 else
13496   cat >conftest.$ac_ext <<_ACEOF
13497 #line $LINENO "configure"
13498 /* confdefs.h.  */
13499 _ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h.  */
13503 $ac_includes_default
13504 long longval () { return (long) (sizeof (int)); }
13505 unsigned long ulongval () { return (long) (sizeof (int)); }
13506 #include <stdio.h>
13507 #include <stdlib.h>
13508 int
13509 main ()
13510 {
13511
13512   FILE *f = fopen ("conftest.val", "w");
13513   if (! f)
13514     exit (1);
13515   if (((long) (sizeof (int))) < 0)
13516     {
13517       long i = longval ();
13518       if (i != ((long) (sizeof (int))))
13519         exit (1);
13520       fprintf (f, "%ld\n", i);
13521     }
13522   else
13523     {
13524       unsigned long i = ulongval ();
13525       if (i != ((long) (sizeof (int))))
13526         exit (1);
13527       fprintf (f, "%lu\n", i);
13528     }
13529   exit (ferror (f) || fclose (f) != 0);
13530
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 rm -f conftest$ac_exeext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13537   (eval $ac_link) 2>&5
13538   ac_status=$?
13539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542   (eval $ac_try) 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); }; }; then
13546   ac_cv_sizeof_int=`cat conftest.val`
13547 else
13548   echo "$as_me: program exited with status $ac_status" >&5
13549 echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13551
13552 ( exit $ac_status )
13553 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13554 See \`config.log' for more details." >&5
13555 echo "$as_me: error: cannot compute sizeof (int), 77
13556 See \`config.log' for more details." >&2;}
13557    { (exit 1); exit 1; }; }
13558 fi
13559 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13560 fi
13561 fi
13562 rm -f conftest.val
13563 else
13564   ac_cv_sizeof_int=0
13565 fi
13566 fi
13567 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13568 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13569 cat >>confdefs.h <<_ACEOF
13570 #define SIZEOF_INT $ac_cv_sizeof_int
13571 _ACEOF
13572
13573
13574 echo "$as_me:$LINENO: checking for long int" >&5
13575 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13576 if test "${ac_cv_type_long_int+set}" = set; then
13577   echo $ECHO_N "(cached) $ECHO_C" >&6
13578 else
13579   cat >conftest.$ac_ext <<_ACEOF
13580 #line $LINENO "configure"
13581 /* confdefs.h.  */
13582 _ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h.  */
13586 $ac_includes_default
13587 int
13588 main ()
13589 {
13590 if ((long int *) 0)
13591   return 0;
13592 if (sizeof (long int))
13593   return 0;
13594   ;
13595   return 0;
13596 }
13597 _ACEOF
13598 rm -f conftest.$ac_objext
13599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13600   (eval $ac_compile) 2>&5
13601   ac_status=$?
13602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603   (exit $ac_status); } &&
13604          { ac_try='test -s conftest.$ac_objext'
13605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606   (eval $ac_try) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); }; }; then
13610   ac_cv_type_long_int=yes
13611 else
13612   echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13614
13615 ac_cv_type_long_int=no
13616 fi
13617 rm -f conftest.$ac_objext conftest.$ac_ext
13618 fi
13619 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13620 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13621
13622 echo "$as_me:$LINENO: checking size of long int" >&5
13623 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13624 if test "${ac_cv_sizeof_long_int+set}" = set; then
13625   echo $ECHO_N "(cached) $ECHO_C" >&6
13626 else
13627   if test "$ac_cv_type_long_int" = yes; then
13628   # The cast to unsigned long works around a bug in the HP C Compiler
13629   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13630   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13631   # This bug is HP SR number 8606223364.
13632   if test "$cross_compiling" = yes; then
13633   # Depending upon the size, compute the lo and hi bounds.
13634 cat >conftest.$ac_ext <<_ACEOF
13635 #line $LINENO "configure"
13636 /* confdefs.h.  */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h.  */
13641 $ac_includes_default
13642 int
13643 main ()
13644 {
13645 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13646 test_array [0] = 0
13647
13648   ;
13649   return 0;
13650 }
13651 _ACEOF
13652 rm -f conftest.$ac_objext
13653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13654   (eval $ac_compile) 2>&5
13655   ac_status=$?
13656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657   (exit $ac_status); } &&
13658          { ac_try='test -s conftest.$ac_objext'
13659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660   (eval $ac_try) 2>&5
13661   ac_status=$?
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); }; }; then
13664   ac_lo=0 ac_mid=0
13665   while :; do
13666     cat >conftest.$ac_ext <<_ACEOF
13667 #line $LINENO "configure"
13668 /* confdefs.h.  */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h.  */
13673 $ac_includes_default
13674 int
13675 main ()
13676 {
13677 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13678 test_array [0] = 0
13679
13680   ;
13681   return 0;
13682 }
13683 _ACEOF
13684 rm -f conftest.$ac_objext
13685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13686   (eval $ac_compile) 2>&5
13687   ac_status=$?
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); } &&
13690          { ac_try='test -s conftest.$ac_objext'
13691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692   (eval $ac_try) 2>&5
13693   ac_status=$?
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); }; }; then
13696   ac_hi=$ac_mid; break
13697 else
13698   echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13700
13701 ac_lo=`expr $ac_mid + 1`
13702                     if test $ac_lo -le $ac_mid; then
13703                       ac_lo= ac_hi=
13704                       break
13705                     fi
13706                     ac_mid=`expr 2 '*' $ac_mid + 1`
13707 fi
13708 rm -f conftest.$ac_objext conftest.$ac_ext
13709   done
13710 else
13711   echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13713
13714 cat >conftest.$ac_ext <<_ACEOF
13715 #line $LINENO "configure"
13716 /* confdefs.h.  */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h.  */
13721 $ac_includes_default
13722 int
13723 main ()
13724 {
13725 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13726 test_array [0] = 0
13727
13728   ;
13729   return 0;
13730 }
13731 _ACEOF
13732 rm -f conftest.$ac_objext
13733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13734   (eval $ac_compile) 2>&5
13735   ac_status=$?
13736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737   (exit $ac_status); } &&
13738          { ac_try='test -s conftest.$ac_objext'
13739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740   (eval $ac_try) 2>&5
13741   ac_status=$?
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); }; }; then
13744   ac_hi=-1 ac_mid=-1
13745   while :; do
13746     cat >conftest.$ac_ext <<_ACEOF
13747 #line $LINENO "configure"
13748 /* confdefs.h.  */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h.  */
13753 $ac_includes_default
13754 int
13755 main ()
13756 {
13757 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13758 test_array [0] = 0
13759
13760   ;
13761   return 0;
13762 }
13763 _ACEOF
13764 rm -f conftest.$ac_objext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766   (eval $ac_compile) 2>&5
13767   ac_status=$?
13768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769   (exit $ac_status); } &&
13770          { ac_try='test -s conftest.$ac_objext'
13771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772   (eval $ac_try) 2>&5
13773   ac_status=$?
13774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775   (exit $ac_status); }; }; then
13776   ac_lo=$ac_mid; break
13777 else
13778   echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13780
13781 ac_hi=`expr '(' $ac_mid ')' - 1`
13782                        if test $ac_mid -le $ac_hi; then
13783                          ac_lo= ac_hi=
13784                          break
13785                        fi
13786                        ac_mid=`expr 2 '*' $ac_mid`
13787 fi
13788 rm -f conftest.$ac_objext conftest.$ac_ext
13789   done
13790 else
13791   echo "$as_me: failed program was:" >&5
13792 sed 's/^/| /' conftest.$ac_ext >&5
13793
13794 ac_lo= ac_hi=
13795 fi
13796 rm -f conftest.$ac_objext conftest.$ac_ext
13797 fi
13798 rm -f conftest.$ac_objext conftest.$ac_ext
13799 # Binary search between lo and hi bounds.
13800 while test "x$ac_lo" != "x$ac_hi"; do
13801   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13802   cat >conftest.$ac_ext <<_ACEOF
13803 #line $LINENO "configure"
13804 /* confdefs.h.  */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h.  */
13809 $ac_includes_default
13810 int
13811 main ()
13812 {
13813 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13814 test_array [0] = 0
13815
13816   ;
13817   return 0;
13818 }
13819 _ACEOF
13820 rm -f conftest.$ac_objext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822   (eval $ac_compile) 2>&5
13823   ac_status=$?
13824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825   (exit $ac_status); } &&
13826          { ac_try='test -s conftest.$ac_objext'
13827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828   (eval $ac_try) 2>&5
13829   ac_status=$?
13830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831   (exit $ac_status); }; }; then
13832   ac_hi=$ac_mid
13833 else
13834   echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13836
13837 ac_lo=`expr '(' $ac_mid ')' + 1`
13838 fi
13839 rm -f conftest.$ac_objext conftest.$ac_ext
13840 done
13841 case $ac_lo in
13842 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13843 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13844 See \`config.log' for more details." >&5
13845 echo "$as_me: error: cannot compute sizeof (long int), 77
13846 See \`config.log' for more details." >&2;}
13847    { (exit 1); exit 1; }; } ;;
13848 esac
13849 else
13850   if test "$cross_compiling" = yes; then
13851   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13852 See \`config.log' for more details." >&5
13853 echo "$as_me: error: cannot run test program while cross compiling
13854 See \`config.log' for more details." >&2;}
13855    { (exit 1); exit 1; }; }
13856 else
13857   cat >conftest.$ac_ext <<_ACEOF
13858 #line $LINENO "configure"
13859 /* confdefs.h.  */
13860 _ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h.  */
13864 $ac_includes_default
13865 long longval () { return (long) (sizeof (long int)); }
13866 unsigned long ulongval () { return (long) (sizeof (long int)); }
13867 #include <stdio.h>
13868 #include <stdlib.h>
13869 int
13870 main ()
13871 {
13872
13873   FILE *f = fopen ("conftest.val", "w");
13874   if (! f)
13875     exit (1);
13876   if (((long) (sizeof (long int))) < 0)
13877     {
13878       long i = longval ();
13879       if (i != ((long) (sizeof (long int))))
13880         exit (1);
13881       fprintf (f, "%ld\n", i);
13882     }
13883   else
13884     {
13885       unsigned long i = ulongval ();
13886       if (i != ((long) (sizeof (long int))))
13887         exit (1);
13888       fprintf (f, "%lu\n", i);
13889     }
13890   exit (ferror (f) || fclose (f) != 0);
13891
13892   ;
13893   return 0;
13894 }
13895 _ACEOF
13896 rm -f conftest$ac_exeext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13898   (eval $ac_link) 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903   (eval $ac_try) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; }; then
13907   ac_cv_sizeof_long_int=`cat conftest.val`
13908 else
13909   echo "$as_me: program exited with status $ac_status" >&5
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13912
13913 ( exit $ac_status )
13914 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13915 See \`config.log' for more details." >&5
13916 echo "$as_me: error: cannot compute sizeof (long int), 77
13917 See \`config.log' for more details." >&2;}
13918    { (exit 1); exit 1; }; }
13919 fi
13920 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13921 fi
13922 fi
13923 rm -f conftest.val
13924 else
13925   ac_cv_sizeof_long_int=0
13926 fi
13927 fi
13928 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13929 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13930 cat >>confdefs.h <<_ACEOF
13931 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13932 _ACEOF
13933
13934
13935 echo "$as_me:$LINENO: checking for long long int" >&5
13936 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13937 if test "${ac_cv_type_long_long_int+set}" = set; then
13938   echo $ECHO_N "(cached) $ECHO_C" >&6
13939 else
13940   cat >conftest.$ac_ext <<_ACEOF
13941 #line $LINENO "configure"
13942 /* confdefs.h.  */
13943 _ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h.  */
13947 $ac_includes_default
13948 int
13949 main ()
13950 {
13951 if ((long long int *) 0)
13952   return 0;
13953 if (sizeof (long long int))
13954   return 0;
13955   ;
13956   return 0;
13957 }
13958 _ACEOF
13959 rm -f conftest.$ac_objext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13961   (eval $ac_compile) 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } &&
13965          { ac_try='test -s conftest.$ac_objext'
13966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967   (eval $ac_try) 2>&5
13968   ac_status=$?
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); }; }; then
13971   ac_cv_type_long_long_int=yes
13972 else
13973   echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13975
13976 ac_cv_type_long_long_int=no
13977 fi
13978 rm -f conftest.$ac_objext conftest.$ac_ext
13979 fi
13980 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13981 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13982
13983 echo "$as_me:$LINENO: checking size of long long int" >&5
13984 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13985 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13986   echo $ECHO_N "(cached) $ECHO_C" >&6
13987 else
13988   if test "$ac_cv_type_long_long_int" = yes; then
13989   # The cast to unsigned long works around a bug in the HP C Compiler
13990   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13991   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13992   # This bug is HP SR number 8606223364.
13993   if test "$cross_compiling" = yes; then
13994   # Depending upon the size, compute the lo and hi bounds.
13995 cat >conftest.$ac_ext <<_ACEOF
13996 #line $LINENO "configure"
13997 /* confdefs.h.  */
13998 _ACEOF
13999 cat confdefs.h >>conftest.$ac_ext
14000 cat >>conftest.$ac_ext <<_ACEOF
14001 /* end confdefs.h.  */
14002 $ac_includes_default
14003 int
14004 main ()
14005 {
14006 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14007 test_array [0] = 0
14008
14009   ;
14010   return 0;
14011 }
14012 _ACEOF
14013 rm -f conftest.$ac_objext
14014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14015   (eval $ac_compile) 2>&5
14016   ac_status=$?
14017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018   (exit $ac_status); } &&
14019          { ac_try='test -s conftest.$ac_objext'
14020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021   (eval $ac_try) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); }; }; then
14025   ac_lo=0 ac_mid=0
14026   while :; do
14027     cat >conftest.$ac_ext <<_ACEOF
14028 #line $LINENO "configure"
14029 /* confdefs.h.  */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h.  */
14034 $ac_includes_default
14035 int
14036 main ()
14037 {
14038 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14039 test_array [0] = 0
14040
14041   ;
14042   return 0;
14043 }
14044 _ACEOF
14045 rm -f conftest.$ac_objext
14046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14047   (eval $ac_compile) 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); } &&
14051          { ac_try='test -s conftest.$ac_objext'
14052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053   (eval $ac_try) 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); }; }; then
14057   ac_hi=$ac_mid; break
14058 else
14059   echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14061
14062 ac_lo=`expr $ac_mid + 1`
14063                     if test $ac_lo -le $ac_mid; then
14064                       ac_lo= ac_hi=
14065                       break
14066                     fi
14067                     ac_mid=`expr 2 '*' $ac_mid + 1`
14068 fi
14069 rm -f conftest.$ac_objext conftest.$ac_ext
14070   done
14071 else
14072   echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14074
14075 cat >conftest.$ac_ext <<_ACEOF
14076 #line $LINENO "configure"
14077 /* confdefs.h.  */
14078 _ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h.  */
14082 $ac_includes_default
14083 int
14084 main ()
14085 {
14086 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14087 test_array [0] = 0
14088
14089   ;
14090   return 0;
14091 }
14092 _ACEOF
14093 rm -f conftest.$ac_objext
14094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14095   (eval $ac_compile) 2>&5
14096   ac_status=$?
14097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098   (exit $ac_status); } &&
14099          { ac_try='test -s conftest.$ac_objext'
14100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101   (eval $ac_try) 2>&5
14102   ac_status=$?
14103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); }; }; then
14105   ac_hi=-1 ac_mid=-1
14106   while :; do
14107     cat >conftest.$ac_ext <<_ACEOF
14108 #line $LINENO "configure"
14109 /* confdefs.h.  */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h.  */
14114 $ac_includes_default
14115 int
14116 main ()
14117 {
14118 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14119 test_array [0] = 0
14120
14121   ;
14122   return 0;
14123 }
14124 _ACEOF
14125 rm -f conftest.$ac_objext
14126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14127   (eval $ac_compile) 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); } &&
14131          { ac_try='test -s conftest.$ac_objext'
14132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133   (eval $ac_try) 2>&5
14134   ac_status=$?
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); }; }; then
14137   ac_lo=$ac_mid; break
14138 else
14139   echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14141
14142 ac_hi=`expr '(' $ac_mid ')' - 1`
14143                        if test $ac_mid -le $ac_hi; then
14144                          ac_lo= ac_hi=
14145                          break
14146                        fi
14147                        ac_mid=`expr 2 '*' $ac_mid`
14148 fi
14149 rm -f conftest.$ac_objext conftest.$ac_ext
14150   done
14151 else
14152   echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14154
14155 ac_lo= ac_hi=
14156 fi
14157 rm -f conftest.$ac_objext conftest.$ac_ext
14158 fi
14159 rm -f conftest.$ac_objext conftest.$ac_ext
14160 # Binary search between lo and hi bounds.
14161 while test "x$ac_lo" != "x$ac_hi"; do
14162   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14163   cat >conftest.$ac_ext <<_ACEOF
14164 #line $LINENO "configure"
14165 /* confdefs.h.  */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h.  */
14170 $ac_includes_default
14171 int
14172 main ()
14173 {
14174 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14175 test_array [0] = 0
14176
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 rm -f conftest.$ac_objext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14183   (eval $ac_compile) 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); } &&
14187          { ac_try='test -s conftest.$ac_objext'
14188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189   (eval $ac_try) 2>&5
14190   ac_status=$?
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); }; }; then
14193   ac_hi=$ac_mid
14194 else
14195   echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14197
14198 ac_lo=`expr '(' $ac_mid ')' + 1`
14199 fi
14200 rm -f conftest.$ac_objext conftest.$ac_ext
14201 done
14202 case $ac_lo in
14203 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14204 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14205 See \`config.log' for more details." >&5
14206 echo "$as_me: error: cannot compute sizeof (long long int), 77
14207 See \`config.log' for more details." >&2;}
14208    { (exit 1); exit 1; }; } ;;
14209 esac
14210 else
14211   if test "$cross_compiling" = yes; then
14212   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14213 See \`config.log' for more details." >&5
14214 echo "$as_me: error: cannot run test program while cross compiling
14215 See \`config.log' for more details." >&2;}
14216    { (exit 1); exit 1; }; }
14217 else
14218   cat >conftest.$ac_ext <<_ACEOF
14219 #line $LINENO "configure"
14220 /* confdefs.h.  */
14221 _ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h.  */
14225 $ac_includes_default
14226 long longval () { return (long) (sizeof (long long int)); }
14227 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14228 #include <stdio.h>
14229 #include <stdlib.h>
14230 int
14231 main ()
14232 {
14233
14234   FILE *f = fopen ("conftest.val", "w");
14235   if (! f)
14236     exit (1);
14237   if (((long) (sizeof (long long int))) < 0)
14238     {
14239       long i = longval ();
14240       if (i != ((long) (sizeof (long long int))))
14241         exit (1);
14242       fprintf (f, "%ld\n", i);
14243     }
14244   else
14245     {
14246       unsigned long i = ulongval ();
14247       if (i != ((long) (sizeof (long long int))))
14248         exit (1);
14249       fprintf (f, "%lu\n", i);
14250     }
14251   exit (ferror (f) || fclose (f) != 0);
14252
14253   ;
14254   return 0;
14255 }
14256 _ACEOF
14257 rm -f conftest$ac_exeext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14259   (eval $ac_link) 2>&5
14260   ac_status=$?
14261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264   (eval $ac_try) 2>&5
14265   ac_status=$?
14266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267   (exit $ac_status); }; }; then
14268   ac_cv_sizeof_long_long_int=`cat conftest.val`
14269 else
14270   echo "$as_me: program exited with status $ac_status" >&5
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274 ( exit $ac_status )
14275 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14276 See \`config.log' for more details." >&5
14277 echo "$as_me: error: cannot compute sizeof (long long int), 77
14278 See \`config.log' for more details." >&2;}
14279    { (exit 1); exit 1; }; }
14280 fi
14281 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14282 fi
14283 fi
14284 rm -f conftest.val
14285 else
14286   ac_cv_sizeof_long_long_int=0
14287 fi
14288 fi
14289 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14290 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14291 cat >>confdefs.h <<_ACEOF
14292 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14293 _ACEOF
14294
14295
14296 echo "$as_me:$LINENO: checking for int *" >&5
14297 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14298 if test "${ac_cv_type_int_p+set}" = set; then
14299   echo $ECHO_N "(cached) $ECHO_C" >&6
14300 else
14301   cat >conftest.$ac_ext <<_ACEOF
14302 #line $LINENO "configure"
14303 /* confdefs.h.  */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h.  */
14308 $ac_includes_default
14309 int
14310 main ()
14311 {
14312 if ((int * *) 0)
14313   return 0;
14314 if (sizeof (int *))
14315   return 0;
14316   ;
14317   return 0;
14318 }
14319 _ACEOF
14320 rm -f conftest.$ac_objext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322   (eval $ac_compile) 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); } &&
14326          { ac_try='test -s conftest.$ac_objext'
14327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328   (eval $ac_try) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); }; }; then
14332   ac_cv_type_int_p=yes
14333 else
14334   echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14336
14337 ac_cv_type_int_p=no
14338 fi
14339 rm -f conftest.$ac_objext conftest.$ac_ext
14340 fi
14341 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14342 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14343
14344 echo "$as_me:$LINENO: checking size of int *" >&5
14345 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14346 if test "${ac_cv_sizeof_int_p+set}" = set; then
14347   echo $ECHO_N "(cached) $ECHO_C" >&6
14348 else
14349   if test "$ac_cv_type_int_p" = yes; then
14350   # The cast to unsigned long works around a bug in the HP C Compiler
14351   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14352   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14353   # This bug is HP SR number 8606223364.
14354   if test "$cross_compiling" = yes; then
14355   # Depending upon the size, compute the lo and hi bounds.
14356 cat >conftest.$ac_ext <<_ACEOF
14357 #line $LINENO "configure"
14358 /* confdefs.h.  */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h.  */
14363 $ac_includes_default
14364 int
14365 main ()
14366 {
14367 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14368 test_array [0] = 0
14369
14370   ;
14371   return 0;
14372 }
14373 _ACEOF
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376   (eval $ac_compile) 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); } &&
14380          { ac_try='test -s conftest.$ac_objext'
14381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382   (eval $ac_try) 2>&5
14383   ac_status=$?
14384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385   (exit $ac_status); }; }; then
14386   ac_lo=0 ac_mid=0
14387   while :; do
14388     cat >conftest.$ac_ext <<_ACEOF
14389 #line $LINENO "configure"
14390 /* confdefs.h.  */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h.  */
14395 $ac_includes_default
14396 int
14397 main ()
14398 {
14399 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14400 test_array [0] = 0
14401
14402   ;
14403   return 0;
14404 }
14405 _ACEOF
14406 rm -f conftest.$ac_objext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408   (eval $ac_compile) 2>&5
14409   ac_status=$?
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } &&
14412          { ac_try='test -s conftest.$ac_objext'
14413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414   (eval $ac_try) 2>&5
14415   ac_status=$?
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); }; }; then
14418   ac_hi=$ac_mid; break
14419 else
14420   echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14422
14423 ac_lo=`expr $ac_mid + 1`
14424                     if test $ac_lo -le $ac_mid; then
14425                       ac_lo= ac_hi=
14426                       break
14427                     fi
14428                     ac_mid=`expr 2 '*' $ac_mid + 1`
14429 fi
14430 rm -f conftest.$ac_objext conftest.$ac_ext
14431   done
14432 else
14433   echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14435
14436 cat >conftest.$ac_ext <<_ACEOF
14437 #line $LINENO "configure"
14438 /* confdefs.h.  */
14439 _ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h.  */
14443 $ac_includes_default
14444 int
14445 main ()
14446 {
14447 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14448 test_array [0] = 0
14449
14450   ;
14451   return 0;
14452 }
14453 _ACEOF
14454 rm -f conftest.$ac_objext
14455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14456   (eval $ac_compile) 2>&5
14457   ac_status=$?
14458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459   (exit $ac_status); } &&
14460          { ac_try='test -s conftest.$ac_objext'
14461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462   (eval $ac_try) 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); }; }; then
14466   ac_hi=-1 ac_mid=-1
14467   while :; do
14468     cat >conftest.$ac_ext <<_ACEOF
14469 #line $LINENO "configure"
14470 /* confdefs.h.  */
14471 _ACEOF
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h.  */
14475 $ac_includes_default
14476 int
14477 main ()
14478 {
14479 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14480 test_array [0] = 0
14481
14482   ;
14483   return 0;
14484 }
14485 _ACEOF
14486 rm -f conftest.$ac_objext
14487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14488   (eval $ac_compile) 2>&5
14489   ac_status=$?
14490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491   (exit $ac_status); } &&
14492          { ac_try='test -s conftest.$ac_objext'
14493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494   (eval $ac_try) 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; }; then
14498   ac_lo=$ac_mid; break
14499 else
14500   echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 ac_hi=`expr '(' $ac_mid ')' - 1`
14504                        if test $ac_mid -le $ac_hi; then
14505                          ac_lo= ac_hi=
14506                          break
14507                        fi
14508                        ac_mid=`expr 2 '*' $ac_mid`
14509 fi
14510 rm -f conftest.$ac_objext conftest.$ac_ext
14511   done
14512 else
14513   echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14515
14516 ac_lo= ac_hi=
14517 fi
14518 rm -f conftest.$ac_objext conftest.$ac_ext
14519 fi
14520 rm -f conftest.$ac_objext conftest.$ac_ext
14521 # Binary search between lo and hi bounds.
14522 while test "x$ac_lo" != "x$ac_hi"; do
14523   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14524   cat >conftest.$ac_ext <<_ACEOF
14525 #line $LINENO "configure"
14526 /* confdefs.h.  */
14527 _ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h.  */
14531 $ac_includes_default
14532 int
14533 main ()
14534 {
14535 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14536 test_array [0] = 0
14537
14538   ;
14539   return 0;
14540 }
14541 _ACEOF
14542 rm -f conftest.$ac_objext
14543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14544   (eval $ac_compile) 2>&5
14545   ac_status=$?
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); } &&
14548          { ac_try='test -s conftest.$ac_objext'
14549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550   (eval $ac_try) 2>&5
14551   ac_status=$?
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); }; }; then
14554   ac_hi=$ac_mid
14555 else
14556   echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14558
14559 ac_lo=`expr '(' $ac_mid ')' + 1`
14560 fi
14561 rm -f conftest.$ac_objext conftest.$ac_ext
14562 done
14563 case $ac_lo in
14564 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14565 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14566 See \`config.log' for more details." >&5
14567 echo "$as_me: error: cannot compute sizeof (int *), 77
14568 See \`config.log' for more details." >&2;}
14569    { (exit 1); exit 1; }; } ;;
14570 esac
14571 else
14572   if test "$cross_compiling" = yes; then
14573   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14574 See \`config.log' for more details." >&5
14575 echo "$as_me: error: cannot run test program while cross compiling
14576 See \`config.log' for more details." >&2;}
14577    { (exit 1); exit 1; }; }
14578 else
14579   cat >conftest.$ac_ext <<_ACEOF
14580 #line $LINENO "configure"
14581 /* confdefs.h.  */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h.  */
14586 $ac_includes_default
14587 long longval () { return (long) (sizeof (int *)); }
14588 unsigned long ulongval () { return (long) (sizeof (int *)); }
14589 #include <stdio.h>
14590 #include <stdlib.h>
14591 int
14592 main ()
14593 {
14594
14595   FILE *f = fopen ("conftest.val", "w");
14596   if (! f)
14597     exit (1);
14598   if (((long) (sizeof (int *))) < 0)
14599     {
14600       long i = longval ();
14601       if (i != ((long) (sizeof (int *))))
14602         exit (1);
14603       fprintf (f, "%ld\n", i);
14604     }
14605   else
14606     {
14607       unsigned long i = ulongval ();
14608       if (i != ((long) (sizeof (int *))))
14609         exit (1);
14610       fprintf (f, "%lu\n", i);
14611     }
14612   exit (ferror (f) || fclose (f) != 0);
14613
14614   ;
14615   return 0;
14616 }
14617 _ACEOF
14618 rm -f conftest$ac_exeext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14620   (eval $ac_link) 2>&5
14621   ac_status=$?
14622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625   (eval $ac_try) 2>&5
14626   ac_status=$?
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); }; }; then
14629   ac_cv_sizeof_int_p=`cat conftest.val`
14630 else
14631   echo "$as_me: program exited with status $ac_status" >&5
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14634
14635 ( exit $ac_status )
14636 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14637 See \`config.log' for more details." >&5
14638 echo "$as_me: error: cannot compute sizeof (int *), 77
14639 See \`config.log' for more details." >&2;}
14640    { (exit 1); exit 1; }; }
14641 fi
14642 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14643 fi
14644 fi
14645 rm -f conftest.val
14646 else
14647   ac_cv_sizeof_int_p=0
14648 fi
14649 fi
14650 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14651 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14652 cat >>confdefs.h <<_ACEOF
14653 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14654 _ACEOF
14655
14656
14657
14658 # Check for sys/types.h types
14659 echo "$as_me:$LINENO: checking for u_int type" >&5
14660 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14661 if test "${ac_cv_have_u_int+set}" = set; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664
14665     cat >conftest.$ac_ext <<_ACEOF
14666 #line $LINENO "configure"
14667 /* confdefs.h.  */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h.  */
14672  #include <sys/types.h>
14673 int
14674 main ()
14675 {
14676  u_int a; a = 1;
14677   ;
14678   return 0;
14679 }
14680 _ACEOF
14681 rm -f conftest.$ac_objext
14682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14683   (eval $ac_compile) 2>&5
14684   ac_status=$?
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); } &&
14687          { ac_try='test -s conftest.$ac_objext'
14688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689   (eval $ac_try) 2>&5
14690   ac_status=$?
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); }; }; then
14693    ac_cv_have_u_int="yes"
14694 else
14695   echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14697
14698  ac_cv_have_u_int="no"
14699
14700 fi
14701 rm -f conftest.$ac_objext conftest.$ac_ext
14702
14703 fi
14704 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14705 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14706 if test "x$ac_cv_have_u_int" = "xyes" ; then
14707    cat >>confdefs.h <<\_ACEOF
14708 #define HAVE_U_INT 1
14709 _ACEOF
14710
14711    have_u_int=1
14712 fi
14713
14714 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14715 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14716 if test "${ac_cv_have_intmax_t+set}" = set; then
14717   echo $ECHO_N "(cached) $ECHO_C" >&6
14718 else
14719
14720    cat >conftest.$ac_ext <<_ACEOF
14721 #line $LINENO "configure"
14722 /* confdefs.h.  */
14723 _ACEOF
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h.  */
14727  #include <sys/types.h>
14728 int
14729 main ()
14730 {
14731  intmax_t a; a = 1;
14732   ;
14733   return 0;
14734 }
14735 _ACEOF
14736 rm -f conftest.$ac_objext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14738   (eval $ac_compile) 2>&5
14739   ac_status=$?
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); } &&
14742          { ac_try='test -s conftest.$ac_objext'
14743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744   (eval $ac_try) 2>&5
14745   ac_status=$?
14746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747   (exit $ac_status); }; }; then
14748    ac_cv_have_intmax_t="yes"
14749 else
14750   echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14752
14753
14754          cat >conftest.$ac_ext <<_ACEOF
14755 #line $LINENO "configure"
14756 /* confdefs.h.  */
14757 _ACEOF
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h.  */
14761  #include <stdint.h>
14762 int
14763 main ()
14764 {
14765  intmax_t a; a = 1;
14766   ;
14767   return 0;
14768 }
14769 _ACEOF
14770 rm -f conftest.$ac_objext
14771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14772   (eval $ac_compile) 2>&5
14773   ac_status=$?
14774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775   (exit $ac_status); } &&
14776          { ac_try='test -s conftest.$ac_objext'
14777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778   (eval $ac_try) 2>&5
14779   ac_status=$?
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); }; }; then
14782    ac_cv_have_intmax_t="yes"
14783 else
14784   echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787  ac_cv_have_intmax_t="no"
14788
14789 fi
14790 rm -f conftest.$ac_objext conftest.$ac_ext
14791
14792
14793 fi
14794 rm -f conftest.$ac_objext conftest.$ac_ext
14795
14796
14797 fi
14798 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14799 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14800 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14801    cat >>confdefs.h <<\_ACEOF
14802 #define HAVE_INTMAX_T 1
14803 _ACEOF
14804
14805    have_intmax_t=1
14806 fi
14807
14808
14809 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14810 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14811 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14812   echo $ECHO_N "(cached) $ECHO_C" >&6
14813 else
14814
14815    cat >conftest.$ac_ext <<_ACEOF
14816 #line $LINENO "configure"
14817 /* confdefs.h.  */
14818 _ACEOF
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h.  */
14822  #include <sys/types.h>
14823 int
14824 main ()
14825 {
14826  u_intmax_t a; a = 1;
14827   ;
14828   return 0;
14829 }
14830 _ACEOF
14831 rm -f conftest.$ac_objext
14832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14833   (eval $ac_compile) 2>&5
14834   ac_status=$?
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); } &&
14837          { ac_try='test -s conftest.$ac_objext'
14838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839   (eval $ac_try) 2>&5
14840   ac_status=$?
14841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842   (exit $ac_status); }; }; then
14843    ac_cv_have_u_intmax_t="yes"
14844 else
14845   echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14847
14848
14849          cat >conftest.$ac_ext <<_ACEOF
14850 #line $LINENO "configure"
14851 /* confdefs.h.  */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h.  */
14856  #include <stdint.h>
14857 int
14858 main ()
14859 {
14860  u_intmax_t a; a = 1;
14861   ;
14862   return 0;
14863 }
14864 _ACEOF
14865 rm -f conftest.$ac_objext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14867   (eval $ac_compile) 2>&5
14868   ac_status=$?
14869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870   (exit $ac_status); } &&
14871          { ac_try='test -s conftest.$ac_objext'
14872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873   (eval $ac_try) 2>&5
14874   ac_status=$?
14875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876   (exit $ac_status); }; }; then
14877    ac_cv_have_u_intmax_t="yes"
14878 else
14879   echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14881
14882  ac_cv_have_u_intmax_t="no"
14883
14884 fi
14885 rm -f conftest.$ac_objext conftest.$ac_ext
14886
14887
14888 fi
14889 rm -f conftest.$ac_objext conftest.$ac_ext
14890
14891 fi
14892 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14893 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14894 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14895    cat >>confdefs.h <<\_ACEOF
14896 #define HAVE_U_INTMAX_T 1
14897 _ACEOF
14898
14899    have_u_intmax_t=1
14900 fi
14901
14902
14903 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14904 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14905 if test "${ac_cv_have_intxx_t+set}" = set; then
14906   echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908
14909    cat >conftest.$ac_ext <<_ACEOF
14910 #line $LINENO "configure"
14911 /* confdefs.h.  */
14912 _ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h.  */
14916  #include <sys/types.h>
14917 int
14918 main ()
14919 {
14920  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14921   ;
14922   return 0;
14923 }
14924 _ACEOF
14925 rm -f conftest.$ac_objext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14927   (eval $ac_compile) 2>&5
14928   ac_status=$?
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); } &&
14931          { ac_try='test -s conftest.$ac_objext'
14932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933   (eval $ac_try) 2>&5
14934   ac_status=$?
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); }; }; then
14937    ac_cv_have_intxx_t="yes"
14938 else
14939   echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14941
14942  ac_cv_have_intxx_t="no"
14943
14944 fi
14945 rm -f conftest.$ac_objext conftest.$ac_ext
14946
14947 fi
14948 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14949 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14950 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14951    cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_INTXX_T 1
14953 _ACEOF
14954
14955    have_intxx_t=1
14956 fi
14957
14958 echo "$as_me:$LINENO: checking for int64_t type" >&5
14959 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14960 if test "${ac_cv_have_int64_t+set}" = set; then
14961   echo $ECHO_N "(cached) $ECHO_C" >&6
14962 else
14963
14964    cat >conftest.$ac_ext <<_ACEOF
14965 #line $LINENO "configure"
14966 /* confdefs.h.  */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h.  */
14971  #include <sys/types.h>
14972 int
14973 main ()
14974 {
14975  int64_t a; a = 1;
14976   ;
14977   return 0;
14978 }
14979 _ACEOF
14980 rm -f conftest.$ac_objext
14981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14982   (eval $ac_compile) 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); } &&
14986          { ac_try='test -s conftest.$ac_objext'
14987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988   (eval $ac_try) 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; }; then
14992    ac_cv_have_int64_t="yes"
14993 else
14994   echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997  ac_cv_have_int64_t="no"
14998
14999 fi
15000 rm -f conftest.$ac_objext conftest.$ac_ext
15001
15002 fi
15003 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15004 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15005 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15006    cat >>confdefs.h <<\_ACEOF
15007 #define HAVE_INT64_T 1
15008 _ACEOF
15009
15010    have_int64_t=1
15011 fi
15012
15013 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15014 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15015 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15016   echo $ECHO_N "(cached) $ECHO_C" >&6
15017 else
15018
15019    cat >conftest.$ac_ext <<_ACEOF
15020 #line $LINENO "configure"
15021 /* confdefs.h.  */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h.  */
15026  #include <sys/types.h>
15027 int
15028 main ()
15029 {
15030  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15031   ;
15032   return 0;
15033 }
15034 _ACEOF
15035 rm -f conftest.$ac_objext
15036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15037   (eval $ac_compile) 2>&5
15038   ac_status=$?
15039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); } &&
15041          { ac_try='test -s conftest.$ac_objext'
15042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043   (eval $ac_try) 2>&5
15044   ac_status=$?
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); }; }; then
15047    ac_cv_have_u_intxx_t="yes"
15048 else
15049   echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15051
15052  ac_cv_have_u_intxx_t="no"
15053
15054 fi
15055 rm -f conftest.$ac_objext conftest.$ac_ext
15056
15057 fi
15058 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15059 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15060 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15061    cat >>confdefs.h <<\_ACEOF
15062 #define HAVE_U_INTXX_T 1
15063 _ACEOF
15064
15065    have_u_intxx_t=1
15066 fi
15067
15068 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15069 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15070 if test "${ac_cv_have_u_int64_t+set}" = set; then
15071   echo $ECHO_N "(cached) $ECHO_C" >&6
15072 else
15073
15074    cat >conftest.$ac_ext <<_ACEOF
15075 #line $LINENO "configure"
15076 /* confdefs.h.  */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h.  */
15081  #include <sys/types.h>
15082 int
15083 main ()
15084 {
15085  u_int64_t a; a = 1;
15086   ;
15087   return 0;
15088 }
15089 _ACEOF
15090 rm -f conftest.$ac_objext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15092   (eval $ac_compile) 2>&5
15093   ac_status=$?
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); } &&
15096          { ac_try='test -s conftest.$ac_objext'
15097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098   (eval $ac_try) 2>&5
15099   ac_status=$?
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); }; }; then
15102    ac_cv_have_u_int64_t="yes"
15103 else
15104   echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107  ac_cv_have_u_int64_t="no"
15108
15109 fi
15110 rm -f conftest.$ac_objext conftest.$ac_ext
15111
15112 fi
15113 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15114 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15115 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15116    cat >>confdefs.h <<\_ACEOF
15117 #define HAVE_U_INT64_T 1
15118 _ACEOF
15119
15120    have_u_int64_t=1
15121 fi
15122
15123 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15124            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15125 then
15126    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15127 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15128    cat >conftest.$ac_ext <<_ACEOF
15129 #line $LINENO "configure"
15130 /* confdefs.h.  */
15131 _ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h.  */
15135  #include <sys/bitypes.h>
15136 int
15137 main ()
15138 {
15139  int8_t a; int16_t b; int32_t c;
15140         u_int8_t e; u_int16_t f; u_int32_t g;
15141         a = b = c = e = f = g = 1;
15142   ;
15143   return 0;
15144 }
15145 _ACEOF
15146 rm -f conftest.$ac_objext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15148   (eval $ac_compile) 2>&5
15149   ac_status=$?
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); } &&
15152          { ac_try='test -s conftest.$ac_objext'
15153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154   (eval $ac_try) 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); }; }; then
15158    cat >>confdefs.h <<\_ACEOF
15159 #define HAVE_U_INTXX_T 1
15160 _ACEOF
15161
15162         cat >>confdefs.h <<\_ACEOF
15163 #define HAVE_INTXX_T 1
15164 _ACEOF
15165
15166         cat >>confdefs.h <<\_ACEOF
15167 #define HAVE_SYS_BITYPES_H 1
15168 _ACEOF
15169
15170         echo "$as_me:$LINENO: result: yes" >&5
15171 echo "${ECHO_T}yes" >&6
15172 else
15173   echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176  echo "$as_me:$LINENO: result: no" >&5
15177 echo "${ECHO_T}no" >&6
15178
15179 fi
15180 rm -f conftest.$ac_objext conftest.$ac_ext
15181 fi
15182
15183 if test -z "$have_u_intxx_t" ; then
15184    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15185 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15186 if test "${ac_cv_have_uintxx_t+set}" = set; then
15187   echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189
15190       cat >conftest.$ac_ext <<_ACEOF
15191 #line $LINENO "configure"
15192 /* confdefs.h.  */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h.  */
15197  #include <sys/types.h>
15198 int
15199 main ()
15200 {
15201  uint8_t a; uint16_t b;
15202            uint32_t c; a = b = c = 1;
15203   ;
15204   return 0;
15205 }
15206 _ACEOF
15207 rm -f conftest.$ac_objext
15208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15209   (eval $ac_compile) 2>&5
15210   ac_status=$?
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); } &&
15213          { ac_try='test -s conftest.$ac_objext'
15214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215   (eval $ac_try) 2>&5
15216   ac_status=$?
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); }; }; then
15219    ac_cv_have_uintxx_t="yes"
15220 else
15221   echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15223
15224  ac_cv_have_uintxx_t="no"
15225
15226 fi
15227 rm -f conftest.$ac_objext conftest.$ac_ext
15228
15229 fi
15230 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15231 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15232    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15233       cat >>confdefs.h <<\_ACEOF
15234 #define HAVE_UINTXX_T 1
15235 _ACEOF
15236
15237    fi
15238 fi
15239
15240 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15241           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15242 then
15243    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15244 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15245    cat >conftest.$ac_ext <<_ACEOF
15246 #line $LINENO "configure"
15247 /* confdefs.h.  */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h.  */
15252  #include <sys/bitypes.h>
15253 int
15254 main ()
15255 {
15256  int64_t a; u_int64_t b;
15257        a = b = 1;
15258   ;
15259   return 0;
15260 }
15261 _ACEOF
15262 rm -f conftest.$ac_objext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15264   (eval $ac_compile) 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); } &&
15268          { ac_try='test -s conftest.$ac_objext'
15269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270   (eval $ac_try) 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); }; }; then
15274    cat >>confdefs.h <<\_ACEOF
15275 #define HAVE_U_INT64_T 1
15276 _ACEOF
15277
15278        cat >>confdefs.h <<\_ACEOF
15279 #define HAVE_INT64_T 1
15280 _ACEOF
15281
15282        echo "$as_me:$LINENO: result: yes" >&5
15283 echo "${ECHO_T}yes" >&6
15284 else
15285   echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15287
15288  echo "$as_me:$LINENO: result: no" >&5
15289 echo "${ECHO_T}no" >&6
15290
15291 fi
15292 rm -f conftest.$ac_objext conftest.$ac_ext
15293 fi
15294
15295 if (test -z "$have_uintxx_t" && \
15296           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15297 then
15298    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15299 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15300    cat >conftest.$ac_ext <<_ACEOF
15301 #line $LINENO "configure"
15302 /* confdefs.h.  */
15303 _ACEOF
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h.  */
15307  #include <sys/bitypes.h>
15308 int
15309 main ()
15310 {
15311  uint8_t a; uint16_t b;
15312           uint32_t c; a = b = c = 1;
15313   ;
15314   return 0;
15315 }
15316 _ACEOF
15317 rm -f conftest.$ac_objext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15319   (eval $ac_compile) 2>&5
15320   ac_status=$?
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); } &&
15323          { ac_try='test -s conftest.$ac_objext'
15324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325   (eval $ac_try) 2>&5
15326   ac_status=$?
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); }; }; then
15329    cat >>confdefs.h <<\_ACEOF
15330 #define HAVE_UINTXX_T 1
15331 _ACEOF
15332
15333        echo "$as_me:$LINENO: result: yes" >&5
15334 echo "${ECHO_T}yes" >&6
15335 else
15336   echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339  echo "$as_me:$LINENO: result: no" >&5
15340 echo "${ECHO_T}no" >&6
15341
15342 fi
15343 rm -f conftest.$ac_objext conftest.$ac_ext
15344
15345 fi
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363 for ac_func in \
15364         fork \
15365         getcwd \
15366         gethostname \
15367         getpid \
15368         gettimeofday \
15369         setpgid \
15370         setpgrp \
15371         setsid \
15372         signal \
15373         strerror \
15374         strncmp \
15375         strncpy \
15376         vfprintf \
15377
15378 do
15379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15380 echo "$as_me:$LINENO: checking for $ac_func" >&5
15381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15382 if eval "test \"\${$as_ac_var+set}\" = set"; then
15383   echo $ECHO_N "(cached) $ECHO_C" >&6
15384 else
15385   cat >conftest.$ac_ext <<_ACEOF
15386 #line $LINENO "configure"
15387 /* confdefs.h.  */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h.  */
15392 /* System header to define __stub macros and hopefully few prototypes,
15393     which can conflict with char $ac_func (); below.
15394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15395     <limits.h> exists even on freestanding compilers.  */
15396 #ifdef __STDC__
15397 # include <limits.h>
15398 #else
15399 # include <assert.h>
15400 #endif
15401 /* Override any gcc2 internal prototype to avoid an error.  */
15402 #ifdef __cplusplus
15403 extern "C"
15404 {
15405 #endif
15406 /* We use char because int might match the return type of a gcc2
15407    builtin and then its argument prototype would still apply.  */
15408 char $ac_func ();
15409 /* The GNU C library defines this for functions which it implements
15410     to always fail with ENOSYS.  Some functions are actually named
15411     something starting with __ and the normal name is an alias.  */
15412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15413 choke me
15414 #else
15415 char (*f) () = $ac_func;
15416 #endif
15417 #ifdef __cplusplus
15418 }
15419 #endif
15420
15421 int
15422 main ()
15423 {
15424 return f != $ac_func;
15425   ;
15426   return 0;
15427 }
15428 _ACEOF
15429 rm -f conftest.$ac_objext conftest$ac_exeext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431   (eval $ac_link) 2>&5
15432   ac_status=$?
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); } &&
15435          { ac_try='test -s conftest$ac_exeext'
15436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437   (eval $ac_try) 2>&5
15438   ac_status=$?
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); }; }; then
15441   eval "$as_ac_var=yes"
15442 else
15443   echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15445
15446 eval "$as_ac_var=no"
15447 fi
15448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15449 fi
15450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15452 if test `eval echo '${'$as_ac_var'}'` = yes; then
15453   cat >>confdefs.h <<_ACEOF
15454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15455 _ACEOF
15456
15457 else
15458   echo 'configure: cannot find needed function.'; exit 1
15459
15460 fi
15461 done
15462
15463
15464
15465 for ac_func in fchdir
15466 do
15467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15468 echo "$as_me:$LINENO: checking for $ac_func" >&5
15469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15470 if eval "test \"\${$as_ac_var+set}\" = set"; then
15471   echo $ECHO_N "(cached) $ECHO_C" >&6
15472 else
15473   cat >conftest.$ac_ext <<_ACEOF
15474 #line $LINENO "configure"
15475 /* confdefs.h.  */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h.  */
15480 /* System header to define __stub macros and hopefully few prototypes,
15481     which can conflict with char $ac_func (); below.
15482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15483     <limits.h> exists even on freestanding compilers.  */
15484 #ifdef __STDC__
15485 # include <limits.h>
15486 #else
15487 # include <assert.h>
15488 #endif
15489 /* Override any gcc2 internal prototype to avoid an error.  */
15490 #ifdef __cplusplus
15491 extern "C"
15492 {
15493 #endif
15494 /* We use char because int might match the return type of a gcc2
15495    builtin and then its argument prototype would still apply.  */
15496 char $ac_func ();
15497 /* The GNU C library defines this for functions which it implements
15498     to always fail with ENOSYS.  Some functions are actually named
15499     something starting with __ and the normal name is an alias.  */
15500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15501 choke me
15502 #else
15503 char (*f) () = $ac_func;
15504 #endif
15505 #ifdef __cplusplus
15506 }
15507 #endif
15508
15509 int
15510 main ()
15511 {
15512 return f != $ac_func;
15513   ;
15514   return 0;
15515 }
15516 _ACEOF
15517 rm -f conftest.$ac_objext conftest$ac_exeext
15518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15519   (eval $ac_link) 2>&5
15520   ac_status=$?
15521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522   (exit $ac_status); } &&
15523          { ac_try='test -s conftest$ac_exeext'
15524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525   (eval $ac_try) 2>&5
15526   ac_status=$?
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); }; }; then
15529   eval "$as_ac_var=yes"
15530 else
15531   echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15533
15534 eval "$as_ac_var=no"
15535 fi
15536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15537 fi
15538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15540 if test `eval echo '${'$as_ac_var'}'` = yes; then
15541   cat >>confdefs.h <<_ACEOF
15542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15543 _ACEOF
15544  cat >>confdefs.h <<\_ACEOF
15545 #define HAVE_FCHDIR 1
15546 _ACEOF
15547
15548 fi
15549 done
15550
15551
15552 for ac_func in strtoll
15553 do
15554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15555 echo "$as_me:$LINENO: checking for $ac_func" >&5
15556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15557 if eval "test \"\${$as_ac_var+set}\" = set"; then
15558   echo $ECHO_N "(cached) $ECHO_C" >&6
15559 else
15560   cat >conftest.$ac_ext <<_ACEOF
15561 #line $LINENO "configure"
15562 /* confdefs.h.  */
15563 _ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h.  */
15567 /* System header to define __stub macros and hopefully few prototypes,
15568     which can conflict with char $ac_func (); below.
15569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15570     <limits.h> exists even on freestanding compilers.  */
15571 #ifdef __STDC__
15572 # include <limits.h>
15573 #else
15574 # include <assert.h>
15575 #endif
15576 /* Override any gcc2 internal prototype to avoid an error.  */
15577 #ifdef __cplusplus
15578 extern "C"
15579 {
15580 #endif
15581 /* We use char because int might match the return type of a gcc2
15582    builtin and then its argument prototype would still apply.  */
15583 char $ac_func ();
15584 /* The GNU C library defines this for functions which it implements
15585     to always fail with ENOSYS.  Some functions are actually named
15586     something starting with __ and the normal name is an alias.  */
15587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15588 choke me
15589 #else
15590 char (*f) () = $ac_func;
15591 #endif
15592 #ifdef __cplusplus
15593 }
15594 #endif
15595
15596 int
15597 main ()
15598 {
15599 return f != $ac_func;
15600   ;
15601   return 0;
15602 }
15603 _ACEOF
15604 rm -f conftest.$ac_objext conftest$ac_exeext
15605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15606   (eval $ac_link) 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); } &&
15610          { ac_try='test -s conftest$ac_exeext'
15611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612   (eval $ac_try) 2>&5
15613   ac_status=$?
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   (exit $ac_status); }; }; then
15616   eval "$as_ac_var=yes"
15617 else
15618   echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15620
15621 eval "$as_ac_var=no"
15622 fi
15623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15624 fi
15625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15627 if test `eval echo '${'$as_ac_var'}'` = yes; then
15628   cat >>confdefs.h <<_ACEOF
15629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15630 _ACEOF
15631  cat >>confdefs.h <<\_ACEOF
15632 #define HAVE_STRTOLL 1
15633 _ACEOF
15634
15635 fi
15636 done
15637
15638
15639
15640 for ac_func in chflags
15641 do
15642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15643 echo "$as_me:$LINENO: checking for $ac_func" >&5
15644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15645 if eval "test \"\${$as_ac_var+set}\" = set"; then
15646   echo $ECHO_N "(cached) $ECHO_C" >&6
15647 else
15648   cat >conftest.$ac_ext <<_ACEOF
15649 #line $LINENO "configure"
15650 /* confdefs.h.  */
15651 _ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h.  */
15655 /* System header to define __stub macros and hopefully few prototypes,
15656     which can conflict with char $ac_func (); below.
15657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15658     <limits.h> exists even on freestanding compilers.  */
15659 #ifdef __STDC__
15660 # include <limits.h>
15661 #else
15662 # include <assert.h>
15663 #endif
15664 /* Override any gcc2 internal prototype to avoid an error.  */
15665 #ifdef __cplusplus
15666 extern "C"
15667 {
15668 #endif
15669 /* We use char because int might match the return type of a gcc2
15670    builtin and then its argument prototype would still apply.  */
15671 char $ac_func ();
15672 /* The GNU C library defines this for functions which it implements
15673     to always fail with ENOSYS.  Some functions are actually named
15674     something starting with __ and the normal name is an alias.  */
15675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15676 choke me
15677 #else
15678 char (*f) () = $ac_func;
15679 #endif
15680 #ifdef __cplusplus
15681 }
15682 #endif
15683
15684 int
15685 main ()
15686 {
15687 return f != $ac_func;
15688   ;
15689   return 0;
15690 }
15691 _ACEOF
15692 rm -f conftest.$ac_objext conftest$ac_exeext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15694   (eval $ac_link) 2>&5
15695   ac_status=$?
15696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697   (exit $ac_status); } &&
15698          { ac_try='test -s conftest$ac_exeext'
15699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700   (eval $ac_try) 2>&5
15701   ac_status=$?
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); }; }; then
15704   eval "$as_ac_var=yes"
15705 else
15706   echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15708
15709 eval "$as_ac_var=no"
15710 fi
15711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15712 fi
15713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15715 if test `eval echo '${'$as_ac_var'}'` = yes; then
15716   cat >>confdefs.h <<_ACEOF
15717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15718 _ACEOF
15719
15720 fi
15721 done
15722
15723
15724
15725
15726
15727
15728 for ac_func in snprintf vsnprintf gethostid getdomainname
15729 do
15730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15731 echo "$as_me:$LINENO: checking for $ac_func" >&5
15732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15733 if eval "test \"\${$as_ac_var+set}\" = set"; then
15734   echo $ECHO_N "(cached) $ECHO_C" >&6
15735 else
15736   cat >conftest.$ac_ext <<_ACEOF
15737 #line $LINENO "configure"
15738 /* confdefs.h.  */
15739 _ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h.  */
15743 /* System header to define __stub macros and hopefully few prototypes,
15744     which can conflict with char $ac_func (); below.
15745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15746     <limits.h> exists even on freestanding compilers.  */
15747 #ifdef __STDC__
15748 # include <limits.h>
15749 #else
15750 # include <assert.h>
15751 #endif
15752 /* Override any gcc2 internal prototype to avoid an error.  */
15753 #ifdef __cplusplus
15754 extern "C"
15755 {
15756 #endif
15757 /* We use char because int might match the return type of a gcc2
15758    builtin and then its argument prototype would still apply.  */
15759 char $ac_func ();
15760 /* The GNU C library defines this for functions which it implements
15761     to always fail with ENOSYS.  Some functions are actually named
15762     something starting with __ and the normal name is an alias.  */
15763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15764 choke me
15765 #else
15766 char (*f) () = $ac_func;
15767 #endif
15768 #ifdef __cplusplus
15769 }
15770 #endif
15771
15772 int
15773 main ()
15774 {
15775 return f != $ac_func;
15776   ;
15777   return 0;
15778 }
15779 _ACEOF
15780 rm -f conftest.$ac_objext conftest$ac_exeext
15781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15782   (eval $ac_link) 2>&5
15783   ac_status=$?
15784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785   (exit $ac_status); } &&
15786          { ac_try='test -s conftest$ac_exeext'
15787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788   (eval $ac_try) 2>&5
15789   ac_status=$?
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); }; }; then
15792   eval "$as_ac_var=yes"
15793 else
15794   echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15796
15797 eval "$as_ac_var=no"
15798 fi
15799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15800 fi
15801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15803 if test `eval echo '${'$as_ac_var'}'` = yes; then
15804   cat >>confdefs.h <<_ACEOF
15805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15806 _ACEOF
15807
15808 fi
15809 done
15810
15811
15812
15813
15814
15815
15816 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15817 do
15818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15819 echo "$as_me:$LINENO: checking for $ac_func" >&5
15820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15821 if eval "test \"\${$as_ac_var+set}\" = set"; then
15822   echo $ECHO_N "(cached) $ECHO_C" >&6
15823 else
15824   cat >conftest.$ac_ext <<_ACEOF
15825 #line $LINENO "configure"
15826 /* confdefs.h.  */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h.  */
15831 /* System header to define __stub macros and hopefully few prototypes,
15832     which can conflict with char $ac_func (); below.
15833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15834     <limits.h> exists even on freestanding compilers.  */
15835 #ifdef __STDC__
15836 # include <limits.h>
15837 #else
15838 # include <assert.h>
15839 #endif
15840 /* Override any gcc2 internal prototype to avoid an error.  */
15841 #ifdef __cplusplus
15842 extern "C"
15843 {
15844 #endif
15845 /* We use char because int might match the return type of a gcc2
15846    builtin and then its argument prototype would still apply.  */
15847 char $ac_func ();
15848 /* The GNU C library defines this for functions which it implements
15849     to always fail with ENOSYS.  Some functions are actually named
15850     something starting with __ and the normal name is an alias.  */
15851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15852 choke me
15853 #else
15854 char (*f) () = $ac_func;
15855 #endif
15856 #ifdef __cplusplus
15857 }
15858 #endif
15859
15860 int
15861 main ()
15862 {
15863 return f != $ac_func;
15864   ;
15865   return 0;
15866 }
15867 _ACEOF
15868 rm -f conftest.$ac_objext conftest$ac_exeext
15869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15870   (eval $ac_link) 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); } &&
15874          { ac_try='test -s conftest$ac_exeext'
15875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876   (eval $ac_try) 2>&5
15877   ac_status=$?
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); }; }; then
15880   eval "$as_ac_var=yes"
15881 else
15882   echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15884
15885 eval "$as_ac_var=no"
15886 fi
15887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15888 fi
15889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15891 if test `eval echo '${'$as_ac_var'}'` = yes; then
15892   cat >>confdefs.h <<_ACEOF
15893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15894 _ACEOF
15895
15896 fi
15897 done
15898
15899
15900 # If resolver functions are not in libc check for -lnsl or -lresolv.
15901 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15902 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15903 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15904   echo $ECHO_N "(cached) $ECHO_C" >&6
15905 else
15906   cat >conftest.$ac_ext <<_ACEOF
15907 #line $LINENO "configure"
15908 /* confdefs.h.  */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h.  */
15913 /* System header to define __stub macros and hopefully few prototypes,
15914     which can conflict with char gethostbyname_r (); below.
15915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15916     <limits.h> exists even on freestanding compilers.  */
15917 #ifdef __STDC__
15918 # include <limits.h>
15919 #else
15920 # include <assert.h>
15921 #endif
15922 /* Override any gcc2 internal prototype to avoid an error.  */
15923 #ifdef __cplusplus
15924 extern "C"
15925 {
15926 #endif
15927 /* We use char because int might match the return type of a gcc2
15928    builtin and then its argument prototype would still apply.  */
15929 char gethostbyname_r ();
15930 /* The GNU C library defines this for functions which it implements
15931     to always fail with ENOSYS.  Some functions are actually named
15932     something starting with __ and the normal name is an alias.  */
15933 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15934 choke me
15935 #else
15936 char (*f) () = gethostbyname_r;
15937 #endif
15938 #ifdef __cplusplus
15939 }
15940 #endif
15941
15942 int
15943 main ()
15944 {
15945 return f != gethostbyname_r;
15946   ;
15947   return 0;
15948 }
15949 _ACEOF
15950 rm -f conftest.$ac_objext conftest$ac_exeext
15951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15952   (eval $ac_link) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); } &&
15956          { ac_try='test -s conftest$ac_exeext'
15957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958   (eval $ac_try) 2>&5
15959   ac_status=$?
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); }; }; then
15962   ac_cv_func_gethostbyname_r=yes
15963 else
15964   echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15966
15967 ac_cv_func_gethostbyname_r=no
15968 fi
15969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15970 fi
15971 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15972 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15973 if test $ac_cv_func_gethostbyname_r = yes; then
15974   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15975 echo "${ECHO_T}using libc's resolver" >&6
15976 else
15977
15978 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15979 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15980 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15981   echo $ECHO_N "(cached) $ECHO_C" >&6
15982 else
15983   ac_check_lib_save_LIBS=$LIBS
15984 LIBS="-lnsl  $LIBS"
15985 cat >conftest.$ac_ext <<_ACEOF
15986 #line $LINENO "configure"
15987 /* confdefs.h.  */
15988 _ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h.  */
15992
15993 /* Override any gcc2 internal prototype to avoid an error.  */
15994 #ifdef __cplusplus
15995 extern "C"
15996 #endif
15997 /* We use char because int might match the return type of a gcc2
15998    builtin and then its argument prototype would still apply.  */
15999 char gethostbyname_r ();
16000 int
16001 main ()
16002 {
16003 gethostbyname_r ();
16004   ;
16005   return 0;
16006 }
16007 _ACEOF
16008 rm -f conftest.$ac_objext conftest$ac_exeext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16010   (eval $ac_link) 2>&5
16011   ac_status=$?
16012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); } &&
16014          { ac_try='test -s conftest$ac_exeext'
16015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016   (eval $ac_try) 2>&5
16017   ac_status=$?
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); }; }; then
16020   ac_cv_lib_nsl_gethostbyname_r=yes
16021 else
16022   echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16024
16025 ac_cv_lib_nsl_gethostbyname_r=no
16026 fi
16027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16028 LIBS=$ac_check_lib_save_LIBS
16029 fi
16030 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16031 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16032 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16033   cat >>confdefs.h <<_ACEOF
16034 #define HAVE_LIBNSL 1
16035 _ACEOF
16036
16037   LIBS="-lnsl $LIBS"
16038
16039 fi
16040
16041
16042 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16043 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16044 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16045   echo $ECHO_N "(cached) $ECHO_C" >&6
16046 else
16047   ac_check_lib_save_LIBS=$LIBS
16048 LIBS="-lresolv  $LIBS"
16049 cat >conftest.$ac_ext <<_ACEOF
16050 #line $LINENO "configure"
16051 /* confdefs.h.  */
16052 _ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h.  */
16056
16057 /* Override any gcc2 internal prototype to avoid an error.  */
16058 #ifdef __cplusplus
16059 extern "C"
16060 #endif
16061 /* We use char because int might match the return type of a gcc2
16062    builtin and then its argument prototype would still apply.  */
16063 char gethostbyname_r ();
16064 int
16065 main ()
16066 {
16067 gethostbyname_r ();
16068   ;
16069   return 0;
16070 }
16071 _ACEOF
16072 rm -f conftest.$ac_objext conftest$ac_exeext
16073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16074   (eval $ac_link) 2>&5
16075   ac_status=$?
16076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077   (exit $ac_status); } &&
16078          { ac_try='test -s conftest$ac_exeext'
16079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080   (eval $ac_try) 2>&5
16081   ac_status=$?
16082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083   (exit $ac_status); }; }; then
16084   ac_cv_lib_resolv_gethostbyname_r=yes
16085 else
16086   echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16088
16089 ac_cv_lib_resolv_gethostbyname_r=no
16090 fi
16091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16092 LIBS=$ac_check_lib_save_LIBS
16093 fi
16094 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16095 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16096 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16097   cat >>confdefs.h <<_ACEOF
16098 #define HAVE_LIBRESOLV 1
16099 _ACEOF
16100
16101   LIBS="-lresolv $LIBS"
16102
16103 fi
16104
16105 fi
16106
16107
16108
16109 # Find where sockets are (especially for Solaris)
16110 echo "$as_me:$LINENO: checking for socket" >&5
16111 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16112 if test "${ac_cv_func_socket+set}" = set; then
16113   echo $ECHO_N "(cached) $ECHO_C" >&6
16114 else
16115   cat >conftest.$ac_ext <<_ACEOF
16116 #line $LINENO "configure"
16117 /* confdefs.h.  */
16118 _ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h.  */
16122 /* System header to define __stub macros and hopefully few prototypes,
16123     which can conflict with char socket (); below.
16124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16125     <limits.h> exists even on freestanding compilers.  */
16126 #ifdef __STDC__
16127 # include <limits.h>
16128 #else
16129 # include <assert.h>
16130 #endif
16131 /* Override any gcc2 internal prototype to avoid an error.  */
16132 #ifdef __cplusplus
16133 extern "C"
16134 {
16135 #endif
16136 /* We use char because int might match the return type of a gcc2
16137    builtin and then its argument prototype would still apply.  */
16138 char socket ();
16139 /* The GNU C library defines this for functions which it implements
16140     to always fail with ENOSYS.  Some functions are actually named
16141     something starting with __ and the normal name is an alias.  */
16142 #if defined (__stub_socket) || defined (__stub___socket)
16143 choke me
16144 #else
16145 char (*f) () = socket;
16146 #endif
16147 #ifdef __cplusplus
16148 }
16149 #endif
16150
16151 int
16152 main ()
16153 {
16154 return f != socket;
16155   ;
16156   return 0;
16157 }
16158 _ACEOF
16159 rm -f conftest.$ac_objext conftest$ac_exeext
16160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16161   (eval $ac_link) 2>&5
16162   ac_status=$?
16163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164   (exit $ac_status); } &&
16165          { ac_try='test -s conftest$ac_exeext'
16166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167   (eval $ac_try) 2>&5
16168   ac_status=$?
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); }; }; then
16171   ac_cv_func_socket=yes
16172 else
16173   echo "$as_me: failed program was:" >&5
16174 sed 's/^/| /' conftest.$ac_ext >&5
16175
16176 ac_cv_func_socket=no
16177 fi
16178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16179 fi
16180 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16181 echo "${ECHO_T}$ac_cv_func_socket" >&6
16182 if test $ac_cv_func_socket = yes; then
16183   echo "$as_me:$LINENO: result: using libc's socket" >&5
16184 echo "${ECHO_T}using libc's socket" >&6
16185 else
16186
16187 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16188 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16189 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16190   echo $ECHO_N "(cached) $ECHO_C" >&6
16191 else
16192   ac_check_lib_save_LIBS=$LIBS
16193 LIBS="-lxnet  $LIBS"
16194 cat >conftest.$ac_ext <<_ACEOF
16195 #line $LINENO "configure"
16196 /* confdefs.h.  */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h.  */
16201
16202 /* Override any gcc2 internal prototype to avoid an error.  */
16203 #ifdef __cplusplus
16204 extern "C"
16205 #endif
16206 /* We use char because int might match the return type of a gcc2
16207    builtin and then its argument prototype would still apply.  */
16208 char socket ();
16209 int
16210 main ()
16211 {
16212 socket ();
16213   ;
16214   return 0;
16215 }
16216 _ACEOF
16217 rm -f conftest.$ac_objext conftest$ac_exeext
16218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16219   (eval $ac_link) 2>&5
16220   ac_status=$?
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); } &&
16223          { ac_try='test -s conftest$ac_exeext'
16224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225   (eval $ac_try) 2>&5
16226   ac_status=$?
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); }; }; then
16229   ac_cv_lib_xnet_socket=yes
16230 else
16231   echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16233
16234 ac_cv_lib_xnet_socket=no
16235 fi
16236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16237 LIBS=$ac_check_lib_save_LIBS
16238 fi
16239 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16240 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16241 if test $ac_cv_lib_xnet_socket = yes; then
16242   cat >>confdefs.h <<_ACEOF
16243 #define HAVE_LIBXNET 1
16244 _ACEOF
16245
16246   LIBS="-lxnet $LIBS"
16247
16248 fi
16249
16250
16251 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16252 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16253 if test "${ac_cv_lib_socket_socket+set}" = set; then
16254   echo $ECHO_N "(cached) $ECHO_C" >&6
16255 else
16256   ac_check_lib_save_LIBS=$LIBS
16257 LIBS="-lsocket  $LIBS"
16258 cat >conftest.$ac_ext <<_ACEOF
16259 #line $LINENO "configure"
16260 /* confdefs.h.  */
16261 _ACEOF
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h.  */
16265
16266 /* Override any gcc2 internal prototype to avoid an error.  */
16267 #ifdef __cplusplus
16268 extern "C"
16269 #endif
16270 /* We use char because int might match the return type of a gcc2
16271    builtin and then its argument prototype would still apply.  */
16272 char socket ();
16273 int
16274 main ()
16275 {
16276 socket ();
16277   ;
16278   return 0;
16279 }
16280 _ACEOF
16281 rm -f conftest.$ac_objext conftest$ac_exeext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16283   (eval $ac_link) 2>&5
16284   ac_status=$?
16285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286   (exit $ac_status); } &&
16287          { ac_try='test -s conftest$ac_exeext'
16288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289   (eval $ac_try) 2>&5
16290   ac_status=$?
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); }; }; then
16293   ac_cv_lib_socket_socket=yes
16294 else
16295   echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16297
16298 ac_cv_lib_socket_socket=no
16299 fi
16300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16301 LIBS=$ac_check_lib_save_LIBS
16302 fi
16303 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16304 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16305 if test $ac_cv_lib_socket_socket = yes; then
16306   cat >>confdefs.h <<_ACEOF
16307 #define HAVE_LIBSOCKET 1
16308 _ACEOF
16309
16310   LIBS="-lsocket $LIBS"
16311
16312 fi
16313
16314
16315 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16316 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16317 if test "${ac_cv_lib_inet_socket+set}" = set; then
16318   echo $ECHO_N "(cached) $ECHO_C" >&6
16319 else
16320   ac_check_lib_save_LIBS=$LIBS
16321 LIBS="-linet  $LIBS"
16322 cat >conftest.$ac_ext <<_ACEOF
16323 #line $LINENO "configure"
16324 /* confdefs.h.  */
16325 _ACEOF
16326 cat confdefs.h >>conftest.$ac_ext
16327 cat >>conftest.$ac_ext <<_ACEOF
16328 /* end confdefs.h.  */
16329
16330 /* Override any gcc2 internal prototype to avoid an error.  */
16331 #ifdef __cplusplus
16332 extern "C"
16333 #endif
16334 /* We use char because int might match the return type of a gcc2
16335    builtin and then its argument prototype would still apply.  */
16336 char socket ();
16337 int
16338 main ()
16339 {
16340 socket ();
16341   ;
16342   return 0;
16343 }
16344 _ACEOF
16345 rm -f conftest.$ac_objext conftest$ac_exeext
16346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16347   (eval $ac_link) 2>&5
16348   ac_status=$?
16349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   (exit $ac_status); } &&
16351          { ac_try='test -s conftest$ac_exeext'
16352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353   (eval $ac_try) 2>&5
16354   ac_status=$?
16355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356   (exit $ac_status); }; }; then
16357   ac_cv_lib_inet_socket=yes
16358 else
16359   echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16361
16362 ac_cv_lib_inet_socket=no
16363 fi
16364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16365 LIBS=$ac_check_lib_save_LIBS
16366 fi
16367 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16368 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16369 if test $ac_cv_lib_inet_socket = yes; then
16370   cat >>confdefs.h <<_ACEOF
16371 #define HAVE_LIBINET 1
16372 _ACEOF
16373
16374   LIBS="-linet $LIBS"
16375
16376 fi
16377
16378 fi
16379
16380
16381
16382 for ac_func in inet_pton
16383 do
16384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16385 echo "$as_me:$LINENO: checking for $ac_func" >&5
16386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16387 if eval "test \"\${$as_ac_var+set}\" = set"; then
16388   echo $ECHO_N "(cached) $ECHO_C" >&6
16389 else
16390   cat >conftest.$ac_ext <<_ACEOF
16391 #line $LINENO "configure"
16392 /* confdefs.h.  */
16393 _ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h.  */
16397 /* System header to define __stub macros and hopefully few prototypes,
16398     which can conflict with char $ac_func (); below.
16399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16400     <limits.h> exists even on freestanding compilers.  */
16401 #ifdef __STDC__
16402 # include <limits.h>
16403 #else
16404 # include <assert.h>
16405 #endif
16406 /* Override any gcc2 internal prototype to avoid an error.  */
16407 #ifdef __cplusplus
16408 extern "C"
16409 {
16410 #endif
16411 /* We use char because int might match the return type of a gcc2
16412    builtin and then its argument prototype would still apply.  */
16413 char $ac_func ();
16414 /* The GNU C library defines this for functions which it implements
16415     to always fail with ENOSYS.  Some functions are actually named
16416     something starting with __ and the normal name is an alias.  */
16417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16418 choke me
16419 #else
16420 char (*f) () = $ac_func;
16421 #endif
16422 #ifdef __cplusplus
16423 }
16424 #endif
16425
16426 int
16427 main ()
16428 {
16429 return f != $ac_func;
16430   ;
16431   return 0;
16432 }
16433 _ACEOF
16434 rm -f conftest.$ac_objext conftest$ac_exeext
16435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16436   (eval $ac_link) 2>&5
16437   ac_status=$?
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); } &&
16440          { ac_try='test -s conftest$ac_exeext'
16441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442   (eval $ac_try) 2>&5
16443   ac_status=$?
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); }; }; then
16446   eval "$as_ac_var=yes"
16447 else
16448   echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451 eval "$as_ac_var=no"
16452 fi
16453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16454 fi
16455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16457 if test `eval echo '${'$as_ac_var'}'` = yes; then
16458   cat >>confdefs.h <<_ACEOF
16459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16460 _ACEOF
16461  cat >>confdefs.h <<\_ACEOF
16462 #define HAVE_INET_PTON 1
16463 _ACEOF
16464
16465 fi
16466 done
16467
16468
16469 for ac_func in inet_ntop
16470 do
16471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16472 echo "$as_me:$LINENO: checking for $ac_func" >&5
16473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16474 if eval "test \"\${$as_ac_var+set}\" = set"; then
16475   echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477   cat >conftest.$ac_ext <<_ACEOF
16478 #line $LINENO "configure"
16479 /* confdefs.h.  */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h.  */
16484 /* System header to define __stub macros and hopefully few prototypes,
16485     which can conflict with char $ac_func (); below.
16486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16487     <limits.h> exists even on freestanding compilers.  */
16488 #ifdef __STDC__
16489 # include <limits.h>
16490 #else
16491 # include <assert.h>
16492 #endif
16493 /* Override any gcc2 internal prototype to avoid an error.  */
16494 #ifdef __cplusplus
16495 extern "C"
16496 {
16497 #endif
16498 /* We use char because int might match the return type of a gcc2
16499    builtin and then its argument prototype would still apply.  */
16500 char $ac_func ();
16501 /* The GNU C library defines this for functions which it implements
16502     to always fail with ENOSYS.  Some functions are actually named
16503     something starting with __ and the normal name is an alias.  */
16504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16505 choke me
16506 #else
16507 char (*f) () = $ac_func;
16508 #endif
16509 #ifdef __cplusplus
16510 }
16511 #endif
16512
16513 int
16514 main ()
16515 {
16516 return f != $ac_func;
16517   ;
16518   return 0;
16519 }
16520 _ACEOF
16521 rm -f conftest.$ac_objext conftest$ac_exeext
16522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16523   (eval $ac_link) 2>&5
16524   ac_status=$?
16525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526   (exit $ac_status); } &&
16527          { ac_try='test -s conftest$ac_exeext'
16528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529   (eval $ac_try) 2>&5
16530   ac_status=$?
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); }; }; then
16533   eval "$as_ac_var=yes"
16534 else
16535   echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16537
16538 eval "$as_ac_var=no"
16539 fi
16540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16541 fi
16542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16544 if test `eval echo '${'$as_ac_var'}'` = yes; then
16545   cat >>confdefs.h <<_ACEOF
16546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16547 _ACEOF
16548  cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_INET_NTOP 1
16550 _ACEOF
16551
16552 fi
16553 done
16554
16555
16556 for ac_func in gethostbyname2
16557 do
16558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16559 echo "$as_me:$LINENO: checking for $ac_func" >&5
16560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16561 if eval "test \"\${$as_ac_var+set}\" = set"; then
16562   echo $ECHO_N "(cached) $ECHO_C" >&6
16563 else
16564   cat >conftest.$ac_ext <<_ACEOF
16565 #line $LINENO "configure"
16566 /* confdefs.h.  */
16567 _ACEOF
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h.  */
16571 /* System header to define __stub macros and hopefully few prototypes,
16572     which can conflict with char $ac_func (); below.
16573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16574     <limits.h> exists even on freestanding compilers.  */
16575 #ifdef __STDC__
16576 # include <limits.h>
16577 #else
16578 # include <assert.h>
16579 #endif
16580 /* Override any gcc2 internal prototype to avoid an error.  */
16581 #ifdef __cplusplus
16582 extern "C"
16583 {
16584 #endif
16585 /* We use char because int might match the return type of a gcc2
16586    builtin and then its argument prototype would still apply.  */
16587 char $ac_func ();
16588 /* The GNU C library defines this for functions which it implements
16589     to always fail with ENOSYS.  Some functions are actually named
16590     something starting with __ and the normal name is an alias.  */
16591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16592 choke me
16593 #else
16594 char (*f) () = $ac_func;
16595 #endif
16596 #ifdef __cplusplus
16597 }
16598 #endif
16599
16600 int
16601 main ()
16602 {
16603 return f != $ac_func;
16604   ;
16605   return 0;
16606 }
16607 _ACEOF
16608 rm -f conftest.$ac_objext conftest$ac_exeext
16609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16610   (eval $ac_link) 2>&5
16611   ac_status=$?
16612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613   (exit $ac_status); } &&
16614          { ac_try='test -s conftest$ac_exeext'
16615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616   (eval $ac_try) 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); }; }; then
16620   eval "$as_ac_var=yes"
16621 else
16622   echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16624
16625 eval "$as_ac_var=no"
16626 fi
16627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16628 fi
16629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16631 if test `eval echo '${'$as_ac_var'}'` = yes; then
16632   cat >>confdefs.h <<_ACEOF
16633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16634 _ACEOF
16635  cat >>confdefs.h <<\_ACEOF
16636 #define HAVE_GETHOSTBYNAME2 1
16637 _ACEOF
16638
16639 fi
16640 done
16641
16642
16643 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16644 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16645 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16646   echo $ECHO_N "(cached) $ECHO_C" >&6
16647 else
16648   cat >conftest.$ac_ext <<_ACEOF
16649 #line $LINENO "configure"
16650 /* confdefs.h.  */
16651 _ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h.  */
16655 #include <sys/socket.h>
16656 int
16657 main ()
16658 {
16659 struct sockaddr s; s.sa_len;
16660   ;
16661   return 0;
16662 }
16663 _ACEOF
16664 rm -f conftest.$ac_objext
16665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16666   (eval $ac_compile) 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); } &&
16670          { ac_try='test -s conftest.$ac_objext'
16671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672   (eval $ac_try) 2>&5
16673   ac_status=$?
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); }; }; then
16676   ac_cv_struct_sockaddr_sa_len=yes
16677 else
16678   echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681 ac_cv_struct_sockaddr_sa_len=no
16682 fi
16683 rm -f conftest.$ac_objext conftest.$ac_ext
16684 fi
16685 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16686 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16687
16688  if test $ac_cv_struct_sockaddr_sa_len = yes; then
16689
16690 cat >>confdefs.h <<\_ACEOF
16691 #define HAVE_SA_LEN 1
16692 _ACEOF
16693
16694  fi
16695
16696
16697 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16698 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16699 if test "${ac_cv_ipv6_support+set}" = set; then
16700   echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702   cat >conftest.$ac_ext <<_ACEOF
16703 #line $LINENO "configure"
16704 /* confdefs.h.  */
16705 _ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h.  */
16709  #include <sys/types.h>
16710 #include <sys/socket.h>
16711 #include <netinet/in.h>
16712 int
16713 main ()
16714 {
16715 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16716  0;
16717   ;
16718   return 0;
16719 }
16720 _ACEOF
16721 rm -f conftest.$ac_objext conftest$ac_exeext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16723   (eval $ac_link) 2>&5
16724   ac_status=$?
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   (exit $ac_status); } &&
16727          { ac_try='test -s conftest$ac_exeext'
16728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729   (eval $ac_try) 2>&5
16730   ac_status=$?
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); }; }; then
16733   ac_cv_ipv6_support=yes
16734 else
16735   echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16737
16738 ac_cv_ipv6_support=no
16739 fi
16740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16741 fi
16742 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16743 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16744
16745 if test "$ac_cv_ipv6_support" = yes; then
16746
16747 cat >>confdefs.h <<\_ACEOF
16748 #define HAVE_IPV6 1
16749 _ACEOF
16750
16751 fi
16752
16753
16754
16755
16756 for ac_func in strftime
16757 do
16758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16759 echo "$as_me:$LINENO: checking for $ac_func" >&5
16760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16761 if eval "test \"\${$as_ac_var+set}\" = set"; then
16762   echo $ECHO_N "(cached) $ECHO_C" >&6
16763 else
16764   cat >conftest.$ac_ext <<_ACEOF
16765 #line $LINENO "configure"
16766 /* confdefs.h.  */
16767 _ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h.  */
16771 /* System header to define __stub macros and hopefully few prototypes,
16772     which can conflict with char $ac_func (); below.
16773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16774     <limits.h> exists even on freestanding compilers.  */
16775 #ifdef __STDC__
16776 # include <limits.h>
16777 #else
16778 # include <assert.h>
16779 #endif
16780 /* Override any gcc2 internal prototype to avoid an error.  */
16781 #ifdef __cplusplus
16782 extern "C"
16783 {
16784 #endif
16785 /* We use char because int might match the return type of a gcc2
16786    builtin and then its argument prototype would still apply.  */
16787 char $ac_func ();
16788 /* The GNU C library defines this for functions which it implements
16789     to always fail with ENOSYS.  Some functions are actually named
16790     something starting with __ and the normal name is an alias.  */
16791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16792 choke me
16793 #else
16794 char (*f) () = $ac_func;
16795 #endif
16796 #ifdef __cplusplus
16797 }
16798 #endif
16799
16800 int
16801 main ()
16802 {
16803 return f != $ac_func;
16804   ;
16805   return 0;
16806 }
16807 _ACEOF
16808 rm -f conftest.$ac_objext conftest$ac_exeext
16809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16810   (eval $ac_link) 2>&5
16811   ac_status=$?
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); } &&
16814          { ac_try='test -s conftest$ac_exeext'
16815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816   (eval $ac_try) 2>&5
16817   ac_status=$?
16818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819   (exit $ac_status); }; }; then
16820   eval "$as_ac_var=yes"
16821 else
16822   echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16824
16825 eval "$as_ac_var=no"
16826 fi
16827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16828 fi
16829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16831 if test `eval echo '${'$as_ac_var'}'` = yes; then
16832   cat >>confdefs.h <<_ACEOF
16833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16834 _ACEOF
16835
16836 else
16837   # strftime is in -lintl on SCO UNIX.
16838 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16839 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16840 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16841   echo $ECHO_N "(cached) $ECHO_C" >&6
16842 else
16843   ac_check_lib_save_LIBS=$LIBS
16844 LIBS="-lintl  $LIBS"
16845 cat >conftest.$ac_ext <<_ACEOF
16846 #line $LINENO "configure"
16847 /* confdefs.h.  */
16848 _ACEOF
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h.  */
16852
16853 /* Override any gcc2 internal prototype to avoid an error.  */
16854 #ifdef __cplusplus
16855 extern "C"
16856 #endif
16857 /* We use char because int might match the return type of a gcc2
16858    builtin and then its argument prototype would still apply.  */
16859 char strftime ();
16860 int
16861 main ()
16862 {
16863 strftime ();
16864   ;
16865   return 0;
16866 }
16867 _ACEOF
16868 rm -f conftest.$ac_objext conftest$ac_exeext
16869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16870   (eval $ac_link) 2>&5
16871   ac_status=$?
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); } &&
16874          { ac_try='test -s conftest$ac_exeext'
16875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876   (eval $ac_try) 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); }; }; then
16880   ac_cv_lib_intl_strftime=yes
16881 else
16882   echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.$ac_ext >&5
16884
16885 ac_cv_lib_intl_strftime=no
16886 fi
16887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16888 LIBS=$ac_check_lib_save_LIBS
16889 fi
16890 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16891 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16892 if test $ac_cv_lib_intl_strftime = yes; then
16893   cat >>confdefs.h <<\_ACEOF
16894 #define HAVE_STRFTIME 1
16895 _ACEOF
16896
16897 LIBS="-lintl $LIBS"
16898 fi
16899
16900 fi
16901 done
16902
16903
16904 for ac_func in vprintf
16905 do
16906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16907 echo "$as_me:$LINENO: checking for $ac_func" >&5
16908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16909 if eval "test \"\${$as_ac_var+set}\" = set"; then
16910   echo $ECHO_N "(cached) $ECHO_C" >&6
16911 else
16912   cat >conftest.$ac_ext <<_ACEOF
16913 #line $LINENO "configure"
16914 /* confdefs.h.  */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h.  */
16919 /* System header to define __stub macros and hopefully few prototypes,
16920     which can conflict with char $ac_func (); below.
16921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16922     <limits.h> exists even on freestanding compilers.  */
16923 #ifdef __STDC__
16924 # include <limits.h>
16925 #else
16926 # include <assert.h>
16927 #endif
16928 /* Override any gcc2 internal prototype to avoid an error.  */
16929 #ifdef __cplusplus
16930 extern "C"
16931 {
16932 #endif
16933 /* We use char because int might match the return type of a gcc2
16934    builtin and then its argument prototype would still apply.  */
16935 char $ac_func ();
16936 /* The GNU C library defines this for functions which it implements
16937     to always fail with ENOSYS.  Some functions are actually named
16938     something starting with __ and the normal name is an alias.  */
16939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16940 choke me
16941 #else
16942 char (*f) () = $ac_func;
16943 #endif
16944 #ifdef __cplusplus
16945 }
16946 #endif
16947
16948 int
16949 main ()
16950 {
16951 return f != $ac_func;
16952   ;
16953   return 0;
16954 }
16955 _ACEOF
16956 rm -f conftest.$ac_objext conftest$ac_exeext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16958   (eval $ac_link) 2>&5
16959   ac_status=$?
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); } &&
16962          { ac_try='test -s conftest$ac_exeext'
16963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964   (eval $ac_try) 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); }; }; then
16968   eval "$as_ac_var=yes"
16969 else
16970   echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16972
16973 eval "$as_ac_var=no"
16974 fi
16975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16976 fi
16977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16979 if test `eval echo '${'$as_ac_var'}'` = yes; then
16980   cat >>confdefs.h <<_ACEOF
16981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16982 _ACEOF
16983
16984 echo "$as_me:$LINENO: checking for _doprnt" >&5
16985 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16986 if test "${ac_cv_func__doprnt+set}" = set; then
16987   echo $ECHO_N "(cached) $ECHO_C" >&6
16988 else
16989   cat >conftest.$ac_ext <<_ACEOF
16990 #line $LINENO "configure"
16991 /* confdefs.h.  */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h.  */
16996 /* System header to define __stub macros and hopefully few prototypes,
16997     which can conflict with char _doprnt (); below.
16998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16999     <limits.h> exists even on freestanding compilers.  */
17000 #ifdef __STDC__
17001 # include <limits.h>
17002 #else
17003 # include <assert.h>
17004 #endif
17005 /* Override any gcc2 internal prototype to avoid an error.  */
17006 #ifdef __cplusplus
17007 extern "C"
17008 {
17009 #endif
17010 /* We use char because int might match the return type of a gcc2
17011    builtin and then its argument prototype would still apply.  */
17012 char _doprnt ();
17013 /* The GNU C library defines this for functions which it implements
17014     to always fail with ENOSYS.  Some functions are actually named
17015     something starting with __ and the normal name is an alias.  */
17016 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17017 choke me
17018 #else
17019 char (*f) () = _doprnt;
17020 #endif
17021 #ifdef __cplusplus
17022 }
17023 #endif
17024
17025 int
17026 main ()
17027 {
17028 return f != _doprnt;
17029   ;
17030   return 0;
17031 }
17032 _ACEOF
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035   (eval $ac_link) 2>&5
17036   ac_status=$?
17037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038   (exit $ac_status); } &&
17039          { ac_try='test -s conftest$ac_exeext'
17040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041   (eval $ac_try) 2>&5
17042   ac_status=$?
17043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044   (exit $ac_status); }; }; then
17045   ac_cv_func__doprnt=yes
17046 else
17047   echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17049
17050 ac_cv_func__doprnt=no
17051 fi
17052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17053 fi
17054 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17055 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17056 if test $ac_cv_func__doprnt = yes; then
17057
17058 cat >>confdefs.h <<\_ACEOF
17059 #define HAVE_DOPRNT 1
17060 _ACEOF
17061
17062 fi
17063
17064 fi
17065 done
17066
17067
17068 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17069 # for constant arguments.  Useless!
17070 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17071 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17072 if test "${ac_cv_working_alloca_h+set}" = set; then
17073   echo $ECHO_N "(cached) $ECHO_C" >&6
17074 else
17075   cat >conftest.$ac_ext <<_ACEOF
17076 #line $LINENO "configure"
17077 /* confdefs.h.  */
17078 _ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h.  */
17082 #include <alloca.h>
17083 int
17084 main ()
17085 {
17086 char *p = (char *) alloca (2 * sizeof (int));
17087   ;
17088   return 0;
17089 }
17090 _ACEOF
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17093   (eval $ac_link) 2>&5
17094   ac_status=$?
17095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096   (exit $ac_status); } &&
17097          { ac_try='test -s conftest$ac_exeext'
17098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099   (eval $ac_try) 2>&5
17100   ac_status=$?
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); }; }; then
17103   ac_cv_working_alloca_h=yes
17104 else
17105   echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17107
17108 ac_cv_working_alloca_h=no
17109 fi
17110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17111 fi
17112 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17113 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17114 if test $ac_cv_working_alloca_h = yes; then
17115
17116 cat >>confdefs.h <<\_ACEOF
17117 #define HAVE_ALLOCA_H 1
17118 _ACEOF
17119
17120 fi
17121
17122 echo "$as_me:$LINENO: checking for alloca" >&5
17123 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17124 if test "${ac_cv_func_alloca_works+set}" = set; then
17125   echo $ECHO_N "(cached) $ECHO_C" >&6
17126 else
17127   cat >conftest.$ac_ext <<_ACEOF
17128 #line $LINENO "configure"
17129 /* confdefs.h.  */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h.  */
17134 #ifdef __GNUC__
17135 # define alloca __builtin_alloca
17136 #else
17137 # ifdef _MSC_VER
17138 #  include <malloc.h>
17139 #  define alloca _alloca
17140 # else
17141 #  if HAVE_ALLOCA_H
17142 #   include <alloca.h>
17143 #  else
17144 #   ifdef _AIX
17145  #pragma alloca
17146 #   else
17147 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17148 char *alloca ();
17149 #    endif
17150 #   endif
17151 #  endif
17152 # endif
17153 #endif
17154
17155 int
17156 main ()
17157 {
17158 char *p = (char *) alloca (1);
17159   ;
17160   return 0;
17161 }
17162 _ACEOF
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17165   (eval $ac_link) 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); } &&
17169          { ac_try='test -s conftest$ac_exeext'
17170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171   (eval $ac_try) 2>&5
17172   ac_status=$?
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   (exit $ac_status); }; }; then
17175   ac_cv_func_alloca_works=yes
17176 else
17177   echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17179
17180 ac_cv_func_alloca_works=no
17181 fi
17182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17183 fi
17184 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17185 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17186
17187 if test $ac_cv_func_alloca_works = yes; then
17188
17189 cat >>confdefs.h <<\_ACEOF
17190 #define HAVE_ALLOCA 1
17191 _ACEOF
17192
17193 else
17194   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17195 # that cause trouble.  Some versions do not even contain alloca or
17196 # contain a buggy version.  If you still want to use their alloca,
17197 # use ar to extract alloca.o from them instead of compiling alloca.c.
17198
17199 ALLOCA=alloca.$ac_objext
17200
17201 cat >>confdefs.h <<\_ACEOF
17202 #define C_ALLOCA 1
17203 _ACEOF
17204
17205
17206 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17207 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17208 if test "${ac_cv_os_cray+set}" = set; then
17209   echo $ECHO_N "(cached) $ECHO_C" >&6
17210 else
17211   cat >conftest.$ac_ext <<_ACEOF
17212 #line $LINENO "configure"
17213 /* confdefs.h.  */
17214 _ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h.  */
17218 #if defined(CRAY) && ! defined(CRAY2)
17219 webecray
17220 #else
17221 wenotbecray
17222 #endif
17223
17224 _ACEOF
17225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17226   $EGREP "webecray" >/dev/null 2>&1; then
17227   ac_cv_os_cray=yes
17228 else
17229   ac_cv_os_cray=no
17230 fi
17231 rm -f conftest*
17232
17233 fi
17234 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17235 echo "${ECHO_T}$ac_cv_os_cray" >&6
17236 if test $ac_cv_os_cray = yes; then
17237   for ac_func in _getb67 GETB67 getb67; do
17238     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17239 echo "$as_me:$LINENO: checking for $ac_func" >&5
17240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17241 if eval "test \"\${$as_ac_var+set}\" = set"; then
17242   echo $ECHO_N "(cached) $ECHO_C" >&6
17243 else
17244   cat >conftest.$ac_ext <<_ACEOF
17245 #line $LINENO "configure"
17246 /* confdefs.h.  */
17247 _ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h.  */
17251 /* System header to define __stub macros and hopefully few prototypes,
17252     which can conflict with char $ac_func (); below.
17253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17254     <limits.h> exists even on freestanding compilers.  */
17255 #ifdef __STDC__
17256 # include <limits.h>
17257 #else
17258 # include <assert.h>
17259 #endif
17260 /* Override any gcc2 internal prototype to avoid an error.  */
17261 #ifdef __cplusplus
17262 extern "C"
17263 {
17264 #endif
17265 /* We use char because int might match the return type of a gcc2
17266    builtin and then its argument prototype would still apply.  */
17267 char $ac_func ();
17268 /* The GNU C library defines this for functions which it implements
17269     to always fail with ENOSYS.  Some functions are actually named
17270     something starting with __ and the normal name is an alias.  */
17271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17272 choke me
17273 #else
17274 char (*f) () = $ac_func;
17275 #endif
17276 #ifdef __cplusplus
17277 }
17278 #endif
17279
17280 int
17281 main ()
17282 {
17283 return f != $ac_func;
17284   ;
17285   return 0;
17286 }
17287 _ACEOF
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17290   (eval $ac_link) 2>&5
17291   ac_status=$?
17292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293   (exit $ac_status); } &&
17294          { ac_try='test -s conftest$ac_exeext'
17295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296   (eval $ac_try) 2>&5
17297   ac_status=$?
17298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299   (exit $ac_status); }; }; then
17300   eval "$as_ac_var=yes"
17301 else
17302   echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17304
17305 eval "$as_ac_var=no"
17306 fi
17307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17308 fi
17309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17311 if test `eval echo '${'$as_ac_var'}'` = yes; then
17312
17313 cat >>confdefs.h <<_ACEOF
17314 #define CRAY_STACKSEG_END $ac_func
17315 _ACEOF
17316
17317     break
17318 fi
17319
17320   done
17321 fi
17322
17323 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17324 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17325 if test "${ac_cv_c_stack_direction+set}" = set; then
17326   echo $ECHO_N "(cached) $ECHO_C" >&6
17327 else
17328   if test "$cross_compiling" = yes; then
17329   ac_cv_c_stack_direction=0
17330 else
17331   cat >conftest.$ac_ext <<_ACEOF
17332 #line $LINENO "configure"
17333 /* confdefs.h.  */
17334 _ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h.  */
17338 int
17339 find_stack_direction ()
17340 {
17341   static char *addr = 0;
17342   auto char dummy;
17343   if (addr == 0)
17344     {
17345       addr = &dummy;
17346       return find_stack_direction ();
17347     }
17348   else
17349     return (&dummy > addr) ? 1 : -1;
17350 }
17351
17352 int
17353 main ()
17354 {
17355   exit (find_stack_direction () < 0);
17356 }
17357 _ACEOF
17358 rm -f conftest$ac_exeext
17359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17360   (eval $ac_link) 2>&5
17361   ac_status=$?
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365   (eval $ac_try) 2>&5
17366   ac_status=$?
17367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); }; }; then
17369   ac_cv_c_stack_direction=1
17370 else
17371   echo "$as_me: program exited with status $ac_status" >&5
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17374
17375 ( exit $ac_status )
17376 ac_cv_c_stack_direction=-1
17377 fi
17378 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17379 fi
17380 fi
17381 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17382 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17383
17384 cat >>confdefs.h <<_ACEOF
17385 #define STACK_DIRECTION $ac_cv_c_stack_direction
17386 _ACEOF
17387
17388
17389 fi
17390
17391 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17392 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17393 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17394 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17395   echo $ECHO_N "(cached) $ECHO_C" >&6
17396 else
17397   ac_check_lib_save_LIBS=$LIBS
17398 LIBS="-lsun  $LIBS"
17399 cat >conftest.$ac_ext <<_ACEOF
17400 #line $LINENO "configure"
17401 /* confdefs.h.  */
17402 _ACEOF
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h.  */
17406
17407 /* Override any gcc2 internal prototype to avoid an error.  */
17408 #ifdef __cplusplus
17409 extern "C"
17410 #endif
17411 /* We use char because int might match the return type of a gcc2
17412    builtin and then its argument prototype would still apply.  */
17413 char getmntent ();
17414 int
17415 main ()
17416 {
17417 getmntent ();
17418   ;
17419   return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17424   (eval $ac_link) 2>&5
17425   ac_status=$?
17426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427   (exit $ac_status); } &&
17428          { ac_try='test -s conftest$ac_exeext'
17429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430   (eval $ac_try) 2>&5
17431   ac_status=$?
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); }; }; then
17434   ac_cv_lib_sun_getmntent=yes
17435 else
17436   echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439 ac_cv_lib_sun_getmntent=no
17440 fi
17441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17442 LIBS=$ac_check_lib_save_LIBS
17443 fi
17444 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17445 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17446 if test $ac_cv_lib_sun_getmntent = yes; then
17447   LIBS="-lsun $LIBS"
17448 else
17449   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17450 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17451 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17452   echo $ECHO_N "(cached) $ECHO_C" >&6
17453 else
17454   ac_check_lib_save_LIBS=$LIBS
17455 LIBS="-lseq  $LIBS"
17456 cat >conftest.$ac_ext <<_ACEOF
17457 #line $LINENO "configure"
17458 /* confdefs.h.  */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h.  */
17463
17464 /* Override any gcc2 internal prototype to avoid an error.  */
17465 #ifdef __cplusplus
17466 extern "C"
17467 #endif
17468 /* We use char because int might match the return type of a gcc2
17469    builtin and then its argument prototype would still apply.  */
17470 char getmntent ();
17471 int
17472 main ()
17473 {
17474 getmntent ();
17475   ;
17476   return 0;
17477 }
17478 _ACEOF
17479 rm -f conftest.$ac_objext conftest$ac_exeext
17480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481   (eval $ac_link) 2>&5
17482   ac_status=$?
17483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484   (exit $ac_status); } &&
17485          { ac_try='test -s conftest$ac_exeext'
17486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487   (eval $ac_try) 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); }; }; then
17491   ac_cv_lib_seq_getmntent=yes
17492 else
17493   echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17495
17496 ac_cv_lib_seq_getmntent=no
17497 fi
17498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17499 LIBS=$ac_check_lib_save_LIBS
17500 fi
17501 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17502 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17503 if test $ac_cv_lib_seq_getmntent = yes; then
17504   LIBS="-lseq $LIBS"
17505 else
17506   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17507 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17508 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17509   echo $ECHO_N "(cached) $ECHO_C" >&6
17510 else
17511   ac_check_lib_save_LIBS=$LIBS
17512 LIBS="-lgen  $LIBS"
17513 cat >conftest.$ac_ext <<_ACEOF
17514 #line $LINENO "configure"
17515 /* confdefs.h.  */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h.  */
17520
17521 /* Override any gcc2 internal prototype to avoid an error.  */
17522 #ifdef __cplusplus
17523 extern "C"
17524 #endif
17525 /* We use char because int might match the return type of a gcc2
17526    builtin and then its argument prototype would still apply.  */
17527 char getmntent ();
17528 int
17529 main ()
17530 {
17531 getmntent ();
17532   ;
17533   return 0;
17534 }
17535 _ACEOF
17536 rm -f conftest.$ac_objext conftest$ac_exeext
17537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17538   (eval $ac_link) 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); } &&
17542          { ac_try='test -s conftest$ac_exeext'
17543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544   (eval $ac_try) 2>&5
17545   ac_status=$?
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); }; }; then
17548   ac_cv_lib_gen_getmntent=yes
17549 else
17550   echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17552
17553 ac_cv_lib_gen_getmntent=no
17554 fi
17555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17556 LIBS=$ac_check_lib_save_LIBS
17557 fi
17558 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17559 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17560 if test $ac_cv_lib_gen_getmntent = yes; then
17561   LIBS="-lgen $LIBS"
17562 fi
17563
17564 fi
17565
17566 fi
17567
17568
17569 for ac_func in getmntent
17570 do
17571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17572 echo "$as_me:$LINENO: checking for $ac_func" >&5
17573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17574 if eval "test \"\${$as_ac_var+set}\" = set"; then
17575   echo $ECHO_N "(cached) $ECHO_C" >&6
17576 else
17577   cat >conftest.$ac_ext <<_ACEOF
17578 #line $LINENO "configure"
17579 /* confdefs.h.  */
17580 _ACEOF
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h.  */
17584 /* System header to define __stub macros and hopefully few prototypes,
17585     which can conflict with char $ac_func (); below.
17586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17587     <limits.h> exists even on freestanding compilers.  */
17588 #ifdef __STDC__
17589 # include <limits.h>
17590 #else
17591 # include <assert.h>
17592 #endif
17593 /* Override any gcc2 internal prototype to avoid an error.  */
17594 #ifdef __cplusplus
17595 extern "C"
17596 {
17597 #endif
17598 /* We use char because int might match the return type of a gcc2
17599    builtin and then its argument prototype would still apply.  */
17600 char $ac_func ();
17601 /* The GNU C library defines this for functions which it implements
17602     to always fail with ENOSYS.  Some functions are actually named
17603     something starting with __ and the normal name is an alias.  */
17604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17605 choke me
17606 #else
17607 char (*f) () = $ac_func;
17608 #endif
17609 #ifdef __cplusplus
17610 }
17611 #endif
17612
17613 int
17614 main ()
17615 {
17616 return f != $ac_func;
17617   ;
17618   return 0;
17619 }
17620 _ACEOF
17621 rm -f conftest.$ac_objext conftest$ac_exeext
17622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17623   (eval $ac_link) 2>&5
17624   ac_status=$?
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); } &&
17627          { ac_try='test -s conftest$ac_exeext'
17628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629   (eval $ac_try) 2>&5
17630   ac_status=$?
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); }; }; then
17633   eval "$as_ac_var=yes"
17634 else
17635   echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17637
17638 eval "$as_ac_var=no"
17639 fi
17640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17641 fi
17642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17644 if test `eval echo '${'$as_ac_var'}'` = yes; then
17645   cat >>confdefs.h <<_ACEOF
17646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17647 _ACEOF
17648
17649 fi
17650 done
17651
17652
17653 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17654 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17655 if test "${ac_cv_func_closedir_void+set}" = set; then
17656   echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658   if test "$cross_compiling" = yes; then
17659   ac_cv_func_closedir_void=yes
17660 else
17661   cat >conftest.$ac_ext <<_ACEOF
17662 #line $LINENO "configure"
17663 /* confdefs.h.  */
17664 _ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h.  */
17668 $ac_includes_default
17669 #include <$ac_header_dirent>
17670 #ifndef __cplusplus
17671 int closedir ();
17672 #endif
17673
17674 int
17675 main ()
17676 {
17677 exit (closedir (opendir (".")) != 0);
17678   ;
17679   return 0;
17680 }
17681 _ACEOF
17682 rm -f conftest$ac_exeext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684   (eval $ac_link) 2>&5
17685   ac_status=$?
17686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689   (eval $ac_try) 2>&5
17690   ac_status=$?
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); }; }; then
17693   ac_cv_func_closedir_void=no
17694 else
17695   echo "$as_me: program exited with status $ac_status" >&5
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17698
17699 ( exit $ac_status )
17700 ac_cv_func_closedir_void=yes
17701 fi
17702 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17703 fi
17704 fi
17705 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17706 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17707 if test $ac_cv_func_closedir_void = yes; then
17708
17709 cat >>confdefs.h <<\_ACEOF
17710 #define CLOSEDIR_VOID 1
17711 _ACEOF
17712
17713 fi
17714
17715 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17716 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17717 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17718   echo $ECHO_N "(cached) $ECHO_C" >&6
17719 else
17720   if test "$cross_compiling" = yes; then
17721   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17722 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17723    { (exit 1); exit 1; }; }
17724 else
17725   cat >conftest.$ac_ext <<_ACEOF
17726 #line $LINENO "configure"
17727 /* confdefs.h.  */
17728 _ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h.  */
17732 #if HAVE_UNISTD_H
17733 # include <unistd.h>
17734 #endif
17735
17736 int
17737 main ()
17738 {
17739 /* If this system has a BSD-style setpgrp which takes arguments,
17740   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17741   exit successfully. */
17742   exit (setpgrp (1,1) == -1 ? 0 : 1);
17743   ;
17744   return 0;
17745 }
17746 _ACEOF
17747 rm -f conftest$ac_exeext
17748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17749   (eval $ac_link) 2>&5
17750   ac_status=$?
17751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754   (eval $ac_try) 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); }; }; then
17758   ac_cv_func_setpgrp_void=no
17759 else
17760   echo "$as_me: program exited with status $ac_status" >&5
17761 echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17763
17764 ( exit $ac_status )
17765 ac_cv_func_setpgrp_void=yes
17766 fi
17767 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17768 fi
17769 fi
17770 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17771 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17772 if test $ac_cv_func_setpgrp_void = yes; then
17773
17774 cat >>confdefs.h <<\_ACEOF
17775 #define SETPGRP_VOID 1
17776 _ACEOF
17777
17778 fi
17779                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17780 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17781 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17782   echo $ECHO_N "(cached) $ECHO_C" >&6
17783 else
17784   # Some versions of Solaris, SCO, and the GNU C Library
17785    # have a broken or incompatible fnmatch.
17786    # So we run a test program.  If we are cross-compiling, take no chance.
17787    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17788    if test "$cross_compiling" = yes; then
17789   ac_cv_func_fnmatch_works=cross
17790 else
17791   cat >conftest.$ac_ext <<_ACEOF
17792 #line $LINENO "configure"
17793 /* confdefs.h.  */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h.  */
17798 #include <fnmatch.h>
17799 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17800 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17801
17802 int
17803 main ()
17804 {
17805 exit
17806            (!(y ("a*", "abc", 0)
17807               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17808               && y ("a\\\\bc", "abc", 0)
17809               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17810               && y ("*x", ".x", 0)
17811               && n ("*x", ".x", FNM_PERIOD)
17812               && 1));
17813   ;
17814   return 0;
17815 }
17816 _ACEOF
17817 rm -f conftest$ac_exeext
17818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17819   (eval $ac_link) 2>&5
17820   ac_status=$?
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824   (eval $ac_try) 2>&5
17825   ac_status=$?
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); }; }; then
17828   ac_cv_func_fnmatch_works=yes
17829 else
17830   echo "$as_me: program exited with status $ac_status" >&5
17831 echo "$as_me: failed program was:" >&5
17832 sed 's/^/| /' conftest.$ac_ext >&5
17833
17834 ( exit $ac_status )
17835 ac_cv_func_fnmatch_works=no
17836 fi
17837 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17838 fi
17839 fi
17840 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17841 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17842 if test $ac_cv_func_fnmatch_works = yes; then
17843
17844 cat >>confdefs.h <<\_ACEOF
17845 #define HAVE_FNMATCH 1
17846 _ACEOF
17847
17848 fi
17849
17850
17851
17852
17853
17854 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17855 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17856 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17857   echo $ECHO_N "(cached) $ECHO_C" >&6
17858 else
17859   ac_check_lib_save_LIBS=$LIBS
17860 LIBS="-lxpg4  $LIBS"
17861 cat >conftest.$ac_ext <<_ACEOF
17862 #line $LINENO "configure"
17863 /* confdefs.h.  */
17864 _ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h.  */
17868
17869 /* Override any gcc2 internal prototype to avoid an error.  */
17870 #ifdef __cplusplus
17871 extern "C"
17872 #endif
17873 /* We use char because int might match the return type of a gcc2
17874    builtin and then its argument prototype would still apply.  */
17875 char setlocale ();
17876 int
17877 main ()
17878 {
17879 setlocale ();
17880   ;
17881   return 0;
17882 }
17883 _ACEOF
17884 rm -f conftest.$ac_objext conftest$ac_exeext
17885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17886   (eval $ac_link) 2>&5
17887   ac_status=$?
17888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); } &&
17890          { ac_try='test -s conftest$ac_exeext'
17891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892   (eval $ac_try) 2>&5
17893   ac_status=$?
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); }; }; then
17896   ac_cv_lib_xpg4_setlocale=yes
17897 else
17898   echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17900
17901 ac_cv_lib_xpg4_setlocale=no
17902 fi
17903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17904 LIBS=$ac_check_lib_save_LIBS
17905 fi
17906 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17907 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17908 if test $ac_cv_lib_xpg4_setlocale = yes; then
17909   LIBS="$LIBS -lxpg4"
17910 fi
17911
17912
17913
17914
17915 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17916 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17917 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17918   echo $ECHO_N "(cached) $ECHO_C" >&6
17919 else
17920   ac_check_lib_save_LIBS=$LIBS
17921 LIBS="-lsun  $LIBS"
17922 cat >conftest.$ac_ext <<_ACEOF
17923 #line $LINENO "configure"
17924 /* confdefs.h.  */
17925 _ACEOF
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h.  */
17929
17930 /* Override any gcc2 internal prototype to avoid an error.  */
17931 #ifdef __cplusplus
17932 extern "C"
17933 #endif
17934 /* We use char because int might match the return type of a gcc2
17935    builtin and then its argument prototype would still apply.  */
17936 char getpwnam ();
17937 int
17938 main ()
17939 {
17940 getpwnam ();
17941   ;
17942   return 0;
17943 }
17944 _ACEOF
17945 rm -f conftest.$ac_objext conftest$ac_exeext
17946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17947   (eval $ac_link) 2>&5
17948   ac_status=$?
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); } &&
17951          { ac_try='test -s conftest$ac_exeext'
17952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953   (eval $ac_try) 2>&5
17954   ac_status=$?
17955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956   (exit $ac_status); }; }; then
17957   ac_cv_lib_sun_getpwnam=yes
17958 else
17959   echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17961
17962 ac_cv_lib_sun_getpwnam=no
17963 fi
17964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17965 LIBS=$ac_check_lib_save_LIBS
17966 fi
17967 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17968 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17969 if test $ac_cv_lib_sun_getpwnam = yes; then
17970   cat >>confdefs.h <<_ACEOF
17971 #define HAVE_LIBSUN 1
17972 _ACEOF
17973
17974   LIBS="-lsun $LIBS"
17975
17976 fi
17977
17978
17979
17980 for ac_header in zlib.h
17981 do
17982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17984   echo "$as_me:$LINENO: checking for $ac_header" >&5
17985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17987   echo $ECHO_N "(cached) $ECHO_C" >&6
17988 fi
17989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17991 else
17992   # Is the header compilable?
17993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17995 cat >conftest.$ac_ext <<_ACEOF
17996 #line $LINENO "configure"
17997 /* confdefs.h.  */
17998 _ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h.  */
18002 $ac_includes_default
18003 #include <$ac_header>
18004 _ACEOF
18005 rm -f conftest.$ac_objext
18006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18007   (eval $ac_compile) 2>&5
18008   ac_status=$?
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); } &&
18011          { ac_try='test -s conftest.$ac_objext'
18012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013   (eval $ac_try) 2>&5
18014   ac_status=$?
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); }; }; then
18017   ac_header_compiler=yes
18018 else
18019   echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022 ac_header_compiler=no
18023 fi
18024 rm -f conftest.$ac_objext conftest.$ac_ext
18025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18026 echo "${ECHO_T}$ac_header_compiler" >&6
18027
18028 # Is the header present?
18029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18031 cat >conftest.$ac_ext <<_ACEOF
18032 #line $LINENO "configure"
18033 /* confdefs.h.  */
18034 _ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h.  */
18038 #include <$ac_header>
18039 _ACEOF
18040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18041   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18042   ac_status=$?
18043   grep -v '^ *+' conftest.er1 >conftest.err
18044   rm -f conftest.er1
18045   cat conftest.err >&5
18046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047   (exit $ac_status); } >/dev/null; then
18048   if test -s conftest.err; then
18049     ac_cpp_err=$ac_c_preproc_warn_flag
18050   else
18051     ac_cpp_err=
18052   fi
18053 else
18054   ac_cpp_err=yes
18055 fi
18056 if test -z "$ac_cpp_err"; then
18057   ac_header_preproc=yes
18058 else
18059   echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062   ac_header_preproc=no
18063 fi
18064 rm -f conftest.err conftest.$ac_ext
18065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18066 echo "${ECHO_T}$ac_header_preproc" >&6
18067
18068 # So?  What about this header?
18069 case $ac_header_compiler:$ac_header_preproc in
18070   yes:no )
18071     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18073     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18075     (
18076       cat <<\_ASBOX
18077 ## ------------------------------------ ##
18078 ## Report this to bug-autoconf@gnu.org. ##
18079 ## ------------------------------------ ##
18080 _ASBOX
18081     ) |
18082       sed "s/^/$as_me: WARNING:     /" >&2
18083     ;;
18084   no:yes )
18085     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18087     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18091     (
18092       cat <<\_ASBOX
18093 ## ------------------------------------ ##
18094 ## Report this to bug-autoconf@gnu.org. ##
18095 ## ------------------------------------ ##
18096 _ASBOX
18097     ) |
18098       sed "s/^/$as_me: WARNING:     /" >&2
18099     ;;
18100 esac
18101 echo "$as_me:$LINENO: checking for $ac_header" >&5
18102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18104   echo $ECHO_N "(cached) $ECHO_C" >&6
18105 else
18106   eval "$as_ac_Header=$ac_header_preproc"
18107 fi
18108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18110
18111 fi
18112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18113   cat >>confdefs.h <<_ACEOF
18114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18115 _ACEOF
18116
18117 fi
18118
18119 done
18120
18121 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18122 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18123 if test "${ac_cv_lib_z_deflate+set}" = set; then
18124   echo $ECHO_N "(cached) $ECHO_C" >&6
18125 else
18126   ac_check_lib_save_LIBS=$LIBS
18127 LIBS="-lz  $LIBS"
18128 cat >conftest.$ac_ext <<_ACEOF
18129 #line $LINENO "configure"
18130 /* confdefs.h.  */
18131 _ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h.  */
18135
18136 /* Override any gcc2 internal prototype to avoid an error.  */
18137 #ifdef __cplusplus
18138 extern "C"
18139 #endif
18140 /* We use char because int might match the return type of a gcc2
18141    builtin and then its argument prototype would still apply.  */
18142 char deflate ();
18143 int
18144 main ()
18145 {
18146 deflate ();
18147   ;
18148   return 0;
18149 }
18150 _ACEOF
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18153   (eval $ac_link) 2>&5
18154   ac_status=$?
18155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156   (exit $ac_status); } &&
18157          { ac_try='test -s conftest$ac_exeext'
18158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159   (eval $ac_try) 2>&5
18160   ac_status=$?
18161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162   (exit $ac_status); }; }; then
18163   ac_cv_lib_z_deflate=yes
18164 else
18165   echo "$as_me: failed program was:" >&5
18166 sed 's/^/| /' conftest.$ac_ext >&5
18167
18168 ac_cv_lib_z_deflate=no
18169 fi
18170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18171 LIBS=$ac_check_lib_save_LIBS
18172 fi
18173 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18174 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18175 if test $ac_cv_lib_z_deflate = yes; then
18176   FDLIBS="-lz"
18177 fi
18178
18179 have_zlib=no
18180 if test x$FDLIBS = x-lz; then
18181   cat >>confdefs.h <<\_ACEOF
18182 #define HAVE_LIBZ 1
18183 _ACEOF
18184
18185   have_zlib=yes
18186 fi
18187
18188 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18189   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18190 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18191 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18192   echo $ECHO_N "(cached) $ECHO_C" >&6
18193 fi
18194 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18195 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18196 else
18197   # Is the header compilable?
18198 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18199 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18200 cat >conftest.$ac_ext <<_ACEOF
18201 #line $LINENO "configure"
18202 /* confdefs.h.  */
18203 _ACEOF
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h.  */
18207 $ac_includes_default
18208 #include <sys/acl.h>
18209 _ACEOF
18210 rm -f conftest.$ac_objext
18211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18212   (eval $ac_compile) 2>&5
18213   ac_status=$?
18214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215   (exit $ac_status); } &&
18216          { ac_try='test -s conftest.$ac_objext'
18217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218   (eval $ac_try) 2>&5
18219   ac_status=$?
18220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221   (exit $ac_status); }; }; then
18222   ac_header_compiler=yes
18223 else
18224   echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18226
18227 ac_header_compiler=no
18228 fi
18229 rm -f conftest.$ac_objext conftest.$ac_ext
18230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18231 echo "${ECHO_T}$ac_header_compiler" >&6
18232
18233 # Is the header present?
18234 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18235 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18236 cat >conftest.$ac_ext <<_ACEOF
18237 #line $LINENO "configure"
18238 /* confdefs.h.  */
18239 _ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h.  */
18243 #include <sys/acl.h>
18244 _ACEOF
18245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18246   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18247   ac_status=$?
18248   grep -v '^ *+' conftest.er1 >conftest.err
18249   rm -f conftest.er1
18250   cat conftest.err >&5
18251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252   (exit $ac_status); } >/dev/null; then
18253   if test -s conftest.err; then
18254     ac_cpp_err=$ac_c_preproc_warn_flag
18255   else
18256     ac_cpp_err=
18257   fi
18258 else
18259   ac_cpp_err=yes
18260 fi
18261 if test -z "$ac_cpp_err"; then
18262   ac_header_preproc=yes
18263 else
18264   echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18266
18267   ac_header_preproc=no
18268 fi
18269 rm -f conftest.err conftest.$ac_ext
18270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18271 echo "${ECHO_T}$ac_header_preproc" >&6
18272
18273 # So?  What about this header?
18274 case $ac_header_compiler:$ac_header_preproc in
18275   yes:no )
18276     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18277 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18278     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18279 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18280     (
18281       cat <<\_ASBOX
18282 ## ------------------------------------ ##
18283 ## Report this to bug-autoconf@gnu.org. ##
18284 ## ------------------------------------ ##
18285 _ASBOX
18286     ) |
18287       sed "s/^/$as_me: WARNING:     /" >&2
18288     ;;
18289   no:yes )
18290     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18291 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18292     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18293 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18294     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18295 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18296     (
18297       cat <<\_ASBOX
18298 ## ------------------------------------ ##
18299 ## Report this to bug-autoconf@gnu.org. ##
18300 ## ------------------------------------ ##
18301 _ASBOX
18302     ) |
18303       sed "s/^/$as_me: WARNING:     /" >&2
18304     ;;
18305 esac
18306 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18307 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18308 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18309   echo $ECHO_N "(cached) $ECHO_C" >&6
18310 else
18311   ac_cv_header_sys_acl_h=$ac_header_preproc
18312 fi
18313 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18314 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18315
18316 fi
18317
18318
18319 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18320 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18321 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18322   echo $ECHO_N "(cached) $ECHO_C" >&6
18323 else
18324   ac_check_lib_save_LIBS=$LIBS
18325 LIBS="-lacl  $LIBS"
18326 cat >conftest.$ac_ext <<_ACEOF
18327 #line $LINENO "configure"
18328 /* confdefs.h.  */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h.  */
18333
18334 /* Override any gcc2 internal prototype to avoid an error.  */
18335 #ifdef __cplusplus
18336 extern "C"
18337 #endif
18338 /* We use char because int might match the return type of a gcc2
18339    builtin and then its argument prototype would still apply.  */
18340 char acl_get_file ();
18341 int
18342 main ()
18343 {
18344 acl_get_file ();
18345   ;
18346   return 0;
18347 }
18348 _ACEOF
18349 rm -f conftest.$ac_objext conftest$ac_exeext
18350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18351   (eval $ac_link) 2>&5
18352   ac_status=$?
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); } &&
18355          { ac_try='test -s conftest$ac_exeext'
18356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357   (eval $ac_try) 2>&5
18358   ac_status=$?
18359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360   (exit $ac_status); }; }; then
18361   ac_cv_lib_acl_acl_get_file=yes
18362 else
18363   echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18365
18366 ac_cv_lib_acl_acl_get_file=no
18367 fi
18368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18369 LIBS=$ac_check_lib_save_LIBS
18370 fi
18371 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18372 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18373 if test $ac_cv_lib_acl_acl_get_file = yes; then
18374   FDLIBS="-lacl $FDLIBS"
18375 fi
18376
18377 have_acl=no
18378 if test $ac_cv_lib_acl_acl_get_file = yes; then
18379    cat >>confdefs.h <<\_ACEOF
18380 #define HAVE_ACL 1
18381 _ACEOF
18382
18383    have_acl=yes
18384 fi
18385
18386 PTHREAD_LIB=""
18387 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18388 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18389 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18390   echo $ECHO_N "(cached) $ECHO_C" >&6
18391 else
18392   ac_check_lib_save_LIBS=$LIBS
18393 LIBS="-lpthread  $LIBS"
18394 cat >conftest.$ac_ext <<_ACEOF
18395 #line $LINENO "configure"
18396 /* confdefs.h.  */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h.  */
18401
18402 /* Override any gcc2 internal prototype to avoid an error.  */
18403 #ifdef __cplusplus
18404 extern "C"
18405 #endif
18406 /* We use char because int might match the return type of a gcc2
18407    builtin and then its argument prototype would still apply.  */
18408 char pthread_create ();
18409 int
18410 main ()
18411 {
18412 pthread_create ();
18413   ;
18414   return 0;
18415 }
18416 _ACEOF
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18419   (eval $ac_link) 2>&5
18420   ac_status=$?
18421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422   (exit $ac_status); } &&
18423          { ac_try='test -s conftest$ac_exeext'
18424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425   (eval $ac_try) 2>&5
18426   ac_status=$?
18427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428   (exit $ac_status); }; }; then
18429   ac_cv_lib_pthread_pthread_create=yes
18430 else
18431   echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18433
18434 ac_cv_lib_pthread_pthread_create=no
18435 fi
18436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18437 LIBS=$ac_check_lib_save_LIBS
18438 fi
18439 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18440 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18441 if test $ac_cv_lib_pthread_pthread_create = yes; then
18442   PTHREAD_LIB="-lpthread"
18443 else
18444   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18445 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18446 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18447   echo $ECHO_N "(cached) $ECHO_C" >&6
18448 else
18449   ac_check_lib_save_LIBS=$LIBS
18450 LIBS="-lpthreads  $LIBS"
18451 cat >conftest.$ac_ext <<_ACEOF
18452 #line $LINENO "configure"
18453 /* confdefs.h.  */
18454 _ACEOF
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h.  */
18458
18459 /* Override any gcc2 internal prototype to avoid an error.  */
18460 #ifdef __cplusplus
18461 extern "C"
18462 #endif
18463 /* We use char because int might match the return type of a gcc2
18464    builtin and then its argument prototype would still apply.  */
18465 char pthread_create ();
18466 int
18467 main ()
18468 {
18469 pthread_create ();
18470   ;
18471   return 0;
18472 }
18473 _ACEOF
18474 rm -f conftest.$ac_objext conftest$ac_exeext
18475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18476   (eval $ac_link) 2>&5
18477   ac_status=$?
18478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479   (exit $ac_status); } &&
18480          { ac_try='test -s conftest$ac_exeext'
18481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482   (eval $ac_try) 2>&5
18483   ac_status=$?
18484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); }; }; then
18486   ac_cv_lib_pthreads_pthread_create=yes
18487 else
18488   echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18490
18491 ac_cv_lib_pthreads_pthread_create=no
18492 fi
18493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18494 LIBS=$ac_check_lib_save_LIBS
18495 fi
18496 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18497 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18498 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18499   PTHREAD_LIB="-lpthreads"
18500 else
18501   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18502 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18503 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18504   echo $ECHO_N "(cached) $ECHO_C" >&6
18505 else
18506   ac_check_lib_save_LIBS=$LIBS
18507 LIBS="-lc_r  $LIBS"
18508 cat >conftest.$ac_ext <<_ACEOF
18509 #line $LINENO "configure"
18510 /* confdefs.h.  */
18511 _ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h.  */
18515
18516 /* Override any gcc2 internal prototype to avoid an error.  */
18517 #ifdef __cplusplus
18518 extern "C"
18519 #endif
18520 /* We use char because int might match the return type of a gcc2
18521    builtin and then its argument prototype would still apply.  */
18522 char pthread_create ();
18523 int
18524 main ()
18525 {
18526 pthread_create ();
18527   ;
18528   return 0;
18529 }
18530 _ACEOF
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18533   (eval $ac_link) 2>&5
18534   ac_status=$?
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); } &&
18537          { ac_try='test -s conftest$ac_exeext'
18538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539   (eval $ac_try) 2>&5
18540   ac_status=$?
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); }; }; then
18543   ac_cv_lib_c_r_pthread_create=yes
18544 else
18545   echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18547
18548 ac_cv_lib_c_r_pthread_create=no
18549 fi
18550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18551 LIBS=$ac_check_lib_save_LIBS
18552 fi
18553 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18554 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18555 if test $ac_cv_lib_c_r_pthread_create = yes; then
18556   PTHREAD_LIB="-lc_r"
18557 else
18558   echo "$as_me:$LINENO: checking for pthread_create" >&5
18559 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18560 if test "${ac_cv_func_pthread_create+set}" = set; then
18561   echo $ECHO_N "(cached) $ECHO_C" >&6
18562 else
18563   cat >conftest.$ac_ext <<_ACEOF
18564 #line $LINENO "configure"
18565 /* confdefs.h.  */
18566 _ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h.  */
18570 /* System header to define __stub macros and hopefully few prototypes,
18571     which can conflict with char pthread_create (); below.
18572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18573     <limits.h> exists even on freestanding compilers.  */
18574 #ifdef __STDC__
18575 # include <limits.h>
18576 #else
18577 # include <assert.h>
18578 #endif
18579 /* Override any gcc2 internal prototype to avoid an error.  */
18580 #ifdef __cplusplus
18581 extern "C"
18582 {
18583 #endif
18584 /* We use char because int might match the return type of a gcc2
18585    builtin and then its argument prototype would still apply.  */
18586 char pthread_create ();
18587 /* The GNU C library defines this for functions which it implements
18588     to always fail with ENOSYS.  Some functions are actually named
18589     something starting with __ and the normal name is an alias.  */
18590 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18591 choke me
18592 #else
18593 char (*f) () = pthread_create;
18594 #endif
18595 #ifdef __cplusplus
18596 }
18597 #endif
18598
18599 int
18600 main ()
18601 {
18602 return f != pthread_create;
18603   ;
18604   return 0;
18605 }
18606 _ACEOF
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609   (eval $ac_link) 2>&5
18610   ac_status=$?
18611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612   (exit $ac_status); } &&
18613          { ac_try='test -s conftest$ac_exeext'
18614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615   (eval $ac_try) 2>&5
18616   ac_status=$?
18617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618   (exit $ac_status); }; }; then
18619   ac_cv_func_pthread_create=yes
18620 else
18621   echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18623
18624 ac_cv_func_pthread_create=no
18625 fi
18626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18627 fi
18628 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18629 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18630
18631
18632 fi
18633
18634
18635 fi
18636
18637
18638 fi
18639
18640
18641
18642 cat >>confdefs.h <<\_ACEOF
18643 #define FDLIBS 1
18644 _ACEOF
18645
18646
18647
18648 CFLAGS=${CFLAGS--O}
18649 LDFLAGS=${LDFLAGS--O}
18650 DB_LIBS="${SQL_LFLAGS}"
18651
18652 CPPFLAGS="$CPPFLAGS"
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667 OBJLIST=
18668
18669
18670 lld="lld"
18671 llu="llu"
18672
18673 WCFLAGS=
18674 WLDFLAGS=
18675
18676 #
18677 # Finally we set appropriate distribution specific
18678 #  variables and defaults
18679 #
18680 # PFILES are platform specific files
18681 PFILES="platforms/Makefile"
18682 PSCMD="ps -e"
18683 WIN32=
18684 MACOSX=
18685 hostname=`uname -n | cut -d '.' -f 1`
18686 case "$DISTNAME" in
18687 aix)
18688         DISTVER=`uname -r`
18689         PSCMD="ps -e -o pid,comm"
18690         PFILES="${PFILES} \
18691            platforms/aix/Makefile"
18692         TAPEDRIVE="/dev/rmt0.1"
18693   ;;
18694 alpha)
18695         DISTVER=`uname -r`
18696         PTHREAD_LIB="-lpthread -lexc"
18697         if test "${CC}" = "gcc" ; then
18698            lld="lld"
18699            llu="llu"
18700         else
18701            lld="ld"
18702            llu="lu"
18703         fi
18704         TAPEDRIVE="/dev/nrmt0"
18705   ;;
18706 bsdi)
18707         DISTVER=`uname -a |awk '{print $3}'`
18708         TAPEDRIVE="/dev/nrmt0"
18709         PTHREAD_LIB="-pthread"
18710         CFLAGS="${CFLAGS} -pthread"
18711         PSCMD="ps -x -o pid,command"
18712         lld="qd"
18713         llu="qu"
18714         PFILES="${PFILES} \
18715             platforms/bsdi/Makefile \
18716             platforms/bsdi/bacula-fd \
18717             platforms/bsdi/bacula-sd \
18718             platforms/bsdi/bacula-dir"
18719         largefile_support="yes"
18720   ;;
18721 cygwin)
18722         DISTVER=`uname -a |awk '{print $3}'`
18723         TAPEDRIVE="/dev/nrst0"
18724         WIN32=win32
18725         WCFLAGS="-mwindows"
18726         WLDFLAGS="-mwindows"
18727   ;;
18728 darwin)
18729         DISTVER=`uname -r`
18730         TAPEDRIVE="/dev/nst0"
18731         PSCMD="ps -e -o pid,command"
18732         MACOSX=macosx
18733         PFILES="${PFILES} \
18734            platforms/darwin/Makefile"
18735   ;;
18736 debian)
18737         DISTVER=`cat /etc/debian_version`
18738         TAPEDRIVE="/dev/nrst0"
18739         PSCMD="ps -e -o pid,command"
18740   ;;
18741 freebsd)
18742         DISTVER=`uname -a |awk '{print $3}'`
18743         VER=`echo $DISTVER | cut -c 1`
18744         if test x$VER = x4 ; then
18745            PTHREAD_LIB="-pthread"
18746            CFLAGS="${CFLAGS} -pthread"
18747         fi
18748         lld="qd"
18749         llu="qu"
18750         TAPEDRIVE="/dev/nrsa0"
18751         PSCMD="ps -x -o pid,command"
18752         PFILES="${PFILES} \
18753             platforms/freebsd/Makefile \
18754             platforms/freebsd/bacula-fd \
18755             platforms/freebsd/bacula-sd \
18756             platforms/freebsd/bacula-dir"
18757         largefile_support="yes"
18758   ;;
18759 hpux)
18760         PSCMD="UNIX95=1 ps -e -o pid,comm"
18761         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18762         DISTVER=`uname -r`
18763         TAPEDRIVE="/dev/rmt/0hnb"
18764   ;;
18765 irix)
18766         DISTVER=`uname -r`
18767         TAPEDRIVE="/dev/rmt/0cbn"
18768         PSCMD="ps -e -o pid,comm"
18769         PFILES="${PFILES} \
18770             platforms/irix/Makefile \
18771             platforms/irix/bacula-fd \
18772             platforms/irix/bacula-sd \
18773             platforms/irix/bacula-dir"
18774   ;;
18775 netbsd)
18776         DISTVER=`uname -a |awk '{print $3}'`
18777         lld="qd"
18778         llu="qu"
18779         TAPEDRIVE="/dev/nrst0"
18780         PSCMD="ps -a -o pid,command"
18781         PTHREAD_LIB="-pthread"
18782         CFLAGS="${CFLAGS} -pthread"
18783   ;;
18784 openbsd)
18785         DISTVER=`uname -a |awk '{print $3}'`
18786         lld="qd"
18787         llu="qu"
18788         TAPEDRIVE="/dev/nrst0"
18789         PSCMD="ps -a -o pid,command"
18790         PTHREAD_LIB="-pthread"
18791         CFLAGS="${CFLAGS} -pthread"
18792         PFILES="${PFILES} \
18793             platforms/openbsd/Makefile \
18794             platforms/openbsd/bacula-fd \
18795             platforms/openbsd/bacula-sd \
18796             platforms/openbsd/bacula-dir"
18797   ;;
18798 redhat)
18799         if test -f /etc/whitebox-release ; then
18800            f=/etc/whitebox-release
18801         else
18802            f=/etc/redhat-release
18803         fi
18804         if test `cat $f | grep release |\
18805                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18806            DISTVER="Enterprise "`cat $f | grep release |\
18807                     cut -f 6 -d ' '`
18808         else
18809             DISTVER=`cat /etc/redhat-release | grep release |\
18810                      cut -f 5 -d ' '`
18811         fi
18812         TAPEDRIVE="/dev/nst0"
18813         PSCMD="ps -e -o pid,command"
18814         PFILES="${PFILES} \
18815             platforms/redhat/Makefile \
18816             platforms/redhat/bacula-fd \
18817             platforms/redhat/bacula-sd \
18818             platforms/redhat/bacula-dir \
18819             platforms/redhat/bacula.spec \
18820             "
18821         hostname=`hostname -s`
18822   ;;
18823 mandrake)
18824         DISTVER=`cat /etc/mandrake-release | grep release |\
18825            cut -f 5 -d ' '`
18826         TAPEDRIVE="/dev/nst0"
18827         PSCMD="ps -e -o pid,command"
18828         PFILES="${PFILES} \
18829             platforms/mandrake/Makefile \
18830             platforms/mandrake/bacula-fd \
18831             platforms/mandrake/bacula-sd \
18832             platforms/mandrake/bacula-dir \
18833             platforms/mandrake/bacula.spec \
18834             "
18835   ;;
18836 gentoo)
18837         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18838         TAPEDRIVE="/dev/nst0"
18839         PSCMD="ps -e -o pid,command"
18840         PFILES="${PFILES} \
18841             platforms/gentoo/Makefile \
18842             platforms/gentoo/bacula-fd \
18843             platforms/gentoo/bacula-sd \
18844             platforms/gentoo/bacula-dir"
18845   ;;
18846 slackware)
18847         DISTVER=`cat /etc/slackware-version`
18848         TAPEDRIVE="/dev/nst0"
18849         PSCMD="ps -e -o pid,command"
18850         PFILES="${PFILES} \
18851             platforms/slackware/Makefile \
18852             platforms/slackware/rc.bacula-fd \
18853             platforms/slackware/rc.bacula-sd \
18854             platforms/slackware/rc.bacula-dir\
18855             platforms/slackware/functions.bacula"
18856   ;;
18857 solaris)
18858         DISTVER=`uname -r`
18859         TAPEDRIVE="/dev/rmt/0cbn"
18860         PSCMD="ps -e -o pid,comm"
18861         PFILES="${PFILES} \
18862             platforms/solaris/Makefile \
18863             platforms/solaris/bacula-fd \
18864             platforms/solaris/bacula-sd \
18865             platforms/solaris/bacula-dir"
18866         if test x$DISTVER = x5.6 ; then
18867             cat >>confdefs.h <<\_ACEOF
18868 #define HAVE_OLD_SOCKOPT 1
18869 _ACEOF
18870
18871         fi
18872   ;;
18873 suse)
18874         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18875             cut -f 3 -d ' '`
18876         TAPEDRIVE="/dev/nst0"
18877         PSCMD="ps -e -o pid,command"
18878         PFILES="${PFILES} \
18879             platforms/suse/Makefile \
18880             platforms/suse/bacula-fd \
18881             platforms/suse/bacula-sd \
18882             platforms/suse/bacula-dir \
18883             platforms/suse/bacula \
18884             platforms/suse/bacula.spec"
18885   ;;
18886 suse5)
18887         DISTNAME=suse
18888         DISTVER=5.x
18889         TAPEDRIVE="/dev/nst0"
18890         PSCMD="ps -e -o pid,command"
18891         PFILES="${PFILES} \
18892             platforms/suse/Makefile \
18893             platforms/suse/bacula-fd \
18894             platforms/suse/bacula-sd \
18895             platforms/suse/bacula-dir"
18896   ;;
18897 unknown)
18898         DISTVER=unknown
18899         TAPEDRIVE="/dev/nst0"
18900   ;;
18901 *)
18902   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18903   ;;
18904 esac
18905
18906
18907
18908 LIBS="$PTHREAD_LIB $LIBS"
18909
18910 cat >>confdefs.h <<_ACEOF
18911 #define lld "$lld"
18912 _ACEOF
18913
18914 cat >>confdefs.h <<_ACEOF
18915 #define llu "$llu"
18916 _ACEOF
18917
18918
18919
18920
18921
18922
18923
18924
18925 MCOMMON=./autoconf/Make.common
18926
18927
18928 if test "x${subsysdir}" = "x${sbindir}" ; then
18929    echo " "
18930    echo " "
18931    echo "You have set both --sbindir and --with-subsys-dir"
18932    echo "  equal to: ${subsysdir} "
18933    echo "This is not permitted. Please reconfigure."
18934    echo " "
18935    echo "Aborting configuration ..."
18936    echo " "
18937    echo " "
18938    exit 1
18939 fi
18940
18941                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18942           ac_config_commands="$ac_config_commands default"
18943 cat >confcache <<\_ACEOF
18944 # This file is a shell script that caches the results of configure
18945 # tests run on this system so they can be shared between configure
18946 # scripts and configure runs, see configure's option --config-cache.
18947 # It is not useful on other systems.  If it contains results you don't
18948 # want to keep, you may remove or edit it.
18949 #
18950 # config.status only pays attention to the cache file if you give it
18951 # the --recheck option to rerun configure.
18952 #
18953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18955 # following values.
18956
18957 _ACEOF
18958
18959 # The following way of writing the cache mishandles newlines in values,
18960 # but we know of no workaround that is simple, portable, and efficient.
18961 # So, don't put newlines in cache variables' values.
18962 # Ultrix sh set writes to stderr and can't be redirected directly,
18963 # and sets the high bit in the cache file unless we assign to the vars.
18964 {
18965   (set) 2>&1 |
18966     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18967     *ac_space=\ *)
18968       # `set' does not quote correctly, so add quotes (double-quote
18969       # substitution turns \\\\ into \\, and sed turns \\ into \).
18970       sed -n \
18971         "s/'/'\\\\''/g;
18972           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18973       ;;
18974     *)
18975       # `set' quotes correctly as required by POSIX, so do not add quotes.
18976       sed -n \
18977         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18978       ;;
18979     esac;
18980 } |
18981   sed '
18982      t clear
18983      : clear
18984      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18985      t end
18986      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18987      : end' >>confcache
18988 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18989   if test -w $cache_file; then
18990     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18991     cat confcache >$cache_file
18992   else
18993     echo "not updating unwritable cache $cache_file"
18994   fi
18995 fi
18996 rm -f confcache
18997
18998 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18999 # Let make expand exec_prefix.
19000 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19001
19002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19004 # trailing colons and then remove the whole line if VPATH becomes empty
19005 # (actually we leave an empty line to preserve line numbers).
19006 if test "x$srcdir" = x.; then
19007   ac_vpsub='/^[         ]*VPATH[        ]*=/{
19008 s/:*\$(srcdir):*/:/;
19009 s/:*\${srcdir}:*/:/;
19010 s/:*@srcdir@:*/:/;
19011 s/^\([^=]*=[    ]*\):*/\1/;
19012 s/:*$//;
19013 s/^[^=]*=[      ]*$//;
19014 }'
19015 fi
19016
19017 DEFS=-DHAVE_CONFIG_H
19018
19019 ac_libobjs=
19020 ac_ltlibobjs=
19021 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19022   # 1. Remove the extension, and $U if already installed.
19023   ac_i=`echo "$ac_i" |
19024          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19025   # 2. Add them.
19026   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19027   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19028 done
19029 LIBOBJS=$ac_libobjs
19030
19031 LTLIBOBJS=$ac_ltlibobjs
19032
19033
19034
19035 : ${CONFIG_STATUS=./config.status}
19036 ac_clean_files_save=$ac_clean_files
19037 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19038 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19039 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19040 cat >$CONFIG_STATUS <<_ACEOF
19041 #! $SHELL
19042 # Generated by $as_me.
19043 # Run this file to recreate the current configuration.
19044 # Compiler output produced by configure, useful for debugging
19045 # configure, is in config.log if it exists.
19046
19047 debug=false
19048 ac_cs_recheck=false
19049 ac_cs_silent=false
19050 SHELL=\${CONFIG_SHELL-$SHELL}
19051 _ACEOF
19052
19053 cat >>$CONFIG_STATUS <<\_ACEOF
19054 ## --------------------- ##
19055 ## M4sh Initialization.  ##
19056 ## --------------------- ##
19057
19058 # Be Bourne compatible
19059 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19060   emulate sh
19061   NULLCMD=:
19062   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19063   # is contrary to our usage.  Disable this feature.
19064   alias -g '${1+"$@"}'='"$@"'
19065 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19066   set -o posix
19067 fi
19068
19069 # Support unset when possible.
19070 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19071   as_unset=unset
19072 else
19073   as_unset=false
19074 fi
19075
19076
19077 # Work around bugs in pre-3.0 UWIN ksh.
19078 $as_unset ENV MAIL MAILPATH
19079 PS1='$ '
19080 PS2='> '
19081 PS4='+ '
19082
19083 # NLS nuisances.
19084 for as_var in \
19085   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19086   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19087   LC_TELEPHONE LC_TIME
19088 do
19089   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19090     eval $as_var=C; export $as_var
19091   else
19092     $as_unset $as_var
19093   fi
19094 done
19095
19096 # Required to use basename.
19097 if expr a : '\(a\)' >/dev/null 2>&1; then
19098   as_expr=expr
19099 else
19100   as_expr=false
19101 fi
19102
19103 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19104   as_basename=basename
19105 else
19106   as_basename=false
19107 fi
19108
19109
19110 # Name of the executable.
19111 as_me=`$as_basename "$0" ||
19112 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19113          X"$0" : 'X\(//\)$' \| \
19114          X"$0" : 'X\(/\)$' \| \
19115          .     : '\(.\)' 2>/dev/null ||
19116 echo X/"$0" |
19117     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19118           /^X\/\(\/\/\)$/{ s//\1/; q; }
19119           /^X\/\(\/\).*/{ s//\1/; q; }
19120           s/.*/./; q'`
19121
19122
19123 # PATH needs CR, and LINENO needs CR and PATH.
19124 # Avoid depending upon Character Ranges.
19125 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19126 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19127 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19128 as_cr_digits='0123456789'
19129 as_cr_alnum=$as_cr_Letters$as_cr_digits
19130
19131 # The user is always right.
19132 if test "${PATH_SEPARATOR+set}" != set; then
19133   echo "#! /bin/sh" >conf$$.sh
19134   echo  "exit 0"   >>conf$$.sh
19135   chmod +x conf$$.sh
19136   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19137     PATH_SEPARATOR=';'
19138   else
19139     PATH_SEPARATOR=:
19140   fi
19141   rm -f conf$$.sh
19142 fi
19143
19144
19145   as_lineno_1=$LINENO
19146   as_lineno_2=$LINENO
19147   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19148   test "x$as_lineno_1" != "x$as_lineno_2" &&
19149   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19150   # Find who we are.  Look in the path if we contain no path at all
19151   # relative or not.
19152   case $0 in
19153     *[\\/]* ) as_myself=$0 ;;
19154     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19155 for as_dir in $PATH
19156 do
19157   IFS=$as_save_IFS
19158   test -z "$as_dir" && as_dir=.
19159   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19160 done
19161
19162        ;;
19163   esac
19164   # We did not find ourselves, most probably we were run as `sh COMMAND'
19165   # in which case we are not to be found in the path.
19166   if test "x$as_myself" = x; then
19167     as_myself=$0
19168   fi
19169   if test ! -f "$as_myself"; then
19170     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19171 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19172    { (exit 1); exit 1; }; }
19173   fi
19174   case $CONFIG_SHELL in
19175   '')
19176     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19177 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19178 do
19179   IFS=$as_save_IFS
19180   test -z "$as_dir" && as_dir=.
19181   for as_base in sh bash ksh sh5; do
19182          case $as_dir in
19183          /*)
19184            if ("$as_dir/$as_base" -c '
19185   as_lineno_1=$LINENO
19186   as_lineno_2=$LINENO
19187   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19188   test "x$as_lineno_1" != "x$as_lineno_2" &&
19189   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19190              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19191              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19192              CONFIG_SHELL=$as_dir/$as_base
19193              export CONFIG_SHELL
19194              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19195            fi;;
19196          esac
19197        done
19198 done
19199 ;;
19200   esac
19201
19202   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19203   # uniformly replaced by the line number.  The first 'sed' inserts a
19204   # line-number line before each line; the second 'sed' does the real
19205   # work.  The second script uses 'N' to pair each line-number line
19206   # with the numbered line, and appends trailing '-' during
19207   # substitution so that $LINENO is not a special case at line end.
19208   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19209   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19210   sed '=' <$as_myself |
19211     sed '
19212       N
19213       s,$,-,
19214       : loop
19215       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19216       t loop
19217       s,-$,,
19218       s,^['$as_cr_digits']*\n,,
19219     ' >$as_me.lineno &&
19220   chmod +x $as_me.lineno ||
19221     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19222 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19223    { (exit 1); exit 1; }; }
19224
19225   # Don't try to exec as it changes $[0], causing all sort of problems
19226   # (the dirname of $[0] is not the place where we might find the
19227   # original and so on.  Autoconf is especially sensible to this).
19228   . ./$as_me.lineno
19229   # Exit status is that of the last command.
19230   exit
19231 }
19232
19233
19234 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19235   *c*,-n*) ECHO_N= ECHO_C='
19236 ' ECHO_T='      ' ;;
19237   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19238   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19239 esac
19240
19241 if expr a : '\(a\)' >/dev/null 2>&1; then
19242   as_expr=expr
19243 else
19244   as_expr=false
19245 fi
19246
19247 rm -f conf$$ conf$$.exe conf$$.file
19248 echo >conf$$.file
19249 if ln -s conf$$.file conf$$ 2>/dev/null; then
19250   # We could just check for DJGPP; but this test a) works b) is more generic
19251   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19252   if test -f conf$$.exe; then
19253     # Don't use ln at all; we don't have any links
19254     as_ln_s='cp -p'
19255   else
19256     as_ln_s='ln -s'
19257   fi
19258 elif ln conf$$.file conf$$ 2>/dev/null; then
19259   as_ln_s=ln
19260 else
19261   as_ln_s='cp -p'
19262 fi
19263 rm -f conf$$ conf$$.exe conf$$.file
19264
19265 if mkdir -p . 2>/dev/null; then
19266   as_mkdir_p=:
19267 else
19268   as_mkdir_p=false
19269 fi
19270
19271 as_executable_p="test -f"
19272
19273 # Sed expression to map a string onto a valid CPP name.
19274 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19275
19276 # Sed expression to map a string onto a valid variable name.
19277 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19278
19279
19280 # IFS
19281 # We need space, tab and new line, in precisely that order.
19282 as_nl='
19283 '
19284 IFS="   $as_nl"
19285
19286 # CDPATH.
19287 $as_unset CDPATH
19288
19289 exec 6>&1
19290
19291 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19292 # report actual input values of CONFIG_FILES etc. instead of their
19293 # values after options handling.  Logging --version etc. is OK.
19294 exec 5>>config.log
19295 {
19296   echo
19297   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19298 ## Running $as_me. ##
19299 _ASBOX
19300 } >&5
19301 cat >&5 <<_CSEOF
19302
19303 This file was extended by $as_me, which was
19304 generated by GNU Autoconf 2.57.  Invocation command line was
19305
19306   CONFIG_FILES    = $CONFIG_FILES
19307   CONFIG_HEADERS  = $CONFIG_HEADERS
19308   CONFIG_LINKS    = $CONFIG_LINKS
19309   CONFIG_COMMANDS = $CONFIG_COMMANDS
19310   $ $0 $@
19311
19312 _CSEOF
19313 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19314 echo >&5
19315 _ACEOF
19316
19317 # Files that config.status was made for.
19318 if test -n "$ac_config_files"; then
19319   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19320 fi
19321
19322 if test -n "$ac_config_headers"; then
19323   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19324 fi
19325
19326 if test -n "$ac_config_links"; then
19327   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19328 fi
19329
19330 if test -n "$ac_config_commands"; then
19331   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19332 fi
19333
19334 cat >>$CONFIG_STATUS <<\_ACEOF
19335
19336 ac_cs_usage="\
19337 \`$as_me' instantiates files from templates according to the
19338 current configuration.
19339
19340 Usage: $0 [OPTIONS] [FILE]...
19341
19342   -h, --help       print this help, then exit
19343   -V, --version    print version number, then exit
19344   -q, --quiet      do not print progress messages
19345   -d, --debug      don't remove temporary files
19346       --recheck    update $as_me by reconfiguring in the same conditions
19347   --file=FILE[:TEMPLATE]
19348                    instantiate the configuration file FILE
19349   --header=FILE[:TEMPLATE]
19350                    instantiate the configuration header FILE
19351
19352 Configuration files:
19353 $config_files
19354
19355 Configuration headers:
19356 $config_headers
19357
19358 Configuration commands:
19359 $config_commands
19360
19361 Report bugs to <bug-autoconf@gnu.org>."
19362 _ACEOF
19363
19364 cat >>$CONFIG_STATUS <<_ACEOF
19365 ac_cs_version="\\
19366 config.status
19367 configured by $0, generated by GNU Autoconf 2.57,
19368   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19369
19370 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19371 Free Software Foundation, Inc.
19372 This config.status script is free software; the Free Software Foundation
19373 gives unlimited permission to copy, distribute and modify it."
19374 srcdir=$srcdir
19375 INSTALL="$INSTALL"
19376 _ACEOF
19377
19378 cat >>$CONFIG_STATUS <<\_ACEOF
19379 # If no file are specified by the user, then we need to provide default
19380 # value.  By we need to know if files were specified by the user.
19381 ac_need_defaults=:
19382 while test $# != 0
19383 do
19384   case $1 in
19385   --*=*)
19386     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19387     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19388     ac_shift=:
19389     ;;
19390   -*)
19391     ac_option=$1
19392     ac_optarg=$2
19393     ac_shift=shift
19394     ;;
19395   *) # This is not an option, so the user has probably given explicit
19396      # arguments.
19397      ac_option=$1
19398      ac_need_defaults=false;;
19399   esac
19400
19401   case $ac_option in
19402   # Handling of the options.
19403 _ACEOF
19404 cat >>$CONFIG_STATUS <<\_ACEOF
19405   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19406     ac_cs_recheck=: ;;
19407   --version | --vers* | -V )
19408     echo "$ac_cs_version"; exit 0 ;;
19409   --he | --h)
19410     # Conflict between --help and --header
19411     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19412 Try \`$0 --help' for more information." >&5
19413 echo "$as_me: error: ambiguous option: $1
19414 Try \`$0 --help' for more information." >&2;}
19415    { (exit 1); exit 1; }; };;
19416   --help | --hel | -h )
19417     echo "$ac_cs_usage"; exit 0 ;;
19418   --debug | --d* | -d )
19419     debug=: ;;
19420   --file | --fil | --fi | --f )
19421     $ac_shift
19422     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19423     ac_need_defaults=false;;
19424   --header | --heade | --head | --hea )
19425     $ac_shift
19426     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19427     ac_need_defaults=false;;
19428   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19429   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19430     ac_cs_silent=: ;;
19431
19432   # This is an error.
19433   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19434 Try \`$0 --help' for more information." >&5
19435 echo "$as_me: error: unrecognized option: $1
19436 Try \`$0 --help' for more information." >&2;}
19437    { (exit 1); exit 1; }; } ;;
19438
19439   *) ac_config_targets="$ac_config_targets $1" ;;
19440
19441   esac
19442   shift
19443 done
19444
19445 ac_configure_extra_args=
19446
19447 if $ac_cs_silent; then
19448   exec 6>/dev/null
19449   ac_configure_extra_args="$ac_configure_extra_args --silent"
19450 fi
19451
19452 _ACEOF
19453 cat >>$CONFIG_STATUS <<_ACEOF
19454 if \$ac_cs_recheck; then
19455   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19456   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19457 fi
19458
19459 _ACEOF
19460
19461
19462
19463
19464
19465 cat >>$CONFIG_STATUS <<\_ACEOF
19466 for ac_config_target in $ac_config_targets
19467 do
19468   case "$ac_config_target" in
19469   # Handling of arguments.
19470   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19471   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19472   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19473   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19474   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19475   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19476   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19477   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19478   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19479   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19480   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19481   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19482   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19483   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19484   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19485   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19486   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19487   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19488   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19489   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19490   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19491   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19492   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19493   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19494   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19495   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19496   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19497   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19498   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19499   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19500   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19501   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19502   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19503   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19504   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19505   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19506   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19507   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19508   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19509   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19510   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19511   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19512   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19513   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19514   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19515   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19516   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19517   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19518   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19519   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19520   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19521   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19522   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19523   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19524   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19525   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19526   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19527   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19528   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19529   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19530   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19531   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19532   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19533   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19534   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19535   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19536   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19537   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19538   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19539   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19540   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19541   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19542   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19543   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19544   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19545   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19546   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19547   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19548   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19549   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19550   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19551   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19552   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19553   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19554   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19555   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19556   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19557   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19558   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19559   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19560   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19561   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19562   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19563   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19564 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19565    { (exit 1); exit 1; }; };;
19566   esac
19567 done
19568
19569 # If the user did not use the arguments to specify the items to instantiate,
19570 # then the envvar interface is used.  Set only those that are not.
19571 # We use the long form for the default assignment because of an extremely
19572 # bizarre bug on SunOS 4.1.3.
19573 if $ac_need_defaults; then
19574   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19575   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19576   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19577 fi
19578
19579 # Have a temporary directory for convenience.  Make it in the build tree
19580 # simply because there is no reason to put it here, and in addition,
19581 # creating and moving files from /tmp can sometimes cause problems.
19582 # Create a temporary directory, and hook for its removal unless debugging.
19583 $debug ||
19584 {
19585   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19586   trap '{ (exit 1); exit 1; }' 1 2 13 15
19587 }
19588
19589 # Create a (secure) tmp directory for tmp files.
19590
19591 {
19592   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19593   test -n "$tmp" && test -d "$tmp"
19594 }  ||
19595 {
19596   tmp=./confstat$$-$RANDOM
19597   (umask 077 && mkdir $tmp)
19598 } ||
19599 {
19600    echo "$me: cannot create a temporary directory in ." >&2
19601    { (exit 1); exit 1; }
19602 }
19603
19604 _ACEOF
19605
19606 cat >>$CONFIG_STATUS <<_ACEOF
19607
19608 #
19609 # CONFIG_FILES section.
19610 #
19611
19612 # No need to generate the scripts if there are no CONFIG_FILES.
19613 # This happens for instance when ./config.status config.h
19614 if test -n "\$CONFIG_FILES"; then
19615   # Protect against being on the right side of a sed subst in config.status.
19616   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19617    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19618 s,@SHELL@,$SHELL,;t t
19619 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19620 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19621 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19622 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19623 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19624 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19625 s,@exec_prefix@,$exec_prefix,;t t
19626 s,@prefix@,$prefix,;t t
19627 s,@program_transform_name@,$program_transform_name,;t t
19628 s,@bindir@,$bindir,;t t
19629 s,@sbindir@,$sbindir,;t t
19630 s,@libexecdir@,$libexecdir,;t t
19631 s,@datadir@,$datadir,;t t
19632 s,@sysconfdir@,$sysconfdir,;t t
19633 s,@sharedstatedir@,$sharedstatedir,;t t
19634 s,@localstatedir@,$localstatedir,;t t
19635 s,@libdir@,$libdir,;t t
19636 s,@includedir@,$includedir,;t t
19637 s,@oldincludedir@,$oldincludedir,;t t
19638 s,@infodir@,$infodir,;t t
19639 s,@mandir@,$mandir,;t t
19640 s,@build_alias@,$build_alias,;t t
19641 s,@host_alias@,$host_alias,;t t
19642 s,@target_alias@,$target_alias,;t t
19643 s,@DEFS@,$DEFS,;t t
19644 s,@ECHO_C@,$ECHO_C,;t t
19645 s,@ECHO_N@,$ECHO_N,;t t
19646 s,@ECHO_T@,$ECHO_T,;t t
19647 s,@LIBS@,$LIBS,;t t
19648 s,@BUILD_DIR@,$BUILD_DIR,;t t
19649 s,@TRUEPRG@,$TRUEPRG,;t t
19650 s,@FALSEPRG@,$FALSEPRG,;t t
19651 s,@VERSION@,$VERSION,;t t
19652 s,@DATE@,$DATE,;t t
19653 s,@LSMDATE@,$LSMDATE,;t t
19654 s,@CC@,$CC,;t t
19655 s,@CFLAGS@,$CFLAGS,;t t
19656 s,@LDFLAGS@,$LDFLAGS,;t t
19657 s,@CPPFLAGS@,$CPPFLAGS,;t t
19658 s,@ac_ct_CC@,$ac_ct_CC,;t t
19659 s,@EXEEXT@,$EXEEXT,;t t
19660 s,@OBJEXT@,$OBJEXT,;t t
19661 s,@CXX@,$CXX,;t t
19662 s,@CXXFLAGS@,$CXXFLAGS,;t t
19663 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19664 s,@CPP@,$CPP,;t t
19665 s,@EGREP@,$EGREP,;t t
19666 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19667 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19668 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19669 s,@RANLIB@,$RANLIB,;t t
19670 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19671 s,@MV@,$MV,;t t
19672 s,@RM@,$RM,;t t
19673 s,@CP@,$CP,;t t
19674 s,@SED@,$SED,;t t
19675 s,@AWK@,$AWK,;t t
19676 s,@ECHO@,$ECHO,;t t
19677 s,@CMP@,$CMP,;t t
19678 s,@TBL@,$TBL,;t t
19679 s,@AR@,$AR,;t t
19680 s,@OPENSSL@,$OPENSSL,;t t
19681 s,@MTX@,$MTX,;t t
19682 s,@PKGCONFIG@,$PKGCONFIG,;t t
19683 s,@WXCONFIG@,$WXCONFIG,;t t
19684 s,@CDRECORD@,$CDRECORD,;t t
19685 s,@ARFLAGS@,$ARFLAGS,;t t
19686 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19687 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19688 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19689 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19690 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19691 s,@build@,$build,;t t
19692 s,@build_cpu@,$build_cpu,;t t
19693 s,@build_vendor@,$build_vendor,;t t
19694 s,@build_os@,$build_os,;t t
19695 s,@host@,$host,;t t
19696 s,@host_cpu@,$host_cpu,;t t
19697 s,@host_vendor@,$host_vendor,;t t
19698 s,@host_os@,$host_os,;t t
19699 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19700 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19701 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19702 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19703 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19704 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19705 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19706 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19707 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19708 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19709 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19710 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19711 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19712 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19713 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19714 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19715 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19716 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19717 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19718 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19719 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19720 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19721 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19722 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19723 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19724 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19725 s,@MSGFMT@,$MSGFMT,;t t
19726 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19727 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19728 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19729 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19730 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19731 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19732 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19733 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19734 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19735 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19736 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19737 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19738 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19739 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19740 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19741 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19742 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19743 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19744 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19745 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19746 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19747 s,@GNOME_DIR@,$GNOME_DIR,;t t
19748 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19749 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19750 s,@WX_DIR@,$WX_DIR,;t t
19751 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
19752 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
19753 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
19754 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19755 s,@STATIC_FD@,$STATIC_FD,;t t
19756 s,@STATIC_SD@,$STATIC_SD,;t t
19757 s,@STATIC_DIR@,$STATIC_DIR,;t t
19758 s,@STATIC_CONS@,$STATIC_CONS,;t t
19759 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19760 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19761 s,@ALL_DIRS@,$ALL_DIRS,;t t
19762 s,@CONS_INC@,$CONS_INC,;t t
19763 s,@CONS_OBJ@,$CONS_OBJ,;t t
19764 s,@CONS_SRC@,$CONS_SRC,;t t
19765 s,@CONS_LIBS@,$CONS_LIBS,;t t
19766 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19767 s,@READLINE_SRC@,$READLINE_SRC,;t t
19768 s,@CDSTL@,$CDSTL,;t t
19769 s,@working_dir@,$working_dir,;t t
19770 s,@scriptdir@,$scriptdir,;t t
19771 s,@dump_email@,$dump_email,;t t
19772 s,@job_email@,$job_email,;t t
19773 s,@smtp_host@,$smtp_host,;t t
19774 s,@piddir@,$piddir,;t t
19775 s,@subsysdir@,$subsysdir,;t t
19776 s,@baseport@,$baseport,;t t
19777 s,@dir_port@,$dir_port,;t t
19778 s,@fd_port@,$fd_port,;t t
19779 s,@sd_port@,$sd_port,;t t
19780 s,@dir_password@,$dir_password,;t t
19781 s,@fd_password@,$fd_password,;t t
19782 s,@sd_password@,$sd_password,;t t
19783 s,@mon_dir_password@,$mon_dir_password,;t t
19784 s,@mon_fd_password@,$mon_fd_password,;t t
19785 s,@mon_sd_password@,$mon_sd_password,;t t
19786 s,@dir_user@,$dir_user,;t t
19787 s,@dir_group@,$dir_group,;t t
19788 s,@sd_user@,$sd_user,;t t
19789 s,@sd_group@,$sd_group,;t t
19790 s,@fd_user@,$fd_user,;t t
19791 s,@fd_group@,$fd_group,;t t
19792 s,@SBINPERM@,$SBINPERM,;t t
19793 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19794 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19795 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19796 s,@cats@,$cats,;t t
19797 s,@DB_NAME@,$DB_NAME,;t t
19798 s,@GETCONF@,$GETCONF,;t t
19799 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19800 s,@X_CFLAGS@,$X_CFLAGS,;t t
19801 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19802 s,@X_LIBS@,$X_LIBS,;t t
19803 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19804 s,@LIBOBJS@,$LIBOBJS,;t t
19805 s,@ALLOCA@,$ALLOCA,;t t
19806 s,@FDLIBS@,$FDLIBS,;t t
19807 s,@DEBUG@,$DEBUG,;t t
19808 s,@DINCLUDE@,$DINCLUDE,;t t
19809 s,@DLIB@,$DLIB,;t t
19810 s,@DB_LIBS@,$DB_LIBS,;t t
19811 s,@WCFLAGS@,$WCFLAGS,;t t
19812 s,@WLDFLAGS@,$WLDFLAGS,;t t
19813 s,@OBJLIST@,$OBJLIST,;t t
19814 s,@hostname@,$hostname,;t t
19815 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19816 s,@PSCMD@,$PSCMD,;t t
19817 s,@WIN32@,$WIN32,;t t
19818 s,@MACOSX@,$MACOSX,;t t
19819 s,@DISTNAME@,$DISTNAME,;t t
19820 s,@DISTVER@,$DISTVER,;t t
19821 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19822 /@MCOMMON@/r $MCOMMON
19823 s,@MCOMMON@,,;t t
19824 CEOF
19825
19826 _ACEOF
19827
19828   cat >>$CONFIG_STATUS <<\_ACEOF
19829   # Split the substitutions into bite-sized pieces for seds with
19830   # small command number limits, like on Digital OSF/1 and HP-UX.
19831   ac_max_sed_lines=48
19832   ac_sed_frag=1 # Number of current file.
19833   ac_beg=1 # First line for current file.
19834   ac_end=$ac_max_sed_lines # Line after last line for current file.
19835   ac_more_lines=:
19836   ac_sed_cmds=
19837   while $ac_more_lines; do
19838     if test $ac_beg -gt 1; then
19839       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19840     else
19841       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19842     fi
19843     if test ! -s $tmp/subs.frag; then
19844       ac_more_lines=false
19845     else
19846       # The purpose of the label and of the branching condition is to
19847       # speed up the sed processing (if there are no `@' at all, there
19848       # is no need to browse any of the substitutions).
19849       # These are the two extra sed commands mentioned above.
19850       (echo ':t
19851   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19852       if test -z "$ac_sed_cmds"; then
19853         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19854       else
19855         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19856       fi
19857       ac_sed_frag=`expr $ac_sed_frag + 1`
19858       ac_beg=$ac_end
19859       ac_end=`expr $ac_end + $ac_max_sed_lines`
19860     fi
19861   done
19862   if test -z "$ac_sed_cmds"; then
19863     ac_sed_cmds=cat
19864   fi
19865 fi # test -n "$CONFIG_FILES"
19866
19867 _ACEOF
19868 cat >>$CONFIG_STATUS <<\_ACEOF
19869 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19870   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19871   case $ac_file in
19872   - | *:- | *:-:* ) # input from stdin
19873         cat >$tmp/stdin
19874         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19875         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19876   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19877         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19878   * )   ac_file_in=$ac_file.in ;;
19879   esac
19880
19881   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19882   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19884          X"$ac_file" : 'X\(//\)[^/]' \| \
19885          X"$ac_file" : 'X\(//\)$' \| \
19886          X"$ac_file" : 'X\(/\)' \| \
19887          .     : '\(.\)' 2>/dev/null ||
19888 echo X"$ac_file" |
19889     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19890           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19891           /^X\(\/\/\)$/{ s//\1/; q; }
19892           /^X\(\/\).*/{ s//\1/; q; }
19893           s/.*/./; q'`
19894   { if $as_mkdir_p; then
19895     mkdir -p "$ac_dir"
19896   else
19897     as_dir="$ac_dir"
19898     as_dirs=
19899     while test ! -d "$as_dir"; do
19900       as_dirs="$as_dir $as_dirs"
19901       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19903          X"$as_dir" : 'X\(//\)[^/]' \| \
19904          X"$as_dir" : 'X\(//\)$' \| \
19905          X"$as_dir" : 'X\(/\)' \| \
19906          .     : '\(.\)' 2>/dev/null ||
19907 echo X"$as_dir" |
19908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19909           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19910           /^X\(\/\/\)$/{ s//\1/; q; }
19911           /^X\(\/\).*/{ s//\1/; q; }
19912           s/.*/./; q'`
19913     done
19914     test ! -n "$as_dirs" || mkdir $as_dirs
19915   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19916 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19917    { (exit 1); exit 1; }; }; }
19918
19919   ac_builddir=.
19920
19921 if test "$ac_dir" != .; then
19922   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19923   # A "../" for each directory in $ac_dir_suffix.
19924   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19925 else
19926   ac_dir_suffix= ac_top_builddir=
19927 fi
19928
19929 case $srcdir in
19930   .)  # No --srcdir option.  We are building in place.
19931     ac_srcdir=.
19932     if test -z "$ac_top_builddir"; then
19933        ac_top_srcdir=.
19934     else
19935        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19936     fi ;;
19937   [\\/]* | ?:[\\/]* )  # Absolute path.
19938     ac_srcdir=$srcdir$ac_dir_suffix;
19939     ac_top_srcdir=$srcdir ;;
19940   *) # Relative path.
19941     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19942     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19943 esac
19944 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19945 # absolute.
19946 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19947 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19948 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19949 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19950
19951
19952   case $INSTALL in
19953   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19954   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19955   esac
19956
19957   if test x"$ac_file" != x-; then
19958     { echo "$as_me:$LINENO: creating $ac_file" >&5
19959 echo "$as_me: creating $ac_file" >&6;}
19960     rm -f "$ac_file"
19961   fi
19962   # Let's still pretend it is `configure' which instantiates (i.e., don't
19963   # use $as_me), people would be surprised to read:
19964   #    /* config.h.  Generated by config.status.  */
19965   if test x"$ac_file" = x-; then
19966     configure_input=
19967   else
19968     configure_input="$ac_file.  "
19969   fi
19970   configure_input=$configure_input"Generated from `echo $ac_file_in |
19971                                      sed 's,.*/,,'` by configure."
19972
19973   # First look for the input files in the build tree, otherwise in the
19974   # src tree.
19975   ac_file_inputs=`IFS=:
19976     for f in $ac_file_in; do
19977       case $f in
19978       -) echo $tmp/stdin ;;
19979       [\\/$]*)
19980          # Absolute (can't be DOS-style, as IFS=:)
19981          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19982 echo "$as_me: error: cannot find input file: $f" >&2;}
19983    { (exit 1); exit 1; }; }
19984          echo $f;;
19985       *) # Relative
19986          if test -f "$f"; then
19987            # Build tree
19988            echo $f
19989          elif test -f "$srcdir/$f"; then
19990            # Source tree
19991            echo $srcdir/$f
19992          else
19993            # /dev/null tree
19994            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19995 echo "$as_me: error: cannot find input file: $f" >&2;}
19996    { (exit 1); exit 1; }; }
19997          fi;;
19998       esac
19999     done` || { (exit 1); exit 1; }
20000 _ACEOF
20001 cat >>$CONFIG_STATUS <<_ACEOF
20002   sed "$ac_vpsub
20003 $extrasub
20004 _ACEOF
20005 cat >>$CONFIG_STATUS <<\_ACEOF
20006 :t
20007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20008 s,@configure_input@,$configure_input,;t t
20009 s,@srcdir@,$ac_srcdir,;t t
20010 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20011 s,@top_srcdir@,$ac_top_srcdir,;t t
20012 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20013 s,@builddir@,$ac_builddir,;t t
20014 s,@abs_builddir@,$ac_abs_builddir,;t t
20015 s,@top_builddir@,$ac_top_builddir,;t t
20016 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20017 s,@INSTALL@,$ac_INSTALL,;t t
20018 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20019   rm -f $tmp/stdin
20020   if test x"$ac_file" != x-; then
20021     mv $tmp/out $ac_file
20022   else
20023     cat $tmp/out
20024     rm -f $tmp/out
20025   fi
20026
20027 done
20028 _ACEOF
20029 cat >>$CONFIG_STATUS <<\_ACEOF
20030
20031 #
20032 # CONFIG_HEADER section.
20033 #
20034
20035 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20036 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20037 #
20038 # ac_d sets the value in "#define NAME VALUE" lines.
20039 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20040 ac_dB='[        ].*$,\1#\2'
20041 ac_dC=' '
20042 ac_dD=',;t'
20043 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20044 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20045 ac_uB='$,\1#\2define\3'
20046 ac_uC=' '
20047 ac_uD=',;t'
20048
20049 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20050   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20051   case $ac_file in
20052   - | *:- | *:-:* ) # input from stdin
20053         cat >$tmp/stdin
20054         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20055         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20056   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20057         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20058   * )   ac_file_in=$ac_file.in ;;
20059   esac
20060
20061   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20062 echo "$as_me: creating $ac_file" >&6;}
20063
20064   # First look for the input files in the build tree, otherwise in the
20065   # src tree.
20066   ac_file_inputs=`IFS=:
20067     for f in $ac_file_in; do
20068       case $f in
20069       -) echo $tmp/stdin ;;
20070       [\\/$]*)
20071          # Absolute (can't be DOS-style, as IFS=:)
20072          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20073 echo "$as_me: error: cannot find input file: $f" >&2;}
20074    { (exit 1); exit 1; }; }
20075          echo $f;;
20076       *) # Relative
20077          if test -f "$f"; then
20078            # Build tree
20079            echo $f
20080          elif test -f "$srcdir/$f"; then
20081            # Source tree
20082            echo $srcdir/$f
20083          else
20084            # /dev/null tree
20085            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20086 echo "$as_me: error: cannot find input file: $f" >&2;}
20087    { (exit 1); exit 1; }; }
20088          fi;;
20089       esac
20090     done` || { (exit 1); exit 1; }
20091   # Remove the trailing spaces.
20092   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20093
20094 _ACEOF
20095
20096 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20097 # `conftest.undefs', that substitutes the proper values into
20098 # config.h.in to produce config.h.  The first handles `#define'
20099 # templates, and the second `#undef' templates.
20100 # And first: Protect against being on the right side of a sed subst in
20101 # config.status.  Protect against being in an unquoted here document
20102 # in config.status.
20103 rm -f conftest.defines conftest.undefs
20104 # Using a here document instead of a string reduces the quoting nightmare.
20105 # Putting comments in sed scripts is not portable.
20106 #
20107 # `end' is used to avoid that the second main sed command (meant for
20108 # 0-ary CPP macros) applies to n-ary macro definitions.
20109 # See the Autoconf documentation for `clear'.
20110 cat >confdef2sed.sed <<\_ACEOF
20111 s/[\\&,]/\\&/g
20112 s,[\\$`],\\&,g
20113 t clear
20114 : clear
20115 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20116 t end
20117 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20118 : end
20119 _ACEOF
20120 # If some macros were called several times there might be several times
20121 # the same #defines, which is useless.  Nevertheless, we may not want to
20122 # sort them, since we want the *last* AC-DEFINE to be honored.
20123 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20124 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20125 rm -f confdef2sed.sed
20126
20127 # This sed command replaces #undef with comments.  This is necessary, for
20128 # example, in the case of _POSIX_SOURCE, which is predefined and required
20129 # on some systems where configure will not decide to define it.
20130 cat >>conftest.undefs <<\_ACEOF
20131 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20132 _ACEOF
20133
20134 # Break up conftest.defines because some shells have a limit on the size
20135 # of here documents, and old seds have small limits too (100 cmds).
20136 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20137 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20138 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20139 echo '  :' >>$CONFIG_STATUS
20140 rm -f conftest.tail
20141 while grep . conftest.defines >/dev/null
20142 do
20143   # Write a limited-size here document to $tmp/defines.sed.
20144   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20145   # Speed up: don't consider the non `#define' lines.
20146   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20147   # Work around the forget-to-reset-the-flag bug.
20148   echo 't clr' >>$CONFIG_STATUS
20149   echo ': clr' >>$CONFIG_STATUS
20150   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20151   echo 'CEOF
20152   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20153   rm -f $tmp/in
20154   mv $tmp/out $tmp/in
20155 ' >>$CONFIG_STATUS
20156   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20157   rm -f conftest.defines
20158   mv conftest.tail conftest.defines
20159 done
20160 rm -f conftest.defines
20161 echo '  fi # grep' >>$CONFIG_STATUS
20162 echo >>$CONFIG_STATUS
20163
20164 # Break up conftest.undefs because some shells have a limit on the size
20165 # of here documents, and old seds have small limits too (100 cmds).
20166 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20167 rm -f conftest.tail
20168 while grep . conftest.undefs >/dev/null
20169 do
20170   # Write a limited-size here document to $tmp/undefs.sed.
20171   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20172   # Speed up: don't consider the non `#undef'
20173   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20174   # Work around the forget-to-reset-the-flag bug.
20175   echo 't clr' >>$CONFIG_STATUS
20176   echo ': clr' >>$CONFIG_STATUS
20177   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20178   echo 'CEOF
20179   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20180   rm -f $tmp/in
20181   mv $tmp/out $tmp/in
20182 ' >>$CONFIG_STATUS
20183   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20184   rm -f conftest.undefs
20185   mv conftest.tail conftest.undefs
20186 done
20187 rm -f conftest.undefs
20188
20189 cat >>$CONFIG_STATUS <<\_ACEOF
20190   # Let's still pretend it is `configure' which instantiates (i.e., don't
20191   # use $as_me), people would be surprised to read:
20192   #    /* config.h.  Generated by config.status.  */
20193   if test x"$ac_file" = x-; then
20194     echo "/* Generated by configure.  */" >$tmp/config.h
20195   else
20196     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20197   fi
20198   cat $tmp/in >>$tmp/config.h
20199   rm -f $tmp/in
20200   if test x"$ac_file" != x-; then
20201     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20202       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20203 echo "$as_me: $ac_file is unchanged" >&6;}
20204     else
20205       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20206 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20207          X"$ac_file" : 'X\(//\)[^/]' \| \
20208          X"$ac_file" : 'X\(//\)$' \| \
20209          X"$ac_file" : 'X\(/\)' \| \
20210          .     : '\(.\)' 2>/dev/null ||
20211 echo X"$ac_file" |
20212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20213           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20214           /^X\(\/\/\)$/{ s//\1/; q; }
20215           /^X\(\/\).*/{ s//\1/; q; }
20216           s/.*/./; q'`
20217       { if $as_mkdir_p; then
20218     mkdir -p "$ac_dir"
20219   else
20220     as_dir="$ac_dir"
20221     as_dirs=
20222     while test ! -d "$as_dir"; do
20223       as_dirs="$as_dir $as_dirs"
20224       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20226          X"$as_dir" : 'X\(//\)[^/]' \| \
20227          X"$as_dir" : 'X\(//\)$' \| \
20228          X"$as_dir" : 'X\(/\)' \| \
20229          .     : '\(.\)' 2>/dev/null ||
20230 echo X"$as_dir" |
20231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20232           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20233           /^X\(\/\/\)$/{ s//\1/; q; }
20234           /^X\(\/\).*/{ s//\1/; q; }
20235           s/.*/./; q'`
20236     done
20237     test ! -n "$as_dirs" || mkdir $as_dirs
20238   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20239 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20240    { (exit 1); exit 1; }; }; }
20241
20242       rm -f $ac_file
20243       mv $tmp/config.h $ac_file
20244     fi
20245   else
20246     cat $tmp/config.h
20247     rm -f $tmp/config.h
20248   fi
20249 done
20250 _ACEOF
20251 cat >>$CONFIG_STATUS <<\_ACEOF
20252
20253 #
20254 # CONFIG_COMMANDS section.
20255 #
20256 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20257   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20258   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20259   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20260 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20261          X"$ac_dest" : 'X\(//\)[^/]' \| \
20262          X"$ac_dest" : 'X\(//\)$' \| \
20263          X"$ac_dest" : 'X\(/\)' \| \
20264          .     : '\(.\)' 2>/dev/null ||
20265 echo X"$ac_dest" |
20266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20267           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20268           /^X\(\/\/\)$/{ s//\1/; q; }
20269           /^X\(\/\).*/{ s//\1/; q; }
20270           s/.*/./; q'`
20271   ac_builddir=.
20272
20273 if test "$ac_dir" != .; then
20274   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20275   # A "../" for each directory in $ac_dir_suffix.
20276   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20277 else
20278   ac_dir_suffix= ac_top_builddir=
20279 fi
20280
20281 case $srcdir in
20282   .)  # No --srcdir option.  We are building in place.
20283     ac_srcdir=.
20284     if test -z "$ac_top_builddir"; then
20285        ac_top_srcdir=.
20286     else
20287        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20288     fi ;;
20289   [\\/]* | ?:[\\/]* )  # Absolute path.
20290     ac_srcdir=$srcdir$ac_dir_suffix;
20291     ac_top_srcdir=$srcdir ;;
20292   *) # Relative path.
20293     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20294     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20295 esac
20296 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20297 # absolute.
20298 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20299 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20300 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20301 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20302
20303
20304   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20305 echo "$as_me: executing $ac_dest commands" >&6;}
20306   case $ac_dest in
20307     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20308  ;;
20309   esac
20310 done
20311 _ACEOF
20312
20313 cat >>$CONFIG_STATUS <<\_ACEOF
20314
20315 { (exit 0); exit 0; }
20316 _ACEOF
20317 chmod +x $CONFIG_STATUS
20318 ac_clean_files=$ac_clean_files_save
20319
20320
20321 # configure is writing to config.log, and then calls config.status.
20322 # config.status does its own redirection, appending to config.log.
20323 # Unfortunately, on DOS this fails, as config.log is still kept open
20324 # by configure, so config.status won't be able to write to it; its
20325 # output is simply discarded.  So we exec the FD to /dev/null,
20326 # effectively closing config.log, so it can be properly (re)opened and
20327 # appended to by config.status.  When coming back to configure, we
20328 # need to make the FD available again.
20329 if test "$no_create" != yes; then
20330   ac_cs_success=:
20331   ac_config_status_args=
20332   test "$silent" = yes &&
20333     ac_config_status_args="$ac_config_status_args --quiet"
20334   exec 5>/dev/null
20335   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20336   exec 5>>config.log
20337   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20338   # would make configure fail if this is the last instruction.
20339   $ac_cs_success || { (exit 1); exit 1; }
20340 fi
20341
20342
20343 cd scripts
20344 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20345 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20346 cd ..
20347
20348 c=src/cats
20349
20350 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20351 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20352
20353 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20354 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20355
20356 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20357 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20358
20359 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20360 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20361
20362 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20363 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20364
20365 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20366 chmod 755 $c/sqlite
20367 chmod 755 $c/mysql
20368
20369 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20370    largefile_support="yes"
20371 fi
20372
20373 #
20374 # A whole lot of hand springs to get the compiler version.
20375 #  This is because gcc changed the output in version 3.0
20376 #
20377 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20378 if test "x${CCVERSION}" = "x" ; then
20379   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20380 fi
20381 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20382 if test x"${CXXVERSION}" = x ; then
20383   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20384 fi
20385
20386 if test "x${subsysdir}" = "x${sbindir}" ; then
20387    echo " "
20388    echo " "
20389    echo "You have set --sbindir and --with-subsys-dir"
20390    echo "  both equal to: ${subsysdir} "
20391    echo "  This is not permitted. Please reconfigure."
20392    echo " "
20393    echo "Aborting configuration ..."
20394    echo " "
20395    echo " "
20396    exit 1
20397 fi
20398
20399 if test "x${db_name}" = "xInternal" ; then
20400    echo " "
20401    echo " "
20402    echo "You have not specified either --enable-client-only or one of the"
20403    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20404    echo "  This is not permitted. Please reconfigure."
20405    echo " "
20406    echo "Aborting the configuration ..."
20407    echo " "
20408    echo " "
20409    exit 1
20410 fi
20411
20412 echo "
20413 Configuration on `date`:
20414
20415   Host:                       $host -- ${DISTNAME} ${DISTVER}
20416   Bacula version:             ${VERSION} (${DATE})
20417   Source code location:       ${srcdir}
20418   Install binaries:           ${sbindir}
20419   Install config files:       ${sysconfdir}
20420   Scripts directory:          ${scriptdir}
20421   Working directory:          ${working_dir}
20422   PID directory:              ${piddir}
20423   Subsys directory:           ${subsysdir}
20424   C Compiler:                 ${CC} ${CCVERSION}
20425   C++ Compiler:               ${CXX} ${CXXVERSION}
20426   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20427   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20428   Libraries:                  ${LIBS}
20429   Statically Linked Tools:    ${support_static_tools}
20430   Statically Linked FD:       ${support_static_fd}
20431   Statically Linked SD:       ${support_static_sd}
20432   Statically Linked DIR:      ${support_static_dir}
20433   Statically Linked CONS:     ${support_static_cons}
20434   Database type:              ${db_name}
20435   Database lib:               ${DB_LIBS}
20436
20437   Job Output Email:           ${job_email}
20438   Traceback Email:            ${dump_email}
20439   SMTP Host Address:          ${smtp_host}
20440
20441   Director Port:              ${dir_port}
20442   File daemon Port:           ${fd_port}
20443   Storage daemon Port:        ${sd_port}
20444
20445   Director User:              ${dir_user}
20446   Director Group:             ${dir_group}
20447   Storage Daemon User:        ${sd_user}
20448   Storage DaemonGroup:        ${sd_group}
20449   File Daemon User:           ${fd_user}
20450   File Daemon Group:          ${fd_group}
20451
20452   SQL binaries Directory      ${SQL_BINDIR}
20453
20454   Large file support:         $largefile_support
20455   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20456   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20457   TCP Wrappers support:       ${TCPW_MSG}
20458   ZLIB support:               ${have_zlib}
20459   enable-smartalloc:          ${support_smartalloc}
20460   enable-gnome:               ${support_gnome} ${gnome_version}
20461   enable-wx-console:          ${support_wx_console}
20462   enable-tray-monitor:        ${support_tray_monitor}
20463   client-only:                ${build_client_only}
20464   ACL support:                ${have_acl}
20465
20466   " > config.out
20467
20468 cat config.out
20469
20470 # old stuff
20471 # cweb support:               ${got_cweb} ${CWEB_SRC}
20472   # gmp support:                      ${got_gmp} ${GMP_SRC}