]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Fix conio.h problem on Solaris
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_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 working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-wx-console     enable build of wxWidgets console disabled
860   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
861   --enable-smartalloc     enable smartalloc debugging support disabled
862   --enable-static-tools   enable static tape tools disabled
863   --enable-static-fd      enable static File daemon disabled
864   --enable-static-sd      enable static Storage daemon disabled
865   --enable-static-dir     enable static Director disabled
866   --enable-static-cons    enable static Console disabled
867   --enable-client-only    build client (File daemon) only disabled
868   --disable-conio            disable conio support enabled
869
870   --disable-readline      disable readline support disable
871
872   --disable-largefile     omit support for large files
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877   --with-gnome-includes   Specify location of GNOME headers
878   --with-gnome-libs       Specify location of GNOME libs
879   --with-gnome            Specify prefix for GNOME files
880  --with-readline=DIR             specify readline library directory
881   --with-tcp-wrappers=DIR        enable tcpwrappers support
882   --with-working-dir=PATH        specify path of Bacula working directory
883   --with-scriptdir=PATH    specify path of Bacula scripts directory
884   --with-dump-email=EMAIL        dump email address
885   --with-job-email=EMAIL         job output email address
886   --with-smtp-host=HOST          SMTP mail host address
887   --with-pid-dir=PATH            specify location of Bacula pid files
888   --with-subsys-dir=PATH         specify location of Bacula subsys file
889   --with-baseport=PORT           specify base port address for daemons
890   --with-dir-password=PASSWORD   specify Director's password
891   --with-fd-password=PASSWORD    specify Client's password
892   --with-sd-password=PASSWORD    specify Storage daemon's password
893   --with-dir-user=USER           specify user for Director daemon
894   --with-dir-group=GROUP                 specify group for Director daemon
895   --with-sd-user=USER            specify user for Storage daemon
896   --with-sd-group=GROUP          specify group for Storage daemon
897   --with-fd-user=USER            specify user for File daemon
898   --with-fd-group=GROUP          specify group for File daemon
899   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
900   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
901                           base install directory, defaults to /usr/local/pgsql
902
903   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
904                           install directory, default is to search through
905                           a number of common places for the MySQL files.
906
907   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
908                           install directory, default is to search through
909                           a number of common places for the MySQL files.
910
911   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
912                           install directory, default is to search through
913                           a number of common places for the SQLite files.
914   --with-x                use the X Window System
915
916 Some influential environment variables:
917   CC          C compiler command
918   CFLAGS      C compiler flags
919   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
920               nonstandard directory <lib dir>
921   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
922               headers in a nonstandard directory <include dir>
923   CXX         C++ compiler command
924   CXXFLAGS    C++ compiler flags
925   CPP         C preprocessor
926
927 Use these variables to override the choices made by `configure' or to help
928 it to find libraries and programs with nonstandard names/locations.
929
930 _ACEOF
931 fi
932
933 if test "$ac_init_help" = "recursive"; then
934   # If there are subdirs, report their specific --help.
935   ac_popdir=`pwd`
936   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
937     test -d $ac_dir || continue
938     ac_builddir=.
939
940 if test "$ac_dir" != .; then
941   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
942   # A "../" for each directory in $ac_dir_suffix.
943   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
944 else
945   ac_dir_suffix= ac_top_builddir=
946 fi
947
948 case $srcdir in
949   .)  # No --srcdir option.  We are building in place.
950     ac_srcdir=.
951     if test -z "$ac_top_builddir"; then
952        ac_top_srcdir=.
953     else
954        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
955     fi ;;
956   [\\/]* | ?:[\\/]* )  # Absolute path.
957     ac_srcdir=$srcdir$ac_dir_suffix;
958     ac_top_srcdir=$srcdir ;;
959   *) # Relative path.
960     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
961     ac_top_srcdir=$ac_top_builddir$srcdir ;;
962 esac
963 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
964 # absolute.
965 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
966 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
967 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
968 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
969
970     cd $ac_dir
971     # Check for guested configure; otherwise get Cygnus style configure.
972     if test -f $ac_srcdir/configure.gnu; then
973       echo
974       $SHELL $ac_srcdir/configure.gnu  --help=recursive
975     elif test -f $ac_srcdir/configure; then
976       echo
977       $SHELL $ac_srcdir/configure  --help=recursive
978     elif test -f $ac_srcdir/configure.ac ||
979            test -f $ac_srcdir/configure.in; then
980       echo
981       $ac_configure --help
982     else
983       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
984     fi
985     cd $ac_popdir
986   done
987 fi
988
989 test -n "$ac_init_help" && exit 0
990 if $ac_init_version; then
991   cat <<\_ACEOF
992
993 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
994 Free Software Foundation, Inc.
995 This configure script is free software; the Free Software Foundation
996 gives unlimited permission to copy, distribute and modify it.
997 _ACEOF
998   exit 0
999 fi
1000 exec 5>config.log
1001 cat >&5 <<_ACEOF
1002 This file contains any messages produced by compilers while
1003 running configure, to aid debugging if configure makes a mistake.
1004
1005 It was created by $as_me, which was
1006 generated by GNU Autoconf 2.57.  Invocation command line was
1007
1008   $ $0 $@
1009
1010 _ACEOF
1011 {
1012 cat <<_ASUNAME
1013 ## --------- ##
1014 ## Platform. ##
1015 ## --------- ##
1016
1017 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
1023 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1025
1026 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1027 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1028 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1030 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1031 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1032 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1033
1034 _ASUNAME
1035
1036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 for as_dir in $PATH
1038 do
1039   IFS=$as_save_IFS
1040   test -z "$as_dir" && as_dir=.
1041   echo "PATH: $as_dir"
1042 done
1043
1044 } >&5
1045
1046 cat >&5 <<_ACEOF
1047
1048
1049 ## ----------- ##
1050 ## Core tests. ##
1051 ## ----------- ##
1052
1053 _ACEOF
1054
1055
1056 # Keep a trace of the command line.
1057 # Strip out --no-create and --no-recursion so they do not pile up.
1058 # Strip out --silent because we don't want to record it for future runs.
1059 # Also quote any args containing shell meta-characters.
1060 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_configure_args=
1062 ac_configure_args0=
1063 ac_configure_args1=
1064 ac_sep=
1065 ac_must_keep_next=false
1066 for ac_pass in 1 2
1067 do
1068   for ac_arg
1069   do
1070     case $ac_arg in
1071     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073     | -silent | --silent | --silen | --sile | --sil)
1074       continue ;;
1075     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077     esac
1078     case $ac_pass in
1079     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080     2)
1081       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082       if test $ac_must_keep_next = true; then
1083         ac_must_keep_next=false # Got value, back to normal.
1084       else
1085         case $ac_arg in
1086           *=* | --config-cache | -C | -disable-* | --disable-* \
1087           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089           | -with-* | --with-* | -without-* | --without-* | --x)
1090             case "$ac_configure_args0 " in
1091               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092             esac
1093             ;;
1094           -* ) ac_must_keep_next=true ;;
1095         esac
1096       fi
1097       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098       # Get rid of the leading space.
1099       ac_sep=" "
1100       ;;
1101     esac
1102   done
1103 done
1104 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106
1107 # When interrupted or exit'd, cleanup temporary files, and complete
1108 # config.log.  We remove comments because anyway the quotes in there
1109 # would cause problems or look ugly.
1110 # WARNING: Be sure not to use single quotes in there, as some shells,
1111 # such as our DU 5.0 friend, will then `close' the trap.
1112 trap 'exit_status=$?
1113   # Save into config.log some information that might help in debugging.
1114   {
1115     echo
1116
1117     cat <<\_ASBOX
1118 ## ---------------- ##
1119 ## Cache variables. ##
1120 ## ---------------- ##
1121 _ASBOX
1122     echo
1123     # The following way of writing the cache mishandles newlines in values,
1124 {
1125   (set) 2>&1 |
1126     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127     *ac_space=\ *)
1128       sed -n \
1129         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131       ;;
1132     *)
1133       sed -n \
1134         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135       ;;
1136     esac;
1137 }
1138     echo
1139
1140     cat <<\_ASBOX
1141 ## ----------------- ##
1142 ## Output variables. ##
1143 ## ----------------- ##
1144 _ASBOX
1145     echo
1146     for ac_var in $ac_subst_vars
1147     do
1148       eval ac_val=$`echo $ac_var`
1149       echo "$ac_var='"'"'$ac_val'"'"'"
1150     done | sort
1151     echo
1152
1153     if test -n "$ac_subst_files"; then
1154       cat <<\_ASBOX
1155 ## ------------- ##
1156 ## Output files. ##
1157 ## ------------- ##
1158 _ASBOX
1159       echo
1160       for ac_var in $ac_subst_files
1161       do
1162         eval ac_val=$`echo $ac_var`
1163         echo "$ac_var='"'"'$ac_val'"'"'"
1164       done | sort
1165       echo
1166     fi
1167
1168     if test -s confdefs.h; then
1169       cat <<\_ASBOX
1170 ## ----------- ##
1171 ## confdefs.h. ##
1172 ## ----------- ##
1173 _ASBOX
1174       echo
1175       sed "/^$/d" confdefs.h | sort
1176       echo
1177     fi
1178     test "$ac_signal" != 0 &&
1179       echo "$as_me: caught signal $ac_signal"
1180     echo "$as_me: exit $exit_status"
1181   } >&5
1182   rm -f core core.* *.core &&
1183   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184     exit $exit_status
1185      ' 0
1186 for ac_signal in 1 2 13 15; do
1187   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 done
1189 ac_signal=0
1190
1191 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1192 rm -rf conftest* confdefs.h
1193 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 echo >confdefs.h
1195
1196 # Predefined preprocessor variables.
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 _ACEOF
1206
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 _ACEOF
1221
1222
1223 # Let the site file select an alternate cache file if it wants to.
1224 # Prefer explicitly selected file to automatically selected ones.
1225 if test -z "$CONFIG_SITE"; then
1226   if test "x$prefix" != xNONE; then
1227     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228   else
1229     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230   fi
1231 fi
1232 for ac_site_file in $CONFIG_SITE; do
1233   if test -r "$ac_site_file"; then
1234     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235 echo "$as_me: loading site script $ac_site_file" >&6;}
1236     sed 's/^/| /' "$ac_site_file" >&5
1237     . "$ac_site_file"
1238   fi
1239 done
1240
1241 if test -r "$cache_file"; then
1242   # Some versions of bash will fail to source /dev/null (special
1243   # files actually), so we avoid doing that.
1244   if test -f "$cache_file"; then
1245     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246 echo "$as_me: loading cache $cache_file" >&6;}
1247     case $cache_file in
1248       [\\/]* | ?:[\\/]* ) . $cache_file;;
1249       *)                      . ./$cache_file;;
1250     esac
1251   fi
1252 else
1253   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254 echo "$as_me: creating cache $cache_file" >&6;}
1255   >$cache_file
1256 fi
1257
1258 # Check that the precious variables saved in the cache have kept the same
1259 # value.
1260 ac_cache_corrupted=false
1261 for ac_var in `(set) 2>&1 |
1262                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264   eval ac_new_set=\$ac_env_${ac_var}_set
1265   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266   eval ac_new_val="\$ac_env_${ac_var}_value"
1267   case $ac_old_set,$ac_new_set in
1268     set,)
1269       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271       ac_cache_corrupted=: ;;
1272     ,set)
1273       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275       ac_cache_corrupted=: ;;
1276     ,);;
1277     *)
1278       if test "x$ac_old_val" != "x$ac_new_val"; then
1279         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1282 echo "$as_me:   former value:  $ac_old_val" >&2;}
1283         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1284 echo "$as_me:   current value: $ac_new_val" >&2;}
1285         ac_cache_corrupted=:
1286       fi;;
1287   esac
1288   # Pass precious variables to config.status.
1289   if test "$ac_new_set" = set; then
1290     case $ac_new_val in
1291     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293     *) ac_arg=$ac_var=$ac_new_val ;;
1294     esac
1295     case " $ac_configure_args " in
1296       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1297       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298     esac
1299   fi
1300 done
1301 if $ac_cache_corrupted; then
1302   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306    { (exit 1); exit 1; }; }
1307 fi
1308
1309 ac_ext=c
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333 BUILD_DIR=`pwd`
1334 cd ..
1335 TOP_DIR=`pwd`
1336 cd ${BUILD_DIR}
1337
1338 ac_aux_dir=
1339 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1340   if test -f $ac_dir/install-sh; then
1341     ac_aux_dir=$ac_dir
1342     ac_install_sh="$ac_aux_dir/install-sh -c"
1343     break
1344   elif test -f $ac_dir/install.sh; then
1345     ac_aux_dir=$ac_dir
1346     ac_install_sh="$ac_aux_dir/install.sh -c"
1347     break
1348   elif test -f $ac_dir/shtool; then
1349     ac_aux_dir=$ac_dir
1350     ac_install_sh="$ac_aux_dir/shtool install -c"
1351     break
1352   fi
1353 done
1354 if test -z "$ac_aux_dir"; then
1355   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1356 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1357    { (exit 1); exit 1; }; }
1358 fi
1359 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1360 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1361 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1362
1363           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1364
1365
1366
1367
1368
1369 for ac_prog in true
1370 do
1371   # Extract the first word of "$ac_prog", so it can be a program name with args.
1372 set dummy $ac_prog; ac_word=$2
1373 echo "$as_me:$LINENO: checking for $ac_word" >&5
1374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1375 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1376   echo $ECHO_N "(cached) $ECHO_C" >&6
1377 else
1378   case $TRUEPRG in
1379   [\\/]* | ?:[\\/]*)
1380   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1381   ;;
1382   *)
1383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1384 for as_dir in $PATH
1385 do
1386   IFS=$as_save_IFS
1387   test -z "$as_dir" && as_dir=.
1388   for ac_exec_ext in '' $ac_executable_extensions; do
1389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1390     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1392     break 2
1393   fi
1394 done
1395 done
1396
1397   ;;
1398 esac
1399 fi
1400 TRUEPRG=$ac_cv_path_TRUEPRG
1401
1402 if test -n "$TRUEPRG"; then
1403   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1404 echo "${ECHO_T}$TRUEPRG" >&6
1405 else
1406   echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1408 fi
1409
1410   test -n "$TRUEPRG" && break
1411 done
1412 test -n "$TRUEPRG" || TRUEPRG=":"
1413
1414 for ac_prog in false
1415 do
1416   # Extract the first word of "$ac_prog", so it can be a program name with args.
1417 set dummy $ac_prog; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1421   echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423   case $FALSEPRG in
1424   [\\/]* | ?:[\\/]*)
1425   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1426   ;;
1427   *)
1428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 for as_dir in $PATH
1430 do
1431   IFS=$as_save_IFS
1432   test -z "$as_dir" && as_dir=.
1433   for ac_exec_ext in '' $ac_executable_extensions; do
1434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1435     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1437     break 2
1438   fi
1439 done
1440 done
1441
1442   ;;
1443 esac
1444 fi
1445 FALSEPRG=$ac_cv_path_FALSEPRG
1446
1447 if test -n "$FALSEPRG"; then
1448   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1449 echo "${ECHO_T}$FALSEPRG" >&6
1450 else
1451   echo "$as_me:$LINENO: result: no" >&5
1452 echo "${ECHO_T}no" >&6
1453 fi
1454
1455   test -n "$FALSEPRG" && break
1456 done
1457 test -n "$FALSEPRG" || FALSEPRG=":"
1458
1459
1460 #AC_CANONICAL_HOST
1461
1462 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1465 echo "configuring for bacula $VERSION ($DATE)"
1466
1467
1468
1469 ac_ext=c
1470 ac_cpp='$CPP $CPPFLAGS'
1471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1474 if test -n "$ac_tool_prefix"; then
1475   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_CC+set}" = set; then
1480   echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482   if test -n "$CC"; then
1483   ac_cv_prog_CC="$CC" # Let the user override the test.
1484 else
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1487 do
1488   IFS=$as_save_IFS
1489   test -z "$as_dir" && as_dir=.
1490   for ac_exec_ext in '' $ac_executable_extensions; do
1491   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1492     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1493     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494     break 2
1495   fi
1496 done
1497 done
1498
1499 fi
1500 fi
1501 CC=$ac_cv_prog_CC
1502 if test -n "$CC"; then
1503   echo "$as_me:$LINENO: result: $CC" >&5
1504 echo "${ECHO_T}$CC" >&6
1505 else
1506   echo "$as_me:$LINENO: result: no" >&5
1507 echo "${ECHO_T}no" >&6
1508 fi
1509
1510 fi
1511 if test -z "$ac_cv_prog_CC"; then
1512   ac_ct_CC=$CC
1513   # Extract the first word of "gcc", so it can be a program name with args.
1514 set dummy gcc; ac_word=$2
1515 echo "$as_me:$LINENO: checking for $ac_word" >&5
1516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1518   echo $ECHO_N "(cached) $ECHO_C" >&6
1519 else
1520   if test -n "$ac_ct_CC"; then
1521   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1522 else
1523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524 for as_dir in $PATH
1525 do
1526   IFS=$as_save_IFS
1527   test -z "$as_dir" && as_dir=.
1528   for ac_exec_ext in '' $ac_executable_extensions; do
1529   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1530     ac_cv_prog_ac_ct_CC="gcc"
1531     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1532     break 2
1533   fi
1534 done
1535 done
1536
1537 fi
1538 fi
1539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1540 if test -n "$ac_ct_CC"; then
1541   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1542 echo "${ECHO_T}$ac_ct_CC" >&6
1543 else
1544   echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1546 fi
1547
1548   CC=$ac_ct_CC
1549 else
1550   CC="$ac_cv_prog_CC"
1551 fi
1552
1553 if test -z "$CC"; then
1554   if test -n "$ac_tool_prefix"; then
1555   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1556 set dummy ${ac_tool_prefix}cc; ac_word=$2
1557 echo "$as_me:$LINENO: checking for $ac_word" >&5
1558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559 if test "${ac_cv_prog_CC+set}" = set; then
1560   echo $ECHO_N "(cached) $ECHO_C" >&6
1561 else
1562   if test -n "$CC"; then
1563   ac_cv_prog_CC="$CC" # Let the user override the test.
1564 else
1565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1566 for as_dir in $PATH
1567 do
1568   IFS=$as_save_IFS
1569   test -z "$as_dir" && as_dir=.
1570   for ac_exec_ext in '' $ac_executable_extensions; do
1571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1572     ac_cv_prog_CC="${ac_tool_prefix}cc"
1573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574     break 2
1575   fi
1576 done
1577 done
1578
1579 fi
1580 fi
1581 CC=$ac_cv_prog_CC
1582 if test -n "$CC"; then
1583   echo "$as_me:$LINENO: result: $CC" >&5
1584 echo "${ECHO_T}$CC" >&6
1585 else
1586   echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588 fi
1589
1590 fi
1591 if test -z "$ac_cv_prog_CC"; then
1592   ac_ct_CC=$CC
1593   # Extract the first word of "cc", so it can be a program name with args.
1594 set dummy cc; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   if test -n "$ac_ct_CC"; then
1601   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1602 else
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606   IFS=$as_save_IFS
1607   test -z "$as_dir" && as_dir=.
1608   for ac_exec_ext in '' $ac_executable_extensions; do
1609   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610     ac_cv_prog_ac_ct_CC="cc"
1611     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612     break 2
1613   fi
1614 done
1615 done
1616
1617 fi
1618 fi
1619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1620 if test -n "$ac_ct_CC"; then
1621   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1622 echo "${ECHO_T}$ac_ct_CC" >&6
1623 else
1624   echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1626 fi
1627
1628   CC=$ac_ct_CC
1629 else
1630   CC="$ac_cv_prog_CC"
1631 fi
1632
1633 fi
1634 if test -z "$CC"; then
1635   # Extract the first word of "cc", so it can be a program name with args.
1636 set dummy cc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640   echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642   if test -n "$CC"; then
1643   ac_cv_prog_CC="$CC" # Let the user override the test.
1644 else
1645   ac_prog_rejected=no
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 for as_dir in $PATH
1648 do
1649   IFS=$as_save_IFS
1650   test -z "$as_dir" && as_dir=.
1651   for ac_exec_ext in '' $ac_executable_extensions; do
1652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1654        ac_prog_rejected=yes
1655        continue
1656      fi
1657     ac_cv_prog_CC="cc"
1658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659     break 2
1660   fi
1661 done
1662 done
1663
1664 if test $ac_prog_rejected = yes; then
1665   # We found a bogon in the path, so make sure we never use it.
1666   set dummy $ac_cv_prog_CC
1667   shift
1668   if test $# != 0; then
1669     # We chose a different compiler from the bogus one.
1670     # However, it has the same basename, so the bogon will be chosen
1671     # first if we set CC to just the basename; use the full file name.
1672     shift
1673     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1674   fi
1675 fi
1676 fi
1677 fi
1678 CC=$ac_cv_prog_CC
1679 if test -n "$CC"; then
1680   echo "$as_me:$LINENO: result: $CC" >&5
1681 echo "${ECHO_T}$CC" >&6
1682 else
1683   echo "$as_me:$LINENO: result: no" >&5
1684 echo "${ECHO_T}no" >&6
1685 fi
1686
1687 fi
1688 if test -z "$CC"; then
1689   if test -n "$ac_tool_prefix"; then
1690   for ac_prog in cl
1691   do
1692     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1694 echo "$as_me:$LINENO: checking for $ac_word" >&5
1695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1696 if test "${ac_cv_prog_CC+set}" = set; then
1697   echo $ECHO_N "(cached) $ECHO_C" >&6
1698 else
1699   if test -n "$CC"; then
1700   ac_cv_prog_CC="$CC" # Let the user override the test.
1701 else
1702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703 for as_dir in $PATH
1704 do
1705   IFS=$as_save_IFS
1706   test -z "$as_dir" && as_dir=.
1707   for ac_exec_ext in '' $ac_executable_extensions; do
1708   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1709     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711     break 2
1712   fi
1713 done
1714 done
1715
1716 fi
1717 fi
1718 CC=$ac_cv_prog_CC
1719 if test -n "$CC"; then
1720   echo "$as_me:$LINENO: result: $CC" >&5
1721 echo "${ECHO_T}$CC" >&6
1722 else
1723   echo "$as_me:$LINENO: result: no" >&5
1724 echo "${ECHO_T}no" >&6
1725 fi
1726
1727     test -n "$CC" && break
1728   done
1729 fi
1730 if test -z "$CC"; then
1731   ac_ct_CC=$CC
1732   for ac_prog in cl
1733 do
1734   # Extract the first word of "$ac_prog", so it can be a program name with args.
1735 set dummy $ac_prog; ac_word=$2
1736 echo "$as_me:$LINENO: checking for $ac_word" >&5
1737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1739   echo $ECHO_N "(cached) $ECHO_C" >&6
1740 else
1741   if test -n "$ac_ct_CC"; then
1742   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1743 else
1744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745 for as_dir in $PATH
1746 do
1747   IFS=$as_save_IFS
1748   test -z "$as_dir" && as_dir=.
1749   for ac_exec_ext in '' $ac_executable_extensions; do
1750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751     ac_cv_prog_ac_ct_CC="$ac_prog"
1752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753     break 2
1754   fi
1755 done
1756 done
1757
1758 fi
1759 fi
1760 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1761 if test -n "$ac_ct_CC"; then
1762   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1763 echo "${ECHO_T}$ac_ct_CC" >&6
1764 else
1765   echo "$as_me:$LINENO: result: no" >&5
1766 echo "${ECHO_T}no" >&6
1767 fi
1768
1769   test -n "$ac_ct_CC" && break
1770 done
1771
1772   CC=$ac_ct_CC
1773 fi
1774
1775 fi
1776
1777
1778 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1779 See \`config.log' for more details." >&5
1780 echo "$as_me: error: no acceptable C compiler found in \$PATH
1781 See \`config.log' for more details." >&2;}
1782    { (exit 1); exit 1; }; }
1783
1784 # Provide some information about the compiler.
1785 echo "$as_me:$LINENO:" \
1786      "checking for C compiler version" >&5
1787 ac_compiler=`set X $ac_compile; echo $2`
1788 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1789   (eval $ac_compiler --version </dev/null >&5) 2>&5
1790   ac_status=$?
1791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792   (exit $ac_status); }
1793 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1794   (eval $ac_compiler -v </dev/null >&5) 2>&5
1795   ac_status=$?
1796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797   (exit $ac_status); }
1798 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1799   (eval $ac_compiler -V </dev/null >&5) 2>&5
1800   ac_status=$?
1801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1802   (exit $ac_status); }
1803
1804 cat >conftest.$ac_ext <<_ACEOF
1805 #line $LINENO "configure"
1806 /* confdefs.h.  */
1807 _ACEOF
1808 cat confdefs.h >>conftest.$ac_ext
1809 cat >>conftest.$ac_ext <<_ACEOF
1810 /* end confdefs.h.  */
1811
1812 int
1813 main ()
1814 {
1815
1816   ;
1817   return 0;
1818 }
1819 _ACEOF
1820 ac_clean_files_save=$ac_clean_files
1821 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1822 # Try to create an executable without -o first, disregard a.out.
1823 # It will help us diagnose broken compilers, and finding out an intuition
1824 # of exeext.
1825 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1826 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1827 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1828 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1829   (eval $ac_link_default) 2>&5
1830   ac_status=$?
1831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832   (exit $ac_status); }; then
1833   # Find the output, starting from the most likely.  This scheme is
1834 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1835 # resort.
1836
1837 # Be careful to initialize this variable, since it used to be cached.
1838 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1839 ac_cv_exeext=
1840 # b.out is created by i960 compilers.
1841 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1842 do
1843   test -f "$ac_file" || continue
1844   case $ac_file in
1845     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1846         ;;
1847     conftest.$ac_ext )
1848         # This is the source file.
1849         ;;
1850     [ab].out )
1851         # We found the default executable, but exeext='' is most
1852         # certainly right.
1853         break;;
1854     *.* )
1855         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1856         # FIXME: I believe we export ac_cv_exeext for Libtool,
1857         # but it would be cool to find out if it's true.  Does anybody
1858         # maintain Libtool? --akim.
1859         export ac_cv_exeext
1860         break;;
1861     * )
1862         break;;
1863   esac
1864 done
1865 else
1866   echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1868
1869 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1870 See \`config.log' for more details." >&5
1871 echo "$as_me: error: C compiler cannot create executables
1872 See \`config.log' for more details." >&2;}
1873    { (exit 77); exit 77; }; }
1874 fi
1875
1876 ac_exeext=$ac_cv_exeext
1877 echo "$as_me:$LINENO: result: $ac_file" >&5
1878 echo "${ECHO_T}$ac_file" >&6
1879
1880 # Check the compiler produces executables we can run.  If not, either
1881 # the compiler is broken, or we cross compile.
1882 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1883 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1884 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1885 # If not cross compiling, check that we can run a simple program.
1886 if test "$cross_compiling" != yes; then
1887   if { ac_try='./$ac_file'
1888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1889   (eval $ac_try) 2>&5
1890   ac_status=$?
1891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892   (exit $ac_status); }; }; then
1893     cross_compiling=no
1894   else
1895     if test "$cross_compiling" = maybe; then
1896         cross_compiling=yes
1897     else
1898         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1899 If you meant to cross compile, use \`--host'.
1900 See \`config.log' for more details." >&5
1901 echo "$as_me: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&2;}
1904    { (exit 1); exit 1; }; }
1905     fi
1906   fi
1907 fi
1908 echo "$as_me:$LINENO: result: yes" >&5
1909 echo "${ECHO_T}yes" >&6
1910
1911 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1912 ac_clean_files=$ac_clean_files_save
1913 # Check the compiler produces executables we can run.  If not, either
1914 # the compiler is broken, or we cross compile.
1915 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1916 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1917 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1918 echo "${ECHO_T}$cross_compiling" >&6
1919
1920 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1921 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1923   (eval $ac_link) 2>&5
1924   ac_status=$?
1925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926   (exit $ac_status); }; then
1927   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1928 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1929 # work properly (i.e., refer to `conftest.exe'), while it won't with
1930 # `rm'.
1931 for ac_file in conftest.exe conftest conftest.*; do
1932   test -f "$ac_file" || continue
1933   case $ac_file in
1934     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1935     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1936           export ac_cv_exeext
1937           break;;
1938     * ) break;;
1939   esac
1940 done
1941 else
1942   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1945 See \`config.log' for more details." >&2;}
1946    { (exit 1); exit 1; }; }
1947 fi
1948
1949 rm -f conftest$ac_cv_exeext
1950 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1951 echo "${ECHO_T}$ac_cv_exeext" >&6
1952
1953 rm -f conftest.$ac_ext
1954 EXEEXT=$ac_cv_exeext
1955 ac_exeext=$EXEEXT
1956 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1957 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1958 if test "${ac_cv_objext+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   cat >conftest.$ac_ext <<_ACEOF
1962 #line $LINENO "configure"
1963 /* confdefs.h.  */
1964 _ACEOF
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h.  */
1968
1969 int
1970 main ()
1971 {
1972
1973   ;
1974   return 0;
1975 }
1976 _ACEOF
1977 rm -f conftest.o conftest.obj
1978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1979   (eval $ac_compile) 2>&5
1980   ac_status=$?
1981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982   (exit $ac_status); }; then
1983   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1984   case $ac_file in
1985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1986     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1987        break;;
1988   esac
1989 done
1990 else
1991   echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1993
1994 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1995 See \`config.log' for more details." >&5
1996 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1997 See \`config.log' for more details." >&2;}
1998    { (exit 1); exit 1; }; }
1999 fi
2000
2001 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2002 fi
2003 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2004 echo "${ECHO_T}$ac_cv_objext" >&6
2005 OBJEXT=$ac_cv_objext
2006 ac_objext=$OBJEXT
2007 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2008 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2009 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2014 /* confdefs.h.  */
2015 _ACEOF
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h.  */
2019
2020 int
2021 main ()
2022 {
2023 #ifndef __GNUC__
2024        choke me
2025 #endif
2026
2027   ;
2028   return 0;
2029 }
2030 _ACEOF
2031 rm -f conftest.$ac_objext
2032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033   (eval $ac_compile) 2>&5
2034   ac_status=$?
2035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036   (exit $ac_status); } &&
2037          { ac_try='test -s conftest.$ac_objext'
2038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039   (eval $ac_try) 2>&5
2040   ac_status=$?
2041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042   (exit $ac_status); }; }; then
2043   ac_compiler_gnu=yes
2044 else
2045   echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2047
2048 ac_compiler_gnu=no
2049 fi
2050 rm -f conftest.$ac_objext conftest.$ac_ext
2051 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2052
2053 fi
2054 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2055 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2056 GCC=`test $ac_compiler_gnu = yes && echo yes`
2057 ac_test_CFLAGS=${CFLAGS+set}
2058 ac_save_CFLAGS=$CFLAGS
2059 CFLAGS="-g"
2060 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2061 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2062 if test "${ac_cv_prog_cc_g+set}" = set; then
2063   echo $ECHO_N "(cached) $ECHO_C" >&6
2064 else
2065   cat >conftest.$ac_ext <<_ACEOF
2066 #line $LINENO "configure"
2067 /* confdefs.h.  */
2068 _ACEOF
2069 cat confdefs.h >>conftest.$ac_ext
2070 cat >>conftest.$ac_ext <<_ACEOF
2071 /* end confdefs.h.  */
2072
2073 int
2074 main ()
2075 {
2076
2077   ;
2078   return 0;
2079 }
2080 _ACEOF
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083   (eval $ac_compile) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); } &&
2087          { ac_try='test -s conftest.$ac_objext'
2088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089   (eval $ac_try) 2>&5
2090   ac_status=$?
2091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092   (exit $ac_status); }; }; then
2093   ac_cv_prog_cc_g=yes
2094 else
2095   echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098 ac_cv_prog_cc_g=no
2099 fi
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2103 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2104 if test "$ac_test_CFLAGS" = set; then
2105   CFLAGS=$ac_save_CFLAGS
2106 elif test $ac_cv_prog_cc_g = yes; then
2107   if test "$GCC" = yes; then
2108     CFLAGS="-g -O2"
2109   else
2110     CFLAGS="-g"
2111   fi
2112 else
2113   if test "$GCC" = yes; then
2114     CFLAGS="-O2"
2115   else
2116     CFLAGS=
2117   fi
2118 fi
2119 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2120 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2121 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2122   echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124   ac_cv_prog_cc_stdc=no
2125 ac_save_CC=$CC
2126 cat >conftest.$ac_ext <<_ACEOF
2127 #line $LINENO "configure"
2128 /* confdefs.h.  */
2129 _ACEOF
2130 cat confdefs.h >>conftest.$ac_ext
2131 cat >>conftest.$ac_ext <<_ACEOF
2132 /* end confdefs.h.  */
2133 #include <stdarg.h>
2134 #include <stdio.h>
2135 #include <sys/types.h>
2136 #include <sys/stat.h>
2137 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2138 struct buf { int x; };
2139 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2140 static char *e (p, i)
2141      char **p;
2142      int i;
2143 {
2144   return p[i];
2145 }
2146 static char *f (char * (*g) (char **, int), char **p, ...)
2147 {
2148   char *s;
2149   va_list v;
2150   va_start (v,p);
2151   s = g (p, va_arg (v,int));
2152   va_end (v);
2153   return s;
2154 }
2155 int test (int i, double x);
2156 struct s1 {int (*f) (int a);};
2157 struct s2 {int (*f) (double a);};
2158 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2159 int argc;
2160 char **argv;
2161 int
2162 main ()
2163 {
2164 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2165   ;
2166   return 0;
2167 }
2168 _ACEOF
2169 # Don't try gcc -ansi; that turns off useful extensions and
2170 # breaks some systems' header files.
2171 # AIX                   -qlanglvl=ansi
2172 # Ultrix and OSF/1      -std1
2173 # HP-UX 10.20 and later -Ae
2174 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2175 # SVR4                  -Xc -D__EXTENSIONS__
2176 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2177 do
2178   CC="$ac_save_CC $ac_arg"
2179   rm -f conftest.$ac_objext
2180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181   (eval $ac_compile) 2>&5
2182   ac_status=$?
2183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184   (exit $ac_status); } &&
2185          { ac_try='test -s conftest.$ac_objext'
2186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2187   (eval $ac_try) 2>&5
2188   ac_status=$?
2189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190   (exit $ac_status); }; }; then
2191   ac_cv_prog_cc_stdc=$ac_arg
2192 break
2193 else
2194   echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 fi
2198 rm -f conftest.$ac_objext
2199 done
2200 rm -f conftest.$ac_ext conftest.$ac_objext
2201 CC=$ac_save_CC
2202
2203 fi
2204
2205 case "x$ac_cv_prog_cc_stdc" in
2206   x|xno)
2207     echo "$as_me:$LINENO: result: none needed" >&5
2208 echo "${ECHO_T}none needed" >&6 ;;
2209   *)
2210     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2211 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2212     CC="$CC $ac_cv_prog_cc_stdc" ;;
2213 esac
2214
2215 # Some people use a C++ compiler to compile C.  Since we use `exit',
2216 # in C++ we need to declare it.  In case someone uses the same compiler
2217 # for both compiling C and C++ we need to have the C++ compiler decide
2218 # the declaration of exit, since it's the most demanding environment.
2219 cat >conftest.$ac_ext <<_ACEOF
2220 #ifndef __cplusplus
2221   choke me
2222 #endif
2223 _ACEOF
2224 rm -f conftest.$ac_objext
2225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2226   (eval $ac_compile) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); } &&
2230          { ac_try='test -s conftest.$ac_objext'
2231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232   (eval $ac_try) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); }; }; then
2236   for ac_declaration in \
2237    ''\
2238    '#include <stdlib.h>' \
2239    'extern "C" void std::exit (int) throw (); using std::exit;' \
2240    'extern "C" void std::exit (int); using std::exit;' \
2241    'extern "C" void exit (int) throw ();' \
2242    'extern "C" void exit (int);' \
2243    'void exit (int);'
2244 do
2245   cat >conftest.$ac_ext <<_ACEOF
2246 #line $LINENO "configure"
2247 /* confdefs.h.  */
2248 _ACEOF
2249 cat confdefs.h >>conftest.$ac_ext
2250 cat >>conftest.$ac_ext <<_ACEOF
2251 /* end confdefs.h.  */
2252 #include <stdlib.h>
2253 $ac_declaration
2254 int
2255 main ()
2256 {
2257 exit (42);
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 rm -f conftest.$ac_objext
2263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264   (eval $ac_compile) 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); } &&
2268          { ac_try='test -s conftest.$ac_objext'
2269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270   (eval $ac_try) 2>&5
2271   ac_status=$?
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); }; }; then
2274   :
2275 else
2276   echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 continue
2280 fi
2281 rm -f conftest.$ac_objext conftest.$ac_ext
2282   cat >conftest.$ac_ext <<_ACEOF
2283 #line $LINENO "configure"
2284 /* confdefs.h.  */
2285 _ACEOF
2286 cat confdefs.h >>conftest.$ac_ext
2287 cat >>conftest.$ac_ext <<_ACEOF
2288 /* end confdefs.h.  */
2289 $ac_declaration
2290 int
2291 main ()
2292 {
2293 exit (42);
2294   ;
2295   return 0;
2296 }
2297 _ACEOF
2298 rm -f conftest.$ac_objext
2299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300   (eval $ac_compile) 2>&5
2301   ac_status=$?
2302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303   (exit $ac_status); } &&
2304          { ac_try='test -s conftest.$ac_objext'
2305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306   (eval $ac_try) 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }; }; then
2310   break
2311 else
2312   echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 fi
2316 rm -f conftest.$ac_objext conftest.$ac_ext
2317 done
2318 rm -f conftest*
2319 if test -n "$ac_declaration"; then
2320   echo '#ifdef __cplusplus' >>confdefs.h
2321   echo $ac_declaration      >>confdefs.h
2322   echo '#endif'             >>confdefs.h
2323 fi
2324
2325 else
2326   echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 fi
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337 ac_ext=cc
2338 ac_cpp='$CXXCPP $CPPFLAGS'
2339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2342 if test -n "$ac_tool_prefix"; then
2343   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2344   do
2345     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2347 echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349 if test "${ac_cv_prog_CXX+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352   if test -n "$CXX"; then
2353   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358   IFS=$as_save_IFS
2359   test -z "$as_dir" && as_dir=.
2360   for ac_exec_ext in '' $ac_executable_extensions; do
2361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364     break 2
2365   fi
2366 done
2367 done
2368
2369 fi
2370 fi
2371 CXX=$ac_cv_prog_CXX
2372 if test -n "$CXX"; then
2373   echo "$as_me:$LINENO: result: $CXX" >&5
2374 echo "${ECHO_T}$CXX" >&6
2375 else
2376   echo "$as_me:$LINENO: result: no" >&5
2377 echo "${ECHO_T}no" >&6
2378 fi
2379
2380     test -n "$CXX" && break
2381   done
2382 fi
2383 if test -z "$CXX"; then
2384   ac_ct_CXX=$CXX
2385   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2386 do
2387   # Extract the first word of "$ac_prog", so it can be a program name with args.
2388 set dummy $ac_prog; ac_word=$2
2389 echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2391 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2392   echo $ECHO_N "(cached) $ECHO_C" >&6
2393 else
2394   if test -n "$ac_ct_CXX"; then
2395   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2396 else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 for as_dir in $PATH
2399 do
2400   IFS=$as_save_IFS
2401   test -z "$as_dir" && as_dir=.
2402   for ac_exec_ext in '' $ac_executable_extensions; do
2403   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2404     ac_cv_prog_ac_ct_CXX="$ac_prog"
2405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2406     break 2
2407   fi
2408 done
2409 done
2410
2411 fi
2412 fi
2413 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2414 if test -n "$ac_ct_CXX"; then
2415   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2416 echo "${ECHO_T}$ac_ct_CXX" >&6
2417 else
2418   echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6
2420 fi
2421
2422   test -n "$ac_ct_CXX" && break
2423 done
2424 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2425
2426   CXX=$ac_ct_CXX
2427 fi
2428
2429
2430 # Provide some information about the compiler.
2431 echo "$as_me:$LINENO:" \
2432      "checking for C++ compiler version" >&5
2433 ac_compiler=`set X $ac_compile; echo $2`
2434 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2435   (eval $ac_compiler --version </dev/null >&5) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }
2439 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2440   (eval $ac_compiler -v </dev/null >&5) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }
2444 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2445   (eval $ac_compiler -V </dev/null >&5) 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }
2449
2450 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2451 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2452 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2453   echo $ECHO_N "(cached) $ECHO_C" >&6
2454 else
2455   cat >conftest.$ac_ext <<_ACEOF
2456 #line $LINENO "configure"
2457 /* confdefs.h.  */
2458 _ACEOF
2459 cat confdefs.h >>conftest.$ac_ext
2460 cat >>conftest.$ac_ext <<_ACEOF
2461 /* end confdefs.h.  */
2462
2463 int
2464 main ()
2465 {
2466 #ifndef __GNUC__
2467        choke me
2468 #endif
2469
2470   ;
2471   return 0;
2472 }
2473 _ACEOF
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476   (eval $ac_compile) 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); } &&
2480          { ac_try='test -s conftest.$ac_objext'
2481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482   (eval $ac_try) 2>&5
2483   ac_status=$?
2484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485   (exit $ac_status); }; }; then
2486   ac_compiler_gnu=yes
2487 else
2488   echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2490
2491 ac_compiler_gnu=no
2492 fi
2493 rm -f conftest.$ac_objext conftest.$ac_ext
2494 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2495
2496 fi
2497 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2498 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2499 GXX=`test $ac_compiler_gnu = yes && echo yes`
2500 ac_test_CXXFLAGS=${CXXFLAGS+set}
2501 ac_save_CXXFLAGS=$CXXFLAGS
2502 CXXFLAGS="-g"
2503 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2504 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2505 if test "${ac_cv_prog_cxx_g+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   cat >conftest.$ac_ext <<_ACEOF
2509 #line $LINENO "configure"
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2515
2516 int
2517 main ()
2518 {
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526   (eval $ac_compile) 2>&5
2527   ac_status=$?
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } &&
2530          { ac_try='test -s conftest.$ac_objext'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   ac_cv_prog_cxx_g=yes
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_cv_prog_cxx_g=no
2542 fi
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2544 fi
2545 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2546 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2547 if test "$ac_test_CXXFLAGS" = set; then
2548   CXXFLAGS=$ac_save_CXXFLAGS
2549 elif test $ac_cv_prog_cxx_g = yes; then
2550   if test "$GXX" = yes; then
2551     CXXFLAGS="-g -O2"
2552   else
2553     CXXFLAGS="-g"
2554   fi
2555 else
2556   if test "$GXX" = yes; then
2557     CXXFLAGS="-O2"
2558   else
2559     CXXFLAGS=
2560   fi
2561 fi
2562 for ac_declaration in \
2563    ''\
2564    '#include <stdlib.h>' \
2565    'extern "C" void std::exit (int) throw (); using std::exit;' \
2566    'extern "C" void std::exit (int); using std::exit;' \
2567    'extern "C" void exit (int) throw ();' \
2568    'extern "C" void exit (int);' \
2569    'void exit (int);'
2570 do
2571   cat >conftest.$ac_ext <<_ACEOF
2572 #line $LINENO "configure"
2573 /* confdefs.h.  */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h.  */
2578 #include <stdlib.h>
2579 $ac_declaration
2580 int
2581 main ()
2582 {
2583 exit (42);
2584   ;
2585   return 0;
2586 }
2587 _ACEOF
2588 rm -f conftest.$ac_objext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590   (eval $ac_compile) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); } &&
2594          { ac_try='test -s conftest.$ac_objext'
2595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596   (eval $ac_try) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; }; then
2600   :
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 continue
2606 fi
2607 rm -f conftest.$ac_objext conftest.$ac_ext
2608   cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2610 /* confdefs.h.  */
2611 _ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h.  */
2615 $ac_declaration
2616 int
2617 main ()
2618 {
2619 exit (42);
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); } &&
2630          { ac_try='test -s conftest.$ac_objext'
2631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632   (eval $ac_try) 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); }; }; then
2636   break
2637 else
2638   echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2640
2641 fi
2642 rm -f conftest.$ac_objext conftest.$ac_ext
2643 done
2644 rm -f conftest*
2645 if test -n "$ac_declaration"; then
2646   echo '#ifdef __cplusplus' >>confdefs.h
2647   echo $ac_declaration      >>confdefs.h
2648   echo '#endif'             >>confdefs.h
2649 fi
2650
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656
2657 if test "x$CC" != xcc; then
2658   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2659 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2660 else
2661   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2662 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2663 fi
2664 set dummy $CC; ac_cc=`echo $2 |
2665                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2666 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2667   echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669   cat >conftest.$ac_ext <<_ACEOF
2670 #line $LINENO "configure"
2671 /* confdefs.h.  */
2672 _ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h.  */
2676
2677 int
2678 main ()
2679 {
2680
2681   ;
2682   return 0;
2683 }
2684 _ACEOF
2685 # Make sure it works both with $CC and with simple cc.
2686 # We do the test twice because some compilers refuse to overwrite an
2687 # existing .o file with -o, though they will create one.
2688 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2689 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690   (eval $ac_try) 2>&5
2691   ac_status=$?
2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693   (exit $ac_status); } &&
2694    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695   (eval $ac_try) 2>&5
2696   ac_status=$?
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); };
2699 then
2700   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2701   if test "x$CC" != xcc; then
2702     # Test first that cc exists at all.
2703     if { ac_try='cc -c conftest.$ac_ext >&5'
2704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705   (eval $ac_try) 2>&5
2706   ac_status=$?
2707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); }; }; then
2709       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2710       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711   (eval $ac_try) 2>&5
2712   ac_status=$?
2713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } &&
2715          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716   (eval $ac_try) 2>&5
2717   ac_status=$?
2718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719   (exit $ac_status); };
2720       then
2721         # cc works too.
2722         :
2723       else
2724         # cc exists but doesn't like -o.
2725         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2726       fi
2727     fi
2728   fi
2729 else
2730   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2731 fi
2732 rm -f conftest*
2733
2734 fi
2735 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2736   echo "$as_me:$LINENO: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2738 else
2739   echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6
2741
2742 cat >>confdefs.h <<\_ACEOF
2743 #define NO_MINUS_C_MINUS_O 1
2744 _ACEOF
2745
2746 fi
2747
2748 ac_ext=c
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2754 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2755 # On Suns, sometimes $CPP names a directory.
2756 if test -n "$CPP" && test -d "$CPP"; then
2757   CPP=
2758 fi
2759 if test -z "$CPP"; then
2760   if test "${ac_cv_prog_CPP+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763       # Double quotes because CPP needs to be expanded
2764     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2765     do
2766       ac_preproc_ok=false
2767 for ac_c_preproc_warn_flag in '' yes
2768 do
2769   # Use a header file that comes with gcc, so configuring glibc
2770   # with a fresh cross-compiler works.
2771   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2772   # <limits.h> exists even on freestanding compilers.
2773   # On the NeXT, cc -E runs the code through the compiler's parser,
2774   # not just through cpp. "Syntax error" is here to catch this case.
2775   cat >conftest.$ac_ext <<_ACEOF
2776 #line $LINENO "configure"
2777 /* confdefs.h.  */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h.  */
2782 #ifdef __STDC__
2783 # include <limits.h>
2784 #else
2785 # include <assert.h>
2786 #endif
2787                      Syntax error
2788 _ACEOF
2789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2791   ac_status=$?
2792   grep -v '^ *+' conftest.er1 >conftest.err
2793   rm -f conftest.er1
2794   cat conftest.err >&5
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); } >/dev/null; then
2797   if test -s conftest.err; then
2798     ac_cpp_err=$ac_c_preproc_warn_flag
2799   else
2800     ac_cpp_err=
2801   fi
2802 else
2803   ac_cpp_err=yes
2804 fi
2805 if test -z "$ac_cpp_err"; then
2806   :
2807 else
2808   echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811   # Broken: fails on valid input.
2812 continue
2813 fi
2814 rm -f conftest.err conftest.$ac_ext
2815
2816   # OK, works on sane cases.  Now check whether non-existent headers
2817   # can be detected and how.
2818   cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2820 /* confdefs.h.  */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h.  */
2825 #include <ac_nonexistent.h>
2826 _ACEOF
2827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2828   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2829   ac_status=$?
2830   grep -v '^ *+' conftest.er1 >conftest.err
2831   rm -f conftest.er1
2832   cat conftest.err >&5
2833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834   (exit $ac_status); } >/dev/null; then
2835   if test -s conftest.err; then
2836     ac_cpp_err=$ac_c_preproc_warn_flag
2837   else
2838     ac_cpp_err=
2839   fi
2840 else
2841   ac_cpp_err=yes
2842 fi
2843 if test -z "$ac_cpp_err"; then
2844   # Broken: success on invalid input.
2845 continue
2846 else
2847   echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2849
2850   # Passes both tests.
2851 ac_preproc_ok=:
2852 break
2853 fi
2854 rm -f conftest.err conftest.$ac_ext
2855
2856 done
2857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2858 rm -f conftest.err conftest.$ac_ext
2859 if $ac_preproc_ok; then
2860   break
2861 fi
2862
2863     done
2864     ac_cv_prog_CPP=$CPP
2865
2866 fi
2867   CPP=$ac_cv_prog_CPP
2868 else
2869   ac_cv_prog_CPP=$CPP
2870 fi
2871 echo "$as_me:$LINENO: result: $CPP" >&5
2872 echo "${ECHO_T}$CPP" >&6
2873 ac_preproc_ok=false
2874 for ac_c_preproc_warn_flag in '' yes
2875 do
2876   # Use a header file that comes with gcc, so configuring glibc
2877   # with a fresh cross-compiler works.
2878   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2879   # <limits.h> exists even on freestanding compilers.
2880   # On the NeXT, cc -E runs the code through the compiler's parser,
2881   # not just through cpp. "Syntax error" is here to catch this case.
2882   cat >conftest.$ac_ext <<_ACEOF
2883 #line $LINENO "configure"
2884 /* confdefs.h.  */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h.  */
2889 #ifdef __STDC__
2890 # include <limits.h>
2891 #else
2892 # include <assert.h>
2893 #endif
2894                      Syntax error
2895 _ACEOF
2896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2897   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2898   ac_status=$?
2899   grep -v '^ *+' conftest.er1 >conftest.err
2900   rm -f conftest.er1
2901   cat conftest.err >&5
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); } >/dev/null; then
2904   if test -s conftest.err; then
2905     ac_cpp_err=$ac_c_preproc_warn_flag
2906   else
2907     ac_cpp_err=
2908   fi
2909 else
2910   ac_cpp_err=yes
2911 fi
2912 if test -z "$ac_cpp_err"; then
2913   :
2914 else
2915   echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918   # Broken: fails on valid input.
2919 continue
2920 fi
2921 rm -f conftest.err conftest.$ac_ext
2922
2923   # OK, works on sane cases.  Now check whether non-existent headers
2924   # can be detected and how.
2925   cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2927 /* confdefs.h.  */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h.  */
2932 #include <ac_nonexistent.h>
2933 _ACEOF
2934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2936   ac_status=$?
2937   grep -v '^ *+' conftest.er1 >conftest.err
2938   rm -f conftest.er1
2939   cat conftest.err >&5
2940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941   (exit $ac_status); } >/dev/null; then
2942   if test -s conftest.err; then
2943     ac_cpp_err=$ac_c_preproc_warn_flag
2944   else
2945     ac_cpp_err=
2946   fi
2947 else
2948   ac_cpp_err=yes
2949 fi
2950 if test -z "$ac_cpp_err"; then
2951   # Broken: success on invalid input.
2952 continue
2953 else
2954   echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2956
2957   # Passes both tests.
2958 ac_preproc_ok=:
2959 break
2960 fi
2961 rm -f conftest.err conftest.$ac_ext
2962
2963 done
2964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2965 rm -f conftest.err conftest.$ac_ext
2966 if $ac_preproc_ok; then
2967   :
2968 else
2969   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2970 See \`config.log' for more details." >&5
2971 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2972 See \`config.log' for more details." >&2;}
2973    { (exit 1); exit 1; }; }
2974 fi
2975
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981
2982
2983 echo "$as_me:$LINENO: checking for egrep" >&5
2984 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2985 if test "${ac_cv_prog_egrep+set}" = set; then
2986   echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2989     then ac_cv_prog_egrep='grep -E'
2990     else ac_cv_prog_egrep='egrep'
2991     fi
2992 fi
2993 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2994 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2995  EGREP=$ac_cv_prog_egrep
2996
2997
2998 if test $ac_cv_c_compiler_gnu = yes; then
2999     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3000 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3001 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3002   echo $ECHO_N "(cached) $ECHO_C" >&6
3003 else
3004     ac_pattern="Autoconf.*'x'"
3005   cat >conftest.$ac_ext <<_ACEOF
3006 #line $LINENO "configure"
3007 /* confdefs.h.  */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h.  */
3012 #include <sgtty.h>
3013 Autoconf TIOCGETP
3014 _ACEOF
3015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3016   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3017   ac_cv_prog_gcc_traditional=yes
3018 else
3019   ac_cv_prog_gcc_traditional=no
3020 fi
3021 rm -f conftest*
3022
3023
3024   if test $ac_cv_prog_gcc_traditional = no; then
3025     cat >conftest.$ac_ext <<_ACEOF
3026 #line $LINENO "configure"
3027 /* confdefs.h.  */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h.  */
3032 #include <termio.h>
3033 Autoconf TCGETA
3034 _ACEOF
3035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3036   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3037   ac_cv_prog_gcc_traditional=yes
3038 fi
3039 rm -f conftest*
3040
3041   fi
3042 fi
3043 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3044 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3045   if test $ac_cv_prog_gcc_traditional = yes; then
3046     CC="$CC -traditional"
3047   fi
3048 fi
3049
3050 if test x$CC = xgcc
3051 then
3052    cat >>confdefs.h <<\_ACEOF
3053 #define HAVE_GCC 1
3054 _ACEOF
3055
3056 fi
3057
3058 # Find a good install program.  We prefer a C program (faster),
3059 # so one script is as good as another.  But avoid the broken or
3060 # incompatible versions:
3061 # SysV /etc/install, /usr/sbin/install
3062 # SunOS /usr/etc/install
3063 # IRIX /sbin/install
3064 # AIX /bin/install
3065 # AmigaOS /C/install, which installs bootblocks on floppy discs
3066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3069 # ./install, which can be erroneously created by make from ./install.sh.
3070 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3071 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3072 if test -z "$INSTALL"; then
3073 if test "${ac_cv_path_install+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081   # Account for people who put trailing slashes in PATH elements.
3082 case $as_dir/ in
3083   ./ | .// | /cC/* | \
3084   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3085   /usr/ucb/* ) ;;
3086   *)
3087     # OSF1 and SCO ODT 3.0 have their own names for install.
3088     # Don't use installbsd from OSF since it installs stuff as root
3089     # by default.
3090     for ac_prog in ginstall scoinst install; do
3091       for ac_exec_ext in '' $ac_executable_extensions; do
3092         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3093           if test $ac_prog = install &&
3094             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3095             # AIX install.  It has an incompatible calling convention.
3096             :
3097           elif test $ac_prog = install &&
3098             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3099             # program-specific install script used by HP pwplus--don't use.
3100             :
3101           else
3102             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3103             break 3
3104           fi
3105         fi
3106       done
3107     done
3108     ;;
3109 esac
3110 done
3111
3112
3113 fi
3114   if test "${ac_cv_path_install+set}" = set; then
3115     INSTALL=$ac_cv_path_install
3116   else
3117     # As a last resort, use the slow shell script.  We don't cache a
3118     # path for INSTALL within a source directory, because that will
3119     # break other packages using the cache if that directory is
3120     # removed, or if the path is relative.
3121     INSTALL=$ac_install_sh
3122   fi
3123 fi
3124 echo "$as_me:$LINENO: result: $INSTALL" >&5
3125 echo "${ECHO_T}$INSTALL" >&6
3126
3127 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3128 # It thinks the first close brace ends the variable substitution.
3129 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3130
3131 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3132
3133 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3134
3135 if test -n "$ac_tool_prefix"; then
3136   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3138 echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3140 if test "${ac_cv_prog_RANLIB+set}" = set; then
3141   echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143   if test -n "$RANLIB"; then
3144   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149   IFS=$as_save_IFS
3150   test -z "$as_dir" && as_dir=.
3151   for ac_exec_ext in '' $ac_executable_extensions; do
3152   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155     break 2
3156   fi
3157 done
3158 done
3159
3160 fi
3161 fi
3162 RANLIB=$ac_cv_prog_RANLIB
3163 if test -n "$RANLIB"; then
3164   echo "$as_me:$LINENO: result: $RANLIB" >&5
3165 echo "${ECHO_T}$RANLIB" >&6
3166 else
3167   echo "$as_me:$LINENO: result: no" >&5
3168 echo "${ECHO_T}no" >&6
3169 fi
3170
3171 fi
3172 if test -z "$ac_cv_prog_RANLIB"; then
3173   ac_ct_RANLIB=$RANLIB
3174   # Extract the first word of "ranlib", so it can be a program name with args.
3175 set dummy ranlib; ac_word=$2
3176 echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3178 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3179   echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181   if test -n "$ac_ct_RANLIB"; then
3182   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187   IFS=$as_save_IFS
3188   test -z "$as_dir" && as_dir=.
3189   for ac_exec_ext in '' $ac_executable_extensions; do
3190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191     ac_cv_prog_ac_ct_RANLIB="ranlib"
3192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193     break 2
3194   fi
3195 done
3196 done
3197
3198   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3199 fi
3200 fi
3201 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3202 if test -n "$ac_ct_RANLIB"; then
3203   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3204 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3205 else
3206   echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6
3208 fi
3209
3210   RANLIB=$ac_ct_RANLIB
3211 else
3212   RANLIB="$ac_cv_prog_RANLIB"
3213 fi
3214
3215 # Extract the first word of "mv", so it can be a program name with args.
3216 set dummy mv; ac_word=$2
3217 echo "$as_me:$LINENO: checking for $ac_word" >&5
3218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219 if test "${ac_cv_path_MV+set}" = set; then
3220   echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222   case $MV in
3223   [\\/]* | ?:[\\/]*)
3224   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3225   ;;
3226   *)
3227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230   IFS=$as_save_IFS
3231   test -z "$as_dir" && as_dir=.
3232   for ac_exec_ext in '' $ac_executable_extensions; do
3233   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3235     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236     break 2
3237   fi
3238 done
3239 done
3240
3241   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3242   ;;
3243 esac
3244 fi
3245 MV=$ac_cv_path_MV
3246
3247 if test -n "$MV"; then
3248   echo "$as_me:$LINENO: result: $MV" >&5
3249 echo "${ECHO_T}$MV" >&6
3250 else
3251   echo "$as_me:$LINENO: result: no" >&5
3252 echo "${ECHO_T}no" >&6
3253 fi
3254
3255 # Extract the first word of "rm", so it can be a program name with args.
3256 set dummy rm; ac_word=$2
3257 echo "$as_me:$LINENO: checking for $ac_word" >&5
3258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3259 if test "${ac_cv_path_RM+set}" = set; then
3260   echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262   case $RM in
3263   [\\/]* | ?:[\\/]*)
3264   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3265   ;;
3266   *)
3267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270   IFS=$as_save_IFS
3271   test -z "$as_dir" && as_dir=.
3272   for ac_exec_ext in '' $ac_executable_extensions; do
3273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3276     break 2
3277   fi
3278 done
3279 done
3280
3281   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3282   ;;
3283 esac
3284 fi
3285 RM=$ac_cv_path_RM
3286
3287 if test -n "$RM"; then
3288   echo "$as_me:$LINENO: result: $RM" >&5
3289 echo "${ECHO_T}$RM" >&6
3290 else
3291   echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3293 fi
3294
3295 # Extract the first word of "cp", so it can be a program name with args.
3296 set dummy cp; ac_word=$2
3297 echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3299 if test "${ac_cv_path_CP+set}" = set; then
3300   echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302   case $CP in
3303   [\\/]* | ?:[\\/]*)
3304   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3305   ;;
3306   *)
3307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310   IFS=$as_save_IFS
3311   test -z "$as_dir" && as_dir=.
3312   for ac_exec_ext in '' $ac_executable_extensions; do
3313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3316     break 2
3317   fi
3318 done
3319 done
3320
3321   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3322   ;;
3323 esac
3324 fi
3325 CP=$ac_cv_path_CP
3326
3327 if test -n "$CP"; then
3328   echo "$as_me:$LINENO: result: $CP" >&5
3329 echo "${ECHO_T}$CP" >&6
3330 else
3331   echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3333 fi
3334
3335 # Extract the first word of "sed", so it can be a program name with args.
3336 set dummy sed; ac_word=$2
3337 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_path_SED+set}" = set; then
3340   echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342   case $SED in
3343   [\\/]* | ?:[\\/]*)
3344   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3345   ;;
3346   *)
3347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350   IFS=$as_save_IFS
3351   test -z "$as_dir" && as_dir=.
3352   for ac_exec_ext in '' $ac_executable_extensions; do
3353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356     break 2
3357   fi
3358 done
3359 done
3360
3361   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3362   ;;
3363 esac
3364 fi
3365 SED=$ac_cv_path_SED
3366
3367 if test -n "$SED"; then
3368   echo "$as_me:$LINENO: result: $SED" >&5
3369 echo "${ECHO_T}$SED" >&6
3370 else
3371   echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3373 fi
3374
3375 # Extract the first word of "awk", so it can be a program name with args.
3376 set dummy awk; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_path_AWK+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   case $AWK in
3383   [\\/]* | ?:[\\/]*)
3384   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3385   ;;
3386   *)
3387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390   IFS=$as_save_IFS
3391   test -z "$as_dir" && as_dir=.
3392   for ac_exec_ext in '' $ac_executable_extensions; do
3393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396     break 2
3397   fi
3398 done
3399 done
3400
3401   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3402   ;;
3403 esac
3404 fi
3405 AWK=$ac_cv_path_AWK
3406
3407 if test -n "$AWK"; then
3408   echo "$as_me:$LINENO: result: $AWK" >&5
3409 echo "${ECHO_T}$AWK" >&6
3410 else
3411   echo "$as_me:$LINENO: result: no" >&5
3412 echo "${ECHO_T}no" >&6
3413 fi
3414
3415 # Extract the first word of "echo", so it can be a program name with args.
3416 set dummy echo; ac_word=$2
3417 echo "$as_me:$LINENO: checking for $ac_word" >&5
3418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3419 if test "${ac_cv_path_ECHO+set}" = set; then
3420   echo $ECHO_N "(cached) $ECHO_C" >&6
3421 else
3422   case $ECHO in
3423   [\\/]* | ?:[\\/]*)
3424   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3425   ;;
3426   *)
3427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430   IFS=$as_save_IFS
3431   test -z "$as_dir" && as_dir=.
3432   for ac_exec_ext in '' $ac_executable_extensions; do
3433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436     break 2
3437   fi
3438 done
3439 done
3440
3441   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3442   ;;
3443 esac
3444 fi
3445 ECHO=$ac_cv_path_ECHO
3446
3447 if test -n "$ECHO"; then
3448   echo "$as_me:$LINENO: result: $ECHO" >&5
3449 echo "${ECHO_T}$ECHO" >&6
3450 else
3451   echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6
3453 fi
3454
3455 # Extract the first word of "cmp", so it can be a program name with args.
3456 set dummy cmp; ac_word=$2
3457 echo "$as_me:$LINENO: checking for $ac_word" >&5
3458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3459 if test "${ac_cv_path_CMP+set}" = set; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   case $CMP in
3463   [\\/]* | ?:[\\/]*)
3464   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3465   ;;
3466   *)
3467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH
3469 do
3470   IFS=$as_save_IFS
3471   test -z "$as_dir" && as_dir=.
3472   for ac_exec_ext in '' $ac_executable_extensions; do
3473   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476     break 2
3477   fi
3478 done
3479 done
3480
3481   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3482   ;;
3483 esac
3484 fi
3485 CMP=$ac_cv_path_CMP
3486
3487 if test -n "$CMP"; then
3488   echo "$as_me:$LINENO: result: $CMP" >&5
3489 echo "${ECHO_T}$CMP" >&6
3490 else
3491   echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3493 fi
3494
3495 # Extract the first word of "tbl", so it can be a program name with args.
3496 set dummy tbl; ac_word=$2
3497 echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3499 if test "${ac_cv_path_TBL+set}" = set; then
3500   echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502   case $TBL in
3503   [\\/]* | ?:[\\/]*)
3504   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3505   ;;
3506   *)
3507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3509 do
3510   IFS=$as_save_IFS
3511   test -z "$as_dir" && as_dir=.
3512   for ac_exec_ext in '' $ac_executable_extensions; do
3513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3514     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3516     break 2
3517   fi
3518 done
3519 done
3520
3521   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3522   ;;
3523 esac
3524 fi
3525 TBL=$ac_cv_path_TBL
3526
3527 if test -n "$TBL"; then
3528   echo "$as_me:$LINENO: result: $TBL" >&5
3529 echo "${ECHO_T}$TBL" >&6
3530 else
3531   echo "$as_me:$LINENO: result: no" >&5
3532 echo "${ECHO_T}no" >&6
3533 fi
3534
3535 # Extract the first word of "ar", so it can be a program name with args.
3536 set dummy ar; ac_word=$2
3537 echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3539 if test "${ac_cv_path_AR+set}" = set; then
3540   echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542   case $AR in
3543   [\\/]* | ?:[\\/]*)
3544   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3545   ;;
3546   *)
3547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   test -z "$as_dir" && as_dir=.
3552   for ac_exec_ext in '' $ac_executable_extensions; do
3553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556     break 2
3557   fi
3558 done
3559 done
3560
3561   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3562   ;;
3563 esac
3564 fi
3565 AR=$ac_cv_path_AR
3566
3567 if test -n "$AR"; then
3568   echo "$as_me:$LINENO: result: $AR" >&5
3569 echo "${ECHO_T}$AR" >&6
3570 else
3571   echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3573 fi
3574
3575 # Extract the first word of "openssl", so it can be a program name with args.
3576 set dummy openssl; ac_word=$2
3577 echo "$as_me:$LINENO: checking for $ac_word" >&5
3578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579 if test "${ac_cv_path_OPENSSL+set}" = set; then
3580   echo $ECHO_N "(cached) $ECHO_C" >&6
3581 else
3582   case $OPENSSL in
3583   [\\/]* | ?:[\\/]*)
3584   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3585   ;;
3586   *)
3587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3589 do
3590   IFS=$as_save_IFS
3591   test -z "$as_dir" && as_dir=.
3592   for ac_exec_ext in '' $ac_executable_extensions; do
3593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596     break 2
3597   fi
3598 done
3599 done
3600
3601   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3602   ;;
3603 esac
3604 fi
3605 OPENSSL=$ac_cv_path_OPENSSL
3606
3607 if test -n "$OPENSSL"; then
3608   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3609 echo "${ECHO_T}$OPENSSL" >&6
3610 else
3611   echo "$as_me:$LINENO: result: no" >&5
3612 echo "${ECHO_T}no" >&6
3613 fi
3614
3615 # Extract the first word of "mtx", so it can be a program name with args.
3616 set dummy mtx; ac_word=$2
3617 echo "$as_me:$LINENO: checking for $ac_word" >&5
3618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3619 if test "${ac_cv_path_MTX+set}" = set; then
3620   echo $ECHO_N "(cached) $ECHO_C" >&6
3621 else
3622   case $MTX in
3623   [\\/]* | ?:[\\/]*)
3624   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3625   ;;
3626   *)
3627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3629 do
3630   IFS=$as_save_IFS
3631   test -z "$as_dir" && as_dir=.
3632   for ac_exec_ext in '' $ac_executable_extensions; do
3633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3636     break 2
3637   fi
3638 done
3639 done
3640
3641   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3642   ;;
3643 esac
3644 fi
3645 MTX=$ac_cv_path_MTX
3646
3647 if test -n "$MTX"; then
3648   echo "$as_me:$LINENO: result: $MTX" >&5
3649 echo "${ECHO_T}$MTX" >&6
3650 else
3651   echo "$as_me:$LINENO: result: no" >&5
3652 echo "${ECHO_T}no" >&6
3653 fi
3654
3655 # Extract the first word of "pkg-config", so it can be a program name with args.
3656 set dummy pkg-config; ac_word=$2
3657 echo "$as_me:$LINENO: checking for $ac_word" >&5
3658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3659 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3660   echo $ECHO_N "(cached) $ECHO_C" >&6
3661 else
3662   case $PKGCONFIG in
3663   [\\/]* | ?:[\\/]*)
3664   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3665   ;;
3666   *)
3667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3669 do
3670   IFS=$as_save_IFS
3671   test -z "$as_dir" && as_dir=.
3672   for ac_exec_ext in '' $ac_executable_extensions; do
3673   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676     break 2
3677   fi
3678 done
3679 done
3680
3681   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3682   ;;
3683 esac
3684 fi
3685 PKGCONFIG=$ac_cv_path_PKGCONFIG
3686
3687 if test -n "$PKGCONFIG"; then
3688   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3689 echo "${ECHO_T}$PKGCONFIG" >&6
3690 else
3691   echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3693 fi
3694
3695 # Extract the first word of "wx-config", so it can be a program name with args.
3696 set dummy wx-config; ac_word=$2
3697 echo "$as_me:$LINENO: checking for $ac_word" >&5
3698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3699 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3700   echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702   case $WXCONFIG in
3703   [\\/]* | ?:[\\/]*)
3704   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3705   ;;
3706   *)
3707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712   for ac_exec_ext in '' $ac_executable_extensions; do
3713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716     break 2
3717   fi
3718 done
3719 done
3720
3721   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3722   ;;
3723 esac
3724 fi
3725 WXCONFIG=$ac_cv_path_WXCONFIG
3726
3727 if test -n "$WXCONFIG"; then
3728   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3729 echo "${ECHO_T}$WXCONFIG" >&6
3730 else
3731   echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3733 fi
3734
3735
3736 test -n "$ARFLAG" || ARFLAGS="cr"
3737
3738
3739 MAKE_SHELL=/bin/sh
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749 # Make sure we can run config.sub.
3750 $ac_config_sub sun4 >/dev/null 2>&1 ||
3751   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3752 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3753    { (exit 1); exit 1; }; }
3754
3755 echo "$as_me:$LINENO: checking build system type" >&5
3756 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3757 if test "${ac_cv_build+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   ac_cv_build_alias=$build_alias
3761 test -z "$ac_cv_build_alias" &&
3762   ac_cv_build_alias=`$ac_config_guess`
3763 test -z "$ac_cv_build_alias" &&
3764   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3765 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3766    { (exit 1); exit 1; }; }
3767 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3768   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3769 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3770    { (exit 1); exit 1; }; }
3771
3772 fi
3773 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3774 echo "${ECHO_T}$ac_cv_build" >&6
3775 build=$ac_cv_build
3776 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3777 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3778 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3779
3780
3781
3782 echo "$as_me:$LINENO: checking host system type" >&5
3783 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3784 if test "${ac_cv_host+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   ac_cv_host_alias=$host_alias
3788 test -z "$ac_cv_host_alias" &&
3789   ac_cv_host_alias=$ac_cv_build_alias
3790 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3791   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3792 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3793    { (exit 1); exit 1; }; }
3794
3795 fi
3796 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3797 echo "${ECHO_T}$ac_cv_host" >&6
3798 host=$ac_cv_host
3799 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3800 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3801 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3802
3803
3804 case $host_os in
3805   *cygwin* ) CYGWIN=yes;;
3806          * ) CYGWIN=no;;
3807 esac
3808
3809 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3810 then
3811
3812
3813 if $TRUEPRG; then
3814   HAVE_SUN_OS_TRUE=
3815   HAVE_SUN_OS_FALSE='#'
3816 else
3817   HAVE_SUN_OS_TRUE='#'
3818   HAVE_SUN_OS_FALSE=
3819 fi
3820         cat >>confdefs.h <<\_ACEOF
3821 #define HAVE_SUN_OS 1
3822 _ACEOF
3823
3824 else
3825
3826
3827 if $FALSEPRG; then
3828   HAVE_SUN_OS_TRUE=
3829   HAVE_SUN_OS_FALSE='#'
3830 else
3831   HAVE_SUN_OS_TRUE='#'
3832   HAVE_SUN_OS_FALSE=
3833 fi
3834 fi
3835
3836 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3837 then
3838
3839
3840 if $TRUEPRG; then
3841   HAVE_OSF1_OS_TRUE=
3842   HAVE_OSF1_OS_FALSE='#'
3843 else
3844   HAVE_OSF1_OS_TRUE='#'
3845   HAVE_OSF1_OS_FALSE=
3846 fi
3847         cat >>confdefs.h <<\_ACEOF
3848 #define HAVE_OSF1_OS 1
3849 _ACEOF
3850
3851 else
3852
3853
3854 if $FALSEPRG; then
3855   HAVE_OSF1_OS_TRUE=
3856   HAVE_OSF1_OS_FALSE='#'
3857 else
3858   HAVE_OSF1_OS_TRUE='#'
3859   HAVE_OSF1_OS_FALSE=
3860 fi
3861 fi
3862
3863 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3864 then
3865
3866
3867 if $TRUEPRG; then
3868   HAVE_AIX_OS_TRUE=
3869   HAVE_AIX_OS_FALSE='#'
3870 else
3871   HAVE_AIX_OS_TRUE='#'
3872   HAVE_AIX_OS_FALSE=
3873 fi
3874         cat >>confdefs.h <<\_ACEOF
3875 #define HAVE_AIX_OS 1
3876 _ACEOF
3877
3878 else
3879
3880
3881 if $FALSEPRG; then
3882   HAVE_AIX_OS_TRUE=
3883   HAVE_AIX_OS_FALSE='#'
3884 else
3885   HAVE_AIX_OS_TRUE='#'
3886   HAVE_AIX_OS_FALSE=
3887 fi
3888 fi
3889
3890 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3891 then
3892
3893
3894 if $TRUEPRG; then
3895   HAVE_HPUX_OS_TRUE=
3896   HAVE_HPUX_OS_FALSE='#'
3897 else
3898   HAVE_HPUX_OS_TRUE='#'
3899   HAVE_HPUX_OS_FALSE=
3900 fi
3901         cat >>confdefs.h <<\_ACEOF
3902 #define HAVE_HPUX_OS 1
3903 _ACEOF
3904
3905 else
3906
3907
3908 if $FALSEPRG; then
3909   HAVE_HPUX_OS_TRUE=
3910   HAVE_HPUX_OS_FALSE='#'
3911 else
3912   HAVE_HPUX_OS_TRUE='#'
3913   HAVE_HPUX_OS_FALSE=
3914 fi
3915 fi
3916
3917 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3918 then
3919
3920
3921 if $TRUEPRG; then
3922   HAVE_LINUX_OS_TRUE=
3923   HAVE_LINUX_OS_FALSE='#'
3924 else
3925   HAVE_LINUX_OS_TRUE='#'
3926   HAVE_LINUX_OS_FALSE=
3927 fi
3928         cat >>confdefs.h <<\_ACEOF
3929 #define HAVE_LINUX_OS 1
3930 _ACEOF
3931
3932 else
3933
3934
3935 if $FALSEPRG; then
3936   HAVE_LINUX_OS_TRUE=
3937   HAVE_LINUX_OS_FALSE='#'
3938 else
3939   HAVE_LINUX_OS_TRUE='#'
3940   HAVE_LINUX_OS_FALSE=
3941 fi
3942 fi
3943
3944 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3945 then
3946
3947
3948 if $TRUEPRG; then
3949   HAVE_FREEBSD_OS_TRUE=
3950   HAVE_FREEBSD_OS_FALSE='#'
3951 else
3952   HAVE_FREEBSD_OS_TRUE='#'
3953   HAVE_FREEBSD_OS_FALSE=
3954 fi
3955         cat >>confdefs.h <<\_ACEOF
3956 #define HAVE_FREEBSD_OS 1
3957 _ACEOF
3958
3959 else
3960
3961
3962 if $FALSEPRG; then
3963   HAVE_FREEBSD_OS_TRUE=
3964   HAVE_FREEBSD_OS_FALSE='#'
3965 else
3966   HAVE_FREEBSD_OS_TRUE='#'
3967   HAVE_FREEBSD_OS_FALSE=
3968 fi
3969 fi
3970
3971 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3972 then
3973
3974
3975 if $TRUEPRG; then
3976   HAVE_NETBSD_OS_TRUE=
3977   HAVE_NETBSD_OS_FALSE='#'
3978 else
3979   HAVE_NETBSD_OS_TRUE='#'
3980   HAVE_NETBSD_OS_FALSE=
3981 fi
3982         cat >>confdefs.h <<\_ACEOF
3983 #define HAVE_NETBSD_OS 1
3984 _ACEOF
3985
3986 else
3987
3988
3989 if $FALSEPRG; then
3990   HAVE_NETBSD_OS_TRUE=
3991   HAVE_NETBSD_OS_FALSE='#'
3992 else
3993   HAVE_NETBSD_OS_TRUE='#'
3994   HAVE_NETBSD_OS_FALSE=
3995 fi
3996 fi
3997
3998 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3999 then
4000
4001
4002 if $TRUEPRG; then
4003   HAVE_OPENBSD_OS_TRUE=
4004   HAVE_OPENBSD_OS_FALSE='#'
4005 else
4006   HAVE_OPENBSD_OS_TRUE='#'
4007   HAVE_OPENBSD_OS_FALSE=
4008 fi
4009         cat >>confdefs.h <<\_ACEOF
4010 #define HAVE_OPENBSD_OS 1
4011 _ACEOF
4012
4013 else
4014
4015
4016 if $FALSEPRG; then
4017   HAVE_OPENBSD_OS_TRUE=
4018   HAVE_OPENBSD_OS_FALSE='#'
4019 else
4020   HAVE_OPENBSD_OS_TRUE='#'
4021   HAVE_OPENBSD_OS_FALSE=
4022 fi
4023 fi
4024
4025 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4026 then
4027
4028
4029 if $TRUEPRG; then
4030   HAVE_BSDI_OS_TRUE=
4031   HAVE_BSDI_OS_FALSE='#'
4032 else
4033   HAVE_BSDI_OS_TRUE='#'
4034   HAVE_BSDI_OS_FALSE=
4035 fi
4036         cat >>confdefs.h <<\_ACEOF
4037 #define HAVE_BSDI_OS 1
4038 _ACEOF
4039
4040 else
4041
4042
4043 if $FALSEPRG; then
4044   HAVE_BSDI_OS_TRUE=
4045   HAVE_BSDI_OS_FALSE='#'
4046 else
4047   HAVE_BSDI_OS_TRUE='#'
4048   HAVE_BSDI_OS_FALSE=
4049 fi
4050 fi
4051
4052 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4053 then
4054
4055
4056 if $TRUEPRG; then
4057   HAVE_SGI_OS_TRUE=
4058   HAVE_SGI_OS_FALSE='#'
4059 else
4060   HAVE_SGI_OS_TRUE='#'
4061   HAVE_SGI_OS_FALSE=
4062 fi
4063         cat >>confdefs.h <<\_ACEOF
4064 #define HAVE_SGI_OS 1
4065 _ACEOF
4066
4067 else
4068
4069
4070 if $FALSEPRG; then
4071   HAVE_SGI_OS_TRUE=
4072   HAVE_SGI_OS_FALSE='#'
4073 else
4074   HAVE_SGI_OS_TRUE='#'
4075   HAVE_SGI_OS_FALSE=
4076 fi
4077 fi
4078
4079 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4080 then
4081
4082
4083 if $TRUEPRG; then
4084   HAVE_IRIX_OS_TRUE=
4085   HAVE_IRIX_OS_FALSE='#'
4086 else
4087   HAVE_IRIX_OS_TRUE='#'
4088   HAVE_IRIX_OS_FALSE=
4089 fi
4090         cat >>confdefs.h <<\_ACEOF
4091 #define HAVE_IRIX_OS 1
4092 _ACEOF
4093
4094 else
4095
4096
4097 if $FALSEPRG; then
4098   HAVE_IRIX_OS_TRUE=
4099   HAVE_IRIX_OS_FALSE='#'
4100 else
4101   HAVE_IRIX_OS_TRUE='#'
4102   HAVE_IRIX_OS_FALSE=
4103 fi
4104 fi
4105
4106 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4107 then
4108
4109
4110 if $TRUEPRG; then
4111   HAVE_DARWIN_OS_TRUE=
4112   HAVE_DARWIN_OS_FALSE='#'
4113 else
4114   HAVE_DARWIN_OS_TRUE='#'
4115   HAVE_DARWIN_OS_FALSE=
4116 fi
4117     cat >>confdefs.h <<\_ACEOF
4118 #define HAVE_DARWIN_OS 1
4119 _ACEOF
4120
4121 else
4122
4123
4124 if $FALSEPRG; then
4125   HAVE_DARWIN_OS_TRUE=
4126   HAVE_DARWIN_OS_FALSE='#'
4127 else
4128   HAVE_DARWIN_OS_TRUE='#'
4129   HAVE_DARWIN_OS_FALSE=
4130 fi
4131 fi
4132
4133
4134 # -----------------------------------------------------------
4135 # ----------------------------------------------------------
4136 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4137 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4138 if test "x$DISTNAME" != "x"
4139 then
4140         echo "distname set to $DISTNAME"
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4142 then
4143         DISTNAME=alpha
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4145 then
4146         DISTNAME=aix
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4148 then
4149         DISTNAME=hpux
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4151 then
4152         DISTNAME=solaris
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4154 then
4155         DISTNAME=freebsd
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4157 then
4158         DISTNAME=netbsd
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4160 then
4161         DISTNAME=openbsd
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4163 then
4164         DISTNAME=irix
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4166 then
4167         DISTNAME=bsdi
4168 elif test -f /etc/SuSE-release
4169 then
4170         DISTNAME=suse
4171 elif test -d /etc/SuSEconfig
4172 then
4173         DISTNAME=suse5
4174 elif test -f /etc/mandrake-release
4175 then
4176         DISTNAME=mandrake
4177 elif test -f /etc/whitebox-release
4178 then
4179        DISTNAME=redhat
4180 elif test -f /etc/redhat-release
4181 then
4182         DISTNAME=redhat
4183 elif test -f /etc/gentoo-release
4184 then
4185         DISTNAME=gentoo
4186 elif test -f /etc/debian_version
4187 then
4188         DISTNAME=debian
4189 elif test -f /etc/slackware-version
4190 then
4191         DISTNAME=slackware
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4193 then
4194     DISTNAME=darwin
4195 elif test -f /etc/engarde-version
4196 then
4197         DISTNAME=engarde
4198 elif test "$CYGWIN" = yes
4199 then
4200         DISTNAME=cygwin
4201         cat >>confdefs.h <<\_ACEOF
4202 #define HAVE_CYGWIN 1
4203 _ACEOF
4204
4205 else
4206         DISTNAME=unknown
4207 fi
4208 echo "$as_me:$LINENO: result: done" >&5
4209 echo "${ECHO_T}done" >&6
4210
4211
4212 # -----------------------------------------------------------
4213 # ----------------------------------------------------------
4214
4215
4216
4217 if false; then
4218   INSIDE_GNOME_COMMON_TRUE=
4219   INSIDE_GNOME_COMMON_FALSE='#'
4220 else
4221   INSIDE_GNOME_COMMON_TRUE='#'
4222   INSIDE_GNOME_COMMON_FALSE=
4223 fi
4224
4225         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4226
4227         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4228
4229
4230 # ------------------------------------------------------------------
4231 #  If the user has not set --prefix, we set our default to nothing.
4232 #  In this case, if the user has not set --sysconfdir, we set it
4233 #  to the package default of /etc/bacula.  If either --prefix or
4234 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4235 # ------------------------------------------------------------------
4236 if test x${prefix} = xNONE ; then
4237     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4238         sysconfdir=/etc/bacula
4239     fi
4240     prefix=
4241 fi
4242 sysconfdir=`eval echo ${sysconfdir}`
4243
4244 # -------------------------------------------------------------------------
4245 #  If the user has not set --exec-prefix, we default to ${prefix}
4246 # -------------------------------------------------------------------------
4247 if test x${exec_prefix} = xNONE ; then
4248     exec_prefix=${prefix}
4249 fi
4250
4251 # ------------------------------------------------------------------
4252 # If the user has not set --sbindir, we set our default as /sbin
4253 # ------------------------------------------------------------------
4254 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4255     sbindir=${exec_prefix}/sbin
4256 fi
4257 sbindir=`eval echo ${sbindir}`
4258
4259 # ------------------------------------------------------------------
4260 # All list of languages for which a translation exist. Each
4261 #  language is separated by a space.
4262 # ------------------------------------------------------------------
4263 ALL_LINGUAS=""
4264
4265 for ac_prog in msgfmt
4266 do
4267   # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4271 if test "${ac_cv_path_MSGFMT+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   case $MSGFMT in
4275   [\\/]* | ?:[\\/]*)
4276   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4277   ;;
4278   *)
4279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284   for ac_exec_ext in '' $ac_executable_extensions; do
4285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4286     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291 done
4292
4293   ;;
4294 esac
4295 fi
4296 MSGFMT=$ac_cv_path_MSGFMT
4297
4298 if test -n "$MSGFMT"; then
4299   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4300 echo "${ECHO_T}$MSGFMT" >&6
4301 else
4302   echo "$as_me:$LINENO: result: no" >&5
4303 echo "${ECHO_T}no" >&6
4304 fi
4305
4306   test -n "$MSGFMT" && break
4307 done
4308 test -n "$MSGFMT" || MSGFMT="no"
4309
4310 if test "$MSGFMT" = "no"
4311 then
4312    echo 'msgfmt program not found, disabling NLS !'
4313    USE_NLS=no
4314    USE_INCLUDED_LIBINTL=no
4315 #else
4316 #   AM_GNU_GETTEXT
4317 fi
4318
4319
4320 support_mysql=no
4321 support_sqlite=no
4322 support_postgresql=no
4323 support_smartalloc=yes
4324 support_readline=yes
4325 support_conio=yes
4326 support_gnome=no
4327 support_wx_console=no
4328 gnome_version=
4329 support_static_tools=no
4330 support_static_fd=no
4331 support_static_sd=no
4332 support_static_dir=no
4333 support_static_cons=no
4334 build_client_only=no
4335 cats=
4336 db_name=Internal
4337 DB_NAME=bdb
4338
4339
4340 # -------------------------------------------
4341 # gnome (default off)
4342 # -------------------------------------------
4343 # Check whether --enable-gnome or --disable-gnome was given.
4344 if test "${enable_gnome+set}" = set; then
4345   enableval="$enable_gnome"
4346   if test x$enableval = xyes; then
4347     support_gnome=yes
4348   fi
4349 fi;
4350
4351 GNOME_DIR=
4352 if test x$support_gnome = xyes; then
4353   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4354   pkg=$?
4355   if test $pkg = 0; then
4356      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4357      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4358      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4359      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4360
4361
4362
4363
4364      GNOME_DIR=src/gnome2-console
4365      gnome_version="Version 2.x"
4366   else
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4379 if test "${with_gnome_includes+set}" = set; then
4380   withval="$with_gnome_includes"
4381
4382         CFLAGS="$CFLAGS -I$withval"
4383
4384 fi;
4385
4386
4387 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4388 if test "${with_gnome_libs+set}" = set; then
4389   withval="$with_gnome_libs"
4390
4391         LDFLAGS="$LDFLAGS -L$withval"
4392         gnome_prefix=$withval
4393
4394 fi;
4395
4396
4397 # Check whether --with-gnome or --without-gnome was given.
4398 if test "${with_gnome+set}" = set; then
4399   withval="$with_gnome"
4400   if test x$withval = xyes; then
4401                         want_gnome=yes
4402                                                                         :
4403                 else
4404                         if test "x$withval" = xno; then
4405                                 want_gnome=no
4406                         else
4407                                 want_gnome=yes
4408                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4409                                 CFLAGS="$CFLAGS -I$withval/include"
4410                                 gnome_prefix=$withval/lib
4411                         fi
4412                 fi
4413 else
4414   want_gnome=yes
4415 fi;
4416
4417         if test "x$want_gnome" = xyes; then
4418
4419             # Extract the first word of "gnome-config", so it can be a program name with args.
4420 set dummy gnome-config; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4424   echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426   case $GNOME_CONFIG in
4427   [\\/]* | ?:[\\/]*)
4428   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4429   ;;
4430   *)
4431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4433 do
4434   IFS=$as_save_IFS
4435   test -z "$as_dir" && as_dir=.
4436   for ac_exec_ext in '' $ac_executable_extensions; do
4437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440     break 2
4441   fi
4442 done
4443 done
4444
4445   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4446   ;;
4447 esac
4448 fi
4449 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4450
4451 if test -n "$GNOME_CONFIG"; then
4452   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4453 echo "${ECHO_T}$GNOME_CONFIG" >&6
4454 else
4455   echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6
4457 fi
4458
4459             if test "$GNOME_CONFIG" = "no"; then
4460               no_gnome_config="yes"
4461             else
4462               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4463 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4464               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4465                 echo "$as_me:$LINENO: result: yes" >&5
4466 echo "${ECHO_T}yes" >&6
4467
4468
4469         # Extract the first word of "orbit-config", so it can be a program name with args.
4470 set dummy orbit-config; ac_word=$2
4471 echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4473 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   case $ORBIT_CONFIG in
4477   [\\/]* | ?:[\\/]*)
4478   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4479   ;;
4480   *)
4481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4488     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494
4495   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4496   ;;
4497 esac
4498 fi
4499 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4500
4501 if test -n "$ORBIT_CONFIG"; then
4502   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4503 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4504 else
4505   echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6
4507 fi
4508
4509         # Extract the first word of "orbit-idl", so it can be a program name with args.
4510 set dummy orbit-idl; ac_word=$2
4511 echo "$as_me:$LINENO: checking for $ac_word" >&5
4512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4513 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4514   echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516   case $ORBIT_IDL in
4517   [\\/]* | ?:[\\/]*)
4518   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4519   ;;
4520   *)
4521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4523 do
4524   IFS=$as_save_IFS
4525   test -z "$as_dir" && as_dir=.
4526   for ac_exec_ext in '' $ac_executable_extensions; do
4527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4528     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530     break 2
4531   fi
4532 done
4533 done
4534
4535   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4536   ;;
4537 esac
4538 fi
4539 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4540
4541 if test -n "$ORBIT_IDL"; then
4542   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4543 echo "${ECHO_T}$ORBIT_IDL" >&6
4544 else
4545   echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6
4547 fi
4548
4549         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4550 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4551 if test "${gnome_cv_orbit_found+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554
4555                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4556                         gnome_cv_orbit_found=no
4557                 else
4558                         gnome_cv_orbit_found=yes
4559                 fi
4560
4561 fi
4562 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4563 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4564
4565
4566 if test x$gnome_cv_orbit_found = xyes; then
4567   HAVE_ORBIT_TRUE=
4568   HAVE_ORBIT_FALSE='#'
4569 else
4570   HAVE_ORBIT_TRUE='#'
4571   HAVE_ORBIT_FALSE=
4572 fi
4573         if test x$gnome_cv_orbit_found = xyes; then
4574
4575                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4576                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4577
4578
4579         else
4580                 if test xfail = xfailure; then
4581                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4582 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4583    { (exit 1); exit 1; }; }
4584                 fi
4585         fi
4586
4587         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4588 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4589 if test "${gnome_cv_gnorba_found+set}" = set; then
4590   echo $ECHO_N "(cached) $ECHO_C" >&6
4591 else
4592
4593                 gnome_cv_gnorba_found=no
4594                 if test x$gnome_cv_orbit_found = xyes; then
4595                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4596                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4597                         if test -n "$GNORBA_LIBS"; then
4598                                 gnome_cv_gnorba_found=yes
4599                         fi
4600                 fi
4601
4602 fi
4603 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4604 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4605
4606
4607 if test x$gnome_cv_gnorba_found = xyes; then
4608   HAVE_GNORBA_TRUE=
4609   HAVE_GNORBA_FALSE='#'
4610 else
4611   HAVE_GNORBA_TRUE='#'
4612   HAVE_GNORBA_FALSE=
4613 fi
4614         if test x$gnome_cv_orbit_found = xyes; then
4615
4616                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4617                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4618
4619
4620         else
4621                 if test xfail = xfailure; then
4622                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4623 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4624    { (exit 1); exit 1; }; }
4625                 fi
4626         fi
4627
4628                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4629                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4630                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4631                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4632                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4633                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4634                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4635
4636               else
4637                 echo "$as_me:$LINENO: result: no" >&5
4638 echo "${ECHO_T}no" >&6
4639                 no_gnome_config="yes"
4640               fi
4641             fi
4642
4643             if test x$exec_prefix = xNONE; then
4644                 if test x$prefix = xNONE; then
4645                     gnome_prefix=$ac_default_prefix/lib
4646                 else
4647                     gnome_prefix=$prefix/lib
4648                 fi
4649             else
4650                 gnome_prefix=`eval echo \`echo $libdir\``
4651             fi
4652
4653             if test "$no_gnome_config" = "yes"; then
4654               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4655 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4656               if test -f $gnome_prefix/gnomeConf.sh; then
4657                 echo "$as_me:$LINENO: result: found" >&5
4658 echo "${ECHO_T}found" >&6
4659                 echo "loading gnome configuration from" \
4660                      "$gnome_prefix/gnomeConf.sh"
4661                 . $gnome_prefix/gnomeConf.sh
4662
4663               else
4664                 echo "$as_me:$LINENO: result: not found" >&5
4665 echo "${ECHO_T}not found" >&6
4666                 if test xfail = xfail; then
4667                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4668 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4669    { (exit 1); exit 1; }; }
4670                 fi
4671               fi
4672             fi
4673         fi
4674
4675         if test -n ""; then
4676           n=""
4677           for i in $n; do
4678             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4679 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4680             case $i in
4681               applets)
4682
4683                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4684                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4685 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4686               docklets)
4687
4688                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4689                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4690 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4691               capplet)
4692
4693                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4694                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4695 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4696               *)
4697                 echo "$as_me:$LINENO: result: unknown library" >&5
4698 echo "${ECHO_T}unknown library" >&6
4699             esac
4700             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4701             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4702           done
4703         fi
4704
4705
4706      GNOME_DIR=src/gnome-console
4707      gnome_version="Version 1.4"
4708   fi
4709 fi
4710
4711
4712
4713 # -------------------------------------------
4714 # wx-console (default off)
4715 # -------------------------------------------
4716 # Check whether --enable-wx-console or --disable-wx-console was given.
4717 if test "${enable_wx_console+set}" = set; then
4718   enableval="$enable_wx_console"
4719   if test x$enableval = xyes; then
4720     support_wx_console=yes
4721   fi
4722 fi;
4723
4724 WX_DIR=
4725 if test x$support_wx_console = xyes; then
4726   abc=`$WXCONFIG --cppflags`
4727   pkg=$?
4728   if test $pkg = 0; then
4729      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4730      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4731
4732
4733      WX_DIR=src/wx-console
4734   else
4735      echo " "
4736      echo "wx-config program not found. wx-console disabled."
4737      echo " "
4738      support_wx_console=no
4739   fi
4740 fi
4741
4742
4743
4744 # -------------------------------------------
4745 # tray-monitor (default off)
4746 # -------------------------------------------
4747 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4748 if test "${enable_tray_monitor+set}" = set; then
4749   enableval="$enable_tray_monitor"
4750   if test x$enableval = xyes; then
4751     support_tray_monitor=yes
4752   fi
4753 fi;
4754
4755 TRAY_MONITOR_DIR=
4756 if test x$support_tray_monitor = xyes; then
4757   abc=`$PKGCONFIG --exists gtk+-2.0`
4758   pkg=$?
4759   if test $pkg = 0; then
4760      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4761      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4762
4763
4764      TRAY_MONITOR_DIR=src/tray-monitor
4765   fi
4766 fi
4767
4768
4769 # -------------------------------------------
4770 # smartalloc (default off)
4771 # -------------------------------------------
4772 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4773 if test "${enable_smartalloc+set}" = set; then
4774   enableval="$enable_smartalloc"
4775   if test x$enableval = xno; then
4776     support_smartalloc=no
4777   fi
4778 fi;
4779
4780 if test x$support_smartalloc = xyes; then
4781    cat >>confdefs.h <<\_ACEOF
4782 #define SMARTALLOC 1
4783 _ACEOF
4784
4785 fi
4786
4787 # -------------------------------------------
4788 # static-tools (default off)
4789 # -------------------------------------------
4790 # Check whether --enable-static-tools or --disable-static-tools was given.
4791 if test "${enable_static_tools+set}" = set; then
4792   enableval="$enable_static_tools"
4793   if test x$enableval = xyes; then
4794      support_static_tools=yes
4795    fi
4796 fi;
4797
4798 TTOOL_LDFLAGS=
4799 if test x$support_static_tools = xyes; then
4800    TTOOL_LDFLAGS="-static"
4801 fi
4802
4803
4804 # -------------------------------------------
4805 # static-fd    (default off)
4806 # -------------------------------------------
4807 # Check whether --enable-static-fd or --disable-static-fd was given.
4808 if test "${enable_static_fd+set}" = set; then
4809   enableval="$enable_static_fd"
4810   if test x$enableval = xyes; then
4811      support_static_fd=yes
4812    fi
4813 fi;
4814
4815 STATIC_FD=
4816 if test x$support_static_fd = xyes; then
4817    STATIC_FD="static-bacula-fd"
4818 fi
4819
4820
4821 # -------------------------------------------
4822 # static-sd    (default off)
4823 # -------------------------------------------
4824 # Check whether --enable-static-sd or --disable-static-sd was given.
4825 if test "${enable_static_sd+set}" = set; then
4826   enableval="$enable_static_sd"
4827   if test x$enableval = xyes; then
4828      support_static_sd=yes
4829    fi
4830 fi;
4831
4832 STATIC_SD=
4833 if test x$support_static_sd = xyes; then
4834    STATIC_SD="static-bacula-sd"
4835 fi
4836
4837
4838 # -------------------------------------------
4839 # static-dir   (default off)
4840 # -------------------------------------------
4841 # Check whether --enable-static-dir or --disable-static-dir was given.
4842 if test "${enable_static_dir+set}" = set; then
4843   enableval="$enable_static_dir"
4844   if test x$enableval = xyes; then
4845      support_static_dir=yes
4846    fi
4847 fi;
4848
4849 STATIC_DIR=
4850 if test x$support_static_dir = xyes; then
4851    STATIC_DIR="static-bacula-dir"
4852 fi
4853
4854
4855 # -------------------------------------------
4856 # static-cons  (default off)
4857 # -------------------------------------------
4858 # Check whether --enable-static-cons or --disable-static-cons was given.
4859 if test "${enable_static_cons+set}" = set; then
4860   enableval="$enable_static_cons"
4861   if test x$enableval = xyes; then
4862      support_static_cons=yes
4863    fi
4864 fi;
4865
4866 STATIC_CONS=
4867 STATIC_GNOME_CONS=
4868 STATIC_WX_CONS=
4869 if test x$support_static_cons = xyes; then
4870    STATIC_CONS="static-bconsole"
4871    STATIC_GNOME_CONS="static-gnome-console"
4872    STATIC_WX_CONS="static-wx-console"
4873 fi
4874
4875
4876
4877
4878 # -------------------------------------------
4879 # client_only  (default off)
4880 # -------------------------------------------
4881 # Check whether --enable-client-only or --disable-client-only was given.
4882 if test "${enable_client_only+set}" = set; then
4883   enableval="$enable_client_only"
4884   if test x$enableval = xyes; then
4885      build_client_only=yes
4886     db_name=None
4887     DB_NAME=none
4888    fi
4889 fi;
4890 if test x$build_client_only = xno; then
4891    ALL_DIRS="subdirs"
4892 else
4893    ALL_DIRS=""
4894 fi
4895
4896
4897 # ---------------------------------------------------
4898 # Check for conio (Bacula readline substitute)(
4899 # ---------------------------------------------------
4900 # this allows you to turn it completely off
4901 # Check whether --enable-conio or --disable-conio was given.
4902 if test "${enable_conio+set}" = set; then
4903   enableval="$enable_conio"
4904   if test x$enableval = xno; then
4905     support_conio=no
4906   fi
4907 fi;
4908
4909 got_conio="no"
4910 if test x$support_conio = xyes; then
4911    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4912 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4913 if test "${ac_cv_header_stdc+set}" = set; then
4914   echo $ECHO_N "(cached) $ECHO_C" >&6
4915 else
4916   cat >conftest.$ac_ext <<_ACEOF
4917 #line $LINENO "configure"
4918 /* confdefs.h.  */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h.  */
4923 #include <stdlib.h>
4924 #include <stdarg.h>
4925 #include <string.h>
4926 #include <float.h>
4927
4928 int
4929 main ()
4930 {
4931
4932   ;
4933   return 0;
4934 }
4935 _ACEOF
4936 rm -f conftest.$ac_objext
4937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4938   (eval $ac_compile) 2>&5
4939   ac_status=$?
4940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941   (exit $ac_status); } &&
4942          { ac_try='test -s conftest.$ac_objext'
4943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944   (eval $ac_try) 2>&5
4945   ac_status=$?
4946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947   (exit $ac_status); }; }; then
4948   ac_cv_header_stdc=yes
4949 else
4950   echo "$as_me: failed program was:" >&5
4951 sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 ac_cv_header_stdc=no
4954 fi
4955 rm -f conftest.$ac_objext conftest.$ac_ext
4956
4957 if test $ac_cv_header_stdc = yes; then
4958   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4959   cat >conftest.$ac_ext <<_ACEOF
4960 #line $LINENO "configure"
4961 /* confdefs.h.  */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h.  */
4966 #include <string.h>
4967
4968 _ACEOF
4969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4970   $EGREP "memchr" >/dev/null 2>&1; then
4971   :
4972 else
4973   ac_cv_header_stdc=no
4974 fi
4975 rm -f conftest*
4976
4977 fi
4978
4979 if test $ac_cv_header_stdc = yes; then
4980   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4981   cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4983 /* confdefs.h.  */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h.  */
4988 #include <stdlib.h>
4989
4990 _ACEOF
4991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4992   $EGREP "free" >/dev/null 2>&1; then
4993   :
4994 else
4995   ac_cv_header_stdc=no
4996 fi
4997 rm -f conftest*
4998
4999 fi
5000
5001 if test $ac_cv_header_stdc = yes; then
5002   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5003   if test "$cross_compiling" = yes; then
5004   :
5005 else
5006   cat >conftest.$ac_ext <<_ACEOF
5007 #line $LINENO "configure"
5008 /* confdefs.h.  */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h.  */
5013 #include <ctype.h>
5014 #if ((' ' & 0x0FF) == 0x020)
5015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5017 #else
5018 # define ISLOWER(c) \
5019                    (('a' <= (c) && (c) <= 'i') \
5020                      || ('j' <= (c) && (c) <= 'r') \
5021                      || ('s' <= (c) && (c) <= 'z'))
5022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5023 #endif
5024
5025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5026 int
5027 main ()
5028 {
5029   int i;
5030   for (i = 0; i < 256; i++)
5031     if (XOR (islower (i), ISLOWER (i))
5032         || toupper (i) != TOUPPER (i))
5033       exit(2);
5034   exit (0);
5035 }
5036 _ACEOF
5037 rm -f conftest$ac_exeext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5039   (eval $ac_link) 2>&5
5040   ac_status=$?
5041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044   (eval $ac_try) 2>&5
5045   ac_status=$?
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); }; }; then
5048   :
5049 else
5050   echo "$as_me: program exited with status $ac_status" >&5
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054 ( exit $ac_status )
5055 ac_cv_header_stdc=no
5056 fi
5057 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5058 fi
5059 fi
5060 fi
5061 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5062 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5063 if test $ac_cv_header_stdc = yes; then
5064
5065 cat >>confdefs.h <<\_ACEOF
5066 #define STDC_HEADERS 1
5067 _ACEOF
5068
5069 fi
5070
5071 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5082                   inttypes.h stdint.h unistd.h
5083 do
5084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5085 echo "$as_me:$LINENO: checking for $ac_header" >&5
5086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090   cat >conftest.$ac_ext <<_ACEOF
5091 #line $LINENO "configure"
5092 /* confdefs.h.  */
5093 _ACEOF
5094 cat confdefs.h >>conftest.$ac_ext
5095 cat >>conftest.$ac_ext <<_ACEOF
5096 /* end confdefs.h.  */
5097 $ac_includes_default
5098
5099 #include <$ac_header>
5100 _ACEOF
5101 rm -f conftest.$ac_objext
5102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5103   (eval $ac_compile) 2>&5
5104   ac_status=$?
5105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106   (exit $ac_status); } &&
5107          { ac_try='test -s conftest.$ac_objext'
5108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109   (eval $ac_try) 2>&5
5110   ac_status=$?
5111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112   (exit $ac_status); }; }; then
5113   eval "$as_ac_Header=yes"
5114 else
5115   echo "$as_me: failed program was:" >&5
5116 sed 's/^/| /' conftest.$ac_ext >&5
5117
5118 eval "$as_ac_Header=no"
5119 fi
5120 rm -f conftest.$ac_objext conftest.$ac_ext
5121 fi
5122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5125   cat >>confdefs.h <<_ACEOF
5126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5127 _ACEOF
5128
5129 fi
5130
5131 done
5132
5133
5134 if test "${ac_cv_header_termcap_h+set}" = set; then
5135   echo "$as_me:$LINENO: checking for termcap.h" >&5
5136 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5137 if test "${ac_cv_header_termcap_h+set}" = set; then
5138   echo $ECHO_N "(cached) $ECHO_C" >&6
5139 fi
5140 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5141 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5142 else
5143   # Is the header compilable?
5144 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5145 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5146 cat >conftest.$ac_ext <<_ACEOF
5147 #line $LINENO "configure"
5148 /* confdefs.h.  */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h.  */
5153 $ac_includes_default
5154 #include <termcap.h>
5155 _ACEOF
5156 rm -f conftest.$ac_objext
5157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5158   (eval $ac_compile) 2>&5
5159   ac_status=$?
5160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161   (exit $ac_status); } &&
5162          { ac_try='test -s conftest.$ac_objext'
5163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164   (eval $ac_try) 2>&5
5165   ac_status=$?
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); }; }; then
5168   ac_header_compiler=yes
5169 else
5170   echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173 ac_header_compiler=no
5174 fi
5175 rm -f conftest.$ac_objext conftest.$ac_ext
5176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5177 echo "${ECHO_T}$ac_header_compiler" >&6
5178
5179 # Is the header present?
5180 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5181 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5182 cat >conftest.$ac_ext <<_ACEOF
5183 #line $LINENO "configure"
5184 /* confdefs.h.  */
5185 _ACEOF
5186 cat confdefs.h >>conftest.$ac_ext
5187 cat >>conftest.$ac_ext <<_ACEOF
5188 /* end confdefs.h.  */
5189 #include <termcap.h>
5190 _ACEOF
5191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5192   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5193   ac_status=$?
5194   grep -v '^ *+' conftest.er1 >conftest.err
5195   rm -f conftest.er1
5196   cat conftest.err >&5
5197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); } >/dev/null; then
5199   if test -s conftest.err; then
5200     ac_cpp_err=$ac_c_preproc_warn_flag
5201   else
5202     ac_cpp_err=
5203   fi
5204 else
5205   ac_cpp_err=yes
5206 fi
5207 if test -z "$ac_cpp_err"; then
5208   ac_header_preproc=yes
5209 else
5210   echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213   ac_header_preproc=no
5214 fi
5215 rm -f conftest.err conftest.$ac_ext
5216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5217 echo "${ECHO_T}$ac_header_preproc" >&6
5218
5219 # So?  What about this header?
5220 case $ac_header_compiler:$ac_header_preproc in
5221   yes:no )
5222     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5223 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5224     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5225 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5226     (
5227       cat <<\_ASBOX
5228 ## ------------------------------------ ##
5229 ## Report this to bug-autoconf@gnu.org. ##
5230 ## ------------------------------------ ##
5231 _ASBOX
5232     ) |
5233       sed "s/^/$as_me: WARNING:     /" >&2
5234     ;;
5235   no:yes )
5236     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5237 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5238     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5239 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5240     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5241 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5242     (
5243       cat <<\_ASBOX
5244 ## ------------------------------------ ##
5245 ## Report this to bug-autoconf@gnu.org. ##
5246 ## ------------------------------------ ##
5247 _ASBOX
5248     ) |
5249       sed "s/^/$as_me: WARNING:     /" >&2
5250     ;;
5251 esac
5252 echo "$as_me:$LINENO: checking for termcap.h" >&5
5253 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5254 if test "${ac_cv_header_termcap_h+set}" = set; then
5255   echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257   ac_cv_header_termcap_h=$ac_header_preproc
5258 fi
5259 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5260 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5261
5262 fi
5263 if test $ac_cv_header_termcap_h = yes; then
5264    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5265 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5266 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   ac_check_lib_save_LIBS=$LIBS
5270 LIBS="-ltermcap  $LIBS"
5271 cat >conftest.$ac_ext <<_ACEOF
5272 #line $LINENO "configure"
5273 /* confdefs.h.  */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h.  */
5278
5279 /* Override any gcc2 internal prototype to avoid an error.  */
5280 #ifdef __cplusplus
5281 extern "C"
5282 #endif
5283 /* We use char because int might match the return type of a gcc2
5284    builtin and then its argument prototype would still apply.  */
5285 char tgetent ();
5286 int
5287 main ()
5288 {
5289 tgetent ();
5290   ;
5291   return 0;
5292 }
5293 _ACEOF
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296   (eval $ac_link) 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); } &&
5300          { ac_try='test -s conftest$ac_exeext'
5301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302   (eval $ac_try) 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); }; }; then
5306   ac_cv_lib_termcap_tgetent=yes
5307 else
5308   echo "$as_me: failed program was:" >&5
5309 sed 's/^/| /' conftest.$ac_ext >&5
5310
5311 ac_cv_lib_termcap_tgetent=no
5312 fi
5313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5314 LIBS=$ac_check_lib_save_LIBS
5315 fi
5316 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5317 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5318 if test $ac_cv_lib_termcap_tgetent = yes; then
5319    CONS_LIBS="-ltermcap"
5320          CONS_OBJ="conio.o"
5321          CONS_SRC="conio.c"
5322          got_conio="yes"
5323          support_readline=no
5324
5325 cat >>confdefs.h <<\_ACEOF
5326 #define HAVE_CONIO 1
5327 _ACEOF
5328
5329
5330 else
5331    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5332 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5333 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5334   echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336   ac_check_lib_save_LIBS=$LIBS
5337 LIBS="-lncurses  $LIBS"
5338 cat >conftest.$ac_ext <<_ACEOF
5339 #line $LINENO "configure"
5340 /* confdefs.h.  */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h.  */
5345
5346 /* Override any gcc2 internal prototype to avoid an error.  */
5347 #ifdef __cplusplus
5348 extern "C"
5349 #endif
5350 /* We use char because int might match the return type of a gcc2
5351    builtin and then its argument prototype would still apply.  */
5352 char tgetent ();
5353 int
5354 main ()
5355 {
5356 tgetent ();
5357   ;
5358   return 0;
5359 }
5360 _ACEOF
5361 rm -f conftest.$ac_objext conftest$ac_exeext
5362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363   (eval $ac_link) 2>&5
5364   ac_status=$?
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); } &&
5367          { ac_try='test -s conftest$ac_exeext'
5368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369   (eval $ac_try) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }; }; then
5373   ac_cv_lib_ncurses_tgetent=yes
5374 else
5375   echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 ac_cv_lib_ncurses_tgetent=no
5379 fi
5380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5381 LIBS=$ac_check_lib_save_LIBS
5382 fi
5383 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5384 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5385 if test $ac_cv_lib_ncurses_tgetent = yes; then
5386    CONS_LIBS="-lncurses"
5387            CONS_OBJ="conio.o"
5388            CONS_SRC="conio.c"
5389            got_conio="yes"
5390            support_readline=no
5391
5392 cat >>confdefs.h <<\_ACEOF
5393 #define HAVE_CONIO 1
5394 _ACEOF
5395
5396
5397 else
5398    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5399 fi
5400
5401
5402 fi
5403
5404
5405 else
5406   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5407 fi
5408
5409
5410 fi
5411
5412
5413 # ---------------------------------------------------
5414 # Check for readline support/directory (default off)
5415 # ---------------------------------------------------
5416 # this allows you to turn it completely off
5417 # Check whether --enable-readline or --disable-readline was given.
5418 if test "${enable_readline+set}" = set; then
5419   enableval="$enable_readline"
5420   if test x$enableval = xno; then
5421     support_readline=no
5422   fi
5423 fi;
5424
5425 got_readline="no"
5426 READLINE_SRC=
5427 if test x$support_readline = xyes; then
5428
5429 # Check whether --with-readline or --without-readline was given.
5430 if test "${with_readline+set}" = set; then
5431   withval="$with_readline"
5432
5433         case "$with_readline" in
5434         no) : ;;
5435         yes|*)
5436           if test "$with_readline" != "yes"; then
5437             CONS_INC="-I${with_readline}"
5438             CONS_LDFLAGS="-L$with_readline"
5439           else
5440              with_readline="/usr/include/readline"
5441           fi
5442           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5444   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5445 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5447   echo $ECHO_N "(cached) $ECHO_C" >&6
5448 fi
5449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5451 else
5452   # Is the header compilable?
5453 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5454 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5455 cat >conftest.$ac_ext <<_ACEOF
5456 #line $LINENO "configure"
5457 /* confdefs.h.  */
5458 _ACEOF
5459 cat confdefs.h >>conftest.$ac_ext
5460 cat >>conftest.$ac_ext <<_ACEOF
5461 /* end confdefs.h.  */
5462 $ac_includes_default
5463 #include <${with_readline}/readline.h>
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5467   (eval $ac_compile) 2>&5
5468   ac_status=$?
5469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470   (exit $ac_status); } &&
5471          { ac_try='test -s conftest.$ac_objext'
5472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5473   (eval $ac_try) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); }; }; then
5477   ac_header_compiler=yes
5478 else
5479   echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482 ac_header_compiler=no
5483 fi
5484 rm -f conftest.$ac_objext conftest.$ac_ext
5485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5486 echo "${ECHO_T}$ac_header_compiler" >&6
5487
5488 # Is the header present?
5489 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5490 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5491 cat >conftest.$ac_ext <<_ACEOF
5492 #line $LINENO "configure"
5493 /* confdefs.h.  */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h.  */
5498 #include <${with_readline}/readline.h>
5499 _ACEOF
5500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5501   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5502   ac_status=$?
5503   grep -v '^ *+' conftest.er1 >conftest.err
5504   rm -f conftest.er1
5505   cat conftest.err >&5
5506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507   (exit $ac_status); } >/dev/null; then
5508   if test -s conftest.err; then
5509     ac_cpp_err=$ac_c_preproc_warn_flag
5510   else
5511     ac_cpp_err=
5512   fi
5513 else
5514   ac_cpp_err=yes
5515 fi
5516 if test -z "$ac_cpp_err"; then
5517   ac_header_preproc=yes
5518 else
5519   echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5521
5522   ac_header_preproc=no
5523 fi
5524 rm -f conftest.err conftest.$ac_ext
5525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5526 echo "${ECHO_T}$ac_header_preproc" >&6
5527
5528 # So?  What about this header?
5529 case $ac_header_compiler:$ac_header_preproc in
5530   yes:no )
5531     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5532 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5533     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5534 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5535     (
5536       cat <<\_ASBOX
5537 ## ------------------------------------ ##
5538 ## Report this to bug-autoconf@gnu.org. ##
5539 ## ------------------------------------ ##
5540 _ASBOX
5541     ) |
5542       sed "s/^/$as_me: WARNING:     /" >&2
5543     ;;
5544   no:yes )
5545     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5546 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5547     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5548 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5549     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5550 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5551     (
5552       cat <<\_ASBOX
5553 ## ------------------------------------ ##
5554 ## Report this to bug-autoconf@gnu.org. ##
5555 ## ------------------------------------ ##
5556 _ASBOX
5557     ) |
5558       sed "s/^/$as_me: WARNING:     /" >&2
5559     ;;
5560 esac
5561 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5562 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5564   echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566   eval "$as_ac_Header=$ac_header_preproc"
5567 fi
5568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5570
5571 fi
5572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5573    cat >>confdefs.h <<\_ACEOF
5574 #define HAVE_READLINE 1
5575 _ACEOF
5576
5577                CONS_LIBS="-lreadline -ltermcap"
5578                got_readline="yes"
5579
5580 else
5581    echo " "
5582                echo "readline.h not found. readline turned off ..."
5583                echo " "
5584
5585
5586 fi
5587
5588
5589           ;;
5590         esac
5591
5592 else
5593
5594        # check for standard readline library
5595        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5596   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5597 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5598 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5599   echo $ECHO_N "(cached) $ECHO_C" >&6
5600 fi
5601 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5602 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5603 else
5604   # Is the header compilable?
5605 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5606 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5607 cat >conftest.$ac_ext <<_ACEOF
5608 #line $LINENO "configure"
5609 /* confdefs.h.  */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h.  */
5614 $ac_includes_default
5615 #include </usr/include/readline/readline.h>
5616 _ACEOF
5617 rm -f conftest.$ac_objext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5619   (eval $ac_compile) 2>&5
5620   ac_status=$?
5621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622   (exit $ac_status); } &&
5623          { ac_try='test -s conftest.$ac_objext'
5624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625   (eval $ac_try) 2>&5
5626   ac_status=$?
5627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628   (exit $ac_status); }; }; then
5629   ac_header_compiler=yes
5630 else
5631   echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5633
5634 ac_header_compiler=no
5635 fi
5636 rm -f conftest.$ac_objext conftest.$ac_ext
5637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5638 echo "${ECHO_T}$ac_header_compiler" >&6
5639
5640 # Is the header present?
5641 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5642 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5643 cat >conftest.$ac_ext <<_ACEOF
5644 #line $LINENO "configure"
5645 /* confdefs.h.  */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h.  */
5650 #include </usr/include/readline/readline.h>
5651 _ACEOF
5652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5654   ac_status=$?
5655   grep -v '^ *+' conftest.er1 >conftest.err
5656   rm -f conftest.er1
5657   cat conftest.err >&5
5658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659   (exit $ac_status); } >/dev/null; then
5660   if test -s conftest.err; then
5661     ac_cpp_err=$ac_c_preproc_warn_flag
5662   else
5663     ac_cpp_err=
5664   fi
5665 else
5666   ac_cpp_err=yes
5667 fi
5668 if test -z "$ac_cpp_err"; then
5669   ac_header_preproc=yes
5670 else
5671   echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5673
5674   ac_header_preproc=no
5675 fi
5676 rm -f conftest.err conftest.$ac_ext
5677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5678 echo "${ECHO_T}$ac_header_preproc" >&6
5679
5680 # So?  What about this header?
5681 case $ac_header_compiler:$ac_header_preproc in
5682   yes:no )
5683     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5684 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5685     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5686 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5687     (
5688       cat <<\_ASBOX
5689 ## ------------------------------------ ##
5690 ## Report this to bug-autoconf@gnu.org. ##
5691 ## ------------------------------------ ##
5692 _ASBOX
5693     ) |
5694       sed "s/^/$as_me: WARNING:     /" >&2
5695     ;;
5696   no:yes )
5697     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5698 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5699     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5700 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5701     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5702 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5703     (
5704       cat <<\_ASBOX
5705 ## ------------------------------------ ##
5706 ## Report this to bug-autoconf@gnu.org. ##
5707 ## ------------------------------------ ##
5708 _ASBOX
5709     ) |
5710       sed "s/^/$as_me: WARNING:     /" >&2
5711     ;;
5712 esac
5713 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5714 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5715 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5719 fi
5720 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5721 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5722
5723 fi
5724 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5725    cat >>confdefs.h <<\_ACEOF
5726 #define HAVE_READLINE 1
5727 _ACEOF
5728
5729            got_readline="yes"
5730            CONS_INC="-I/usr/include/readline"
5731            CONS_LIBS="-lreadline -ltermcap"
5732
5733 else
5734
5735            # Did not find standard library, so try Bacula's default
5736             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5738   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5739 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5741   echo $ECHO_N "(cached) $ECHO_C" >&6
5742 fi
5743 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5744 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5745 else
5746   # Is the header compilable?
5747 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5748 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5749 cat >conftest.$ac_ext <<_ACEOF
5750 #line $LINENO "configure"
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756 $ac_includes_default
5757 #include <${TOP_DIR}/depkgs/readline/readline.h>
5758 _ACEOF
5759 rm -f conftest.$ac_objext
5760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5761   (eval $ac_compile) 2>&5
5762   ac_status=$?
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); } &&
5765          { ac_try='test -s conftest.$ac_objext'
5766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767   (eval $ac_try) 2>&5
5768   ac_status=$?
5769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770   (exit $ac_status); }; }; then
5771   ac_header_compiler=yes
5772 else
5773   echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5775
5776 ac_header_compiler=no
5777 fi
5778 rm -f conftest.$ac_objext conftest.$ac_ext
5779 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5780 echo "${ECHO_T}$ac_header_compiler" >&6
5781
5782 # Is the header present?
5783 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5784 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5785 cat >conftest.$ac_ext <<_ACEOF
5786 #line $LINENO "configure"
5787 /* confdefs.h.  */
5788 _ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h.  */
5792 #include <${TOP_DIR}/depkgs/readline/readline.h>
5793 _ACEOF
5794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5795   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5796   ac_status=$?
5797   grep -v '^ *+' conftest.er1 >conftest.err
5798   rm -f conftest.er1
5799   cat conftest.err >&5
5800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801   (exit $ac_status); } >/dev/null; then
5802   if test -s conftest.err; then
5803     ac_cpp_err=$ac_c_preproc_warn_flag
5804   else
5805     ac_cpp_err=
5806   fi
5807 else
5808   ac_cpp_err=yes
5809 fi
5810 if test -z "$ac_cpp_err"; then
5811   ac_header_preproc=yes
5812 else
5813   echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816   ac_header_preproc=no
5817 fi
5818 rm -f conftest.err conftest.$ac_ext
5819 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5820 echo "${ECHO_T}$ac_header_preproc" >&6
5821
5822 # So?  What about this header?
5823 case $ac_header_compiler:$ac_header_preproc in
5824   yes:no )
5825     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5826 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5827     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5828 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5829     (
5830       cat <<\_ASBOX
5831 ## ------------------------------------ ##
5832 ## Report this to bug-autoconf@gnu.org. ##
5833 ## ------------------------------------ ##
5834 _ASBOX
5835     ) |
5836       sed "s/^/$as_me: WARNING:     /" >&2
5837     ;;
5838   no:yes )
5839     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5840 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5841     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5842 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5843     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5844 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5845     (
5846       cat <<\_ASBOX
5847 ## ------------------------------------ ##
5848 ## Report this to bug-autoconf@gnu.org. ##
5849 ## ------------------------------------ ##
5850 _ASBOX
5851     ) |
5852       sed "s/^/$as_me: WARNING:     /" >&2
5853     ;;
5854 esac
5855 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5856 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860   eval "$as_ac_Header=$ac_header_preproc"
5861 fi
5862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5864
5865 fi
5866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5867    cat >>confdefs.h <<\_ACEOF
5868 #define HAVE_READLINE 1
5869 _ACEOF
5870
5871                  got_readline="yes"
5872                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5873                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5874                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5875                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5876
5877 else
5878    echo " "
5879                 echo "readline.h not found. readline turned off ..."
5880                 echo " "
5881
5882
5883 fi
5884
5885
5886
5887
5888 fi
5889
5890
5891
5892
5893 fi;
5894 fi
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905 # Minimal stuff for readline Makefile configuration
5906 MAKE_SHELL=/bin/sh
5907
5908 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5909 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5910 if test "${ac_cv_header_stat_broken+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   cat >conftest.$ac_ext <<_ACEOF
5914 #line $LINENO "configure"
5915 /* confdefs.h.  */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h.  */
5920 #include <sys/types.h>
5921 #include <sys/stat.h>
5922
5923 #if defined(S_ISBLK) && defined(S_IFDIR)
5924 # if S_ISBLK (S_IFDIR)
5925 You lose.
5926 # endif
5927 #endif
5928
5929 #if defined(S_ISBLK) && defined(S_IFCHR)
5930 # if S_ISBLK (S_IFCHR)
5931 You lose.
5932 # endif
5933 #endif
5934
5935 #if defined(S_ISLNK) && defined(S_IFREG)
5936 # if S_ISLNK (S_IFREG)
5937 You lose.
5938 # endif
5939 #endif
5940
5941 #if defined(S_ISSOCK) && defined(S_IFREG)
5942 # if S_ISSOCK (S_IFREG)
5943 You lose.
5944 # endif
5945 #endif
5946
5947 _ACEOF
5948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5949   $EGREP "You lose" >/dev/null 2>&1; then
5950   ac_cv_header_stat_broken=yes
5951 else
5952   ac_cv_header_stat_broken=no
5953 fi
5954 rm -f conftest*
5955
5956 fi
5957 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5958 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5959 if test $ac_cv_header_stat_broken = yes; then
5960
5961 cat >>confdefs.h <<\_ACEOF
5962 #define STAT_MACROS_BROKEN 1
5963 _ACEOF
5964
5965 fi
5966
5967
5968
5969
5970
5971
5972 ac_header_dirent=no
5973 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5974   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5975 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5976 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980   cat >conftest.$ac_ext <<_ACEOF
5981 #line $LINENO "configure"
5982 /* confdefs.h.  */
5983 _ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h.  */
5987 #include <sys/types.h>
5988 #include <$ac_hdr>
5989
5990 int
5991 main ()
5992 {
5993 if ((DIR *) 0)
5994 return 0;
5995   ;
5996   return 0;
5997 }
5998 _ACEOF
5999 rm -f conftest.$ac_objext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001   (eval $ac_compile) 2>&5
6002   ac_status=$?
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); } &&
6005          { ac_try='test -s conftest.$ac_objext'
6006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007   (eval $ac_try) 2>&5
6008   ac_status=$?
6009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010   (exit $ac_status); }; }; then
6011   eval "$as_ac_Header=yes"
6012 else
6013   echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6015
6016 eval "$as_ac_Header=no"
6017 fi
6018 rm -f conftest.$ac_objext conftest.$ac_ext
6019 fi
6020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6023   cat >>confdefs.h <<_ACEOF
6024 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6025 _ACEOF
6026
6027 ac_header_dirent=$ac_hdr; break
6028 fi
6029
6030 done
6031 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6032 if test $ac_header_dirent = dirent.h; then
6033   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6034 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6035 if test "${ac_cv_search_opendir+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038   ac_func_search_save_LIBS=$LIBS
6039 ac_cv_search_opendir=no
6040 cat >conftest.$ac_ext <<_ACEOF
6041 #line $LINENO "configure"
6042 /* confdefs.h.  */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h.  */
6047
6048 /* Override any gcc2 internal prototype to avoid an error.  */
6049 #ifdef __cplusplus
6050 extern "C"
6051 #endif
6052 /* We use char because int might match the return type of a gcc2
6053    builtin and then its argument prototype would still apply.  */
6054 char opendir ();
6055 int
6056 main ()
6057 {
6058 opendir ();
6059   ;
6060   return 0;
6061 }
6062 _ACEOF
6063 rm -f conftest.$ac_objext conftest$ac_exeext
6064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065   (eval $ac_link) 2>&5
6066   ac_status=$?
6067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); } &&
6069          { ac_try='test -s conftest$ac_exeext'
6070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071   (eval $ac_try) 2>&5
6072   ac_status=$?
6073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074   (exit $ac_status); }; }; then
6075   ac_cv_search_opendir="none required"
6076 else
6077   echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6079
6080 fi
6081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6082 if test "$ac_cv_search_opendir" = no; then
6083   for ac_lib in dir; do
6084     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6085     cat >conftest.$ac_ext <<_ACEOF
6086 #line $LINENO "configure"
6087 /* confdefs.h.  */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h.  */
6092
6093 /* Override any gcc2 internal prototype to avoid an error.  */
6094 #ifdef __cplusplus
6095 extern "C"
6096 #endif
6097 /* We use char because int might match the return type of a gcc2
6098    builtin and then its argument prototype would still apply.  */
6099 char opendir ();
6100 int
6101 main ()
6102 {
6103 opendir ();
6104   ;
6105   return 0;
6106 }
6107 _ACEOF
6108 rm -f conftest.$ac_objext conftest$ac_exeext
6109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6110   (eval $ac_link) 2>&5
6111   ac_status=$?
6112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113   (exit $ac_status); } &&
6114          { ac_try='test -s conftest$ac_exeext'
6115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116   (eval $ac_try) 2>&5
6117   ac_status=$?
6118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); }; }; then
6120   ac_cv_search_opendir="-l$ac_lib"
6121 break
6122 else
6123   echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6125
6126 fi
6127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6128   done
6129 fi
6130 LIBS=$ac_func_search_save_LIBS
6131 fi
6132 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6133 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6134 if test "$ac_cv_search_opendir" != no; then
6135   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6136
6137 fi
6138
6139 else
6140   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6141 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6142 if test "${ac_cv_search_opendir+set}" = set; then
6143   echo $ECHO_N "(cached) $ECHO_C" >&6
6144 else
6145   ac_func_search_save_LIBS=$LIBS
6146 ac_cv_search_opendir=no
6147 cat >conftest.$ac_ext <<_ACEOF
6148 #line $LINENO "configure"
6149 /* confdefs.h.  */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h.  */
6154
6155 /* Override any gcc2 internal prototype to avoid an error.  */
6156 #ifdef __cplusplus
6157 extern "C"
6158 #endif
6159 /* We use char because int might match the return type of a gcc2
6160    builtin and then its argument prototype would still apply.  */
6161 char opendir ();
6162 int
6163 main ()
6164 {
6165 opendir ();
6166   ;
6167   return 0;
6168 }
6169 _ACEOF
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6172   (eval $ac_link) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); } &&
6176          { ac_try='test -s conftest$ac_exeext'
6177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6178   (eval $ac_try) 2>&5
6179   ac_status=$?
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); }; }; then
6182   ac_cv_search_opendir="none required"
6183 else
6184   echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 fi
6188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6189 if test "$ac_cv_search_opendir" = no; then
6190   for ac_lib in x; do
6191     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6192     cat >conftest.$ac_ext <<_ACEOF
6193 #line $LINENO "configure"
6194 /* confdefs.h.  */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h.  */
6199
6200 /* Override any gcc2 internal prototype to avoid an error.  */
6201 #ifdef __cplusplus
6202 extern "C"
6203 #endif
6204 /* We use char because int might match the return type of a gcc2
6205    builtin and then its argument prototype would still apply.  */
6206 char opendir ();
6207 int
6208 main ()
6209 {
6210 opendir ();
6211   ;
6212   return 0;
6213 }
6214 _ACEOF
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6217   (eval $ac_link) 2>&5
6218   ac_status=$?
6219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220   (exit $ac_status); } &&
6221          { ac_try='test -s conftest$ac_exeext'
6222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6223   (eval $ac_try) 2>&5
6224   ac_status=$?
6225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226   (exit $ac_status); }; }; then
6227   ac_cv_search_opendir="-l$ac_lib"
6228 break
6229 else
6230   echo "$as_me: failed program was:" >&5
6231 sed 's/^/| /' conftest.$ac_ext >&5
6232
6233 fi
6234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6235   done
6236 fi
6237 LIBS=$ac_func_search_save_LIBS
6238 fi
6239 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6240 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6241 if test "$ac_cv_search_opendir" != no; then
6242   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6243
6244 fi
6245
6246 fi
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6257 do
6258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6259 echo "$as_me:$LINENO: checking for $ac_func" >&5
6260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6261 if eval "test \"\${$as_ac_var+set}\" = set"; then
6262   echo $ECHO_N "(cached) $ECHO_C" >&6
6263 else
6264   cat >conftest.$ac_ext <<_ACEOF
6265 #line $LINENO "configure"
6266 /* confdefs.h.  */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h.  */
6271 /* System header to define __stub macros and hopefully few prototypes,
6272     which can conflict with char $ac_func (); below.
6273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6274     <limits.h> exists even on freestanding compilers.  */
6275 #ifdef __STDC__
6276 # include <limits.h>
6277 #else
6278 # include <assert.h>
6279 #endif
6280 /* Override any gcc2 internal prototype to avoid an error.  */
6281 #ifdef __cplusplus
6282 extern "C"
6283 {
6284 #endif
6285 /* We use char because int might match the return type of a gcc2
6286    builtin and then its argument prototype would still apply.  */
6287 char $ac_func ();
6288 /* The GNU C library defines this for functions which it implements
6289     to always fail with ENOSYS.  Some functions are actually named
6290     something starting with __ and the normal name is an alias.  */
6291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6292 choke me
6293 #else
6294 char (*f) () = $ac_func;
6295 #endif
6296 #ifdef __cplusplus
6297 }
6298 #endif
6299
6300 int
6301 main ()
6302 {
6303 return f != $ac_func;
6304   ;
6305   return 0;
6306 }
6307 _ACEOF
6308 rm -f conftest.$ac_objext conftest$ac_exeext
6309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6310   (eval $ac_link) 2>&5
6311   ac_status=$?
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); } &&
6314          { ac_try='test -s conftest$ac_exeext'
6315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316   (eval $ac_try) 2>&5
6317   ac_status=$?
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); }; }; then
6320   eval "$as_ac_var=yes"
6321 else
6322   echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6324
6325 eval "$as_ac_var=no"
6326 fi
6327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6328 fi
6329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6331 if test `eval echo '${'$as_ac_var'}'` = yes; then
6332   cat >>confdefs.h <<_ACEOF
6333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6334 _ACEOF
6335
6336 fi
6337 done
6338
6339
6340
6341 for ac_func in nanosleep nl_langinfo
6342 do
6343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6344 echo "$as_me:$LINENO: checking for $ac_func" >&5
6345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6346 if eval "test \"\${$as_ac_var+set}\" = set"; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   cat >conftest.$ac_ext <<_ACEOF
6350 #line $LINENO "configure"
6351 /* confdefs.h.  */
6352 _ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h.  */
6356 /* System header to define __stub macros and hopefully few prototypes,
6357     which can conflict with char $ac_func (); below.
6358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6359     <limits.h> exists even on freestanding compilers.  */
6360 #ifdef __STDC__
6361 # include <limits.h>
6362 #else
6363 # include <assert.h>
6364 #endif
6365 /* Override any gcc2 internal prototype to avoid an error.  */
6366 #ifdef __cplusplus
6367 extern "C"
6368 {
6369 #endif
6370 /* We use char because int might match the return type of a gcc2
6371    builtin and then its argument prototype would still apply.  */
6372 char $ac_func ();
6373 /* The GNU C library defines this for functions which it implements
6374     to always fail with ENOSYS.  Some functions are actually named
6375     something starting with __ and the normal name is an alias.  */
6376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6377 choke me
6378 #else
6379 char (*f) () = $ac_func;
6380 #endif
6381 #ifdef __cplusplus
6382 }
6383 #endif
6384
6385 int
6386 main ()
6387 {
6388 return f != $ac_func;
6389   ;
6390   return 0;
6391 }
6392 _ACEOF
6393 rm -f conftest.$ac_objext conftest$ac_exeext
6394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6395   (eval $ac_link) 2>&5
6396   ac_status=$?
6397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398   (exit $ac_status); } &&
6399          { ac_try='test -s conftest$ac_exeext'
6400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401   (eval $ac_try) 2>&5
6402   ac_status=$?
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); }; }; then
6405   eval "$as_ac_var=yes"
6406 else
6407   echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6409
6410 eval "$as_ac_var=no"
6411 fi
6412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6413 fi
6414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6416 if test `eval echo '${'$as_ac_var'}'` = yes; then
6417   cat >>confdefs.h <<_ACEOF
6418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6419 _ACEOF
6420
6421 fi
6422 done
6423
6424
6425 for ac_header in varargs.h
6426 do
6427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429   echo "$as_me:$LINENO: checking for $ac_header" >&5
6430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6432   echo $ECHO_N "(cached) $ECHO_C" >&6
6433 fi
6434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6436 else
6437   # Is the header compilable?
6438 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6439 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6440 cat >conftest.$ac_ext <<_ACEOF
6441 #line $LINENO "configure"
6442 /* confdefs.h.  */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h.  */
6447 $ac_includes_default
6448 #include <$ac_header>
6449 _ACEOF
6450 rm -f conftest.$ac_objext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452   (eval $ac_compile) 2>&5
6453   ac_status=$?
6454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455   (exit $ac_status); } &&
6456          { ac_try='test -s conftest.$ac_objext'
6457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6458   (eval $ac_try) 2>&5
6459   ac_status=$?
6460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); }; }; then
6462   ac_header_compiler=yes
6463 else
6464   echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6466
6467 ac_header_compiler=no
6468 fi
6469 rm -f conftest.$ac_objext conftest.$ac_ext
6470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6471 echo "${ECHO_T}$ac_header_compiler" >&6
6472
6473 # Is the header present?
6474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6476 cat >conftest.$ac_ext <<_ACEOF
6477 #line $LINENO "configure"
6478 /* confdefs.h.  */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h.  */
6483 #include <$ac_header>
6484 _ACEOF
6485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6486   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6487   ac_status=$?
6488   grep -v '^ *+' conftest.er1 >conftest.err
6489   rm -f conftest.er1
6490   cat conftest.err >&5
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); } >/dev/null; then
6493   if test -s conftest.err; then
6494     ac_cpp_err=$ac_c_preproc_warn_flag
6495   else
6496     ac_cpp_err=
6497   fi
6498 else
6499   ac_cpp_err=yes
6500 fi
6501 if test -z "$ac_cpp_err"; then
6502   ac_header_preproc=yes
6503 else
6504   echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6506
6507   ac_header_preproc=no
6508 fi
6509 rm -f conftest.err conftest.$ac_ext
6510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6511 echo "${ECHO_T}$ac_header_preproc" >&6
6512
6513 # So?  What about this header?
6514 case $ac_header_compiler:$ac_header_preproc in
6515   yes:no )
6516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6520     (
6521       cat <<\_ASBOX
6522 ## ------------------------------------ ##
6523 ## Report this to bug-autoconf@gnu.org. ##
6524 ## ------------------------------------ ##
6525 _ASBOX
6526     ) |
6527       sed "s/^/$as_me: WARNING:     /" >&2
6528     ;;
6529   no:yes )
6530     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6532     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6534     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6536     (
6537       cat <<\_ASBOX
6538 ## ------------------------------------ ##
6539 ## Report this to bug-autoconf@gnu.org. ##
6540 ## ------------------------------------ ##
6541 _ASBOX
6542     ) |
6543       sed "s/^/$as_me: WARNING:     /" >&2
6544     ;;
6545 esac
6546 echo "$as_me:$LINENO: checking for $ac_header" >&5
6547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6549   echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551   eval "$as_ac_Header=$ac_header_preproc"
6552 fi
6553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6555
6556 fi
6557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6558   cat >>confdefs.h <<_ACEOF
6559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6560 _ACEOF
6561
6562 fi
6563
6564 done
6565
6566
6567 # End of readline/conio stuff
6568 # -----------------------------------------------------------------------
6569
6570
6571 # ---------------------------------------------------
6572 # Check for GMP support/directory
6573 # ---------------------------------------------------
6574 #GMP_SRC=
6575 #local_gmp="no"
6576 #AC_ARG_WITH(gmp,
6577 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6578 #  [
6579 #     case "$with_gmp" in
6580 #     no) : ;;
6581 #     yes|*)
6582 #       if test "$with_gmp" != "yes"; then
6583 #         GMP_INC="-I$with_gmp"
6584 #         GMP_LIBS="-lgmp"
6585 #         GMP_LDFLAGS="-L$with_gmp"
6586 #       else
6587 #          with_gmp="/usr/include"
6588 #       fi
6589 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6590 #          [ AC_MSG_RESULT(yes)
6591 #            AC_DEFINE(HAVE_GMP)
6592 #            GMP_LIBS="-lgmp"
6593 #            got_gmp="yes"
6594 #          ],
6595 #          [ AC_MSG_ERROR([*** gmp library missing])
6596 #          ]
6597 #       )
6598 #       ;;
6599 #     esac
6600 #  ],[
6601 #    # check for standard gmp library
6602 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6603 #    [ AC_MSG_RESULT(yes)
6604 #      AC_DEFINE(HAVE_GMP)
6605 #      got_gmp="yes"
6606 #      GMP_INC=
6607 #      GMP_LIBS="-lgmp"
6608 #    ], [
6609 #      # Did not find standard library, so use our own
6610 #      AC_MSG_RESULT(yes)
6611 #      AC_DEFINE(HAVE_GMP)
6612 #      got_gmp="yes"
6613 #      local_gmp="yes"
6614 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6615 #      GMP_LIBS="-lgmp"
6616 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6617 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6618 #    ])
6619 #  ]
6620 #)
6621 #AC_SUBST(GMP_INC)
6622 #AC_SUBST(GMP_LIBS)
6623 #AC_SUBST(GMP_LDFLAGS)
6624 #AC_SUBST(GMP_SRC)
6625
6626 # End of GMP stuff
6627 # -----------------------------------------------------------------------
6628
6629
6630 # ---------------------------------------------------
6631 # Check for CWEB support/directory
6632 # ---------------------------------------------------
6633 #CWEB_SRC=
6634 #CWEB=/bin
6635 #local_cweb="no"
6636 #AC_ARG_WITH(cweb,
6637 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6638 #  [
6639 #     case "$with_cweb" in
6640 #     no) : ;;
6641 #     yes|*)
6642 #       if test "$with_cweb" != "yes"; then
6643 #         CWEB_INC="-I$with_cweb"
6644 #         CWEB_LIBS="-lcweb"
6645 #         CWEB_LDFLAGS="-L$with_cweb"
6646 #       else
6647 #          with_cweb="/usr/include"
6648 #       fi
6649 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6650 #          [ AC_MSG_RESULT(yes)
6651 #            AC_DEFINE(HAVE_CWEB)
6652 #            CWEB_LIBS="-lcweb"
6653 #            got_cweb="yes"
6654 #          ],
6655 #          [ AC_MSG_ERROR([*** cweb library missing])
6656 #          ]
6657 #       )
6658 #       ;;
6659 #     esac
6660 #  ],[
6661 #    # check for standard cweb library
6662 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6663 #    [ AC_MSG_RESULT(yes)
6664 #      AC_DEFINE(HAVE_CWEB)
6665 #      got_cweb="yes"
6666 #      CWEB_INC=
6667 #      CWEB_LIBS="-lcweb"
6668 #    ], [
6669 #      # Did not find starndard library, so use our own
6670 #      AC_MSG_RESULT(yes)
6671 #      AC_DEFINE(HAVE_CWEB)
6672 #      got_cweb="yes"
6673 #      local_cweb="yes"
6674 #      CWEB=${TOP_DIR}/depkgs/cweb
6675 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6676 #      CWEB_LIBS="-lcweb"
6677 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6678 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6679 #    ])
6680 #  ]
6681 #)
6682 #AC_SUBST(CWEB)
6683 #AC_SUBST(CWEB_INC)
6684 #AC_SUBST(CWEB_LIBS)
6685 #AC_SUBST(CWEB_LDFLAGS)
6686 #AC_SUBST(CWEB_SRC)
6687
6688 # End of CWEB stuff
6689 # -----------------------------------------------------------------------
6690
6691
6692
6693 # -----------------------------------------------------------
6694 # Check whether user wants TCP wrappers support (default off)
6695 # -----------------------------------------------------------
6696 TCPW_MSG="no"
6697
6698 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6699 if test "${with_tcp_wrappers+set}" = set; then
6700   withval="$with_tcp_wrappers"
6701
6702     if test "x$withval" != "xno" ; then
6703        saved_LIBS="$LIBS"
6704        LIBS="$saved_LIBS -lwrap"
6705        echo "$as_me:$LINENO: checking for libwrap" >&5
6706 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6707        cat >conftest.$ac_ext <<_ACEOF
6708 #line $LINENO "configure"
6709 /* confdefs.h.  */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h.  */
6714  #include <tcpd.h>
6715              int deny_severity = 0;
6716              int allow_severity = 0;
6717              struct request_info *req;
6718 int
6719 main ()
6720 {
6721  hosts_access(req);
6722   ;
6723   return 0;
6724 }
6725 _ACEOF
6726 rm -f conftest.$ac_objext conftest$ac_exeext
6727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6728   (eval $ac_link) 2>&5
6729   ac_status=$?
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); } &&
6732          { ac_try='test -s conftest$ac_exeext'
6733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734   (eval $ac_try) 2>&5
6735   ac_status=$?
6736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); }; }; then
6738
6739             echo "$as_me:$LINENO: result: yes" >&5
6740 echo "${ECHO_T}yes" >&6
6741             cat >>confdefs.h <<\_ACEOF
6742 #define HAVE_LIBWRAP 1
6743 _ACEOF
6744
6745             TCPW_MSG="yes"
6746
6747 else
6748   echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6750
6751
6752             LIBS="$saved_LIBS -lwrap -lnsl"
6753             cat >conftest.$ac_ext <<_ACEOF
6754 #line $LINENO "configure"
6755 /* confdefs.h.  */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h.  */
6760  #include <tcpd.h>
6761                  int deny_severity = 0;
6762                  int allow_severity = 0;
6763                  struct request_info *req;
6764 int
6765 main ()
6766 {
6767  hosts_access(req);
6768   ;
6769   return 0;
6770 }
6771 _ACEOF
6772 rm -f conftest.$ac_objext conftest$ac_exeext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6774   (eval $ac_link) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } &&
6778          { ac_try='test -s conftest$ac_exeext'
6779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6780   (eval $ac_try) 2>&5
6781   ac_status=$?
6782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783   (exit $ac_status); }; }; then
6784
6785                  echo "$as_me:$LINENO: result: yes" >&5
6786 echo "${ECHO_T}yes" >&6
6787                  cat >>confdefs.h <<\_ACEOF
6788 #define HAVE_LIBWRAP 1
6789 _ACEOF
6790
6791                  TCPW_MSG="yes"
6792
6793 else
6794   echo "$as_me: failed program was:" >&5
6795 sed 's/^/| /' conftest.$ac_ext >&5
6796
6797 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6798 echo "$as_me: error: *** libwrap missing" >&2;}
6799    { (exit 1); exit 1; }; }
6800
6801 fi
6802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6803
6804 fi
6805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6806     fi
6807
6808
6809 fi;
6810
6811 # ------------------------------------------
6812 # Where to place working dir
6813 # ------------------------------------------
6814 working_dir=`eval echo ${prefix}/var/bacula/working`
6815
6816 # Check whether --with-working-dir or --without-working-dir was given.
6817 if test "${with_working_dir+set}" = set; then
6818   withval="$with_working_dir"
6819
6820        if test "x$withval" != "xno" ; then
6821               working_dir=$withval
6822        fi
6823
6824
6825 fi;
6826
6827
6828
6829
6830 # ------------------------------------------
6831 # Where to place scriptdir (script files)
6832 # ------------------------------------------
6833 scriptdir=`eval echo ${sysconfdir}`
6834
6835 # Check whether --with-scriptdir or --without-scriptdir was given.
6836 if test "${with_scriptdir+set}" = set; then
6837   withval="$with_scriptdir"
6838
6839        if test "x$withval" != "xno" ; then
6840               scriptdir=$withval
6841        fi
6842
6843
6844 fi;
6845
6846
6847
6848
6849 # ------------------------------------------
6850 # Where to send dump email
6851 # ------------------------------------------
6852 dump_email=root@localhost
6853
6854 # Check whether --with-dump-email or --without-dump-email was given.
6855 if test "${with_dump_email+set}" = set; then
6856   withval="$with_dump_email"
6857
6858        if test "x$withval" != "xno" ; then
6859               dump_email=$withval
6860        fi
6861
6862
6863 fi;
6864
6865
6866
6867 # ------------------------------------------
6868 # Where to send job email
6869 # ------------------------------------------
6870 job_email=root@localhost
6871
6872 # Check whether --with-job-email or --without-job-email was given.
6873 if test "${with_job_email+set}" = set; then
6874   withval="$with_job_email"
6875
6876        if test "x$withval" != "xno" ; then
6877               job_email=$withval
6878        fi
6879
6880
6881 fi;
6882
6883
6884
6885 # ------------------------------------------
6886 # Where to find smtp host
6887 # ------------------------------------------
6888 smtp_host=localhost
6889
6890 # Check whether --with-smtp_host or --without-smtp_host was given.
6891 if test "${with_smtp_host+set}" = set; then
6892   withval="$with_smtp_host"
6893
6894        if test "x$withval" != "xno" ; then
6895               smtp_host=$withval
6896        fi
6897
6898
6899 fi;
6900
6901
6902
6903
6904 # ------------------------------------
6905 # Where to place pid files
6906 # ------------------------------------
6907 piddir=/var/run
6908
6909 # Check whether --with-pid-dir or --without-pid-dir was given.
6910 if test "${with_pid_dir+set}" = set; then
6911   withval="$with_pid_dir"
6912
6913         if test "x$withval" != "xno" ; then
6914             piddir=$withval
6915         fi
6916
6917
6918 fi;
6919
6920 cat >>confdefs.h <<_ACEOF
6921 #define _PATH_BACULA_PIDDIR "$piddir"
6922 _ACEOF
6923
6924
6925
6926
6927 # ------------------------------------
6928 # Where to place subsys "lock file"
6929 # ------------------------------------
6930 subsysdir=/var/run/subsys
6931
6932 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6933 if test "${with_subsys_dir+set}" = set; then
6934   withval="$with_subsys_dir"
6935
6936         if test "x$withval" != "xno" ; then
6937             subsysdir=$withval
6938         fi
6939
6940
6941 fi;
6942
6943
6944
6945
6946
6947 # ------------------------------------
6948 # Where to start assigning ports
6949 # ------------------------------------
6950 baseport=9101
6951
6952 # Check whether --with-baseport or --without-baseport was given.
6953 if test "${with_baseport+set}" = set; then
6954   withval="$with_baseport"
6955
6956         if test "x$withval" != "xno" ; then
6957              baseport=$withval
6958         fi
6959
6960
6961 fi;
6962
6963
6964 dir_port=`expr $baseport`
6965 fd_port=`expr $baseport + 1`
6966 sd_port=`expr $fd_port + 1`
6967
6968
6969
6970
6971
6972
6973 # ------------------------------------------
6974 # Generate passwords
6975 # ------------------------------------------
6976 dir_password=
6977
6978 # Check whether --with-dir-password or --without-dir-password was given.
6979 if test "${with_dir_password+set}" = set; then
6980   withval="$with_dir_password"
6981
6982        if test "x$withval" != "xno" ; then
6983            dir_password=$withval
6984        fi
6985
6986
6987 fi;
6988
6989 if test "x$dir_password" = "x" ; then
6990    if test "x$OPENSSL" = "xnone" ; then
6991 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6992       key=`autoconf/randpass 33`
6993    else
6994       key=`openssl rand -base64 33`
6995    fi
6996    dir_password=$key
6997 fi
6998
6999 fd_password=
7000
7001 # Check whether --with-fd-password or --without-fd-password was given.
7002 if test "${with_fd_password+set}" = set; then
7003   withval="$with_fd_password"
7004
7005        if test "x$withval" != "xno" ; then
7006            fd_password=$withval
7007        fi
7008
7009
7010 fi;
7011
7012 if test "x$fd_password" = "x" ; then
7013    if test "x$OPENSSL" = "xnone" ; then
7014 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7015       key=`autoconf/randpass 37`
7016    else
7017       key=`openssl rand -base64 33`
7018    fi
7019    fd_password=$key
7020 fi
7021
7022 sd_password=
7023
7024 # Check whether --with-sd-password or --without-sd-password was given.
7025 if test "${with_sd_password+set}" = set; then
7026   withval="$with_sd_password"
7027
7028        if test "x$withval" != "xno" ; then
7029            sd_password=$withval
7030        fi
7031
7032
7033 fi;
7034
7035 if test "x$sd_password" = "x" ; then
7036    if test "x$OPENSSL" = "xnone" ; then
7037 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7038       key=`autoconf/randpass 41`
7039    else
7040       key=`openssl rand -base64 33`
7041    fi
7042    sd_password=$key
7043 fi
7044
7045
7046
7047
7048
7049
7050
7051 #
7052 # Handle users and groups for each daemon
7053 #
7054 dir_user=
7055
7056 # Check whether --with-dir_user or --without-dir_user was given.
7057 if test "${with_dir_user+set}" = set; then
7058   withval="$with_dir_user"
7059
7060         if test "x$withval" != "x" ; then
7061              dir_user=$withval
7062         fi
7063
7064
7065 fi;
7066
7067 dir_group=
7068
7069 # Check whether --with-dir_group or --without-dir_group was given.
7070 if test "${with_dir_group+set}" = set; then
7071   withval="$with_dir_group"
7072
7073         if test "x$withval" != "x" ; then
7074              dir_group=$withval
7075         fi
7076
7077
7078 fi;
7079
7080 sd_user=
7081
7082 # Check whether --with-sd_user or --without-sd_user was given.
7083 if test "${with_sd_user+set}" = set; then
7084   withval="$with_sd_user"
7085
7086         if test "x$withval" != "x" ; then
7087              sd_user=$withval
7088         fi
7089
7090
7091 fi;
7092
7093 sd_group=
7094
7095 # Check whether --with-sd_group or --without-sd_group was given.
7096 if test "${with_sd_group+set}" = set; then
7097   withval="$with_sd_group"
7098
7099         if test "x$withval" != "x" ; then
7100              sd_group=$withval
7101         fi
7102
7103
7104 fi;
7105
7106 fd_user=
7107
7108 # Check whether --with-fd_user or --without-fd_user was given.
7109 if test "${with_fd_user+set}" = set; then
7110   withval="$with_fd_user"
7111
7112         if test "x$withval" != "x" ; then
7113              fd_user=$withval
7114         fi
7115
7116
7117 fi;
7118
7119 fd_group=
7120
7121 # Check whether --with-fd_group or --without-fd_group was given.
7122 if test "${with_fd_group+set}" = set; then
7123   withval="$with_fd_group"
7124
7125         if test "x$withval" != "x" ; then
7126              fd_group=$withval
7127         fi
7128
7129
7130 fi;
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142 #
7143 # allow setting default executable permissions
7144 #
7145 SBINPERM=0754
7146
7147 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7148 if test "${with_sbin_perm+set}" = set; then
7149   withval="$with_sbin_perm"
7150
7151         if test "x$withval" != "x" ; then
7152             SBINPERM=$withval
7153         fi
7154
7155
7156 fi;
7157
7158
7159
7160 # ------------------------------------------------
7161 # Bacula check for various SQL database engines
7162 # ------------------------------------------------
7163
7164 db_found=no
7165 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7166 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7167
7168 # Check whether --with-postgresql or --without-postgresql was given.
7169 if test "${with_postgresql+set}" = set; then
7170   withval="$with_postgresql"
7171
7172   if test "$withval" != "no"; then
7173       if test "$db_found" = "yes"; then
7174           echo "$as_me:$LINENO: result: error" >&5
7175 echo "${ECHO_T}error" >&6
7176           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7177 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7178    { (exit 1); exit 1; }; };
7179       fi
7180       if test "$withval" = "yes"; then
7181           if test -f /usr/local/include/libpq-fe.h; then
7182               POSTGRESQL_INCDIR=/usr/local/include
7183               POSTGRESQL_LIBDIR=/usr/local/lib
7184               POSTGRESQL_BINDIR=/usr/local/bin
7185           elif test -f /usr/include/libpq-fe.h; then
7186               POSTGRESQL_INCDIR=/usr/include
7187               POSTGRESQL_LIBDIR=/usr/lib
7188               POSTGRESQL_BINDIR=/usr/bin
7189           elif test -f /usr/include/pgsql/libpq-fe.h; then
7190               POSTGRESQL_INCDIR=/usr/include/pgsql
7191               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7192               POSTGRESQL_BINDIR=/usr/bin
7193           elif test -f /usr/include/postgresql/libpq-fe.h; then
7194               POSTGRESQL_INCDIR=/usr/include/postgresql
7195               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7196               POSTGRESQL_BINDIR=/usr/bin
7197           else
7198               echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6
7200               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7201 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7202    { (exit 1); exit 1; }; }
7203           fi
7204       elif test -f $withval/include/libpq-fe.h; then
7205           POSTGRESQL_INCDIR=$withval/include
7206           POSTGRESQL_LIBDIR=$withval/lib
7207           POSTGRESQL_BINDIR=$withval/bin
7208       else
7209           echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6
7211           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7212 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7213    { (exit 1); exit 1; }; }
7214       fi
7215       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7216       echo "$as_me:$LINENO: checking for crypt" >&5
7217 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7218 if test "${ac_cv_func_crypt+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221   cat >conftest.$ac_ext <<_ACEOF
7222 #line $LINENO "configure"
7223 /* confdefs.h.  */
7224 _ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h.  */
7228 /* System header to define __stub macros and hopefully few prototypes,
7229     which can conflict with char crypt (); below.
7230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7231     <limits.h> exists even on freestanding compilers.  */
7232 #ifdef __STDC__
7233 # include <limits.h>
7234 #else
7235 # include <assert.h>
7236 #endif
7237 /* Override any gcc2 internal prototype to avoid an error.  */
7238 #ifdef __cplusplus
7239 extern "C"
7240 {
7241 #endif
7242 /* We use char because int might match the return type of a gcc2
7243    builtin and then its argument prototype would still apply.  */
7244 char crypt ();
7245 /* The GNU C library defines this for functions which it implements
7246     to always fail with ENOSYS.  Some functions are actually named
7247     something starting with __ and the normal name is an alias.  */
7248 #if defined (__stub_crypt) || defined (__stub___crypt)
7249 choke me
7250 #else
7251 char (*f) () = crypt;
7252 #endif
7253 #ifdef __cplusplus
7254 }
7255 #endif
7256
7257 int
7258 main ()
7259 {
7260 return f != crypt;
7261   ;
7262   return 0;
7263 }
7264 _ACEOF
7265 rm -f conftest.$ac_objext conftest$ac_exeext
7266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7267   (eval $ac_link) 2>&5
7268   ac_status=$?
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); } &&
7271          { ac_try='test -s conftest$ac_exeext'
7272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273   (eval $ac_try) 2>&5
7274   ac_status=$?
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); }; }; then
7277   ac_cv_func_crypt=yes
7278 else
7279   echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282 ac_cv_func_crypt=no
7283 fi
7284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7285 fi
7286 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7287 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7288 if test $ac_cv_func_crypt = yes; then
7289   :
7290 else
7291   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7292 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7293 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296   ac_check_lib_save_LIBS=$LIBS
7297 LIBS="-lcrypt  $LIBS"
7298 cat >conftest.$ac_ext <<_ACEOF
7299 #line $LINENO "configure"
7300 /* confdefs.h.  */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h.  */
7305
7306 /* Override any gcc2 internal prototype to avoid an error.  */
7307 #ifdef __cplusplus
7308 extern "C"
7309 #endif
7310 /* We use char because int might match the return type of a gcc2
7311    builtin and then its argument prototype would still apply.  */
7312 char crypt ();
7313 int
7314 main ()
7315 {
7316 crypt ();
7317   ;
7318   return 0;
7319 }
7320 _ACEOF
7321 rm -f conftest.$ac_objext conftest$ac_exeext
7322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7323   (eval $ac_link) 2>&5
7324   ac_status=$?
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); } &&
7327          { ac_try='test -s conftest$ac_exeext'
7328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329   (eval $ac_try) 2>&5
7330   ac_status=$?
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); }; }; then
7333   ac_cv_lib_crypt_crypt=yes
7334 else
7335   echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7337
7338 ac_cv_lib_crypt_crypt=no
7339 fi
7340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7341 LIBS=$ac_check_lib_save_LIBS
7342 fi
7343 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7344 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7345 if test $ac_cv_lib_crypt_crypt = yes; then
7346   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7347 fi
7348
7349 fi
7350
7351       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7352       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7353       SQL_BINDIR=$POSTGRESQL_BINDIR
7354       cat >>confdefs.h <<\_ACEOF
7355 #define HAVE_POSTGRESQL 1
7356 _ACEOF
7357
7358       echo "$as_me:$LINENO: result: yes" >&5
7359 echo "${ECHO_T}yes" >&6
7360       db_found=yes
7361       support_postgresql=yes
7362       db_name=PostgreSQL
7363       DB_NAME=postgresql
7364   else
7365       echo "$as_me:$LINENO: result: no" >&5
7366 echo "${ECHO_T}no" >&6
7367   fi
7368
7369 else
7370
7371   echo "$as_me:$LINENO: result: no" >&5
7372 echo "${ECHO_T}no" >&6
7373
7374 fi;
7375
7376
7377
7378
7379
7380
7381
7382 db_found=no
7383 echo "$as_me:$LINENO: checking for MySQL support" >&5
7384 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7385
7386 # Check whether --with-mysql or --without-mysql was given.
7387 if test "${with_mysql+set}" = set; then
7388   withval="$with_mysql"
7389
7390   if test "$withval" != "no"; then
7391         if test "$withval" = "yes"; then
7392                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7393                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7394                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7395                         MYSQL_BINDIR=/usr/local/mysql/bin
7396                 elif test -f /usr/include/mysql/mysql.h; then
7397                         MYSQL_INCDIR=/usr/include/mysql
7398                         MYSQL_LIBDIR=/usr/lib/mysql
7399                         MYSQL_BINDIR=/usr/bin
7400                 elif test -f /usr/include/mysql.h; then
7401                         MYSQL_INCDIR=/usr/include
7402                         MYSQL_LIBDIR=/usr/lib
7403                         MYSQL_BINDIR=/usr/bin
7404                 elif test -f /usr/local/include/mysql/mysql.h; then
7405                         MYSQL_INCDIR=/usr/local/include/mysql
7406                         MYSQL_LIBDIR=/usr/local/lib/mysql
7407                         MYSQL_BINDIR=/usr/local/bin
7408                 elif test -f /usr/local/include/mysql.h; then
7409                         MYSQL_INCDIR=/usr/local/include
7410                         MYSQL_LIBDIR=/usr/local/lib
7411                         MYSQL_BINDIR=/usr/local/bin
7412                 else
7413                    echo "$as_me:$LINENO: result: no" >&5
7414 echo "${ECHO_T}no" >&6
7415                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7416 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7417    { (exit 1); exit 1; }; }
7418                 fi
7419         else
7420                 if test -f $withval/include/mysql/mysql.h; then
7421                         MYSQL_INCDIR=$withval/include/mysql
7422                         MYSQL_LIBDIR=$withval/lib/mysql
7423                         MYSQL_BINDIR=$withval/bin
7424                 elif test -f $withval/include/mysql.h; then
7425                         MYSQL_INCDIR=$withval/include
7426                         MYSQL_LIBDIR=$withval/lib
7427                         MYSQL_BINDIR=$withval/bin
7428                 else
7429                    echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7431                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7432 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7433    { (exit 1); exit 1; }; }
7434                 fi
7435         fi
7436     SQL_INCLUDE=-I$MYSQL_INCDIR
7437     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7438        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7439        cat >>confdefs.h <<\_ACEOF
7440 #define HAVE_THREAD_SAFE_MYSQL 1
7441 _ACEOF
7442
7443     else
7444        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7445     fi
7446     SQL_BINDIR=$MYSQL_BINDIR
7447
7448     cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_MYSQL 1
7450 _ACEOF
7451
7452     echo "$as_me:$LINENO: result: yes" >&5
7453 echo "${ECHO_T}yes" >&6
7454     db_found=yes
7455     support_mysql=yes
7456     db_name=MySQL
7457     DB_NAME=mysql
7458
7459   else
7460         echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6
7462   fi
7463
7464
7465 fi;
7466
7467
7468 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7469 if test "${with_embedded_mysql+set}" = set; then
7470   withval="$with_embedded_mysql"
7471
7472   if test "$withval" != "no"; then
7473         if test "$withval" = "yes"; then
7474                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7475                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7476                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7477                         MYSQL_BINDIR=/usr/local/mysql/bin
7478                 elif test -f /usr/include/mysql/mysql.h; then
7479                         MYSQL_INCDIR=/usr/include/mysql
7480                         MYSQL_LIBDIR=/usr/lib/mysql
7481                         MYSQL_BINDIR=/usr/bin
7482                 elif test -f /usr/include/mysql.h; then
7483                         MYSQL_INCDIR=/usr/include
7484                         MYSQL_LIBDIR=/usr/lib
7485                         MYSQL_BINDIR=/usr/bin
7486                 elif test -f /usr/local/include/mysql/mysql.h; then
7487                         MYSQL_INCDIR=/usr/local/include/mysql
7488                         MYSQL_LIBDIR=/usr/local/lib/mysql
7489                         MYSQL_BINDIR=/usr/local/bin
7490                 elif test -f /usr/local/include/mysql.h; then
7491                         MYSQL_INCDIR=/usr/local/include
7492                         MYSQL_LIBDIR=/usr/local/lib
7493                         MYSQL_BINDIR=/usr/local/bin
7494                 else
7495                    echo "$as_me:$LINENO: result: no" >&5
7496 echo "${ECHO_T}no" >&6
7497                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7498 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7499    { (exit 1); exit 1; }; }
7500                 fi
7501         else
7502                 if test -f $withval/include/mysql/mysql.h; then
7503                         MYSQL_INCDIR=$withval/include/mysql
7504                         MYSQL_LIBDIR=$withval/lib/mysql
7505                         MYSQL_BINDIR=$withval/bin
7506                 elif test -f $withval/include/mysql.h; then
7507                         MYSQL_INCDIR=$withval/include
7508                         MYSQL_LIBDIR=$withval/lib
7509                         MYSQL_BINDIR=$withval/bin
7510                 else
7511                    echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6
7513                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7514 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7515    { (exit 1); exit 1; }; }
7516                 fi
7517         fi
7518     SQL_INCLUDE=-I$MYSQL_INCDIR
7519     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7520     SQL_BINDIR=$MYSQL_BINDIR
7521
7522     cat >>confdefs.h <<\_ACEOF
7523 #define HAVE_MYSQL 1
7524 _ACEOF
7525
7526     cat >>confdefs.h <<\_ACEOF
7527 #define HAVE_EMBEDDED_MYSQL 1
7528 _ACEOF
7529
7530     echo "$as_me:$LINENO: result: yes" >&5
7531 echo "${ECHO_T}yes" >&6
7532     db_found=yes
7533     support_mysql=yes
7534     db_name=MySQL
7535     DB_NAME=mysql
7536
7537   else
7538         echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6
7540   fi
7541
7542
7543 fi;
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553 db_found=no
7554 echo "$as_me:$LINENO: checking for SQLite support" >&5
7555 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7556
7557 # Check whether --with-sqlite or --without-sqlite was given.
7558 if test "${with_sqlite+set}" = set; then
7559   withval="$with_sqlite"
7560
7561   if test "$withval" != "no"; then
7562      if test "$withval" = "yes"; then
7563         if test -f /usr/local/include/sqlite.h; then
7564            SQLITE_INCDIR=/usr/local/include
7565            SQLITE_LIBDIR=/usr/local/lib
7566            SQLITE_BINDIR=/usr/local/bin
7567         elif test -f /usr/include/sqlite.h; then
7568            SQLITE_INCDIR=/usr/include
7569            SQLITE_LIBDIR=/usr/lib
7570            SQLITE_BINDIR=/usr/bin
7571         else
7572            echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6
7574            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7575 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7576    { (exit 1); exit 1; }; }
7577         fi
7578      else
7579         if test -f $withval/sqlite.h; then
7580            SQLITE_INCDIR=$withval
7581            SQLITE_LIBDIR=$withval
7582            SQLITE_BINDIR=$withval
7583         else
7584            echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6
7586            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7587 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7588    { (exit 1); exit 1; }; }
7589         fi
7590      fi
7591      SQL_INCLUDE=-I$SQLITE_INCDIR
7592      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7593      SQL_BINDIR=$SQLITE_BINDIR
7594
7595      cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_SQLITE 1
7597 _ACEOF
7598
7599      echo "$as_me:$LINENO: result: yes" >&5
7600 echo "${ECHO_T}yes" >&6
7601      db_found=yes
7602      support_sqlite=yes
7603      db_name=SQLite
7604      DB_NAME=sqlite
7605
7606   else
7607      echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6
7609   fi
7610
7611 else
7612
7613   echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6
7615
7616 fi;
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626 cat >>confdefs.h <<\_ACEOF
7627 #define PROTOTYPES 1
7628 _ACEOF
7629
7630
7631 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7632     if test -z "$CCOPTS"; then
7633         CCOPTS='-g -O2 -Wall'
7634     fi
7635     CFLAGS="$CCOPTS"
7636 fi
7637
7638
7639
7640
7641 largefile_support="no"
7642
7643    # Check whether --enable-largefile or --disable-largefile was given.
7644 if test "${enable_largefile+set}" = set; then
7645   enableval="$enable_largefile"
7646
7647 fi;
7648    if test "$enable_largefile" != no; then
7649      if test -n "$ac_tool_prefix"; then
7650   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7651 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7652 echo "$as_me:$LINENO: checking for $ac_word" >&5
7653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7654 if test "${ac_cv_prog_GETCONF+set}" = set; then
7655   echo $ECHO_N "(cached) $ECHO_C" >&6
7656 else
7657   if test -n "$GETCONF"; then
7658   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7662 do
7663   IFS=$as_save_IFS
7664   test -z "$as_dir" && as_dir=.
7665   for ac_exec_ext in '' $ac_executable_extensions; do
7666   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7669     break 2
7670   fi
7671 done
7672 done
7673
7674 fi
7675 fi
7676 GETCONF=$ac_cv_prog_GETCONF
7677 if test -n "$GETCONF"; then
7678   echo "$as_me:$LINENO: result: $GETCONF" >&5
7679 echo "${ECHO_T}$GETCONF" >&6
7680 else
7681   echo "$as_me:$LINENO: result: no" >&5
7682 echo "${ECHO_T}no" >&6
7683 fi
7684
7685 fi
7686 if test -z "$ac_cv_prog_GETCONF"; then
7687   ac_ct_GETCONF=$GETCONF
7688   # Extract the first word of "getconf", so it can be a program name with args.
7689 set dummy getconf; ac_word=$2
7690 echo "$as_me:$LINENO: checking for $ac_word" >&5
7691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7692 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7693   echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695   if test -n "$ac_ct_GETCONF"; then
7696   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701   IFS=$as_save_IFS
7702   test -z "$as_dir" && as_dir=.
7703   for ac_exec_ext in '' $ac_executable_extensions; do
7704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705     ac_cv_prog_ac_ct_GETCONF="getconf"
7706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707     break 2
7708   fi
7709 done
7710 done
7711
7712 fi
7713 fi
7714 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7715 if test -n "$ac_ct_GETCONF"; then
7716   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7717 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7718 else
7719   echo "$as_me:$LINENO: result: no" >&5
7720 echo "${ECHO_T}no" >&6
7721 fi
7722
7723   GETCONF=$ac_ct_GETCONF
7724 else
7725   GETCONF="$ac_cv_prog_GETCONF"
7726 fi
7727
7728      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7729 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7730 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7731   echo $ECHO_N "(cached) $ECHO_C" >&6
7732 else
7733   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7734         ac_cv_sys_largefile_CFLAGS=no
7735         case "$host_os" in
7736            # IRIX 6.2 and later require cc -n32.
7737            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7738              if test "$GCC" != yes; then
7739                ac_cv_sys_largefile_CFLAGS=-n32
7740              fi
7741              ac_save_CC="$CC"
7742              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7743              cat >conftest.$ac_ext <<_ACEOF
7744 #line $LINENO "configure"
7745 /* confdefs.h.  */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h.  */
7750
7751 int
7752 main ()
7753 {
7754
7755   ;
7756   return 0;
7757 }
7758 _ACEOF
7759 rm -f conftest.$ac_objext conftest$ac_exeext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7761   (eval $ac_link) 2>&5
7762   ac_status=$?
7763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); } &&
7765          { ac_try='test -s conftest$ac_exeext'
7766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767   (eval $ac_try) 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); }; }; then
7771   :
7772 else
7773   echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.$ac_ext >&5
7775
7776 ac_cv_sys_largefile_CFLAGS=no
7777 fi
7778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7779              CC="$ac_save_CC"
7780            esac
7781       }
7782 fi
7783 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7784 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7785      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7786 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7787 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7788   echo $ECHO_N "(cached) $ECHO_C" >&6
7789 else
7790   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7791         ac_cv_sys_largefile_LDFLAGS=no
7792
7793       }
7794 fi
7795 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7796 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7797      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7798 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7799 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7803         ac_cv_sys_largefile_LIBS=no
7804
7805       }
7806 fi
7807 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7808 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7809
7810      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7811        case "$ac_flag" in
7812        no) ;;
7813        -D_FILE_OFFSET_BITS=*) ;;
7814        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7815        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7816        -D?* | -I?*)
7817          case "$ac_flag" in
7818    no) ;;
7819    ?*)
7820      case "$CPPFLAGS" in
7821      '') CPPFLAGS="$ac_flag" ;;
7822      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7823      esac ;;
7824    esac ;;
7825        *)
7826          case "$ac_flag" in
7827    no) ;;
7828    ?*)
7829      case "$CFLAGS" in
7830      '') CFLAGS="$ac_flag" ;;
7831      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7832      esac ;;
7833    esac ;;
7834        esac
7835      done
7836      case "$ac_cv_sys_largefile_LDFLAGS" in
7837    no) ;;
7838    ?*)
7839      case "$LDFLAGS" in
7840      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7841      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7842      esac ;;
7843    esac
7844      case "$ac_cv_sys_largefile_LIBS" in
7845    no) ;;
7846    ?*)
7847      case "$LIBS" in
7848      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7849      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7850      esac ;;
7851    esac
7852      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7853 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7854 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7855   echo $ECHO_N "(cached) $ECHO_C" >&6
7856 else
7857   ac_cv_sys_file_offset_bits=no
7858       case "$host_os" in
7859         # HP-UX 10.20 and later
7860         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7861           ac_cv_sys_file_offset_bits=64 ;;
7862         esac
7863       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7864         case "$ac_flag" in
7865         -D_FILE_OFFSET_BITS)
7866           ac_cv_sys_file_offset_bits=1 ;;
7867         -D_FILE_OFFSET_BITS=*)
7868           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7869         esac
7870       done
7871
7872 fi
7873 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7874 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7875    if test "$ac_cv_sys_file_offset_bits" != no; then
7876
7877 cat >>confdefs.h <<_ACEOF
7878 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7879 _ACEOF
7880
7881    fi
7882      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7883 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7884 if test "${ac_cv_sys_largefile_source+set}" = set; then
7885   echo $ECHO_N "(cached) $ECHO_C" >&6
7886 else
7887   ac_cv_sys_largefile_source=no
7888       case "$host_os" in
7889         # HP-UX 10.20 and later
7890         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7891           ac_cv_sys_largefile_source=1 ;;
7892         esac
7893       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7894         case "$ac_flag" in
7895         -D_LARGEFILE_SOURCE)
7896           ac_cv_sys_largefile_source=1 ;;
7897         -D_LARGEFILE_SOURCE=*)
7898           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7899         esac
7900       done
7901
7902 fi
7903 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7904 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7905    if test "$ac_cv_sys_largefile_source" != no; then
7906
7907 cat >>confdefs.h <<_ACEOF
7908 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7909 _ACEOF
7910
7911    fi
7912      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7913 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7914 if test "${ac_cv_sys_large_files+set}" = set; then
7915   echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917   ac_cv_sys_large_files=no
7918       case "$host_os" in
7919         # AIX 4.2 and later
7920         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7921           ac_cv_sys_large_files=1 ;;
7922         esac
7923       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7924         case "$ac_flag" in
7925         -D_LARGE_FILES)
7926           ac_cv_sys_large_files=1 ;;
7927         -D_LARGE_FILES=*)
7928           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7929         esac
7930       done
7931
7932 fi
7933 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7934 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7935    if test "$ac_cv_sys_large_files" != no; then
7936
7937 cat >>confdefs.h <<_ACEOF
7938 #define _LARGE_FILES $ac_cv_sys_large_files
7939 _ACEOF
7940
7941    fi
7942    fi
7943
7944
7945
7946 echo "$as_me:$LINENO: checking for X" >&5
7947 echo $ECHO_N "checking for X... $ECHO_C" >&6
7948
7949
7950 # Check whether --with-x or --without-x was given.
7951 if test "${with_x+set}" = set; then
7952   withval="$with_x"
7953
7954 fi;
7955 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7956 if test "x$with_x" = xno; then
7957   # The user explicitly disabled X.
7958   have_x=disabled
7959 else
7960   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7961     # Both variables are already set.
7962     have_x=yes
7963   else
7964     if test "${ac_cv_have_x+set}" = set; then
7965   echo $ECHO_N "(cached) $ECHO_C" >&6
7966 else
7967   # One or both of the vars are not set, and there is no cached value.
7968 ac_x_includes=no ac_x_libraries=no
7969 rm -fr conftest.dir
7970 if mkdir conftest.dir; then
7971   cd conftest.dir
7972   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7973   cat >Imakefile <<'_ACEOF'
7974 acfindx:
7975         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7976 _ACEOF
7977   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7978     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7979     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7980     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7981     for ac_extension in a so sl; do
7982       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7983          test -f $ac_im_libdir/libX11.$ac_extension; then
7984         ac_im_usrlibdir=$ac_im_libdir; break
7985       fi
7986     done
7987     # Screen out bogus values from the imake configuration.  They are
7988     # bogus both because they are the default anyway, and because
7989     # using them would break gcc on systems where it needs fixed includes.
7990     case $ac_im_incroot in
7991         /usr/include) ;;
7992         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7993     esac
7994     case $ac_im_usrlibdir in
7995         /usr/lib | /lib) ;;
7996         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7997     esac
7998   fi
7999   cd ..
8000   rm -fr conftest.dir
8001 fi
8002
8003 # Standard set of common directories for X headers.
8004 # Check X11 before X11Rn because it is often a symlink to the current release.
8005 ac_x_header_dirs='
8006 /usr/X11/include
8007 /usr/X11R6/include
8008 /usr/X11R5/include
8009 /usr/X11R4/include
8010
8011 /usr/include/X11
8012 /usr/include/X11R6
8013 /usr/include/X11R5
8014 /usr/include/X11R4
8015
8016 /usr/local/X11/include
8017 /usr/local/X11R6/include
8018 /usr/local/X11R5/include
8019 /usr/local/X11R4/include
8020
8021 /usr/local/include/X11
8022 /usr/local/include/X11R6
8023 /usr/local/include/X11R5
8024 /usr/local/include/X11R4
8025
8026 /usr/X386/include
8027 /usr/x386/include
8028 /usr/XFree86/include/X11
8029
8030 /usr/include
8031 /usr/local/include
8032 /usr/unsupported/include
8033 /usr/athena/include
8034 /usr/local/x11r5/include
8035 /usr/lpp/Xamples/include
8036
8037 /usr/openwin/include
8038 /usr/openwin/share/include'
8039
8040 if test "$ac_x_includes" = no; then
8041   # Guess where to find include files, by looking for Intrinsic.h.
8042   # First, try using that file with no special directory specified.
8043   cat >conftest.$ac_ext <<_ACEOF
8044 #line $LINENO "configure"
8045 /* confdefs.h.  */
8046 _ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h.  */
8050 #include <X11/Intrinsic.h>
8051 _ACEOF
8052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8054   ac_status=$?
8055   grep -v '^ *+' conftest.er1 >conftest.err
8056   rm -f conftest.er1
8057   cat conftest.err >&5
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); } >/dev/null; then
8060   if test -s conftest.err; then
8061     ac_cpp_err=$ac_c_preproc_warn_flag
8062   else
8063     ac_cpp_err=
8064   fi
8065 else
8066   ac_cpp_err=yes
8067 fi
8068 if test -z "$ac_cpp_err"; then
8069   # We can compile using X headers with no special include directory.
8070 ac_x_includes=
8071 else
8072   echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075   for ac_dir in $ac_x_header_dirs; do
8076   if test -r "$ac_dir/X11/Intrinsic.h"; then
8077     ac_x_includes=$ac_dir
8078     break
8079   fi
8080 done
8081 fi
8082 rm -f conftest.err conftest.$ac_ext
8083 fi # $ac_x_includes = no
8084
8085 if test "$ac_x_libraries" = no; then
8086   # Check for the libraries.
8087   # See if we find them without any special options.
8088   # Don't add to $LIBS permanently.
8089   ac_save_LIBS=$LIBS
8090   LIBS="-lXt $LIBS"
8091   cat >conftest.$ac_ext <<_ACEOF
8092 #line $LINENO "configure"
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098 #include <X11/Intrinsic.h>
8099 int
8100 main ()
8101 {
8102 XtMalloc (0)
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 rm -f conftest.$ac_objext conftest$ac_exeext
8108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8109   (eval $ac_link) 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); } &&
8113          { ac_try='test -s conftest$ac_exeext'
8114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115   (eval $ac_try) 2>&5
8116   ac_status=$?
8117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118   (exit $ac_status); }; }; then
8119   LIBS=$ac_save_LIBS
8120 # We can link X programs with no special library path.
8121 ac_x_libraries=
8122 else
8123   echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 LIBS=$ac_save_LIBS
8127 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8128 do
8129   # Don't even attempt the hair of trying to link an X program!
8130   for ac_extension in a so sl; do
8131     if test -r $ac_dir/libXt.$ac_extension; then
8132       ac_x_libraries=$ac_dir
8133       break 2
8134     fi
8135   done
8136 done
8137 fi
8138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8139 fi # $ac_x_libraries = no
8140
8141 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8142   # Didn't find X anywhere.  Cache the known absence of X.
8143   ac_cv_have_x="have_x=no"
8144 else
8145   # Record where we found X for the cache.
8146   ac_cv_have_x="have_x=yes \
8147                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8148 fi
8149 fi
8150
8151   fi
8152   eval "$ac_cv_have_x"
8153 fi # $with_x != no
8154
8155 if test "$have_x" != yes; then
8156   echo "$as_me:$LINENO: result: $have_x" >&5
8157 echo "${ECHO_T}$have_x" >&6
8158   no_x=yes
8159 else
8160   # If each of the values was on the command line, it overrides each guess.
8161   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8162   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8163   # Update the cache value to reflect the command line values.
8164   ac_cv_have_x="have_x=yes \
8165                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8166   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8167 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8168 fi
8169
8170 if test "$no_x" = yes; then
8171   # Not all programs may use this symbol, but it does not hurt to define it.
8172
8173 cat >>confdefs.h <<\_ACEOF
8174 #define X_DISPLAY_MISSING 1
8175 _ACEOF
8176
8177   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8178 else
8179   if test -n "$x_includes"; then
8180     X_CFLAGS="$X_CFLAGS -I$x_includes"
8181   fi
8182
8183   # It would also be nice to do this for all -L options, not just this one.
8184   if test -n "$x_libraries"; then
8185     X_LIBS="$X_LIBS -L$x_libraries"
8186     # For Solaris; some versions of Sun CC require a space after -R and
8187     # others require no space.  Words are not sufficient . . . .
8188     case `(uname -sr) 2>/dev/null` in
8189     "SunOS 5"*)
8190       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8191 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8192       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8193       cat >conftest.$ac_ext <<_ACEOF
8194 #line $LINENO "configure"
8195 /* confdefs.h.  */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h.  */
8200
8201 int
8202 main ()
8203 {
8204
8205   ;
8206   return 0;
8207 }
8208 _ACEOF
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211   (eval $ac_link) 2>&5
8212   ac_status=$?
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); } &&
8215          { ac_try='test -s conftest$ac_exeext'
8216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217   (eval $ac_try) 2>&5
8218   ac_status=$?
8219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220   (exit $ac_status); }; }; then
8221   ac_R_nospace=yes
8222 else
8223   echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8225
8226 ac_R_nospace=no
8227 fi
8228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8229       if test $ac_R_nospace = yes; then
8230         echo "$as_me:$LINENO: result: no" >&5
8231 echo "${ECHO_T}no" >&6
8232         X_LIBS="$X_LIBS -R$x_libraries"
8233       else
8234         LIBS="$ac_xsave_LIBS -R $x_libraries"
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
8243 int
8244 main ()
8245 {
8246
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   ac_R_space=yes
8264 else
8265   echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8267
8268 ac_R_space=no
8269 fi
8270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8271         if test $ac_R_space = yes; then
8272           echo "$as_me:$LINENO: result: yes" >&5
8273 echo "${ECHO_T}yes" >&6
8274           X_LIBS="$X_LIBS -R $x_libraries"
8275         else
8276           echo "$as_me:$LINENO: result: neither works" >&5
8277 echo "${ECHO_T}neither works" >&6
8278         fi
8279       fi
8280       LIBS=$ac_xsave_LIBS
8281     esac
8282   fi
8283
8284   # Check for system-dependent libraries X programs must link with.
8285   # Do this before checking for the system-independent R6 libraries
8286   # (-lICE), since we may need -lsocket or whatever for X linking.
8287
8288   if test "$ISC" = yes; then
8289     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8290   else
8291     # Martyn Johnson says this is needed for Ultrix, if the X
8292     # libraries were built with DECnet support.  And Karl Berry says
8293     # the Alpha needs dnet_stub (dnet does not exist).
8294     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8295     cat >conftest.$ac_ext <<_ACEOF
8296 #line $LINENO "configure"
8297 /* confdefs.h.  */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h.  */
8302
8303 /* Override any gcc2 internal prototype to avoid an error.  */
8304 #ifdef __cplusplus
8305 extern "C"
8306 #endif
8307 /* We use char because int might match the return type of a gcc2
8308    builtin and then its argument prototype would still apply.  */
8309 char XOpenDisplay ();
8310 int
8311 main ()
8312 {
8313 XOpenDisplay ();
8314   ;
8315   return 0;
8316 }
8317 _ACEOF
8318 rm -f conftest.$ac_objext conftest$ac_exeext
8319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8320   (eval $ac_link) 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); } &&
8324          { ac_try='test -s conftest$ac_exeext'
8325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326   (eval $ac_try) 2>&5
8327   ac_status=$?
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); }; }; then
8330   :
8331 else
8332   echo "$as_me: failed program was:" >&5
8333 sed 's/^/| /' conftest.$ac_ext >&5
8334
8335 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8336 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8337 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8338   echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340   ac_check_lib_save_LIBS=$LIBS
8341 LIBS="-ldnet  $LIBS"
8342 cat >conftest.$ac_ext <<_ACEOF
8343 #line $LINENO "configure"
8344 /* confdefs.h.  */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h.  */
8349
8350 /* Override any gcc2 internal prototype to avoid an error.  */
8351 #ifdef __cplusplus
8352 extern "C"
8353 #endif
8354 /* We use char because int might match the return type of a gcc2
8355    builtin and then its argument prototype would still apply.  */
8356 char dnet_ntoa ();
8357 int
8358 main ()
8359 {
8360 dnet_ntoa ();
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8367   (eval $ac_link) 2>&5
8368   ac_status=$?
8369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370   (exit $ac_status); } &&
8371          { ac_try='test -s conftest$ac_exeext'
8372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373   (eval $ac_try) 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; }; then
8377   ac_cv_lib_dnet_dnet_ntoa=yes
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_cv_lib_dnet_dnet_ntoa=no
8383 fi
8384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8385 LIBS=$ac_check_lib_save_LIBS
8386 fi
8387 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8388 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8389 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8390   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8391 fi
8392
8393     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8394       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8395 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8396 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8397   echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399   ac_check_lib_save_LIBS=$LIBS
8400 LIBS="-ldnet_stub  $LIBS"
8401 cat >conftest.$ac_ext <<_ACEOF
8402 #line $LINENO "configure"
8403 /* confdefs.h.  */
8404 _ACEOF
8405 cat confdefs.h >>conftest.$ac_ext
8406 cat >>conftest.$ac_ext <<_ACEOF
8407 /* end confdefs.h.  */
8408
8409 /* Override any gcc2 internal prototype to avoid an error.  */
8410 #ifdef __cplusplus
8411 extern "C"
8412 #endif
8413 /* We use char because int might match the return type of a gcc2
8414    builtin and then its argument prototype would still apply.  */
8415 char dnet_ntoa ();
8416 int
8417 main ()
8418 {
8419 dnet_ntoa ();
8420   ;
8421   return 0;
8422 }
8423 _ACEOF
8424 rm -f conftest.$ac_objext conftest$ac_exeext
8425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8426   (eval $ac_link) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); } &&
8430          { ac_try='test -s conftest$ac_exeext'
8431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432   (eval $ac_try) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; }; then
8436   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 ac_cv_lib_dnet_stub_dnet_ntoa=no
8442 fi
8443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8444 LIBS=$ac_check_lib_save_LIBS
8445 fi
8446 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8447 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8448 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8449   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8450 fi
8451
8452     fi
8453 fi
8454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8455     LIBS="$ac_xsave_LIBS"
8456
8457     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8458     # to get the SysV transport functions.
8459     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8460     # needs -lnsl.
8461     # The nsl library prevents programs from opening the X display
8462     # on Irix 5.2, according to T.E. Dickey.
8463     # The functions gethostbyname, getservbyname, and inet_addr are
8464     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8465     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8466 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8467 if test "${ac_cv_func_gethostbyname+set}" = set; then
8468   echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470   cat >conftest.$ac_ext <<_ACEOF
8471 #line $LINENO "configure"
8472 /* confdefs.h.  */
8473 _ACEOF
8474 cat confdefs.h >>conftest.$ac_ext
8475 cat >>conftest.$ac_ext <<_ACEOF
8476 /* end confdefs.h.  */
8477 /* System header to define __stub macros and hopefully few prototypes,
8478     which can conflict with char gethostbyname (); below.
8479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8480     <limits.h> exists even on freestanding compilers.  */
8481 #ifdef __STDC__
8482 # include <limits.h>
8483 #else
8484 # include <assert.h>
8485 #endif
8486 /* Override any gcc2 internal prototype to avoid an error.  */
8487 #ifdef __cplusplus
8488 extern "C"
8489 {
8490 #endif
8491 /* We use char because int might match the return type of a gcc2
8492    builtin and then its argument prototype would still apply.  */
8493 char gethostbyname ();
8494 /* The GNU C library defines this for functions which it implements
8495     to always fail with ENOSYS.  Some functions are actually named
8496     something starting with __ and the normal name is an alias.  */
8497 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8498 choke me
8499 #else
8500 char (*f) () = gethostbyname;
8501 #endif
8502 #ifdef __cplusplus
8503 }
8504 #endif
8505
8506 int
8507 main ()
8508 {
8509 return f != gethostbyname;
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516   (eval $ac_link) 2>&5
8517   ac_status=$?
8518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519   (exit $ac_status); } &&
8520          { ac_try='test -s conftest$ac_exeext'
8521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8522   (eval $ac_try) 2>&5
8523   ac_status=$?
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); }; }; then
8526   ac_cv_func_gethostbyname=yes
8527 else
8528   echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 ac_cv_func_gethostbyname=no
8532 fi
8533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8534 fi
8535 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8536 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8537
8538     if test $ac_cv_func_gethostbyname = no; then
8539       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8540 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8541 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8542   echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544   ac_check_lib_save_LIBS=$LIBS
8545 LIBS="-lnsl  $LIBS"
8546 cat >conftest.$ac_ext <<_ACEOF
8547 #line $LINENO "configure"
8548 /* confdefs.h.  */
8549 _ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h.  */
8553
8554 /* Override any gcc2 internal prototype to avoid an error.  */
8555 #ifdef __cplusplus
8556 extern "C"
8557 #endif
8558 /* We use char because int might match the return type of a gcc2
8559    builtin and then its argument prototype would still apply.  */
8560 char gethostbyname ();
8561 int
8562 main ()
8563 {
8564 gethostbyname ();
8565   ;
8566   return 0;
8567 }
8568 _ACEOF
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8571   (eval $ac_link) 2>&5
8572   ac_status=$?
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); } &&
8575          { ac_try='test -s conftest$ac_exeext'
8576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577   (eval $ac_try) 2>&5
8578   ac_status=$?
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); }; }; then
8581   ac_cv_lib_nsl_gethostbyname=yes
8582 else
8583   echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8585
8586 ac_cv_lib_nsl_gethostbyname=no
8587 fi
8588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8589 LIBS=$ac_check_lib_save_LIBS
8590 fi
8591 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8592 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8593 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8594   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8595 fi
8596
8597       if test $ac_cv_lib_nsl_gethostbyname = no; then
8598         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8599 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8600 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8601   echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603   ac_check_lib_save_LIBS=$LIBS
8604 LIBS="-lbsd  $LIBS"
8605 cat >conftest.$ac_ext <<_ACEOF
8606 #line $LINENO "configure"
8607 /* confdefs.h.  */
8608 _ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h.  */
8612
8613 /* Override any gcc2 internal prototype to avoid an error.  */
8614 #ifdef __cplusplus
8615 extern "C"
8616 #endif
8617 /* We use char because int might match the return type of a gcc2
8618    builtin and then its argument prototype would still apply.  */
8619 char gethostbyname ();
8620 int
8621 main ()
8622 {
8623 gethostbyname ();
8624   ;
8625   return 0;
8626 }
8627 _ACEOF
8628 rm -f conftest.$ac_objext conftest$ac_exeext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8630   (eval $ac_link) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); } &&
8634          { ac_try='test -s conftest$ac_exeext'
8635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636   (eval $ac_try) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; }; then
8640   ac_cv_lib_bsd_gethostbyname=yes
8641 else
8642   echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645 ac_cv_lib_bsd_gethostbyname=no
8646 fi
8647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8648 LIBS=$ac_check_lib_save_LIBS
8649 fi
8650 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8651 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8652 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8653   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8654 fi
8655
8656       fi
8657     fi
8658
8659     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8660     # socket/setsockopt and other routines are undefined under SCO ODT
8661     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8662     # on later versions), says Simon Leinen: it contains gethostby*
8663     # variants that don't use the name server (or something).  -lsocket
8664     # must be given before -lnsl if both are needed.  We assume that
8665     # if connect needs -lnsl, so does gethostbyname.
8666     echo "$as_me:$LINENO: checking for connect" >&5
8667 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8668 if test "${ac_cv_func_connect+set}" = set; then
8669   echo $ECHO_N "(cached) $ECHO_C" >&6
8670 else
8671   cat >conftest.$ac_ext <<_ACEOF
8672 #line $LINENO "configure"
8673 /* confdefs.h.  */
8674 _ACEOF
8675 cat confdefs.h >>conftest.$ac_ext
8676 cat >>conftest.$ac_ext <<_ACEOF
8677 /* end confdefs.h.  */
8678 /* System header to define __stub macros and hopefully few prototypes,
8679     which can conflict with char connect (); below.
8680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8681     <limits.h> exists even on freestanding compilers.  */
8682 #ifdef __STDC__
8683 # include <limits.h>
8684 #else
8685 # include <assert.h>
8686 #endif
8687 /* Override any gcc2 internal prototype to avoid an error.  */
8688 #ifdef __cplusplus
8689 extern "C"
8690 {
8691 #endif
8692 /* We use char because int might match the return type of a gcc2
8693    builtin and then its argument prototype would still apply.  */
8694 char connect ();
8695 /* The GNU C library defines this for functions which it implements
8696     to always fail with ENOSYS.  Some functions are actually named
8697     something starting with __ and the normal name is an alias.  */
8698 #if defined (__stub_connect) || defined (__stub___connect)
8699 choke me
8700 #else
8701 char (*f) () = connect;
8702 #endif
8703 #ifdef __cplusplus
8704 }
8705 #endif
8706
8707 int
8708 main ()
8709 {
8710 return f != connect;
8711   ;
8712   return 0;
8713 }
8714 _ACEOF
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717   (eval $ac_link) 2>&5
8718   ac_status=$?
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } &&
8721          { ac_try='test -s conftest$ac_exeext'
8722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723   (eval $ac_try) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; }; then
8727   ac_cv_func_connect=yes
8728 else
8729   echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8731
8732 ac_cv_func_connect=no
8733 fi
8734 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8735 fi
8736 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8737 echo "${ECHO_T}$ac_cv_func_connect" >&6
8738
8739     if test $ac_cv_func_connect = no; then
8740       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8741 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8742 if test "${ac_cv_lib_socket_connect+set}" = set; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745   ac_check_lib_save_LIBS=$LIBS
8746 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8747 cat >conftest.$ac_ext <<_ACEOF
8748 #line $LINENO "configure"
8749 /* confdefs.h.  */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h.  */
8754
8755 /* Override any gcc2 internal prototype to avoid an error.  */
8756 #ifdef __cplusplus
8757 extern "C"
8758 #endif
8759 /* We use char because int might match the return type of a gcc2
8760    builtin and then its argument prototype would still apply.  */
8761 char connect ();
8762 int
8763 main ()
8764 {
8765 connect ();
8766   ;
8767   return 0;
8768 }
8769 _ACEOF
8770 rm -f conftest.$ac_objext conftest$ac_exeext
8771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8772   (eval $ac_link) 2>&5
8773   ac_status=$?
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); } &&
8776          { ac_try='test -s conftest$ac_exeext'
8777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8778   (eval $ac_try) 2>&5
8779   ac_status=$?
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); }; }; then
8782   ac_cv_lib_socket_connect=yes
8783 else
8784   echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8786
8787 ac_cv_lib_socket_connect=no
8788 fi
8789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8790 LIBS=$ac_check_lib_save_LIBS
8791 fi
8792 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8793 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8794 if test $ac_cv_lib_socket_connect = yes; then
8795   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8796 fi
8797
8798     fi
8799
8800     # Guillermo Gomez says -lposix is necessary on A/UX.
8801     echo "$as_me:$LINENO: checking for remove" >&5
8802 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8803 if test "${ac_cv_func_remove+set}" = set; then
8804   echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806   cat >conftest.$ac_ext <<_ACEOF
8807 #line $LINENO "configure"
8808 /* confdefs.h.  */
8809 _ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h.  */
8813 /* System header to define __stub macros and hopefully few prototypes,
8814     which can conflict with char remove (); below.
8815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8816     <limits.h> exists even on freestanding compilers.  */
8817 #ifdef __STDC__
8818 # include <limits.h>
8819 #else
8820 # include <assert.h>
8821 #endif
8822 /* Override any gcc2 internal prototype to avoid an error.  */
8823 #ifdef __cplusplus
8824 extern "C"
8825 {
8826 #endif
8827 /* We use char because int might match the return type of a gcc2
8828    builtin and then its argument prototype would still apply.  */
8829 char remove ();
8830 /* The GNU C library defines this for functions which it implements
8831     to always fail with ENOSYS.  Some functions are actually named
8832     something starting with __ and the normal name is an alias.  */
8833 #if defined (__stub_remove) || defined (__stub___remove)
8834 choke me
8835 #else
8836 char (*f) () = remove;
8837 #endif
8838 #ifdef __cplusplus
8839 }
8840 #endif
8841
8842 int
8843 main ()
8844 {
8845 return f != remove;
8846   ;
8847   return 0;
8848 }
8849 _ACEOF
8850 rm -f conftest.$ac_objext conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852   (eval $ac_link) 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } &&
8856          { ac_try='test -s conftest$ac_exeext'
8857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858   (eval $ac_try) 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); }; }; then
8862   ac_cv_func_remove=yes
8863 else
8864   echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867 ac_cv_func_remove=no
8868 fi
8869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8870 fi
8871 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8872 echo "${ECHO_T}$ac_cv_func_remove" >&6
8873
8874     if test $ac_cv_func_remove = no; then
8875       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8876 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8877 if test "${ac_cv_lib_posix_remove+set}" = set; then
8878   echo $ECHO_N "(cached) $ECHO_C" >&6
8879 else
8880   ac_check_lib_save_LIBS=$LIBS
8881 LIBS="-lposix  $LIBS"
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889
8890 /* Override any gcc2 internal prototype to avoid an error.  */
8891 #ifdef __cplusplus
8892 extern "C"
8893 #endif
8894 /* We use char because int might match the return type of a gcc2
8895    builtin and then its argument prototype would still apply.  */
8896 char remove ();
8897 int
8898 main ()
8899 {
8900 remove ();
8901   ;
8902   return 0;
8903 }
8904 _ACEOF
8905 rm -f conftest.$ac_objext conftest$ac_exeext
8906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8907   (eval $ac_link) 2>&5
8908   ac_status=$?
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); } &&
8911          { ac_try='test -s conftest$ac_exeext'
8912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913   (eval $ac_try) 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); }; }; then
8917   ac_cv_lib_posix_remove=yes
8918 else
8919   echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8921
8922 ac_cv_lib_posix_remove=no
8923 fi
8924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8925 LIBS=$ac_check_lib_save_LIBS
8926 fi
8927 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8928 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8929 if test $ac_cv_lib_posix_remove = yes; then
8930   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8931 fi
8932
8933     fi
8934
8935     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8936     echo "$as_me:$LINENO: checking for shmat" >&5
8937 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8938 if test "${ac_cv_func_shmat+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   cat >conftest.$ac_ext <<_ACEOF
8942 #line $LINENO "configure"
8943 /* confdefs.h.  */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h.  */
8948 /* System header to define __stub macros and hopefully few prototypes,
8949     which can conflict with char shmat (); below.
8950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8951     <limits.h> exists even on freestanding compilers.  */
8952 #ifdef __STDC__
8953 # include <limits.h>
8954 #else
8955 # include <assert.h>
8956 #endif
8957 /* Override any gcc2 internal prototype to avoid an error.  */
8958 #ifdef __cplusplus
8959 extern "C"
8960 {
8961 #endif
8962 /* We use char because int might match the return type of a gcc2
8963    builtin and then its argument prototype would still apply.  */
8964 char shmat ();
8965 /* The GNU C library defines this for functions which it implements
8966     to always fail with ENOSYS.  Some functions are actually named
8967     something starting with __ and the normal name is an alias.  */
8968 #if defined (__stub_shmat) || defined (__stub___shmat)
8969 choke me
8970 #else
8971 char (*f) () = shmat;
8972 #endif
8973 #ifdef __cplusplus
8974 }
8975 #endif
8976
8977 int
8978 main ()
8979 {
8980 return f != shmat;
8981   ;
8982   return 0;
8983 }
8984 _ACEOF
8985 rm -f conftest.$ac_objext conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987   (eval $ac_link) 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } &&
8991          { ac_try='test -s conftest$ac_exeext'
8992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993   (eval $ac_try) 2>&5
8994   ac_status=$?
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); }; }; then
8997   ac_cv_func_shmat=yes
8998 else
8999   echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9001
9002 ac_cv_func_shmat=no
9003 fi
9004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9005 fi
9006 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9007 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9008
9009     if test $ac_cv_func_shmat = no; then
9010       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9011 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9012 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9013   echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015   ac_check_lib_save_LIBS=$LIBS
9016 LIBS="-lipc  $LIBS"
9017 cat >conftest.$ac_ext <<_ACEOF
9018 #line $LINENO "configure"
9019 /* confdefs.h.  */
9020 _ACEOF
9021 cat confdefs.h >>conftest.$ac_ext
9022 cat >>conftest.$ac_ext <<_ACEOF
9023 /* end confdefs.h.  */
9024
9025 /* Override any gcc2 internal prototype to avoid an error.  */
9026 #ifdef __cplusplus
9027 extern "C"
9028 #endif
9029 /* We use char because int might match the return type of a gcc2
9030    builtin and then its argument prototype would still apply.  */
9031 char shmat ();
9032 int
9033 main ()
9034 {
9035 shmat ();
9036   ;
9037   return 0;
9038 }
9039 _ACEOF
9040 rm -f conftest.$ac_objext conftest$ac_exeext
9041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9042   (eval $ac_link) 2>&5
9043   ac_status=$?
9044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045   (exit $ac_status); } &&
9046          { ac_try='test -s conftest$ac_exeext'
9047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048   (eval $ac_try) 2>&5
9049   ac_status=$?
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); }; }; then
9052   ac_cv_lib_ipc_shmat=yes
9053 else
9054   echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9056
9057 ac_cv_lib_ipc_shmat=no
9058 fi
9059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9060 LIBS=$ac_check_lib_save_LIBS
9061 fi
9062 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9063 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9064 if test $ac_cv_lib_ipc_shmat = yes; then
9065   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9066 fi
9067
9068     fi
9069   fi
9070
9071   # Check for libraries that X11R6 Xt/Xaw programs need.
9072   ac_save_LDFLAGS=$LDFLAGS
9073   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9074   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9075   # check for ICE first), but we must link in the order -lSM -lICE or
9076   # we get undefined symbols.  So assume we have SM if we have ICE.
9077   # These have to be linked with before -lX11, unlike the other
9078   # libraries we check for below, so use a different variable.
9079   # John Interrante, Karl Berry
9080   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9081 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9082 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9083   echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085   ac_check_lib_save_LIBS=$LIBS
9086 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9087 cat >conftest.$ac_ext <<_ACEOF
9088 #line $LINENO "configure"
9089 /* confdefs.h.  */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h.  */
9094
9095 /* Override any gcc2 internal prototype to avoid an error.  */
9096 #ifdef __cplusplus
9097 extern "C"
9098 #endif
9099 /* We use char because int might match the return type of a gcc2
9100    builtin and then its argument prototype would still apply.  */
9101 char IceConnectionNumber ();
9102 int
9103 main ()
9104 {
9105 IceConnectionNumber ();
9106   ;
9107   return 0;
9108 }
9109 _ACEOF
9110 rm -f conftest.$ac_objext conftest$ac_exeext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9112   (eval $ac_link) 2>&5
9113   ac_status=$?
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); } &&
9116          { ac_try='test -s conftest$ac_exeext'
9117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9118   (eval $ac_try) 2>&5
9119   ac_status=$?
9120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121   (exit $ac_status); }; }; then
9122   ac_cv_lib_ICE_IceConnectionNumber=yes
9123 else
9124   echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9126
9127 ac_cv_lib_ICE_IceConnectionNumber=no
9128 fi
9129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9130 LIBS=$ac_check_lib_save_LIBS
9131 fi
9132 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9133 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9134 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9135   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9136 fi
9137
9138   LDFLAGS=$ac_save_LDFLAGS
9139
9140 fi
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169 for ac_header in \
9170         assert.h \
9171         fcntl.h \
9172         grp.h \
9173         pwd.h \
9174         libc.h \
9175         limits.h \
9176         stdarg.h \
9177         stdlib.h \
9178         stdint.h \
9179         string.h \
9180         termios.h \
9181         termcap.h \
9182         unistd.h \
9183         sys/bitypes.h \
9184         sys/byteorder.h \
9185         sys/ioctl.h \
9186         sys/select.h \
9187         sys/sockio.h \
9188         sys/time.h \
9189         sys/socket.h \
9190         arpa/nameser.h \
9191         resolv.h \
9192         mtio.h \
9193         sys/mtio.h \
9194         sys/tape.h \
9195         regex.h \
9196
9197 do
9198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9200   echo "$as_me:$LINENO: checking for $ac_header" >&5
9201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9203   echo $ECHO_N "(cached) $ECHO_C" >&6
9204 fi
9205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9207 else
9208   # Is the header compilable?
9209 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9210 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9211 cat >conftest.$ac_ext <<_ACEOF
9212 #line $LINENO "configure"
9213 /* confdefs.h.  */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h.  */
9218 $ac_includes_default
9219 #include <$ac_header>
9220 _ACEOF
9221 rm -f conftest.$ac_objext
9222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9223   (eval $ac_compile) 2>&5
9224   ac_status=$?
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); } &&
9227          { ac_try='test -s conftest.$ac_objext'
9228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229   (eval $ac_try) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); }; }; then
9233   ac_header_compiler=yes
9234 else
9235   echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238 ac_header_compiler=no
9239 fi
9240 rm -f conftest.$ac_objext conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9242 echo "${ECHO_T}$ac_header_compiler" >&6
9243
9244 # Is the header present?
9245 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9246 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9247 cat >conftest.$ac_ext <<_ACEOF
9248 #line $LINENO "configure"
9249 /* confdefs.h.  */
9250 _ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h.  */
9254 #include <$ac_header>
9255 _ACEOF
9256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9257   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9258   ac_status=$?
9259   grep -v '^ *+' conftest.er1 >conftest.err
9260   rm -f conftest.er1
9261   cat conftest.err >&5
9262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263   (exit $ac_status); } >/dev/null; then
9264   if test -s conftest.err; then
9265     ac_cpp_err=$ac_c_preproc_warn_flag
9266   else
9267     ac_cpp_err=
9268   fi
9269 else
9270   ac_cpp_err=yes
9271 fi
9272 if test -z "$ac_cpp_err"; then
9273   ac_header_preproc=yes
9274 else
9275   echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9277
9278   ac_header_preproc=no
9279 fi
9280 rm -f conftest.err conftest.$ac_ext
9281 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9282 echo "${ECHO_T}$ac_header_preproc" >&6
9283
9284 # So?  What about this header?
9285 case $ac_header_compiler:$ac_header_preproc in
9286   yes:no )
9287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9291     (
9292       cat <<\_ASBOX
9293 ## ------------------------------------ ##
9294 ## Report this to bug-autoconf@gnu.org. ##
9295 ## ------------------------------------ ##
9296 _ASBOX
9297     ) |
9298       sed "s/^/$as_me: WARNING:     /" >&2
9299     ;;
9300   no:yes )
9301     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9303     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9305     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9307     (
9308       cat <<\_ASBOX
9309 ## ------------------------------------ ##
9310 ## Report this to bug-autoconf@gnu.org. ##
9311 ## ------------------------------------ ##
9312 _ASBOX
9313     ) |
9314       sed "s/^/$as_me: WARNING:     /" >&2
9315     ;;
9316 esac
9317 echo "$as_me:$LINENO: checking for $ac_header" >&5
9318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9320   echo $ECHO_N "(cached) $ECHO_C" >&6
9321 else
9322   eval "$as_ac_Header=$ac_header_preproc"
9323 fi
9324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9326
9327 fi
9328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9329   cat >>confdefs.h <<_ACEOF
9330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9331 _ACEOF
9332
9333 fi
9334
9335 done
9336
9337 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9338 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9339 if test "${ac_cv_header_stdc+set}" = set; then
9340   echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342   cat >conftest.$ac_ext <<_ACEOF
9343 #line $LINENO "configure"
9344 /* confdefs.h.  */
9345 _ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h.  */
9349 #include <stdlib.h>
9350 #include <stdarg.h>
9351 #include <string.h>
9352 #include <float.h>
9353
9354 int
9355 main ()
9356 {
9357
9358   ;
9359   return 0;
9360 }
9361 _ACEOF
9362 rm -f conftest.$ac_objext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9364   (eval $ac_compile) 2>&5
9365   ac_status=$?
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); } &&
9368          { ac_try='test -s conftest.$ac_objext'
9369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370   (eval $ac_try) 2>&5
9371   ac_status=$?
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); }; }; then
9374   ac_cv_header_stdc=yes
9375 else
9376   echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379 ac_cv_header_stdc=no
9380 fi
9381 rm -f conftest.$ac_objext conftest.$ac_ext
9382
9383 if test $ac_cv_header_stdc = yes; then
9384   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9385   cat >conftest.$ac_ext <<_ACEOF
9386 #line $LINENO "configure"
9387 /* confdefs.h.  */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h.  */
9392 #include <string.h>
9393
9394 _ACEOF
9395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9396   $EGREP "memchr" >/dev/null 2>&1; then
9397   :
9398 else
9399   ac_cv_header_stdc=no
9400 fi
9401 rm -f conftest*
9402
9403 fi
9404
9405 if test $ac_cv_header_stdc = yes; then
9406   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9407   cat >conftest.$ac_ext <<_ACEOF
9408 #line $LINENO "configure"
9409 /* confdefs.h.  */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h.  */
9414 #include <stdlib.h>
9415
9416 _ACEOF
9417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9418   $EGREP "free" >/dev/null 2>&1; then
9419   :
9420 else
9421   ac_cv_header_stdc=no
9422 fi
9423 rm -f conftest*
9424
9425 fi
9426
9427 if test $ac_cv_header_stdc = yes; then
9428   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9429   if test "$cross_compiling" = yes; then
9430   :
9431 else
9432   cat >conftest.$ac_ext <<_ACEOF
9433 #line $LINENO "configure"
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439 #include <ctype.h>
9440 #if ((' ' & 0x0FF) == 0x020)
9441 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9442 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9443 #else
9444 # define ISLOWER(c) \
9445                    (('a' <= (c) && (c) <= 'i') \
9446                      || ('j' <= (c) && (c) <= 'r') \
9447                      || ('s' <= (c) && (c) <= 'z'))
9448 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9449 #endif
9450
9451 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9452 int
9453 main ()
9454 {
9455   int i;
9456   for (i = 0; i < 256; i++)
9457     if (XOR (islower (i), ISLOWER (i))
9458         || toupper (i) != TOUPPER (i))
9459       exit(2);
9460   exit (0);
9461 }
9462 _ACEOF
9463 rm -f conftest$ac_exeext
9464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9465   (eval $ac_link) 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470   (eval $ac_try) 2>&5
9471   ac_status=$?
9472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473   (exit $ac_status); }; }; then
9474   :
9475 else
9476   echo "$as_me: program exited with status $ac_status" >&5
9477 echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9479
9480 ( exit $ac_status )
9481 ac_cv_header_stdc=no
9482 fi
9483 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9484 fi
9485 fi
9486 fi
9487 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9488 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9489 if test $ac_cv_header_stdc = yes; then
9490
9491 cat >>confdefs.h <<\_ACEOF
9492 #define STDC_HEADERS 1
9493 _ACEOF
9494
9495 fi
9496
9497 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9498 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9499 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9500   echo $ECHO_N "(cached) $ECHO_C" >&6
9501 else
9502   cat >conftest.$ac_ext <<_ACEOF
9503 #line $LINENO "configure"
9504 /* confdefs.h.  */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h.  */
9509 #include <sys/types.h>
9510 int
9511 main ()
9512 {
9513 return makedev(0, 0);
9514   ;
9515   return 0;
9516 }
9517 _ACEOF
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9520   (eval $ac_link) 2>&5
9521   ac_status=$?
9522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523   (exit $ac_status); } &&
9524          { ac_try='test -s conftest$ac_exeext'
9525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526   (eval $ac_try) 2>&5
9527   ac_status=$?
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); }; }; then
9530   ac_cv_header_sys_types_h_makedev=yes
9531 else
9532   echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9534
9535 ac_cv_header_sys_types_h_makedev=no
9536 fi
9537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9538
9539 fi
9540 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9541 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9542
9543 if test $ac_cv_header_sys_types_h_makedev = no; then
9544 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9545   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9546 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9547 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9548   echo $ECHO_N "(cached) $ECHO_C" >&6
9549 fi
9550 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9551 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9552 else
9553   # Is the header compilable?
9554 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9555 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9556 cat >conftest.$ac_ext <<_ACEOF
9557 #line $LINENO "configure"
9558 /* confdefs.h.  */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h.  */
9563 $ac_includes_default
9564 #include <sys/mkdev.h>
9565 _ACEOF
9566 rm -f conftest.$ac_objext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9568   (eval $ac_compile) 2>&5
9569   ac_status=$?
9570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); } &&
9572          { ac_try='test -s conftest.$ac_objext'
9573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574   (eval $ac_try) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); }; }; then
9578   ac_header_compiler=yes
9579 else
9580   echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 ac_header_compiler=no
9584 fi
9585 rm -f conftest.$ac_objext conftest.$ac_ext
9586 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9587 echo "${ECHO_T}$ac_header_compiler" >&6
9588
9589 # Is the header present?
9590 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9591 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9592 cat >conftest.$ac_ext <<_ACEOF
9593 #line $LINENO "configure"
9594 /* confdefs.h.  */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h.  */
9599 #include <sys/mkdev.h>
9600 _ACEOF
9601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9602   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9603   ac_status=$?
9604   grep -v '^ *+' conftest.er1 >conftest.err
9605   rm -f conftest.er1
9606   cat conftest.err >&5
9607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608   (exit $ac_status); } >/dev/null; then
9609   if test -s conftest.err; then
9610     ac_cpp_err=$ac_c_preproc_warn_flag
9611   else
9612     ac_cpp_err=
9613   fi
9614 else
9615   ac_cpp_err=yes
9616 fi
9617 if test -z "$ac_cpp_err"; then
9618   ac_header_preproc=yes
9619 else
9620   echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623   ac_header_preproc=no
9624 fi
9625 rm -f conftest.err conftest.$ac_ext
9626 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9627 echo "${ECHO_T}$ac_header_preproc" >&6
9628
9629 # So?  What about this header?
9630 case $ac_header_compiler:$ac_header_preproc in
9631   yes:no )
9632     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9633 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9634     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9635 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9636     (
9637       cat <<\_ASBOX
9638 ## ------------------------------------ ##
9639 ## Report this to bug-autoconf@gnu.org. ##
9640 ## ------------------------------------ ##
9641 _ASBOX
9642     ) |
9643       sed "s/^/$as_me: WARNING:     /" >&2
9644     ;;
9645   no:yes )
9646     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9647 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9648     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9649 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9650     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9651 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9652     (
9653       cat <<\_ASBOX
9654 ## ------------------------------------ ##
9655 ## Report this to bug-autoconf@gnu.org. ##
9656 ## ------------------------------------ ##
9657 _ASBOX
9658     ) |
9659       sed "s/^/$as_me: WARNING:     /" >&2
9660     ;;
9661 esac
9662 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9663 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9664 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9665   echo $ECHO_N "(cached) $ECHO_C" >&6
9666 else
9667   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9668 fi
9669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9670 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9671
9672 fi
9673 if test $ac_cv_header_sys_mkdev_h = yes; then
9674
9675 cat >>confdefs.h <<\_ACEOF
9676 #define MAJOR_IN_MKDEV 1
9677 _ACEOF
9678
9679 fi
9680
9681
9682
9683   if test $ac_cv_header_sys_mkdev_h = no; then
9684     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9685   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9686 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9687 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9688   echo $ECHO_N "(cached) $ECHO_C" >&6
9689 fi
9690 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9691 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9692 else
9693   # Is the header compilable?
9694 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9695 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9696 cat >conftest.$ac_ext <<_ACEOF
9697 #line $LINENO "configure"
9698 /* confdefs.h.  */
9699 _ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h.  */
9703 $ac_includes_default
9704 #include <sys/sysmacros.h>
9705 _ACEOF
9706 rm -f conftest.$ac_objext
9707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9708   (eval $ac_compile) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); } &&
9712          { ac_try='test -s conftest.$ac_objext'
9713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9714   (eval $ac_try) 2>&5
9715   ac_status=$?
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); }; }; then
9718   ac_header_compiler=yes
9719 else
9720   echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9722
9723 ac_header_compiler=no
9724 fi
9725 rm -f conftest.$ac_objext conftest.$ac_ext
9726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9727 echo "${ECHO_T}$ac_header_compiler" >&6
9728
9729 # Is the header present?
9730 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9731 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9732 cat >conftest.$ac_ext <<_ACEOF
9733 #line $LINENO "configure"
9734 /* confdefs.h.  */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h.  */
9739 #include <sys/sysmacros.h>
9740 _ACEOF
9741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9742   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9743   ac_status=$?
9744   grep -v '^ *+' conftest.er1 >conftest.err
9745   rm -f conftest.er1
9746   cat conftest.err >&5
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } >/dev/null; then
9749   if test -s conftest.err; then
9750     ac_cpp_err=$ac_c_preproc_warn_flag
9751   else
9752     ac_cpp_err=
9753   fi
9754 else
9755   ac_cpp_err=yes
9756 fi
9757 if test -z "$ac_cpp_err"; then
9758   ac_header_preproc=yes
9759 else
9760   echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763   ac_header_preproc=no
9764 fi
9765 rm -f conftest.err conftest.$ac_ext
9766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9767 echo "${ECHO_T}$ac_header_preproc" >&6
9768
9769 # So?  What about this header?
9770 case $ac_header_compiler:$ac_header_preproc in
9771   yes:no )
9772     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9773 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9774     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9775 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9776     (
9777       cat <<\_ASBOX
9778 ## ------------------------------------ ##
9779 ## Report this to bug-autoconf@gnu.org. ##
9780 ## ------------------------------------ ##
9781 _ASBOX
9782     ) |
9783       sed "s/^/$as_me: WARNING:     /" >&2
9784     ;;
9785   no:yes )
9786     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9787 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9788     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9789 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9790     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9791 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9792     (
9793       cat <<\_ASBOX
9794 ## ------------------------------------ ##
9795 ## Report this to bug-autoconf@gnu.org. ##
9796 ## ------------------------------------ ##
9797 _ASBOX
9798     ) |
9799       sed "s/^/$as_me: WARNING:     /" >&2
9800     ;;
9801 esac
9802 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9803 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9804 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9805   echo $ECHO_N "(cached) $ECHO_C" >&6
9806 else
9807   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9808 fi
9809 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9810 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9811
9812 fi
9813 if test $ac_cv_header_sys_sysmacros_h = yes; then
9814
9815 cat >>confdefs.h <<\_ACEOF
9816 #define MAJOR_IN_SYSMACROS 1
9817 _ACEOF
9818
9819 fi
9820
9821
9822   fi
9823 fi
9824
9825
9826
9827
9828
9829
9830 ac_header_dirent=no
9831 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9832   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9833 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9834 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   cat >conftest.$ac_ext <<_ACEOF
9839 #line $LINENO "configure"
9840 /* confdefs.h.  */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h.  */
9845 #include <sys/types.h>
9846 #include <$ac_hdr>
9847
9848 int
9849 main ()
9850 {
9851 if ((DIR *) 0)
9852 return 0;
9853   ;
9854   return 0;
9855 }
9856 _ACEOF
9857 rm -f conftest.$ac_objext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859   (eval $ac_compile) 2>&5
9860   ac_status=$?
9861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862   (exit $ac_status); } &&
9863          { ac_try='test -s conftest.$ac_objext'
9864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9865   (eval $ac_try) 2>&5
9866   ac_status=$?
9867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868   (exit $ac_status); }; }; then
9869   eval "$as_ac_Header=yes"
9870 else
9871   echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9873
9874 eval "$as_ac_Header=no"
9875 fi
9876 rm -f conftest.$ac_objext conftest.$ac_ext
9877 fi
9878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9881   cat >>confdefs.h <<_ACEOF
9882 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9883 _ACEOF
9884
9885 ac_header_dirent=$ac_hdr; break
9886 fi
9887
9888 done
9889 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9890 if test $ac_header_dirent = dirent.h; then
9891   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9892 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9893 if test "${ac_cv_search_opendir+set}" = set; then
9894   echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896   ac_func_search_save_LIBS=$LIBS
9897 ac_cv_search_opendir=no
9898 cat >conftest.$ac_ext <<_ACEOF
9899 #line $LINENO "configure"
9900 /* confdefs.h.  */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h.  */
9905
9906 /* Override any gcc2 internal prototype to avoid an error.  */
9907 #ifdef __cplusplus
9908 extern "C"
9909 #endif
9910 /* We use char because int might match the return type of a gcc2
9911    builtin and then its argument prototype would still apply.  */
9912 char opendir ();
9913 int
9914 main ()
9915 {
9916 opendir ();
9917   ;
9918   return 0;
9919 }
9920 _ACEOF
9921 rm -f conftest.$ac_objext conftest$ac_exeext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923   (eval $ac_link) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); } &&
9927          { ac_try='test -s conftest$ac_exeext'
9928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929   (eval $ac_try) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); }; }; then
9933   ac_cv_search_opendir="none required"
9934 else
9935   echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9937
9938 fi
9939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9940 if test "$ac_cv_search_opendir" = no; then
9941   for ac_lib in dir; do
9942     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9943     cat >conftest.$ac_ext <<_ACEOF
9944 #line $LINENO "configure"
9945 /* confdefs.h.  */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h.  */
9950
9951 /* Override any gcc2 internal prototype to avoid an error.  */
9952 #ifdef __cplusplus
9953 extern "C"
9954 #endif
9955 /* We use char because int might match the return type of a gcc2
9956    builtin and then its argument prototype would still apply.  */
9957 char opendir ();
9958 int
9959 main ()
9960 {
9961 opendir ();
9962   ;
9963   return 0;
9964 }
9965 _ACEOF
9966 rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968   (eval $ac_link) 2>&5
9969   ac_status=$?
9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971   (exit $ac_status); } &&
9972          { ac_try='test -s conftest$ac_exeext'
9973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974   (eval $ac_try) 2>&5
9975   ac_status=$?
9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); }; }; then
9978   ac_cv_search_opendir="-l$ac_lib"
9979 break
9980 else
9981   echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984 fi
9985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9986   done
9987 fi
9988 LIBS=$ac_func_search_save_LIBS
9989 fi
9990 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9991 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9992 if test "$ac_cv_search_opendir" != no; then
9993   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9994
9995 fi
9996
9997 else
9998   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9999 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10000 if test "${ac_cv_search_opendir+set}" = set; then
10001   echo $ECHO_N "(cached) $ECHO_C" >&6
10002 else
10003   ac_func_search_save_LIBS=$LIBS
10004 ac_cv_search_opendir=no
10005 cat >conftest.$ac_ext <<_ACEOF
10006 #line $LINENO "configure"
10007 /* confdefs.h.  */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h.  */
10012
10013 /* Override any gcc2 internal prototype to avoid an error.  */
10014 #ifdef __cplusplus
10015 extern "C"
10016 #endif
10017 /* We use char because int might match the return type of a gcc2
10018    builtin and then its argument prototype would still apply.  */
10019 char opendir ();
10020 int
10021 main ()
10022 {
10023 opendir ();
10024   ;
10025   return 0;
10026 }
10027 _ACEOF
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10030   (eval $ac_link) 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); } &&
10034          { ac_try='test -s conftest$ac_exeext'
10035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036   (eval $ac_try) 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; }; then
10040   ac_cv_search_opendir="none required"
10041 else
10042   echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10044
10045 fi
10046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10047 if test "$ac_cv_search_opendir" = no; then
10048   for ac_lib in x; do
10049     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10050     cat >conftest.$ac_ext <<_ACEOF
10051 #line $LINENO "configure"
10052 /* confdefs.h.  */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h.  */
10057
10058 /* Override any gcc2 internal prototype to avoid an error.  */
10059 #ifdef __cplusplus
10060 extern "C"
10061 #endif
10062 /* We use char because int might match the return type of a gcc2
10063    builtin and then its argument prototype would still apply.  */
10064 char opendir ();
10065 int
10066 main ()
10067 {
10068 opendir ();
10069   ;
10070   return 0;
10071 }
10072 _ACEOF
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075   (eval $ac_link) 2>&5
10076   ac_status=$?
10077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078   (exit $ac_status); } &&
10079          { ac_try='test -s conftest$ac_exeext'
10080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081   (eval $ac_try) 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }; }; then
10085   ac_cv_search_opendir="-l$ac_lib"
10086 break
10087 else
10088   echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10090
10091 fi
10092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10093   done
10094 fi
10095 LIBS=$ac_func_search_save_LIBS
10096 fi
10097 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10098 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10099 if test "$ac_cv_search_opendir" != no; then
10100   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10101
10102 fi
10103
10104 fi
10105
10106 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10107 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10108 if test "${ac_cv_header_stat_broken+set}" = set; then
10109   echo $ECHO_N "(cached) $ECHO_C" >&6
10110 else
10111   cat >conftest.$ac_ext <<_ACEOF
10112 #line $LINENO "configure"
10113 /* confdefs.h.  */
10114 _ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h.  */
10118 #include <sys/types.h>
10119 #include <sys/stat.h>
10120
10121 #if defined(S_ISBLK) && defined(S_IFDIR)
10122 # if S_ISBLK (S_IFDIR)
10123 You lose.
10124 # endif
10125 #endif
10126
10127 #if defined(S_ISBLK) && defined(S_IFCHR)
10128 # if S_ISBLK (S_IFCHR)
10129 You lose.
10130 # endif
10131 #endif
10132
10133 #if defined(S_ISLNK) && defined(S_IFREG)
10134 # if S_ISLNK (S_IFREG)
10135 You lose.
10136 # endif
10137 #endif
10138
10139 #if defined(S_ISSOCK) && defined(S_IFREG)
10140 # if S_ISSOCK (S_IFREG)
10141 You lose.
10142 # endif
10143 #endif
10144
10145 _ACEOF
10146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10147   $EGREP "You lose" >/dev/null 2>&1; then
10148   ac_cv_header_stat_broken=yes
10149 else
10150   ac_cv_header_stat_broken=no
10151 fi
10152 rm -f conftest*
10153
10154 fi
10155 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10156 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10157 if test $ac_cv_header_stat_broken = yes; then
10158
10159 cat >>confdefs.h <<\_ACEOF
10160 #define STAT_MACROS_BROKEN 1
10161 _ACEOF
10162
10163 fi
10164
10165 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10166 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10167 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10168   echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170   cat >conftest.$ac_ext <<_ACEOF
10171 #line $LINENO "configure"
10172 /* confdefs.h.  */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h.  */
10177 #include <sys/types.h>
10178 #include <sys/wait.h>
10179 #ifndef WEXITSTATUS
10180 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10181 #endif
10182 #ifndef WIFEXITED
10183 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10184 #endif
10185
10186 int
10187 main ()
10188 {
10189   int s;
10190   wait (&s);
10191   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10192   ;
10193   return 0;
10194 }
10195 _ACEOF
10196 rm -f conftest.$ac_objext
10197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10198   (eval $ac_compile) 2>&5
10199   ac_status=$?
10200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201   (exit $ac_status); } &&
10202          { ac_try='test -s conftest.$ac_objext'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; }; then
10208   ac_cv_header_sys_wait_h=yes
10209 else
10210   echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10212
10213 ac_cv_header_sys_wait_h=no
10214 fi
10215 rm -f conftest.$ac_objext conftest.$ac_ext
10216 fi
10217 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10218 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10219 if test $ac_cv_header_sys_wait_h = yes; then
10220
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_SYS_WAIT_H 1
10223 _ACEOF
10224
10225 fi
10226
10227 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10228 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10229 if test "${ac_cv_header_time+set}" = set; then
10230   echo $ECHO_N "(cached) $ECHO_C" >&6
10231 else
10232   cat >conftest.$ac_ext <<_ACEOF
10233 #line $LINENO "configure"
10234 /* confdefs.h.  */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h.  */
10239 #include <sys/types.h>
10240 #include <sys/time.h>
10241 #include <time.h>
10242
10243 int
10244 main ()
10245 {
10246 if ((struct tm *) 0)
10247 return 0;
10248   ;
10249   return 0;
10250 }
10251 _ACEOF
10252 rm -f conftest.$ac_objext
10253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10254   (eval $ac_compile) 2>&5
10255   ac_status=$?
10256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10257   (exit $ac_status); } &&
10258          { ac_try='test -s conftest.$ac_objext'
10259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260   (eval $ac_try) 2>&5
10261   ac_status=$?
10262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263   (exit $ac_status); }; }; then
10264   ac_cv_header_time=yes
10265 else
10266   echo "$as_me: failed program was:" >&5
10267 sed 's/^/| /' conftest.$ac_ext >&5
10268
10269 ac_cv_header_time=no
10270 fi
10271 rm -f conftest.$ac_objext conftest.$ac_ext
10272 fi
10273 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10274 echo "${ECHO_T}$ac_cv_header_time" >&6
10275 if test $ac_cv_header_time = yes; then
10276
10277 cat >>confdefs.h <<\_ACEOF
10278 #define TIME_WITH_SYS_TIME 1
10279 _ACEOF
10280
10281 fi
10282
10283
10284 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10285 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10286 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10287   echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289   cat >conftest.$ac_ext <<_ACEOF
10290 #line $LINENO "configure"
10291 /* confdefs.h.  */
10292 _ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h.  */
10296 $ac_includes_default
10297 int
10298 main ()
10299 {
10300 static struct stat ac_aggr;
10301 if (ac_aggr.st_blksize)
10302 return 0;
10303   ;
10304   return 0;
10305 }
10306 _ACEOF
10307 rm -f conftest.$ac_objext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10309   (eval $ac_compile) 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); } &&
10313          { ac_try='test -s conftest.$ac_objext'
10314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315   (eval $ac_try) 2>&5
10316   ac_status=$?
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); }; }; then
10319   ac_cv_member_struct_stat_st_blksize=yes
10320 else
10321   echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10323
10324 cat >conftest.$ac_ext <<_ACEOF
10325 #line $LINENO "configure"
10326 /* confdefs.h.  */
10327 _ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h.  */
10331 $ac_includes_default
10332 int
10333 main ()
10334 {
10335 static struct stat ac_aggr;
10336 if (sizeof ac_aggr.st_blksize)
10337 return 0;
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 rm -f conftest.$ac_objext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10344   (eval $ac_compile) 2>&5
10345   ac_status=$?
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); } &&
10348          { ac_try='test -s conftest.$ac_objext'
10349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350   (eval $ac_try) 2>&5
10351   ac_status=$?
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); }; }; then
10354   ac_cv_member_struct_stat_st_blksize=yes
10355 else
10356   echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359 ac_cv_member_struct_stat_st_blksize=no
10360 fi
10361 rm -f conftest.$ac_objext conftest.$ac_ext
10362 fi
10363 rm -f conftest.$ac_objext conftest.$ac_ext
10364 fi
10365 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10366 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10367 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10368
10369 cat >>confdefs.h <<_ACEOF
10370 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10371 _ACEOF
10372
10373
10374 cat >>confdefs.h <<\_ACEOF
10375 #define HAVE_ST_BLKSIZE 1
10376 _ACEOF
10377
10378 fi
10379
10380
10381 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10382 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10383 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10384   echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386   cat >conftest.$ac_ext <<_ACEOF
10387 #line $LINENO "configure"
10388 /* confdefs.h.  */
10389 _ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h.  */
10393 $ac_includes_default
10394 int
10395 main ()
10396 {
10397 static struct stat ac_aggr;
10398 if (ac_aggr.st_blocks)
10399 return 0;
10400   ;
10401   return 0;
10402 }
10403 _ACEOF
10404 rm -f conftest.$ac_objext
10405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406   (eval $ac_compile) 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); } &&
10410          { ac_try='test -s conftest.$ac_objext'
10411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412   (eval $ac_try) 2>&5
10413   ac_status=$?
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); }; }; then
10416   ac_cv_member_struct_stat_st_blocks=yes
10417 else
10418   echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421 cat >conftest.$ac_ext <<_ACEOF
10422 #line $LINENO "configure"
10423 /* confdefs.h.  */
10424 _ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h.  */
10428 $ac_includes_default
10429 int
10430 main ()
10431 {
10432 static struct stat ac_aggr;
10433 if (sizeof ac_aggr.st_blocks)
10434 return 0;
10435   ;
10436   return 0;
10437 }
10438 _ACEOF
10439 rm -f conftest.$ac_objext
10440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441   (eval $ac_compile) 2>&5
10442   ac_status=$?
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); } &&
10445          { ac_try='test -s conftest.$ac_objext'
10446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447   (eval $ac_try) 2>&5
10448   ac_status=$?
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); }; }; then
10451   ac_cv_member_struct_stat_st_blocks=yes
10452 else
10453   echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10455
10456 ac_cv_member_struct_stat_st_blocks=no
10457 fi
10458 rm -f conftest.$ac_objext conftest.$ac_ext
10459 fi
10460 rm -f conftest.$ac_objext conftest.$ac_ext
10461 fi
10462 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10463 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10464 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10465
10466 cat >>confdefs.h <<_ACEOF
10467 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10468 _ACEOF
10469
10470
10471 cat >>confdefs.h <<\_ACEOF
10472 #define HAVE_ST_BLOCKS 1
10473 _ACEOF
10474
10475 else
10476   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10477 fi
10478
10479
10480 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10481 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10482 if test "${ac_cv_struct_tm+set}" = set; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485   cat >conftest.$ac_ext <<_ACEOF
10486 #line $LINENO "configure"
10487 /* confdefs.h.  */
10488 _ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h.  */
10492 #include <sys/types.h>
10493 #include <time.h>
10494
10495 int
10496 main ()
10497 {
10498 struct tm *tp; tp->tm_sec;
10499   ;
10500   return 0;
10501 }
10502 _ACEOF
10503 rm -f conftest.$ac_objext
10504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10505   (eval $ac_compile) 2>&5
10506   ac_status=$?
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); } &&
10509          { ac_try='test -s conftest.$ac_objext'
10510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511   (eval $ac_try) 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); }; }; then
10515   ac_cv_struct_tm=time.h
10516 else
10517   echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10519
10520 ac_cv_struct_tm=sys/time.h
10521 fi
10522 rm -f conftest.$ac_objext conftest.$ac_ext
10523 fi
10524 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10525 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10526 if test $ac_cv_struct_tm = sys/time.h; then
10527
10528 cat >>confdefs.h <<\_ACEOF
10529 #define TM_IN_SYS_TIME 1
10530 _ACEOF
10531
10532 fi
10533
10534 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10535 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10536 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10537   echo $ECHO_N "(cached) $ECHO_C" >&6
10538 else
10539   cat >conftest.$ac_ext <<_ACEOF
10540 #line $LINENO "configure"
10541 /* confdefs.h.  */
10542 _ACEOF
10543 cat confdefs.h >>conftest.$ac_ext
10544 cat >>conftest.$ac_ext <<_ACEOF
10545 /* end confdefs.h.  */
10546 #include <sys/types.h>
10547 #include <$ac_cv_struct_tm>
10548
10549
10550 int
10551 main ()
10552 {
10553 static struct tm ac_aggr;
10554 if (ac_aggr.tm_zone)
10555 return 0;
10556   ;
10557   return 0;
10558 }
10559 _ACEOF
10560 rm -f conftest.$ac_objext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10562   (eval $ac_compile) 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); } &&
10566          { ac_try='test -s conftest.$ac_objext'
10567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568   (eval $ac_try) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); }; }; then
10572   ac_cv_member_struct_tm_tm_zone=yes
10573 else
10574   echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577 cat >conftest.$ac_ext <<_ACEOF
10578 #line $LINENO "configure"
10579 /* confdefs.h.  */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h.  */
10584 #include <sys/types.h>
10585 #include <$ac_cv_struct_tm>
10586
10587
10588 int
10589 main ()
10590 {
10591 static struct tm ac_aggr;
10592 if (sizeof ac_aggr.tm_zone)
10593 return 0;
10594   ;
10595   return 0;
10596 }
10597 _ACEOF
10598 rm -f conftest.$ac_objext
10599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10600   (eval $ac_compile) 2>&5
10601   ac_status=$?
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); } &&
10604          { ac_try='test -s conftest.$ac_objext'
10605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10606   (eval $ac_try) 2>&5
10607   ac_status=$?
10608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); }; }; then
10610   ac_cv_member_struct_tm_tm_zone=yes
10611 else
10612   echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10614
10615 ac_cv_member_struct_tm_tm_zone=no
10616 fi
10617 rm -f conftest.$ac_objext conftest.$ac_ext
10618 fi
10619 rm -f conftest.$ac_objext conftest.$ac_ext
10620 fi
10621 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10622 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10623 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10624
10625 cat >>confdefs.h <<_ACEOF
10626 #define HAVE_STRUCT_TM_TM_ZONE 1
10627 _ACEOF
10628
10629
10630 fi
10631
10632 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10633
10634 cat >>confdefs.h <<\_ACEOF
10635 #define HAVE_TM_ZONE 1
10636 _ACEOF
10637
10638 else
10639   echo "$as_me:$LINENO: checking for tzname" >&5
10640 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10641 if test "${ac_cv_var_tzname+set}" = set; then
10642   echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644   cat >conftest.$ac_ext <<_ACEOF
10645 #line $LINENO "configure"
10646 /* confdefs.h.  */
10647 _ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h.  */
10651 #include <time.h>
10652 #ifndef tzname /* For SGI.  */
10653 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10654 #endif
10655
10656 int
10657 main ()
10658 {
10659 atoi(*tzname);
10660   ;
10661   return 0;
10662 }
10663 _ACEOF
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666   (eval $ac_link) 2>&5
10667   ac_status=$?
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); } &&
10670          { ac_try='test -s conftest$ac_exeext'
10671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672   (eval $ac_try) 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); }; }; then
10676   ac_cv_var_tzname=yes
10677 else
10678   echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.$ac_ext >&5
10680
10681 ac_cv_var_tzname=no
10682 fi
10683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10684 fi
10685 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10686 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10687   if test $ac_cv_var_tzname = yes; then
10688
10689 cat >>confdefs.h <<\_ACEOF
10690 #define HAVE_TZNAME 1
10691 _ACEOF
10692
10693   fi
10694 fi
10695
10696
10697 echo "$as_me:$LINENO: checking for utime.h" >&5
10698 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10699 if test "${ba_cv_header_utime_h+set}" = set; then
10700   echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702   cat >conftest.$ac_ext <<_ACEOF
10703 #line $LINENO "configure"
10704 /* confdefs.h.  */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h.  */
10709
10710 #include <sys/types.h>
10711 #include <utime.h>
10712 int
10713 main ()
10714 {
10715 struct utimbuf foo
10716   ;
10717   return 0;
10718 }
10719 _ACEOF
10720 rm -f conftest.$ac_objext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10722   (eval $ac_compile) 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } &&
10726          { ac_try='test -s conftest.$ac_objext'
10727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728   (eval $ac_try) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; }; then
10732   ba_cv_header_utime_h=yes
10733 else
10734   echo "$as_me: failed program was:" >&5
10735 sed 's/^/| /' conftest.$ac_ext >&5
10736
10737 ba_cv_header_utime_h=no
10738 fi
10739 rm -f conftest.$ac_objext conftest.$ac_ext
10740 fi
10741 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10742 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10743 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10744 #define HAVE_UTIME_H 1
10745 _ACEOF
10746
10747
10748 echo "$as_me:$LINENO: checking for socklen_t" >&5
10749 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10750 if test "${ba_cv_header_socklen_t+set}" = set; then
10751   echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753   cat >conftest.$ac_ext <<_ACEOF
10754 #line $LINENO "configure"
10755 /* confdefs.h.  */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h.  */
10760
10761 #include <sys/types.h>
10762 #include <sys/socket.h>
10763 int
10764 main ()
10765 {
10766 socklen_t x
10767   ;
10768   return 0;
10769 }
10770 _ACEOF
10771 rm -f conftest.$ac_objext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10773   (eval $ac_compile) 2>&5
10774   ac_status=$?
10775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776   (exit $ac_status); } &&
10777          { ac_try='test -s conftest.$ac_objext'
10778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779   (eval $ac_try) 2>&5
10780   ac_status=$?
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); }; }; then
10783   ba_cv_header_socklen_t=yes
10784 else
10785   echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10787
10788 ba_cv_header_socklen_t=no
10789 fi
10790 rm -f conftest.$ac_objext conftest.$ac_ext
10791 fi
10792 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10793 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10794 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10795 #define HAVE_SOCKLEN_T 1
10796 _ACEOF
10797
10798
10799 echo "$as_me:$LINENO: checking for bigendian" >&5
10800 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10801 if test "${ba_cv_bigendian+set}" = set; then
10802   echo $ECHO_N "(cached) $ECHO_C" >&6
10803 else
10804   if test "$cross_compiling" = yes; then
10805   ba_cv_bigendian=no
10806 else
10807   cat >conftest.$ac_ext <<_ACEOF
10808 #line $LINENO "configure"
10809 /* confdefs.h.  */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h.  */
10814 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10815 _ACEOF
10816 rm -f conftest$ac_exeext
10817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10818   (eval $ac_link) 2>&5
10819   ac_status=$?
10820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823   (eval $ac_try) 2>&5
10824   ac_status=$?
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); }; }; then
10827   ba_cv_bigendian=yes
10828 else
10829   echo "$as_me: program exited with status $ac_status" >&5
10830 echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10832
10833 ( exit $ac_status )
10834 ba_cv_bigendian=no
10835 fi
10836 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10837 fi
10838 fi
10839 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10840 echo "${ECHO_T}$ba_cv_bigendian" >&6
10841 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10842 #define HAVE_BIGENDIAN 1
10843 _ACEOF
10844
10845
10846
10847 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10848 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10849 if test "${ac_cv_c_const+set}" = set; then
10850   echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852   cat >conftest.$ac_ext <<_ACEOF
10853 #line $LINENO "configure"
10854 /* confdefs.h.  */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h.  */
10859
10860 int
10861 main ()
10862 {
10863 /* FIXME: Include the comments suggested by Paul. */
10864 #ifndef __cplusplus
10865   /* Ultrix mips cc rejects this.  */
10866   typedef int charset[2];
10867   const charset x;
10868   /* SunOS 4.1.1 cc rejects this.  */
10869   char const *const *ccp;
10870   char **p;
10871   /* NEC SVR4.0.2 mips cc rejects this.  */
10872   struct point {int x, y;};
10873   static struct point const zero = {0,0};
10874   /* AIX XL C 1.02.0.0 rejects this.
10875      It does not let you subtract one const X* pointer from another in
10876      an arm of an if-expression whose if-part is not a constant
10877      expression */
10878   const char *g = "string";
10879   ccp = &g + (g ? g-g : 0);
10880   /* HPUX 7.0 cc rejects these. */
10881   ++ccp;
10882   p = (char**) ccp;
10883   ccp = (char const *const *) p;
10884   { /* SCO 3.2v4 cc rejects this.  */
10885     char *t;
10886     char const *s = 0 ? (char *) 0 : (char const *) 0;
10887
10888     *t++ = 0;
10889   }
10890   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10891     int x[] = {25, 17};
10892     const int *foo = &x[0];
10893     ++foo;
10894   }
10895   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10896     typedef const int *iptr;
10897     iptr p = 0;
10898     ++p;
10899   }
10900   { /* AIX XL C 1.02.0.0 rejects this saying
10901        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10902     struct s { int j; const int *ap[3]; };
10903     struct s *b; b->j = 5;
10904   }
10905   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10906     const int foo = 10;
10907   }
10908 #endif
10909
10910   ;
10911   return 0;
10912 }
10913 _ACEOF
10914 rm -f conftest.$ac_objext
10915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10916   (eval $ac_compile) 2>&5
10917   ac_status=$?
10918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919   (exit $ac_status); } &&
10920          { ac_try='test -s conftest.$ac_objext'
10921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10922   (eval $ac_try) 2>&5
10923   ac_status=$?
10924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925   (exit $ac_status); }; }; then
10926   ac_cv_c_const=yes
10927 else
10928   echo "$as_me: failed program was:" >&5
10929 sed 's/^/| /' conftest.$ac_ext >&5
10930
10931 ac_cv_c_const=no
10932 fi
10933 rm -f conftest.$ac_objext conftest.$ac_ext
10934 fi
10935 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10936 echo "${ECHO_T}$ac_cv_c_const" >&6
10937 if test $ac_cv_c_const = no; then
10938
10939 cat >>confdefs.h <<\_ACEOF
10940 #define const
10941 _ACEOF
10942
10943 fi
10944
10945
10946
10947 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10948 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10949 fstype=no
10950 # The order of these tests is important.
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 #include <sys/statvfs.h>
10959 #include <sys/fstyp.h>
10960 _ACEOF
10961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10962   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10963   ac_status=$?
10964   grep -v '^ *+' conftest.er1 >conftest.err
10965   rm -f conftest.er1
10966   cat conftest.err >&5
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); } >/dev/null; then
10969   if test -s conftest.err; then
10970     ac_cpp_err=$ac_c_preproc_warn_flag
10971   else
10972     ac_cpp_err=
10973   fi
10974 else
10975   ac_cpp_err=yes
10976 fi
10977 if test -z "$ac_cpp_err"; then
10978   cat >>confdefs.h <<\_ACEOF
10979 #define FSTYPE_STATVFS 1
10980 _ACEOF
10981  fstype=SVR4
10982 else
10983   echo "$as_me: failed program was:" >&5
10984 sed 's/^/| /' conftest.$ac_ext >&5
10985
10986
10987 fi
10988 rm -f conftest.err conftest.$ac_ext
10989 if test $fstype = no; then
10990 cat >conftest.$ac_ext <<_ACEOF
10991 #line $LINENO "configure"
10992 /* confdefs.h.  */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h.  */
10997 #include <sys/statfs.h>
10998 #include <sys/fstyp.h>
10999 _ACEOF
11000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11002   ac_status=$?
11003   grep -v '^ *+' conftest.er1 >conftest.err
11004   rm -f conftest.er1
11005   cat conftest.err >&5
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); } >/dev/null; then
11008   if test -s conftest.err; then
11009     ac_cpp_err=$ac_c_preproc_warn_flag
11010   else
11011     ac_cpp_err=
11012   fi
11013 else
11014   ac_cpp_err=yes
11015 fi
11016 if test -z "$ac_cpp_err"; then
11017   cat >>confdefs.h <<\_ACEOF
11018 #define FSTYPE_USG_STATFS 1
11019 _ACEOF
11020  fstype=SVR3
11021 else
11022   echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025
11026 fi
11027 rm -f conftest.err conftest.$ac_ext
11028 fi
11029 if test $fstype = no; then
11030 cat >conftest.$ac_ext <<_ACEOF
11031 #line $LINENO "configure"
11032 /* confdefs.h.  */
11033 _ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h.  */
11037 #include <sys/statfs.h>
11038 #include <sys/vmount.h>
11039 _ACEOF
11040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11041   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11042   ac_status=$?
11043   grep -v '^ *+' conftest.er1 >conftest.err
11044   rm -f conftest.er1
11045   cat conftest.err >&5
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); } >/dev/null; then
11048   if test -s conftest.err; then
11049     ac_cpp_err=$ac_c_preproc_warn_flag
11050   else
11051     ac_cpp_err=
11052   fi
11053 else
11054   ac_cpp_err=yes
11055 fi
11056 if test -z "$ac_cpp_err"; then
11057   cat >>confdefs.h <<\_ACEOF
11058 #define FSTYPE_AIX_STATFS 1
11059 _ACEOF
11060  fstype=AIX
11061 else
11062   echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11064
11065
11066 fi
11067 rm -f conftest.err conftest.$ac_ext
11068 fi
11069 if test $fstype = no; then
11070 cat >conftest.$ac_ext <<_ACEOF
11071 #line $LINENO "configure"
11072 /* confdefs.h.  */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h.  */
11077 #include <mntent.h>
11078 _ACEOF
11079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11081   ac_status=$?
11082   grep -v '^ *+' conftest.er1 >conftest.err
11083   rm -f conftest.er1
11084   cat conftest.err >&5
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); } >/dev/null; then
11087   if test -s conftest.err; then
11088     ac_cpp_err=$ac_c_preproc_warn_flag
11089   else
11090     ac_cpp_err=
11091   fi
11092 else
11093   ac_cpp_err=yes
11094 fi
11095 if test -z "$ac_cpp_err"; then
11096   cat >>confdefs.h <<\_ACEOF
11097 #define FSTYPE_MNTENT 1
11098 _ACEOF
11099  fstype=4.3BSD
11100 else
11101   echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11103
11104
11105 fi
11106 rm -f conftest.err conftest.$ac_ext
11107 fi
11108 if test $fstype = no; then
11109 cat >conftest.$ac_ext <<_ACEOF
11110 #line $LINENO "configure"
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116 #include <sys/mount.h>
11117
11118 _ACEOF
11119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11120   $EGREP "f_type;" >/dev/null 2>&1; then
11121   cat >>confdefs.h <<\_ACEOF
11122 #define FSTYPE_STATFS 1
11123 _ACEOF
11124  fstype=4.4BSD/OSF1
11125 fi
11126 rm -f conftest*
11127
11128 fi
11129 if test $fstype = no; then
11130 cat >conftest.$ac_ext <<_ACEOF
11131 #line $LINENO "configure"
11132 /* confdefs.h.  */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h.  */
11137 #include <sys/mount.h>
11138 #include <sys/fs_types.h>
11139 _ACEOF
11140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11141   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11142   ac_status=$?
11143   grep -v '^ *+' conftest.er1 >conftest.err
11144   rm -f conftest.er1
11145   cat conftest.err >&5
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } >/dev/null; then
11148   if test -s conftest.err; then
11149     ac_cpp_err=$ac_c_preproc_warn_flag
11150   else
11151     ac_cpp_err=
11152   fi
11153 else
11154   ac_cpp_err=yes
11155 fi
11156 if test -z "$ac_cpp_err"; then
11157   cat >>confdefs.h <<\_ACEOF
11158 #define FSTYPE_GETMNT 1
11159 _ACEOF
11160  fstype=Ultrix
11161 else
11162   echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11164
11165
11166 fi
11167 rm -f conftest.err conftest.$ac_ext
11168 fi
11169 echo "$as_me:$LINENO: result: $fstype" >&5
11170 echo "${ECHO_T}$fstype" >&6
11171
11172 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11173 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11174 if test "${ac_cv_type_signal+set}" = set; then
11175   echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177   cat >conftest.$ac_ext <<_ACEOF
11178 #line $LINENO "configure"
11179 /* confdefs.h.  */
11180 _ACEOF
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h.  */
11184 #include <sys/types.h>
11185 #include <signal.h>
11186 #ifdef signal
11187 # undef signal
11188 #endif
11189 #ifdef __cplusplus
11190 extern "C" void (*signal (int, void (*)(int)))(int);
11191 #else
11192 void (*signal ()) ();
11193 #endif
11194
11195 int
11196 main ()
11197 {
11198 int i;
11199   ;
11200   return 0;
11201 }
11202 _ACEOF
11203 rm -f conftest.$ac_objext
11204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11205   (eval $ac_compile) 2>&5
11206   ac_status=$?
11207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208   (exit $ac_status); } &&
11209          { ac_try='test -s conftest.$ac_objext'
11210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211   (eval $ac_try) 2>&5
11212   ac_status=$?
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); }; }; then
11215   ac_cv_type_signal=void
11216 else
11217   echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11219
11220 ac_cv_type_signal=int
11221 fi
11222 rm -f conftest.$ac_objext conftest.$ac_ext
11223 fi
11224 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11225 echo "${ECHO_T}$ac_cv_type_signal" >&6
11226
11227 cat >>confdefs.h <<_ACEOF
11228 #define RETSIGTYPE $ac_cv_type_signal
11229 _ACEOF
11230
11231
11232
11233 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11234 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11235 if test "${bash_cv_signal_vintage+set}" = set; then
11236   echo $ECHO_N "(cached) $ECHO_C" >&6
11237 else
11238
11239   cat >conftest.$ac_ext <<_ACEOF
11240 #line $LINENO "configure"
11241 /* confdefs.h.  */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h.  */
11246 #include <signal.h>
11247 int
11248 main ()
11249 {
11250
11251     sigset_t ss;
11252     struct sigaction sa;
11253     sigemptyset(&ss); sigsuspend(&ss);
11254     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11255     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11256
11257   ;
11258   return 0;
11259 }
11260 _ACEOF
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11263   (eval $ac_link) 2>&5
11264   ac_status=$?
11265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266   (exit $ac_status); } &&
11267          { ac_try='test -s conftest$ac_exeext'
11268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269   (eval $ac_try) 2>&5
11270   ac_status=$?
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); }; }; then
11273   bash_cv_signal_vintage=posix
11274 else
11275   echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11277
11278
11279     cat >conftest.$ac_ext <<_ACEOF
11280 #line $LINENO "configure"
11281 /* confdefs.h.  */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h.  */
11286 #include <signal.h>
11287 int
11288 main ()
11289 {
11290
11291         int mask = sigmask(SIGINT);
11292         sigsetmask(mask); sigblock(mask); sigpause(mask);
11293
11294   ;
11295   return 0;
11296 }
11297 _ACEOF
11298 rm -f conftest.$ac_objext conftest$ac_exeext
11299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11300   (eval $ac_link) 2>&5
11301   ac_status=$?
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); } &&
11304          { ac_try='test -s conftest$ac_exeext'
11305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306   (eval $ac_try) 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); }; }; then
11310   bash_cv_signal_vintage=4.2bsd
11311 else
11312   echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11314
11315
11316       cat >conftest.$ac_ext <<_ACEOF
11317 #line $LINENO "configure"
11318 /* confdefs.h.  */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h.  */
11323
11324         #include <signal.h>
11325         RETSIGTYPE foo() { }
11326 int
11327 main ()
11328 {
11329
11330                 int mask = sigmask(SIGINT);
11331                 sigset(SIGINT, foo); sigrelse(SIGINT);
11332                 sighold(SIGINT); sigpause(SIGINT);
11333
11334   ;
11335   return 0;
11336 }
11337 _ACEOF
11338 rm -f conftest.$ac_objext conftest$ac_exeext
11339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11340   (eval $ac_link) 2>&5
11341   ac_status=$?
11342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343   (exit $ac_status); } &&
11344          { ac_try='test -s conftest$ac_exeext'
11345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346   (eval $ac_try) 2>&5
11347   ac_status=$?
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); }; }; then
11350   bash_cv_signal_vintage=svr3
11351 else
11352   echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11354
11355 bash_cv_signal_vintage=v7
11356
11357 fi
11358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11359
11360 fi
11361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11362
11363 fi
11364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11365
11366 fi
11367
11368 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11369 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11370 if test "$bash_cv_signal_vintage" = posix; then
11371 cat >>confdefs.h <<\_ACEOF
11372 #define HAVE_POSIX_SIGNALS 1
11373 _ACEOF
11374
11375 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11376 cat >>confdefs.h <<\_ACEOF
11377 #define HAVE_BSD_SIGNALS 1
11378 _ACEOF
11379
11380 elif test "$bash_cv_signal_vintage" = svr3; then
11381 cat >>confdefs.h <<\_ACEOF
11382 #define HAVE_USG_SIGHOLD 1
11383 _ACEOF
11384
11385 fi
11386
11387 echo "$as_me:$LINENO: checking for mode_t" >&5
11388 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11389 if test "${ac_cv_type_mode_t+set}" = set; then
11390   echo $ECHO_N "(cached) $ECHO_C" >&6
11391 else
11392   cat >conftest.$ac_ext <<_ACEOF
11393 #line $LINENO "configure"
11394 /* confdefs.h.  */
11395 _ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h.  */
11399 $ac_includes_default
11400 int
11401 main ()
11402 {
11403 if ((mode_t *) 0)
11404   return 0;
11405 if (sizeof (mode_t))
11406   return 0;
11407   ;
11408   return 0;
11409 }
11410 _ACEOF
11411 rm -f conftest.$ac_objext
11412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11413   (eval $ac_compile) 2>&5
11414   ac_status=$?
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); } &&
11417          { ac_try='test -s conftest.$ac_objext'
11418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419   (eval $ac_try) 2>&5
11420   ac_status=$?
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); }; }; then
11423   ac_cv_type_mode_t=yes
11424 else
11425   echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428 ac_cv_type_mode_t=no
11429 fi
11430 rm -f conftest.$ac_objext conftest.$ac_ext
11431 fi
11432 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11433 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11434 if test $ac_cv_type_mode_t = yes; then
11435   :
11436 else
11437
11438 cat >>confdefs.h <<_ACEOF
11439 #define mode_t int
11440 _ACEOF
11441
11442 fi
11443
11444 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11445 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11446 if test "${ac_cv_type_uid_t+set}" = set; then
11447   echo $ECHO_N "(cached) $ECHO_C" >&6
11448 else
11449   cat >conftest.$ac_ext <<_ACEOF
11450 #line $LINENO "configure"
11451 /* confdefs.h.  */
11452 _ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h.  */
11456 #include <sys/types.h>
11457
11458 _ACEOF
11459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11460   $EGREP "uid_t" >/dev/null 2>&1; then
11461   ac_cv_type_uid_t=yes
11462 else
11463   ac_cv_type_uid_t=no
11464 fi
11465 rm -f conftest*
11466
11467 fi
11468 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11469 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11470 if test $ac_cv_type_uid_t = no; then
11471
11472 cat >>confdefs.h <<\_ACEOF
11473 #define uid_t int
11474 _ACEOF
11475
11476
11477 cat >>confdefs.h <<\_ACEOF
11478 #define gid_t int
11479 _ACEOF
11480
11481 fi
11482
11483 echo "$as_me:$LINENO: checking for size_t" >&5
11484 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11485 if test "${ac_cv_type_size_t+set}" = set; then
11486   echo $ECHO_N "(cached) $ECHO_C" >&6
11487 else
11488   cat >conftest.$ac_ext <<_ACEOF
11489 #line $LINENO "configure"
11490 /* confdefs.h.  */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h.  */
11495 $ac_includes_default
11496 int
11497 main ()
11498 {
11499 if ((size_t *) 0)
11500   return 0;
11501 if (sizeof (size_t))
11502   return 0;
11503   ;
11504   return 0;
11505 }
11506 _ACEOF
11507 rm -f conftest.$ac_objext
11508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11509   (eval $ac_compile) 2>&5
11510   ac_status=$?
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); } &&
11513          { ac_try='test -s conftest.$ac_objext'
11514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515   (eval $ac_try) 2>&5
11516   ac_status=$?
11517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518   (exit $ac_status); }; }; then
11519   ac_cv_type_size_t=yes
11520 else
11521   echo "$as_me: failed program was:" >&5
11522 sed 's/^/| /' conftest.$ac_ext >&5
11523
11524 ac_cv_type_size_t=no
11525 fi
11526 rm -f conftest.$ac_objext conftest.$ac_ext
11527 fi
11528 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11529 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11530 if test $ac_cv_type_size_t = yes; then
11531   :
11532 else
11533
11534 cat >>confdefs.h <<_ACEOF
11535 #define size_t unsigned
11536 _ACEOF
11537
11538 fi
11539
11540 echo "$as_me:$LINENO: checking for pid_t" >&5
11541 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11542 if test "${ac_cv_type_pid_t+set}" = set; then
11543   echo $ECHO_N "(cached) $ECHO_C" >&6
11544 else
11545   cat >conftest.$ac_ext <<_ACEOF
11546 #line $LINENO "configure"
11547 /* confdefs.h.  */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h.  */
11552 $ac_includes_default
11553 int
11554 main ()
11555 {
11556 if ((pid_t *) 0)
11557   return 0;
11558 if (sizeof (pid_t))
11559   return 0;
11560   ;
11561   return 0;
11562 }
11563 _ACEOF
11564 rm -f conftest.$ac_objext
11565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11566   (eval $ac_compile) 2>&5
11567   ac_status=$?
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); } &&
11570          { ac_try='test -s conftest.$ac_objext'
11571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572   (eval $ac_try) 2>&5
11573   ac_status=$?
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); }; }; then
11576   ac_cv_type_pid_t=yes
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581 ac_cv_type_pid_t=no
11582 fi
11583 rm -f conftest.$ac_objext conftest.$ac_ext
11584 fi
11585 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11586 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11587 if test $ac_cv_type_pid_t = yes; then
11588   :
11589 else
11590
11591 cat >>confdefs.h <<_ACEOF
11592 #define pid_t int
11593 _ACEOF
11594
11595 fi
11596
11597 echo "$as_me:$LINENO: checking for off_t" >&5
11598 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11599 if test "${ac_cv_type_off_t+set}" = set; then
11600   echo $ECHO_N "(cached) $ECHO_C" >&6
11601 else
11602   cat >conftest.$ac_ext <<_ACEOF
11603 #line $LINENO "configure"
11604 /* confdefs.h.  */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h.  */
11609 $ac_includes_default
11610 int
11611 main ()
11612 {
11613 if ((off_t *) 0)
11614   return 0;
11615 if (sizeof (off_t))
11616   return 0;
11617   ;
11618   return 0;
11619 }
11620 _ACEOF
11621 rm -f conftest.$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623   (eval $ac_compile) 2>&5
11624   ac_status=$?
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); } &&
11627          { ac_try='test -s conftest.$ac_objext'
11628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629   (eval $ac_try) 2>&5
11630   ac_status=$?
11631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632   (exit $ac_status); }; }; then
11633   ac_cv_type_off_t=yes
11634 else
11635   echo "$as_me: failed program was:" >&5
11636 sed 's/^/| /' conftest.$ac_ext >&5
11637
11638 ac_cv_type_off_t=no
11639 fi
11640 rm -f conftest.$ac_objext conftest.$ac_ext
11641 fi
11642 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11643 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11644 if test $ac_cv_type_off_t = yes; then
11645   :
11646 else
11647
11648 cat >>confdefs.h <<_ACEOF
11649 #define off_t long
11650 _ACEOF
11651
11652 fi
11653
11654 echo "$as_me:$LINENO: checking for ino_t" >&5
11655 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11656 if test "${ac_cv_type_ino_t+set}" = set; then
11657   echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659   cat >conftest.$ac_ext <<_ACEOF
11660 #line $LINENO "configure"
11661 /* confdefs.h.  */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h.  */
11666 $ac_includes_default
11667 int
11668 main ()
11669 {
11670 if ((ino_t *) 0)
11671   return 0;
11672 if (sizeof (ino_t))
11673   return 0;
11674   ;
11675   return 0;
11676 }
11677 _ACEOF
11678 rm -f conftest.$ac_objext
11679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11680   (eval $ac_compile) 2>&5
11681   ac_status=$?
11682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683   (exit $ac_status); } &&
11684          { ac_try='test -s conftest.$ac_objext'
11685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686   (eval $ac_try) 2>&5
11687   ac_status=$?
11688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689   (exit $ac_status); }; }; then
11690   ac_cv_type_ino_t=yes
11691 else
11692   echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11694
11695 ac_cv_type_ino_t=no
11696 fi
11697 rm -f conftest.$ac_objext conftest.$ac_ext
11698 fi
11699 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11700 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11701 if test $ac_cv_type_ino_t = yes; then
11702   :
11703 else
11704
11705 cat >>confdefs.h <<_ACEOF
11706 #define ino_t unsigned long
11707 _ACEOF
11708
11709 fi
11710
11711 echo "$as_me:$LINENO: checking for dev_t" >&5
11712 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11713 if test "${ac_cv_type_dev_t+set}" = set; then
11714   echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716   cat >conftest.$ac_ext <<_ACEOF
11717 #line $LINENO "configure"
11718 /* confdefs.h.  */
11719 _ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h.  */
11723 $ac_includes_default
11724 int
11725 main ()
11726 {
11727 if ((dev_t *) 0)
11728   return 0;
11729 if (sizeof (dev_t))
11730   return 0;
11731   ;
11732   return 0;
11733 }
11734 _ACEOF
11735 rm -f conftest.$ac_objext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11737   (eval $ac_compile) 2>&5
11738   ac_status=$?
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); } &&
11741          { ac_try='test -s conftest.$ac_objext'
11742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743   (eval $ac_try) 2>&5
11744   ac_status=$?
11745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746   (exit $ac_status); }; }; then
11747   ac_cv_type_dev_t=yes
11748 else
11749   echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11751
11752 ac_cv_type_dev_t=no
11753 fi
11754 rm -f conftest.$ac_objext conftest.$ac_ext
11755 fi
11756 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11757 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11758 if test $ac_cv_type_dev_t = yes; then
11759   :
11760 else
11761
11762 cat >>confdefs.h <<_ACEOF
11763 #define dev_t unsigned long
11764 _ACEOF
11765
11766 fi
11767
11768 echo "$as_me:$LINENO: checking for daddr_t" >&5
11769 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11770 if test "${ac_cv_type_daddr_t+set}" = set; then
11771   echo $ECHO_N "(cached) $ECHO_C" >&6
11772 else
11773   cat >conftest.$ac_ext <<_ACEOF
11774 #line $LINENO "configure"
11775 /* confdefs.h.  */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h.  */
11780 $ac_includes_default
11781 int
11782 main ()
11783 {
11784 if ((daddr_t *) 0)
11785   return 0;
11786 if (sizeof (daddr_t))
11787   return 0;
11788   ;
11789   return 0;
11790 }
11791 _ACEOF
11792 rm -f conftest.$ac_objext
11793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11794   (eval $ac_compile) 2>&5
11795   ac_status=$?
11796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797   (exit $ac_status); } &&
11798          { ac_try='test -s conftest.$ac_objext'
11799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800   (eval $ac_try) 2>&5
11801   ac_status=$?
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); }; }; then
11804   ac_cv_type_daddr_t=yes
11805 else
11806   echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11808
11809 ac_cv_type_daddr_t=no
11810 fi
11811 rm -f conftest.$ac_objext conftest.$ac_ext
11812 fi
11813 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11814 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11815 if test $ac_cv_type_daddr_t = yes; then
11816   :
11817 else
11818
11819 cat >>confdefs.h <<_ACEOF
11820 #define daddr_t long
11821 _ACEOF
11822
11823 fi
11824
11825 echo "$as_me:$LINENO: checking for major_t" >&5
11826 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11827 if test "${ac_cv_type_major_t+set}" = set; then
11828   echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830   cat >conftest.$ac_ext <<_ACEOF
11831 #line $LINENO "configure"
11832 /* confdefs.h.  */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h.  */
11837 $ac_includes_default
11838 int
11839 main ()
11840 {
11841 if ((major_t *) 0)
11842   return 0;
11843 if (sizeof (major_t))
11844   return 0;
11845   ;
11846   return 0;
11847 }
11848 _ACEOF
11849 rm -f conftest.$ac_objext
11850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11851   (eval $ac_compile) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); } &&
11855          { ac_try='test -s conftest.$ac_objext'
11856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857   (eval $ac_try) 2>&5
11858   ac_status=$?
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); }; }; then
11861   ac_cv_type_major_t=yes
11862 else
11863   echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11865
11866 ac_cv_type_major_t=no
11867 fi
11868 rm -f conftest.$ac_objext conftest.$ac_ext
11869 fi
11870 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11871 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11872 if test $ac_cv_type_major_t = yes; then
11873   :
11874 else
11875
11876 cat >>confdefs.h <<_ACEOF
11877 #define major_t int
11878 _ACEOF
11879
11880 fi
11881
11882 echo "$as_me:$LINENO: checking for minor_t" >&5
11883 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11884 if test "${ac_cv_type_minor_t+set}" = set; then
11885   echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887   cat >conftest.$ac_ext <<_ACEOF
11888 #line $LINENO "configure"
11889 /* confdefs.h.  */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h.  */
11894 $ac_includes_default
11895 int
11896 main ()
11897 {
11898 if ((minor_t *) 0)
11899   return 0;
11900 if (sizeof (minor_t))
11901   return 0;
11902   ;
11903   return 0;
11904 }
11905 _ACEOF
11906 rm -f conftest.$ac_objext
11907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11908   (eval $ac_compile) 2>&5
11909   ac_status=$?
11910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911   (exit $ac_status); } &&
11912          { ac_try='test -s conftest.$ac_objext'
11913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914   (eval $ac_try) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); }; }; then
11918   ac_cv_type_minor_t=yes
11919 else
11920   echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11922
11923 ac_cv_type_minor_t=no
11924 fi
11925 rm -f conftest.$ac_objext conftest.$ac_ext
11926 fi
11927 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11928 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11929 if test $ac_cv_type_minor_t = yes; then
11930   :
11931 else
11932
11933 cat >>confdefs.h <<_ACEOF
11934 #define minor_t int
11935 _ACEOF
11936
11937 fi
11938
11939 echo "$as_me:$LINENO: checking for ssize_t" >&5
11940 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11941 if test "${ac_cv_type_ssize_t+set}" = set; then
11942   echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944   cat >conftest.$ac_ext <<_ACEOF
11945 #line $LINENO "configure"
11946 /* confdefs.h.  */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h.  */
11951 $ac_includes_default
11952 int
11953 main ()
11954 {
11955 if ((ssize_t *) 0)
11956   return 0;
11957 if (sizeof (ssize_t))
11958   return 0;
11959   ;
11960   return 0;
11961 }
11962 _ACEOF
11963 rm -f conftest.$ac_objext
11964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11965   (eval $ac_compile) 2>&5
11966   ac_status=$?
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); } &&
11969          { ac_try='test -s conftest.$ac_objext'
11970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971   (eval $ac_try) 2>&5
11972   ac_status=$?
11973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974   (exit $ac_status); }; }; then
11975   ac_cv_type_ssize_t=yes
11976 else
11977   echo "$as_me: failed program was:" >&5
11978 sed 's/^/| /' conftest.$ac_ext >&5
11979
11980 ac_cv_type_ssize_t=no
11981 fi
11982 rm -f conftest.$ac_objext conftest.$ac_ext
11983 fi
11984 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11985 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11986 if test $ac_cv_type_ssize_t = yes; then
11987   :
11988 else
11989
11990 cat >>confdefs.h <<_ACEOF
11991 #define ssize_t int
11992 _ACEOF
11993
11994 fi
11995
11996 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11997 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11998 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11999   echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001   cat >conftest.$ac_ext <<_ACEOF
12002 #line $LINENO "configure"
12003 /* confdefs.h.  */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h.  */
12008 $ac_includes_default
12009 int
12010 main ()
12011 {
12012 static struct stat ac_aggr;
12013 if (ac_aggr.st_blocks)
12014 return 0;
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 rm -f conftest.$ac_objext
12020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12021   (eval $ac_compile) 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); } &&
12025          { ac_try='test -s conftest.$ac_objext'
12026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027   (eval $ac_try) 2>&5
12028   ac_status=$?
12029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030   (exit $ac_status); }; }; then
12031   ac_cv_member_struct_stat_st_blocks=yes
12032 else
12033   echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12035
12036 cat >conftest.$ac_ext <<_ACEOF
12037 #line $LINENO "configure"
12038 /* confdefs.h.  */
12039 _ACEOF
12040 cat confdefs.h >>conftest.$ac_ext
12041 cat >>conftest.$ac_ext <<_ACEOF
12042 /* end confdefs.h.  */
12043 $ac_includes_default
12044 int
12045 main ()
12046 {
12047 static struct stat ac_aggr;
12048 if (sizeof ac_aggr.st_blocks)
12049 return 0;
12050   ;
12051   return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12056   (eval $ac_compile) 2>&5
12057   ac_status=$?
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); } &&
12060          { ac_try='test -s conftest.$ac_objext'
12061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062   (eval $ac_try) 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); }; }; then
12066   ac_cv_member_struct_stat_st_blocks=yes
12067 else
12068   echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 ac_cv_member_struct_stat_st_blocks=no
12072 fi
12073 rm -f conftest.$ac_objext conftest.$ac_ext
12074 fi
12075 rm -f conftest.$ac_objext conftest.$ac_ext
12076 fi
12077 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12078 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12079 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12080
12081 cat >>confdefs.h <<_ACEOF
12082 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12083 _ACEOF
12084
12085
12086 cat >>confdefs.h <<\_ACEOF
12087 #define HAVE_ST_BLOCKS 1
12088 _ACEOF
12089
12090 else
12091   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12092 fi
12093
12094
12095
12096 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12097 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12098 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12099   echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101   cat >conftest.$ac_ext <<_ACEOF
12102 #line $LINENO "configure"
12103 /* confdefs.h.  */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h.  */
12108 $ac_includes_default
12109 int
12110 main ()
12111 {
12112 static struct stat ac_aggr;
12113 if (ac_aggr.st_rdev)
12114 return 0;
12115   ;
12116   return 0;
12117 }
12118 _ACEOF
12119 rm -f conftest.$ac_objext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12121   (eval $ac_compile) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); } &&
12125          { ac_try='test -s conftest.$ac_objext'
12126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127   (eval $ac_try) 2>&5
12128   ac_status=$?
12129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130   (exit $ac_status); }; }; then
12131   ac_cv_member_struct_stat_st_rdev=yes
12132 else
12133   echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12135
12136 cat >conftest.$ac_ext <<_ACEOF
12137 #line $LINENO "configure"
12138 /* confdefs.h.  */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h.  */
12143 $ac_includes_default
12144 int
12145 main ()
12146 {
12147 static struct stat ac_aggr;
12148 if (sizeof ac_aggr.st_rdev)
12149 return 0;
12150   ;
12151   return 0;
12152 }
12153 _ACEOF
12154 rm -f conftest.$ac_objext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12156   (eval $ac_compile) 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); } &&
12160          { ac_try='test -s conftest.$ac_objext'
12161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162   (eval $ac_try) 2>&5
12163   ac_status=$?
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); }; }; then
12166   ac_cv_member_struct_stat_st_rdev=yes
12167 else
12168   echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171 ac_cv_member_struct_stat_st_rdev=no
12172 fi
12173 rm -f conftest.$ac_objext conftest.$ac_ext
12174 fi
12175 rm -f conftest.$ac_objext conftest.$ac_ext
12176 fi
12177 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12178 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12179 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12180
12181 cat >>confdefs.h <<_ACEOF
12182 #define HAVE_STRUCT_STAT_ST_RDEV 1
12183 _ACEOF
12184
12185
12186 cat >>confdefs.h <<\_ACEOF
12187 #define HAVE_ST_RDEV 1
12188 _ACEOF
12189
12190 fi
12191
12192
12193 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12194 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12195 if test "${ac_cv_struct_tm+set}" = set; then
12196   echo $ECHO_N "(cached) $ECHO_C" >&6
12197 else
12198   cat >conftest.$ac_ext <<_ACEOF
12199 #line $LINENO "configure"
12200 /* confdefs.h.  */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h.  */
12205 #include <sys/types.h>
12206 #include <time.h>
12207
12208 int
12209 main ()
12210 {
12211 struct tm *tp; tp->tm_sec;
12212   ;
12213   return 0;
12214 }
12215 _ACEOF
12216 rm -f conftest.$ac_objext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12218   (eval $ac_compile) 2>&5
12219   ac_status=$?
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); } &&
12222          { ac_try='test -s conftest.$ac_objext'
12223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224   (eval $ac_try) 2>&5
12225   ac_status=$?
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); }; }; then
12228   ac_cv_struct_tm=time.h
12229 else
12230   echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 ac_cv_struct_tm=sys/time.h
12234 fi
12235 rm -f conftest.$ac_objext conftest.$ac_ext
12236 fi
12237 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12238 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12239 if test $ac_cv_struct_tm = sys/time.h; then
12240
12241 cat >>confdefs.h <<\_ACEOF
12242 #define TM_IN_SYS_TIME 1
12243 _ACEOF
12244
12245 fi
12246
12247 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12248 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12249 if test "${ac_cv_c_const+set}" = set; then
12250   echo $ECHO_N "(cached) $ECHO_C" >&6
12251 else
12252   cat >conftest.$ac_ext <<_ACEOF
12253 #line $LINENO "configure"
12254 /* confdefs.h.  */
12255 _ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h.  */
12259
12260 int
12261 main ()
12262 {
12263 /* FIXME: Include the comments suggested by Paul. */
12264 #ifndef __cplusplus
12265   /* Ultrix mips cc rejects this.  */
12266   typedef int charset[2];
12267   const charset x;
12268   /* SunOS 4.1.1 cc rejects this.  */
12269   char const *const *ccp;
12270   char **p;
12271   /* NEC SVR4.0.2 mips cc rejects this.  */
12272   struct point {int x, y;};
12273   static struct point const zero = {0,0};
12274   /* AIX XL C 1.02.0.0 rejects this.
12275      It does not let you subtract one const X* pointer from another in
12276      an arm of an if-expression whose if-part is not a constant
12277      expression */
12278   const char *g = "string";
12279   ccp = &g + (g ? g-g : 0);
12280   /* HPUX 7.0 cc rejects these. */
12281   ++ccp;
12282   p = (char**) ccp;
12283   ccp = (char const *const *) p;
12284   { /* SCO 3.2v4 cc rejects this.  */
12285     char *t;
12286     char const *s = 0 ? (char *) 0 : (char const *) 0;
12287
12288     *t++ = 0;
12289   }
12290   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12291     int x[] = {25, 17};
12292     const int *foo = &x[0];
12293     ++foo;
12294   }
12295   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12296     typedef const int *iptr;
12297     iptr p = 0;
12298     ++p;
12299   }
12300   { /* AIX XL C 1.02.0.0 rejects this saying
12301        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12302     struct s { int j; const int *ap[3]; };
12303     struct s *b; b->j = 5;
12304   }
12305   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12306     const int foo = 10;
12307   }
12308 #endif
12309
12310   ;
12311   return 0;
12312 }
12313 _ACEOF
12314 rm -f conftest.$ac_objext
12315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12316   (eval $ac_compile) 2>&5
12317   ac_status=$?
12318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319   (exit $ac_status); } &&
12320          { ac_try='test -s conftest.$ac_objext'
12321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322   (eval $ac_try) 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; }; then
12326   ac_cv_c_const=yes
12327 else
12328   echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12330
12331 ac_cv_c_const=no
12332 fi
12333 rm -f conftest.$ac_objext conftest.$ac_ext
12334 fi
12335 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12336 echo "${ECHO_T}$ac_cv_c_const" >&6
12337 if test $ac_cv_c_const = no; then
12338
12339 cat >>confdefs.h <<\_ACEOF
12340 #define const
12341 _ACEOF
12342
12343 fi
12344
12345
12346
12347 echo "$as_me:$LINENO: checking for char" >&5
12348 echo $ECHO_N "checking for char... $ECHO_C" >&6
12349 if test "${ac_cv_type_char+set}" = set; then
12350   echo $ECHO_N "(cached) $ECHO_C" >&6
12351 else
12352   cat >conftest.$ac_ext <<_ACEOF
12353 #line $LINENO "configure"
12354 /* confdefs.h.  */
12355 _ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h.  */
12359 $ac_includes_default
12360 int
12361 main ()
12362 {
12363 if ((char *) 0)
12364   return 0;
12365 if (sizeof (char))
12366   return 0;
12367   ;
12368   return 0;
12369 }
12370 _ACEOF
12371 rm -f conftest.$ac_objext
12372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373   (eval $ac_compile) 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); } &&
12377          { ac_try='test -s conftest.$ac_objext'
12378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379   (eval $ac_try) 2>&5
12380   ac_status=$?
12381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382   (exit $ac_status); }; }; then
12383   ac_cv_type_char=yes
12384 else
12385   echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.$ac_ext >&5
12387
12388 ac_cv_type_char=no
12389 fi
12390 rm -f conftest.$ac_objext conftest.$ac_ext
12391 fi
12392 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12393 echo "${ECHO_T}$ac_cv_type_char" >&6
12394
12395 echo "$as_me:$LINENO: checking size of char" >&5
12396 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12397 if test "${ac_cv_sizeof_char+set}" = set; then
12398   echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400   if test "$ac_cv_type_char" = yes; then
12401   # The cast to unsigned long works around a bug in the HP C Compiler
12402   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12403   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12404   # This bug is HP SR number 8606223364.
12405   if test "$cross_compiling" = yes; then
12406   # Depending upon the size, compute the lo and hi bounds.
12407 cat >conftest.$ac_ext <<_ACEOF
12408 #line $LINENO "configure"
12409 /* confdefs.h.  */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h.  */
12414 $ac_includes_default
12415 int
12416 main ()
12417 {
12418 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12419 test_array [0] = 0
12420
12421   ;
12422   return 0;
12423 }
12424 _ACEOF
12425 rm -f conftest.$ac_objext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427   (eval $ac_compile) 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); } &&
12431          { ac_try='test -s conftest.$ac_objext'
12432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433   (eval $ac_try) 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; }; then
12437   ac_lo=0 ac_mid=0
12438   while :; do
12439     cat >conftest.$ac_ext <<_ACEOF
12440 #line $LINENO "configure"
12441 /* confdefs.h.  */
12442 _ACEOF
12443 cat confdefs.h >>conftest.$ac_ext
12444 cat >>conftest.$ac_ext <<_ACEOF
12445 /* end confdefs.h.  */
12446 $ac_includes_default
12447 int
12448 main ()
12449 {
12450 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12451 test_array [0] = 0
12452
12453   ;
12454   return 0;
12455 }
12456 _ACEOF
12457 rm -f conftest.$ac_objext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459   (eval $ac_compile) 2>&5
12460   ac_status=$?
12461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462   (exit $ac_status); } &&
12463          { ac_try='test -s conftest.$ac_objext'
12464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12465   (eval $ac_try) 2>&5
12466   ac_status=$?
12467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12468   (exit $ac_status); }; }; then
12469   ac_hi=$ac_mid; break
12470 else
12471   echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12473
12474 ac_lo=`expr $ac_mid + 1`
12475                     if test $ac_lo -le $ac_mid; then
12476                       ac_lo= ac_hi=
12477                       break
12478                     fi
12479                     ac_mid=`expr 2 '*' $ac_mid + 1`
12480 fi
12481 rm -f conftest.$ac_objext conftest.$ac_ext
12482   done
12483 else
12484   echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487 cat >conftest.$ac_ext <<_ACEOF
12488 #line $LINENO "configure"
12489 /* confdefs.h.  */
12490 _ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h.  */
12494 $ac_includes_default
12495 int
12496 main ()
12497 {
12498 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12499 test_array [0] = 0
12500
12501   ;
12502   return 0;
12503 }
12504 _ACEOF
12505 rm -f conftest.$ac_objext
12506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12507   (eval $ac_compile) 2>&5
12508   ac_status=$?
12509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510   (exit $ac_status); } &&
12511          { ac_try='test -s conftest.$ac_objext'
12512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12513   (eval $ac_try) 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; }; then
12517   ac_hi=-1 ac_mid=-1
12518   while :; do
12519     cat >conftest.$ac_ext <<_ACEOF
12520 #line $LINENO "configure"
12521 /* confdefs.h.  */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h.  */
12526 $ac_includes_default
12527 int
12528 main ()
12529 {
12530 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12531 test_array [0] = 0
12532
12533   ;
12534   return 0;
12535 }
12536 _ACEOF
12537 rm -f conftest.$ac_objext
12538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539   (eval $ac_compile) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); } &&
12543          { ac_try='test -s conftest.$ac_objext'
12544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12545   (eval $ac_try) 2>&5
12546   ac_status=$?
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); }; }; then
12549   ac_lo=$ac_mid; break
12550 else
12551   echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554 ac_hi=`expr '(' $ac_mid ')' - 1`
12555                        if test $ac_mid -le $ac_hi; then
12556                          ac_lo= ac_hi=
12557                          break
12558                        fi
12559                        ac_mid=`expr 2 '*' $ac_mid`
12560 fi
12561 rm -f conftest.$ac_objext conftest.$ac_ext
12562   done
12563 else
12564   echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 ac_lo= ac_hi=
12568 fi
12569 rm -f conftest.$ac_objext conftest.$ac_ext
12570 fi
12571 rm -f conftest.$ac_objext conftest.$ac_ext
12572 # Binary search between lo and hi bounds.
12573 while test "x$ac_lo" != "x$ac_hi"; do
12574   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12575   cat >conftest.$ac_ext <<_ACEOF
12576 #line $LINENO "configure"
12577 /* confdefs.h.  */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h.  */
12582 $ac_includes_default
12583 int
12584 main ()
12585 {
12586 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12587 test_array [0] = 0
12588
12589   ;
12590   return 0;
12591 }
12592 _ACEOF
12593 rm -f conftest.$ac_objext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12595   (eval $ac_compile) 2>&5
12596   ac_status=$?
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } &&
12599          { ac_try='test -s conftest.$ac_objext'
12600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601   (eval $ac_try) 2>&5
12602   ac_status=$?
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); }; }; then
12605   ac_hi=$ac_mid
12606 else
12607   echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12609
12610 ac_lo=`expr '(' $ac_mid ')' + 1`
12611 fi
12612 rm -f conftest.$ac_objext conftest.$ac_ext
12613 done
12614 case $ac_lo in
12615 ?*) ac_cv_sizeof_char=$ac_lo;;
12616 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12617 See \`config.log' for more details." >&5
12618 echo "$as_me: error: cannot compute sizeof (char), 77
12619 See \`config.log' for more details." >&2;}
12620    { (exit 1); exit 1; }; } ;;
12621 esac
12622 else
12623   if test "$cross_compiling" = yes; then
12624   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12625 See \`config.log' for more details." >&5
12626 echo "$as_me: error: cannot run test program while cross compiling
12627 See \`config.log' for more details." >&2;}
12628    { (exit 1); exit 1; }; }
12629 else
12630   cat >conftest.$ac_ext <<_ACEOF
12631 #line $LINENO "configure"
12632 /* confdefs.h.  */
12633 _ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h.  */
12637 $ac_includes_default
12638 long longval () { return (long) (sizeof (char)); }
12639 unsigned long ulongval () { return (long) (sizeof (char)); }
12640 #include <stdio.h>
12641 #include <stdlib.h>
12642 int
12643 main ()
12644 {
12645
12646   FILE *f = fopen ("conftest.val", "w");
12647   if (! f)
12648     exit (1);
12649   if (((long) (sizeof (char))) < 0)
12650     {
12651       long i = longval ();
12652       if (i != ((long) (sizeof (char))))
12653         exit (1);
12654       fprintf (f, "%ld\n", i);
12655     }
12656   else
12657     {
12658       unsigned long i = ulongval ();
12659       if (i != ((long) (sizeof (char))))
12660         exit (1);
12661       fprintf (f, "%lu\n", i);
12662     }
12663   exit (ferror (f) || fclose (f) != 0);
12664
12665   ;
12666   return 0;
12667 }
12668 _ACEOF
12669 rm -f conftest$ac_exeext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12671   (eval $ac_link) 2>&5
12672   ac_status=$?
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676   (eval $ac_try) 2>&5
12677   ac_status=$?
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); }; }; then
12680   ac_cv_sizeof_char=`cat conftest.val`
12681 else
12682   echo "$as_me: program exited with status $ac_status" >&5
12683 echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12685
12686 ( exit $ac_status )
12687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12688 See \`config.log' for more details." >&5
12689 echo "$as_me: error: cannot compute sizeof (char), 77
12690 See \`config.log' for more details." >&2;}
12691    { (exit 1); exit 1; }; }
12692 fi
12693 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12694 fi
12695 fi
12696 rm -f conftest.val
12697 else
12698   ac_cv_sizeof_char=0
12699 fi
12700 fi
12701 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12702 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12703 cat >>confdefs.h <<_ACEOF
12704 #define SIZEOF_CHAR $ac_cv_sizeof_char
12705 _ACEOF
12706
12707
12708 echo "$as_me:$LINENO: checking for short int" >&5
12709 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12710 if test "${ac_cv_type_short_int+set}" = set; then
12711   echo $ECHO_N "(cached) $ECHO_C" >&6
12712 else
12713   cat >conftest.$ac_ext <<_ACEOF
12714 #line $LINENO "configure"
12715 /* confdefs.h.  */
12716 _ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h.  */
12720 $ac_includes_default
12721 int
12722 main ()
12723 {
12724 if ((short int *) 0)
12725   return 0;
12726 if (sizeof (short int))
12727   return 0;
12728   ;
12729   return 0;
12730 }
12731 _ACEOF
12732 rm -f conftest.$ac_objext
12733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12734   (eval $ac_compile) 2>&5
12735   ac_status=$?
12736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); } &&
12738          { ac_try='test -s conftest.$ac_objext'
12739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12740   (eval $ac_try) 2>&5
12741   ac_status=$?
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); }; }; then
12744   ac_cv_type_short_int=yes
12745 else
12746   echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12748
12749 ac_cv_type_short_int=no
12750 fi
12751 rm -f conftest.$ac_objext conftest.$ac_ext
12752 fi
12753 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12754 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12755
12756 echo "$as_me:$LINENO: checking size of short int" >&5
12757 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12758 if test "${ac_cv_sizeof_short_int+set}" = set; then
12759   echo $ECHO_N "(cached) $ECHO_C" >&6
12760 else
12761   if test "$ac_cv_type_short_int" = yes; then
12762   # The cast to unsigned long works around a bug in the HP C Compiler
12763   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12764   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12765   # This bug is HP SR number 8606223364.
12766   if test "$cross_compiling" = yes; then
12767   # Depending upon the size, compute the lo and hi bounds.
12768 cat >conftest.$ac_ext <<_ACEOF
12769 #line $LINENO "configure"
12770 /* confdefs.h.  */
12771 _ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h.  */
12775 $ac_includes_default
12776 int
12777 main ()
12778 {
12779 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12780 test_array [0] = 0
12781
12782   ;
12783   return 0;
12784 }
12785 _ACEOF
12786 rm -f conftest.$ac_objext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12788   (eval $ac_compile) 2>&5
12789   ac_status=$?
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } &&
12792          { ac_try='test -s conftest.$ac_objext'
12793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794   (eval $ac_try) 2>&5
12795   ac_status=$?
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); }; }; then
12798   ac_lo=0 ac_mid=0
12799   while :; do
12800     cat >conftest.$ac_ext <<_ACEOF
12801 #line $LINENO "configure"
12802 /* confdefs.h.  */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h.  */
12807 $ac_includes_default
12808 int
12809 main ()
12810 {
12811 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12812 test_array [0] = 0
12813
12814   ;
12815   return 0;
12816 }
12817 _ACEOF
12818 rm -f conftest.$ac_objext
12819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12820   (eval $ac_compile) 2>&5
12821   ac_status=$?
12822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823   (exit $ac_status); } &&
12824          { ac_try='test -s conftest.$ac_objext'
12825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826   (eval $ac_try) 2>&5
12827   ac_status=$?
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); }; }; then
12830   ac_hi=$ac_mid; break
12831 else
12832   echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835 ac_lo=`expr $ac_mid + 1`
12836                     if test $ac_lo -le $ac_mid; then
12837                       ac_lo= ac_hi=
12838                       break
12839                     fi
12840                     ac_mid=`expr 2 '*' $ac_mid + 1`
12841 fi
12842 rm -f conftest.$ac_objext conftest.$ac_ext
12843   done
12844 else
12845   echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12847
12848 cat >conftest.$ac_ext <<_ACEOF
12849 #line $LINENO "configure"
12850 /* confdefs.h.  */
12851 _ACEOF
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h.  */
12855 $ac_includes_default
12856 int
12857 main ()
12858 {
12859 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12860 test_array [0] = 0
12861
12862   ;
12863   return 0;
12864 }
12865 _ACEOF
12866 rm -f conftest.$ac_objext
12867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12868   (eval $ac_compile) 2>&5
12869   ac_status=$?
12870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871   (exit $ac_status); } &&
12872          { ac_try='test -s conftest.$ac_objext'
12873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12874   (eval $ac_try) 2>&5
12875   ac_status=$?
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); }; }; then
12878   ac_hi=-1 ac_mid=-1
12879   while :; do
12880     cat >conftest.$ac_ext <<_ACEOF
12881 #line $LINENO "configure"
12882 /* confdefs.h.  */
12883 _ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h.  */
12887 $ac_includes_default
12888 int
12889 main ()
12890 {
12891 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12892 test_array [0] = 0
12893
12894   ;
12895   return 0;
12896 }
12897 _ACEOF
12898 rm -f conftest.$ac_objext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12900   (eval $ac_compile) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); } &&
12904          { ac_try='test -s conftest.$ac_objext'
12905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906   (eval $ac_try) 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); }; }; then
12910   ac_lo=$ac_mid; break
12911 else
12912   echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12914
12915 ac_hi=`expr '(' $ac_mid ')' - 1`
12916                        if test $ac_mid -le $ac_hi; then
12917                          ac_lo= ac_hi=
12918                          break
12919                        fi
12920                        ac_mid=`expr 2 '*' $ac_mid`
12921 fi
12922 rm -f conftest.$ac_objext conftest.$ac_ext
12923   done
12924 else
12925   echo "$as_me: failed program was:" >&5
12926 sed 's/^/| /' conftest.$ac_ext >&5
12927
12928 ac_lo= ac_hi=
12929 fi
12930 rm -f conftest.$ac_objext conftest.$ac_ext
12931 fi
12932 rm -f conftest.$ac_objext conftest.$ac_ext
12933 # Binary search between lo and hi bounds.
12934 while test "x$ac_lo" != "x$ac_hi"; do
12935   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12936   cat >conftest.$ac_ext <<_ACEOF
12937 #line $LINENO "configure"
12938 /* confdefs.h.  */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h.  */
12943 $ac_includes_default
12944 int
12945 main ()
12946 {
12947 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12948 test_array [0] = 0
12949
12950   ;
12951   return 0;
12952 }
12953 _ACEOF
12954 rm -f conftest.$ac_objext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956   (eval $ac_compile) 2>&5
12957   ac_status=$?
12958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959   (exit $ac_status); } &&
12960          { ac_try='test -s conftest.$ac_objext'
12961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962   (eval $ac_try) 2>&5
12963   ac_status=$?
12964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965   (exit $ac_status); }; }; then
12966   ac_hi=$ac_mid
12967 else
12968   echo "$as_me: failed program was:" >&5
12969 sed 's/^/| /' conftest.$ac_ext >&5
12970
12971 ac_lo=`expr '(' $ac_mid ')' + 1`
12972 fi
12973 rm -f conftest.$ac_objext conftest.$ac_ext
12974 done
12975 case $ac_lo in
12976 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12977 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12978 See \`config.log' for more details." >&5
12979 echo "$as_me: error: cannot compute sizeof (short int), 77
12980 See \`config.log' for more details." >&2;}
12981    { (exit 1); exit 1; }; } ;;
12982 esac
12983 else
12984   if test "$cross_compiling" = yes; then
12985   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12986 See \`config.log' for more details." >&5
12987 echo "$as_me: error: cannot run test program while cross compiling
12988 See \`config.log' for more details." >&2;}
12989    { (exit 1); exit 1; }; }
12990 else
12991   cat >conftest.$ac_ext <<_ACEOF
12992 #line $LINENO "configure"
12993 /* confdefs.h.  */
12994 _ACEOF
12995 cat confdefs.h >>conftest.$ac_ext
12996 cat >>conftest.$ac_ext <<_ACEOF
12997 /* end confdefs.h.  */
12998 $ac_includes_default
12999 long longval () { return (long) (sizeof (short int)); }
13000 unsigned long ulongval () { return (long) (sizeof (short int)); }
13001 #include <stdio.h>
13002 #include <stdlib.h>
13003 int
13004 main ()
13005 {
13006
13007   FILE *f = fopen ("conftest.val", "w");
13008   if (! f)
13009     exit (1);
13010   if (((long) (sizeof (short int))) < 0)
13011     {
13012       long i = longval ();
13013       if (i != ((long) (sizeof (short int))))
13014         exit (1);
13015       fprintf (f, "%ld\n", i);
13016     }
13017   else
13018     {
13019       unsigned long i = ulongval ();
13020       if (i != ((long) (sizeof (short int))))
13021         exit (1);
13022       fprintf (f, "%lu\n", i);
13023     }
13024   exit (ferror (f) || fclose (f) != 0);
13025
13026   ;
13027   return 0;
13028 }
13029 _ACEOF
13030 rm -f conftest$ac_exeext
13031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13032   (eval $ac_link) 2>&5
13033   ac_status=$?
13034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037   (eval $ac_try) 2>&5
13038   ac_status=$?
13039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040   (exit $ac_status); }; }; then
13041   ac_cv_sizeof_short_int=`cat conftest.val`
13042 else
13043   echo "$as_me: program exited with status $ac_status" >&5
13044 echo "$as_me: failed program was:" >&5
13045 sed 's/^/| /' conftest.$ac_ext >&5
13046
13047 ( exit $ac_status )
13048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13049 See \`config.log' for more details." >&5
13050 echo "$as_me: error: cannot compute sizeof (short int), 77
13051 See \`config.log' for more details." >&2;}
13052    { (exit 1); exit 1; }; }
13053 fi
13054 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13055 fi
13056 fi
13057 rm -f conftest.val
13058 else
13059   ac_cv_sizeof_short_int=0
13060 fi
13061 fi
13062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13063 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13064 cat >>confdefs.h <<_ACEOF
13065 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13066 _ACEOF
13067
13068
13069 echo "$as_me:$LINENO: checking for int" >&5
13070 echo $ECHO_N "checking for int... $ECHO_C" >&6
13071 if test "${ac_cv_type_int+set}" = set; then
13072   echo $ECHO_N "(cached) $ECHO_C" >&6
13073 else
13074   cat >conftest.$ac_ext <<_ACEOF
13075 #line $LINENO "configure"
13076 /* confdefs.h.  */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h.  */
13081 $ac_includes_default
13082 int
13083 main ()
13084 {
13085 if ((int *) 0)
13086   return 0;
13087 if (sizeof (int))
13088   return 0;
13089   ;
13090   return 0;
13091 }
13092 _ACEOF
13093 rm -f conftest.$ac_objext
13094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13095   (eval $ac_compile) 2>&5
13096   ac_status=$?
13097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098   (exit $ac_status); } &&
13099          { ac_try='test -s conftest.$ac_objext'
13100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101   (eval $ac_try) 2>&5
13102   ac_status=$?
13103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104   (exit $ac_status); }; }; then
13105   ac_cv_type_int=yes
13106 else
13107   echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13109
13110 ac_cv_type_int=no
13111 fi
13112 rm -f conftest.$ac_objext conftest.$ac_ext
13113 fi
13114 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13115 echo "${ECHO_T}$ac_cv_type_int" >&6
13116
13117 echo "$as_me:$LINENO: checking size of int" >&5
13118 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13119 if test "${ac_cv_sizeof_int+set}" = set; then
13120   echo $ECHO_N "(cached) $ECHO_C" >&6
13121 else
13122   if test "$ac_cv_type_int" = yes; then
13123   # The cast to unsigned long works around a bug in the HP C Compiler
13124   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13125   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13126   # This bug is HP SR number 8606223364.
13127   if test "$cross_compiling" = yes; then
13128   # Depending upon the size, compute the lo and hi bounds.
13129 cat >conftest.$ac_ext <<_ACEOF
13130 #line $LINENO "configure"
13131 /* confdefs.h.  */
13132 _ACEOF
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h.  */
13136 $ac_includes_default
13137 int
13138 main ()
13139 {
13140 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13141 test_array [0] = 0
13142
13143   ;
13144   return 0;
13145 }
13146 _ACEOF
13147 rm -f conftest.$ac_objext
13148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13149   (eval $ac_compile) 2>&5
13150   ac_status=$?
13151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152   (exit $ac_status); } &&
13153          { ac_try='test -s conftest.$ac_objext'
13154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155   (eval $ac_try) 2>&5
13156   ac_status=$?
13157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158   (exit $ac_status); }; }; then
13159   ac_lo=0 ac_mid=0
13160   while :; do
13161     cat >conftest.$ac_ext <<_ACEOF
13162 #line $LINENO "configure"
13163 /* confdefs.h.  */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h.  */
13168 $ac_includes_default
13169 int
13170 main ()
13171 {
13172 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13173 test_array [0] = 0
13174
13175   ;
13176   return 0;
13177 }
13178 _ACEOF
13179 rm -f conftest.$ac_objext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181   (eval $ac_compile) 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); } &&
13185          { ac_try='test -s conftest.$ac_objext'
13186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187   (eval $ac_try) 2>&5
13188   ac_status=$?
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); }; }; then
13191   ac_hi=$ac_mid; break
13192 else
13193   echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13195
13196 ac_lo=`expr $ac_mid + 1`
13197                     if test $ac_lo -le $ac_mid; then
13198                       ac_lo= ac_hi=
13199                       break
13200                     fi
13201                     ac_mid=`expr 2 '*' $ac_mid + 1`
13202 fi
13203 rm -f conftest.$ac_objext conftest.$ac_ext
13204   done
13205 else
13206   echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13208
13209 cat >conftest.$ac_ext <<_ACEOF
13210 #line $LINENO "configure"
13211 /* confdefs.h.  */
13212 _ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h.  */
13216 $ac_includes_default
13217 int
13218 main ()
13219 {
13220 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13221 test_array [0] = 0
13222
13223   ;
13224   return 0;
13225 }
13226 _ACEOF
13227 rm -f conftest.$ac_objext
13228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13229   (eval $ac_compile) 2>&5
13230   ac_status=$?
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); } &&
13233          { ac_try='test -s conftest.$ac_objext'
13234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235   (eval $ac_try) 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); }; }; then
13239   ac_hi=-1 ac_mid=-1
13240   while :; do
13241     cat >conftest.$ac_ext <<_ACEOF
13242 #line $LINENO "configure"
13243 /* confdefs.h.  */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h.  */
13248 $ac_includes_default
13249 int
13250 main ()
13251 {
13252 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13253 test_array [0] = 0
13254
13255   ;
13256   return 0;
13257 }
13258 _ACEOF
13259 rm -f conftest.$ac_objext
13260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261   (eval $ac_compile) 2>&5
13262   ac_status=$?
13263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); } &&
13265          { ac_try='test -s conftest.$ac_objext'
13266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13267   (eval $ac_try) 2>&5
13268   ac_status=$?
13269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270   (exit $ac_status); }; }; then
13271   ac_lo=$ac_mid; break
13272 else
13273   echo "$as_me: failed program was:" >&5
13274 sed 's/^/| /' conftest.$ac_ext >&5
13275
13276 ac_hi=`expr '(' $ac_mid ')' - 1`
13277                        if test $ac_mid -le $ac_hi; then
13278                          ac_lo= ac_hi=
13279                          break
13280                        fi
13281                        ac_mid=`expr 2 '*' $ac_mid`
13282 fi
13283 rm -f conftest.$ac_objext conftest.$ac_ext
13284   done
13285 else
13286   echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13288
13289 ac_lo= ac_hi=
13290 fi
13291 rm -f conftest.$ac_objext conftest.$ac_ext
13292 fi
13293 rm -f conftest.$ac_objext conftest.$ac_ext
13294 # Binary search between lo and hi bounds.
13295 while test "x$ac_lo" != "x$ac_hi"; do
13296   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13297   cat >conftest.$ac_ext <<_ACEOF
13298 #line $LINENO "configure"
13299 /* confdefs.h.  */
13300 _ACEOF
13301 cat confdefs.h >>conftest.$ac_ext
13302 cat >>conftest.$ac_ext <<_ACEOF
13303 /* end confdefs.h.  */
13304 $ac_includes_default
13305 int
13306 main ()
13307 {
13308 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13309 test_array [0] = 0
13310
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13317   (eval $ac_compile) 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); } &&
13321          { ac_try='test -s conftest.$ac_objext'
13322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323   (eval $ac_try) 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }; }; then
13327   ac_hi=$ac_mid
13328 else
13329   echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ac_lo=`expr '(' $ac_mid ')' + 1`
13333 fi
13334 rm -f conftest.$ac_objext conftest.$ac_ext
13335 done
13336 case $ac_lo in
13337 ?*) ac_cv_sizeof_int=$ac_lo;;
13338 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13339 See \`config.log' for more details." >&5
13340 echo "$as_me: error: cannot compute sizeof (int), 77
13341 See \`config.log' for more details." >&2;}
13342    { (exit 1); exit 1; }; } ;;
13343 esac
13344 else
13345   if test "$cross_compiling" = yes; then
13346   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13347 See \`config.log' for more details." >&5
13348 echo "$as_me: error: cannot run test program while cross compiling
13349 See \`config.log' for more details." >&2;}
13350    { (exit 1); exit 1; }; }
13351 else
13352   cat >conftest.$ac_ext <<_ACEOF
13353 #line $LINENO "configure"
13354 /* confdefs.h.  */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h.  */
13359 $ac_includes_default
13360 long longval () { return (long) (sizeof (int)); }
13361 unsigned long ulongval () { return (long) (sizeof (int)); }
13362 #include <stdio.h>
13363 #include <stdlib.h>
13364 int
13365 main ()
13366 {
13367
13368   FILE *f = fopen ("conftest.val", "w");
13369   if (! f)
13370     exit (1);
13371   if (((long) (sizeof (int))) < 0)
13372     {
13373       long i = longval ();
13374       if (i != ((long) (sizeof (int))))
13375         exit (1);
13376       fprintf (f, "%ld\n", i);
13377     }
13378   else
13379     {
13380       unsigned long i = ulongval ();
13381       if (i != ((long) (sizeof (int))))
13382         exit (1);
13383       fprintf (f, "%lu\n", i);
13384     }
13385   exit (ferror (f) || fclose (f) != 0);
13386
13387   ;
13388   return 0;
13389 }
13390 _ACEOF
13391 rm -f conftest$ac_exeext
13392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13393   (eval $ac_link) 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13398   (eval $ac_try) 2>&5
13399   ac_status=$?
13400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401   (exit $ac_status); }; }; then
13402   ac_cv_sizeof_int=`cat conftest.val`
13403 else
13404   echo "$as_me: program exited with status $ac_status" >&5
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13407
13408 ( exit $ac_status )
13409 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13410 See \`config.log' for more details." >&5
13411 echo "$as_me: error: cannot compute sizeof (int), 77
13412 See \`config.log' for more details." >&2;}
13413    { (exit 1); exit 1; }; }
13414 fi
13415 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13416 fi
13417 fi
13418 rm -f conftest.val
13419 else
13420   ac_cv_sizeof_int=0
13421 fi
13422 fi
13423 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13424 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13425 cat >>confdefs.h <<_ACEOF
13426 #define SIZEOF_INT $ac_cv_sizeof_int
13427 _ACEOF
13428
13429
13430 echo "$as_me:$LINENO: checking for long int" >&5
13431 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13432 if test "${ac_cv_type_long_int+set}" = set; then
13433   echo $ECHO_N "(cached) $ECHO_C" >&6
13434 else
13435   cat >conftest.$ac_ext <<_ACEOF
13436 #line $LINENO "configure"
13437 /* confdefs.h.  */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h.  */
13442 $ac_includes_default
13443 int
13444 main ()
13445 {
13446 if ((long int *) 0)
13447   return 0;
13448 if (sizeof (long int))
13449   return 0;
13450   ;
13451   return 0;
13452 }
13453 _ACEOF
13454 rm -f conftest.$ac_objext
13455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13456   (eval $ac_compile) 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); } &&
13460          { ac_try='test -s conftest.$ac_objext'
13461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462   (eval $ac_try) 2>&5
13463   ac_status=$?
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); }; }; then
13466   ac_cv_type_long_int=yes
13467 else
13468   echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13470
13471 ac_cv_type_long_int=no
13472 fi
13473 rm -f conftest.$ac_objext conftest.$ac_ext
13474 fi
13475 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13476 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13477
13478 echo "$as_me:$LINENO: checking size of long int" >&5
13479 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13480 if test "${ac_cv_sizeof_long_int+set}" = set; then
13481   echo $ECHO_N "(cached) $ECHO_C" >&6
13482 else
13483   if test "$ac_cv_type_long_int" = yes; then
13484   # The cast to unsigned long works around a bug in the HP C Compiler
13485   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13486   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13487   # This bug is HP SR number 8606223364.
13488   if test "$cross_compiling" = yes; then
13489   # Depending upon the size, compute the lo and hi bounds.
13490 cat >conftest.$ac_ext <<_ACEOF
13491 #line $LINENO "configure"
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497 $ac_includes_default
13498 int
13499 main ()
13500 {
13501 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13502 test_array [0] = 0
13503
13504   ;
13505   return 0;
13506 }
13507 _ACEOF
13508 rm -f conftest.$ac_objext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13510   (eval $ac_compile) 2>&5
13511   ac_status=$?
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); } &&
13514          { ac_try='test -s conftest.$ac_objext'
13515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516   (eval $ac_try) 2>&5
13517   ac_status=$?
13518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519   (exit $ac_status); }; }; then
13520   ac_lo=0 ac_mid=0
13521   while :; do
13522     cat >conftest.$ac_ext <<_ACEOF
13523 #line $LINENO "configure"
13524 /* confdefs.h.  */
13525 _ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h.  */
13529 $ac_includes_default
13530 int
13531 main ()
13532 {
13533 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13534 test_array [0] = 0
13535
13536   ;
13537   return 0;
13538 }
13539 _ACEOF
13540 rm -f conftest.$ac_objext
13541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13542   (eval $ac_compile) 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); } &&
13546          { ac_try='test -s conftest.$ac_objext'
13547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548   (eval $ac_try) 2>&5
13549   ac_status=$?
13550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551   (exit $ac_status); }; }; then
13552   ac_hi=$ac_mid; break
13553 else
13554   echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13556
13557 ac_lo=`expr $ac_mid + 1`
13558                     if test $ac_lo -le $ac_mid; then
13559                       ac_lo= ac_hi=
13560                       break
13561                     fi
13562                     ac_mid=`expr 2 '*' $ac_mid + 1`
13563 fi
13564 rm -f conftest.$ac_objext conftest.$ac_ext
13565   done
13566 else
13567   echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13569
13570 cat >conftest.$ac_ext <<_ACEOF
13571 #line $LINENO "configure"
13572 /* confdefs.h.  */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h.  */
13577 $ac_includes_default
13578 int
13579 main ()
13580 {
13581 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13582 test_array [0] = 0
13583
13584   ;
13585   return 0;
13586 }
13587 _ACEOF
13588 rm -f conftest.$ac_objext
13589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13590   (eval $ac_compile) 2>&5
13591   ac_status=$?
13592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593   (exit $ac_status); } &&
13594          { ac_try='test -s conftest.$ac_objext'
13595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596   (eval $ac_try) 2>&5
13597   ac_status=$?
13598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599   (exit $ac_status); }; }; then
13600   ac_hi=-1 ac_mid=-1
13601   while :; do
13602     cat >conftest.$ac_ext <<_ACEOF
13603 #line $LINENO "configure"
13604 /* confdefs.h.  */
13605 _ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h.  */
13609 $ac_includes_default
13610 int
13611 main ()
13612 {
13613 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13614 test_array [0] = 0
13615
13616   ;
13617   return 0;
13618 }
13619 _ACEOF
13620 rm -f conftest.$ac_objext
13621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13622   (eval $ac_compile) 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); } &&
13626          { ac_try='test -s conftest.$ac_objext'
13627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628   (eval $ac_try) 2>&5
13629   ac_status=$?
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); }; }; then
13632   ac_lo=$ac_mid; break
13633 else
13634   echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637 ac_hi=`expr '(' $ac_mid ')' - 1`
13638                        if test $ac_mid -le $ac_hi; then
13639                          ac_lo= ac_hi=
13640                          break
13641                        fi
13642                        ac_mid=`expr 2 '*' $ac_mid`
13643 fi
13644 rm -f conftest.$ac_objext conftest.$ac_ext
13645   done
13646 else
13647   echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13649
13650 ac_lo= ac_hi=
13651 fi
13652 rm -f conftest.$ac_objext conftest.$ac_ext
13653 fi
13654 rm -f conftest.$ac_objext conftest.$ac_ext
13655 # Binary search between lo and hi bounds.
13656 while test "x$ac_lo" != "x$ac_hi"; do
13657   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13658   cat >conftest.$ac_ext <<_ACEOF
13659 #line $LINENO "configure"
13660 /* confdefs.h.  */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h.  */
13665 $ac_includes_default
13666 int
13667 main ()
13668 {
13669 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13670 test_array [0] = 0
13671
13672   ;
13673   return 0;
13674 }
13675 _ACEOF
13676 rm -f conftest.$ac_objext
13677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13678   (eval $ac_compile) 2>&5
13679   ac_status=$?
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); } &&
13682          { ac_try='test -s conftest.$ac_objext'
13683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684   (eval $ac_try) 2>&5
13685   ac_status=$?
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); }; }; then
13688   ac_hi=$ac_mid
13689 else
13690   echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693 ac_lo=`expr '(' $ac_mid ')' + 1`
13694 fi
13695 rm -f conftest.$ac_objext conftest.$ac_ext
13696 done
13697 case $ac_lo in
13698 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13699 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13700 See \`config.log' for more details." >&5
13701 echo "$as_me: error: cannot compute sizeof (long int), 77
13702 See \`config.log' for more details." >&2;}
13703    { (exit 1); exit 1; }; } ;;
13704 esac
13705 else
13706   if test "$cross_compiling" = yes; then
13707   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13708 See \`config.log' for more details." >&5
13709 echo "$as_me: error: cannot run test program while cross compiling
13710 See \`config.log' for more details." >&2;}
13711    { (exit 1); exit 1; }; }
13712 else
13713   cat >conftest.$ac_ext <<_ACEOF
13714 #line $LINENO "configure"
13715 /* confdefs.h.  */
13716 _ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h.  */
13720 $ac_includes_default
13721 long longval () { return (long) (sizeof (long int)); }
13722 unsigned long ulongval () { return (long) (sizeof (long int)); }
13723 #include <stdio.h>
13724 #include <stdlib.h>
13725 int
13726 main ()
13727 {
13728
13729   FILE *f = fopen ("conftest.val", "w");
13730   if (! f)
13731     exit (1);
13732   if (((long) (sizeof (long int))) < 0)
13733     {
13734       long i = longval ();
13735       if (i != ((long) (sizeof (long int))))
13736         exit (1);
13737       fprintf (f, "%ld\n", i);
13738     }
13739   else
13740     {
13741       unsigned long i = ulongval ();
13742       if (i != ((long) (sizeof (long int))))
13743         exit (1);
13744       fprintf (f, "%lu\n", i);
13745     }
13746   exit (ferror (f) || fclose (f) != 0);
13747
13748   ;
13749   return 0;
13750 }
13751 _ACEOF
13752 rm -f conftest$ac_exeext
13753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13754   (eval $ac_link) 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759   (eval $ac_try) 2>&5
13760   ac_status=$?
13761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762   (exit $ac_status); }; }; then
13763   ac_cv_sizeof_long_int=`cat conftest.val`
13764 else
13765   echo "$as_me: program exited with status $ac_status" >&5
13766 echo "$as_me: failed program was:" >&5
13767 sed 's/^/| /' conftest.$ac_ext >&5
13768
13769 ( exit $ac_status )
13770 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13771 See \`config.log' for more details." >&5
13772 echo "$as_me: error: cannot compute sizeof (long int), 77
13773 See \`config.log' for more details." >&2;}
13774    { (exit 1); exit 1; }; }
13775 fi
13776 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13777 fi
13778 fi
13779 rm -f conftest.val
13780 else
13781   ac_cv_sizeof_long_int=0
13782 fi
13783 fi
13784 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13785 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13786 cat >>confdefs.h <<_ACEOF
13787 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13788 _ACEOF
13789
13790
13791 echo "$as_me:$LINENO: checking for long long int" >&5
13792 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13793 if test "${ac_cv_type_long_long_int+set}" = set; then
13794   echo $ECHO_N "(cached) $ECHO_C" >&6
13795 else
13796   cat >conftest.$ac_ext <<_ACEOF
13797 #line $LINENO "configure"
13798 /* confdefs.h.  */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h.  */
13803 $ac_includes_default
13804 int
13805 main ()
13806 {
13807 if ((long long int *) 0)
13808   return 0;
13809 if (sizeof (long long int))
13810   return 0;
13811   ;
13812   return 0;
13813 }
13814 _ACEOF
13815 rm -f conftest.$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817   (eval $ac_compile) 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); } &&
13821          { ac_try='test -s conftest.$ac_objext'
13822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823   (eval $ac_try) 2>&5
13824   ac_status=$?
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); }; }; then
13827   ac_cv_type_long_long_int=yes
13828 else
13829   echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13831
13832 ac_cv_type_long_long_int=no
13833 fi
13834 rm -f conftest.$ac_objext conftest.$ac_ext
13835 fi
13836 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13837 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13838
13839 echo "$as_me:$LINENO: checking size of long long int" >&5
13840 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13841 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13842   echo $ECHO_N "(cached) $ECHO_C" >&6
13843 else
13844   if test "$ac_cv_type_long_long_int" = yes; then
13845   # The cast to unsigned long works around a bug in the HP C Compiler
13846   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13847   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13848   # This bug is HP SR number 8606223364.
13849   if test "$cross_compiling" = yes; then
13850   # Depending upon the size, compute the lo and hi bounds.
13851 cat >conftest.$ac_ext <<_ACEOF
13852 #line $LINENO "configure"
13853 /* confdefs.h.  */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h.  */
13858 $ac_includes_default
13859 int
13860 main ()
13861 {
13862 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13863 test_array [0] = 0
13864
13865   ;
13866   return 0;
13867 }
13868 _ACEOF
13869 rm -f conftest.$ac_objext
13870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13871   (eval $ac_compile) 2>&5
13872   ac_status=$?
13873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874   (exit $ac_status); } &&
13875          { ac_try='test -s conftest.$ac_objext'
13876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877   (eval $ac_try) 2>&5
13878   ac_status=$?
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); }; }; then
13881   ac_lo=0 ac_mid=0
13882   while :; do
13883     cat >conftest.$ac_ext <<_ACEOF
13884 #line $LINENO "configure"
13885 /* confdefs.h.  */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h.  */
13890 $ac_includes_default
13891 int
13892 main ()
13893 {
13894 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13895 test_array [0] = 0
13896
13897   ;
13898   return 0;
13899 }
13900 _ACEOF
13901 rm -f conftest.$ac_objext
13902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13903   (eval $ac_compile) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); } &&
13907          { ac_try='test -s conftest.$ac_objext'
13908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13909   (eval $ac_try) 2>&5
13910   ac_status=$?
13911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912   (exit $ac_status); }; }; then
13913   ac_hi=$ac_mid; break
13914 else
13915   echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918 ac_lo=`expr $ac_mid + 1`
13919                     if test $ac_lo -le $ac_mid; then
13920                       ac_lo= ac_hi=
13921                       break
13922                     fi
13923                     ac_mid=`expr 2 '*' $ac_mid + 1`
13924 fi
13925 rm -f conftest.$ac_objext conftest.$ac_ext
13926   done
13927 else
13928   echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13930
13931 cat >conftest.$ac_ext <<_ACEOF
13932 #line $LINENO "configure"
13933 /* confdefs.h.  */
13934 _ACEOF
13935 cat confdefs.h >>conftest.$ac_ext
13936 cat >>conftest.$ac_ext <<_ACEOF
13937 /* end confdefs.h.  */
13938 $ac_includes_default
13939 int
13940 main ()
13941 {
13942 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13943 test_array [0] = 0
13944
13945   ;
13946   return 0;
13947 }
13948 _ACEOF
13949 rm -f conftest.$ac_objext
13950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13951   (eval $ac_compile) 2>&5
13952   ac_status=$?
13953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954   (exit $ac_status); } &&
13955          { ac_try='test -s conftest.$ac_objext'
13956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957   (eval $ac_try) 2>&5
13958   ac_status=$?
13959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960   (exit $ac_status); }; }; then
13961   ac_hi=-1 ac_mid=-1
13962   while :; do
13963     cat >conftest.$ac_ext <<_ACEOF
13964 #line $LINENO "configure"
13965 /* confdefs.h.  */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h.  */
13970 $ac_includes_default
13971 int
13972 main ()
13973 {
13974 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13975 test_array [0] = 0
13976
13977   ;
13978   return 0;
13979 }
13980 _ACEOF
13981 rm -f conftest.$ac_objext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13983   (eval $ac_compile) 2>&5
13984   ac_status=$?
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); } &&
13987          { ac_try='test -s conftest.$ac_objext'
13988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13989   (eval $ac_try) 2>&5
13990   ac_status=$?
13991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992   (exit $ac_status); }; }; then
13993   ac_lo=$ac_mid; break
13994 else
13995   echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13997
13998 ac_hi=`expr '(' $ac_mid ')' - 1`
13999                        if test $ac_mid -le $ac_hi; then
14000                          ac_lo= ac_hi=
14001                          break
14002                        fi
14003                        ac_mid=`expr 2 '*' $ac_mid`
14004 fi
14005 rm -f conftest.$ac_objext conftest.$ac_ext
14006   done
14007 else
14008   echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14010
14011 ac_lo= ac_hi=
14012 fi
14013 rm -f conftest.$ac_objext conftest.$ac_ext
14014 fi
14015 rm -f conftest.$ac_objext conftest.$ac_ext
14016 # Binary search between lo and hi bounds.
14017 while test "x$ac_lo" != "x$ac_hi"; do
14018   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14019   cat >conftest.$ac_ext <<_ACEOF
14020 #line $LINENO "configure"
14021 /* confdefs.h.  */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h.  */
14026 $ac_includes_default
14027 int
14028 main ()
14029 {
14030 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14031 test_array [0] = 0
14032
14033   ;
14034   return 0;
14035 }
14036 _ACEOF
14037 rm -f conftest.$ac_objext
14038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14039   (eval $ac_compile) 2>&5
14040   ac_status=$?
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); } &&
14043          { ac_try='test -s conftest.$ac_objext'
14044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045   (eval $ac_try) 2>&5
14046   ac_status=$?
14047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048   (exit $ac_status); }; }; then
14049   ac_hi=$ac_mid
14050 else
14051   echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14053
14054 ac_lo=`expr '(' $ac_mid ')' + 1`
14055 fi
14056 rm -f conftest.$ac_objext conftest.$ac_ext
14057 done
14058 case $ac_lo in
14059 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14060 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14061 See \`config.log' for more details." >&5
14062 echo "$as_me: error: cannot compute sizeof (long long int), 77
14063 See \`config.log' for more details." >&2;}
14064    { (exit 1); exit 1; }; } ;;
14065 esac
14066 else
14067   if test "$cross_compiling" = yes; then
14068   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14069 See \`config.log' for more details." >&5
14070 echo "$as_me: error: cannot run test program while cross compiling
14071 See \`config.log' for more details." >&2;}
14072    { (exit 1); exit 1; }; }
14073 else
14074   cat >conftest.$ac_ext <<_ACEOF
14075 #line $LINENO "configure"
14076 /* confdefs.h.  */
14077 _ACEOF
14078 cat confdefs.h >>conftest.$ac_ext
14079 cat >>conftest.$ac_ext <<_ACEOF
14080 /* end confdefs.h.  */
14081 $ac_includes_default
14082 long longval () { return (long) (sizeof (long long int)); }
14083 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14084 #include <stdio.h>
14085 #include <stdlib.h>
14086 int
14087 main ()
14088 {
14089
14090   FILE *f = fopen ("conftest.val", "w");
14091   if (! f)
14092     exit (1);
14093   if (((long) (sizeof (long long int))) < 0)
14094     {
14095       long i = longval ();
14096       if (i != ((long) (sizeof (long long int))))
14097         exit (1);
14098       fprintf (f, "%ld\n", i);
14099     }
14100   else
14101     {
14102       unsigned long i = ulongval ();
14103       if (i != ((long) (sizeof (long long int))))
14104         exit (1);
14105       fprintf (f, "%lu\n", i);
14106     }
14107   exit (ferror (f) || fclose (f) != 0);
14108
14109   ;
14110   return 0;
14111 }
14112 _ACEOF
14113 rm -f conftest$ac_exeext
14114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14115   (eval $ac_link) 2>&5
14116   ac_status=$?
14117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120   (eval $ac_try) 2>&5
14121   ac_status=$?
14122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123   (exit $ac_status); }; }; then
14124   ac_cv_sizeof_long_long_int=`cat conftest.val`
14125 else
14126   echo "$as_me: program exited with status $ac_status" >&5
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14129
14130 ( exit $ac_status )
14131 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14132 See \`config.log' for more details." >&5
14133 echo "$as_me: error: cannot compute sizeof (long long int), 77
14134 See \`config.log' for more details." >&2;}
14135    { (exit 1); exit 1; }; }
14136 fi
14137 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14138 fi
14139 fi
14140 rm -f conftest.val
14141 else
14142   ac_cv_sizeof_long_long_int=0
14143 fi
14144 fi
14145 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14146 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14147 cat >>confdefs.h <<_ACEOF
14148 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14149 _ACEOF
14150
14151
14152 echo "$as_me:$LINENO: checking for int *" >&5
14153 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14154 if test "${ac_cv_type_int_p+set}" = set; then
14155   echo $ECHO_N "(cached) $ECHO_C" >&6
14156 else
14157   cat >conftest.$ac_ext <<_ACEOF
14158 #line $LINENO "configure"
14159 /* confdefs.h.  */
14160 _ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h.  */
14164 $ac_includes_default
14165 int
14166 main ()
14167 {
14168 if ((int * *) 0)
14169   return 0;
14170 if (sizeof (int *))
14171   return 0;
14172   ;
14173   return 0;
14174 }
14175 _ACEOF
14176 rm -f conftest.$ac_objext
14177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14178   (eval $ac_compile) 2>&5
14179   ac_status=$?
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); } &&
14182          { ac_try='test -s conftest.$ac_objext'
14183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184   (eval $ac_try) 2>&5
14185   ac_status=$?
14186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187   (exit $ac_status); }; }; then
14188   ac_cv_type_int_p=yes
14189 else
14190   echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14192
14193 ac_cv_type_int_p=no
14194 fi
14195 rm -f conftest.$ac_objext conftest.$ac_ext
14196 fi
14197 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14198 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14199
14200 echo "$as_me:$LINENO: checking size of int *" >&5
14201 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14202 if test "${ac_cv_sizeof_int_p+set}" = set; then
14203   echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205   if test "$ac_cv_type_int_p" = yes; then
14206   # The cast to unsigned long works around a bug in the HP C Compiler
14207   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14208   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14209   # This bug is HP SR number 8606223364.
14210   if test "$cross_compiling" = yes; then
14211   # Depending upon the size, compute the lo and hi bounds.
14212 cat >conftest.$ac_ext <<_ACEOF
14213 #line $LINENO "configure"
14214 /* confdefs.h.  */
14215 _ACEOF
14216 cat confdefs.h >>conftest.$ac_ext
14217 cat >>conftest.$ac_ext <<_ACEOF
14218 /* end confdefs.h.  */
14219 $ac_includes_default
14220 int
14221 main ()
14222 {
14223 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14224 test_array [0] = 0
14225
14226   ;
14227   return 0;
14228 }
14229 _ACEOF
14230 rm -f conftest.$ac_objext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14232   (eval $ac_compile) 2>&5
14233   ac_status=$?
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); } &&
14236          { ac_try='test -s conftest.$ac_objext'
14237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14238   (eval $ac_try) 2>&5
14239   ac_status=$?
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); }; }; then
14242   ac_lo=0 ac_mid=0
14243   while :; do
14244     cat >conftest.$ac_ext <<_ACEOF
14245 #line $LINENO "configure"
14246 /* confdefs.h.  */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h.  */
14251 $ac_includes_default
14252 int
14253 main ()
14254 {
14255 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14256 test_array [0] = 0
14257
14258   ;
14259   return 0;
14260 }
14261 _ACEOF
14262 rm -f conftest.$ac_objext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14264   (eval $ac_compile) 2>&5
14265   ac_status=$?
14266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267   (exit $ac_status); } &&
14268          { ac_try='test -s conftest.$ac_objext'
14269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270   (eval $ac_try) 2>&5
14271   ac_status=$?
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); }; }; then
14274   ac_hi=$ac_mid; break
14275 else
14276   echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14278
14279 ac_lo=`expr $ac_mid + 1`
14280                     if test $ac_lo -le $ac_mid; then
14281                       ac_lo= ac_hi=
14282                       break
14283                     fi
14284                     ac_mid=`expr 2 '*' $ac_mid + 1`
14285 fi
14286 rm -f conftest.$ac_objext conftest.$ac_ext
14287   done
14288 else
14289   echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14291
14292 cat >conftest.$ac_ext <<_ACEOF
14293 #line $LINENO "configure"
14294 /* confdefs.h.  */
14295 _ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h.  */
14299 $ac_includes_default
14300 int
14301 main ()
14302 {
14303 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14304 test_array [0] = 0
14305
14306   ;
14307   return 0;
14308 }
14309 _ACEOF
14310 rm -f conftest.$ac_objext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14312   (eval $ac_compile) 2>&5
14313   ac_status=$?
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } &&
14316          { ac_try='test -s conftest.$ac_objext'
14317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14318   (eval $ac_try) 2>&5
14319   ac_status=$?
14320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321   (exit $ac_status); }; }; then
14322   ac_hi=-1 ac_mid=-1
14323   while :; do
14324     cat >conftest.$ac_ext <<_ACEOF
14325 #line $LINENO "configure"
14326 /* confdefs.h.  */
14327 _ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h.  */
14331 $ac_includes_default
14332 int
14333 main ()
14334 {
14335 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14336 test_array [0] = 0
14337
14338   ;
14339   return 0;
14340 }
14341 _ACEOF
14342 rm -f conftest.$ac_objext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14344   (eval $ac_compile) 2>&5
14345   ac_status=$?
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } &&
14348          { ac_try='test -s conftest.$ac_objext'
14349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350   (eval $ac_try) 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); }; }; then
14354   ac_lo=$ac_mid; break
14355 else
14356   echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14358
14359 ac_hi=`expr '(' $ac_mid ')' - 1`
14360                        if test $ac_mid -le $ac_hi; then
14361                          ac_lo= ac_hi=
14362                          break
14363                        fi
14364                        ac_mid=`expr 2 '*' $ac_mid`
14365 fi
14366 rm -f conftest.$ac_objext conftest.$ac_ext
14367   done
14368 else
14369   echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14371
14372 ac_lo= ac_hi=
14373 fi
14374 rm -f conftest.$ac_objext conftest.$ac_ext
14375 fi
14376 rm -f conftest.$ac_objext conftest.$ac_ext
14377 # Binary search between lo and hi bounds.
14378 while test "x$ac_lo" != "x$ac_hi"; do
14379   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14380   cat >conftest.$ac_ext <<_ACEOF
14381 #line $LINENO "configure"
14382 /* confdefs.h.  */
14383 _ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h.  */
14387 $ac_includes_default
14388 int
14389 main ()
14390 {
14391 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14392 test_array [0] = 0
14393
14394   ;
14395   return 0;
14396 }
14397 _ACEOF
14398 rm -f conftest.$ac_objext
14399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14400   (eval $ac_compile) 2>&5
14401   ac_status=$?
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); } &&
14404          { ac_try='test -s conftest.$ac_objext'
14405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406   (eval $ac_try) 2>&5
14407   ac_status=$?
14408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409   (exit $ac_status); }; }; then
14410   ac_hi=$ac_mid
14411 else
14412   echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14414
14415 ac_lo=`expr '(' $ac_mid ')' + 1`
14416 fi
14417 rm -f conftest.$ac_objext conftest.$ac_ext
14418 done
14419 case $ac_lo in
14420 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14421 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14422 See \`config.log' for more details." >&5
14423 echo "$as_me: error: cannot compute sizeof (int *), 77
14424 See \`config.log' for more details." >&2;}
14425    { (exit 1); exit 1; }; } ;;
14426 esac
14427 else
14428   if test "$cross_compiling" = yes; then
14429   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14430 See \`config.log' for more details." >&5
14431 echo "$as_me: error: cannot run test program while cross compiling
14432 See \`config.log' for more details." >&2;}
14433    { (exit 1); exit 1; }; }
14434 else
14435   cat >conftest.$ac_ext <<_ACEOF
14436 #line $LINENO "configure"
14437 /* confdefs.h.  */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h.  */
14442 $ac_includes_default
14443 long longval () { return (long) (sizeof (int *)); }
14444 unsigned long ulongval () { return (long) (sizeof (int *)); }
14445 #include <stdio.h>
14446 #include <stdlib.h>
14447 int
14448 main ()
14449 {
14450
14451   FILE *f = fopen ("conftest.val", "w");
14452   if (! f)
14453     exit (1);
14454   if (((long) (sizeof (int *))) < 0)
14455     {
14456       long i = longval ();
14457       if (i != ((long) (sizeof (int *))))
14458         exit (1);
14459       fprintf (f, "%ld\n", i);
14460     }
14461   else
14462     {
14463       unsigned long i = ulongval ();
14464       if (i != ((long) (sizeof (int *))))
14465         exit (1);
14466       fprintf (f, "%lu\n", i);
14467     }
14468   exit (ferror (f) || fclose (f) != 0);
14469
14470   ;
14471   return 0;
14472 }
14473 _ACEOF
14474 rm -f conftest$ac_exeext
14475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14476   (eval $ac_link) 2>&5
14477   ac_status=$?
14478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14481   (eval $ac_try) 2>&5
14482   ac_status=$?
14483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484   (exit $ac_status); }; }; then
14485   ac_cv_sizeof_int_p=`cat conftest.val`
14486 else
14487   echo "$as_me: program exited with status $ac_status" >&5
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14490
14491 ( exit $ac_status )
14492 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14493 See \`config.log' for more details." >&5
14494 echo "$as_me: error: cannot compute sizeof (int *), 77
14495 See \`config.log' for more details." >&2;}
14496    { (exit 1); exit 1; }; }
14497 fi
14498 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14499 fi
14500 fi
14501 rm -f conftest.val
14502 else
14503   ac_cv_sizeof_int_p=0
14504 fi
14505 fi
14506 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14507 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14508 cat >>confdefs.h <<_ACEOF
14509 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14510 _ACEOF
14511
14512
14513
14514 # Check for sys/types.h types
14515 echo "$as_me:$LINENO: checking for u_int type" >&5
14516 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14517 if test "${ac_cv_have_u_int+set}" = set; then
14518   echo $ECHO_N "(cached) $ECHO_C" >&6
14519 else
14520
14521     cat >conftest.$ac_ext <<_ACEOF
14522 #line $LINENO "configure"
14523 /* confdefs.h.  */
14524 _ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h.  */
14528  #include <sys/types.h>
14529 int
14530 main ()
14531 {
14532  u_int a; a = 1;
14533   ;
14534   return 0;
14535 }
14536 _ACEOF
14537 rm -f conftest.$ac_objext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14539   (eval $ac_compile) 2>&5
14540   ac_status=$?
14541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542   (exit $ac_status); } &&
14543          { ac_try='test -s conftest.$ac_objext'
14544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545   (eval $ac_try) 2>&5
14546   ac_status=$?
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); }; }; then
14549    ac_cv_have_u_int="yes"
14550 else
14551   echo "$as_me: failed program was:" >&5
14552 sed 's/^/| /' conftest.$ac_ext >&5
14553
14554  ac_cv_have_u_int="no"
14555
14556 fi
14557 rm -f conftest.$ac_objext conftest.$ac_ext
14558
14559 fi
14560 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14561 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14562 if test "x$ac_cv_have_u_int" = "xyes" ; then
14563    cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_U_INT 1
14565 _ACEOF
14566
14567    have_u_int=1
14568 fi
14569
14570 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14571 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14572 if test "${ac_cv_have_intmax_t+set}" = set; then
14573   echo $ECHO_N "(cached) $ECHO_C" >&6
14574 else
14575
14576    cat >conftest.$ac_ext <<_ACEOF
14577 #line $LINENO "configure"
14578 /* confdefs.h.  */
14579 _ACEOF
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h.  */
14583  #include <sys/types.h>
14584 int
14585 main ()
14586 {
14587  intmax_t a; a = 1;
14588   ;
14589   return 0;
14590 }
14591 _ACEOF
14592 rm -f conftest.$ac_objext
14593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14594   (eval $ac_compile) 2>&5
14595   ac_status=$?
14596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597   (exit $ac_status); } &&
14598          { ac_try='test -s conftest.$ac_objext'
14599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600   (eval $ac_try) 2>&5
14601   ac_status=$?
14602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603   (exit $ac_status); }; }; then
14604    ac_cv_have_intmax_t="yes"
14605 else
14606   echo "$as_me: failed program was:" >&5
14607 sed 's/^/| /' conftest.$ac_ext >&5
14608
14609
14610          cat >conftest.$ac_ext <<_ACEOF
14611 #line $LINENO "configure"
14612 /* confdefs.h.  */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h.  */
14617  #include <stdint.h>
14618 int
14619 main ()
14620 {
14621  intmax_t a; a = 1;
14622   ;
14623   return 0;
14624 }
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14628   (eval $ac_compile) 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); } &&
14632          { ac_try='test -s conftest.$ac_objext'
14633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634   (eval $ac_try) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; }; then
14638    ac_cv_have_intmax_t="yes"
14639 else
14640   echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14642
14643  ac_cv_have_intmax_t="no"
14644
14645 fi
14646 rm -f conftest.$ac_objext conftest.$ac_ext
14647
14648
14649 fi
14650 rm -f conftest.$ac_objext conftest.$ac_ext
14651
14652
14653 fi
14654 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14655 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14656 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14657    cat >>confdefs.h <<\_ACEOF
14658 #define HAVE_INTMAX_T 1
14659 _ACEOF
14660
14661    have_intmax_t=1
14662 fi
14663
14664
14665 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14666 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14667 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14668   echo $ECHO_N "(cached) $ECHO_C" >&6
14669 else
14670
14671    cat >conftest.$ac_ext <<_ACEOF
14672 #line $LINENO "configure"
14673 /* confdefs.h.  */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h.  */
14678  #include <sys/types.h>
14679 int
14680 main ()
14681 {
14682  u_intmax_t a; a = 1;
14683   ;
14684   return 0;
14685 }
14686 _ACEOF
14687 rm -f conftest.$ac_objext
14688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14689   (eval $ac_compile) 2>&5
14690   ac_status=$?
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); } &&
14693          { ac_try='test -s conftest.$ac_objext'
14694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695   (eval $ac_try) 2>&5
14696   ac_status=$?
14697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698   (exit $ac_status); }; }; then
14699    ac_cv_have_u_intmax_t="yes"
14700 else
14701   echo "$as_me: failed program was:" >&5
14702 sed 's/^/| /' conftest.$ac_ext >&5
14703
14704
14705          cat >conftest.$ac_ext <<_ACEOF
14706 #line $LINENO "configure"
14707 /* confdefs.h.  */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h.  */
14712  #include <stdint.h>
14713 int
14714 main ()
14715 {
14716  u_intmax_t a; a = 1;
14717   ;
14718   return 0;
14719 }
14720 _ACEOF
14721 rm -f conftest.$ac_objext
14722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723   (eval $ac_compile) 2>&5
14724   ac_status=$?
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); } &&
14727          { ac_try='test -s conftest.$ac_objext'
14728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729   (eval $ac_try) 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); }; }; then
14733    ac_cv_have_u_intmax_t="yes"
14734 else
14735   echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14737
14738  ac_cv_have_u_intmax_t="no"
14739
14740 fi
14741 rm -f conftest.$ac_objext conftest.$ac_ext
14742
14743
14744 fi
14745 rm -f conftest.$ac_objext conftest.$ac_ext
14746
14747 fi
14748 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14749 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14750 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14751    cat >>confdefs.h <<\_ACEOF
14752 #define HAVE_U_INTMAX_T 1
14753 _ACEOF
14754
14755    have_u_intmax_t=1
14756 fi
14757
14758
14759 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14760 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14761 if test "${ac_cv_have_intxx_t+set}" = set; then
14762   echo $ECHO_N "(cached) $ECHO_C" >&6
14763 else
14764
14765    cat >conftest.$ac_ext <<_ACEOF
14766 #line $LINENO "configure"
14767 /* confdefs.h.  */
14768 _ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h.  */
14772  #include <sys/types.h>
14773 int
14774 main ()
14775 {
14776  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14777   ;
14778   return 0;
14779 }
14780 _ACEOF
14781 rm -f conftest.$ac_objext
14782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14783   (eval $ac_compile) 2>&5
14784   ac_status=$?
14785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786   (exit $ac_status); } &&
14787          { ac_try='test -s conftest.$ac_objext'
14788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14789   (eval $ac_try) 2>&5
14790   ac_status=$?
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); }; }; then
14793    ac_cv_have_intxx_t="yes"
14794 else
14795   echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14797
14798  ac_cv_have_intxx_t="no"
14799
14800 fi
14801 rm -f conftest.$ac_objext conftest.$ac_ext
14802
14803 fi
14804 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14805 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14806 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14807    cat >>confdefs.h <<\_ACEOF
14808 #define HAVE_INTXX_T 1
14809 _ACEOF
14810
14811    have_intxx_t=1
14812 fi
14813
14814 echo "$as_me:$LINENO: checking for int64_t type" >&5
14815 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14816 if test "${ac_cv_have_int64_t+set}" = set; then
14817   echo $ECHO_N "(cached) $ECHO_C" >&6
14818 else
14819
14820    cat >conftest.$ac_ext <<_ACEOF
14821 #line $LINENO "configure"
14822 /* confdefs.h.  */
14823 _ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h.  */
14827  #include <sys/types.h>
14828 int
14829 main ()
14830 {
14831  int64_t a; a = 1;
14832   ;
14833   return 0;
14834 }
14835 _ACEOF
14836 rm -f conftest.$ac_objext
14837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14838   (eval $ac_compile) 2>&5
14839   ac_status=$?
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); } &&
14842          { ac_try='test -s conftest.$ac_objext'
14843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14844   (eval $ac_try) 2>&5
14845   ac_status=$?
14846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847   (exit $ac_status); }; }; then
14848    ac_cv_have_int64_t="yes"
14849 else
14850   echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14852
14853  ac_cv_have_int64_t="no"
14854
14855 fi
14856 rm -f conftest.$ac_objext conftest.$ac_ext
14857
14858 fi
14859 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14860 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14861 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14862    cat >>confdefs.h <<\_ACEOF
14863 #define HAVE_INT64_T 1
14864 _ACEOF
14865
14866    have_int64_t=1
14867 fi
14868
14869 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14870 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14871 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14872   echo $ECHO_N "(cached) $ECHO_C" >&6
14873 else
14874
14875    cat >conftest.$ac_ext <<_ACEOF
14876 #line $LINENO "configure"
14877 /* confdefs.h.  */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h.  */
14882  #include <sys/types.h>
14883 int
14884 main ()
14885 {
14886  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14887   ;
14888   return 0;
14889 }
14890 _ACEOF
14891 rm -f conftest.$ac_objext
14892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14893   (eval $ac_compile) 2>&5
14894   ac_status=$?
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); } &&
14897          { ac_try='test -s conftest.$ac_objext'
14898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899   (eval $ac_try) 2>&5
14900   ac_status=$?
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); }; }; then
14903    ac_cv_have_u_intxx_t="yes"
14904 else
14905   echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14907
14908  ac_cv_have_u_intxx_t="no"
14909
14910 fi
14911 rm -f conftest.$ac_objext conftest.$ac_ext
14912
14913 fi
14914 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14915 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14916 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14917    cat >>confdefs.h <<\_ACEOF
14918 #define HAVE_U_INTXX_T 1
14919 _ACEOF
14920
14921    have_u_intxx_t=1
14922 fi
14923
14924 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14925 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14926 if test "${ac_cv_have_u_int64_t+set}" = set; then
14927   echo $ECHO_N "(cached) $ECHO_C" >&6
14928 else
14929
14930    cat >conftest.$ac_ext <<_ACEOF
14931 #line $LINENO "configure"
14932 /* confdefs.h.  */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h.  */
14937  #include <sys/types.h>
14938 int
14939 main ()
14940 {
14941  u_int64_t a; a = 1;
14942   ;
14943   return 0;
14944 }
14945 _ACEOF
14946 rm -f conftest.$ac_objext
14947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14948   (eval $ac_compile) 2>&5
14949   ac_status=$?
14950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951   (exit $ac_status); } &&
14952          { ac_try='test -s conftest.$ac_objext'
14953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14954   (eval $ac_try) 2>&5
14955   ac_status=$?
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); }; }; then
14958    ac_cv_have_u_int64_t="yes"
14959 else
14960   echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14962
14963  ac_cv_have_u_int64_t="no"
14964
14965 fi
14966 rm -f conftest.$ac_objext conftest.$ac_ext
14967
14968 fi
14969 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14970 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14971 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14972    cat >>confdefs.h <<\_ACEOF
14973 #define HAVE_U_INT64_T 1
14974 _ACEOF
14975
14976    have_u_int64_t=1
14977 fi
14978
14979 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14980            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14981 then
14982    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14983 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14984    cat >conftest.$ac_ext <<_ACEOF
14985 #line $LINENO "configure"
14986 /* confdefs.h.  */
14987 _ACEOF
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h.  */
14991  #include <sys/bitypes.h>
14992 int
14993 main ()
14994 {
14995  int8_t a; int16_t b; int32_t c;
14996         u_int8_t e; u_int16_t f; u_int32_t g;
14997         a = b = c = e = f = g = 1;
14998   ;
14999   return 0;
15000 }
15001 _ACEOF
15002 rm -f conftest.$ac_objext
15003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15004   (eval $ac_compile) 2>&5
15005   ac_status=$?
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); } &&
15008          { ac_try='test -s conftest.$ac_objext'
15009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15010   (eval $ac_try) 2>&5
15011   ac_status=$?
15012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013   (exit $ac_status); }; }; then
15014    cat >>confdefs.h <<\_ACEOF
15015 #define HAVE_U_INTXX_T 1
15016 _ACEOF
15017
15018         cat >>confdefs.h <<\_ACEOF
15019 #define HAVE_INTXX_T 1
15020 _ACEOF
15021
15022         cat >>confdefs.h <<\_ACEOF
15023 #define HAVE_SYS_BITYPES_H 1
15024 _ACEOF
15025
15026         echo "$as_me:$LINENO: result: yes" >&5
15027 echo "${ECHO_T}yes" >&6
15028 else
15029   echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15031
15032  echo "$as_me:$LINENO: result: no" >&5
15033 echo "${ECHO_T}no" >&6
15034
15035 fi
15036 rm -f conftest.$ac_objext conftest.$ac_ext
15037 fi
15038
15039 if test -z "$have_u_intxx_t" ; then
15040    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15041 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15042 if test "${ac_cv_have_uintxx_t+set}" = set; then
15043   echo $ECHO_N "(cached) $ECHO_C" >&6
15044 else
15045
15046       cat >conftest.$ac_ext <<_ACEOF
15047 #line $LINENO "configure"
15048 /* confdefs.h.  */
15049 _ACEOF
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h.  */
15053  #include <sys/types.h>
15054 int
15055 main ()
15056 {
15057  uint8_t a; uint16_t b;
15058            uint32_t c; a = b = c = 1;
15059   ;
15060   return 0;
15061 }
15062 _ACEOF
15063 rm -f conftest.$ac_objext
15064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15065   (eval $ac_compile) 2>&5
15066   ac_status=$?
15067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068   (exit $ac_status); } &&
15069          { ac_try='test -s conftest.$ac_objext'
15070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071   (eval $ac_try) 2>&5
15072   ac_status=$?
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); }; }; then
15075    ac_cv_have_uintxx_t="yes"
15076 else
15077   echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15079
15080  ac_cv_have_uintxx_t="no"
15081
15082 fi
15083 rm -f conftest.$ac_objext conftest.$ac_ext
15084
15085 fi
15086 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15087 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15088    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15089       cat >>confdefs.h <<\_ACEOF
15090 #define HAVE_UINTXX_T 1
15091 _ACEOF
15092
15093    fi
15094 fi
15095
15096 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15097           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15098 then
15099    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15100 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15101    cat >conftest.$ac_ext <<_ACEOF
15102 #line $LINENO "configure"
15103 /* confdefs.h.  */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h.  */
15108  #include <sys/bitypes.h>
15109 int
15110 main ()
15111 {
15112  int64_t a; u_int64_t b;
15113        a = b = 1;
15114   ;
15115   return 0;
15116 }
15117 _ACEOF
15118 rm -f conftest.$ac_objext
15119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15120   (eval $ac_compile) 2>&5
15121   ac_status=$?
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); } &&
15124          { ac_try='test -s conftest.$ac_objext'
15125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126   (eval $ac_try) 2>&5
15127   ac_status=$?
15128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129   (exit $ac_status); }; }; then
15130    cat >>confdefs.h <<\_ACEOF
15131 #define HAVE_U_INT64_T 1
15132 _ACEOF
15133
15134        cat >>confdefs.h <<\_ACEOF
15135 #define HAVE_INT64_T 1
15136 _ACEOF
15137
15138        echo "$as_me:$LINENO: result: yes" >&5
15139 echo "${ECHO_T}yes" >&6
15140 else
15141   echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15143
15144  echo "$as_me:$LINENO: result: no" >&5
15145 echo "${ECHO_T}no" >&6
15146
15147 fi
15148 rm -f conftest.$ac_objext conftest.$ac_ext
15149 fi
15150
15151 if (test -z "$have_uintxx_t" && \
15152           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15153 then
15154    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15155 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15156    cat >conftest.$ac_ext <<_ACEOF
15157 #line $LINENO "configure"
15158 /* confdefs.h.  */
15159 _ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h.  */
15163  #include <sys/bitypes.h>
15164 int
15165 main ()
15166 {
15167  uint8_t a; uint16_t b;
15168           uint32_t c; a = b = c = 1;
15169   ;
15170   return 0;
15171 }
15172 _ACEOF
15173 rm -f conftest.$ac_objext
15174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15175   (eval $ac_compile) 2>&5
15176   ac_status=$?
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); } &&
15179          { ac_try='test -s conftest.$ac_objext'
15180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181   (eval $ac_try) 2>&5
15182   ac_status=$?
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); }; }; then
15185    cat >>confdefs.h <<\_ACEOF
15186 #define HAVE_UINTXX_T 1
15187 _ACEOF
15188
15189        echo "$as_me:$LINENO: result: yes" >&5
15190 echo "${ECHO_T}yes" >&6
15191 else
15192   echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15194
15195  echo "$as_me:$LINENO: result: no" >&5
15196 echo "${ECHO_T}no" >&6
15197
15198 fi
15199 rm -f conftest.$ac_objext conftest.$ac_ext
15200
15201 fi
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219 for ac_func in \
15220         fork \
15221         getcwd \
15222         gethostname \
15223         getpid \
15224         gettimeofday \
15225         setpgid \
15226         setpgrp \
15227         setsid \
15228         signal \
15229         strerror \
15230         strncmp \
15231         strncpy \
15232         vfprintf \
15233
15234 do
15235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15236 echo "$as_me:$LINENO: checking for $ac_func" >&5
15237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15238 if eval "test \"\${$as_ac_var+set}\" = set"; then
15239   echo $ECHO_N "(cached) $ECHO_C" >&6
15240 else
15241   cat >conftest.$ac_ext <<_ACEOF
15242 #line $LINENO "configure"
15243 /* confdefs.h.  */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h.  */
15248 /* System header to define __stub macros and hopefully few prototypes,
15249     which can conflict with char $ac_func (); below.
15250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15251     <limits.h> exists even on freestanding compilers.  */
15252 #ifdef __STDC__
15253 # include <limits.h>
15254 #else
15255 # include <assert.h>
15256 #endif
15257 /* Override any gcc2 internal prototype to avoid an error.  */
15258 #ifdef __cplusplus
15259 extern "C"
15260 {
15261 #endif
15262 /* We use char because int might match the return type of a gcc2
15263    builtin and then its argument prototype would still apply.  */
15264 char $ac_func ();
15265 /* The GNU C library defines this for functions which it implements
15266     to always fail with ENOSYS.  Some functions are actually named
15267     something starting with __ and the normal name is an alias.  */
15268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15269 choke me
15270 #else
15271 char (*f) () = $ac_func;
15272 #endif
15273 #ifdef __cplusplus
15274 }
15275 #endif
15276
15277 int
15278 main ()
15279 {
15280 return f != $ac_func;
15281   ;
15282   return 0;
15283 }
15284 _ACEOF
15285 rm -f conftest.$ac_objext conftest$ac_exeext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15287   (eval $ac_link) 2>&5
15288   ac_status=$?
15289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290   (exit $ac_status); } &&
15291          { ac_try='test -s conftest$ac_exeext'
15292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293   (eval $ac_try) 2>&5
15294   ac_status=$?
15295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296   (exit $ac_status); }; }; then
15297   eval "$as_ac_var=yes"
15298 else
15299   echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15301
15302 eval "$as_ac_var=no"
15303 fi
15304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15305 fi
15306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15308 if test `eval echo '${'$as_ac_var'}'` = yes; then
15309   cat >>confdefs.h <<_ACEOF
15310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15311 _ACEOF
15312
15313 else
15314   echo 'configure: cannot find needed function.'; exit 1
15315
15316 fi
15317 done
15318
15319
15320
15321 for ac_func in fchdir
15322 do
15323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15324 echo "$as_me:$LINENO: checking for $ac_func" >&5
15325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15326 if eval "test \"\${$as_ac_var+set}\" = set"; then
15327   echo $ECHO_N "(cached) $ECHO_C" >&6
15328 else
15329   cat >conftest.$ac_ext <<_ACEOF
15330 #line $LINENO "configure"
15331 /* confdefs.h.  */
15332 _ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h.  */
15336 /* System header to define __stub macros and hopefully few prototypes,
15337     which can conflict with char $ac_func (); below.
15338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15339     <limits.h> exists even on freestanding compilers.  */
15340 #ifdef __STDC__
15341 # include <limits.h>
15342 #else
15343 # include <assert.h>
15344 #endif
15345 /* Override any gcc2 internal prototype to avoid an error.  */
15346 #ifdef __cplusplus
15347 extern "C"
15348 {
15349 #endif
15350 /* We use char because int might match the return type of a gcc2
15351    builtin and then its argument prototype would still apply.  */
15352 char $ac_func ();
15353 /* The GNU C library defines this for functions which it implements
15354     to always fail with ENOSYS.  Some functions are actually named
15355     something starting with __ and the normal name is an alias.  */
15356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15357 choke me
15358 #else
15359 char (*f) () = $ac_func;
15360 #endif
15361 #ifdef __cplusplus
15362 }
15363 #endif
15364
15365 int
15366 main ()
15367 {
15368 return f != $ac_func;
15369   ;
15370   return 0;
15371 }
15372 _ACEOF
15373 rm -f conftest.$ac_objext conftest$ac_exeext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375   (eval $ac_link) 2>&5
15376   ac_status=$?
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); } &&
15379          { ac_try='test -s conftest$ac_exeext'
15380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381   (eval $ac_try) 2>&5
15382   ac_status=$?
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); }; }; then
15385   eval "$as_ac_var=yes"
15386 else
15387   echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15389
15390 eval "$as_ac_var=no"
15391 fi
15392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15393 fi
15394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15396 if test `eval echo '${'$as_ac_var'}'` = yes; then
15397   cat >>confdefs.h <<_ACEOF
15398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15399 _ACEOF
15400  cat >>confdefs.h <<\_ACEOF
15401 #define HAVE_FCHDIR 1
15402 _ACEOF
15403
15404 fi
15405 done
15406
15407
15408 for ac_func in strtoll
15409 do
15410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15411 echo "$as_me:$LINENO: checking for $ac_func" >&5
15412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15413 if eval "test \"\${$as_ac_var+set}\" = set"; then
15414   echo $ECHO_N "(cached) $ECHO_C" >&6
15415 else
15416   cat >conftest.$ac_ext <<_ACEOF
15417 #line $LINENO "configure"
15418 /* confdefs.h.  */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h.  */
15423 /* System header to define __stub macros and hopefully few prototypes,
15424     which can conflict with char $ac_func (); below.
15425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15426     <limits.h> exists even on freestanding compilers.  */
15427 #ifdef __STDC__
15428 # include <limits.h>
15429 #else
15430 # include <assert.h>
15431 #endif
15432 /* Override any gcc2 internal prototype to avoid an error.  */
15433 #ifdef __cplusplus
15434 extern "C"
15435 {
15436 #endif
15437 /* We use char because int might match the return type of a gcc2
15438    builtin and then its argument prototype would still apply.  */
15439 char $ac_func ();
15440 /* The GNU C library defines this for functions which it implements
15441     to always fail with ENOSYS.  Some functions are actually named
15442     something starting with __ and the normal name is an alias.  */
15443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15444 choke me
15445 #else
15446 char (*f) () = $ac_func;
15447 #endif
15448 #ifdef __cplusplus
15449 }
15450 #endif
15451
15452 int
15453 main ()
15454 {
15455 return f != $ac_func;
15456   ;
15457   return 0;
15458 }
15459 _ACEOF
15460 rm -f conftest.$ac_objext conftest$ac_exeext
15461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15462   (eval $ac_link) 2>&5
15463   ac_status=$?
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); } &&
15466          { ac_try='test -s conftest$ac_exeext'
15467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468   (eval $ac_try) 2>&5
15469   ac_status=$?
15470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471   (exit $ac_status); }; }; then
15472   eval "$as_ac_var=yes"
15473 else
15474   echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15476
15477 eval "$as_ac_var=no"
15478 fi
15479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15480 fi
15481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15483 if test `eval echo '${'$as_ac_var'}'` = yes; then
15484   cat >>confdefs.h <<_ACEOF
15485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15486 _ACEOF
15487  cat >>confdefs.h <<\_ACEOF
15488 #define HAVE_STRTOLL 1
15489 _ACEOF
15490
15491 fi
15492 done
15493
15494
15495
15496 for ac_func in chflags
15497 do
15498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15499 echo "$as_me:$LINENO: checking for $ac_func" >&5
15500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15501 if eval "test \"\${$as_ac_var+set}\" = set"; then
15502   echo $ECHO_N "(cached) $ECHO_C" >&6
15503 else
15504   cat >conftest.$ac_ext <<_ACEOF
15505 #line $LINENO "configure"
15506 /* confdefs.h.  */
15507 _ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h.  */
15511 /* System header to define __stub macros and hopefully few prototypes,
15512     which can conflict with char $ac_func (); below.
15513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15514     <limits.h> exists even on freestanding compilers.  */
15515 #ifdef __STDC__
15516 # include <limits.h>
15517 #else
15518 # include <assert.h>
15519 #endif
15520 /* Override any gcc2 internal prototype to avoid an error.  */
15521 #ifdef __cplusplus
15522 extern "C"
15523 {
15524 #endif
15525 /* We use char because int might match the return type of a gcc2
15526    builtin and then its argument prototype would still apply.  */
15527 char $ac_func ();
15528 /* The GNU C library defines this for functions which it implements
15529     to always fail with ENOSYS.  Some functions are actually named
15530     something starting with __ and the normal name is an alias.  */
15531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15532 choke me
15533 #else
15534 char (*f) () = $ac_func;
15535 #endif
15536 #ifdef __cplusplus
15537 }
15538 #endif
15539
15540 int
15541 main ()
15542 {
15543 return f != $ac_func;
15544   ;
15545   return 0;
15546 }
15547 _ACEOF
15548 rm -f conftest.$ac_objext conftest$ac_exeext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15550   (eval $ac_link) 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); } &&
15554          { ac_try='test -s conftest$ac_exeext'
15555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556   (eval $ac_try) 2>&5
15557   ac_status=$?
15558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559   (exit $ac_status); }; }; then
15560   eval "$as_ac_var=yes"
15561 else
15562   echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15564
15565 eval "$as_ac_var=no"
15566 fi
15567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15568 fi
15569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15571 if test `eval echo '${'$as_ac_var'}'` = yes; then
15572   cat >>confdefs.h <<_ACEOF
15573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15574 _ACEOF
15575
15576 fi
15577 done
15578
15579
15580
15581
15582
15583
15584 for ac_func in snprintf vsnprintf gethostid getdomainname
15585 do
15586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15587 echo "$as_me:$LINENO: checking for $ac_func" >&5
15588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15589 if eval "test \"\${$as_ac_var+set}\" = set"; then
15590   echo $ECHO_N "(cached) $ECHO_C" >&6
15591 else
15592   cat >conftest.$ac_ext <<_ACEOF
15593 #line $LINENO "configure"
15594 /* confdefs.h.  */
15595 _ACEOF
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h.  */
15599 /* System header to define __stub macros and hopefully few prototypes,
15600     which can conflict with char $ac_func (); below.
15601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15602     <limits.h> exists even on freestanding compilers.  */
15603 #ifdef __STDC__
15604 # include <limits.h>
15605 #else
15606 # include <assert.h>
15607 #endif
15608 /* Override any gcc2 internal prototype to avoid an error.  */
15609 #ifdef __cplusplus
15610 extern "C"
15611 {
15612 #endif
15613 /* We use char because int might match the return type of a gcc2
15614    builtin and then its argument prototype would still apply.  */
15615 char $ac_func ();
15616 /* The GNU C library defines this for functions which it implements
15617     to always fail with ENOSYS.  Some functions are actually named
15618     something starting with __ and the normal name is an alias.  */
15619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15620 choke me
15621 #else
15622 char (*f) () = $ac_func;
15623 #endif
15624 #ifdef __cplusplus
15625 }
15626 #endif
15627
15628 int
15629 main ()
15630 {
15631 return f != $ac_func;
15632   ;
15633   return 0;
15634 }
15635 _ACEOF
15636 rm -f conftest.$ac_objext conftest$ac_exeext
15637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15638   (eval $ac_link) 2>&5
15639   ac_status=$?
15640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641   (exit $ac_status); } &&
15642          { ac_try='test -s conftest$ac_exeext'
15643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644   (eval $ac_try) 2>&5
15645   ac_status=$?
15646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647   (exit $ac_status); }; }; then
15648   eval "$as_ac_var=yes"
15649 else
15650   echo "$as_me: failed program was:" >&5
15651 sed 's/^/| /' conftest.$ac_ext >&5
15652
15653 eval "$as_ac_var=no"
15654 fi
15655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15656 fi
15657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15659 if test `eval echo '${'$as_ac_var'}'` = yes; then
15660   cat >>confdefs.h <<_ACEOF
15661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15662 _ACEOF
15663
15664 fi
15665 done
15666
15667
15668
15669
15670
15671
15672 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15673 do
15674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15675 echo "$as_me:$LINENO: checking for $ac_func" >&5
15676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15677 if eval "test \"\${$as_ac_var+set}\" = set"; then
15678   echo $ECHO_N "(cached) $ECHO_C" >&6
15679 else
15680   cat >conftest.$ac_ext <<_ACEOF
15681 #line $LINENO "configure"
15682 /* confdefs.h.  */
15683 _ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h.  */
15687 /* System header to define __stub macros and hopefully few prototypes,
15688     which can conflict with char $ac_func (); below.
15689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15690     <limits.h> exists even on freestanding compilers.  */
15691 #ifdef __STDC__
15692 # include <limits.h>
15693 #else
15694 # include <assert.h>
15695 #endif
15696 /* Override any gcc2 internal prototype to avoid an error.  */
15697 #ifdef __cplusplus
15698 extern "C"
15699 {
15700 #endif
15701 /* We use char because int might match the return type of a gcc2
15702    builtin and then its argument prototype would still apply.  */
15703 char $ac_func ();
15704 /* The GNU C library defines this for functions which it implements
15705     to always fail with ENOSYS.  Some functions are actually named
15706     something starting with __ and the normal name is an alias.  */
15707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15708 choke me
15709 #else
15710 char (*f) () = $ac_func;
15711 #endif
15712 #ifdef __cplusplus
15713 }
15714 #endif
15715
15716 int
15717 main ()
15718 {
15719 return f != $ac_func;
15720   ;
15721   return 0;
15722 }
15723 _ACEOF
15724 rm -f conftest.$ac_objext conftest$ac_exeext
15725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15726   (eval $ac_link) 2>&5
15727   ac_status=$?
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); } &&
15730          { ac_try='test -s conftest$ac_exeext'
15731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732   (eval $ac_try) 2>&5
15733   ac_status=$?
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); }; }; then
15736   eval "$as_ac_var=yes"
15737 else
15738   echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15740
15741 eval "$as_ac_var=no"
15742 fi
15743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15744 fi
15745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15747 if test `eval echo '${'$as_ac_var'}'` = yes; then
15748   cat >>confdefs.h <<_ACEOF
15749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15750 _ACEOF
15751
15752 fi
15753 done
15754
15755
15756 # If resolver functions are not in libc check for -lnsl or -lresolv.
15757 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15758 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15759 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15760   echo $ECHO_N "(cached) $ECHO_C" >&6
15761 else
15762   cat >conftest.$ac_ext <<_ACEOF
15763 #line $LINENO "configure"
15764 /* confdefs.h.  */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h.  */
15769 /* System header to define __stub macros and hopefully few prototypes,
15770     which can conflict with char gethostbyname_r (); below.
15771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15772     <limits.h> exists even on freestanding compilers.  */
15773 #ifdef __STDC__
15774 # include <limits.h>
15775 #else
15776 # include <assert.h>
15777 #endif
15778 /* Override any gcc2 internal prototype to avoid an error.  */
15779 #ifdef __cplusplus
15780 extern "C"
15781 {
15782 #endif
15783 /* We use char because int might match the return type of a gcc2
15784    builtin and then its argument prototype would still apply.  */
15785 char gethostbyname_r ();
15786 /* The GNU C library defines this for functions which it implements
15787     to always fail with ENOSYS.  Some functions are actually named
15788     something starting with __ and the normal name is an alias.  */
15789 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15790 choke me
15791 #else
15792 char (*f) () = gethostbyname_r;
15793 #endif
15794 #ifdef __cplusplus
15795 }
15796 #endif
15797
15798 int
15799 main ()
15800 {
15801 return f != gethostbyname_r;
15802   ;
15803   return 0;
15804 }
15805 _ACEOF
15806 rm -f conftest.$ac_objext conftest$ac_exeext
15807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15808   (eval $ac_link) 2>&5
15809   ac_status=$?
15810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811   (exit $ac_status); } &&
15812          { ac_try='test -s conftest$ac_exeext'
15813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15814   (eval $ac_try) 2>&5
15815   ac_status=$?
15816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817   (exit $ac_status); }; }; then
15818   ac_cv_func_gethostbyname_r=yes
15819 else
15820   echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15822
15823 ac_cv_func_gethostbyname_r=no
15824 fi
15825 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15826 fi
15827 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15828 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15829 if test $ac_cv_func_gethostbyname_r = yes; then
15830   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15831 echo "${ECHO_T}using libc's resolver" >&6
15832 else
15833
15834 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15835 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15836 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15837   echo $ECHO_N "(cached) $ECHO_C" >&6
15838 else
15839   ac_check_lib_save_LIBS=$LIBS
15840 LIBS="-lnsl  $LIBS"
15841 cat >conftest.$ac_ext <<_ACEOF
15842 #line $LINENO "configure"
15843 /* confdefs.h.  */
15844 _ACEOF
15845 cat confdefs.h >>conftest.$ac_ext
15846 cat >>conftest.$ac_ext <<_ACEOF
15847 /* end confdefs.h.  */
15848
15849 /* Override any gcc2 internal prototype to avoid an error.  */
15850 #ifdef __cplusplus
15851 extern "C"
15852 #endif
15853 /* We use char because int might match the return type of a gcc2
15854    builtin and then its argument prototype would still apply.  */
15855 char gethostbyname_r ();
15856 int
15857 main ()
15858 {
15859 gethostbyname_r ();
15860   ;
15861   return 0;
15862 }
15863 _ACEOF
15864 rm -f conftest.$ac_objext conftest$ac_exeext
15865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15866   (eval $ac_link) 2>&5
15867   ac_status=$?
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } &&
15870          { ac_try='test -s conftest$ac_exeext'
15871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872   (eval $ac_try) 2>&5
15873   ac_status=$?
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); }; }; then
15876   ac_cv_lib_nsl_gethostbyname_r=yes
15877 else
15878   echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15880
15881 ac_cv_lib_nsl_gethostbyname_r=no
15882 fi
15883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15884 LIBS=$ac_check_lib_save_LIBS
15885 fi
15886 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15887 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15888 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15889   cat >>confdefs.h <<_ACEOF
15890 #define HAVE_LIBNSL 1
15891 _ACEOF
15892
15893   LIBS="-lnsl $LIBS"
15894
15895 fi
15896
15897
15898 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15899 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15900 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15901   echo $ECHO_N "(cached) $ECHO_C" >&6
15902 else
15903   ac_check_lib_save_LIBS=$LIBS
15904 LIBS="-lresolv  $LIBS"
15905 cat >conftest.$ac_ext <<_ACEOF
15906 #line $LINENO "configure"
15907 /* confdefs.h.  */
15908 _ACEOF
15909 cat confdefs.h >>conftest.$ac_ext
15910 cat >>conftest.$ac_ext <<_ACEOF
15911 /* end confdefs.h.  */
15912
15913 /* Override any gcc2 internal prototype to avoid an error.  */
15914 #ifdef __cplusplus
15915 extern "C"
15916 #endif
15917 /* We use char because int might match the return type of a gcc2
15918    builtin and then its argument prototype would still apply.  */
15919 char gethostbyname_r ();
15920 int
15921 main ()
15922 {
15923 gethostbyname_r ();
15924   ;
15925   return 0;
15926 }
15927 _ACEOF
15928 rm -f conftest.$ac_objext conftest$ac_exeext
15929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15930   (eval $ac_link) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); } &&
15934          { ac_try='test -s conftest$ac_exeext'
15935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936   (eval $ac_try) 2>&5
15937   ac_status=$?
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); }; }; then
15940   ac_cv_lib_resolv_gethostbyname_r=yes
15941 else
15942   echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945 ac_cv_lib_resolv_gethostbyname_r=no
15946 fi
15947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15948 LIBS=$ac_check_lib_save_LIBS
15949 fi
15950 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15951 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15952 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15953   cat >>confdefs.h <<_ACEOF
15954 #define HAVE_LIBRESOLV 1
15955 _ACEOF
15956
15957   LIBS="-lresolv $LIBS"
15958
15959 fi
15960
15961 fi
15962
15963
15964
15965 # Find where sockets are (especially for Solaris)
15966 echo "$as_me:$LINENO: checking for socket" >&5
15967 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15968 if test "${ac_cv_func_socket+set}" = set; then
15969   echo $ECHO_N "(cached) $ECHO_C" >&6
15970 else
15971   cat >conftest.$ac_ext <<_ACEOF
15972 #line $LINENO "configure"
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978 /* System header to define __stub macros and hopefully few prototypes,
15979     which can conflict with char socket (); below.
15980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15981     <limits.h> exists even on freestanding compilers.  */
15982 #ifdef __STDC__
15983 # include <limits.h>
15984 #else
15985 # include <assert.h>
15986 #endif
15987 /* Override any gcc2 internal prototype to avoid an error.  */
15988 #ifdef __cplusplus
15989 extern "C"
15990 {
15991 #endif
15992 /* We use char because int might match the return type of a gcc2
15993    builtin and then its argument prototype would still apply.  */
15994 char socket ();
15995 /* The GNU C library defines this for functions which it implements
15996     to always fail with ENOSYS.  Some functions are actually named
15997     something starting with __ and the normal name is an alias.  */
15998 #if defined (__stub_socket) || defined (__stub___socket)
15999 choke me
16000 #else
16001 char (*f) () = socket;
16002 #endif
16003 #ifdef __cplusplus
16004 }
16005 #endif
16006
16007 int
16008 main ()
16009 {
16010 return f != socket;
16011   ;
16012   return 0;
16013 }
16014 _ACEOF
16015 rm -f conftest.$ac_objext conftest$ac_exeext
16016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16017   (eval $ac_link) 2>&5
16018   ac_status=$?
16019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020   (exit $ac_status); } &&
16021          { ac_try='test -s conftest$ac_exeext'
16022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16023   (eval $ac_try) 2>&5
16024   ac_status=$?
16025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026   (exit $ac_status); }; }; then
16027   ac_cv_func_socket=yes
16028 else
16029   echo "$as_me: failed program was:" >&5
16030 sed 's/^/| /' conftest.$ac_ext >&5
16031
16032 ac_cv_func_socket=no
16033 fi
16034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16035 fi
16036 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16037 echo "${ECHO_T}$ac_cv_func_socket" >&6
16038 if test $ac_cv_func_socket = yes; then
16039   echo "$as_me:$LINENO: result: using libc's socket" >&5
16040 echo "${ECHO_T}using libc's socket" >&6
16041 else
16042
16043 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16044 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16045 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16046   echo $ECHO_N "(cached) $ECHO_C" >&6
16047 else
16048   ac_check_lib_save_LIBS=$LIBS
16049 LIBS="-lxnet  $LIBS"
16050 cat >conftest.$ac_ext <<_ACEOF
16051 #line $LINENO "configure"
16052 /* confdefs.h.  */
16053 _ACEOF
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h.  */
16057
16058 /* Override any gcc2 internal prototype to avoid an error.  */
16059 #ifdef __cplusplus
16060 extern "C"
16061 #endif
16062 /* We use char because int might match the return type of a gcc2
16063    builtin and then its argument prototype would still apply.  */
16064 char socket ();
16065 int
16066 main ()
16067 {
16068 socket ();
16069   ;
16070   return 0;
16071 }
16072 _ACEOF
16073 rm -f conftest.$ac_objext conftest$ac_exeext
16074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16075   (eval $ac_link) 2>&5
16076   ac_status=$?
16077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078   (exit $ac_status); } &&
16079          { ac_try='test -s conftest$ac_exeext'
16080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081   (eval $ac_try) 2>&5
16082   ac_status=$?
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   (exit $ac_status); }; }; then
16085   ac_cv_lib_xnet_socket=yes
16086 else
16087   echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16089
16090 ac_cv_lib_xnet_socket=no
16091 fi
16092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16093 LIBS=$ac_check_lib_save_LIBS
16094 fi
16095 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16096 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16097 if test $ac_cv_lib_xnet_socket = yes; then
16098   cat >>confdefs.h <<_ACEOF
16099 #define HAVE_LIBXNET 1
16100 _ACEOF
16101
16102   LIBS="-lxnet $LIBS"
16103
16104 fi
16105
16106
16107 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16108 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16109 if test "${ac_cv_lib_socket_socket+set}" = set; then
16110   echo $ECHO_N "(cached) $ECHO_C" >&6
16111 else
16112   ac_check_lib_save_LIBS=$LIBS
16113 LIBS="-lsocket  $LIBS"
16114 cat >conftest.$ac_ext <<_ACEOF
16115 #line $LINENO "configure"
16116 /* confdefs.h.  */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h.  */
16121
16122 /* Override any gcc2 internal prototype to avoid an error.  */
16123 #ifdef __cplusplus
16124 extern "C"
16125 #endif
16126 /* We use char because int might match the return type of a gcc2
16127    builtin and then its argument prototype would still apply.  */
16128 char socket ();
16129 int
16130 main ()
16131 {
16132 socket ();
16133   ;
16134   return 0;
16135 }
16136 _ACEOF
16137 rm -f conftest.$ac_objext conftest$ac_exeext
16138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16139   (eval $ac_link) 2>&5
16140   ac_status=$?
16141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142   (exit $ac_status); } &&
16143          { ac_try='test -s conftest$ac_exeext'
16144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16145   (eval $ac_try) 2>&5
16146   ac_status=$?
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); }; }; then
16149   ac_cv_lib_socket_socket=yes
16150 else
16151   echo "$as_me: failed program was:" >&5
16152 sed 's/^/| /' conftest.$ac_ext >&5
16153
16154 ac_cv_lib_socket_socket=no
16155 fi
16156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16157 LIBS=$ac_check_lib_save_LIBS
16158 fi
16159 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16160 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16161 if test $ac_cv_lib_socket_socket = yes; then
16162   cat >>confdefs.h <<_ACEOF
16163 #define HAVE_LIBSOCKET 1
16164 _ACEOF
16165
16166   LIBS="-lsocket $LIBS"
16167
16168 fi
16169
16170
16171 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16172 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16173 if test "${ac_cv_lib_inet_socket+set}" = set; then
16174   echo $ECHO_N "(cached) $ECHO_C" >&6
16175 else
16176   ac_check_lib_save_LIBS=$LIBS
16177 LIBS="-linet  $LIBS"
16178 cat >conftest.$ac_ext <<_ACEOF
16179 #line $LINENO "configure"
16180 /* confdefs.h.  */
16181 _ACEOF
16182 cat confdefs.h >>conftest.$ac_ext
16183 cat >>conftest.$ac_ext <<_ACEOF
16184 /* end confdefs.h.  */
16185
16186 /* Override any gcc2 internal prototype to avoid an error.  */
16187 #ifdef __cplusplus
16188 extern "C"
16189 #endif
16190 /* We use char because int might match the return type of a gcc2
16191    builtin and then its argument prototype would still apply.  */
16192 char socket ();
16193 int
16194 main ()
16195 {
16196 socket ();
16197   ;
16198   return 0;
16199 }
16200 _ACEOF
16201 rm -f conftest.$ac_objext conftest$ac_exeext
16202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16203   (eval $ac_link) 2>&5
16204   ac_status=$?
16205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206   (exit $ac_status); } &&
16207          { ac_try='test -s conftest$ac_exeext'
16208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209   (eval $ac_try) 2>&5
16210   ac_status=$?
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); }; }; then
16213   ac_cv_lib_inet_socket=yes
16214 else
16215   echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16217
16218 ac_cv_lib_inet_socket=no
16219 fi
16220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16221 LIBS=$ac_check_lib_save_LIBS
16222 fi
16223 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16224 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16225 if test $ac_cv_lib_inet_socket = yes; then
16226   cat >>confdefs.h <<_ACEOF
16227 #define HAVE_LIBINET 1
16228 _ACEOF
16229
16230   LIBS="-linet $LIBS"
16231
16232 fi
16233
16234 fi
16235
16236
16237
16238 for ac_func in inet_pton
16239 do
16240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16241 echo "$as_me:$LINENO: checking for $ac_func" >&5
16242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16243 if eval "test \"\${$as_ac_var+set}\" = set"; then
16244   echo $ECHO_N "(cached) $ECHO_C" >&6
16245 else
16246   cat >conftest.$ac_ext <<_ACEOF
16247 #line $LINENO "configure"
16248 /* confdefs.h.  */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h.  */
16253 /* System header to define __stub macros and hopefully few prototypes,
16254     which can conflict with char $ac_func (); below.
16255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16256     <limits.h> exists even on freestanding compilers.  */
16257 #ifdef __STDC__
16258 # include <limits.h>
16259 #else
16260 # include <assert.h>
16261 #endif
16262 /* Override any gcc2 internal prototype to avoid an error.  */
16263 #ifdef __cplusplus
16264 extern "C"
16265 {
16266 #endif
16267 /* We use char because int might match the return type of a gcc2
16268    builtin and then its argument prototype would still apply.  */
16269 char $ac_func ();
16270 /* The GNU C library defines this for functions which it implements
16271     to always fail with ENOSYS.  Some functions are actually named
16272     something starting with __ and the normal name is an alias.  */
16273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16274 choke me
16275 #else
16276 char (*f) () = $ac_func;
16277 #endif
16278 #ifdef __cplusplus
16279 }
16280 #endif
16281
16282 int
16283 main ()
16284 {
16285 return f != $ac_func;
16286   ;
16287   return 0;
16288 }
16289 _ACEOF
16290 rm -f conftest.$ac_objext conftest$ac_exeext
16291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16292   (eval $ac_link) 2>&5
16293   ac_status=$?
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); } &&
16296          { ac_try='test -s conftest$ac_exeext'
16297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298   (eval $ac_try) 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); }; }; then
16302   eval "$as_ac_var=yes"
16303 else
16304   echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16306
16307 eval "$as_ac_var=no"
16308 fi
16309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16310 fi
16311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16313 if test `eval echo '${'$as_ac_var'}'` = yes; then
16314   cat >>confdefs.h <<_ACEOF
16315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16316 _ACEOF
16317  cat >>confdefs.h <<\_ACEOF
16318 #define HAVE_INET_PTON 1
16319 _ACEOF
16320
16321 fi
16322 done
16323
16324
16325 for ac_func in inet_ntop
16326 do
16327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16328 echo "$as_me:$LINENO: checking for $ac_func" >&5
16329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16330 if eval "test \"\${$as_ac_var+set}\" = set"; then
16331   echo $ECHO_N "(cached) $ECHO_C" >&6
16332 else
16333   cat >conftest.$ac_ext <<_ACEOF
16334 #line $LINENO "configure"
16335 /* confdefs.h.  */
16336 _ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h.  */
16340 /* System header to define __stub macros and hopefully few prototypes,
16341     which can conflict with char $ac_func (); below.
16342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16343     <limits.h> exists even on freestanding compilers.  */
16344 #ifdef __STDC__
16345 # include <limits.h>
16346 #else
16347 # include <assert.h>
16348 #endif
16349 /* Override any gcc2 internal prototype to avoid an error.  */
16350 #ifdef __cplusplus
16351 extern "C"
16352 {
16353 #endif
16354 /* We use char because int might match the return type of a gcc2
16355    builtin and then its argument prototype would still apply.  */
16356 char $ac_func ();
16357 /* The GNU C library defines this for functions which it implements
16358     to always fail with ENOSYS.  Some functions are actually named
16359     something starting with __ and the normal name is an alias.  */
16360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16361 choke me
16362 #else
16363 char (*f) () = $ac_func;
16364 #endif
16365 #ifdef __cplusplus
16366 }
16367 #endif
16368
16369 int
16370 main ()
16371 {
16372 return f != $ac_func;
16373   ;
16374   return 0;
16375 }
16376 _ACEOF
16377 rm -f conftest.$ac_objext conftest$ac_exeext
16378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16379   (eval $ac_link) 2>&5
16380   ac_status=$?
16381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382   (exit $ac_status); } &&
16383          { ac_try='test -s conftest$ac_exeext'
16384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385   (eval $ac_try) 2>&5
16386   ac_status=$?
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); }; }; then
16389   eval "$as_ac_var=yes"
16390 else
16391   echo "$as_me: failed program was:" >&5
16392 sed 's/^/| /' conftest.$ac_ext >&5
16393
16394 eval "$as_ac_var=no"
16395 fi
16396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16397 fi
16398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16399 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16400 if test `eval echo '${'$as_ac_var'}'` = yes; then
16401   cat >>confdefs.h <<_ACEOF
16402 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16403 _ACEOF
16404  cat >>confdefs.h <<\_ACEOF
16405 #define HAVE_INET_NTOP 1
16406 _ACEOF
16407
16408 fi
16409 done
16410
16411
16412 for ac_func in gethostbyname2
16413 do
16414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16415 echo "$as_me:$LINENO: checking for $ac_func" >&5
16416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16417 if eval "test \"\${$as_ac_var+set}\" = set"; then
16418   echo $ECHO_N "(cached) $ECHO_C" >&6
16419 else
16420   cat >conftest.$ac_ext <<_ACEOF
16421 #line $LINENO "configure"
16422 /* confdefs.h.  */
16423 _ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h.  */
16427 /* System header to define __stub macros and hopefully few prototypes,
16428     which can conflict with char $ac_func (); below.
16429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16430     <limits.h> exists even on freestanding compilers.  */
16431 #ifdef __STDC__
16432 # include <limits.h>
16433 #else
16434 # include <assert.h>
16435 #endif
16436 /* Override any gcc2 internal prototype to avoid an error.  */
16437 #ifdef __cplusplus
16438 extern "C"
16439 {
16440 #endif
16441 /* We use char because int might match the return type of a gcc2
16442    builtin and then its argument prototype would still apply.  */
16443 char $ac_func ();
16444 /* The GNU C library defines this for functions which it implements
16445     to always fail with ENOSYS.  Some functions are actually named
16446     something starting with __ and the normal name is an alias.  */
16447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16448 choke me
16449 #else
16450 char (*f) () = $ac_func;
16451 #endif
16452 #ifdef __cplusplus
16453 }
16454 #endif
16455
16456 int
16457 main ()
16458 {
16459 return f != $ac_func;
16460   ;
16461   return 0;
16462 }
16463 _ACEOF
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16466   (eval $ac_link) 2>&5
16467   ac_status=$?
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); } &&
16470          { ac_try='test -s conftest$ac_exeext'
16471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472   (eval $ac_try) 2>&5
16473   ac_status=$?
16474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475   (exit $ac_status); }; }; then
16476   eval "$as_ac_var=yes"
16477 else
16478   echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16480
16481 eval "$as_ac_var=no"
16482 fi
16483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16484 fi
16485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16487 if test `eval echo '${'$as_ac_var'}'` = yes; then
16488   cat >>confdefs.h <<_ACEOF
16489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16490 _ACEOF
16491  cat >>confdefs.h <<\_ACEOF
16492 #define HAVE_GETHOSTBYNAME2 1
16493 _ACEOF
16494
16495 fi
16496 done
16497
16498
16499 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16500 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16501 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16502   echo $ECHO_N "(cached) $ECHO_C" >&6
16503 else
16504   cat >conftest.$ac_ext <<_ACEOF
16505 #line $LINENO "configure"
16506 /* confdefs.h.  */
16507 _ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h.  */
16511 #include <sys/socket.h>
16512 int
16513 main ()
16514 {
16515 struct sockaddr s; s.sa_len;
16516   ;
16517   return 0;
16518 }
16519 _ACEOF
16520 rm -f conftest.$ac_objext
16521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16522   (eval $ac_compile) 2>&5
16523   ac_status=$?
16524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525   (exit $ac_status); } &&
16526          { ac_try='test -s conftest.$ac_objext'
16527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16528   (eval $ac_try) 2>&5
16529   ac_status=$?
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); }; }; then
16532   ac_cv_struct_sockaddr_sa_len=yes
16533 else
16534   echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16536
16537 ac_cv_struct_sockaddr_sa_len=no
16538 fi
16539 rm -f conftest.$ac_objext conftest.$ac_ext
16540 fi
16541 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16542 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16543
16544  if test $ac_cv_struct_sockaddr_sa_len = yes; then
16545
16546 cat >>confdefs.h <<\_ACEOF
16547 #define HAVE_SA_LEN 1
16548 _ACEOF
16549
16550  fi
16551
16552
16553 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16554 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16555 if test "${ac_cv_ipv6_support+set}" = set; then
16556   echo $ECHO_N "(cached) $ECHO_C" >&6
16557 else
16558   cat >conftest.$ac_ext <<_ACEOF
16559 #line $LINENO "configure"
16560 /* confdefs.h.  */
16561 _ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h.  */
16565  #include <sys/types.h>
16566 #include <sys/socket.h>
16567 #include <netinet/in.h>
16568 int
16569 main ()
16570 {
16571 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16572  0;
16573   ;
16574   return 0;
16575 }
16576 _ACEOF
16577 rm -f conftest.$ac_objext conftest$ac_exeext
16578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16579   (eval $ac_link) 2>&5
16580   ac_status=$?
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); } &&
16583          { ac_try='test -s conftest$ac_exeext'
16584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585   (eval $ac_try) 2>&5
16586   ac_status=$?
16587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588   (exit $ac_status); }; }; then
16589   ac_cv_ipv6_support=yes
16590 else
16591   echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.$ac_ext >&5
16593
16594 ac_cv_ipv6_support=no
16595 fi
16596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16597 fi
16598 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16599 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16600
16601 if test "$ac_cv_ipv6_support" = yes; then
16602
16603 cat >>confdefs.h <<\_ACEOF
16604 #define HAVE_IPV6 1
16605 _ACEOF
16606
16607 fi
16608
16609
16610
16611
16612 for ac_func in strftime
16613 do
16614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16615 echo "$as_me:$LINENO: checking for $ac_func" >&5
16616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16617 if eval "test \"\${$as_ac_var+set}\" = set"; then
16618   echo $ECHO_N "(cached) $ECHO_C" >&6
16619 else
16620   cat >conftest.$ac_ext <<_ACEOF
16621 #line $LINENO "configure"
16622 /* confdefs.h.  */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h.  */
16627 /* System header to define __stub macros and hopefully few prototypes,
16628     which can conflict with char $ac_func (); below.
16629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16630     <limits.h> exists even on freestanding compilers.  */
16631 #ifdef __STDC__
16632 # include <limits.h>
16633 #else
16634 # include <assert.h>
16635 #endif
16636 /* Override any gcc2 internal prototype to avoid an error.  */
16637 #ifdef __cplusplus
16638 extern "C"
16639 {
16640 #endif
16641 /* We use char because int might match the return type of a gcc2
16642    builtin and then its argument prototype would still apply.  */
16643 char $ac_func ();
16644 /* The GNU C library defines this for functions which it implements
16645     to always fail with ENOSYS.  Some functions are actually named
16646     something starting with __ and the normal name is an alias.  */
16647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16648 choke me
16649 #else
16650 char (*f) () = $ac_func;
16651 #endif
16652 #ifdef __cplusplus
16653 }
16654 #endif
16655
16656 int
16657 main ()
16658 {
16659 return f != $ac_func;
16660   ;
16661   return 0;
16662 }
16663 _ACEOF
16664 rm -f conftest.$ac_objext conftest$ac_exeext
16665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16666   (eval $ac_link) 2>&5
16667   ac_status=$?
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); } &&
16670          { ac_try='test -s conftest$ac_exeext'
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   eval "$as_ac_var=yes"
16677 else
16678   echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681 eval "$as_ac_var=no"
16682 fi
16683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16684 fi
16685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16687 if test `eval echo '${'$as_ac_var'}'` = yes; then
16688   cat >>confdefs.h <<_ACEOF
16689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16690 _ACEOF
16691
16692 else
16693   # strftime is in -lintl on SCO UNIX.
16694 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16695 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16696 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16697   echo $ECHO_N "(cached) $ECHO_C" >&6
16698 else
16699   ac_check_lib_save_LIBS=$LIBS
16700 LIBS="-lintl  $LIBS"
16701 cat >conftest.$ac_ext <<_ACEOF
16702 #line $LINENO "configure"
16703 /* confdefs.h.  */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h.  */
16708
16709 /* Override any gcc2 internal prototype to avoid an error.  */
16710 #ifdef __cplusplus
16711 extern "C"
16712 #endif
16713 /* We use char because int might match the return type of a gcc2
16714    builtin and then its argument prototype would still apply.  */
16715 char strftime ();
16716 int
16717 main ()
16718 {
16719 strftime ();
16720   ;
16721   return 0;
16722 }
16723 _ACEOF
16724 rm -f conftest.$ac_objext conftest$ac_exeext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16726   (eval $ac_link) 2>&5
16727   ac_status=$?
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); } &&
16730          { ac_try='test -s conftest$ac_exeext'
16731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732   (eval $ac_try) 2>&5
16733   ac_status=$?
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); }; }; then
16736   ac_cv_lib_intl_strftime=yes
16737 else
16738   echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16740
16741 ac_cv_lib_intl_strftime=no
16742 fi
16743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16744 LIBS=$ac_check_lib_save_LIBS
16745 fi
16746 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16747 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16748 if test $ac_cv_lib_intl_strftime = yes; then
16749   cat >>confdefs.h <<\_ACEOF
16750 #define HAVE_STRFTIME 1
16751 _ACEOF
16752
16753 LIBS="-lintl $LIBS"
16754 fi
16755
16756 fi
16757 done
16758
16759
16760 for ac_func in vprintf
16761 do
16762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16763 echo "$as_me:$LINENO: checking for $ac_func" >&5
16764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16765 if eval "test \"\${$as_ac_var+set}\" = set"; then
16766   echo $ECHO_N "(cached) $ECHO_C" >&6
16767 else
16768   cat >conftest.$ac_ext <<_ACEOF
16769 #line $LINENO "configure"
16770 /* confdefs.h.  */
16771 _ACEOF
16772 cat confdefs.h >>conftest.$ac_ext
16773 cat >>conftest.$ac_ext <<_ACEOF
16774 /* end confdefs.h.  */
16775 /* System header to define __stub macros and hopefully few prototypes,
16776     which can conflict with char $ac_func (); below.
16777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16778     <limits.h> exists even on freestanding compilers.  */
16779 #ifdef __STDC__
16780 # include <limits.h>
16781 #else
16782 # include <assert.h>
16783 #endif
16784 /* Override any gcc2 internal prototype to avoid an error.  */
16785 #ifdef __cplusplus
16786 extern "C"
16787 {
16788 #endif
16789 /* We use char because int might match the return type of a gcc2
16790    builtin and then its argument prototype would still apply.  */
16791 char $ac_func ();
16792 /* The GNU C library defines this for functions which it implements
16793     to always fail with ENOSYS.  Some functions are actually named
16794     something starting with __ and the normal name is an alias.  */
16795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16796 choke me
16797 #else
16798 char (*f) () = $ac_func;
16799 #endif
16800 #ifdef __cplusplus
16801 }
16802 #endif
16803
16804 int
16805 main ()
16806 {
16807 return f != $ac_func;
16808   ;
16809   return 0;
16810 }
16811 _ACEOF
16812 rm -f conftest.$ac_objext conftest$ac_exeext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16814   (eval $ac_link) 2>&5
16815   ac_status=$?
16816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817   (exit $ac_status); } &&
16818          { ac_try='test -s conftest$ac_exeext'
16819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820   (eval $ac_try) 2>&5
16821   ac_status=$?
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); }; }; then
16824   eval "$as_ac_var=yes"
16825 else
16826   echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16828
16829 eval "$as_ac_var=no"
16830 fi
16831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16832 fi
16833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16835 if test `eval echo '${'$as_ac_var'}'` = yes; then
16836   cat >>confdefs.h <<_ACEOF
16837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16838 _ACEOF
16839
16840 echo "$as_me:$LINENO: checking for _doprnt" >&5
16841 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16842 if test "${ac_cv_func__doprnt+set}" = set; then
16843   echo $ECHO_N "(cached) $ECHO_C" >&6
16844 else
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 /* System header to define __stub macros and hopefully few prototypes,
16853     which can conflict with char _doprnt (); below.
16854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16855     <limits.h> exists even on freestanding compilers.  */
16856 #ifdef __STDC__
16857 # include <limits.h>
16858 #else
16859 # include <assert.h>
16860 #endif
16861 /* Override any gcc2 internal prototype to avoid an error.  */
16862 #ifdef __cplusplus
16863 extern "C"
16864 {
16865 #endif
16866 /* We use char because int might match the return type of a gcc2
16867    builtin and then its argument prototype would still apply.  */
16868 char _doprnt ();
16869 /* The GNU C library defines this for functions which it implements
16870     to always fail with ENOSYS.  Some functions are actually named
16871     something starting with __ and the normal name is an alias.  */
16872 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16873 choke me
16874 #else
16875 char (*f) () = _doprnt;
16876 #endif
16877 #ifdef __cplusplus
16878 }
16879 #endif
16880
16881 int
16882 main ()
16883 {
16884 return f != _doprnt;
16885   ;
16886   return 0;
16887 }
16888 _ACEOF
16889 rm -f conftest.$ac_objext conftest$ac_exeext
16890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16891   (eval $ac_link) 2>&5
16892   ac_status=$?
16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); } &&
16895          { ac_try='test -s conftest$ac_exeext'
16896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897   (eval $ac_try) 2>&5
16898   ac_status=$?
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); }; }; then
16901   ac_cv_func__doprnt=yes
16902 else
16903   echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16905
16906 ac_cv_func__doprnt=no
16907 fi
16908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16909 fi
16910 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16911 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16912 if test $ac_cv_func__doprnt = yes; then
16913
16914 cat >>confdefs.h <<\_ACEOF
16915 #define HAVE_DOPRNT 1
16916 _ACEOF
16917
16918 fi
16919
16920 fi
16921 done
16922
16923
16924 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16925 # for constant arguments.  Useless!
16926 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16927 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16928 if test "${ac_cv_working_alloca_h+set}" = set; then
16929   echo $ECHO_N "(cached) $ECHO_C" >&6
16930 else
16931   cat >conftest.$ac_ext <<_ACEOF
16932 #line $LINENO "configure"
16933 /* confdefs.h.  */
16934 _ACEOF
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h.  */
16938 #include <alloca.h>
16939 int
16940 main ()
16941 {
16942 char *p = (char *) alloca (2 * sizeof (int));
16943   ;
16944   return 0;
16945 }
16946 _ACEOF
16947 rm -f conftest.$ac_objext conftest$ac_exeext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16949   (eval $ac_link) 2>&5
16950   ac_status=$?
16951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952   (exit $ac_status); } &&
16953          { ac_try='test -s conftest$ac_exeext'
16954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955   (eval $ac_try) 2>&5
16956   ac_status=$?
16957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958   (exit $ac_status); }; }; then
16959   ac_cv_working_alloca_h=yes
16960 else
16961   echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16963
16964 ac_cv_working_alloca_h=no
16965 fi
16966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16967 fi
16968 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16969 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16970 if test $ac_cv_working_alloca_h = yes; then
16971
16972 cat >>confdefs.h <<\_ACEOF
16973 #define HAVE_ALLOCA_H 1
16974 _ACEOF
16975
16976 fi
16977
16978 echo "$as_me:$LINENO: checking for alloca" >&5
16979 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16980 if test "${ac_cv_func_alloca_works+set}" = set; then
16981   echo $ECHO_N "(cached) $ECHO_C" >&6
16982 else
16983   cat >conftest.$ac_ext <<_ACEOF
16984 #line $LINENO "configure"
16985 /* confdefs.h.  */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h.  */
16990 #ifdef __GNUC__
16991 # define alloca __builtin_alloca
16992 #else
16993 # ifdef _MSC_VER
16994 #  include <malloc.h>
16995 #  define alloca _alloca
16996 # else
16997 #  if HAVE_ALLOCA_H
16998 #   include <alloca.h>
16999 #  else
17000 #   ifdef _AIX
17001  #pragma alloca
17002 #   else
17003 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17004 char *alloca ();
17005 #    endif
17006 #   endif
17007 #  endif
17008 # endif
17009 #endif
17010
17011 int
17012 main ()
17013 {
17014 char *p = (char *) alloca (1);
17015   ;
17016   return 0;
17017 }
17018 _ACEOF
17019 rm -f conftest.$ac_objext conftest$ac_exeext
17020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17021   (eval $ac_link) 2>&5
17022   ac_status=$?
17023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024   (exit $ac_status); } &&
17025          { ac_try='test -s conftest$ac_exeext'
17026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17027   (eval $ac_try) 2>&5
17028   ac_status=$?
17029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030   (exit $ac_status); }; }; then
17031   ac_cv_func_alloca_works=yes
17032 else
17033   echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17035
17036 ac_cv_func_alloca_works=no
17037 fi
17038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17039 fi
17040 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17041 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17042
17043 if test $ac_cv_func_alloca_works = yes; then
17044
17045 cat >>confdefs.h <<\_ACEOF
17046 #define HAVE_ALLOCA 1
17047 _ACEOF
17048
17049 else
17050   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17051 # that cause trouble.  Some versions do not even contain alloca or
17052 # contain a buggy version.  If you still want to use their alloca,
17053 # use ar to extract alloca.o from them instead of compiling alloca.c.
17054
17055 ALLOCA=alloca.$ac_objext
17056
17057 cat >>confdefs.h <<\_ACEOF
17058 #define C_ALLOCA 1
17059 _ACEOF
17060
17061
17062 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17063 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17064 if test "${ac_cv_os_cray+set}" = set; then
17065   echo $ECHO_N "(cached) $ECHO_C" >&6
17066 else
17067   cat >conftest.$ac_ext <<_ACEOF
17068 #line $LINENO "configure"
17069 /* confdefs.h.  */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h.  */
17074 #if defined(CRAY) && ! defined(CRAY2)
17075 webecray
17076 #else
17077 wenotbecray
17078 #endif
17079
17080 _ACEOF
17081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17082   $EGREP "webecray" >/dev/null 2>&1; then
17083   ac_cv_os_cray=yes
17084 else
17085   ac_cv_os_cray=no
17086 fi
17087 rm -f conftest*
17088
17089 fi
17090 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17091 echo "${ECHO_T}$ac_cv_os_cray" >&6
17092 if test $ac_cv_os_cray = yes; then
17093   for ac_func in _getb67 GETB67 getb67; do
17094     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17095 echo "$as_me:$LINENO: checking for $ac_func" >&5
17096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17097 if eval "test \"\${$as_ac_var+set}\" = set"; then
17098   echo $ECHO_N "(cached) $ECHO_C" >&6
17099 else
17100   cat >conftest.$ac_ext <<_ACEOF
17101 #line $LINENO "configure"
17102 /* confdefs.h.  */
17103 _ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h.  */
17107 /* System header to define __stub macros and hopefully few prototypes,
17108     which can conflict with char $ac_func (); below.
17109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17110     <limits.h> exists even on freestanding compilers.  */
17111 #ifdef __STDC__
17112 # include <limits.h>
17113 #else
17114 # include <assert.h>
17115 #endif
17116 /* Override any gcc2 internal prototype to avoid an error.  */
17117 #ifdef __cplusplus
17118 extern "C"
17119 {
17120 #endif
17121 /* We use char because int might match the return type of a gcc2
17122    builtin and then its argument prototype would still apply.  */
17123 char $ac_func ();
17124 /* The GNU C library defines this for functions which it implements
17125     to always fail with ENOSYS.  Some functions are actually named
17126     something starting with __ and the normal name is an alias.  */
17127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17128 choke me
17129 #else
17130 char (*f) () = $ac_func;
17131 #endif
17132 #ifdef __cplusplus
17133 }
17134 #endif
17135
17136 int
17137 main ()
17138 {
17139 return f != $ac_func;
17140   ;
17141   return 0;
17142 }
17143 _ACEOF
17144 rm -f conftest.$ac_objext conftest$ac_exeext
17145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17146   (eval $ac_link) 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); } &&
17150          { ac_try='test -s conftest$ac_exeext'
17151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152   (eval $ac_try) 2>&5
17153   ac_status=$?
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); }; }; then
17156   eval "$as_ac_var=yes"
17157 else
17158   echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17160
17161 eval "$as_ac_var=no"
17162 fi
17163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17164 fi
17165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17167 if test `eval echo '${'$as_ac_var'}'` = yes; then
17168
17169 cat >>confdefs.h <<_ACEOF
17170 #define CRAY_STACKSEG_END $ac_func
17171 _ACEOF
17172
17173     break
17174 fi
17175
17176   done
17177 fi
17178
17179 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17180 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17181 if test "${ac_cv_c_stack_direction+set}" = set; then
17182   echo $ECHO_N "(cached) $ECHO_C" >&6
17183 else
17184   if test "$cross_compiling" = yes; then
17185   ac_cv_c_stack_direction=0
17186 else
17187   cat >conftest.$ac_ext <<_ACEOF
17188 #line $LINENO "configure"
17189 /* confdefs.h.  */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h.  */
17194 int
17195 find_stack_direction ()
17196 {
17197   static char *addr = 0;
17198   auto char dummy;
17199   if (addr == 0)
17200     {
17201       addr = &dummy;
17202       return find_stack_direction ();
17203     }
17204   else
17205     return (&dummy > addr) ? 1 : -1;
17206 }
17207
17208 int
17209 main ()
17210 {
17211   exit (find_stack_direction () < 0);
17212 }
17213 _ACEOF
17214 rm -f conftest$ac_exeext
17215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17216   (eval $ac_link) 2>&5
17217   ac_status=$?
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221   (eval $ac_try) 2>&5
17222   ac_status=$?
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); }; }; then
17225   ac_cv_c_stack_direction=1
17226 else
17227   echo "$as_me: program exited with status $ac_status" >&5
17228 echo "$as_me: failed program was:" >&5
17229 sed 's/^/| /' conftest.$ac_ext >&5
17230
17231 ( exit $ac_status )
17232 ac_cv_c_stack_direction=-1
17233 fi
17234 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17235 fi
17236 fi
17237 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17238 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17239
17240 cat >>confdefs.h <<_ACEOF
17241 #define STACK_DIRECTION $ac_cv_c_stack_direction
17242 _ACEOF
17243
17244
17245 fi
17246
17247 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17248 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17249 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17250 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17251   echo $ECHO_N "(cached) $ECHO_C" >&6
17252 else
17253   ac_check_lib_save_LIBS=$LIBS
17254 LIBS="-lsun  $LIBS"
17255 cat >conftest.$ac_ext <<_ACEOF
17256 #line $LINENO "configure"
17257 /* confdefs.h.  */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h.  */
17262
17263 /* Override any gcc2 internal prototype to avoid an error.  */
17264 #ifdef __cplusplus
17265 extern "C"
17266 #endif
17267 /* We use char because int might match the return type of a gcc2
17268    builtin and then its argument prototype would still apply.  */
17269 char getmntent ();
17270 int
17271 main ()
17272 {
17273 getmntent ();
17274   ;
17275   return 0;
17276 }
17277 _ACEOF
17278 rm -f conftest.$ac_objext conftest$ac_exeext
17279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17280   (eval $ac_link) 2>&5
17281   ac_status=$?
17282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); } &&
17284          { ac_try='test -s conftest$ac_exeext'
17285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17286   (eval $ac_try) 2>&5
17287   ac_status=$?
17288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289   (exit $ac_status); }; }; then
17290   ac_cv_lib_sun_getmntent=yes
17291 else
17292   echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17294
17295 ac_cv_lib_sun_getmntent=no
17296 fi
17297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17298 LIBS=$ac_check_lib_save_LIBS
17299 fi
17300 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17301 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17302 if test $ac_cv_lib_sun_getmntent = yes; then
17303   LIBS="-lsun $LIBS"
17304 else
17305   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17306 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17307 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17308   echo $ECHO_N "(cached) $ECHO_C" >&6
17309 else
17310   ac_check_lib_save_LIBS=$LIBS
17311 LIBS="-lseq  $LIBS"
17312 cat >conftest.$ac_ext <<_ACEOF
17313 #line $LINENO "configure"
17314 /* confdefs.h.  */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h.  */
17319
17320 /* Override any gcc2 internal prototype to avoid an error.  */
17321 #ifdef __cplusplus
17322 extern "C"
17323 #endif
17324 /* We use char because int might match the return type of a gcc2
17325    builtin and then its argument prototype would still apply.  */
17326 char getmntent ();
17327 int
17328 main ()
17329 {
17330 getmntent ();
17331   ;
17332   return 0;
17333 }
17334 _ACEOF
17335 rm -f conftest.$ac_objext conftest$ac_exeext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17337   (eval $ac_link) 2>&5
17338   ac_status=$?
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); } &&
17341          { ac_try='test -s conftest$ac_exeext'
17342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343   (eval $ac_try) 2>&5
17344   ac_status=$?
17345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346   (exit $ac_status); }; }; then
17347   ac_cv_lib_seq_getmntent=yes
17348 else
17349   echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17351
17352 ac_cv_lib_seq_getmntent=no
17353 fi
17354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17355 LIBS=$ac_check_lib_save_LIBS
17356 fi
17357 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17358 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17359 if test $ac_cv_lib_seq_getmntent = yes; then
17360   LIBS="-lseq $LIBS"
17361 else
17362   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17363 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17364 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17365   echo $ECHO_N "(cached) $ECHO_C" >&6
17366 else
17367   ac_check_lib_save_LIBS=$LIBS
17368 LIBS="-lgen  $LIBS"
17369 cat >conftest.$ac_ext <<_ACEOF
17370 #line $LINENO "configure"
17371 /* confdefs.h.  */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h.  */
17376
17377 /* Override any gcc2 internal prototype to avoid an error.  */
17378 #ifdef __cplusplus
17379 extern "C"
17380 #endif
17381 /* We use char because int might match the return type of a gcc2
17382    builtin and then its argument prototype would still apply.  */
17383 char getmntent ();
17384 int
17385 main ()
17386 {
17387 getmntent ();
17388   ;
17389   return 0;
17390 }
17391 _ACEOF
17392 rm -f conftest.$ac_objext conftest$ac_exeext
17393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17394   (eval $ac_link) 2>&5
17395   ac_status=$?
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); } &&
17398          { ac_try='test -s conftest$ac_exeext'
17399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400   (eval $ac_try) 2>&5
17401   ac_status=$?
17402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403   (exit $ac_status); }; }; then
17404   ac_cv_lib_gen_getmntent=yes
17405 else
17406   echo "$as_me: failed program was:" >&5
17407 sed 's/^/| /' conftest.$ac_ext >&5
17408
17409 ac_cv_lib_gen_getmntent=no
17410 fi
17411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17412 LIBS=$ac_check_lib_save_LIBS
17413 fi
17414 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17415 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17416 if test $ac_cv_lib_gen_getmntent = yes; then
17417   LIBS="-lgen $LIBS"
17418 fi
17419
17420 fi
17421
17422 fi
17423
17424
17425 for ac_func in getmntent
17426 do
17427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17428 echo "$as_me:$LINENO: checking for $ac_func" >&5
17429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17430 if eval "test \"\${$as_ac_var+set}\" = set"; then
17431   echo $ECHO_N "(cached) $ECHO_C" >&6
17432 else
17433   cat >conftest.$ac_ext <<_ACEOF
17434 #line $LINENO "configure"
17435 /* confdefs.h.  */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h.  */
17440 /* System header to define __stub macros and hopefully few prototypes,
17441     which can conflict with char $ac_func (); below.
17442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17443     <limits.h> exists even on freestanding compilers.  */
17444 #ifdef __STDC__
17445 # include <limits.h>
17446 #else
17447 # include <assert.h>
17448 #endif
17449 /* Override any gcc2 internal prototype to avoid an error.  */
17450 #ifdef __cplusplus
17451 extern "C"
17452 {
17453 #endif
17454 /* We use char because int might match the return type of a gcc2
17455    builtin and then its argument prototype would still apply.  */
17456 char $ac_func ();
17457 /* The GNU C library defines this for functions which it implements
17458     to always fail with ENOSYS.  Some functions are actually named
17459     something starting with __ and the normal name is an alias.  */
17460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17461 choke me
17462 #else
17463 char (*f) () = $ac_func;
17464 #endif
17465 #ifdef __cplusplus
17466 }
17467 #endif
17468
17469 int
17470 main ()
17471 {
17472 return f != $ac_func;
17473   ;
17474   return 0;
17475 }
17476 _ACEOF
17477 rm -f conftest.$ac_objext conftest$ac_exeext
17478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17479   (eval $ac_link) 2>&5
17480   ac_status=$?
17481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482   (exit $ac_status); } &&
17483          { ac_try='test -s conftest$ac_exeext'
17484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485   (eval $ac_try) 2>&5
17486   ac_status=$?
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); }; }; then
17489   eval "$as_ac_var=yes"
17490 else
17491   echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17493
17494 eval "$as_ac_var=no"
17495 fi
17496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17497 fi
17498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17500 if test `eval echo '${'$as_ac_var'}'` = yes; then
17501   cat >>confdefs.h <<_ACEOF
17502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17503 _ACEOF
17504
17505 fi
17506 done
17507
17508
17509 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17510 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17511 if test "${ac_cv_func_closedir_void+set}" = set; then
17512   echo $ECHO_N "(cached) $ECHO_C" >&6
17513 else
17514   if test "$cross_compiling" = yes; then
17515   ac_cv_func_closedir_void=yes
17516 else
17517   cat >conftest.$ac_ext <<_ACEOF
17518 #line $LINENO "configure"
17519 /* confdefs.h.  */
17520 _ACEOF
17521 cat confdefs.h >>conftest.$ac_ext
17522 cat >>conftest.$ac_ext <<_ACEOF
17523 /* end confdefs.h.  */
17524 $ac_includes_default
17525 #include <$ac_header_dirent>
17526 #ifndef __cplusplus
17527 int closedir ();
17528 #endif
17529
17530 int
17531 main ()
17532 {
17533 exit (closedir (opendir (".")) != 0);
17534   ;
17535   return 0;
17536 }
17537 _ACEOF
17538 rm -f conftest$ac_exeext
17539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17540   (eval $ac_link) 2>&5
17541   ac_status=$?
17542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545   (eval $ac_try) 2>&5
17546   ac_status=$?
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); }; }; then
17549   ac_cv_func_closedir_void=no
17550 else
17551   echo "$as_me: program exited with status $ac_status" >&5
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17554
17555 ( exit $ac_status )
17556 ac_cv_func_closedir_void=yes
17557 fi
17558 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17559 fi
17560 fi
17561 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17562 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17563 if test $ac_cv_func_closedir_void = yes; then
17564
17565 cat >>confdefs.h <<\_ACEOF
17566 #define CLOSEDIR_VOID 1
17567 _ACEOF
17568
17569 fi
17570
17571 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17572 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17573 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17574   echo $ECHO_N "(cached) $ECHO_C" >&6
17575 else
17576   if test "$cross_compiling" = yes; then
17577   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17578 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17579    { (exit 1); exit 1; }; }
17580 else
17581   cat >conftest.$ac_ext <<_ACEOF
17582 #line $LINENO "configure"
17583 /* confdefs.h.  */
17584 _ACEOF
17585 cat confdefs.h >>conftest.$ac_ext
17586 cat >>conftest.$ac_ext <<_ACEOF
17587 /* end confdefs.h.  */
17588 #if HAVE_UNISTD_H
17589 # include <unistd.h>
17590 #endif
17591
17592 int
17593 main ()
17594 {
17595 /* If this system has a BSD-style setpgrp which takes arguments,
17596   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17597   exit successfully. */
17598   exit (setpgrp (1,1) == -1 ? 0 : 1);
17599   ;
17600   return 0;
17601 }
17602 _ACEOF
17603 rm -f conftest$ac_exeext
17604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17605   (eval $ac_link) 2>&5
17606   ac_status=$?
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610   (eval $ac_try) 2>&5
17611   ac_status=$?
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); }; }; then
17614   ac_cv_func_setpgrp_void=no
17615 else
17616   echo "$as_me: program exited with status $ac_status" >&5
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17619
17620 ( exit $ac_status )
17621 ac_cv_func_setpgrp_void=yes
17622 fi
17623 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17624 fi
17625 fi
17626 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17627 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17628 if test $ac_cv_func_setpgrp_void = yes; then
17629
17630 cat >>confdefs.h <<\_ACEOF
17631 #define SETPGRP_VOID 1
17632 _ACEOF
17633
17634 fi
17635                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17636 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17637 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17638   echo $ECHO_N "(cached) $ECHO_C" >&6
17639 else
17640   # Some versions of Solaris, SCO, and the GNU C Library
17641    # have a broken or incompatible fnmatch.
17642    # So we run a test program.  If we are cross-compiling, take no chance.
17643    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17644    if test "$cross_compiling" = yes; then
17645   ac_cv_func_fnmatch_works=cross
17646 else
17647   cat >conftest.$ac_ext <<_ACEOF
17648 #line $LINENO "configure"
17649 /* confdefs.h.  */
17650 _ACEOF
17651 cat confdefs.h >>conftest.$ac_ext
17652 cat >>conftest.$ac_ext <<_ACEOF
17653 /* end confdefs.h.  */
17654 #include <fnmatch.h>
17655 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17656 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17657
17658 int
17659 main ()
17660 {
17661 exit
17662            (!(y ("a*", "abc", 0)
17663               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17664               && y ("a\\\\bc", "abc", 0)
17665               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17666               && y ("*x", ".x", 0)
17667               && n ("*x", ".x", FNM_PERIOD)
17668               && 1));
17669   ;
17670   return 0;
17671 }
17672 _ACEOF
17673 rm -f conftest$ac_exeext
17674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17675   (eval $ac_link) 2>&5
17676   ac_status=$?
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680   (eval $ac_try) 2>&5
17681   ac_status=$?
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); }; }; then
17684   ac_cv_func_fnmatch_works=yes
17685 else
17686   echo "$as_me: program exited with status $ac_status" >&5
17687 echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17689
17690 ( exit $ac_status )
17691 ac_cv_func_fnmatch_works=no
17692 fi
17693 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17694 fi
17695 fi
17696 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17697 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17698 if test $ac_cv_func_fnmatch_works = yes; then
17699
17700 cat >>confdefs.h <<\_ACEOF
17701 #define HAVE_FNMATCH 1
17702 _ACEOF
17703
17704 fi
17705
17706
17707
17708
17709
17710 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17711 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17712 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17713   echo $ECHO_N "(cached) $ECHO_C" >&6
17714 else
17715   ac_check_lib_save_LIBS=$LIBS
17716 LIBS="-lxpg4  $LIBS"
17717 cat >conftest.$ac_ext <<_ACEOF
17718 #line $LINENO "configure"
17719 /* confdefs.h.  */
17720 _ACEOF
17721 cat confdefs.h >>conftest.$ac_ext
17722 cat >>conftest.$ac_ext <<_ACEOF
17723 /* end confdefs.h.  */
17724
17725 /* Override any gcc2 internal prototype to avoid an error.  */
17726 #ifdef __cplusplus
17727 extern "C"
17728 #endif
17729 /* We use char because int might match the return type of a gcc2
17730    builtin and then its argument prototype would still apply.  */
17731 char setlocale ();
17732 int
17733 main ()
17734 {
17735 setlocale ();
17736   ;
17737   return 0;
17738 }
17739 _ACEOF
17740 rm -f conftest.$ac_objext conftest$ac_exeext
17741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17742   (eval $ac_link) 2>&5
17743   ac_status=$?
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); } &&
17746          { ac_try='test -s conftest$ac_exeext'
17747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748   (eval $ac_try) 2>&5
17749   ac_status=$?
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); }; }; then
17752   ac_cv_lib_xpg4_setlocale=yes
17753 else
17754   echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17756
17757 ac_cv_lib_xpg4_setlocale=no
17758 fi
17759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17760 LIBS=$ac_check_lib_save_LIBS
17761 fi
17762 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17763 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17764 if test $ac_cv_lib_xpg4_setlocale = yes; then
17765   LIBS="$LIBS -lxpg4"
17766 fi
17767
17768
17769
17770
17771 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17772 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17773 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17774   echo $ECHO_N "(cached) $ECHO_C" >&6
17775 else
17776   ac_check_lib_save_LIBS=$LIBS
17777 LIBS="-lsun  $LIBS"
17778 cat >conftest.$ac_ext <<_ACEOF
17779 #line $LINENO "configure"
17780 /* confdefs.h.  */
17781 _ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h.  */
17785
17786 /* Override any gcc2 internal prototype to avoid an error.  */
17787 #ifdef __cplusplus
17788 extern "C"
17789 #endif
17790 /* We use char because int might match the return type of a gcc2
17791    builtin and then its argument prototype would still apply.  */
17792 char getpwnam ();
17793 int
17794 main ()
17795 {
17796 getpwnam ();
17797   ;
17798   return 0;
17799 }
17800 _ACEOF
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17803   (eval $ac_link) 2>&5
17804   ac_status=$?
17805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806   (exit $ac_status); } &&
17807          { ac_try='test -s conftest$ac_exeext'
17808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809   (eval $ac_try) 2>&5
17810   ac_status=$?
17811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812   (exit $ac_status); }; }; then
17813   ac_cv_lib_sun_getpwnam=yes
17814 else
17815   echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17817
17818 ac_cv_lib_sun_getpwnam=no
17819 fi
17820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17821 LIBS=$ac_check_lib_save_LIBS
17822 fi
17823 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17824 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17825 if test $ac_cv_lib_sun_getpwnam = yes; then
17826   cat >>confdefs.h <<_ACEOF
17827 #define HAVE_LIBSUN 1
17828 _ACEOF
17829
17830   LIBS="-lsun $LIBS"
17831
17832 fi
17833
17834
17835
17836 for ac_header in zlib.h
17837 do
17838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17840   echo "$as_me:$LINENO: checking for $ac_header" >&5
17841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17843   echo $ECHO_N "(cached) $ECHO_C" >&6
17844 fi
17845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17847 else
17848   # Is the header compilable?
17849 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17851 cat >conftest.$ac_ext <<_ACEOF
17852 #line $LINENO "configure"
17853 /* confdefs.h.  */
17854 _ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h.  */
17858 $ac_includes_default
17859 #include <$ac_header>
17860 _ACEOF
17861 rm -f conftest.$ac_objext
17862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17863   (eval $ac_compile) 2>&5
17864   ac_status=$?
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); } &&
17867          { ac_try='test -s conftest.$ac_objext'
17868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869   (eval $ac_try) 2>&5
17870   ac_status=$?
17871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872   (exit $ac_status); }; }; then
17873   ac_header_compiler=yes
17874 else
17875   echo "$as_me: failed program was:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17877
17878 ac_header_compiler=no
17879 fi
17880 rm -f conftest.$ac_objext conftest.$ac_ext
17881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17882 echo "${ECHO_T}$ac_header_compiler" >&6
17883
17884 # Is the header present?
17885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17887 cat >conftest.$ac_ext <<_ACEOF
17888 #line $LINENO "configure"
17889 /* confdefs.h.  */
17890 _ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h.  */
17894 #include <$ac_header>
17895 _ACEOF
17896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17897   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17898   ac_status=$?
17899   grep -v '^ *+' conftest.er1 >conftest.err
17900   rm -f conftest.er1
17901   cat conftest.err >&5
17902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903   (exit $ac_status); } >/dev/null; then
17904   if test -s conftest.err; then
17905     ac_cpp_err=$ac_c_preproc_warn_flag
17906   else
17907     ac_cpp_err=
17908   fi
17909 else
17910   ac_cpp_err=yes
17911 fi
17912 if test -z "$ac_cpp_err"; then
17913   ac_header_preproc=yes
17914 else
17915   echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17917
17918   ac_header_preproc=no
17919 fi
17920 rm -f conftest.err conftest.$ac_ext
17921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17922 echo "${ECHO_T}$ac_header_preproc" >&6
17923
17924 # So?  What about this header?
17925 case $ac_header_compiler:$ac_header_preproc in
17926   yes:no )
17927     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17931     (
17932       cat <<\_ASBOX
17933 ## ------------------------------------ ##
17934 ## Report this to bug-autoconf@gnu.org. ##
17935 ## ------------------------------------ ##
17936 _ASBOX
17937     ) |
17938       sed "s/^/$as_me: WARNING:     /" >&2
17939     ;;
17940   no:yes )
17941     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17943     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17947     (
17948       cat <<\_ASBOX
17949 ## ------------------------------------ ##
17950 ## Report this to bug-autoconf@gnu.org. ##
17951 ## ------------------------------------ ##
17952 _ASBOX
17953     ) |
17954       sed "s/^/$as_me: WARNING:     /" >&2
17955     ;;
17956 esac
17957 echo "$as_me:$LINENO: checking for $ac_header" >&5
17958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17960   echo $ECHO_N "(cached) $ECHO_C" >&6
17961 else
17962   eval "$as_ac_Header=$ac_header_preproc"
17963 fi
17964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17966
17967 fi
17968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17969   cat >>confdefs.h <<_ACEOF
17970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17971 _ACEOF
17972
17973 fi
17974
17975 done
17976
17977 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17978 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17979 if test "${ac_cv_lib_z_deflate+set}" = set; then
17980   echo $ECHO_N "(cached) $ECHO_C" >&6
17981 else
17982   ac_check_lib_save_LIBS=$LIBS
17983 LIBS="-lz  $LIBS"
17984 cat >conftest.$ac_ext <<_ACEOF
17985 #line $LINENO "configure"
17986 /* confdefs.h.  */
17987 _ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h.  */
17991
17992 /* Override any gcc2 internal prototype to avoid an error.  */
17993 #ifdef __cplusplus
17994 extern "C"
17995 #endif
17996 /* We use char because int might match the return type of a gcc2
17997    builtin and then its argument prototype would still apply.  */
17998 char deflate ();
17999 int
18000 main ()
18001 {
18002 deflate ();
18003   ;
18004   return 0;
18005 }
18006 _ACEOF
18007 rm -f conftest.$ac_objext conftest$ac_exeext
18008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18009   (eval $ac_link) 2>&5
18010   ac_status=$?
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); } &&
18013          { ac_try='test -s conftest$ac_exeext'
18014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015   (eval $ac_try) 2>&5
18016   ac_status=$?
18017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); }; }; then
18019   ac_cv_lib_z_deflate=yes
18020 else
18021   echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18023
18024 ac_cv_lib_z_deflate=no
18025 fi
18026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18027 LIBS=$ac_check_lib_save_LIBS
18028 fi
18029 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18030 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18031 if test $ac_cv_lib_z_deflate = yes; then
18032   FDLIBS="-lz"
18033 fi
18034
18035 have_zlib=no
18036 if test x$FDLIBS = x-lz; then
18037   cat >>confdefs.h <<\_ACEOF
18038 #define HAVE_LIBZ 1
18039 _ACEOF
18040
18041   have_zlib=yes
18042 fi
18043
18044 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18045   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18046 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18047 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18048   echo $ECHO_N "(cached) $ECHO_C" >&6
18049 fi
18050 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18051 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18052 else
18053   # Is the header compilable?
18054 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18055 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18056 cat >conftest.$ac_ext <<_ACEOF
18057 #line $LINENO "configure"
18058 /* confdefs.h.  */
18059 _ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h.  */
18063 $ac_includes_default
18064 #include <sys/acl.h>
18065 _ACEOF
18066 rm -f conftest.$ac_objext
18067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18068   (eval $ac_compile) 2>&5
18069   ac_status=$?
18070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071   (exit $ac_status); } &&
18072          { ac_try='test -s conftest.$ac_objext'
18073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18074   (eval $ac_try) 2>&5
18075   ac_status=$?
18076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077   (exit $ac_status); }; }; then
18078   ac_header_compiler=yes
18079 else
18080   echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18082
18083 ac_header_compiler=no
18084 fi
18085 rm -f conftest.$ac_objext conftest.$ac_ext
18086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18087 echo "${ECHO_T}$ac_header_compiler" >&6
18088
18089 # Is the header present?
18090 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18091 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18092 cat >conftest.$ac_ext <<_ACEOF
18093 #line $LINENO "configure"
18094 /* confdefs.h.  */
18095 _ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h.  */
18099 #include <sys/acl.h>
18100 _ACEOF
18101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18103   ac_status=$?
18104   grep -v '^ *+' conftest.er1 >conftest.err
18105   rm -f conftest.er1
18106   cat conftest.err >&5
18107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108   (exit $ac_status); } >/dev/null; then
18109   if test -s conftest.err; then
18110     ac_cpp_err=$ac_c_preproc_warn_flag
18111   else
18112     ac_cpp_err=
18113   fi
18114 else
18115   ac_cpp_err=yes
18116 fi
18117 if test -z "$ac_cpp_err"; then
18118   ac_header_preproc=yes
18119 else
18120   echo "$as_me: failed program was:" >&5
18121 sed 's/^/| /' conftest.$ac_ext >&5
18122
18123   ac_header_preproc=no
18124 fi
18125 rm -f conftest.err conftest.$ac_ext
18126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18127 echo "${ECHO_T}$ac_header_preproc" >&6
18128
18129 # So?  What about this header?
18130 case $ac_header_compiler:$ac_header_preproc in
18131   yes:no )
18132     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18133 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18134     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18135 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18136     (
18137       cat <<\_ASBOX
18138 ## ------------------------------------ ##
18139 ## Report this to bug-autoconf@gnu.org. ##
18140 ## ------------------------------------ ##
18141 _ASBOX
18142     ) |
18143       sed "s/^/$as_me: WARNING:     /" >&2
18144     ;;
18145   no:yes )
18146     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18147 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18148     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18149 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18150     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18151 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18152     (
18153       cat <<\_ASBOX
18154 ## ------------------------------------ ##
18155 ## Report this to bug-autoconf@gnu.org. ##
18156 ## ------------------------------------ ##
18157 _ASBOX
18158     ) |
18159       sed "s/^/$as_me: WARNING:     /" >&2
18160     ;;
18161 esac
18162 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18163 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18164 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18165   echo $ECHO_N "(cached) $ECHO_C" >&6
18166 else
18167   ac_cv_header_sys_acl_h=$ac_header_preproc
18168 fi
18169 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18170 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18171
18172 fi
18173
18174
18175 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18176 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18177 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18178   echo $ECHO_N "(cached) $ECHO_C" >&6
18179 else
18180   ac_check_lib_save_LIBS=$LIBS
18181 LIBS="-lacl  $LIBS"
18182 cat >conftest.$ac_ext <<_ACEOF
18183 #line $LINENO "configure"
18184 /* confdefs.h.  */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h.  */
18189
18190 /* Override any gcc2 internal prototype to avoid an error.  */
18191 #ifdef __cplusplus
18192 extern "C"
18193 #endif
18194 /* We use char because int might match the return type of a gcc2
18195    builtin and then its argument prototype would still apply.  */
18196 char acl_get_file ();
18197 int
18198 main ()
18199 {
18200 acl_get_file ();
18201   ;
18202   return 0;
18203 }
18204 _ACEOF
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18207   (eval $ac_link) 2>&5
18208   ac_status=$?
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); } &&
18211          { ac_try='test -s conftest$ac_exeext'
18212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18213   (eval $ac_try) 2>&5
18214   ac_status=$?
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); }; }; then
18217   ac_cv_lib_acl_acl_get_file=yes
18218 else
18219   echo "$as_me: failed program was:" >&5
18220 sed 's/^/| /' conftest.$ac_ext >&5
18221
18222 ac_cv_lib_acl_acl_get_file=no
18223 fi
18224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18225 LIBS=$ac_check_lib_save_LIBS
18226 fi
18227 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18228 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18229 if test $ac_cv_lib_acl_acl_get_file = yes; then
18230   FDLIBS="-lacl $FDLIBS"
18231 fi
18232
18233 have_acl=no
18234 if test $ac_cv_lib_acl_acl_get_file = yes; then
18235    cat >>confdefs.h <<\_ACEOF
18236 #define HAVE_ACL 1
18237 _ACEOF
18238
18239    have_acl=yes
18240 fi
18241
18242 PTHREAD_LIB=""
18243 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18244 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18245 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18246   echo $ECHO_N "(cached) $ECHO_C" >&6
18247 else
18248   ac_check_lib_save_LIBS=$LIBS
18249 LIBS="-lpthread  $LIBS"
18250 cat >conftest.$ac_ext <<_ACEOF
18251 #line $LINENO "configure"
18252 /* confdefs.h.  */
18253 _ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h.  */
18257
18258 /* Override any gcc2 internal prototype to avoid an error.  */
18259 #ifdef __cplusplus
18260 extern "C"
18261 #endif
18262 /* We use char because int might match the return type of a gcc2
18263    builtin and then its argument prototype would still apply.  */
18264 char pthread_create ();
18265 int
18266 main ()
18267 {
18268 pthread_create ();
18269   ;
18270   return 0;
18271 }
18272 _ACEOF
18273 rm -f conftest.$ac_objext conftest$ac_exeext
18274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18275   (eval $ac_link) 2>&5
18276   ac_status=$?
18277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278   (exit $ac_status); } &&
18279          { ac_try='test -s conftest$ac_exeext'
18280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281   (eval $ac_try) 2>&5
18282   ac_status=$?
18283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284   (exit $ac_status); }; }; then
18285   ac_cv_lib_pthread_pthread_create=yes
18286 else
18287   echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18289
18290 ac_cv_lib_pthread_pthread_create=no
18291 fi
18292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18293 LIBS=$ac_check_lib_save_LIBS
18294 fi
18295 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18296 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18297 if test $ac_cv_lib_pthread_pthread_create = yes; then
18298   PTHREAD_LIB="-lpthread"
18299 else
18300   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18301 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18302 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18303   echo $ECHO_N "(cached) $ECHO_C" >&6
18304 else
18305   ac_check_lib_save_LIBS=$LIBS
18306 LIBS="-lpthreads  $LIBS"
18307 cat >conftest.$ac_ext <<_ACEOF
18308 #line $LINENO "configure"
18309 /* confdefs.h.  */
18310 _ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h.  */
18314
18315 /* Override any gcc2 internal prototype to avoid an error.  */
18316 #ifdef __cplusplus
18317 extern "C"
18318 #endif
18319 /* We use char because int might match the return type of a gcc2
18320    builtin and then its argument prototype would still apply.  */
18321 char pthread_create ();
18322 int
18323 main ()
18324 {
18325 pthread_create ();
18326   ;
18327   return 0;
18328 }
18329 _ACEOF
18330 rm -f conftest.$ac_objext conftest$ac_exeext
18331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18332   (eval $ac_link) 2>&5
18333   ac_status=$?
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); } &&
18336          { ac_try='test -s conftest$ac_exeext'
18337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338   (eval $ac_try) 2>&5
18339   ac_status=$?
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); }; }; then
18342   ac_cv_lib_pthreads_pthread_create=yes
18343 else
18344   echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18346
18347 ac_cv_lib_pthreads_pthread_create=no
18348 fi
18349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18350 LIBS=$ac_check_lib_save_LIBS
18351 fi
18352 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18353 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18354 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18355   PTHREAD_LIB="-lpthreads"
18356 else
18357   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18358 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18359 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18360   echo $ECHO_N "(cached) $ECHO_C" >&6
18361 else
18362   ac_check_lib_save_LIBS=$LIBS
18363 LIBS="-lc_r  $LIBS"
18364 cat >conftest.$ac_ext <<_ACEOF
18365 #line $LINENO "configure"
18366 /* confdefs.h.  */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h.  */
18371
18372 /* Override any gcc2 internal prototype to avoid an error.  */
18373 #ifdef __cplusplus
18374 extern "C"
18375 #endif
18376 /* We use char because int might match the return type of a gcc2
18377    builtin and then its argument prototype would still apply.  */
18378 char pthread_create ();
18379 int
18380 main ()
18381 {
18382 pthread_create ();
18383   ;
18384   return 0;
18385 }
18386 _ACEOF
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18389   (eval $ac_link) 2>&5
18390   ac_status=$?
18391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392   (exit $ac_status); } &&
18393          { ac_try='test -s conftest$ac_exeext'
18394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395   (eval $ac_try) 2>&5
18396   ac_status=$?
18397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398   (exit $ac_status); }; }; then
18399   ac_cv_lib_c_r_pthread_create=yes
18400 else
18401   echo "$as_me: failed program was:" >&5
18402 sed 's/^/| /' conftest.$ac_ext >&5
18403
18404 ac_cv_lib_c_r_pthread_create=no
18405 fi
18406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18407 LIBS=$ac_check_lib_save_LIBS
18408 fi
18409 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18410 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18411 if test $ac_cv_lib_c_r_pthread_create = yes; then
18412   PTHREAD_LIB="-lc_r"
18413 else
18414   echo "$as_me:$LINENO: checking for pthread_create" >&5
18415 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18416 if test "${ac_cv_func_pthread_create+set}" = set; then
18417   echo $ECHO_N "(cached) $ECHO_C" >&6
18418 else
18419   cat >conftest.$ac_ext <<_ACEOF
18420 #line $LINENO "configure"
18421 /* confdefs.h.  */
18422 _ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h.  */
18426 /* System header to define __stub macros and hopefully few prototypes,
18427     which can conflict with char pthread_create (); below.
18428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18429     <limits.h> exists even on freestanding compilers.  */
18430 #ifdef __STDC__
18431 # include <limits.h>
18432 #else
18433 # include <assert.h>
18434 #endif
18435 /* Override any gcc2 internal prototype to avoid an error.  */
18436 #ifdef __cplusplus
18437 extern "C"
18438 {
18439 #endif
18440 /* We use char because int might match the return type of a gcc2
18441    builtin and then its argument prototype would still apply.  */
18442 char pthread_create ();
18443 /* The GNU C library defines this for functions which it implements
18444     to always fail with ENOSYS.  Some functions are actually named
18445     something starting with __ and the normal name is an alias.  */
18446 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18447 choke me
18448 #else
18449 char (*f) () = pthread_create;
18450 #endif
18451 #ifdef __cplusplus
18452 }
18453 #endif
18454
18455 int
18456 main ()
18457 {
18458 return f != pthread_create;
18459   ;
18460   return 0;
18461 }
18462 _ACEOF
18463 rm -f conftest.$ac_objext conftest$ac_exeext
18464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18465   (eval $ac_link) 2>&5
18466   ac_status=$?
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); } &&
18469          { ac_try='test -s conftest$ac_exeext'
18470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471   (eval $ac_try) 2>&5
18472   ac_status=$?
18473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474   (exit $ac_status); }; }; then
18475   ac_cv_func_pthread_create=yes
18476 else
18477   echo "$as_me: failed program was:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18479
18480 ac_cv_func_pthread_create=no
18481 fi
18482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18483 fi
18484 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18485 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18486
18487
18488 fi
18489
18490
18491 fi
18492
18493
18494 fi
18495
18496
18497
18498 cat >>confdefs.h <<\_ACEOF
18499 #define FDLIBS 1
18500 _ACEOF
18501
18502
18503
18504 CFLAGS=${CFLAGS--O}
18505 LDFLAGS=${LDFLAGS--O}
18506 DB_LIBS="${SQL_LFLAGS}"
18507
18508 CPPFLAGS="$CPPFLAGS"
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523 OBJLIST=
18524
18525
18526 lld="lld"
18527 llu="llu"
18528
18529 WCFLAGS=
18530 WLDFLAGS=
18531
18532 #
18533 # Finally we set appropriate distribution specific
18534 #  variables and defaults
18535 #
18536 # PFILES are platform specific files
18537 PFILES="platforms/Makefile"
18538 PSCMD="ps -e"
18539 WIN32=
18540 MACOSX=
18541 hostname=`uname -n | cut -d '.' -f 1`
18542 case "$DISTNAME" in
18543 aix)
18544         DISTVER=`uname -r`
18545         PSCMD="ps -e -o pid,comm"
18546         PFILES="${PFILES} \
18547            platforms/aix/Makefile"
18548         TAPEDRIVE="/dev/rmt0.1"
18549   ;;
18550 alpha)
18551         DISTVER=`uname -r`
18552         PTHREAD_LIB="-lpthread -lexc"
18553         if test "${CC}" = "gcc" ; then
18554            lld="lld"
18555            llu="llu"
18556         else
18557            lld="ld"
18558            llu="lu"
18559         fi
18560         TAPEDRIVE="/dev/nrmt0"
18561   ;;
18562 bsdi)
18563         DISTVER=`uname -a |awk '{print $3}'`
18564         TAPEDRIVE="/dev/nrmt0"
18565         PTHREAD_LIB="-pthread"
18566         CFLAGS="${CFLAGS} -pthread"
18567         PSCMD="ps -x -o pid,command"
18568         lld="qd"
18569         llu="qu"
18570         PFILES="${PFILES} \
18571             platforms/bsdi/Makefile \
18572             platforms/bsdi/bacula-fd \
18573             platforms/bsdi/bacula-sd \
18574             platforms/bsdi/bacula-dir"
18575         largefile_support="yes"
18576   ;;
18577 cygwin)
18578         DISTVER=`uname -a |awk '{print $3}'`
18579         TAPEDRIVE="/dev/nrst0"
18580         WIN32=win32
18581         WCFLAGS="-mwindows"
18582         WLDFLAGS="-mwindows"
18583   ;;
18584 darwin)
18585         DISTVER=`uname -r`
18586         TAPEDRIVE="/dev/nst0"
18587         PSCMD="ps -e -o pid,command"
18588         MACOSX=macosx
18589         PFILES="${PFILES} \
18590            platforms/darwin/Makefile"
18591   ;;
18592 debian)
18593         DISTVER=`cat /etc/debian_version`
18594         TAPEDRIVE="/dev/nrst0"
18595         PSCMD="ps -e -o pid,command"
18596   ;;
18597 freebsd)
18598         DISTVER=`uname -a |awk '{print $3}'`
18599         VER=`echo $DISTVER | cut -c 1`
18600         if test x$VER = x4 ; then
18601            PTHREAD_LIB="-pthread"
18602            CFLAGS="${CFLAGS} -pthread"
18603         fi
18604         lld="qd"
18605         llu="qu"
18606         TAPEDRIVE="/dev/nrsa0"
18607         PSCMD="ps -x -o pid,command"
18608         PFILES="${PFILES} \
18609             platforms/freebsd/Makefile \
18610             platforms/freebsd/bacula-fd \
18611             platforms/freebsd/bacula-sd \
18612             platforms/freebsd/bacula-dir"
18613         largefile_support="yes"
18614   ;;
18615 hpux)
18616         PSCMD="UNIX95=1 ps -e -o pid,comm"
18617         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18618         DISTVER=`uname -r`
18619         TAPEDRIVE="/dev/rmt/0hnb"
18620   ;;
18621 irix)
18622         DISTVER=`uname -r`
18623         TAPEDRIVE="/dev/rmt/0cbn"
18624         PSCMD="ps -e -o pid,comm"
18625         PFILES="${PFILES} \
18626             platforms/irix/Makefile \
18627             platforms/irix/bacula-fd \
18628             platforms/irix/bacula-sd \
18629             platforms/irix/bacula-dir"
18630   ;;
18631 netbsd)
18632         DISTVER=`uname -a |awk '{print $3}'`
18633         lld="qd"
18634         llu="qu"
18635         TAPEDRIVE="/dev/nrst0"
18636         PSCMD="ps -a -o pid,command"
18637         PTHREAD_LIB="-pthread"
18638         CFLAGS="${CFLAGS} -pthread"
18639   ;;
18640 openbsd)
18641         DISTVER=`uname -a |awk '{print $3}'`
18642         lld="qd"
18643         llu="qu"
18644         TAPEDRIVE="/dev/nrst0"
18645         PSCMD="ps -a -o pid,command"
18646         PTHREAD_LIB="-pthread"
18647         CFLAGS="${CFLAGS} -pthread"
18648         PFILES="${PFILES} \
18649             platforms/openbsd/Makefile \
18650             platforms/openbsd/bacula-fd \
18651             platforms/openbsd/bacula-sd \
18652             platforms/openbsd/bacula-dir"
18653   ;;
18654 redhat)
18655         if test -f /etc/whitebox-release ; then
18656            f=/etc/whitebox-release
18657         else
18658            f=/etc/redhat-release
18659         fi
18660         if test `cat $f | grep release |\
18661                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18662            DISTVER="Enterprise "`cat $f | grep release |\
18663                     cut -f 6 -d ' '`
18664         else
18665             DISTVER=`cat /etc/redhat-release | grep release |\
18666                      cut -f 5 -d ' '`
18667         fi
18668         TAPEDRIVE="/dev/nst0"
18669         PSCMD="ps -e -o pid,command"
18670         PFILES="${PFILES} \
18671             platforms/redhat/Makefile \
18672             platforms/redhat/bacula-fd \
18673             platforms/redhat/bacula-sd \
18674             platforms/redhat/bacula-dir \
18675             platforms/redhat/bacula.spec \
18676             "
18677         hostname=`hostname -s`
18678   ;;
18679 mandrake)
18680         DISTVER=`cat /etc/mandrake-release | grep release |\
18681            cut -f 5 -d ' '`
18682         TAPEDRIVE="/dev/nst0"
18683         PSCMD="ps -e -o pid,command"
18684         PFILES="${PFILES} \
18685             platforms/mandrake/Makefile \
18686             platforms/mandrake/bacula-fd \
18687             platforms/mandrake/bacula-sd \
18688             platforms/mandrake/bacula-dir \
18689             platforms/mandrake/bacula.spec \
18690             "
18691   ;;
18692 gentoo)
18693         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18694         TAPEDRIVE="/dev/nst0"
18695         PSCMD="ps -e -o pid,command"
18696         PFILES="${PFILES} \
18697             platforms/gentoo/Makefile \
18698             platforms/gentoo/bacula-fd \
18699             platforms/gentoo/bacula-sd \
18700             platforms/gentoo/bacula-dir"
18701   ;;
18702 slackware)
18703         DISTVER=`cat /etc/slackware-version`
18704         TAPEDRIVE="/dev/nst0"
18705         PSCMD="ps -e -o pid,command"
18706         PFILES="${PFILES} \
18707             platforms/slackware/Makefile \
18708             platforms/slackware/rc.bacula-fd \
18709             platforms/slackware/rc.bacula-sd \
18710             platforms/slackware/rc.bacula-dir\
18711             platforms/slackware/functions.bacula"
18712   ;;
18713 solaris)
18714         DISTVER=`uname -r`
18715         TAPEDRIVE="/dev/rmt/0cbn"
18716         PSCMD="ps -e -o pid,comm"
18717         PFILES="${PFILES} \
18718             platforms/solaris/Makefile \
18719             platforms/solaris/bacula-fd \
18720             platforms/solaris/bacula-sd \
18721             platforms/solaris/bacula-dir"
18722         if test x$DISTVER = x5.6 ; then
18723             cat >>confdefs.h <<\_ACEOF
18724 #define HAVE_OLD_SOCKOPT 1
18725 _ACEOF
18726
18727         fi
18728   ;;
18729 suse)
18730         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18731             cut -f 3 -d ' '`
18732         TAPEDRIVE="/dev/nst0"
18733         PSCMD="ps -e -o pid,command"
18734         PFILES="${PFILES} \
18735             platforms/suse/Makefile \
18736             platforms/suse/bacula-fd \
18737             platforms/suse/bacula-sd \
18738             platforms/suse/bacula-dir \
18739             platforms/suse/bacula \
18740             platforms/suse/bacula.spec"
18741   ;;
18742 suse5)
18743         DISTNAME=suse
18744         DISTVER=5.x
18745         TAPEDRIVE="/dev/nst0"
18746         PSCMD="ps -e -o pid,command"
18747         PFILES="${PFILES} \
18748             platforms/suse/Makefile \
18749             platforms/suse/bacula-fd \
18750             platforms/suse/bacula-sd \
18751             platforms/suse/bacula-dir"
18752   ;;
18753 unknown)
18754         DISTVER=unknown
18755         TAPEDRIVE="/dev/nst0"
18756   ;;
18757 *)
18758   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18759   ;;
18760 esac
18761
18762
18763
18764 LIBS="$PTHREAD_LIB $LIBS"
18765
18766 cat >>confdefs.h <<_ACEOF
18767 #define lld "$lld"
18768 _ACEOF
18769
18770 cat >>confdefs.h <<_ACEOF
18771 #define llu "$llu"
18772 _ACEOF
18773
18774
18775
18776
18777
18778
18779
18780
18781 MCOMMON=./autoconf/Make.common
18782
18783
18784 if test "x${subsysdir}" = "x${sbindir}" ; then
18785    echo " "
18786    echo " "
18787    echo "You have set both --sbindir and --with-subsys-dir"
18788    echo "  equal to: ${subsysdir} "
18789    echo "This is not permitted. Please reconfigure."
18790    echo " "
18791    echo "Aborting configuration ..."
18792    echo " "
18793    echo " "
18794    exit 1
18795 fi
18796
18797                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18798           ac_config_commands="$ac_config_commands default"
18799 cat >confcache <<\_ACEOF
18800 # This file is a shell script that caches the results of configure
18801 # tests run on this system so they can be shared between configure
18802 # scripts and configure runs, see configure's option --config-cache.
18803 # It is not useful on other systems.  If it contains results you don't
18804 # want to keep, you may remove or edit it.
18805 #
18806 # config.status only pays attention to the cache file if you give it
18807 # the --recheck option to rerun configure.
18808 #
18809 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18810 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18811 # following values.
18812
18813 _ACEOF
18814
18815 # The following way of writing the cache mishandles newlines in values,
18816 # but we know of no workaround that is simple, portable, and efficient.
18817 # So, don't put newlines in cache variables' values.
18818 # Ultrix sh set writes to stderr and can't be redirected directly,
18819 # and sets the high bit in the cache file unless we assign to the vars.
18820 {
18821   (set) 2>&1 |
18822     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18823     *ac_space=\ *)
18824       # `set' does not quote correctly, so add quotes (double-quote
18825       # substitution turns \\\\ into \\, and sed turns \\ into \).
18826       sed -n \
18827         "s/'/'\\\\''/g;
18828           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18829       ;;
18830     *)
18831       # `set' quotes correctly as required by POSIX, so do not add quotes.
18832       sed -n \
18833         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18834       ;;
18835     esac;
18836 } |
18837   sed '
18838      t clear
18839      : clear
18840      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18841      t end
18842      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18843      : end' >>confcache
18844 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18845   if test -w $cache_file; then
18846     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18847     cat confcache >$cache_file
18848   else
18849     echo "not updating unwritable cache $cache_file"
18850   fi
18851 fi
18852 rm -f confcache
18853
18854 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18855 # Let make expand exec_prefix.
18856 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18857
18858 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18859 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18860 # trailing colons and then remove the whole line if VPATH becomes empty
18861 # (actually we leave an empty line to preserve line numbers).
18862 if test "x$srcdir" = x.; then
18863   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18864 s/:*\$(srcdir):*/:/;
18865 s/:*\${srcdir}:*/:/;
18866 s/:*@srcdir@:*/:/;
18867 s/^\([^=]*=[    ]*\):*/\1/;
18868 s/:*$//;
18869 s/^[^=]*=[      ]*$//;
18870 }'
18871 fi
18872
18873 DEFS=-DHAVE_CONFIG_H
18874
18875 ac_libobjs=
18876 ac_ltlibobjs=
18877 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18878   # 1. Remove the extension, and $U if already installed.
18879   ac_i=`echo "$ac_i" |
18880          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18881   # 2. Add them.
18882   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18883   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18884 done
18885 LIBOBJS=$ac_libobjs
18886
18887 LTLIBOBJS=$ac_ltlibobjs
18888
18889
18890
18891 : ${CONFIG_STATUS=./config.status}
18892 ac_clean_files_save=$ac_clean_files
18893 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18894 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18895 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18896 cat >$CONFIG_STATUS <<_ACEOF
18897 #! $SHELL
18898 # Generated by $as_me.
18899 # Run this file to recreate the current configuration.
18900 # Compiler output produced by configure, useful for debugging
18901 # configure, is in config.log if it exists.
18902
18903 debug=false
18904 ac_cs_recheck=false
18905 ac_cs_silent=false
18906 SHELL=\${CONFIG_SHELL-$SHELL}
18907 _ACEOF
18908
18909 cat >>$CONFIG_STATUS <<\_ACEOF
18910 ## --------------------- ##
18911 ## M4sh Initialization.  ##
18912 ## --------------------- ##
18913
18914 # Be Bourne compatible
18915 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18916   emulate sh
18917   NULLCMD=:
18918   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18919   # is contrary to our usage.  Disable this feature.
18920   alias -g '${1+"$@"}'='"$@"'
18921 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18922   set -o posix
18923 fi
18924
18925 # Support unset when possible.
18926 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18927   as_unset=unset
18928 else
18929   as_unset=false
18930 fi
18931
18932
18933 # Work around bugs in pre-3.0 UWIN ksh.
18934 $as_unset ENV MAIL MAILPATH
18935 PS1='$ '
18936 PS2='> '
18937 PS4='+ '
18938
18939 # NLS nuisances.
18940 for as_var in \
18941   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18942   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18943   LC_TELEPHONE LC_TIME
18944 do
18945   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18946     eval $as_var=C; export $as_var
18947   else
18948     $as_unset $as_var
18949   fi
18950 done
18951
18952 # Required to use basename.
18953 if expr a : '\(a\)' >/dev/null 2>&1; then
18954   as_expr=expr
18955 else
18956   as_expr=false
18957 fi
18958
18959 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18960   as_basename=basename
18961 else
18962   as_basename=false
18963 fi
18964
18965
18966 # Name of the executable.
18967 as_me=`$as_basename "$0" ||
18968 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18969          X"$0" : 'X\(//\)$' \| \
18970          X"$0" : 'X\(/\)$' \| \
18971          .     : '\(.\)' 2>/dev/null ||
18972 echo X/"$0" |
18973     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18974           /^X\/\(\/\/\)$/{ s//\1/; q; }
18975           /^X\/\(\/\).*/{ s//\1/; q; }
18976           s/.*/./; q'`
18977
18978
18979 # PATH needs CR, and LINENO needs CR and PATH.
18980 # Avoid depending upon Character Ranges.
18981 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18982 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18983 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18984 as_cr_digits='0123456789'
18985 as_cr_alnum=$as_cr_Letters$as_cr_digits
18986
18987 # The user is always right.
18988 if test "${PATH_SEPARATOR+set}" != set; then
18989   echo "#! /bin/sh" >conf$$.sh
18990   echo  "exit 0"   >>conf$$.sh
18991   chmod +x conf$$.sh
18992   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18993     PATH_SEPARATOR=';'
18994   else
18995     PATH_SEPARATOR=:
18996   fi
18997   rm -f conf$$.sh
18998 fi
18999
19000
19001   as_lineno_1=$LINENO
19002   as_lineno_2=$LINENO
19003   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19004   test "x$as_lineno_1" != "x$as_lineno_2" &&
19005   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19006   # Find who we are.  Look in the path if we contain no path at all
19007   # relative or not.
19008   case $0 in
19009     *[\\/]* ) as_myself=$0 ;;
19010     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19011 for as_dir in $PATH
19012 do
19013   IFS=$as_save_IFS
19014   test -z "$as_dir" && as_dir=.
19015   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19016 done
19017
19018        ;;
19019   esac
19020   # We did not find ourselves, most probably we were run as `sh COMMAND'
19021   # in which case we are not to be found in the path.
19022   if test "x$as_myself" = x; then
19023     as_myself=$0
19024   fi
19025   if test ! -f "$as_myself"; then
19026     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19027 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19028    { (exit 1); exit 1; }; }
19029   fi
19030   case $CONFIG_SHELL in
19031   '')
19032     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19033 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19034 do
19035   IFS=$as_save_IFS
19036   test -z "$as_dir" && as_dir=.
19037   for as_base in sh bash ksh sh5; do
19038          case $as_dir in
19039          /*)
19040            if ("$as_dir/$as_base" -c '
19041   as_lineno_1=$LINENO
19042   as_lineno_2=$LINENO
19043   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19044   test "x$as_lineno_1" != "x$as_lineno_2" &&
19045   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19046              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19047              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19048              CONFIG_SHELL=$as_dir/$as_base
19049              export CONFIG_SHELL
19050              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19051            fi;;
19052          esac
19053        done
19054 done
19055 ;;
19056   esac
19057
19058   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19059   # uniformly replaced by the line number.  The first 'sed' inserts a
19060   # line-number line before each line; the second 'sed' does the real
19061   # work.  The second script uses 'N' to pair each line-number line
19062   # with the numbered line, and appends trailing '-' during
19063   # substitution so that $LINENO is not a special case at line end.
19064   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19065   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19066   sed '=' <$as_myself |
19067     sed '
19068       N
19069       s,$,-,
19070       : loop
19071       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19072       t loop
19073       s,-$,,
19074       s,^['$as_cr_digits']*\n,,
19075     ' >$as_me.lineno &&
19076   chmod +x $as_me.lineno ||
19077     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19078 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19079    { (exit 1); exit 1; }; }
19080
19081   # Don't try to exec as it changes $[0], causing all sort of problems
19082   # (the dirname of $[0] is not the place where we might find the
19083   # original and so on.  Autoconf is especially sensible to this).
19084   . ./$as_me.lineno
19085   # Exit status is that of the last command.
19086   exit
19087 }
19088
19089
19090 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19091   *c*,-n*) ECHO_N= ECHO_C='
19092 ' ECHO_T='      ' ;;
19093   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19094   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19095 esac
19096
19097 if expr a : '\(a\)' >/dev/null 2>&1; then
19098   as_expr=expr
19099 else
19100   as_expr=false
19101 fi
19102
19103 rm -f conf$$ conf$$.exe conf$$.file
19104 echo >conf$$.file
19105 if ln -s conf$$.file conf$$ 2>/dev/null; then
19106   # We could just check for DJGPP; but this test a) works b) is more generic
19107   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19108   if test -f conf$$.exe; then
19109     # Don't use ln at all; we don't have any links
19110     as_ln_s='cp -p'
19111   else
19112     as_ln_s='ln -s'
19113   fi
19114 elif ln conf$$.file conf$$ 2>/dev/null; then
19115   as_ln_s=ln
19116 else
19117   as_ln_s='cp -p'
19118 fi
19119 rm -f conf$$ conf$$.exe conf$$.file
19120
19121 if mkdir -p . 2>/dev/null; then
19122   as_mkdir_p=:
19123 else
19124   as_mkdir_p=false
19125 fi
19126
19127 as_executable_p="test -f"
19128
19129 # Sed expression to map a string onto a valid CPP name.
19130 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19131
19132 # Sed expression to map a string onto a valid variable name.
19133 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19134
19135
19136 # IFS
19137 # We need space, tab and new line, in precisely that order.
19138 as_nl='
19139 '
19140 IFS="   $as_nl"
19141
19142 # CDPATH.
19143 $as_unset CDPATH
19144
19145 exec 6>&1
19146
19147 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19148 # report actual input values of CONFIG_FILES etc. instead of their
19149 # values after options handling.  Logging --version etc. is OK.
19150 exec 5>>config.log
19151 {
19152   echo
19153   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19154 ## Running $as_me. ##
19155 _ASBOX
19156 } >&5
19157 cat >&5 <<_CSEOF
19158
19159 This file was extended by $as_me, which was
19160 generated by GNU Autoconf 2.57.  Invocation command line was
19161
19162   CONFIG_FILES    = $CONFIG_FILES
19163   CONFIG_HEADERS  = $CONFIG_HEADERS
19164   CONFIG_LINKS    = $CONFIG_LINKS
19165   CONFIG_COMMANDS = $CONFIG_COMMANDS
19166   $ $0 $@
19167
19168 _CSEOF
19169 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19170 echo >&5
19171 _ACEOF
19172
19173 # Files that config.status was made for.
19174 if test -n "$ac_config_files"; then
19175   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19176 fi
19177
19178 if test -n "$ac_config_headers"; then
19179   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19180 fi
19181
19182 if test -n "$ac_config_links"; then
19183   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19184 fi
19185
19186 if test -n "$ac_config_commands"; then
19187   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19188 fi
19189
19190 cat >>$CONFIG_STATUS <<\_ACEOF
19191
19192 ac_cs_usage="\
19193 \`$as_me' instantiates files from templates according to the
19194 current configuration.
19195
19196 Usage: $0 [OPTIONS] [FILE]...
19197
19198   -h, --help       print this help, then exit
19199   -V, --version    print version number, then exit
19200   -q, --quiet      do not print progress messages
19201   -d, --debug      don't remove temporary files
19202       --recheck    update $as_me by reconfiguring in the same conditions
19203   --file=FILE[:TEMPLATE]
19204                    instantiate the configuration file FILE
19205   --header=FILE[:TEMPLATE]
19206                    instantiate the configuration header FILE
19207
19208 Configuration files:
19209 $config_files
19210
19211 Configuration headers:
19212 $config_headers
19213
19214 Configuration commands:
19215 $config_commands
19216
19217 Report bugs to <bug-autoconf@gnu.org>."
19218 _ACEOF
19219
19220 cat >>$CONFIG_STATUS <<_ACEOF
19221 ac_cs_version="\\
19222 config.status
19223 configured by $0, generated by GNU Autoconf 2.57,
19224   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19225
19226 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19227 Free Software Foundation, Inc.
19228 This config.status script is free software; the Free Software Foundation
19229 gives unlimited permission to copy, distribute and modify it."
19230 srcdir=$srcdir
19231 INSTALL="$INSTALL"
19232 _ACEOF
19233
19234 cat >>$CONFIG_STATUS <<\_ACEOF
19235 # If no file are specified by the user, then we need to provide default
19236 # value.  By we need to know if files were specified by the user.
19237 ac_need_defaults=:
19238 while test $# != 0
19239 do
19240   case $1 in
19241   --*=*)
19242     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19243     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19244     ac_shift=:
19245     ;;
19246   -*)
19247     ac_option=$1
19248     ac_optarg=$2
19249     ac_shift=shift
19250     ;;
19251   *) # This is not an option, so the user has probably given explicit
19252      # arguments.
19253      ac_option=$1
19254      ac_need_defaults=false;;
19255   esac
19256
19257   case $ac_option in
19258   # Handling of the options.
19259 _ACEOF
19260 cat >>$CONFIG_STATUS <<\_ACEOF
19261   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19262     ac_cs_recheck=: ;;
19263   --version | --vers* | -V )
19264     echo "$ac_cs_version"; exit 0 ;;
19265   --he | --h)
19266     # Conflict between --help and --header
19267     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19268 Try \`$0 --help' for more information." >&5
19269 echo "$as_me: error: ambiguous option: $1
19270 Try \`$0 --help' for more information." >&2;}
19271    { (exit 1); exit 1; }; };;
19272   --help | --hel | -h )
19273     echo "$ac_cs_usage"; exit 0 ;;
19274   --debug | --d* | -d )
19275     debug=: ;;
19276   --file | --fil | --fi | --f )
19277     $ac_shift
19278     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19279     ac_need_defaults=false;;
19280   --header | --heade | --head | --hea )
19281     $ac_shift
19282     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19283     ac_need_defaults=false;;
19284   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19285   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19286     ac_cs_silent=: ;;
19287
19288   # This is an error.
19289   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19290 Try \`$0 --help' for more information." >&5
19291 echo "$as_me: error: unrecognized option: $1
19292 Try \`$0 --help' for more information." >&2;}
19293    { (exit 1); exit 1; }; } ;;
19294
19295   *) ac_config_targets="$ac_config_targets $1" ;;
19296
19297   esac
19298   shift
19299 done
19300
19301 ac_configure_extra_args=
19302
19303 if $ac_cs_silent; then
19304   exec 6>/dev/null
19305   ac_configure_extra_args="$ac_configure_extra_args --silent"
19306 fi
19307
19308 _ACEOF
19309 cat >>$CONFIG_STATUS <<_ACEOF
19310 if \$ac_cs_recheck; then
19311   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19312   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19313 fi
19314
19315 _ACEOF
19316
19317
19318
19319
19320
19321 cat >>$CONFIG_STATUS <<\_ACEOF
19322 for ac_config_target in $ac_config_targets
19323 do
19324   case "$ac_config_target" in
19325   # Handling of arguments.
19326   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19327   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19328   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19329   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19330   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19331   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19332   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19333   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19334   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19335   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19336   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19337   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19338   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19339   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19340   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19341   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19342   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19343   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19344   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19345   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19346   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19347   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19348   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19349   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19350   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19351   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19352   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19353   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19354   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19355   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19356   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19357   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19358   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19359   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19360   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19361   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19362   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19363   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19364   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19365   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19366   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19367   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19368   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19369   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19370   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19371   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19372   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19373   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19374   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19375   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19376   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19377   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19378   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19379   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19380   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19381   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19382   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19383   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19384   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19385   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19386   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19387   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19388   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19389   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19390   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19391   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19392   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19393   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19394   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19395   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19396   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19397   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19398   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19399   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19400   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19401   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19402   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19403   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19404   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19405   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19406   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19407   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19408   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19409   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19410   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19411   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19412   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19413   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19414   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19415   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19416   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19417   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19418 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19419    { (exit 1); exit 1; }; };;
19420   esac
19421 done
19422
19423 # If the user did not use the arguments to specify the items to instantiate,
19424 # then the envvar interface is used.  Set only those that are not.
19425 # We use the long form for the default assignment because of an extremely
19426 # bizarre bug on SunOS 4.1.3.
19427 if $ac_need_defaults; then
19428   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19429   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19430   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19431 fi
19432
19433 # Have a temporary directory for convenience.  Make it in the build tree
19434 # simply because there is no reason to put it here, and in addition,
19435 # creating and moving files from /tmp can sometimes cause problems.
19436 # Create a temporary directory, and hook for its removal unless debugging.
19437 $debug ||
19438 {
19439   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19440   trap '{ (exit 1); exit 1; }' 1 2 13 15
19441 }
19442
19443 # Create a (secure) tmp directory for tmp files.
19444
19445 {
19446   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19447   test -n "$tmp" && test -d "$tmp"
19448 }  ||
19449 {
19450   tmp=./confstat$$-$RANDOM
19451   (umask 077 && mkdir $tmp)
19452 } ||
19453 {
19454    echo "$me: cannot create a temporary directory in ." >&2
19455    { (exit 1); exit 1; }
19456 }
19457
19458 _ACEOF
19459
19460 cat >>$CONFIG_STATUS <<_ACEOF
19461
19462 #
19463 # CONFIG_FILES section.
19464 #
19465
19466 # No need to generate the scripts if there are no CONFIG_FILES.
19467 # This happens for instance when ./config.status config.h
19468 if test -n "\$CONFIG_FILES"; then
19469   # Protect against being on the right side of a sed subst in config.status.
19470   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19471    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19472 s,@SHELL@,$SHELL,;t t
19473 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19474 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19475 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19476 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19477 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19478 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19479 s,@exec_prefix@,$exec_prefix,;t t
19480 s,@prefix@,$prefix,;t t
19481 s,@program_transform_name@,$program_transform_name,;t t
19482 s,@bindir@,$bindir,;t t
19483 s,@sbindir@,$sbindir,;t t
19484 s,@libexecdir@,$libexecdir,;t t
19485 s,@datadir@,$datadir,;t t
19486 s,@sysconfdir@,$sysconfdir,;t t
19487 s,@sharedstatedir@,$sharedstatedir,;t t
19488 s,@localstatedir@,$localstatedir,;t t
19489 s,@libdir@,$libdir,;t t
19490 s,@includedir@,$includedir,;t t
19491 s,@oldincludedir@,$oldincludedir,;t t
19492 s,@infodir@,$infodir,;t t
19493 s,@mandir@,$mandir,;t t
19494 s,@build_alias@,$build_alias,;t t
19495 s,@host_alias@,$host_alias,;t t
19496 s,@target_alias@,$target_alias,;t t
19497 s,@DEFS@,$DEFS,;t t
19498 s,@ECHO_C@,$ECHO_C,;t t
19499 s,@ECHO_N@,$ECHO_N,;t t
19500 s,@ECHO_T@,$ECHO_T,;t t
19501 s,@LIBS@,$LIBS,;t t
19502 s,@BUILD_DIR@,$BUILD_DIR,;t t
19503 s,@TRUEPRG@,$TRUEPRG,;t t
19504 s,@FALSEPRG@,$FALSEPRG,;t t
19505 s,@VERSION@,$VERSION,;t t
19506 s,@DATE@,$DATE,;t t
19507 s,@LSMDATE@,$LSMDATE,;t t
19508 s,@CC@,$CC,;t t
19509 s,@CFLAGS@,$CFLAGS,;t t
19510 s,@LDFLAGS@,$LDFLAGS,;t t
19511 s,@CPPFLAGS@,$CPPFLAGS,;t t
19512 s,@ac_ct_CC@,$ac_ct_CC,;t t
19513 s,@EXEEXT@,$EXEEXT,;t t
19514 s,@OBJEXT@,$OBJEXT,;t t
19515 s,@CXX@,$CXX,;t t
19516 s,@CXXFLAGS@,$CXXFLAGS,;t t
19517 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19518 s,@CPP@,$CPP,;t t
19519 s,@EGREP@,$EGREP,;t t
19520 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19521 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19522 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19523 s,@RANLIB@,$RANLIB,;t t
19524 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19525 s,@MV@,$MV,;t t
19526 s,@RM@,$RM,;t t
19527 s,@CP@,$CP,;t t
19528 s,@SED@,$SED,;t t
19529 s,@AWK@,$AWK,;t t
19530 s,@ECHO@,$ECHO,;t t
19531 s,@CMP@,$CMP,;t t
19532 s,@TBL@,$TBL,;t t
19533 s,@AR@,$AR,;t t
19534 s,@OPENSSL@,$OPENSSL,;t t
19535 s,@MTX@,$MTX,;t t
19536 s,@PKGCONFIG@,$PKGCONFIG,;t t
19537 s,@WXCONFIG@,$WXCONFIG,;t t
19538 s,@ARFLAGS@,$ARFLAGS,;t t
19539 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19540 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19541 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19542 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19543 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19544 s,@build@,$build,;t t
19545 s,@build_cpu@,$build_cpu,;t t
19546 s,@build_vendor@,$build_vendor,;t t
19547 s,@build_os@,$build_os,;t t
19548 s,@host@,$host,;t t
19549 s,@host_cpu@,$host_cpu,;t t
19550 s,@host_vendor@,$host_vendor,;t t
19551 s,@host_os@,$host_os,;t t
19552 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19553 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19554 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19555 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19556 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19557 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19558 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19559 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19560 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19561 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19562 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19563 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19564 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19565 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19566 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19567 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19568 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19569 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19570 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19571 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19572 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19573 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19574 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19575 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19576 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19577 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19578 s,@MSGFMT@,$MSGFMT,;t t
19579 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19580 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19581 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19582 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19583 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19584 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19585 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19586 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19587 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19588 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19589 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19590 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19591 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19592 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19593 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19594 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19595 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19596 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19597 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19598 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19599 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19600 s,@GNOME_DIR@,$GNOME_DIR,;t t
19601 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19602 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19603 s,@WX_DIR@,$WX_DIR,;t t
19604 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
19605 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
19606 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
19607 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19608 s,@STATIC_FD@,$STATIC_FD,;t t
19609 s,@STATIC_SD@,$STATIC_SD,;t t
19610 s,@STATIC_DIR@,$STATIC_DIR,;t t
19611 s,@STATIC_CONS@,$STATIC_CONS,;t t
19612 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19613 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19614 s,@ALL_DIRS@,$ALL_DIRS,;t t
19615 s,@CONS_INC@,$CONS_INC,;t t
19616 s,@CONS_OBJ@,$CONS_OBJ,;t t
19617 s,@CONS_SRC@,$CONS_SRC,;t t
19618 s,@CONS_LIBS@,$CONS_LIBS,;t t
19619 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19620 s,@READLINE_SRC@,$READLINE_SRC,;t t
19621 s,@working_dir@,$working_dir,;t t
19622 s,@scriptdir@,$scriptdir,;t t
19623 s,@dump_email@,$dump_email,;t t
19624 s,@job_email@,$job_email,;t t
19625 s,@smtp_host@,$smtp_host,;t t
19626 s,@piddir@,$piddir,;t t
19627 s,@subsysdir@,$subsysdir,;t t
19628 s,@baseport@,$baseport,;t t
19629 s,@dir_port@,$dir_port,;t t
19630 s,@fd_port@,$fd_port,;t t
19631 s,@sd_port@,$sd_port,;t t
19632 s,@dir_password@,$dir_password,;t t
19633 s,@fd_password@,$fd_password,;t t
19634 s,@sd_password@,$sd_password,;t t
19635 s,@dir_user@,$dir_user,;t t
19636 s,@dir_group@,$dir_group,;t t
19637 s,@sd_user@,$sd_user,;t t
19638 s,@sd_group@,$sd_group,;t t
19639 s,@fd_user@,$fd_user,;t t
19640 s,@fd_group@,$fd_group,;t t
19641 s,@SBINPERM@,$SBINPERM,;t t
19642 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19643 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19644 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19645 s,@cats@,$cats,;t t
19646 s,@DB_NAME@,$DB_NAME,;t t
19647 s,@GETCONF@,$GETCONF,;t t
19648 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19649 s,@X_CFLAGS@,$X_CFLAGS,;t t
19650 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19651 s,@X_LIBS@,$X_LIBS,;t t
19652 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19653 s,@LIBOBJS@,$LIBOBJS,;t t
19654 s,@ALLOCA@,$ALLOCA,;t t
19655 s,@FDLIBS@,$FDLIBS,;t t
19656 s,@DEBUG@,$DEBUG,;t t
19657 s,@DINCLUDE@,$DINCLUDE,;t t
19658 s,@DLIB@,$DLIB,;t t
19659 s,@DB_LIBS@,$DB_LIBS,;t t
19660 s,@WCFLAGS@,$WCFLAGS,;t t
19661 s,@WLDFLAGS@,$WLDFLAGS,;t t
19662 s,@OBJLIST@,$OBJLIST,;t t
19663 s,@hostname@,$hostname,;t t
19664 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19665 s,@PSCMD@,$PSCMD,;t t
19666 s,@WIN32@,$WIN32,;t t
19667 s,@MACOSX@,$MACOSX,;t t
19668 s,@DISTNAME@,$DISTNAME,;t t
19669 s,@DISTVER@,$DISTVER,;t t
19670 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19671 /@MCOMMON@/r $MCOMMON
19672 s,@MCOMMON@,,;t t
19673 CEOF
19674
19675 _ACEOF
19676
19677   cat >>$CONFIG_STATUS <<\_ACEOF
19678   # Split the substitutions into bite-sized pieces for seds with
19679   # small command number limits, like on Digital OSF/1 and HP-UX.
19680   ac_max_sed_lines=48
19681   ac_sed_frag=1 # Number of current file.
19682   ac_beg=1 # First line for current file.
19683   ac_end=$ac_max_sed_lines # Line after last line for current file.
19684   ac_more_lines=:
19685   ac_sed_cmds=
19686   while $ac_more_lines; do
19687     if test $ac_beg -gt 1; then
19688       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19689     else
19690       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19691     fi
19692     if test ! -s $tmp/subs.frag; then
19693       ac_more_lines=false
19694     else
19695       # The purpose of the label and of the branching condition is to
19696       # speed up the sed processing (if there are no `@' at all, there
19697       # is no need to browse any of the substitutions).
19698       # These are the two extra sed commands mentioned above.
19699       (echo ':t
19700   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19701       if test -z "$ac_sed_cmds"; then
19702         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19703       else
19704         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19705       fi
19706       ac_sed_frag=`expr $ac_sed_frag + 1`
19707       ac_beg=$ac_end
19708       ac_end=`expr $ac_end + $ac_max_sed_lines`
19709     fi
19710   done
19711   if test -z "$ac_sed_cmds"; then
19712     ac_sed_cmds=cat
19713   fi
19714 fi # test -n "$CONFIG_FILES"
19715
19716 _ACEOF
19717 cat >>$CONFIG_STATUS <<\_ACEOF
19718 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19719   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19720   case $ac_file in
19721   - | *:- | *:-:* ) # input from stdin
19722         cat >$tmp/stdin
19723         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19724         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19725   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19726         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19727   * )   ac_file_in=$ac_file.in ;;
19728   esac
19729
19730   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19731   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19732 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19733          X"$ac_file" : 'X\(//\)[^/]' \| \
19734          X"$ac_file" : 'X\(//\)$' \| \
19735          X"$ac_file" : 'X\(/\)' \| \
19736          .     : '\(.\)' 2>/dev/null ||
19737 echo X"$ac_file" |
19738     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19739           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19740           /^X\(\/\/\)$/{ s//\1/; q; }
19741           /^X\(\/\).*/{ s//\1/; q; }
19742           s/.*/./; q'`
19743   { if $as_mkdir_p; then
19744     mkdir -p "$ac_dir"
19745   else
19746     as_dir="$ac_dir"
19747     as_dirs=
19748     while test ! -d "$as_dir"; do
19749       as_dirs="$as_dir $as_dirs"
19750       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19752          X"$as_dir" : 'X\(//\)[^/]' \| \
19753          X"$as_dir" : 'X\(//\)$' \| \
19754          X"$as_dir" : 'X\(/\)' \| \
19755          .     : '\(.\)' 2>/dev/null ||
19756 echo X"$as_dir" |
19757     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19758           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19759           /^X\(\/\/\)$/{ s//\1/; q; }
19760           /^X\(\/\).*/{ s//\1/; q; }
19761           s/.*/./; q'`
19762     done
19763     test ! -n "$as_dirs" || mkdir $as_dirs
19764   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19765 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19766    { (exit 1); exit 1; }; }; }
19767
19768   ac_builddir=.
19769
19770 if test "$ac_dir" != .; then
19771   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19772   # A "../" for each directory in $ac_dir_suffix.
19773   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19774 else
19775   ac_dir_suffix= ac_top_builddir=
19776 fi
19777
19778 case $srcdir in
19779   .)  # No --srcdir option.  We are building in place.
19780     ac_srcdir=.
19781     if test -z "$ac_top_builddir"; then
19782        ac_top_srcdir=.
19783     else
19784        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19785     fi ;;
19786   [\\/]* | ?:[\\/]* )  # Absolute path.
19787     ac_srcdir=$srcdir$ac_dir_suffix;
19788     ac_top_srcdir=$srcdir ;;
19789   *) # Relative path.
19790     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19791     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19792 esac
19793 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19794 # absolute.
19795 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19796 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19797 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19798 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19799
19800
19801   case $INSTALL in
19802   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19803   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19804   esac
19805
19806   if test x"$ac_file" != x-; then
19807     { echo "$as_me:$LINENO: creating $ac_file" >&5
19808 echo "$as_me: creating $ac_file" >&6;}
19809     rm -f "$ac_file"
19810   fi
19811   # Let's still pretend it is `configure' which instantiates (i.e., don't
19812   # use $as_me), people would be surprised to read:
19813   #    /* config.h.  Generated by config.status.  */
19814   if test x"$ac_file" = x-; then
19815     configure_input=
19816   else
19817     configure_input="$ac_file.  "
19818   fi
19819   configure_input=$configure_input"Generated from `echo $ac_file_in |
19820                                      sed 's,.*/,,'` by configure."
19821
19822   # First look for the input files in the build tree, otherwise in the
19823   # src tree.
19824   ac_file_inputs=`IFS=:
19825     for f in $ac_file_in; do
19826       case $f in
19827       -) echo $tmp/stdin ;;
19828       [\\/$]*)
19829          # Absolute (can't be DOS-style, as IFS=:)
19830          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19831 echo "$as_me: error: cannot find input file: $f" >&2;}
19832    { (exit 1); exit 1; }; }
19833          echo $f;;
19834       *) # Relative
19835          if test -f "$f"; then
19836            # Build tree
19837            echo $f
19838          elif test -f "$srcdir/$f"; then
19839            # Source tree
19840            echo $srcdir/$f
19841          else
19842            # /dev/null tree
19843            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19844 echo "$as_me: error: cannot find input file: $f" >&2;}
19845    { (exit 1); exit 1; }; }
19846          fi;;
19847       esac
19848     done` || { (exit 1); exit 1; }
19849 _ACEOF
19850 cat >>$CONFIG_STATUS <<_ACEOF
19851   sed "$ac_vpsub
19852 $extrasub
19853 _ACEOF
19854 cat >>$CONFIG_STATUS <<\_ACEOF
19855 :t
19856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19857 s,@configure_input@,$configure_input,;t t
19858 s,@srcdir@,$ac_srcdir,;t t
19859 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19860 s,@top_srcdir@,$ac_top_srcdir,;t t
19861 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19862 s,@builddir@,$ac_builddir,;t t
19863 s,@abs_builddir@,$ac_abs_builddir,;t t
19864 s,@top_builddir@,$ac_top_builddir,;t t
19865 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19866 s,@INSTALL@,$ac_INSTALL,;t t
19867 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19868   rm -f $tmp/stdin
19869   if test x"$ac_file" != x-; then
19870     mv $tmp/out $ac_file
19871   else
19872     cat $tmp/out
19873     rm -f $tmp/out
19874   fi
19875
19876 done
19877 _ACEOF
19878 cat >>$CONFIG_STATUS <<\_ACEOF
19879
19880 #
19881 # CONFIG_HEADER section.
19882 #
19883
19884 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19885 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19886 #
19887 # ac_d sets the value in "#define NAME VALUE" lines.
19888 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19889 ac_dB='[        ].*$,\1#\2'
19890 ac_dC=' '
19891 ac_dD=',;t'
19892 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19893 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19894 ac_uB='$,\1#\2define\3'
19895 ac_uC=' '
19896 ac_uD=',;t'
19897
19898 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19899   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19900   case $ac_file in
19901   - | *:- | *:-:* ) # input from stdin
19902         cat >$tmp/stdin
19903         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19904         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19905   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19906         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19907   * )   ac_file_in=$ac_file.in ;;
19908   esac
19909
19910   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19911 echo "$as_me: creating $ac_file" >&6;}
19912
19913   # First look for the input files in the build tree, otherwise in the
19914   # src tree.
19915   ac_file_inputs=`IFS=:
19916     for f in $ac_file_in; do
19917       case $f in
19918       -) echo $tmp/stdin ;;
19919       [\\/$]*)
19920          # Absolute (can't be DOS-style, as IFS=:)
19921          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19922 echo "$as_me: error: cannot find input file: $f" >&2;}
19923    { (exit 1); exit 1; }; }
19924          echo $f;;
19925       *) # Relative
19926          if test -f "$f"; then
19927            # Build tree
19928            echo $f
19929          elif test -f "$srcdir/$f"; then
19930            # Source tree
19931            echo $srcdir/$f
19932          else
19933            # /dev/null tree
19934            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19935 echo "$as_me: error: cannot find input file: $f" >&2;}
19936    { (exit 1); exit 1; }; }
19937          fi;;
19938       esac
19939     done` || { (exit 1); exit 1; }
19940   # Remove the trailing spaces.
19941   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19942
19943 _ACEOF
19944
19945 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19946 # `conftest.undefs', that substitutes the proper values into
19947 # config.h.in to produce config.h.  The first handles `#define'
19948 # templates, and the second `#undef' templates.
19949 # And first: Protect against being on the right side of a sed subst in
19950 # config.status.  Protect against being in an unquoted here document
19951 # in config.status.
19952 rm -f conftest.defines conftest.undefs
19953 # Using a here document instead of a string reduces the quoting nightmare.
19954 # Putting comments in sed scripts is not portable.
19955 #
19956 # `end' is used to avoid that the second main sed command (meant for
19957 # 0-ary CPP macros) applies to n-ary macro definitions.
19958 # See the Autoconf documentation for `clear'.
19959 cat >confdef2sed.sed <<\_ACEOF
19960 s/[\\&,]/\\&/g
19961 s,[\\$`],\\&,g
19962 t clear
19963 : clear
19964 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19965 t end
19966 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19967 : end
19968 _ACEOF
19969 # If some macros were called several times there might be several times
19970 # the same #defines, which is useless.  Nevertheless, we may not want to
19971 # sort them, since we want the *last* AC-DEFINE to be honored.
19972 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19973 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19974 rm -f confdef2sed.sed
19975
19976 # This sed command replaces #undef with comments.  This is necessary, for
19977 # example, in the case of _POSIX_SOURCE, which is predefined and required
19978 # on some systems where configure will not decide to define it.
19979 cat >>conftest.undefs <<\_ACEOF
19980 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19981 _ACEOF
19982
19983 # Break up conftest.defines because some shells have a limit on the size
19984 # of here documents, and old seds have small limits too (100 cmds).
19985 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19986 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19987 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19988 echo '  :' >>$CONFIG_STATUS
19989 rm -f conftest.tail
19990 while grep . conftest.defines >/dev/null
19991 do
19992   # Write a limited-size here document to $tmp/defines.sed.
19993   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19994   # Speed up: don't consider the non `#define' lines.
19995   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19996   # Work around the forget-to-reset-the-flag bug.
19997   echo 't clr' >>$CONFIG_STATUS
19998   echo ': clr' >>$CONFIG_STATUS
19999   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20000   echo 'CEOF
20001   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20002   rm -f $tmp/in
20003   mv $tmp/out $tmp/in
20004 ' >>$CONFIG_STATUS
20005   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20006   rm -f conftest.defines
20007   mv conftest.tail conftest.defines
20008 done
20009 rm -f conftest.defines
20010 echo '  fi # grep' >>$CONFIG_STATUS
20011 echo >>$CONFIG_STATUS
20012
20013 # Break up conftest.undefs because some shells have a limit on the size
20014 # of here documents, and old seds have small limits too (100 cmds).
20015 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20016 rm -f conftest.tail
20017 while grep . conftest.undefs >/dev/null
20018 do
20019   # Write a limited-size here document to $tmp/undefs.sed.
20020   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20021   # Speed up: don't consider the non `#undef'
20022   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20023   # Work around the forget-to-reset-the-flag bug.
20024   echo 't clr' >>$CONFIG_STATUS
20025   echo ': clr' >>$CONFIG_STATUS
20026   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20027   echo 'CEOF
20028   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20029   rm -f $tmp/in
20030   mv $tmp/out $tmp/in
20031 ' >>$CONFIG_STATUS
20032   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20033   rm -f conftest.undefs
20034   mv conftest.tail conftest.undefs
20035 done
20036 rm -f conftest.undefs
20037
20038 cat >>$CONFIG_STATUS <<\_ACEOF
20039   # Let's still pretend it is `configure' which instantiates (i.e., don't
20040   # use $as_me), people would be surprised to read:
20041   #    /* config.h.  Generated by config.status.  */
20042   if test x"$ac_file" = x-; then
20043     echo "/* Generated by configure.  */" >$tmp/config.h
20044   else
20045     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20046   fi
20047   cat $tmp/in >>$tmp/config.h
20048   rm -f $tmp/in
20049   if test x"$ac_file" != x-; then
20050     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20051       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20052 echo "$as_me: $ac_file is unchanged" >&6;}
20053     else
20054       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20055 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20056          X"$ac_file" : 'X\(//\)[^/]' \| \
20057          X"$ac_file" : 'X\(//\)$' \| \
20058          X"$ac_file" : 'X\(/\)' \| \
20059          .     : '\(.\)' 2>/dev/null ||
20060 echo X"$ac_file" |
20061     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20062           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20063           /^X\(\/\/\)$/{ s//\1/; q; }
20064           /^X\(\/\).*/{ s//\1/; q; }
20065           s/.*/./; q'`
20066       { if $as_mkdir_p; then
20067     mkdir -p "$ac_dir"
20068   else
20069     as_dir="$ac_dir"
20070     as_dirs=
20071     while test ! -d "$as_dir"; do
20072       as_dirs="$as_dir $as_dirs"
20073       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20075          X"$as_dir" : 'X\(//\)[^/]' \| \
20076          X"$as_dir" : 'X\(//\)$' \| \
20077          X"$as_dir" : 'X\(/\)' \| \
20078          .     : '\(.\)' 2>/dev/null ||
20079 echo X"$as_dir" |
20080     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20081           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20082           /^X\(\/\/\)$/{ s//\1/; q; }
20083           /^X\(\/\).*/{ s//\1/; q; }
20084           s/.*/./; q'`
20085     done
20086     test ! -n "$as_dirs" || mkdir $as_dirs
20087   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20088 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20089    { (exit 1); exit 1; }; }; }
20090
20091       rm -f $ac_file
20092       mv $tmp/config.h $ac_file
20093     fi
20094   else
20095     cat $tmp/config.h
20096     rm -f $tmp/config.h
20097   fi
20098 done
20099 _ACEOF
20100 cat >>$CONFIG_STATUS <<\_ACEOF
20101
20102 #
20103 # CONFIG_COMMANDS section.
20104 #
20105 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20106   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20107   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20108   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20109 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20110          X"$ac_dest" : 'X\(//\)[^/]' \| \
20111          X"$ac_dest" : 'X\(//\)$' \| \
20112          X"$ac_dest" : 'X\(/\)' \| \
20113          .     : '\(.\)' 2>/dev/null ||
20114 echo X"$ac_dest" |
20115     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20116           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20117           /^X\(\/\/\)$/{ s//\1/; q; }
20118           /^X\(\/\).*/{ s//\1/; q; }
20119           s/.*/./; q'`
20120   ac_builddir=.
20121
20122 if test "$ac_dir" != .; then
20123   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20124   # A "../" for each directory in $ac_dir_suffix.
20125   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20126 else
20127   ac_dir_suffix= ac_top_builddir=
20128 fi
20129
20130 case $srcdir in
20131   .)  # No --srcdir option.  We are building in place.
20132     ac_srcdir=.
20133     if test -z "$ac_top_builddir"; then
20134        ac_top_srcdir=.
20135     else
20136        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20137     fi ;;
20138   [\\/]* | ?:[\\/]* )  # Absolute path.
20139     ac_srcdir=$srcdir$ac_dir_suffix;
20140     ac_top_srcdir=$srcdir ;;
20141   *) # Relative path.
20142     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20143     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20144 esac
20145 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20146 # absolute.
20147 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20148 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20149 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20150 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20151
20152
20153   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20154 echo "$as_me: executing $ac_dest commands" >&6;}
20155   case $ac_dest in
20156     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20157  ;;
20158   esac
20159 done
20160 _ACEOF
20161
20162 cat >>$CONFIG_STATUS <<\_ACEOF
20163
20164 { (exit 0); exit 0; }
20165 _ACEOF
20166 chmod +x $CONFIG_STATUS
20167 ac_clean_files=$ac_clean_files_save
20168
20169
20170 # configure is writing to config.log, and then calls config.status.
20171 # config.status does its own redirection, appending to config.log.
20172 # Unfortunately, on DOS this fails, as config.log is still kept open
20173 # by configure, so config.status won't be able to write to it; its
20174 # output is simply discarded.  So we exec the FD to /dev/null,
20175 # effectively closing config.log, so it can be properly (re)opened and
20176 # appended to by config.status.  When coming back to configure, we
20177 # need to make the FD available again.
20178 if test "$no_create" != yes; then
20179   ac_cs_success=:
20180   ac_config_status_args=
20181   test "$silent" = yes &&
20182     ac_config_status_args="$ac_config_status_args --quiet"
20183   exec 5>/dev/null
20184   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20185   exec 5>>config.log
20186   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20187   # would make configure fail if this is the last instruction.
20188   $ac_cs_success || { (exit 1); exit 1; }
20189 fi
20190
20191
20192 cd scripts
20193 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20194 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20195 cd ..
20196
20197 c=src/cats
20198
20199 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20200 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20201
20202 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20203 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20204
20205 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20206 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20207
20208 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20209 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20210
20211 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20212 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20213
20214 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20215 chmod 755 $c/sqlite
20216 chmod 755 $c/mysql
20217
20218 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20219    largefile_support="yes"
20220 fi
20221
20222 #
20223 # A whole lot of hand springs to get the compiler version.
20224 #  This is because gcc changed the output in version 3.0
20225 #
20226 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20227 if test "x${CCVERSION}" = "x" ; then
20228   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20229 fi
20230 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20231 if test x"${CXXVERSION}" = x ; then
20232   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20233 fi
20234
20235 if test "x${subsysdir}" = "x${sbindir}" ; then
20236    echo " "
20237    echo " "
20238    echo "You have set --sbindir and --with-subsys-dir"
20239    echo "  both equal to: ${subsysdir} "
20240    echo "  This is not permitted. Please reconfigure."
20241    echo " "
20242    echo "Aborting configuration ..."
20243    echo " "
20244    echo " "
20245    exit 1
20246 fi
20247
20248 if test "x${db_name}" = "xInternal" ; then
20249    echo " "
20250    echo " "
20251    echo "You have not specified either --enable-client-only or one of the"
20252    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20253    echo "  This is not permitted. Please reconfigure."
20254    echo " "
20255    echo "Aborting the configuration ..."
20256    echo " "
20257    echo " "
20258    exit 1
20259 fi
20260
20261 echo "
20262 Configuration on `date`:
20263
20264   Host:                       $host -- ${DISTNAME} ${DISTVER}
20265   Bacula version:             ${VERSION} (${DATE})
20266   Source code location:       ${srcdir}
20267   Install binaries:           ${sbindir}
20268   Install config files:       ${sysconfdir}
20269   Scripts directory:          ${scriptdir}
20270   Working directory:          ${working_dir}
20271   PID directory:              ${piddir}
20272   Subsys directory:           ${subsysdir}
20273   C Compiler:                 ${CC} ${CCVERSION}
20274   C++ Compiler:               ${CXX} ${CXXVERSION}
20275   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20276   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20277   Libraries:                  ${LIBS}
20278   Statically Linked Tools:    ${support_static_tools}
20279   Statically Linked FD:       ${support_static_fd}
20280   Statically Linked SD:       ${support_static_sd}
20281   Statically Linked DIR:      ${support_static_dir}
20282   Statically Linked CONS:     ${support_static_cons}
20283   Database type:              ${db_name}
20284   Database lib:               ${DB_LIBS}
20285
20286   Job Output Email:           ${job_email}
20287   Traceback Email:            ${dump_email}
20288   SMTP Host Address:          ${smtp_host}
20289
20290   Director Port:              ${dir_port}
20291   File daemon Port:           ${fd_port}
20292   Storage daemon Port:        ${sd_port}
20293
20294   Director User:              ${dir_user}
20295   Director Group:             ${dir_group}
20296   Storage Daemon User:        ${sd_user}
20297   Storage DaemonGroup:        ${sd_group}
20298   File Daemon User:           ${fd_user}
20299   File Daemon Group:          ${fd_group}
20300
20301   SQL binaries Directory      ${SQL_BINDIR}
20302
20303   Large file support:         $largefile_support
20304   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20305   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20306   TCP Wrappers support:       ${TCPW_MSG}
20307   ZLIB support:               ${have_zlib}
20308   enable-smartalloc:          ${support_smartalloc}
20309   enable-gnome:               ${support_gnome} ${gnome_version}
20310   enable-wx-console:          ${support_wx_console}
20311   enable-tray-monitor:        ${support_tray_monitor}
20312   client-only:                ${build_client_only}
20313   ACL support:                ${have_acl}
20314
20315   " > config.out
20316
20317 cat config.out
20318
20319 # old stuff
20320 # cweb support:               ${got_cweb} ${CWEB_SRC}
20321   # gmp support:                      ${got_gmp} ${GMP_SRC}