]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Merge Meno's IPv6-1 code
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 X features:
843   --x-includes=DIR    X include files are in DIR
844   --x-libraries=DIR   X library files are in DIR
845
846 System types:
847   --build=BUILD     configure for building on BUILD [guessed]
848   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853
854   cat <<\_ACEOF
855
856 Optional Features:
857   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
858   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
859   --enable-gnome          enable build of gnome-console GUI disabled
860   --enable-wx-console      enable build of wxWidgets console 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
964 # Do not use `cd foo && pwd` to compute absolute paths, because
965 # the directories may not exist.
966 case `pwd` in
967 .) ac_abs_builddir="$ac_dir";;
968 *)
969   case "$ac_dir" in
970   .) ac_abs_builddir=`pwd`;;
971   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
972   *) ac_abs_builddir=`pwd`/"$ac_dir";;
973   esac;;
974 esac
975 case $ac_abs_builddir in
976 .) ac_abs_top_builddir=${ac_top_builddir}.;;
977 *)
978   case ${ac_top_builddir}. in
979   .) ac_abs_top_builddir=$ac_abs_builddir;;
980   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
981   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
982   esac;;
983 esac
984 case $ac_abs_builddir in
985 .) ac_abs_srcdir=$ac_srcdir;;
986 *)
987   case $ac_srcdir in
988   .) ac_abs_srcdir=$ac_abs_builddir;;
989   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
990   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
991   esac;;
992 esac
993 case $ac_abs_builddir in
994 .) ac_abs_top_srcdir=$ac_top_srcdir;;
995 *)
996   case $ac_top_srcdir in
997   .) ac_abs_top_srcdir=$ac_abs_builddir;;
998   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
999   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1000   esac;;
1001 esac
1002
1003     cd $ac_dir
1004     # Check for guested configure; otherwise get Cygnus style configure.
1005     if test -f $ac_srcdir/configure.gnu; then
1006       echo
1007       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1008     elif test -f $ac_srcdir/configure; then
1009       echo
1010       $SHELL $ac_srcdir/configure  --help=recursive
1011     elif test -f $ac_srcdir/configure.ac ||
1012            test -f $ac_srcdir/configure.in; then
1013       echo
1014       $ac_configure --help
1015     else
1016       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1017     fi
1018     cd $ac_popdir
1019   done
1020 fi
1021
1022 test -n "$ac_init_help" && exit 0
1023 if $ac_init_version; then
1024   cat <<\_ACEOF
1025
1026 Copyright (C) 2003 Free Software Foundation, Inc.
1027 This configure script is free software; the Free Software Foundation
1028 gives unlimited permission to copy, distribute and modify it.
1029 _ACEOF
1030   exit 0
1031 fi
1032 exec 5>config.log
1033 cat >&5 <<_ACEOF
1034 This file contains any messages produced by compilers while
1035 running configure, to aid debugging if configure makes a mistake.
1036
1037 It was created by $as_me, which was
1038 generated by GNU Autoconf 2.59.  Invocation command line was
1039
1040   $ $0 $@
1041
1042 _ACEOF
1043 {
1044 cat <<_ASUNAME
1045 ## --------- ##
1046 ## Platform. ##
1047 ## --------- ##
1048
1049 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1050 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1051 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1052 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1053 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1054
1055 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1056 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1057
1058 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1059 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1060 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1061 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1062 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1063 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1064 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1065
1066 _ASUNAME
1067
1068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1069 for as_dir in $PATH
1070 do
1071   IFS=$as_save_IFS
1072   test -z "$as_dir" && as_dir=.
1073   echo "PATH: $as_dir"
1074 done
1075
1076 } >&5
1077
1078 cat >&5 <<_ACEOF
1079
1080
1081 ## ----------- ##
1082 ## Core tests. ##
1083 ## ----------- ##
1084
1085 _ACEOF
1086
1087
1088 # Keep a trace of the command line.
1089 # Strip out --no-create and --no-recursion so they do not pile up.
1090 # Strip out --silent because we don't want to record it for future runs.
1091 # Also quote any args containing shell meta-characters.
1092 # Make two passes to allow for proper duplicate-argument suppression.
1093 ac_configure_args=
1094 ac_configure_args0=
1095 ac_configure_args1=
1096 ac_sep=
1097 ac_must_keep_next=false
1098 for ac_pass in 1 2
1099 do
1100   for ac_arg
1101   do
1102     case $ac_arg in
1103     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1104     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105     | -silent | --silent | --silen | --sile | --sil)
1106       continue ;;
1107     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1108       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1109     esac
1110     case $ac_pass in
1111     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1112     2)
1113       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1114       if test $ac_must_keep_next = true; then
1115         ac_must_keep_next=false # Got value, back to normal.
1116       else
1117         case $ac_arg in
1118           *=* | --config-cache | -C | -disable-* | --disable-* \
1119           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1120           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1121           | -with-* | --with-* | -without-* | --without-* | --x)
1122             case "$ac_configure_args0 " in
1123               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1124             esac
1125             ;;
1126           -* ) ac_must_keep_next=true ;;
1127         esac
1128       fi
1129       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1130       # Get rid of the leading space.
1131       ac_sep=" "
1132       ;;
1133     esac
1134   done
1135 done
1136 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1137 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1138
1139 # When interrupted or exit'd, cleanup temporary files, and complete
1140 # config.log.  We remove comments because anyway the quotes in there
1141 # would cause problems or look ugly.
1142 # WARNING: Be sure not to use single quotes in there, as some shells,
1143 # such as our DU 5.0 friend, will then `close' the trap.
1144 trap 'exit_status=$?
1145   # Save into config.log some information that might help in debugging.
1146   {
1147     echo
1148
1149     cat <<\_ASBOX
1150 ## ---------------- ##
1151 ## Cache variables. ##
1152 ## ---------------- ##
1153 _ASBOX
1154     echo
1155     # The following way of writing the cache mishandles newlines in values,
1156 {
1157   (set) 2>&1 |
1158     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1159     *ac_space=\ *)
1160       sed -n \
1161         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1162           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1163       ;;
1164     *)
1165       sed -n \
1166         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1167       ;;
1168     esac;
1169 }
1170     echo
1171
1172     cat <<\_ASBOX
1173 ## ----------------- ##
1174 ## Output variables. ##
1175 ## ----------------- ##
1176 _ASBOX
1177     echo
1178     for ac_var in $ac_subst_vars
1179     do
1180       eval ac_val=$`echo $ac_var`
1181       echo "$ac_var='"'"'$ac_val'"'"'"
1182     done | sort
1183     echo
1184
1185     if test -n "$ac_subst_files"; then
1186       cat <<\_ASBOX
1187 ## ------------- ##
1188 ## Output files. ##
1189 ## ------------- ##
1190 _ASBOX
1191       echo
1192       for ac_var in $ac_subst_files
1193       do
1194         eval ac_val=$`echo $ac_var`
1195         echo "$ac_var='"'"'$ac_val'"'"'"
1196       done | sort
1197       echo
1198     fi
1199
1200     if test -s confdefs.h; then
1201       cat <<\_ASBOX
1202 ## ----------- ##
1203 ## confdefs.h. ##
1204 ## ----------- ##
1205 _ASBOX
1206       echo
1207       sed "/^$/d" confdefs.h | sort
1208       echo
1209     fi
1210     test "$ac_signal" != 0 &&
1211       echo "$as_me: caught signal $ac_signal"
1212     echo "$as_me: exit $exit_status"
1213   } >&5
1214   rm -f core *.core &&
1215   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1216     exit $exit_status
1217      ' 0
1218 for ac_signal in 1 2 13 15; do
1219   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1220 done
1221 ac_signal=0
1222
1223 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1224 rm -rf conftest* confdefs.h
1225 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1226 echo >confdefs.h
1227
1228 # Predefined preprocessor variables.
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_NAME "$PACKAGE_NAME"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1237 _ACEOF
1238
1239
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1242 _ACEOF
1243
1244
1245 cat >>confdefs.h <<_ACEOF
1246 #define PACKAGE_STRING "$PACKAGE_STRING"
1247 _ACEOF
1248
1249
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1252 _ACEOF
1253
1254
1255 # Let the site file select an alternate cache file if it wants to.
1256 # Prefer explicitly selected file to automatically selected ones.
1257 if test -z "$CONFIG_SITE"; then
1258   if test "x$prefix" != xNONE; then
1259     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1260   else
1261     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1262   fi
1263 fi
1264 for ac_site_file in $CONFIG_SITE; do
1265   if test -r "$ac_site_file"; then
1266     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1267 echo "$as_me: loading site script $ac_site_file" >&6;}
1268     sed 's/^/| /' "$ac_site_file" >&5
1269     . "$ac_site_file"
1270   fi
1271 done
1272
1273 if test -r "$cache_file"; then
1274   # Some versions of bash will fail to source /dev/null (special
1275   # files actually), so we avoid doing that.
1276   if test -f "$cache_file"; then
1277     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1278 echo "$as_me: loading cache $cache_file" >&6;}
1279     case $cache_file in
1280       [\\/]* | ?:[\\/]* ) . $cache_file;;
1281       *)                      . ./$cache_file;;
1282     esac
1283   fi
1284 else
1285   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1286 echo "$as_me: creating cache $cache_file" >&6;}
1287   >$cache_file
1288 fi
1289
1290 # Check that the precious variables saved in the cache have kept the same
1291 # value.
1292 ac_cache_corrupted=false
1293 for ac_var in `(set) 2>&1 |
1294                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1295   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1296   eval ac_new_set=\$ac_env_${ac_var}_set
1297   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1298   eval ac_new_val="\$ac_env_${ac_var}_value"
1299   case $ac_old_set,$ac_new_set in
1300     set,)
1301       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1302 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1303       ac_cache_corrupted=: ;;
1304     ,set)
1305       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1306 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1307       ac_cache_corrupted=: ;;
1308     ,);;
1309     *)
1310       if test "x$ac_old_val" != "x$ac_new_val"; then
1311         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1312 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1313         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1314 echo "$as_me:   former value:  $ac_old_val" >&2;}
1315         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1316 echo "$as_me:   current value: $ac_new_val" >&2;}
1317         ac_cache_corrupted=:
1318       fi;;
1319   esac
1320   # Pass precious variables to config.status.
1321   if test "$ac_new_set" = set; then
1322     case $ac_new_val in
1323     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1324       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1325     *) ac_arg=$ac_var=$ac_new_val ;;
1326     esac
1327     case " $ac_configure_args " in
1328       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1329       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1330     esac
1331   fi
1332 done
1333 if $ac_cache_corrupted; then
1334   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1335 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1336   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1337 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1338    { (exit 1); exit 1; }; }
1339 fi
1340
1341 ac_ext=c
1342 ac_cpp='$CPP $CPPFLAGS'
1343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365 BUILD_DIR=`pwd`
1366 cd ..
1367 TOP_DIR=`pwd`
1368 cd ${BUILD_DIR}
1369
1370 ac_aux_dir=
1371 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1372   if test -f $ac_dir/install-sh; then
1373     ac_aux_dir=$ac_dir
1374     ac_install_sh="$ac_aux_dir/install-sh -c"
1375     break
1376   elif test -f $ac_dir/install.sh; then
1377     ac_aux_dir=$ac_dir
1378     ac_install_sh="$ac_aux_dir/install.sh -c"
1379     break
1380   elif test -f $ac_dir/shtool; then
1381     ac_aux_dir=$ac_dir
1382     ac_install_sh="$ac_aux_dir/shtool install -c"
1383     break
1384   fi
1385 done
1386 if test -z "$ac_aux_dir"; then
1387   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1388 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1389    { (exit 1); exit 1; }; }
1390 fi
1391 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1392 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1393 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1394
1395           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1396
1397
1398
1399
1400
1401 for ac_prog in true
1402 do
1403   # Extract the first word of "$ac_prog", so it can be a program name with args.
1404 set dummy $ac_prog; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1408   echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410   case $TRUEPRG in
1411   [\\/]* | ?:[\\/]*)
1412   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1413   ;;
1414   *)
1415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1416 for as_dir in $PATH
1417 do
1418   IFS=$as_save_IFS
1419   test -z "$as_dir" && as_dir=.
1420   for ac_exec_ext in '' $ac_executable_extensions; do
1421   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1422     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1424     break 2
1425   fi
1426 done
1427 done
1428
1429   ;;
1430 esac
1431 fi
1432 TRUEPRG=$ac_cv_path_TRUEPRG
1433
1434 if test -n "$TRUEPRG"; then
1435   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1436 echo "${ECHO_T}$TRUEPRG" >&6
1437 else
1438   echo "$as_me:$LINENO: result: no" >&5
1439 echo "${ECHO_T}no" >&6
1440 fi
1441
1442   test -n "$TRUEPRG" && break
1443 done
1444 test -n "$TRUEPRG" || TRUEPRG=":"
1445
1446 for ac_prog in false
1447 do
1448   # Extract the first word of "$ac_prog", so it can be a program name with args.
1449 set dummy $ac_prog; ac_word=$2
1450 echo "$as_me:$LINENO: checking for $ac_word" >&5
1451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1452 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1453   echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455   case $FALSEPRG in
1456   [\\/]* | ?:[\\/]*)
1457   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1458   ;;
1459   *)
1460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1461 for as_dir in $PATH
1462 do
1463   IFS=$as_save_IFS
1464   test -z "$as_dir" && as_dir=.
1465   for ac_exec_ext in '' $ac_executable_extensions; do
1466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1467     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1469     break 2
1470   fi
1471 done
1472 done
1473
1474   ;;
1475 esac
1476 fi
1477 FALSEPRG=$ac_cv_path_FALSEPRG
1478
1479 if test -n "$FALSEPRG"; then
1480   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1481 echo "${ECHO_T}$FALSEPRG" >&6
1482 else
1483   echo "$as_me:$LINENO: result: no" >&5
1484 echo "${ECHO_T}no" >&6
1485 fi
1486
1487   test -n "$FALSEPRG" && break
1488 done
1489 test -n "$FALSEPRG" || FALSEPRG=":"
1490
1491
1492 #AC_CANONICAL_HOST
1493
1494 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1495 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1496 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1497 echo "configuring for bacula $VERSION ($DATE)"
1498
1499
1500
1501 ac_ext=c
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1506 if test -n "$ac_tool_prefix"; then
1507   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1508 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1509 echo "$as_me:$LINENO: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_CC+set}" = set; then
1512   echo $ECHO_N "(cached) $ECHO_C" >&6
1513 else
1514   if test -n "$CC"; then
1515   ac_cv_prog_CC="$CC" # Let the user override the test.
1516 else
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 for as_dir in $PATH
1519 do
1520   IFS=$as_save_IFS
1521   test -z "$as_dir" && as_dir=.
1522   for ac_exec_ext in '' $ac_executable_extensions; do
1523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526     break 2
1527   fi
1528 done
1529 done
1530
1531 fi
1532 fi
1533 CC=$ac_cv_prog_CC
1534 if test -n "$CC"; then
1535   echo "$as_me:$LINENO: result: $CC" >&5
1536 echo "${ECHO_T}$CC" >&6
1537 else
1538   echo "$as_me:$LINENO: result: no" >&5
1539 echo "${ECHO_T}no" >&6
1540 fi
1541
1542 fi
1543 if test -z "$ac_cv_prog_CC"; then
1544   ac_ct_CC=$CC
1545   # Extract the first word of "gcc", so it can be a program name with args.
1546 set dummy gcc; ac_word=$2
1547 echo "$as_me:$LINENO: checking for $ac_word" >&5
1548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1549 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1550   echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552   if test -n "$ac_ct_CC"; then
1553   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1554 else
1555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1556 for as_dir in $PATH
1557 do
1558   IFS=$as_save_IFS
1559   test -z "$as_dir" && as_dir=.
1560   for ac_exec_ext in '' $ac_executable_extensions; do
1561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562     ac_cv_prog_ac_ct_CC="gcc"
1563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1564     break 2
1565   fi
1566 done
1567 done
1568
1569 fi
1570 fi
1571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1572 if test -n "$ac_ct_CC"; then
1573   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1574 echo "${ECHO_T}$ac_ct_CC" >&6
1575 else
1576   echo "$as_me:$LINENO: result: no" >&5
1577 echo "${ECHO_T}no" >&6
1578 fi
1579
1580   CC=$ac_ct_CC
1581 else
1582   CC="$ac_cv_prog_CC"
1583 fi
1584
1585 if test -z "$CC"; then
1586   if test -n "$ac_tool_prefix"; then
1587   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1588 set dummy ${ac_tool_prefix}cc; ac_word=$2
1589 echo "$as_me:$LINENO: checking for $ac_word" >&5
1590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1591 if test "${ac_cv_prog_CC+set}" = set; then
1592   echo $ECHO_N "(cached) $ECHO_C" >&6
1593 else
1594   if test -n "$CC"; then
1595   ac_cv_prog_CC="$CC" # Let the user override the test.
1596 else
1597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1598 for as_dir in $PATH
1599 do
1600   IFS=$as_save_IFS
1601   test -z "$as_dir" && as_dir=.
1602   for ac_exec_ext in '' $ac_executable_extensions; do
1603   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1604     ac_cv_prog_CC="${ac_tool_prefix}cc"
1605     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1606     break 2
1607   fi
1608 done
1609 done
1610
1611 fi
1612 fi
1613 CC=$ac_cv_prog_CC
1614 if test -n "$CC"; then
1615   echo "$as_me:$LINENO: result: $CC" >&5
1616 echo "${ECHO_T}$CC" >&6
1617 else
1618   echo "$as_me:$LINENO: result: no" >&5
1619 echo "${ECHO_T}no" >&6
1620 fi
1621
1622 fi
1623 if test -z "$ac_cv_prog_CC"; then
1624   ac_ct_CC=$CC
1625   # Extract the first word of "cc", so it can be a program name with args.
1626 set dummy cc; ac_word=$2
1627 echo "$as_me:$LINENO: checking for $ac_word" >&5
1628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1630   echo $ECHO_N "(cached) $ECHO_C" >&6
1631 else
1632   if test -n "$ac_ct_CC"; then
1633   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1634 else
1635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 for as_dir in $PATH
1637 do
1638   IFS=$as_save_IFS
1639   test -z "$as_dir" && as_dir=.
1640   for ac_exec_ext in '' $ac_executable_extensions; do
1641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1642     ac_cv_prog_ac_ct_CC="cc"
1643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1644     break 2
1645   fi
1646 done
1647 done
1648
1649 fi
1650 fi
1651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1652 if test -n "$ac_ct_CC"; then
1653   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1654 echo "${ECHO_T}$ac_ct_CC" >&6
1655 else
1656   echo "$as_me:$LINENO: result: no" >&5
1657 echo "${ECHO_T}no" >&6
1658 fi
1659
1660   CC=$ac_ct_CC
1661 else
1662   CC="$ac_cv_prog_CC"
1663 fi
1664
1665 fi
1666 if test -z "$CC"; then
1667   # Extract the first word of "cc", so it can be a program name with args.
1668 set dummy cc; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_CC+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   if test -n "$CC"; then
1675   ac_cv_prog_CC="$CC" # Let the user override the test.
1676 else
1677   ac_prog_rejected=no
1678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 for as_dir in $PATH
1680 do
1681   IFS=$as_save_IFS
1682   test -z "$as_dir" && as_dir=.
1683   for ac_exec_ext in '' $ac_executable_extensions; do
1684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1685     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1686        ac_prog_rejected=yes
1687        continue
1688      fi
1689     ac_cv_prog_CC="cc"
1690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691     break 2
1692   fi
1693 done
1694 done
1695
1696 if test $ac_prog_rejected = yes; then
1697   # We found a bogon in the path, so make sure we never use it.
1698   set dummy $ac_cv_prog_CC
1699   shift
1700   if test $# != 0; then
1701     # We chose a different compiler from the bogus one.
1702     # However, it has the same basename, so the bogon will be chosen
1703     # first if we set CC to just the basename; use the full file name.
1704     shift
1705     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1706   fi
1707 fi
1708 fi
1709 fi
1710 CC=$ac_cv_prog_CC
1711 if test -n "$CC"; then
1712   echo "$as_me:$LINENO: result: $CC" >&5
1713 echo "${ECHO_T}$CC" >&6
1714 else
1715   echo "$as_me:$LINENO: result: no" >&5
1716 echo "${ECHO_T}no" >&6
1717 fi
1718
1719 fi
1720 if test -z "$CC"; then
1721   if test -n "$ac_tool_prefix"; then
1722   for ac_prog in cl
1723   do
1724     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1726 echo "$as_me:$LINENO: checking for $ac_word" >&5
1727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1728 if test "${ac_cv_prog_CC+set}" = set; then
1729   echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731   if test -n "$CC"; then
1732   ac_cv_prog_CC="$CC" # Let the user override the test.
1733 else
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 for as_dir in $PATH
1736 do
1737   IFS=$as_save_IFS
1738   test -z "$as_dir" && as_dir=.
1739   for ac_exec_ext in '' $ac_executable_extensions; do
1740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1741     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743     break 2
1744   fi
1745 done
1746 done
1747
1748 fi
1749 fi
1750 CC=$ac_cv_prog_CC
1751 if test -n "$CC"; then
1752   echo "$as_me:$LINENO: result: $CC" >&5
1753 echo "${ECHO_T}$CC" >&6
1754 else
1755   echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1757 fi
1758
1759     test -n "$CC" && break
1760   done
1761 fi
1762 if test -z "$CC"; then
1763   ac_ct_CC=$CC
1764   for ac_prog in cl
1765 do
1766   # Extract the first word of "$ac_prog", so it can be a program name with args.
1767 set dummy $ac_prog; ac_word=$2
1768 echo "$as_me:$LINENO: checking for $ac_word" >&5
1769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1771   echo $ECHO_N "(cached) $ECHO_C" >&6
1772 else
1773   if test -n "$ac_ct_CC"; then
1774   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1775 else
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777 for as_dir in $PATH
1778 do
1779   IFS=$as_save_IFS
1780   test -z "$as_dir" && as_dir=.
1781   for ac_exec_ext in '' $ac_executable_extensions; do
1782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1783     ac_cv_prog_ac_ct_CC="$ac_prog"
1784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1785     break 2
1786   fi
1787 done
1788 done
1789
1790 fi
1791 fi
1792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1793 if test -n "$ac_ct_CC"; then
1794   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1795 echo "${ECHO_T}$ac_ct_CC" >&6
1796 else
1797   echo "$as_me:$LINENO: result: no" >&5
1798 echo "${ECHO_T}no" >&6
1799 fi
1800
1801   test -n "$ac_ct_CC" && break
1802 done
1803
1804   CC=$ac_ct_CC
1805 fi
1806
1807 fi
1808
1809
1810 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1811 See \`config.log' for more details." >&5
1812 echo "$as_me: error: no acceptable C compiler found in \$PATH
1813 See \`config.log' for more details." >&2;}
1814    { (exit 1); exit 1; }; }
1815
1816 # Provide some information about the compiler.
1817 echo "$as_me:$LINENO:" \
1818      "checking for C compiler version" >&5
1819 ac_compiler=`set X $ac_compile; echo $2`
1820 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1821   (eval $ac_compiler --version </dev/null >&5) 2>&5
1822   ac_status=$?
1823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824   (exit $ac_status); }
1825 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1826   (eval $ac_compiler -v </dev/null >&5) 2>&5
1827   ac_status=$?
1828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829   (exit $ac_status); }
1830 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1831   (eval $ac_compiler -V </dev/null >&5) 2>&5
1832   ac_status=$?
1833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834   (exit $ac_status); }
1835
1836 cat >conftest.$ac_ext <<_ACEOF
1837 /* confdefs.h.  */
1838 _ACEOF
1839 cat confdefs.h >>conftest.$ac_ext
1840 cat >>conftest.$ac_ext <<_ACEOF
1841 /* end confdefs.h.  */
1842
1843 int
1844 main ()
1845 {
1846
1847   ;
1848   return 0;
1849 }
1850 _ACEOF
1851 ac_clean_files_save=$ac_clean_files
1852 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1853 # Try to create an executable without -o first, disregard a.out.
1854 # It will help us diagnose broken compilers, and finding out an intuition
1855 # of exeext.
1856 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1857 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1858 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1859 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1860   (eval $ac_link_default) 2>&5
1861   ac_status=$?
1862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863   (exit $ac_status); }; then
1864   # Find the output, starting from the most likely.  This scheme is
1865 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1866 # resort.
1867
1868 # Be careful to initialize this variable, since it used to be cached.
1869 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1870 ac_cv_exeext=
1871 # b.out is created by i960 compilers.
1872 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1873 do
1874   test -f "$ac_file" || continue
1875   case $ac_file in
1876     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1877         ;;
1878     conftest.$ac_ext )
1879         # This is the source file.
1880         ;;
1881     [ab].out )
1882         # We found the default executable, but exeext='' is most
1883         # certainly right.
1884         break;;
1885     *.* )
1886         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1887         # FIXME: I believe we export ac_cv_exeext for Libtool,
1888         # but it would be cool to find out if it's true.  Does anybody
1889         # maintain Libtool? --akim.
1890         export ac_cv_exeext
1891         break;;
1892     * )
1893         break;;
1894   esac
1895 done
1896 else
1897   echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1899
1900 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1901 See \`config.log' for more details." >&5
1902 echo "$as_me: error: C compiler cannot create executables
1903 See \`config.log' for more details." >&2;}
1904    { (exit 77); exit 77; }; }
1905 fi
1906
1907 ac_exeext=$ac_cv_exeext
1908 echo "$as_me:$LINENO: result: $ac_file" >&5
1909 echo "${ECHO_T}$ac_file" >&6
1910
1911 # Check the compiler produces executables we can run.  If not, either
1912 # the compiler is broken, or we cross compile.
1913 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1914 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1915 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1916 # If not cross compiling, check that we can run a simple program.
1917 if test "$cross_compiling" != yes; then
1918   if { ac_try='./$ac_file'
1919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1920   (eval $ac_try) 2>&5
1921   ac_status=$?
1922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923   (exit $ac_status); }; }; then
1924     cross_compiling=no
1925   else
1926     if test "$cross_compiling" = maybe; then
1927         cross_compiling=yes
1928     else
1929         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1930 If you meant to cross compile, use \`--host'.
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot run C compiled programs.
1933 If you meant to cross compile, use \`--host'.
1934 See \`config.log' for more details." >&2;}
1935    { (exit 1); exit 1; }; }
1936     fi
1937   fi
1938 fi
1939 echo "$as_me:$LINENO: result: yes" >&5
1940 echo "${ECHO_T}yes" >&6
1941
1942 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1943 ac_clean_files=$ac_clean_files_save
1944 # Check the compiler produces executables we can run.  If not, either
1945 # the compiler is broken, or we cross compile.
1946 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1947 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1948 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1949 echo "${ECHO_T}$cross_compiling" >&6
1950
1951 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1952 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1954   (eval $ac_link) 2>&5
1955   ac_status=$?
1956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957   (exit $ac_status); }; then
1958   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1959 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1960 # work properly (i.e., refer to `conftest.exe'), while it won't with
1961 # `rm'.
1962 for ac_file in conftest.exe conftest conftest.*; do
1963   test -f "$ac_file" || continue
1964   case $ac_file in
1965     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1966     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1967           export ac_cv_exeext
1968           break;;
1969     * ) break;;
1970   esac
1971 done
1972 else
1973   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1974 See \`config.log' for more details." >&5
1975 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1976 See \`config.log' for more details." >&2;}
1977    { (exit 1); exit 1; }; }
1978 fi
1979
1980 rm -f conftest$ac_cv_exeext
1981 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1982 echo "${ECHO_T}$ac_cv_exeext" >&6
1983
1984 rm -f conftest.$ac_ext
1985 EXEEXT=$ac_cv_exeext
1986 ac_exeext=$EXEEXT
1987 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1988 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1989 if test "${ac_cv_objext+set}" = set; then
1990   echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992   cat >conftest.$ac_ext <<_ACEOF
1993 /* confdefs.h.  */
1994 _ACEOF
1995 cat confdefs.h >>conftest.$ac_ext
1996 cat >>conftest.$ac_ext <<_ACEOF
1997 /* end confdefs.h.  */
1998
1999 int
2000 main ()
2001 {
2002
2003   ;
2004   return 0;
2005 }
2006 _ACEOF
2007 rm -f conftest.o conftest.obj
2008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2009   (eval $ac_compile) 2>&5
2010   ac_status=$?
2011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012   (exit $ac_status); }; then
2013   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2014   case $ac_file in
2015     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2016     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2017        break;;
2018   esac
2019 done
2020 else
2021   echo "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.$ac_ext >&5
2023
2024 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2025 See \`config.log' for more details." >&5
2026 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2027 See \`config.log' for more details." >&2;}
2028    { (exit 1); exit 1; }; }
2029 fi
2030
2031 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2032 fi
2033 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2034 echo "${ECHO_T}$ac_cv_objext" >&6
2035 OBJEXT=$ac_cv_objext
2036 ac_objext=$OBJEXT
2037 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2038 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2039 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   cat >conftest.$ac_ext <<_ACEOF
2043 /* confdefs.h.  */
2044 _ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h.  */
2048
2049 int
2050 main ()
2051 {
2052 #ifndef __GNUC__
2053        choke me
2054 #endif
2055
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 rm -f conftest.$ac_objext
2061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2062   (eval $ac_compile) 2>conftest.er1
2063   ac_status=$?
2064   grep -v '^ *+' conftest.er1 >conftest.err
2065   rm -f conftest.er1
2066   cat conftest.err >&5
2067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068   (exit $ac_status); } &&
2069          { ac_try='test -z "$ac_c_werror_flag"
2070                          || test ! -s conftest.err'
2071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072   (eval $ac_try) 2>&5
2073   ac_status=$?
2074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075   (exit $ac_status); }; } &&
2076          { ac_try='test -s conftest.$ac_objext'
2077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2078   (eval $ac_try) 2>&5
2079   ac_status=$?
2080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2081   (exit $ac_status); }; }; then
2082   ac_compiler_gnu=yes
2083 else
2084   echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2086
2087 ac_compiler_gnu=no
2088 fi
2089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2091
2092 fi
2093 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2094 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2095 GCC=`test $ac_compiler_gnu = yes && echo yes`
2096 ac_test_CFLAGS=${CFLAGS+set}
2097 ac_save_CFLAGS=$CFLAGS
2098 CFLAGS="-g"
2099 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2100 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2101 if test "${ac_cv_prog_cc_g+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   cat >conftest.$ac_ext <<_ACEOF
2105 /* confdefs.h.  */
2106 _ACEOF
2107 cat confdefs.h >>conftest.$ac_ext
2108 cat >>conftest.$ac_ext <<_ACEOF
2109 /* end confdefs.h.  */
2110
2111 int
2112 main ()
2113 {
2114
2115   ;
2116   return 0;
2117 }
2118 _ACEOF
2119 rm -f conftest.$ac_objext
2120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2121   (eval $ac_compile) 2>conftest.er1
2122   ac_status=$?
2123   grep -v '^ *+' conftest.er1 >conftest.err
2124   rm -f conftest.er1
2125   cat conftest.err >&5
2126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127   (exit $ac_status); } &&
2128          { ac_try='test -z "$ac_c_werror_flag"
2129                          || test ! -s conftest.err'
2130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131   (eval $ac_try) 2>&5
2132   ac_status=$?
2133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134   (exit $ac_status); }; } &&
2135          { ac_try='test -s conftest.$ac_objext'
2136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2137   (eval $ac_try) 2>&5
2138   ac_status=$?
2139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140   (exit $ac_status); }; }; then
2141   ac_cv_prog_cc_g=yes
2142 else
2143   echo "$as_me: failed program was:" >&5
2144 sed 's/^/| /' conftest.$ac_ext >&5
2145
2146 ac_cv_prog_cc_g=no
2147 fi
2148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2149 fi
2150 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2151 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2152 if test "$ac_test_CFLAGS" = set; then
2153   CFLAGS=$ac_save_CFLAGS
2154 elif test $ac_cv_prog_cc_g = yes; then
2155   if test "$GCC" = yes; then
2156     CFLAGS="-g -O2"
2157   else
2158     CFLAGS="-g"
2159   fi
2160 else
2161   if test "$GCC" = yes; then
2162     CFLAGS="-O2"
2163   else
2164     CFLAGS=
2165   fi
2166 fi
2167 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2168 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2169 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   ac_cv_prog_cc_stdc=no
2173 ac_save_CC=$CC
2174 cat >conftest.$ac_ext <<_ACEOF
2175 /* confdefs.h.  */
2176 _ACEOF
2177 cat confdefs.h >>conftest.$ac_ext
2178 cat >>conftest.$ac_ext <<_ACEOF
2179 /* end confdefs.h.  */
2180 #include <stdarg.h>
2181 #include <stdio.h>
2182 #include <sys/types.h>
2183 #include <sys/stat.h>
2184 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2185 struct buf { int x; };
2186 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2187 static char *e (p, i)
2188      char **p;
2189      int i;
2190 {
2191   return p[i];
2192 }
2193 static char *f (char * (*g) (char **, int), char **p, ...)
2194 {
2195   char *s;
2196   va_list v;
2197   va_start (v,p);
2198   s = g (p, va_arg (v,int));
2199   va_end (v);
2200   return s;
2201 }
2202
2203 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2204    function prototypes and stuff, but not '\xHH' hex character constants.
2205    These don't provoke an error unfortunately, instead are silently treated
2206    as 'x'.  The following induces an error, until -std1 is added to get
2207    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2208    array size at least.  It's necessary to write '\x00'==0 to get something
2209    that's true only with -std1.  */
2210 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2211
2212 int test (int i, double x);
2213 struct s1 {int (*f) (int a);};
2214 struct s2 {int (*f) (double a);};
2215 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2216 int argc;
2217 char **argv;
2218 int
2219 main ()
2220 {
2221 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2222   ;
2223   return 0;
2224 }
2225 _ACEOF
2226 # Don't try gcc -ansi; that turns off useful extensions and
2227 # breaks some systems' header files.
2228 # AIX                   -qlanglvl=ansi
2229 # Ultrix and OSF/1      -std1
2230 # HP-UX 10.20 and later -Ae
2231 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2232 # SVR4                  -Xc -D__EXTENSIONS__
2233 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2234 do
2235   CC="$ac_save_CC $ac_arg"
2236   rm -f conftest.$ac_objext
2237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238   (eval $ac_compile) 2>conftest.er1
2239   ac_status=$?
2240   grep -v '^ *+' conftest.er1 >conftest.err
2241   rm -f conftest.er1
2242   cat conftest.err >&5
2243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244   (exit $ac_status); } &&
2245          { ac_try='test -z "$ac_c_werror_flag"
2246                          || test ! -s conftest.err'
2247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248   (eval $ac_try) 2>&5
2249   ac_status=$?
2250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251   (exit $ac_status); }; } &&
2252          { ac_try='test -s conftest.$ac_objext'
2253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254   (eval $ac_try) 2>&5
2255   ac_status=$?
2256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257   (exit $ac_status); }; }; then
2258   ac_cv_prog_cc_stdc=$ac_arg
2259 break
2260 else
2261   echo "$as_me: failed program was:" >&5
2262 sed 's/^/| /' conftest.$ac_ext >&5
2263
2264 fi
2265 rm -f conftest.err conftest.$ac_objext
2266 done
2267 rm -f conftest.$ac_ext conftest.$ac_objext
2268 CC=$ac_save_CC
2269
2270 fi
2271
2272 case "x$ac_cv_prog_cc_stdc" in
2273   x|xno)
2274     echo "$as_me:$LINENO: result: none needed" >&5
2275 echo "${ECHO_T}none needed" >&6 ;;
2276   *)
2277     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2278 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2279     CC="$CC $ac_cv_prog_cc_stdc" ;;
2280 esac
2281
2282 # Some people use a C++ compiler to compile C.  Since we use `exit',
2283 # in C++ we need to declare it.  In case someone uses the same compiler
2284 # for both compiling C and C++ we need to have the C++ compiler decide
2285 # the declaration of exit, since it's the most demanding environment.
2286 cat >conftest.$ac_ext <<_ACEOF
2287 #ifndef __cplusplus
2288   choke me
2289 #endif
2290 _ACEOF
2291 rm -f conftest.$ac_objext
2292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2293   (eval $ac_compile) 2>conftest.er1
2294   ac_status=$?
2295   grep -v '^ *+' conftest.er1 >conftest.err
2296   rm -f conftest.er1
2297   cat conftest.err >&5
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); } &&
2300          { ac_try='test -z "$ac_c_werror_flag"
2301                          || test ! -s conftest.err'
2302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303   (eval $ac_try) 2>&5
2304   ac_status=$?
2305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306   (exit $ac_status); }; } &&
2307          { ac_try='test -s conftest.$ac_objext'
2308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309   (eval $ac_try) 2>&5
2310   ac_status=$?
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); }; }; then
2313   for ac_declaration in \
2314    '' \
2315    'extern "C" void std::exit (int) throw (); using std::exit;' \
2316    'extern "C" void std::exit (int); using std::exit;' \
2317    'extern "C" void exit (int) throw ();' \
2318    'extern "C" void exit (int);' \
2319    'void exit (int);'
2320 do
2321   cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h.  */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h.  */
2327 $ac_declaration
2328 #include <stdlib.h>
2329 int
2330 main ()
2331 {
2332 exit (42);
2333   ;
2334   return 0;
2335 }
2336 _ACEOF
2337 rm -f conftest.$ac_objext
2338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339   (eval $ac_compile) 2>conftest.er1
2340   ac_status=$?
2341   grep -v '^ *+' conftest.er1 >conftest.err
2342   rm -f conftest.er1
2343   cat conftest.err >&5
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); } &&
2346          { ac_try='test -z "$ac_c_werror_flag"
2347                          || test ! -s conftest.err'
2348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349   (eval $ac_try) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; } &&
2353          { ac_try='test -s conftest.$ac_objext'
2354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355   (eval $ac_try) 2>&5
2356   ac_status=$?
2357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358   (exit $ac_status); }; }; then
2359   :
2360 else
2361   echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2363
2364 continue
2365 fi
2366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2367   cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h.  */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h.  */
2373 $ac_declaration
2374 int
2375 main ()
2376 {
2377 exit (42);
2378   ;
2379   return 0;
2380 }
2381 _ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2384   (eval $ac_compile) 2>conftest.er1
2385   ac_status=$?
2386   grep -v '^ *+' conftest.er1 >conftest.err
2387   rm -f conftest.er1
2388   cat conftest.err >&5
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); } &&
2391          { ac_try='test -z "$ac_c_werror_flag"
2392                          || test ! -s conftest.err'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; } &&
2398          { ac_try='test -s conftest.$ac_objext'
2399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400   (eval $ac_try) 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); }; }; then
2404   break
2405 else
2406   echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 fi
2410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411 done
2412 rm -f conftest*
2413 if test -n "$ac_declaration"; then
2414   echo '#ifdef __cplusplus' >>confdefs.h
2415   echo $ac_declaration      >>confdefs.h
2416   echo '#endif'             >>confdefs.h
2417 fi
2418
2419 else
2420   echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2422
2423 fi
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425 ac_ext=c
2426 ac_cpp='$CPP $CPPFLAGS'
2427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2430
2431 ac_ext=cc
2432 ac_cpp='$CXXCPP $CPPFLAGS'
2433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2436 if test -n "$ac_tool_prefix"; then
2437   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2438   do
2439     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2441 echo "$as_me:$LINENO: checking for $ac_word" >&5
2442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2443 if test "${ac_cv_prog_CXX+set}" = set; then
2444   echo $ECHO_N "(cached) $ECHO_C" >&6
2445 else
2446   if test -n "$CXX"; then
2447   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452   IFS=$as_save_IFS
2453   test -z "$as_dir" && as_dir=.
2454   for ac_exec_ext in '' $ac_executable_extensions; do
2455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458     break 2
2459   fi
2460 done
2461 done
2462
2463 fi
2464 fi
2465 CXX=$ac_cv_prog_CXX
2466 if test -n "$CXX"; then
2467   echo "$as_me:$LINENO: result: $CXX" >&5
2468 echo "${ECHO_T}$CXX" >&6
2469 else
2470   echo "$as_me:$LINENO: result: no" >&5
2471 echo "${ECHO_T}no" >&6
2472 fi
2473
2474     test -n "$CXX" && break
2475   done
2476 fi
2477 if test -z "$CXX"; then
2478   ac_ct_CXX=$CXX
2479   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2480 do
2481   # Extract the first word of "$ac_prog", so it can be a program name with args.
2482 set dummy $ac_prog; ac_word=$2
2483 echo "$as_me:$LINENO: checking for $ac_word" >&5
2484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2485 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2486   echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488   if test -n "$ac_ct_CXX"; then
2489   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2493 do
2494   IFS=$as_save_IFS
2495   test -z "$as_dir" && as_dir=.
2496   for ac_exec_ext in '' $ac_executable_extensions; do
2497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2498     ac_cv_prog_ac_ct_CXX="$ac_prog"
2499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500     break 2
2501   fi
2502 done
2503 done
2504
2505 fi
2506 fi
2507 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2508 if test -n "$ac_ct_CXX"; then
2509   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2510 echo "${ECHO_T}$ac_ct_CXX" >&6
2511 else
2512   echo "$as_me:$LINENO: result: no" >&5
2513 echo "${ECHO_T}no" >&6
2514 fi
2515
2516   test -n "$ac_ct_CXX" && break
2517 done
2518 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2519
2520   CXX=$ac_ct_CXX
2521 fi
2522
2523
2524 # Provide some information about the compiler.
2525 echo "$as_me:$LINENO:" \
2526      "checking for C++ compiler version" >&5
2527 ac_compiler=`set X $ac_compile; echo $2`
2528 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2529   (eval $ac_compiler --version </dev/null >&5) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); }
2533 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2534   (eval $ac_compiler -v </dev/null >&5) 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }
2538 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2539   (eval $ac_compiler -V </dev/null >&5) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); }
2543
2544 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2545 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2546 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2547   echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549   cat >conftest.$ac_ext <<_ACEOF
2550 /* confdefs.h.  */
2551 _ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h.  */
2555
2556 int
2557 main ()
2558 {
2559 #ifndef __GNUC__
2560        choke me
2561 #endif
2562
2563   ;
2564   return 0;
2565 }
2566 _ACEOF
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569   (eval $ac_compile) 2>conftest.er1
2570   ac_status=$?
2571   grep -v '^ *+' conftest.er1 >conftest.err
2572   rm -f conftest.er1
2573   cat conftest.err >&5
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); } &&
2576          { ac_try='test -z "$ac_cxx_werror_flag"
2577                          || test ! -s conftest.err'
2578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579   (eval $ac_try) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; } &&
2583          { ac_try='test -s conftest.$ac_objext'
2584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585   (eval $ac_try) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; }; then
2589   ac_compiler_gnu=yes
2590 else
2591   echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 ac_compiler_gnu=no
2595 fi
2596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2597 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2598
2599 fi
2600 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2601 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2602 GXX=`test $ac_compiler_gnu = yes && echo yes`
2603 ac_test_CXXFLAGS=${CXXFLAGS+set}
2604 ac_save_CXXFLAGS=$CXXFLAGS
2605 CXXFLAGS="-g"
2606 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2607 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2608 if test "${ac_cv_prog_cxx_g+set}" = set; then
2609   echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611   cat >conftest.$ac_ext <<_ACEOF
2612 /* confdefs.h.  */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h.  */
2617
2618 int
2619 main ()
2620 {
2621
2622   ;
2623   return 0;
2624 }
2625 _ACEOF
2626 rm -f conftest.$ac_objext
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628   (eval $ac_compile) 2>conftest.er1
2629   ac_status=$?
2630   grep -v '^ *+' conftest.er1 >conftest.err
2631   rm -f conftest.er1
2632   cat conftest.err >&5
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); } &&
2635          { ac_try='test -z "$ac_cxx_werror_flag"
2636                          || test ! -s conftest.err'
2637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638   (eval $ac_try) 2>&5
2639   ac_status=$?
2640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); }; } &&
2642          { ac_try='test -s conftest.$ac_objext'
2643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644   (eval $ac_try) 2>&5
2645   ac_status=$?
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); }; }; then
2648   ac_cv_prog_cxx_g=yes
2649 else
2650   echo "$as_me: failed program was:" >&5
2651 sed 's/^/| /' conftest.$ac_ext >&5
2652
2653 ac_cv_prog_cxx_g=no
2654 fi
2655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656 fi
2657 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2658 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2659 if test "$ac_test_CXXFLAGS" = set; then
2660   CXXFLAGS=$ac_save_CXXFLAGS
2661 elif test $ac_cv_prog_cxx_g = yes; then
2662   if test "$GXX" = yes; then
2663     CXXFLAGS="-g -O2"
2664   else
2665     CXXFLAGS="-g"
2666   fi
2667 else
2668   if test "$GXX" = yes; then
2669     CXXFLAGS="-O2"
2670   else
2671     CXXFLAGS=
2672   fi
2673 fi
2674 for ac_declaration in \
2675    '' \
2676    'extern "C" void std::exit (int) throw (); using std::exit;' \
2677    'extern "C" void std::exit (int); using std::exit;' \
2678    'extern "C" void exit (int) throw ();' \
2679    'extern "C" void exit (int);' \
2680    'void exit (int);'
2681 do
2682   cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h.  */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h.  */
2688 $ac_declaration
2689 #include <stdlib.h>
2690 int
2691 main ()
2692 {
2693 exit (42);
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700   (eval $ac_compile) 2>conftest.er1
2701   ac_status=$?
2702   grep -v '^ *+' conftest.er1 >conftest.err
2703   rm -f conftest.er1
2704   cat conftest.err >&5
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } &&
2707          { ac_try='test -z "$ac_cxx_werror_flag"
2708                          || test ! -s conftest.err'
2709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }; } &&
2714          { ac_try='test -s conftest.$ac_objext'
2715   { (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); }; }; then
2720   :
2721 else
2722   echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2724
2725 continue
2726 fi
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728   cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h.  */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h.  */
2734 $ac_declaration
2735 int
2736 main ()
2737 {
2738 exit (42);
2739   ;
2740   return 0;
2741 }
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745   (eval $ac_compile) 2>conftest.er1
2746   ac_status=$?
2747   grep -v '^ *+' conftest.er1 >conftest.err
2748   rm -f conftest.er1
2749   cat conftest.err >&5
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); } &&
2752          { ac_try='test -z "$ac_cxx_werror_flag"
2753                          || test ! -s conftest.err'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; } &&
2759          { ac_try='test -s conftest.$ac_objext'
2760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761   (eval $ac_try) 2>&5
2762   ac_status=$?
2763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764   (exit $ac_status); }; }; then
2765   break
2766 else
2767   echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770 fi
2771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2772 done
2773 rm -f conftest*
2774 if test -n "$ac_declaration"; then
2775   echo '#ifdef __cplusplus' >>confdefs.h
2776   echo $ac_declaration      >>confdefs.h
2777   echo '#endif'             >>confdefs.h
2778 fi
2779
2780 ac_ext=c
2781 ac_cpp='$CPP $CPPFLAGS'
2782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2785
2786 if test "x$CC" != xcc; then
2787   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2788 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2789 else
2790   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2791 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2792 fi
2793 set dummy $CC; ac_cc=`echo $2 |
2794                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2795 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2796   echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798   cat >conftest.$ac_ext <<_ACEOF
2799 /* confdefs.h.  */
2800 _ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h.  */
2804
2805 int
2806 main ()
2807 {
2808
2809   ;
2810   return 0;
2811 }
2812 _ACEOF
2813 # Make sure it works both with $CC and with simple cc.
2814 # We do the test twice because some compilers refuse to overwrite an
2815 # existing .o file with -o, though they will create one.
2816 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2817 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818   (eval $ac_try) 2>&5
2819   ac_status=$?
2820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821   (exit $ac_status); } &&
2822    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823   (eval $ac_try) 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); };
2827 then
2828   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2829   if test "x$CC" != xcc; then
2830     # Test first that cc exists at all.
2831     if { ac_try='cc -c conftest.$ac_ext >&5'
2832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833   (eval $ac_try) 2>&5
2834   ac_status=$?
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); }; }; then
2837       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2838       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839   (eval $ac_try) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); } &&
2843          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844   (eval $ac_try) 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); };
2848       then
2849         # cc works too.
2850         :
2851       else
2852         # cc exists but doesn't like -o.
2853         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2854       fi
2855     fi
2856   fi
2857 else
2858   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2859 fi
2860 rm -f conftest*
2861
2862 fi
2863 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2864   echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6
2866 else
2867   echo "$as_me:$LINENO: result: no" >&5
2868 echo "${ECHO_T}no" >&6
2869
2870 cat >>confdefs.h <<\_ACEOF
2871 #define NO_MINUS_C_MINUS_O 1
2872 _ACEOF
2873
2874 fi
2875
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2882 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2883 # On Suns, sometimes $CPP names a directory.
2884 if test -n "$CPP" && test -d "$CPP"; then
2885   CPP=
2886 fi
2887 if test -z "$CPP"; then
2888   if test "${ac_cv_prog_CPP+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891       # Double quotes because CPP needs to be expanded
2892     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2893     do
2894       ac_preproc_ok=false
2895 for ac_c_preproc_warn_flag in '' yes
2896 do
2897   # Use a header file that comes with gcc, so configuring glibc
2898   # with a fresh cross-compiler works.
2899   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2900   # <limits.h> exists even on freestanding compilers.
2901   # On the NeXT, cc -E runs the code through the compiler's parser,
2902   # not just through cpp. "Syntax error" is here to catch this case.
2903   cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909 #ifdef __STDC__
2910 # include <limits.h>
2911 #else
2912 # include <assert.h>
2913 #endif
2914                      Syntax error
2915 _ACEOF
2916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2917   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2918   ac_status=$?
2919   grep -v '^ *+' conftest.er1 >conftest.err
2920   rm -f conftest.er1
2921   cat conftest.err >&5
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); } >/dev/null; then
2924   if test -s conftest.err; then
2925     ac_cpp_err=$ac_c_preproc_warn_flag
2926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2927   else
2928     ac_cpp_err=
2929   fi
2930 else
2931   ac_cpp_err=yes
2932 fi
2933 if test -z "$ac_cpp_err"; then
2934   :
2935 else
2936   echo "$as_me: failed program was:" >&5
2937 sed 's/^/| /' conftest.$ac_ext >&5
2938
2939   # Broken: fails on valid input.
2940 continue
2941 fi
2942 rm -f conftest.err conftest.$ac_ext
2943
2944   # OK, works on sane cases.  Now check whether non-existent headers
2945   # can be detected and how.
2946   cat >conftest.$ac_ext <<_ACEOF
2947 /* confdefs.h.  */
2948 _ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h.  */
2952 #include <ac_nonexistent.h>
2953 _ACEOF
2954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2955   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } >/dev/null; then
2962   if test -s conftest.err; then
2963     ac_cpp_err=$ac_c_preproc_warn_flag
2964     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2965   else
2966     ac_cpp_err=
2967   fi
2968 else
2969   ac_cpp_err=yes
2970 fi
2971 if test -z "$ac_cpp_err"; then
2972   # Broken: success on invalid input.
2973 continue
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978   # Passes both tests.
2979 ac_preproc_ok=:
2980 break
2981 fi
2982 rm -f conftest.err conftest.$ac_ext
2983
2984 done
2985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2986 rm -f conftest.err conftest.$ac_ext
2987 if $ac_preproc_ok; then
2988   break
2989 fi
2990
2991     done
2992     ac_cv_prog_CPP=$CPP
2993
2994 fi
2995   CPP=$ac_cv_prog_CPP
2996 else
2997   ac_cv_prog_CPP=$CPP
2998 fi
2999 echo "$as_me:$LINENO: result: $CPP" >&5
3000 echo "${ECHO_T}$CPP" >&6
3001 ac_preproc_ok=false
3002 for ac_c_preproc_warn_flag in '' yes
3003 do
3004   # Use a header file that comes with gcc, so configuring glibc
3005   # with a fresh cross-compiler works.
3006   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007   # <limits.h> exists even on freestanding compilers.
3008   # On the NeXT, cc -E runs the code through the compiler's parser,
3009   # not just through cpp. "Syntax error" is here to catch this case.
3010   cat >conftest.$ac_ext <<_ACEOF
3011 /* confdefs.h.  */
3012 _ACEOF
3013 cat confdefs.h >>conftest.$ac_ext
3014 cat >>conftest.$ac_ext <<_ACEOF
3015 /* end confdefs.h.  */
3016 #ifdef __STDC__
3017 # include <limits.h>
3018 #else
3019 # include <assert.h>
3020 #endif
3021                      Syntax error
3022 _ACEOF
3023 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3024   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3025   ac_status=$?
3026   grep -v '^ *+' conftest.er1 >conftest.err
3027   rm -f conftest.er1
3028   cat conftest.err >&5
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); } >/dev/null; then
3031   if test -s conftest.err; then
3032     ac_cpp_err=$ac_c_preproc_warn_flag
3033     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3034   else
3035     ac_cpp_err=
3036   fi
3037 else
3038   ac_cpp_err=yes
3039 fi
3040 if test -z "$ac_cpp_err"; then
3041   :
3042 else
3043   echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046   # Broken: fails on valid input.
3047 continue
3048 fi
3049 rm -f conftest.err conftest.$ac_ext
3050
3051   # OK, works on sane cases.  Now check whether non-existent headers
3052   # can be detected and how.
3053   cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h.  */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h.  */
3059 #include <ac_nonexistent.h>
3060 _ACEOF
3061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3062   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3063   ac_status=$?
3064   grep -v '^ *+' conftest.er1 >conftest.err
3065   rm -f conftest.er1
3066   cat conftest.err >&5
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } >/dev/null; then
3069   if test -s conftest.err; then
3070     ac_cpp_err=$ac_c_preproc_warn_flag
3071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3072   else
3073     ac_cpp_err=
3074   fi
3075 else
3076   ac_cpp_err=yes
3077 fi
3078 if test -z "$ac_cpp_err"; then
3079   # Broken: success on invalid input.
3080 continue
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085   # Passes both tests.
3086 ac_preproc_ok=:
3087 break
3088 fi
3089 rm -f conftest.err conftest.$ac_ext
3090
3091 done
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.$ac_ext
3094 if $ac_preproc_ok; then
3095   :
3096 else
3097   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3098 See \`config.log' for more details." >&5
3099 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3100 See \`config.log' for more details." >&2;}
3101    { (exit 1); exit 1; }; }
3102 fi
3103
3104 ac_ext=c
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3109
3110
3111 echo "$as_me:$LINENO: checking for egrep" >&5
3112 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3113 if test "${ac_cv_prog_egrep+set}" = set; then
3114   echo $ECHO_N "(cached) $ECHO_C" >&6
3115 else
3116   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3117     then ac_cv_prog_egrep='grep -E'
3118     else ac_cv_prog_egrep='egrep'
3119     fi
3120 fi
3121 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3122 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3123  EGREP=$ac_cv_prog_egrep
3124
3125
3126 if test $ac_cv_c_compiler_gnu = yes; then
3127     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3128 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3129 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3130   echo $ECHO_N "(cached) $ECHO_C" >&6
3131 else
3132     ac_pattern="Autoconf.*'x'"
3133   cat >conftest.$ac_ext <<_ACEOF
3134 /* confdefs.h.  */
3135 _ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h.  */
3139 #include <sgtty.h>
3140 Autoconf TIOCGETP
3141 _ACEOF
3142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3143   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3144   ac_cv_prog_gcc_traditional=yes
3145 else
3146   ac_cv_prog_gcc_traditional=no
3147 fi
3148 rm -f conftest*
3149
3150
3151   if test $ac_cv_prog_gcc_traditional = no; then
3152     cat >conftest.$ac_ext <<_ACEOF
3153 /* confdefs.h.  */
3154 _ACEOF
3155 cat confdefs.h >>conftest.$ac_ext
3156 cat >>conftest.$ac_ext <<_ACEOF
3157 /* end confdefs.h.  */
3158 #include <termio.h>
3159 Autoconf TCGETA
3160 _ACEOF
3161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3162   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3163   ac_cv_prog_gcc_traditional=yes
3164 fi
3165 rm -f conftest*
3166
3167   fi
3168 fi
3169 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3170 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3171   if test $ac_cv_prog_gcc_traditional = yes; then
3172     CC="$CC -traditional"
3173   fi
3174 fi
3175
3176 if test x$CC = xgcc
3177 then
3178    cat >>confdefs.h <<\_ACEOF
3179 #define HAVE_GCC 1
3180 _ACEOF
3181
3182 fi
3183
3184 # Find a good install program.  We prefer a C program (faster),
3185 # so one script is as good as another.  But avoid the broken or
3186 # incompatible versions:
3187 # SysV /etc/install, /usr/sbin/install
3188 # SunOS /usr/etc/install
3189 # IRIX /sbin/install
3190 # AIX /bin/install
3191 # AmigaOS /C/install, which installs bootblocks on floppy discs
3192 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3193 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3194 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3195 # OS/2's system install, which has a completely different semantic
3196 # ./install, which can be erroneously created by make from ./install.sh.
3197 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3198 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3199 if test -z "$INSTALL"; then
3200 if test "${ac_cv_path_install+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208   # Account for people who put trailing slashes in PATH elements.
3209 case $as_dir/ in
3210   ./ | .// | /cC/* | \
3211   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3212   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3213   /usr/ucb/* ) ;;
3214   *)
3215     # OSF1 and SCO ODT 3.0 have their own names for install.
3216     # Don't use installbsd from OSF since it installs stuff as root
3217     # by default.
3218     for ac_prog in ginstall scoinst install; do
3219       for ac_exec_ext in '' $ac_executable_extensions; do
3220         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3221           if test $ac_prog = install &&
3222             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3223             # AIX install.  It has an incompatible calling convention.
3224             :
3225           elif test $ac_prog = install &&
3226             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3227             # program-specific install script used by HP pwplus--don't use.
3228             :
3229           else
3230             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3231             break 3
3232           fi
3233         fi
3234       done
3235     done
3236     ;;
3237 esac
3238 done
3239
3240
3241 fi
3242   if test "${ac_cv_path_install+set}" = set; then
3243     INSTALL=$ac_cv_path_install
3244   else
3245     # As a last resort, use the slow shell script.  We don't cache a
3246     # path for INSTALL within a source directory, because that will
3247     # break other packages using the cache if that directory is
3248     # removed, or if the path is relative.
3249     INSTALL=$ac_install_sh
3250   fi
3251 fi
3252 echo "$as_me:$LINENO: result: $INSTALL" >&5
3253 echo "${ECHO_T}$INSTALL" >&6
3254
3255 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3256 # It thinks the first close brace ends the variable substitution.
3257 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3258
3259 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3260
3261 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3262
3263 if test -n "$ac_tool_prefix"; then
3264   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3265 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3266 echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3268 if test "${ac_cv_prog_RANLIB+set}" = set; then
3269   echo $ECHO_N "(cached) $ECHO_C" >&6
3270 else
3271   if test -n "$RANLIB"; then
3272   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3273 else
3274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH
3276 do
3277   IFS=$as_save_IFS
3278   test -z "$as_dir" && as_dir=.
3279   for ac_exec_ext in '' $ac_executable_extensions; do
3280   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283     break 2
3284   fi
3285 done
3286 done
3287
3288 fi
3289 fi
3290 RANLIB=$ac_cv_prog_RANLIB
3291 if test -n "$RANLIB"; then
3292   echo "$as_me:$LINENO: result: $RANLIB" >&5
3293 echo "${ECHO_T}$RANLIB" >&6
3294 else
3295   echo "$as_me:$LINENO: result: no" >&5
3296 echo "${ECHO_T}no" >&6
3297 fi
3298
3299 fi
3300 if test -z "$ac_cv_prog_RANLIB"; then
3301   ac_ct_RANLIB=$RANLIB
3302   # Extract the first word of "ranlib", so it can be a program name with args.
3303 set dummy ranlib; ac_word=$2
3304 echo "$as_me:$LINENO: checking for $ac_word" >&5
3305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3306 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3307   echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309   if test -n "$ac_ct_RANLIB"; then
3310   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3311 else
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3313 for as_dir in $PATH
3314 do
3315   IFS=$as_save_IFS
3316   test -z "$as_dir" && as_dir=.
3317   for ac_exec_ext in '' $ac_executable_extensions; do
3318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3319     ac_cv_prog_ac_ct_RANLIB="ranlib"
3320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3321     break 2
3322   fi
3323 done
3324 done
3325
3326   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3327 fi
3328 fi
3329 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3330 if test -n "$ac_ct_RANLIB"; then
3331   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3332 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3333 else
3334   echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3336 fi
3337
3338   RANLIB=$ac_ct_RANLIB
3339 else
3340   RANLIB="$ac_cv_prog_RANLIB"
3341 fi
3342
3343 # Extract the first word of "mv", so it can be a program name with args.
3344 set dummy mv; ac_word=$2
3345 echo "$as_me:$LINENO: checking for $ac_word" >&5
3346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3347 if test "${ac_cv_path_MV+set}" = set; then
3348   echo $ECHO_N "(cached) $ECHO_C" >&6
3349 else
3350   case $MV in
3351   [\\/]* | ?:[\\/]*)
3352   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3353   ;;
3354   *)
3355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3357 do
3358   IFS=$as_save_IFS
3359   test -z "$as_dir" && as_dir=.
3360   for ac_exec_ext in '' $ac_executable_extensions; do
3361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364     break 2
3365   fi
3366 done
3367 done
3368
3369   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3370   ;;
3371 esac
3372 fi
3373 MV=$ac_cv_path_MV
3374
3375 if test -n "$MV"; then
3376   echo "$as_me:$LINENO: result: $MV" >&5
3377 echo "${ECHO_T}$MV" >&6
3378 else
3379   echo "$as_me:$LINENO: result: no" >&5
3380 echo "${ECHO_T}no" >&6
3381 fi
3382
3383 # Extract the first word of "rm", so it can be a program name with args.
3384 set dummy rm; ac_word=$2
3385 echo "$as_me:$LINENO: checking for $ac_word" >&5
3386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3387 if test "${ac_cv_path_RM+set}" = set; then
3388   echo $ECHO_N "(cached) $ECHO_C" >&6
3389 else
3390   case $RM in
3391   [\\/]* | ?:[\\/]*)
3392   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3393   ;;
3394   *)
3395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400   for ac_exec_ext in '' $ac_executable_extensions; do
3401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404     break 2
3405   fi
3406 done
3407 done
3408
3409   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3410   ;;
3411 esac
3412 fi
3413 RM=$ac_cv_path_RM
3414
3415 if test -n "$RM"; then
3416   echo "$as_me:$LINENO: result: $RM" >&5
3417 echo "${ECHO_T}$RM" >&6
3418 else
3419   echo "$as_me:$LINENO: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3421 fi
3422
3423 # Extract the first word of "cp", so it can be a program name with args.
3424 set dummy cp; ac_word=$2
3425 echo "$as_me:$LINENO: checking for $ac_word" >&5
3426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3427 if test "${ac_cv_path_CP+set}" = set; then
3428   echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430   case $CP in
3431   [\\/]* | ?:[\\/]*)
3432   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3433   ;;
3434   *)
3435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438   IFS=$as_save_IFS
3439   test -z "$as_dir" && as_dir=.
3440   for ac_exec_ext in '' $ac_executable_extensions; do
3441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444     break 2
3445   fi
3446 done
3447 done
3448
3449   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3450   ;;
3451 esac
3452 fi
3453 CP=$ac_cv_path_CP
3454
3455 if test -n "$CP"; then
3456   echo "$as_me:$LINENO: result: $CP" >&5
3457 echo "${ECHO_T}$CP" >&6
3458 else
3459   echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3461 fi
3462
3463 # Extract the first word of "sed", so it can be a program name with args.
3464 set dummy sed; ac_word=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_path_SED+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   case $SED in
3471   [\\/]* | ?:[\\/]*)
3472   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3473   ;;
3474   *)
3475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3477 do
3478   IFS=$as_save_IFS
3479   test -z "$as_dir" && as_dir=.
3480   for ac_exec_ext in '' $ac_executable_extensions; do
3481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484     break 2
3485   fi
3486 done
3487 done
3488
3489   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3490   ;;
3491 esac
3492 fi
3493 SED=$ac_cv_path_SED
3494
3495 if test -n "$SED"; then
3496   echo "$as_me:$LINENO: result: $SED" >&5
3497 echo "${ECHO_T}$SED" >&6
3498 else
3499   echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3501 fi
3502
3503 # Extract the first word of "awk", so it can be a program name with args.
3504 set dummy awk; ac_word=$2
3505 echo "$as_me:$LINENO: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507 if test "${ac_cv_path_AWK+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   case $AWK in
3511   [\\/]* | ?:[\\/]*)
3512   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3513   ;;
3514   *)
3515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518   IFS=$as_save_IFS
3519   test -z "$as_dir" && as_dir=.
3520   for ac_exec_ext in '' $ac_executable_extensions; do
3521   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524     break 2
3525   fi
3526 done
3527 done
3528
3529   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3530   ;;
3531 esac
3532 fi
3533 AWK=$ac_cv_path_AWK
3534
3535 if test -n "$AWK"; then
3536   echo "$as_me:$LINENO: result: $AWK" >&5
3537 echo "${ECHO_T}$AWK" >&6
3538 else
3539   echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541 fi
3542
3543 # Extract the first word of "echo", so it can be a program name with args.
3544 set dummy echo; ac_word=$2
3545 echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_path_ECHO+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550   case $ECHO in
3551   [\\/]* | ?:[\\/]*)
3552   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3553   ;;
3554   *)
3555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558   IFS=$as_save_IFS
3559   test -z "$as_dir" && as_dir=.
3560   for ac_exec_ext in '' $ac_executable_extensions; do
3561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564     break 2
3565   fi
3566 done
3567 done
3568
3569   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3570   ;;
3571 esac
3572 fi
3573 ECHO=$ac_cv_path_ECHO
3574
3575 if test -n "$ECHO"; then
3576   echo "$as_me:$LINENO: result: $ECHO" >&5
3577 echo "${ECHO_T}$ECHO" >&6
3578 else
3579   echo "$as_me:$LINENO: result: no" >&5
3580 echo "${ECHO_T}no" >&6
3581 fi
3582
3583 # Extract the first word of "cmp", so it can be a program name with args.
3584 set dummy cmp; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_path_CMP+set}" = set; then
3588   echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590   case $CMP in
3591   [\\/]* | ?:[\\/]*)
3592   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3593   ;;
3594   *)
3595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598   IFS=$as_save_IFS
3599   test -z "$as_dir" && as_dir=.
3600   for ac_exec_ext in '' $ac_executable_extensions; do
3601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604     break 2
3605   fi
3606 done
3607 done
3608
3609   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3610   ;;
3611 esac
3612 fi
3613 CMP=$ac_cv_path_CMP
3614
3615 if test -n "$CMP"; then
3616   echo "$as_me:$LINENO: result: $CMP" >&5
3617 echo "${ECHO_T}$CMP" >&6
3618 else
3619   echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3621 fi
3622
3623 # Extract the first word of "tbl", so it can be a program name with args.
3624 set dummy tbl; ac_word=$2
3625 echo "$as_me:$LINENO: checking for $ac_word" >&5
3626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3627 if test "${ac_cv_path_TBL+set}" = set; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   case $TBL in
3631   [\\/]* | ?:[\\/]*)
3632   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3633   ;;
3634   *)
3635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638   IFS=$as_save_IFS
3639   test -z "$as_dir" && as_dir=.
3640   for ac_exec_ext in '' $ac_executable_extensions; do
3641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644     break 2
3645   fi
3646 done
3647 done
3648
3649   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3650   ;;
3651 esac
3652 fi
3653 TBL=$ac_cv_path_TBL
3654
3655 if test -n "$TBL"; then
3656   echo "$as_me:$LINENO: result: $TBL" >&5
3657 echo "${ECHO_T}$TBL" >&6
3658 else
3659   echo "$as_me:$LINENO: result: no" >&5
3660 echo "${ECHO_T}no" >&6
3661 fi
3662
3663 # Extract the first word of "ar", so it can be a program name with args.
3664 set dummy ar; ac_word=$2
3665 echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_path_AR+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   case $AR in
3671   [\\/]* | ?:[\\/]*)
3672   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3673   ;;
3674   *)
3675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678   IFS=$as_save_IFS
3679   test -z "$as_dir" && as_dir=.
3680   for ac_exec_ext in '' $ac_executable_extensions; do
3681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684     break 2
3685   fi
3686 done
3687 done
3688
3689   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3690   ;;
3691 esac
3692 fi
3693 AR=$ac_cv_path_AR
3694
3695 if test -n "$AR"; then
3696   echo "$as_me:$LINENO: result: $AR" >&5
3697 echo "${ECHO_T}$AR" >&6
3698 else
3699   echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3701 fi
3702
3703 # Extract the first word of "openssl", so it can be a program name with args.
3704 set dummy openssl; ac_word=$2
3705 echo "$as_me:$LINENO: checking for $ac_word" >&5
3706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3707 if test "${ac_cv_path_OPENSSL+set}" = set; then
3708   echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710   case $OPENSSL in
3711   [\\/]* | ?:[\\/]*)
3712   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3713   ;;
3714   *)
3715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3717 do
3718   IFS=$as_save_IFS
3719   test -z "$as_dir" && as_dir=.
3720   for ac_exec_ext in '' $ac_executable_extensions; do
3721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724     break 2
3725   fi
3726 done
3727 done
3728
3729   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3730   ;;
3731 esac
3732 fi
3733 OPENSSL=$ac_cv_path_OPENSSL
3734
3735 if test -n "$OPENSSL"; then
3736   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3737 echo "${ECHO_T}$OPENSSL" >&6
3738 else
3739   echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6
3741 fi
3742
3743 # Extract the first word of "mtx", so it can be a program name with args.
3744 set dummy mtx; ac_word=$2
3745 echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747 if test "${ac_cv_path_MTX+set}" = set; then
3748   echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750   case $MTX in
3751   [\\/]* | ?:[\\/]*)
3752   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3753   ;;
3754   *)
3755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758   IFS=$as_save_IFS
3759   test -z "$as_dir" && as_dir=.
3760   for ac_exec_ext in '' $ac_executable_extensions; do
3761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764     break 2
3765   fi
3766 done
3767 done
3768
3769   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3770   ;;
3771 esac
3772 fi
3773 MTX=$ac_cv_path_MTX
3774
3775 if test -n "$MTX"; then
3776   echo "$as_me:$LINENO: result: $MTX" >&5
3777 echo "${ECHO_T}$MTX" >&6
3778 else
3779   echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3781 fi
3782
3783 # Extract the first word of "pkg-config", so it can be a program name with args.
3784 set dummy pkg-config; ac_word=$2
3785 echo "$as_me:$LINENO: checking for $ac_word" >&5
3786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3788   echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790   case $PKGCONFIG in
3791   [\\/]* | ?:[\\/]*)
3792   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3793   ;;
3794   *)
3795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798   IFS=$as_save_IFS
3799   test -z "$as_dir" && as_dir=.
3800   for ac_exec_ext in '' $ac_executable_extensions; do
3801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804     break 2
3805   fi
3806 done
3807 done
3808
3809   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3810   ;;
3811 esac
3812 fi
3813 PKGCONFIG=$ac_cv_path_PKGCONFIG
3814
3815 if test -n "$PKGCONFIG"; then
3816   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3817 echo "${ECHO_T}$PKGCONFIG" >&6
3818 else
3819   echo "$as_me:$LINENO: result: no" >&5
3820 echo "${ECHO_T}no" >&6
3821 fi
3822
3823 # Extract the first word of "wx-config", so it can be a program name with args.
3824 set dummy wx-config; ac_word=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   case $WXCONFIG in
3831   [\\/]* | ?:[\\/]*)
3832   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3833   ;;
3834   *)
3835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838   IFS=$as_save_IFS
3839   test -z "$as_dir" && as_dir=.
3840   for ac_exec_ext in '' $ac_executable_extensions; do
3841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844     break 2
3845   fi
3846 done
3847 done
3848
3849   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3850   ;;
3851 esac
3852 fi
3853 WXCONFIG=$ac_cv_path_WXCONFIG
3854
3855 if test -n "$WXCONFIG"; then
3856   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3857 echo "${ECHO_T}$WXCONFIG" >&6
3858 else
3859   echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3861 fi
3862
3863
3864 test -n "$ARFLAG" || ARFLAGS="cr"
3865
3866
3867 MAKE_SHELL=/bin/sh
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877 # Make sure we can run config.sub.
3878 $ac_config_sub sun4 >/dev/null 2>&1 ||
3879   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3880 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3881    { (exit 1); exit 1; }; }
3882
3883 echo "$as_me:$LINENO: checking build system type" >&5
3884 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3885 if test "${ac_cv_build+set}" = set; then
3886   echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888   ac_cv_build_alias=$build_alias
3889 test -z "$ac_cv_build_alias" &&
3890   ac_cv_build_alias=`$ac_config_guess`
3891 test -z "$ac_cv_build_alias" &&
3892   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3893 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3894    { (exit 1); exit 1; }; }
3895 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3896   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3897 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3898    { (exit 1); exit 1; }; }
3899
3900 fi
3901 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3902 echo "${ECHO_T}$ac_cv_build" >&6
3903 build=$ac_cv_build
3904 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3905 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3906 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3907
3908
3909
3910 echo "$as_me:$LINENO: checking host system type" >&5
3911 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3912 if test "${ac_cv_host+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   ac_cv_host_alias=$host_alias
3916 test -z "$ac_cv_host_alias" &&
3917   ac_cv_host_alias=$ac_cv_build_alias
3918 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3919   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3920 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3921    { (exit 1); exit 1; }; }
3922
3923 fi
3924 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3925 echo "${ECHO_T}$ac_cv_host" >&6
3926 host=$ac_cv_host
3927 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3928 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3929 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3930
3931
3932 case $host_os in
3933   *cygwin* ) CYGWIN=yes;;
3934          * ) CYGWIN=no;;
3935 esac
3936
3937 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3938 then
3939
3940
3941 if $TRUEPRG; then
3942   HAVE_SUN_OS_TRUE=
3943   HAVE_SUN_OS_FALSE='#'
3944 else
3945   HAVE_SUN_OS_TRUE='#'
3946   HAVE_SUN_OS_FALSE=
3947 fi
3948         cat >>confdefs.h <<\_ACEOF
3949 #define HAVE_SUN_OS 1
3950 _ACEOF
3951
3952 else
3953
3954
3955 if $FALSEPRG; then
3956   HAVE_SUN_OS_TRUE=
3957   HAVE_SUN_OS_FALSE='#'
3958 else
3959   HAVE_SUN_OS_TRUE='#'
3960   HAVE_SUN_OS_FALSE=
3961 fi
3962 fi
3963
3964 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3965 then
3966
3967
3968 if $TRUEPRG; then
3969   HAVE_OSF1_OS_TRUE=
3970   HAVE_OSF1_OS_FALSE='#'
3971 else
3972   HAVE_OSF1_OS_TRUE='#'
3973   HAVE_OSF1_OS_FALSE=
3974 fi
3975         cat >>confdefs.h <<\_ACEOF
3976 #define HAVE_OSF1_OS 1
3977 _ACEOF
3978
3979 else
3980
3981
3982 if $FALSEPRG; then
3983   HAVE_OSF1_OS_TRUE=
3984   HAVE_OSF1_OS_FALSE='#'
3985 else
3986   HAVE_OSF1_OS_TRUE='#'
3987   HAVE_OSF1_OS_FALSE=
3988 fi
3989 fi
3990
3991 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3992 then
3993
3994
3995 if $TRUEPRG; then
3996   HAVE_AIX_OS_TRUE=
3997   HAVE_AIX_OS_FALSE='#'
3998 else
3999   HAVE_AIX_OS_TRUE='#'
4000   HAVE_AIX_OS_FALSE=
4001 fi
4002         cat >>confdefs.h <<\_ACEOF
4003 #define HAVE_AIX_OS 1
4004 _ACEOF
4005
4006 else
4007
4008
4009 if $FALSEPRG; then
4010   HAVE_AIX_OS_TRUE=
4011   HAVE_AIX_OS_FALSE='#'
4012 else
4013   HAVE_AIX_OS_TRUE='#'
4014   HAVE_AIX_OS_FALSE=
4015 fi
4016 fi
4017
4018 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4019 then
4020
4021
4022 if $TRUEPRG; then
4023   HAVE_HPUX_OS_TRUE=
4024   HAVE_HPUX_OS_FALSE='#'
4025 else
4026   HAVE_HPUX_OS_TRUE='#'
4027   HAVE_HPUX_OS_FALSE=
4028 fi
4029         cat >>confdefs.h <<\_ACEOF
4030 #define HAVE_HPUX_OS 1
4031 _ACEOF
4032
4033 else
4034
4035
4036 if $FALSEPRG; then
4037   HAVE_HPUX_OS_TRUE=
4038   HAVE_HPUX_OS_FALSE='#'
4039 else
4040   HAVE_HPUX_OS_TRUE='#'
4041   HAVE_HPUX_OS_FALSE=
4042 fi
4043 fi
4044
4045 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4046 then
4047
4048
4049 if $TRUEPRG; then
4050   HAVE_LINUX_OS_TRUE=
4051   HAVE_LINUX_OS_FALSE='#'
4052 else
4053   HAVE_LINUX_OS_TRUE='#'
4054   HAVE_LINUX_OS_FALSE=
4055 fi
4056         cat >>confdefs.h <<\_ACEOF
4057 #define HAVE_LINUX_OS 1
4058 _ACEOF
4059
4060 else
4061
4062
4063 if $FALSEPRG; then
4064   HAVE_LINUX_OS_TRUE=
4065   HAVE_LINUX_OS_FALSE='#'
4066 else
4067   HAVE_LINUX_OS_TRUE='#'
4068   HAVE_LINUX_OS_FALSE=
4069 fi
4070 fi
4071
4072 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4073 then
4074
4075
4076 if $TRUEPRG; then
4077   HAVE_FREEBSD_OS_TRUE=
4078   HAVE_FREEBSD_OS_FALSE='#'
4079 else
4080   HAVE_FREEBSD_OS_TRUE='#'
4081   HAVE_FREEBSD_OS_FALSE=
4082 fi
4083         cat >>confdefs.h <<\_ACEOF
4084 #define HAVE_FREEBSD_OS 1
4085 _ACEOF
4086
4087 else
4088
4089
4090 if $FALSEPRG; then
4091   HAVE_FREEBSD_OS_TRUE=
4092   HAVE_FREEBSD_OS_FALSE='#'
4093 else
4094   HAVE_FREEBSD_OS_TRUE='#'
4095   HAVE_FREEBSD_OS_FALSE=
4096 fi
4097 fi
4098
4099 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4100 then
4101
4102
4103 if $TRUEPRG; then
4104   HAVE_NETBSD_OS_TRUE=
4105   HAVE_NETBSD_OS_FALSE='#'
4106 else
4107   HAVE_NETBSD_OS_TRUE='#'
4108   HAVE_NETBSD_OS_FALSE=
4109 fi
4110         cat >>confdefs.h <<\_ACEOF
4111 #define HAVE_NETBSD_OS 1
4112 _ACEOF
4113
4114 else
4115
4116
4117 if $FALSEPRG; then
4118   HAVE_NETBSD_OS_TRUE=
4119   HAVE_NETBSD_OS_FALSE='#'
4120 else
4121   HAVE_NETBSD_OS_TRUE='#'
4122   HAVE_NETBSD_OS_FALSE=
4123 fi
4124 fi
4125
4126 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4127 then
4128
4129
4130 if $TRUEPRG; then
4131   HAVE_OPENBSD_OS_TRUE=
4132   HAVE_OPENBSD_OS_FALSE='#'
4133 else
4134   HAVE_OPENBSD_OS_TRUE='#'
4135   HAVE_OPENBSD_OS_FALSE=
4136 fi
4137         cat >>confdefs.h <<\_ACEOF
4138 #define HAVE_OPENBSD_OS 1
4139 _ACEOF
4140
4141 else
4142
4143
4144 if $FALSEPRG; then
4145   HAVE_OPENBSD_OS_TRUE=
4146   HAVE_OPENBSD_OS_FALSE='#'
4147 else
4148   HAVE_OPENBSD_OS_TRUE='#'
4149   HAVE_OPENBSD_OS_FALSE=
4150 fi
4151 fi
4152
4153 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4154 then
4155
4156
4157 if $TRUEPRG; then
4158   HAVE_BSDI_OS_TRUE=
4159   HAVE_BSDI_OS_FALSE='#'
4160 else
4161   HAVE_BSDI_OS_TRUE='#'
4162   HAVE_BSDI_OS_FALSE=
4163 fi
4164         cat >>confdefs.h <<\_ACEOF
4165 #define HAVE_BSDI_OS 1
4166 _ACEOF
4167
4168 else
4169
4170
4171 if $FALSEPRG; then
4172   HAVE_BSDI_OS_TRUE=
4173   HAVE_BSDI_OS_FALSE='#'
4174 else
4175   HAVE_BSDI_OS_TRUE='#'
4176   HAVE_BSDI_OS_FALSE=
4177 fi
4178 fi
4179
4180 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4181 then
4182
4183
4184 if $TRUEPRG; then
4185   HAVE_SGI_OS_TRUE=
4186   HAVE_SGI_OS_FALSE='#'
4187 else
4188   HAVE_SGI_OS_TRUE='#'
4189   HAVE_SGI_OS_FALSE=
4190 fi
4191         cat >>confdefs.h <<\_ACEOF
4192 #define HAVE_SGI_OS 1
4193 _ACEOF
4194
4195 else
4196
4197
4198 if $FALSEPRG; then
4199   HAVE_SGI_OS_TRUE=
4200   HAVE_SGI_OS_FALSE='#'
4201 else
4202   HAVE_SGI_OS_TRUE='#'
4203   HAVE_SGI_OS_FALSE=
4204 fi
4205 fi
4206
4207 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4208 then
4209
4210
4211 if $TRUEPRG; then
4212   HAVE_IRIX_OS_TRUE=
4213   HAVE_IRIX_OS_FALSE='#'
4214 else
4215   HAVE_IRIX_OS_TRUE='#'
4216   HAVE_IRIX_OS_FALSE=
4217 fi
4218         cat >>confdefs.h <<\_ACEOF
4219 #define HAVE_IRIX_OS 1
4220 _ACEOF
4221
4222 else
4223
4224
4225 if $FALSEPRG; then
4226   HAVE_IRIX_OS_TRUE=
4227   HAVE_IRIX_OS_FALSE='#'
4228 else
4229   HAVE_IRIX_OS_TRUE='#'
4230   HAVE_IRIX_OS_FALSE=
4231 fi
4232 fi
4233
4234 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4235 then
4236
4237
4238 if $TRUEPRG; then
4239   HAVE_DARWIN_OS_TRUE=
4240   HAVE_DARWIN_OS_FALSE='#'
4241 else
4242   HAVE_DARWIN_OS_TRUE='#'
4243   HAVE_DARWIN_OS_FALSE=
4244 fi
4245     cat >>confdefs.h <<\_ACEOF
4246 #define HAVE_DARWIN_OS 1
4247 _ACEOF
4248
4249 else
4250
4251
4252 if $FALSEPRG; then
4253   HAVE_DARWIN_OS_TRUE=
4254   HAVE_DARWIN_OS_FALSE='#'
4255 else
4256   HAVE_DARWIN_OS_TRUE='#'
4257   HAVE_DARWIN_OS_FALSE=
4258 fi
4259 fi
4260
4261
4262 # -----------------------------------------------------------
4263 # ----------------------------------------------------------
4264 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4265 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4266 if test "x$DISTNAME" != "x"
4267 then
4268         echo "distname set to $DISTNAME"
4269 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4270 then
4271         DISTNAME=alpha
4272 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4273 then
4274         DISTNAME=aix
4275 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4276 then
4277         DISTNAME=hpux
4278 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4279 then
4280         DISTNAME=solaris
4281 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4282 then
4283         DISTNAME=freebsd
4284 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4285 then
4286         DISTNAME=netbsd
4287 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4288 then
4289         DISTNAME=openbsd
4290 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4291 then
4292         DISTNAME=irix
4293 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4294 then
4295         DISTNAME=bsdi
4296 elif test -f /etc/SuSE-release
4297 then
4298         DISTNAME=suse
4299 elif test -d /etc/SuSEconfig
4300 then
4301         DISTNAME=suse5
4302 elif test -f /etc/mandrake-release
4303 then
4304         DISTNAME=mandrake
4305 elif test -f /etc/whitebox-release
4306 then
4307        DISTNAME=redhat
4308 elif test -f /etc/redhat-release
4309 then
4310         DISTNAME=redhat
4311 elif test -f /etc/gentoo-release
4312 then
4313         DISTNAME=gentoo
4314 elif test -f /etc/debian_version
4315 then
4316         DISTNAME=debian
4317 elif test -f /etc/slackware-version
4318 then
4319         DISTNAME=slackware
4320 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4321 then
4322     DISTNAME=darwin
4323 elif test -f /etc/engarde-version
4324 then
4325         DISTNAME=engarde
4326 elif test "$CYGWIN" = yes
4327 then
4328         DISTNAME=cygwin
4329         cat >>confdefs.h <<\_ACEOF
4330 #define HAVE_CYGWIN 1
4331 _ACEOF
4332
4333 else
4334         DISTNAME=unknown
4335 fi
4336 echo "$as_me:$LINENO: result: done" >&5
4337 echo "${ECHO_T}done" >&6
4338
4339
4340 # -----------------------------------------------------------
4341 # ----------------------------------------------------------
4342
4343
4344
4345 if false; then
4346   INSIDE_GNOME_COMMON_TRUE=
4347   INSIDE_GNOME_COMMON_FALSE='#'
4348 else
4349   INSIDE_GNOME_COMMON_TRUE='#'
4350   INSIDE_GNOME_COMMON_FALSE=
4351 fi
4352
4353         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4354
4355         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4356
4357
4358 # ------------------------------------------------------------------
4359 #  If the user has not set --prefix, we set our default to nothing.
4360 #  In this case, if the user has not set --sysconfdir, we set it
4361 #  to the package default of /etc/bacula.  If either --prefix or
4362 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4363 # ------------------------------------------------------------------
4364 if test x${prefix} = xNONE ; then
4365     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4366         sysconfdir=/etc/bacula
4367     fi
4368     prefix=
4369 fi
4370 sysconfdir=`eval echo ${sysconfdir}`
4371
4372 # -------------------------------------------------------------------------
4373 #  If the user has not set --exec-prefix, we default to ${prefix}
4374 # -------------------------------------------------------------------------
4375 if test x${exec_prefix} = xNONE ; then
4376     exec_prefix=${prefix}
4377 fi
4378
4379 # ------------------------------------------------------------------
4380 # If the user has not set --sbindir, we set our default as /sbin
4381 # ------------------------------------------------------------------
4382 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4383     sbindir=${exec_prefix}/sbin
4384 fi
4385 sbindir=`eval echo ${sbindir}`
4386
4387 # ------------------------------------------------------------------
4388 # All list of languages for which a translation exist. Each
4389 #  language is separated by a space.
4390 # ------------------------------------------------------------------
4391 ALL_LINGUAS=""
4392
4393 for ac_prog in msgfmt
4394 do
4395   # Extract the first word of "$ac_prog", so it can be a program name with args.
4396 set dummy $ac_prog; ac_word=$2
4397 echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399 if test "${ac_cv_path_MSGFMT+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   case $MSGFMT in
4403   [\\/]* | ?:[\\/]*)
4404   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4405   ;;
4406   *)
4407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410   IFS=$as_save_IFS
4411   test -z "$as_dir" && as_dir=.
4412   for ac_exec_ext in '' $ac_executable_extensions; do
4413   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416     break 2
4417   fi
4418 done
4419 done
4420
4421   ;;
4422 esac
4423 fi
4424 MSGFMT=$ac_cv_path_MSGFMT
4425
4426 if test -n "$MSGFMT"; then
4427   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4428 echo "${ECHO_T}$MSGFMT" >&6
4429 else
4430   echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6
4432 fi
4433
4434   test -n "$MSGFMT" && break
4435 done
4436 test -n "$MSGFMT" || MSGFMT="no"
4437
4438 if test "$MSGFMT" = "no"
4439 then
4440    echo 'msgfmt program not found, disabling NLS !'
4441    USE_NLS=no
4442    USE_INCLUDED_LIBINTL=no
4443 #else
4444 #   AM_GNU_GETTEXT
4445 fi
4446
4447
4448 support_mysql=no
4449 support_sqlite=no
4450 support_postgresql=no
4451 support_smartalloc=yes
4452 support_readline=yes
4453 support_conio=yes
4454 support_gnome=no
4455 support_wx_console=no
4456 gnome_version=
4457 support_static_tools=no
4458 support_static_fd=no
4459 support_static_sd=no
4460 support_static_dir=no
4461 support_static_cons=no
4462 build_client_only=no
4463 cats=
4464 db_name=Internal
4465 DB_NAME=bdb
4466
4467
4468 # -------------------------------------------
4469 # gnome (default off)
4470 # -------------------------------------------
4471 # Check whether --enable-gnome or --disable-gnome was given.
4472 if test "${enable_gnome+set}" = set; then
4473   enableval="$enable_gnome"
4474   if test x$enableval = xyes; then
4475     support_gnome=yes
4476   fi
4477 fi;
4478
4479 GNOME_DIR=
4480 if test x$support_gnome = xyes; then
4481   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4482   pkg=$?
4483   if test $pkg = 0; then
4484      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4485      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4486      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4487      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4488
4489
4490
4491
4492      GNOME_DIR=src/gnome2-console
4493      gnome_version="Version 2.x"
4494   else
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4507 if test "${with_gnome_includes+set}" = set; then
4508   withval="$with_gnome_includes"
4509
4510         CFLAGS="$CFLAGS -I$withval"
4511
4512 fi;
4513
4514
4515 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4516 if test "${with_gnome_libs+set}" = set; then
4517   withval="$with_gnome_libs"
4518
4519         LDFLAGS="$LDFLAGS -L$withval"
4520         gnome_prefix=$withval
4521
4522 fi;
4523
4524
4525 # Check whether --with-gnome or --without-gnome was given.
4526 if test "${with_gnome+set}" = set; then
4527   withval="$with_gnome"
4528   if test x$withval = xyes; then
4529                         want_gnome=yes
4530                                                                         :
4531                 else
4532                         if test "x$withval" = xno; then
4533                                 want_gnome=no
4534                         else
4535                                 want_gnome=yes
4536                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4537                                 CFLAGS="$CFLAGS -I$withval/include"
4538                                 gnome_prefix=$withval/lib
4539                         fi
4540                 fi
4541 else
4542   want_gnome=yes
4543 fi;
4544
4545         if test "x$want_gnome" = xyes; then
4546
4547             # Extract the first word of "gnome-config", so it can be a program name with args.
4548 set dummy gnome-config; ac_word=$2
4549 echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4551 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   case $GNOME_CONFIG in
4555   [\\/]* | ?:[\\/]*)
4556   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4557   ;;
4558   *)
4559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564   for ac_exec_ext in '' $ac_executable_extensions; do
4565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4566     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568     break 2
4569   fi
4570 done
4571 done
4572
4573   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4574   ;;
4575 esac
4576 fi
4577 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4578
4579 if test -n "$GNOME_CONFIG"; then
4580   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4581 echo "${ECHO_T}$GNOME_CONFIG" >&6
4582 else
4583   echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6
4585 fi
4586
4587             if test "$GNOME_CONFIG" = "no"; then
4588               no_gnome_config="yes"
4589             else
4590               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4591 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4592               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4593                 echo "$as_me:$LINENO: result: yes" >&5
4594 echo "${ECHO_T}yes" >&6
4595
4596
4597         # Extract the first word of "orbit-config", so it can be a program name with args.
4598 set dummy orbit-config; ac_word=$2
4599 echo "$as_me:$LINENO: checking for $ac_word" >&5
4600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4601 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4602   echo $ECHO_N "(cached) $ECHO_C" >&6
4603 else
4604   case $ORBIT_CONFIG in
4605   [\\/]* | ?:[\\/]*)
4606   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4607   ;;
4608   *)
4609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4611 do
4612   IFS=$as_save_IFS
4613   test -z "$as_dir" && as_dir=.
4614   for ac_exec_ext in '' $ac_executable_extensions; do
4615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618     break 2
4619   fi
4620 done
4621 done
4622
4623   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4624   ;;
4625 esac
4626 fi
4627 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4628
4629 if test -n "$ORBIT_CONFIG"; then
4630   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4631 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4632 else
4633   echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6
4635 fi
4636
4637         # Extract the first word of "orbit-idl", so it can be a program name with args.
4638 set dummy orbit-idl; ac_word=$2
4639 echo "$as_me:$LINENO: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4642   echo $ECHO_N "(cached) $ECHO_C" >&6
4643 else
4644   case $ORBIT_IDL in
4645   [\\/]* | ?:[\\/]*)
4646   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4647   ;;
4648   *)
4649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652   IFS=$as_save_IFS
4653   test -z "$as_dir" && as_dir=.
4654   for ac_exec_ext in '' $ac_executable_extensions; do
4655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658     break 2
4659   fi
4660 done
4661 done
4662
4663   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4664   ;;
4665 esac
4666 fi
4667 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4668
4669 if test -n "$ORBIT_IDL"; then
4670   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4671 echo "${ECHO_T}$ORBIT_IDL" >&6
4672 else
4673   echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6
4675 fi
4676
4677         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4678 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4679 if test "${gnome_cv_orbit_found+set}" = set; then
4680   echo $ECHO_N "(cached) $ECHO_C" >&6
4681 else
4682
4683                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4684                         gnome_cv_orbit_found=no
4685                 else
4686                         gnome_cv_orbit_found=yes
4687                 fi
4688
4689 fi
4690 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4691 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4692
4693
4694 if test x$gnome_cv_orbit_found = xyes; then
4695   HAVE_ORBIT_TRUE=
4696   HAVE_ORBIT_FALSE='#'
4697 else
4698   HAVE_ORBIT_TRUE='#'
4699   HAVE_ORBIT_FALSE=
4700 fi
4701         if test x$gnome_cv_orbit_found = xyes; then
4702
4703                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4704                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4705
4706
4707         else
4708                 if test xfail = xfailure; then
4709                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4710 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4711    { (exit 1); exit 1; }; }
4712                 fi
4713         fi
4714
4715         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4716 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4717 if test "${gnome_cv_gnorba_found+set}" = set; then
4718   echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720
4721                 gnome_cv_gnorba_found=no
4722                 if test x$gnome_cv_orbit_found = xyes; then
4723                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4724                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4725                         if test -n "$GNORBA_LIBS"; then
4726                                 gnome_cv_gnorba_found=yes
4727                         fi
4728                 fi
4729
4730 fi
4731 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4732 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4733
4734
4735 if test x$gnome_cv_gnorba_found = xyes; then
4736   HAVE_GNORBA_TRUE=
4737   HAVE_GNORBA_FALSE='#'
4738 else
4739   HAVE_GNORBA_TRUE='#'
4740   HAVE_GNORBA_FALSE=
4741 fi
4742         if test x$gnome_cv_orbit_found = xyes; then
4743
4744                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4745                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4746
4747
4748         else
4749                 if test xfail = xfailure; then
4750                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4751 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4752    { (exit 1); exit 1; }; }
4753                 fi
4754         fi
4755
4756                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4757                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4758                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4759                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4760                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4761                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4762                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4763
4764               else
4765                 echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4767                 no_gnome_config="yes"
4768               fi
4769             fi
4770
4771             if test x$exec_prefix = xNONE; then
4772                 if test x$prefix = xNONE; then
4773                     gnome_prefix=$ac_default_prefix/lib
4774                 else
4775                     gnome_prefix=$prefix/lib
4776                 fi
4777             else
4778                 gnome_prefix=`eval echo \`echo $libdir\``
4779             fi
4780
4781             if test "$no_gnome_config" = "yes"; then
4782               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4783 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4784               if test -f $gnome_prefix/gnomeConf.sh; then
4785                 echo "$as_me:$LINENO: result: found" >&5
4786 echo "${ECHO_T}found" >&6
4787                 echo "loading gnome configuration from" \
4788                      "$gnome_prefix/gnomeConf.sh"
4789                 . $gnome_prefix/gnomeConf.sh
4790
4791               else
4792                 echo "$as_me:$LINENO: result: not found" >&5
4793 echo "${ECHO_T}not found" >&6
4794                 if test xfail = xfail; then
4795                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4796 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4797    { (exit 1); exit 1; }; }
4798                 fi
4799               fi
4800             fi
4801         fi
4802
4803         if test -n ""; then
4804           n=""
4805           for i in $n; do
4806             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4807 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4808             case $i in
4809               applets)
4810
4811                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4812                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4813 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4814               docklets)
4815
4816                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4817                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4818 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4819               capplet)
4820
4821                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4822                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4823 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4824               *)
4825                 echo "$as_me:$LINENO: result: unknown library" >&5
4826 echo "${ECHO_T}unknown library" >&6
4827             esac
4828             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4829             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4830           done
4831         fi
4832
4833
4834      GNOME_DIR=src/gnome-console
4835      gnome_version="Version 1.4"
4836   fi
4837 fi
4838
4839
4840
4841 # -------------------------------------------
4842 # wx-console (default off)
4843 # -------------------------------------------
4844 # Check whether --enable-wx-console or --disable-wx-console was given.
4845 if test "${enable_wx_console+set}" = set; then
4846   enableval="$enable_wx_console"
4847   if test x$enableval = xyes; then
4848     support_wx_console=yes
4849   fi
4850 fi;
4851
4852 WX_DIR=
4853 if test x$support_wx_console = xyes; then
4854   abc=`$WXCONFIG --cppflags`
4855   pkg=$?
4856   if test $pkg = 0; then
4857      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4858      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4859
4860
4861      WX_DIR=src/wx-console
4862   else
4863      echo " "
4864      echo "wx-config program not found. wx-console disabled."
4865      echo " "
4866      support_wx_console=no
4867   fi
4868 fi
4869
4870
4871
4872
4873 # -------------------------------------------
4874 # smartalloc (default off)
4875 # -------------------------------------------
4876 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4877 if test "${enable_smartalloc+set}" = set; then
4878   enableval="$enable_smartalloc"
4879   if test x$enableval = xno; then
4880     support_smartalloc=no
4881   fi
4882 fi;
4883
4884 if test x$support_smartalloc = xyes; then
4885    cat >>confdefs.h <<\_ACEOF
4886 #define SMARTALLOC 1
4887 _ACEOF
4888
4889 fi
4890
4891 # -------------------------------------------
4892 # static-tools (default off)
4893 # -------------------------------------------
4894 # Check whether --enable-static-tools or --disable-static-tools was given.
4895 if test "${enable_static_tools+set}" = set; then
4896   enableval="$enable_static_tools"
4897   if test x$enableval = xyes; then
4898      support_static_tools=yes
4899    fi
4900 fi;
4901
4902 TTOOL_LDFLAGS=
4903 if test x$support_static_tools = xyes; then
4904    TTOOL_LDFLAGS="-static"
4905 fi
4906
4907
4908 # -------------------------------------------
4909 # static-fd    (default off)
4910 # -------------------------------------------
4911 # Check whether --enable-static-fd or --disable-static-fd was given.
4912 if test "${enable_static_fd+set}" = set; then
4913   enableval="$enable_static_fd"
4914   if test x$enableval = xyes; then
4915      support_static_fd=yes
4916    fi
4917 fi;
4918
4919 STATIC_FD=
4920 if test x$support_static_fd = xyes; then
4921    STATIC_FD="static-bacula-fd"
4922 fi
4923
4924
4925 # -------------------------------------------
4926 # static-sd    (default off)
4927 # -------------------------------------------
4928 # Check whether --enable-static-sd or --disable-static-sd was given.
4929 if test "${enable_static_sd+set}" = set; then
4930   enableval="$enable_static_sd"
4931   if test x$enableval = xyes; then
4932      support_static_sd=yes
4933    fi
4934 fi;
4935
4936 STATIC_SD=
4937 if test x$support_static_sd = xyes; then
4938    STATIC_SD="static-bacula-sd"
4939 fi
4940
4941
4942 # -------------------------------------------
4943 # static-dir   (default off)
4944 # -------------------------------------------
4945 # Check whether --enable-static-dir or --disable-static-dir was given.
4946 if test "${enable_static_dir+set}" = set; then
4947   enableval="$enable_static_dir"
4948   if test x$enableval = xyes; then
4949      support_static_dir=yes
4950    fi
4951 fi;
4952
4953 STATIC_DIR=
4954 if test x$support_static_dir = xyes; then
4955    STATIC_DIR="static-bacula-dir"
4956 fi
4957
4958
4959 # -------------------------------------------
4960 # static-cons  (default off)
4961 # -------------------------------------------
4962 # Check whether --enable-static-cons or --disable-static-cons was given.
4963 if test "${enable_static_cons+set}" = set; then
4964   enableval="$enable_static_cons"
4965   if test x$enableval = xyes; then
4966      support_static_cons=yes
4967    fi
4968 fi;
4969
4970 STATIC_CONS=
4971 STATIC_GNOME_CONS=
4972 STATIC_WX_CONS=
4973 if test x$support_static_cons = xyes; then
4974    STATIC_CONS="static-bconsole"
4975    STATIC_GNOME_CONS="static-gnome-console"
4976    STATIC_WX_CONS="static-wx-console"
4977 fi
4978
4979
4980
4981
4982 # -------------------------------------------
4983 # client_only  (default off)
4984 # -------------------------------------------
4985 # Check whether --enable-client-only or --disable-client-only was given.
4986 if test "${enable_client_only+set}" = set; then
4987   enableval="$enable_client_only"
4988   if test x$enableval = xyes; then
4989      build_client_only=yes
4990     db_name=None
4991     DB_NAME=none
4992    fi
4993 fi;
4994 if test x$build_client_only = xno; then
4995    ALL_DIRS="subdirs"
4996 else
4997    ALL_DIRS=""
4998 fi
4999
5000
5001 # ---------------------------------------------------
5002 # Check for conio (Bacula readline substitute)(
5003 # ---------------------------------------------------
5004 # this allows you to turn it completely off
5005 # Check whether --enable-conio or --disable-conio was given.
5006 if test "${enable_conio+set}" = set; then
5007   enableval="$enable_conio"
5008   if test x$enableval = xno; then
5009     support_conio=no
5010   fi
5011 fi;
5012
5013 got_conio="no"
5014 if test x$support_conio = xyes; then
5015    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5017 if test "${ac_cv_header_stdc+set}" = set; then
5018   echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5020   cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h.  */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h.  */
5026 #include <stdlib.h>
5027 #include <stdarg.h>
5028 #include <string.h>
5029 #include <float.h>
5030
5031 int
5032 main ()
5033 {
5034
5035   ;
5036   return 0;
5037 }
5038 _ACEOF
5039 rm -f conftest.$ac_objext
5040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5041   (eval $ac_compile) 2>conftest.er1
5042   ac_status=$?
5043   grep -v '^ *+' conftest.er1 >conftest.err
5044   rm -f conftest.er1
5045   cat conftest.err >&5
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); } &&
5048          { ac_try='test -z "$ac_c_werror_flag"
5049                          || test ! -s conftest.err'
5050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5051   (eval $ac_try) 2>&5
5052   ac_status=$?
5053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); }; } &&
5055          { ac_try='test -s conftest.$ac_objext'
5056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057   (eval $ac_try) 2>&5
5058   ac_status=$?
5059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); }; }; then
5061   ac_cv_header_stdc=yes
5062 else
5063   echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5065
5066 ac_cv_header_stdc=no
5067 fi
5068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5069
5070 if test $ac_cv_header_stdc = yes; then
5071   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5072   cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h.  */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h.  */
5078 #include <string.h>
5079
5080 _ACEOF
5081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5082   $EGREP "memchr" >/dev/null 2>&1; then
5083   :
5084 else
5085   ac_cv_header_stdc=no
5086 fi
5087 rm -f conftest*
5088
5089 fi
5090
5091 if test $ac_cv_header_stdc = yes; then
5092   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5093   cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h.  */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h.  */
5099 #include <stdlib.h>
5100
5101 _ACEOF
5102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5103   $EGREP "free" >/dev/null 2>&1; then
5104   :
5105 else
5106   ac_cv_header_stdc=no
5107 fi
5108 rm -f conftest*
5109
5110 fi
5111
5112 if test $ac_cv_header_stdc = yes; then
5113   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5114   if test "$cross_compiling" = yes; then
5115   :
5116 else
5117   cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h.  */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h.  */
5123 #include <ctype.h>
5124 #if ((' ' & 0x0FF) == 0x020)
5125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5127 #else
5128 # define ISLOWER(c) \
5129                    (('a' <= (c) && (c) <= 'i') \
5130                      || ('j' <= (c) && (c) <= 'r') \
5131                      || ('s' <= (c) && (c) <= 'z'))
5132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5133 #endif
5134
5135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5136 int
5137 main ()
5138 {
5139   int i;
5140   for (i = 0; i < 256; i++)
5141     if (XOR (islower (i), ISLOWER (i))
5142         || toupper (i) != TOUPPER (i))
5143       exit(2);
5144   exit (0);
5145 }
5146 _ACEOF
5147 rm -f conftest$ac_exeext
5148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5149   (eval $ac_link) 2>&5
5150   ac_status=$?
5151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154   (eval $ac_try) 2>&5
5155   ac_status=$?
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); }; }; then
5158   :
5159 else
5160   echo "$as_me: program exited with status $ac_status" >&5
5161 echo "$as_me: failed program was:" >&5
5162 sed 's/^/| /' conftest.$ac_ext >&5
5163
5164 ( exit $ac_status )
5165 ac_cv_header_stdc=no
5166 fi
5167 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5168 fi
5169 fi
5170 fi
5171 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5172 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5173 if test $ac_cv_header_stdc = yes; then
5174
5175 cat >>confdefs.h <<\_ACEOF
5176 #define STDC_HEADERS 1
5177 _ACEOF
5178
5179 fi
5180
5181 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5192                   inttypes.h stdint.h unistd.h
5193 do
5194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5195 echo "$as_me:$LINENO: checking for $ac_header" >&5
5196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5198   echo $ECHO_N "(cached) $ECHO_C" >&6
5199 else
5200   cat >conftest.$ac_ext <<_ACEOF
5201 /* confdefs.h.  */
5202 _ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h.  */
5206 $ac_includes_default
5207
5208 #include <$ac_header>
5209 _ACEOF
5210 rm -f conftest.$ac_objext
5211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5212   (eval $ac_compile) 2>conftest.er1
5213   ac_status=$?
5214   grep -v '^ *+' conftest.er1 >conftest.err
5215   rm -f conftest.er1
5216   cat conftest.err >&5
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); } &&
5219          { ac_try='test -z "$ac_c_werror_flag"
5220                          || test ! -s conftest.err'
5221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222   (eval $ac_try) 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; } &&
5226          { ac_try='test -s conftest.$ac_objext'
5227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228   (eval $ac_try) 2>&5
5229   ac_status=$?
5230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231   (exit $ac_status); }; }; then
5232   eval "$as_ac_Header=yes"
5233 else
5234   echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5236
5237 eval "$as_ac_Header=no"
5238 fi
5239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5240 fi
5241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5244   cat >>confdefs.h <<_ACEOF
5245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5246 _ACEOF
5247
5248 fi
5249
5250 done
5251
5252
5253 if test "${ac_cv_header_termcap_h+set}" = set; then
5254   echo "$as_me:$LINENO: checking for termcap.h" >&5
5255 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5256 if test "${ac_cv_header_termcap_h+set}" = set; then
5257   echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
5262   # Is the header compilable?
5263 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5264 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5265 cat >conftest.$ac_ext <<_ACEOF
5266 /* confdefs.h.  */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h.  */
5271 $ac_includes_default
5272 #include <termcap.h>
5273 _ACEOF
5274 rm -f conftest.$ac_objext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5276   (eval $ac_compile) 2>conftest.er1
5277   ac_status=$?
5278   grep -v '^ *+' conftest.er1 >conftest.err
5279   rm -f conftest.er1
5280   cat conftest.err >&5
5281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282   (exit $ac_status); } &&
5283          { ac_try='test -z "$ac_c_werror_flag"
5284                          || test ! -s conftest.err'
5285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5286   (eval $ac_try) 2>&5
5287   ac_status=$?
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); }; } &&
5290          { ac_try='test -s conftest.$ac_objext'
5291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5292   (eval $ac_try) 2>&5
5293   ac_status=$?
5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295   (exit $ac_status); }; }; then
5296   ac_header_compiler=yes
5297 else
5298   echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301 ac_header_compiler=no
5302 fi
5303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5305 echo "${ECHO_T}$ac_header_compiler" >&6
5306
5307 # Is the header present?
5308 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5309 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5310 cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h.  */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h.  */
5316 #include <termcap.h>
5317 _ACEOF
5318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5319   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5320   ac_status=$?
5321   grep -v '^ *+' conftest.er1 >conftest.err
5322   rm -f conftest.er1
5323   cat conftest.err >&5
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); } >/dev/null; then
5326   if test -s conftest.err; then
5327     ac_cpp_err=$ac_c_preproc_warn_flag
5328     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5329   else
5330     ac_cpp_err=
5331   fi
5332 else
5333   ac_cpp_err=yes
5334 fi
5335 if test -z "$ac_cpp_err"; then
5336   ac_header_preproc=yes
5337 else
5338   echo "$as_me: failed program was:" >&5
5339 sed 's/^/| /' conftest.$ac_ext >&5
5340
5341   ac_header_preproc=no
5342 fi
5343 rm -f conftest.err conftest.$ac_ext
5344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5345 echo "${ECHO_T}$ac_header_preproc" >&6
5346
5347 # So?  What about this header?
5348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5349   yes:no: )
5350     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5351 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5352     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5353 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5354     ac_header_preproc=yes
5355     ;;
5356   no:yes:* )
5357     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5358 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5359     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5360 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5361     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5362 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5363     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5364 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5365     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5366 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5367     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5368 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5369     (
5370       cat <<\_ASBOX
5371 ## ------------------------------------------ ##
5372 ## Report this to the AC_PACKAGE_NAME lists.  ##
5373 ## ------------------------------------------ ##
5374 _ASBOX
5375     ) |
5376       sed "s/^/$as_me: WARNING:     /" >&2
5377     ;;
5378 esac
5379 echo "$as_me:$LINENO: checking for termcap.h" >&5
5380 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5381 if test "${ac_cv_header_termcap_h+set}" = set; then
5382   echo $ECHO_N "(cached) $ECHO_C" >&6
5383 else
5384   ac_cv_header_termcap_h=$ac_header_preproc
5385 fi
5386 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5387 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5388
5389 fi
5390 if test $ac_cv_header_termcap_h = yes; then
5391    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5392 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5393 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5394   echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396   ac_check_lib_save_LIBS=$LIBS
5397 LIBS="-ltermcap  $LIBS"
5398 cat >conftest.$ac_ext <<_ACEOF
5399 /* confdefs.h.  */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h.  */
5404
5405 /* Override any gcc2 internal prototype to avoid an error.  */
5406 #ifdef __cplusplus
5407 extern "C"
5408 #endif
5409 /* We use char because int might match the return type of a gcc2
5410    builtin and then its argument prototype would still apply.  */
5411 char tgetent ();
5412 int
5413 main ()
5414 {
5415 tgetent ();
5416   ;
5417   return 0;
5418 }
5419 _ACEOF
5420 rm -f conftest.$ac_objext conftest$ac_exeext
5421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5422   (eval $ac_link) 2>conftest.er1
5423   ac_status=$?
5424   grep -v '^ *+' conftest.er1 >conftest.err
5425   rm -f conftest.er1
5426   cat conftest.err >&5
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } &&
5429          { ac_try='test -z "$ac_c_werror_flag"
5430                          || test ! -s conftest.err'
5431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432   (eval $ac_try) 2>&5
5433   ac_status=$?
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); }; } &&
5436          { ac_try='test -s conftest$ac_exeext'
5437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438   (eval $ac_try) 2>&5
5439   ac_status=$?
5440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441   (exit $ac_status); }; }; then
5442   ac_cv_lib_termcap_tgetent=yes
5443 else
5444   echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5446
5447 ac_cv_lib_termcap_tgetent=no
5448 fi
5449 rm -f conftest.err conftest.$ac_objext \
5450       conftest$ac_exeext conftest.$ac_ext
5451 LIBS=$ac_check_lib_save_LIBS
5452 fi
5453 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5454 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5455 if test $ac_cv_lib_termcap_tgetent = yes; then
5456    CONS_LIBS="-ltermcap"
5457          CONS_OBJ="conio.o"
5458          CONS_SRC="conio.c"
5459          got_conio="yes"
5460          support_readline=no
5461
5462 cat >>confdefs.h <<\_ACEOF
5463 #define HAVE_CONIO 1
5464 _ACEOF
5465
5466
5467 else
5468    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5469 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5470 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5471   echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473   ac_check_lib_save_LIBS=$LIBS
5474 LIBS="-lncurses  $LIBS"
5475 cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h.  */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h.  */
5481
5482 /* Override any gcc2 internal prototype to avoid an error.  */
5483 #ifdef __cplusplus
5484 extern "C"
5485 #endif
5486 /* We use char because int might match the return type of a gcc2
5487    builtin and then its argument prototype would still apply.  */
5488 char tgetent ();
5489 int
5490 main ()
5491 {
5492 tgetent ();
5493   ;
5494   return 0;
5495 }
5496 _ACEOF
5497 rm -f conftest.$ac_objext conftest$ac_exeext
5498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5499   (eval $ac_link) 2>conftest.er1
5500   ac_status=$?
5501   grep -v '^ *+' conftest.er1 >conftest.err
5502   rm -f conftest.er1
5503   cat conftest.err >&5
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } &&
5506          { ac_try='test -z "$ac_c_werror_flag"
5507                          || test ! -s conftest.err'
5508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509   (eval $ac_try) 2>&5
5510   ac_status=$?
5511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512   (exit $ac_status); }; } &&
5513          { ac_try='test -s conftest$ac_exeext'
5514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515   (eval $ac_try) 2>&5
5516   ac_status=$?
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); }; }; then
5519   ac_cv_lib_ncurses_tgetent=yes
5520 else
5521   echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5523
5524 ac_cv_lib_ncurses_tgetent=no
5525 fi
5526 rm -f conftest.err conftest.$ac_objext \
5527       conftest$ac_exeext conftest.$ac_ext
5528 LIBS=$ac_check_lib_save_LIBS
5529 fi
5530 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5531 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5532 if test $ac_cv_lib_ncurses_tgetent = yes; then
5533    CONS_LIBS="-lncurses"
5534            CONS_OBJ="conio.o"
5535            CONS_SRC="conio.c"
5536            got_conio="yes"
5537            support_readline=no
5538
5539 cat >>confdefs.h <<\_ACEOF
5540 #define HAVE_CONIO 1
5541 _ACEOF
5542
5543
5544 else
5545    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5546 fi
5547
5548
5549 fi
5550
5551
5552 else
5553   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5554 fi
5555
5556
5557 fi
5558
5559
5560 # ---------------------------------------------------
5561 # Check for readline support/directory (default off)
5562 # ---------------------------------------------------
5563 # this allows you to turn it completely off
5564 # Check whether --enable-readline or --disable-readline was given.
5565 if test "${enable_readline+set}" = set; then
5566   enableval="$enable_readline"
5567   if test x$enableval = xno; then
5568     support_readline=no
5569   fi
5570 fi;
5571
5572 got_readline="no"
5573 READLINE_SRC=
5574 if test x$support_readline = xyes; then
5575
5576 # Check whether --with-readline or --without-readline was given.
5577 if test "${with_readline+set}" = set; then
5578   withval="$with_readline"
5579
5580         case "$with_readline" in
5581         no) : ;;
5582         yes|*)
5583           if test "$with_readline" != "yes"; then
5584             CONS_INC="-I${with_readline}"
5585             CONS_LDFLAGS="-L$with_readline"
5586           else
5587              with_readline="/usr/include/readline"
5588           fi
5589           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5591   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5592 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5594   echo $ECHO_N "(cached) $ECHO_C" >&6
5595 fi
5596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5598 else
5599   # Is the header compilable?
5600 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5601 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5602 cat >conftest.$ac_ext <<_ACEOF
5603 /* confdefs.h.  */
5604 _ACEOF
5605 cat confdefs.h >>conftest.$ac_ext
5606 cat >>conftest.$ac_ext <<_ACEOF
5607 /* end confdefs.h.  */
5608 $ac_includes_default
5609 #include <${with_readline}/readline.h>
5610 _ACEOF
5611 rm -f conftest.$ac_objext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613   (eval $ac_compile) 2>conftest.er1
5614   ac_status=$?
5615   grep -v '^ *+' conftest.er1 >conftest.err
5616   rm -f conftest.er1
5617   cat conftest.err >&5
5618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619   (exit $ac_status); } &&
5620          { ac_try='test -z "$ac_c_werror_flag"
5621                          || test ! -s conftest.err'
5622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623   (eval $ac_try) 2>&5
5624   ac_status=$?
5625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626   (exit $ac_status); }; } &&
5627          { ac_try='test -s conftest.$ac_objext'
5628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5629   (eval $ac_try) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); }; }; then
5633   ac_header_compiler=yes
5634 else
5635   echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 ac_header_compiler=no
5639 fi
5640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5642 echo "${ECHO_T}$ac_header_compiler" >&6
5643
5644 # Is the header present?
5645 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5646 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5647 cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h.  */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h.  */
5653 #include <${with_readline}/readline.h>
5654 _ACEOF
5655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5656   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5657   ac_status=$?
5658   grep -v '^ *+' conftest.er1 >conftest.err
5659   rm -f conftest.er1
5660   cat conftest.err >&5
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); } >/dev/null; then
5663   if test -s conftest.err; then
5664     ac_cpp_err=$ac_c_preproc_warn_flag
5665     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5666   else
5667     ac_cpp_err=
5668   fi
5669 else
5670   ac_cpp_err=yes
5671 fi
5672 if test -z "$ac_cpp_err"; then
5673   ac_header_preproc=yes
5674 else
5675   echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678   ac_header_preproc=no
5679 fi
5680 rm -f conftest.err conftest.$ac_ext
5681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5682 echo "${ECHO_T}$ac_header_preproc" >&6
5683
5684 # So?  What about this header?
5685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5686   yes:no: )
5687     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5688 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5689     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
5690 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
5691     ac_header_preproc=yes
5692     ;;
5693   no:yes:* )
5694     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5695 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5696     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
5697 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
5698     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
5699 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
5700     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
5701 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5702     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5703 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5704     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
5705 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
5706     (
5707       cat <<\_ASBOX
5708 ## ------------------------------------------ ##
5709 ## Report this to the AC_PACKAGE_NAME lists.  ##
5710 ## ------------------------------------------ ##
5711 _ASBOX
5712     ) |
5713       sed "s/^/$as_me: WARNING:     /" >&2
5714     ;;
5715 esac
5716 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5717 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   eval "$as_ac_Header=\$ac_header_preproc"
5722 fi
5723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5725
5726 fi
5727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5728    cat >>confdefs.h <<\_ACEOF
5729 #define HAVE_READLINE 1
5730 _ACEOF
5731
5732                CONS_LIBS="-lreadline -ltermcap"
5733                got_readline="yes"
5734
5735 else
5736    echo " "
5737                echo "readline.h not found. readline turned off ..."
5738                echo " "
5739
5740
5741 fi
5742
5743
5744           ;;
5745         esac
5746
5747 else
5748
5749        # check for standard readline library
5750        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5751   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5752 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5753 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5754   echo $ECHO_N "(cached) $ECHO_C" >&6
5755 fi
5756 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5757 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5758 else
5759   # Is the header compilable?
5760 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5761 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5762 cat >conftest.$ac_ext <<_ACEOF
5763 /* confdefs.h.  */
5764 _ACEOF
5765 cat confdefs.h >>conftest.$ac_ext
5766 cat >>conftest.$ac_ext <<_ACEOF
5767 /* end confdefs.h.  */
5768 $ac_includes_default
5769 #include </usr/include/readline/readline.h>
5770 _ACEOF
5771 rm -f conftest.$ac_objext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773   (eval $ac_compile) 2>conftest.er1
5774   ac_status=$?
5775   grep -v '^ *+' conftest.er1 >conftest.err
5776   rm -f conftest.er1
5777   cat conftest.err >&5
5778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779   (exit $ac_status); } &&
5780          { ac_try='test -z "$ac_c_werror_flag"
5781                          || test ! -s conftest.err'
5782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783   (eval $ac_try) 2>&5
5784   ac_status=$?
5785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786   (exit $ac_status); }; } &&
5787          { ac_try='test -s conftest.$ac_objext'
5788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789   (eval $ac_try) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); }; }; then
5793   ac_header_compiler=yes
5794 else
5795   echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5797
5798 ac_header_compiler=no
5799 fi
5800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5801 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5802 echo "${ECHO_T}$ac_header_compiler" >&6
5803
5804 # Is the header present?
5805 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5806 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5807 cat >conftest.$ac_ext <<_ACEOF
5808 /* confdefs.h.  */
5809 _ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h.  */
5813 #include </usr/include/readline/readline.h>
5814 _ACEOF
5815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5816   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5817   ac_status=$?
5818   grep -v '^ *+' conftest.er1 >conftest.err
5819   rm -f conftest.er1
5820   cat conftest.err >&5
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); } >/dev/null; then
5823   if test -s conftest.err; then
5824     ac_cpp_err=$ac_c_preproc_warn_flag
5825     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5826   else
5827     ac_cpp_err=
5828   fi
5829 else
5830   ac_cpp_err=yes
5831 fi
5832 if test -z "$ac_cpp_err"; then
5833   ac_header_preproc=yes
5834 else
5835   echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.$ac_ext >&5
5837
5838   ac_header_preproc=no
5839 fi
5840 rm -f conftest.err conftest.$ac_ext
5841 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5842 echo "${ECHO_T}$ac_header_preproc" >&6
5843
5844 # So?  What about this header?
5845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5846   yes:no: )
5847     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5848 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5849     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
5850 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
5851     ac_header_preproc=yes
5852     ;;
5853   no:yes:* )
5854     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5855 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5856     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
5857 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
5858     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
5859 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
5860     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
5861 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5862     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5863 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5864     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
5865 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
5866     (
5867       cat <<\_ASBOX
5868 ## ------------------------------------------ ##
5869 ## Report this to the AC_PACKAGE_NAME lists.  ##
5870 ## ------------------------------------------ ##
5871 _ASBOX
5872     ) |
5873       sed "s/^/$as_me: WARNING:     /" >&2
5874     ;;
5875 esac
5876 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5877 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5878 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5879   echo $ECHO_N "(cached) $ECHO_C" >&6
5880 else
5881   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5882 fi
5883 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5884 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5885
5886 fi
5887 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5888    cat >>confdefs.h <<\_ACEOF
5889 #define HAVE_READLINE 1
5890 _ACEOF
5891
5892            got_readline="yes"
5893            CONS_INC="-I/usr/include/readline"
5894            CONS_LIBS="-lreadline -ltermcap"
5895
5896 else
5897
5898            # Did not find standard library, so try Bacula's default
5899             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5901   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5902 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 fi
5906 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5907 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5908 else
5909   # Is the header compilable?
5910 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5911 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h.  */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h.  */
5918 $ac_includes_default
5919 #include <${TOP_DIR}/depkgs/readline/readline.h>
5920 _ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923   (eval $ac_compile) 2>conftest.er1
5924   ac_status=$?
5925   grep -v '^ *+' conftest.er1 >conftest.err
5926   rm -f conftest.er1
5927   cat conftest.err >&5
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } &&
5930          { ac_try='test -z "$ac_c_werror_flag"
5931                          || test ! -s conftest.err'
5932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933   (eval $ac_try) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); }; } &&
5937          { ac_try='test -s conftest.$ac_objext'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; }; then
5943   ac_header_compiler=yes
5944 else
5945   echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 ac_header_compiler=no
5949 fi
5950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5952 echo "${ECHO_T}$ac_header_compiler" >&6
5953
5954 # Is the header present?
5955 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5956 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5957 cat >conftest.$ac_ext <<_ACEOF
5958 /* confdefs.h.  */
5959 _ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h.  */
5963 #include <${TOP_DIR}/depkgs/readline/readline.h>
5964 _ACEOF
5965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5967   ac_status=$?
5968   grep -v '^ *+' conftest.er1 >conftest.err
5969   rm -f conftest.er1
5970   cat conftest.err >&5
5971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972   (exit $ac_status); } >/dev/null; then
5973   if test -s conftest.err; then
5974     ac_cpp_err=$ac_c_preproc_warn_flag
5975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5976   else
5977     ac_cpp_err=
5978   fi
5979 else
5980   ac_cpp_err=yes
5981 fi
5982 if test -z "$ac_cpp_err"; then
5983   ac_header_preproc=yes
5984 else
5985   echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5987
5988   ac_header_preproc=no
5989 fi
5990 rm -f conftest.err conftest.$ac_ext
5991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5992 echo "${ECHO_T}$ac_header_preproc" >&6
5993
5994 # So?  What about this header?
5995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5996   yes:no: )
5997     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5998 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5999     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6000 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6001     ac_header_preproc=yes
6002     ;;
6003   no:yes:* )
6004     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6005 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6006     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6007 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6008     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6009 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6010     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6011 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6012     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6013 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6014     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6015 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6016     (
6017       cat <<\_ASBOX
6018 ## ------------------------------------------ ##
6019 ## Report this to the AC_PACKAGE_NAME lists.  ##
6020 ## ------------------------------------------ ##
6021 _ASBOX
6022     ) |
6023       sed "s/^/$as_me: WARNING:     /" >&2
6024     ;;
6025 esac
6026 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6027 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6029   echo $ECHO_N "(cached) $ECHO_C" >&6
6030 else
6031   eval "$as_ac_Header=\$ac_header_preproc"
6032 fi
6033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6035
6036 fi
6037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6038    cat >>confdefs.h <<\_ACEOF
6039 #define HAVE_READLINE 1
6040 _ACEOF
6041
6042                  got_readline="yes"
6043                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6044                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6045                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6046                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6047
6048 else
6049    echo " "
6050                 echo "readline.h not found. readline turned off ..."
6051                 echo " "
6052
6053
6054 fi
6055
6056
6057
6058
6059 fi
6060
6061
6062
6063
6064 fi;
6065 fi
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076 # Minimal stuff for readline Makefile configuration
6077 MAKE_SHELL=/bin/sh
6078
6079 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6080 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6081 if test "${ac_cv_header_stat_broken+set}" = set; then
6082   echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084   cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h.  */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h.  */
6090 #include <sys/types.h>
6091 #include <sys/stat.h>
6092
6093 #if defined(S_ISBLK) && defined(S_IFDIR)
6094 # if S_ISBLK (S_IFDIR)
6095 You lose.
6096 # endif
6097 #endif
6098
6099 #if defined(S_ISBLK) && defined(S_IFCHR)
6100 # if S_ISBLK (S_IFCHR)
6101 You lose.
6102 # endif
6103 #endif
6104
6105 #if defined(S_ISLNK) && defined(S_IFREG)
6106 # if S_ISLNK (S_IFREG)
6107 You lose.
6108 # endif
6109 #endif
6110
6111 #if defined(S_ISSOCK) && defined(S_IFREG)
6112 # if S_ISSOCK (S_IFREG)
6113 You lose.
6114 # endif
6115 #endif
6116
6117 _ACEOF
6118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6119   $EGREP "You lose" >/dev/null 2>&1; then
6120   ac_cv_header_stat_broken=yes
6121 else
6122   ac_cv_header_stat_broken=no
6123 fi
6124 rm -f conftest*
6125
6126 fi
6127 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6128 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6129 if test $ac_cv_header_stat_broken = yes; then
6130
6131 cat >>confdefs.h <<\_ACEOF
6132 #define STAT_MACROS_BROKEN 1
6133 _ACEOF
6134
6135 fi
6136
6137
6138
6139
6140
6141
6142 ac_header_dirent=no
6143 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6144   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6145 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6146 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6148   echo $ECHO_N "(cached) $ECHO_C" >&6
6149 else
6150   cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h.  */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h.  */
6156 #include <sys/types.h>
6157 #include <$ac_hdr>
6158
6159 int
6160 main ()
6161 {
6162 if ((DIR *) 0)
6163 return 0;
6164   ;
6165   return 0;
6166 }
6167 _ACEOF
6168 rm -f conftest.$ac_objext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6170   (eval $ac_compile) 2>conftest.er1
6171   ac_status=$?
6172   grep -v '^ *+' conftest.er1 >conftest.err
6173   rm -f conftest.er1
6174   cat conftest.err >&5
6175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176   (exit $ac_status); } &&
6177          { ac_try='test -z "$ac_c_werror_flag"
6178                          || test ! -s conftest.err'
6179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180   (eval $ac_try) 2>&5
6181   ac_status=$?
6182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183   (exit $ac_status); }; } &&
6184          { ac_try='test -s conftest.$ac_objext'
6185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186   (eval $ac_try) 2>&5
6187   ac_status=$?
6188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189   (exit $ac_status); }; }; then
6190   eval "$as_ac_Header=yes"
6191 else
6192   echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6194
6195 eval "$as_ac_Header=no"
6196 fi
6197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6198 fi
6199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6202   cat >>confdefs.h <<_ACEOF
6203 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6204 _ACEOF
6205
6206 ac_header_dirent=$ac_hdr; break
6207 fi
6208
6209 done
6210 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6211 if test $ac_header_dirent = dirent.h; then
6212   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6213 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6214 if test "${ac_cv_search_opendir+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   ac_func_search_save_LIBS=$LIBS
6218 ac_cv_search_opendir=no
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h.  */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h.  */
6225
6226 /* Override any gcc2 internal prototype to avoid an error.  */
6227 #ifdef __cplusplus
6228 extern "C"
6229 #endif
6230 /* We use char because int might match the return type of a gcc2
6231    builtin and then its argument prototype would still apply.  */
6232 char opendir ();
6233 int
6234 main ()
6235 {
6236 opendir ();
6237   ;
6238   return 0;
6239 }
6240 _ACEOF
6241 rm -f conftest.$ac_objext conftest$ac_exeext
6242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6243   (eval $ac_link) 2>conftest.er1
6244   ac_status=$?
6245   grep -v '^ *+' conftest.er1 >conftest.err
6246   rm -f conftest.er1
6247   cat conftest.err >&5
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); } &&
6250          { ac_try='test -z "$ac_c_werror_flag"
6251                          || test ! -s conftest.err'
6252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253   (eval $ac_try) 2>&5
6254   ac_status=$?
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); }; } &&
6257          { ac_try='test -s conftest$ac_exeext'
6258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259   (eval $ac_try) 2>&5
6260   ac_status=$?
6261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262   (exit $ac_status); }; }; then
6263   ac_cv_search_opendir="none required"
6264 else
6265   echo "$as_me: failed program was:" >&5
6266 sed 's/^/| /' conftest.$ac_ext >&5
6267
6268 fi
6269 rm -f conftest.err conftest.$ac_objext \
6270       conftest$ac_exeext conftest.$ac_ext
6271 if test "$ac_cv_search_opendir" = no; then
6272   for ac_lib in dir; do
6273     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6274     cat >conftest.$ac_ext <<_ACEOF
6275 /* confdefs.h.  */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h.  */
6280
6281 /* Override any gcc2 internal prototype to avoid an error.  */
6282 #ifdef __cplusplus
6283 extern "C"
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 opendir ();
6288 int
6289 main ()
6290 {
6291 opendir ();
6292   ;
6293   return 0;
6294 }
6295 _ACEOF
6296 rm -f conftest.$ac_objext conftest$ac_exeext
6297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6298   (eval $ac_link) 2>conftest.er1
6299   ac_status=$?
6300   grep -v '^ *+' conftest.er1 >conftest.err
6301   rm -f conftest.er1
6302   cat conftest.err >&5
6303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304   (exit $ac_status); } &&
6305          { ac_try='test -z "$ac_c_werror_flag"
6306                          || test ! -s conftest.err'
6307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308   (eval $ac_try) 2>&5
6309   ac_status=$?
6310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311   (exit $ac_status); }; } &&
6312          { ac_try='test -s conftest$ac_exeext'
6313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314   (eval $ac_try) 2>&5
6315   ac_status=$?
6316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317   (exit $ac_status); }; }; then
6318   ac_cv_search_opendir="-l$ac_lib"
6319 break
6320 else
6321   echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6323
6324 fi
6325 rm -f conftest.err conftest.$ac_objext \
6326       conftest$ac_exeext conftest.$ac_ext
6327   done
6328 fi
6329 LIBS=$ac_func_search_save_LIBS
6330 fi
6331 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6332 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6333 if test "$ac_cv_search_opendir" != no; then
6334   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6335
6336 fi
6337
6338 else
6339   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6340 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6341 if test "${ac_cv_search_opendir+set}" = set; then
6342   echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344   ac_func_search_save_LIBS=$LIBS
6345 ac_cv_search_opendir=no
6346 cat >conftest.$ac_ext <<_ACEOF
6347 /* confdefs.h.  */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h.  */
6352
6353 /* Override any gcc2 internal prototype to avoid an error.  */
6354 #ifdef __cplusplus
6355 extern "C"
6356 #endif
6357 /* We use char because int might match the return type of a gcc2
6358    builtin and then its argument prototype would still apply.  */
6359 char opendir ();
6360 int
6361 main ()
6362 {
6363 opendir ();
6364   ;
6365   return 0;
6366 }
6367 _ACEOF
6368 rm -f conftest.$ac_objext conftest$ac_exeext
6369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6370   (eval $ac_link) 2>conftest.er1
6371   ac_status=$?
6372   grep -v '^ *+' conftest.er1 >conftest.err
6373   rm -f conftest.er1
6374   cat conftest.err >&5
6375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376   (exit $ac_status); } &&
6377          { ac_try='test -z "$ac_c_werror_flag"
6378                          || test ! -s conftest.err'
6379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380   (eval $ac_try) 2>&5
6381   ac_status=$?
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); }; } &&
6384          { ac_try='test -s conftest$ac_exeext'
6385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6386   (eval $ac_try) 2>&5
6387   ac_status=$?
6388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389   (exit $ac_status); }; }; then
6390   ac_cv_search_opendir="none required"
6391 else
6392   echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6394
6395 fi
6396 rm -f conftest.err conftest.$ac_objext \
6397       conftest$ac_exeext conftest.$ac_ext
6398 if test "$ac_cv_search_opendir" = no; then
6399   for ac_lib in x; do
6400     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6401     cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h.  */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h.  */
6407
6408 /* Override any gcc2 internal prototype to avoid an error.  */
6409 #ifdef __cplusplus
6410 extern "C"
6411 #endif
6412 /* We use char because int might match the return type of a gcc2
6413    builtin and then its argument prototype would still apply.  */
6414 char opendir ();
6415 int
6416 main ()
6417 {
6418 opendir ();
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 rm -f conftest.$ac_objext conftest$ac_exeext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425   (eval $ac_link) 2>conftest.er1
6426   ac_status=$?
6427   grep -v '^ *+' conftest.er1 >conftest.err
6428   rm -f conftest.er1
6429   cat conftest.err >&5
6430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431   (exit $ac_status); } &&
6432          { ac_try='test -z "$ac_c_werror_flag"
6433                          || test ! -s conftest.err'
6434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435   (eval $ac_try) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); }; } &&
6439          { ac_try='test -s conftest$ac_exeext'
6440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441   (eval $ac_try) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); }; }; then
6445   ac_cv_search_opendir="-l$ac_lib"
6446 break
6447 else
6448   echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.$ac_ext >&5
6450
6451 fi
6452 rm -f conftest.err conftest.$ac_objext \
6453       conftest$ac_exeext conftest.$ac_ext
6454   done
6455 fi
6456 LIBS=$ac_func_search_save_LIBS
6457 fi
6458 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6459 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6460 if test "$ac_cv_search_opendir" != no; then
6461   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6462
6463 fi
6464
6465 fi
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6476 do
6477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6478 echo "$as_me:$LINENO: checking for $ac_func" >&5
6479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6480 if eval "test \"\${$as_ac_var+set}\" = set"; then
6481   echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483   cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h.  */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h.  */
6489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6490    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6491 #define $ac_func innocuous_$ac_func
6492
6493 /* System header to define __stub macros and hopefully few prototypes,
6494     which can conflict with char $ac_func (); below.
6495     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6496     <limits.h> exists even on freestanding compilers.  */
6497
6498 #ifdef __STDC__
6499 # include <limits.h>
6500 #else
6501 # include <assert.h>
6502 #endif
6503
6504 #undef $ac_func
6505
6506 /* Override any gcc2 internal prototype to avoid an error.  */
6507 #ifdef __cplusplus
6508 extern "C"
6509 {
6510 #endif
6511 /* We use char because int might match the return type of a gcc2
6512    builtin and then its argument prototype would still apply.  */
6513 char $ac_func ();
6514 /* The GNU C library defines this for functions which it implements
6515     to always fail with ENOSYS.  Some functions are actually named
6516     something starting with __ and the normal name is an alias.  */
6517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6518 choke me
6519 #else
6520 char (*f) () = $ac_func;
6521 #endif
6522 #ifdef __cplusplus
6523 }
6524 #endif
6525
6526 int
6527 main ()
6528 {
6529 return f != $ac_func;
6530   ;
6531   return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext conftest$ac_exeext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536   (eval $ac_link) 2>conftest.er1
6537   ac_status=$?
6538   grep -v '^ *+' conftest.er1 >conftest.err
6539   rm -f conftest.er1
6540   cat conftest.err >&5
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); } &&
6543          { ac_try='test -z "$ac_c_werror_flag"
6544                          || test ! -s conftest.err'
6545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546   (eval $ac_try) 2>&5
6547   ac_status=$?
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); }; } &&
6550          { ac_try='test -s conftest$ac_exeext'
6551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552   (eval $ac_try) 2>&5
6553   ac_status=$?
6554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555   (exit $ac_status); }; }; then
6556   eval "$as_ac_var=yes"
6557 else
6558   echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6560
6561 eval "$as_ac_var=no"
6562 fi
6563 rm -f conftest.err conftest.$ac_objext \
6564       conftest$ac_exeext conftest.$ac_ext
6565 fi
6566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6568 if test `eval echo '${'$as_ac_var'}'` = yes; then
6569   cat >>confdefs.h <<_ACEOF
6570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6571 _ACEOF
6572
6573 fi
6574 done
6575
6576
6577
6578 for ac_func in nanosleep nl_langinfo
6579 do
6580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6581 echo "$as_me:$LINENO: checking for $ac_func" >&5
6582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6583 if eval "test \"\${$as_ac_var+set}\" = set"; then
6584   echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586   cat >conftest.$ac_ext <<_ACEOF
6587 /* confdefs.h.  */
6588 _ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h.  */
6592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6594 #define $ac_func innocuous_$ac_func
6595
6596 /* System header to define __stub macros and hopefully few prototypes,
6597     which can conflict with char $ac_func (); below.
6598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6599     <limits.h> exists even on freestanding compilers.  */
6600
6601 #ifdef __STDC__
6602 # include <limits.h>
6603 #else
6604 # include <assert.h>
6605 #endif
6606
6607 #undef $ac_func
6608
6609 /* Override any gcc2 internal prototype to avoid an error.  */
6610 #ifdef __cplusplus
6611 extern "C"
6612 {
6613 #endif
6614 /* We use char because int might match the return type of a gcc2
6615    builtin and then its argument prototype would still apply.  */
6616 char $ac_func ();
6617 /* The GNU C library defines this for functions which it implements
6618     to always fail with ENOSYS.  Some functions are actually named
6619     something starting with __ and the normal name is an alias.  */
6620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6621 choke me
6622 #else
6623 char (*f) () = $ac_func;
6624 #endif
6625 #ifdef __cplusplus
6626 }
6627 #endif
6628
6629 int
6630 main ()
6631 {
6632 return f != $ac_func;
6633   ;
6634   return 0;
6635 }
6636 _ACEOF
6637 rm -f conftest.$ac_objext conftest$ac_exeext
6638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6639   (eval $ac_link) 2>conftest.er1
6640   ac_status=$?
6641   grep -v '^ *+' conftest.er1 >conftest.err
6642   rm -f conftest.er1
6643   cat conftest.err >&5
6644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645   (exit $ac_status); } &&
6646          { ac_try='test -z "$ac_c_werror_flag"
6647                          || test ! -s conftest.err'
6648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649   (eval $ac_try) 2>&5
6650   ac_status=$?
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); }; } &&
6653          { ac_try='test -s conftest$ac_exeext'
6654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655   (eval $ac_try) 2>&5
6656   ac_status=$?
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); }; }; then
6659   eval "$as_ac_var=yes"
6660 else
6661   echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6663
6664 eval "$as_ac_var=no"
6665 fi
6666 rm -f conftest.err conftest.$ac_objext \
6667       conftest$ac_exeext conftest.$ac_ext
6668 fi
6669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6671 if test `eval echo '${'$as_ac_var'}'` = yes; then
6672   cat >>confdefs.h <<_ACEOF
6673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6674 _ACEOF
6675
6676 fi
6677 done
6678
6679
6680 for ac_header in varargs.h
6681 do
6682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6684   echo "$as_me:$LINENO: checking for $ac_header" >&5
6685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6687   echo $ECHO_N "(cached) $ECHO_C" >&6
6688 fi
6689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6691 else
6692   # Is the header compilable?
6693 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6695 cat >conftest.$ac_ext <<_ACEOF
6696 /* confdefs.h.  */
6697 _ACEOF
6698 cat confdefs.h >>conftest.$ac_ext
6699 cat >>conftest.$ac_ext <<_ACEOF
6700 /* end confdefs.h.  */
6701 $ac_includes_default
6702 #include <$ac_header>
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706   (eval $ac_compile) 2>conftest.er1
6707   ac_status=$?
6708   grep -v '^ *+' conftest.er1 >conftest.err
6709   rm -f conftest.er1
6710   cat conftest.err >&5
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); } &&
6713          { ac_try='test -z "$ac_c_werror_flag"
6714                          || test ! -s conftest.err'
6715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6716   (eval $ac_try) 2>&5
6717   ac_status=$?
6718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719   (exit $ac_status); }; } &&
6720          { ac_try='test -s conftest.$ac_objext'
6721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722   (eval $ac_try) 2>&5
6723   ac_status=$?
6724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725   (exit $ac_status); }; }; then
6726   ac_header_compiler=yes
6727 else
6728   echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 ac_header_compiler=no
6732 fi
6733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6735 echo "${ECHO_T}$ac_header_compiler" >&6
6736
6737 # Is the header present?
6738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6740 cat >conftest.$ac_ext <<_ACEOF
6741 /* confdefs.h.  */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h.  */
6746 #include <$ac_header>
6747 _ACEOF
6748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6750   ac_status=$?
6751   grep -v '^ *+' conftest.er1 >conftest.err
6752   rm -f conftest.er1
6753   cat conftest.err >&5
6754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6755   (exit $ac_status); } >/dev/null; then
6756   if test -s conftest.err; then
6757     ac_cpp_err=$ac_c_preproc_warn_flag
6758     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6759   else
6760     ac_cpp_err=
6761   fi
6762 else
6763   ac_cpp_err=yes
6764 fi
6765 if test -z "$ac_cpp_err"; then
6766   ac_header_preproc=yes
6767 else
6768   echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6770
6771   ac_header_preproc=no
6772 fi
6773 rm -f conftest.err conftest.$ac_ext
6774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6775 echo "${ECHO_T}$ac_header_preproc" >&6
6776
6777 # So?  What about this header?
6778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6779   yes:no: )
6780     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6784     ac_header_preproc=yes
6785     ;;
6786   no:yes:* )
6787     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6789     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6790 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6791     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6793     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6794 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6797     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6799     (
6800       cat <<\_ASBOX
6801 ## ------------------------------------------ ##
6802 ## Report this to the AC_PACKAGE_NAME lists.  ##
6803 ## ------------------------------------------ ##
6804 _ASBOX
6805     ) |
6806       sed "s/^/$as_me: WARNING:     /" >&2
6807     ;;
6808 esac
6809 echo "$as_me:$LINENO: checking for $ac_header" >&5
6810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6812   echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814   eval "$as_ac_Header=\$ac_header_preproc"
6815 fi
6816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6818
6819 fi
6820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6821   cat >>confdefs.h <<_ACEOF
6822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6823 _ACEOF
6824
6825 fi
6826
6827 done
6828
6829
6830 # End of readline/conio stuff
6831 # -----------------------------------------------------------------------
6832
6833
6834 # ---------------------------------------------------
6835 # Check for GMP support/directory
6836 # ---------------------------------------------------
6837 #GMP_SRC=
6838 #local_gmp="no"
6839 #AC_ARG_WITH(gmp,
6840 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6841 #  [
6842 #     case "$with_gmp" in
6843 #     no) : ;;
6844 #     yes|*)
6845 #       if test "$with_gmp" != "yes"; then
6846 #         GMP_INC="-I$with_gmp"
6847 #         GMP_LIBS="-lgmp"
6848 #         GMP_LDFLAGS="-L$with_gmp"
6849 #       else
6850 #          with_gmp="/usr/include"
6851 #       fi
6852 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6853 #          [ AC_MSG_RESULT(yes)
6854 #            AC_DEFINE(HAVE_GMP)
6855 #            GMP_LIBS="-lgmp"
6856 #            got_gmp="yes"
6857 #          ],
6858 #          [ AC_MSG_ERROR([*** gmp library missing])
6859 #          ]
6860 #       )
6861 #       ;;
6862 #     esac
6863 #  ],[
6864 #    # check for standard gmp library
6865 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6866 #    [ AC_MSG_RESULT(yes)
6867 #      AC_DEFINE(HAVE_GMP)
6868 #      got_gmp="yes"
6869 #      GMP_INC=
6870 #      GMP_LIBS="-lgmp"
6871 #    ], [
6872 #      # Did not find standard library, so use our own
6873 #      AC_MSG_RESULT(yes)
6874 #      AC_DEFINE(HAVE_GMP)
6875 #      got_gmp="yes"
6876 #      local_gmp="yes"
6877 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6878 #      GMP_LIBS="-lgmp"
6879 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6880 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6881 #    ])
6882 #  ]
6883 #)
6884 #AC_SUBST(GMP_INC)
6885 #AC_SUBST(GMP_LIBS)
6886 #AC_SUBST(GMP_LDFLAGS)
6887 #AC_SUBST(GMP_SRC)
6888
6889 # End of GMP stuff
6890 # -----------------------------------------------------------------------
6891
6892
6893 # ---------------------------------------------------
6894 # Check for CWEB support/directory
6895 # ---------------------------------------------------
6896 #CWEB_SRC=
6897 #CWEB=/bin
6898 #local_cweb="no"
6899 #AC_ARG_WITH(cweb,
6900 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6901 #  [
6902 #     case "$with_cweb" in
6903 #     no) : ;;
6904 #     yes|*)
6905 #       if test "$with_cweb" != "yes"; then
6906 #         CWEB_INC="-I$with_cweb"
6907 #         CWEB_LIBS="-lcweb"
6908 #         CWEB_LDFLAGS="-L$with_cweb"
6909 #       else
6910 #          with_cweb="/usr/include"
6911 #       fi
6912 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6913 #          [ AC_MSG_RESULT(yes)
6914 #            AC_DEFINE(HAVE_CWEB)
6915 #            CWEB_LIBS="-lcweb"
6916 #            got_cweb="yes"
6917 #          ],
6918 #          [ AC_MSG_ERROR([*** cweb library missing])
6919 #          ]
6920 #       )
6921 #       ;;
6922 #     esac
6923 #  ],[
6924 #    # check for standard cweb library
6925 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6926 #    [ AC_MSG_RESULT(yes)
6927 #      AC_DEFINE(HAVE_CWEB)
6928 #      got_cweb="yes"
6929 #      CWEB_INC=
6930 #      CWEB_LIBS="-lcweb"
6931 #    ], [
6932 #      # Did not find starndard library, so use our own
6933 #      AC_MSG_RESULT(yes)
6934 #      AC_DEFINE(HAVE_CWEB)
6935 #      got_cweb="yes"
6936 #      local_cweb="yes"
6937 #      CWEB=${TOP_DIR}/depkgs/cweb
6938 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6939 #      CWEB_LIBS="-lcweb"
6940 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6941 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6942 #    ])
6943 #  ]
6944 #)
6945 #AC_SUBST(CWEB)
6946 #AC_SUBST(CWEB_INC)
6947 #AC_SUBST(CWEB_LIBS)
6948 #AC_SUBST(CWEB_LDFLAGS)
6949 #AC_SUBST(CWEB_SRC)
6950
6951 # End of CWEB stuff
6952 # -----------------------------------------------------------------------
6953
6954
6955
6956 # -----------------------------------------------------------
6957 # Check whether user wants TCP wrappers support (default off)
6958 # -----------------------------------------------------------
6959 TCPW_MSG="no"
6960
6961 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6962 if test "${with_tcp_wrappers+set}" = set; then
6963   withval="$with_tcp_wrappers"
6964
6965     if test "x$withval" != "xno" ; then
6966        saved_LIBS="$LIBS"
6967        LIBS="$saved_LIBS -lwrap"
6968        echo "$as_me:$LINENO: checking for libwrap" >&5
6969 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6970        cat >conftest.$ac_ext <<_ACEOF
6971 /* confdefs.h.  */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h.  */
6976  #include <tcpd.h>
6977              int deny_severity = 0;
6978              int allow_severity = 0;
6979              struct request_info *req;
6980 int
6981 main ()
6982 {
6983  hosts_access(req);
6984   ;
6985   return 0;
6986 }
6987 _ACEOF
6988 rm -f conftest.$ac_objext conftest$ac_exeext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6990   (eval $ac_link) 2>conftest.er1
6991   ac_status=$?
6992   grep -v '^ *+' conftest.er1 >conftest.err
6993   rm -f conftest.er1
6994   cat conftest.err >&5
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); } &&
6997          { ac_try='test -z "$ac_c_werror_flag"
6998                          || test ! -s conftest.err'
6999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000   (eval $ac_try) 2>&5
7001   ac_status=$?
7002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003   (exit $ac_status); }; } &&
7004          { ac_try='test -s conftest$ac_exeext'
7005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006   (eval $ac_try) 2>&5
7007   ac_status=$?
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); }; }; then
7010
7011             echo "$as_me:$LINENO: result: yes" >&5
7012 echo "${ECHO_T}yes" >&6
7013             cat >>confdefs.h <<\_ACEOF
7014 #define HAVE_LIBWRAP 1
7015 _ACEOF
7016
7017             TCPW_MSG="yes"
7018
7019 else
7020   echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7022
7023
7024             LIBS="$saved_LIBS -lwrap -lnsl"
7025             cat >conftest.$ac_ext <<_ACEOF
7026 /* confdefs.h.  */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h.  */
7031  #include <tcpd.h>
7032                  int deny_severity = 0;
7033                  int allow_severity = 0;
7034                  struct request_info *req;
7035 int
7036 main ()
7037 {
7038  hosts_access(req);
7039   ;
7040   return 0;
7041 }
7042 _ACEOF
7043 rm -f conftest.$ac_objext conftest$ac_exeext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7045   (eval $ac_link) 2>conftest.er1
7046   ac_status=$?
7047   grep -v '^ *+' conftest.er1 >conftest.err
7048   rm -f conftest.er1
7049   cat conftest.err >&5
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); } &&
7052          { ac_try='test -z "$ac_c_werror_flag"
7053                          || test ! -s conftest.err'
7054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055   (eval $ac_try) 2>&5
7056   ac_status=$?
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); }; } &&
7059          { ac_try='test -s conftest$ac_exeext'
7060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061   (eval $ac_try) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; }; then
7065
7066                  echo "$as_me:$LINENO: result: yes" >&5
7067 echo "${ECHO_T}yes" >&6
7068                  cat >>confdefs.h <<\_ACEOF
7069 #define HAVE_LIBWRAP 1
7070 _ACEOF
7071
7072                  TCPW_MSG="yes"
7073
7074 else
7075   echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7077
7078 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7079 echo "$as_me: error: *** libwrap missing" >&2;}
7080    { (exit 1); exit 1; }; }
7081
7082 fi
7083 rm -f conftest.err conftest.$ac_objext \
7084       conftest$ac_exeext conftest.$ac_ext
7085
7086 fi
7087 rm -f conftest.err conftest.$ac_objext \
7088       conftest$ac_exeext conftest.$ac_ext
7089     fi
7090
7091
7092 fi;
7093
7094 # ------------------------------------------
7095 # Where to place working dir
7096 # ------------------------------------------
7097 working_dir=`eval echo ${prefix}/var/bacula/working`
7098
7099 # Check whether --with-working-dir or --without-working-dir was given.
7100 if test "${with_working_dir+set}" = set; then
7101   withval="$with_working_dir"
7102
7103        if test "x$withval" != "xno" ; then
7104               working_dir=$withval
7105        fi
7106
7107
7108 fi;
7109
7110
7111
7112
7113 # ------------------------------------------
7114 # Where to place scriptdir (script files)
7115 # ------------------------------------------
7116 scriptdir=`eval echo ${sysconfdir}`
7117
7118 # Check whether --with-scriptdir or --without-scriptdir was given.
7119 if test "${with_scriptdir+set}" = set; then
7120   withval="$with_scriptdir"
7121
7122        if test "x$withval" != "xno" ; then
7123               scriptdir=$withval
7124        fi
7125
7126
7127 fi;
7128
7129
7130
7131
7132 # ------------------------------------------
7133 # Where to send dump email
7134 # ------------------------------------------
7135 dump_email=root@localhost
7136
7137 # Check whether --with-dump-email or --without-dump-email was given.
7138 if test "${with_dump_email+set}" = set; then
7139   withval="$with_dump_email"
7140
7141        if test "x$withval" != "xno" ; then
7142               dump_email=$withval
7143        fi
7144
7145
7146 fi;
7147
7148
7149
7150 # ------------------------------------------
7151 # Where to send job email
7152 # ------------------------------------------
7153 job_email=root@localhost
7154
7155 # Check whether --with-job-email or --without-job-email was given.
7156 if test "${with_job_email+set}" = set; then
7157   withval="$with_job_email"
7158
7159        if test "x$withval" != "xno" ; then
7160               job_email=$withval
7161        fi
7162
7163
7164 fi;
7165
7166
7167
7168 # ------------------------------------------
7169 # Where to find smtp host
7170 # ------------------------------------------
7171 smtp_host=localhost
7172
7173 # Check whether --with-smtp_host or --without-smtp_host was given.
7174 if test "${with_smtp_host+set}" = set; then
7175   withval="$with_smtp_host"
7176
7177        if test "x$withval" != "xno" ; then
7178               smtp_host=$withval
7179        fi
7180
7181
7182 fi;
7183
7184
7185
7186
7187 # ------------------------------------
7188 # Where to place pid files
7189 # ------------------------------------
7190 piddir=/var/run
7191
7192 # Check whether --with-pid-dir or --without-pid-dir was given.
7193 if test "${with_pid_dir+set}" = set; then
7194   withval="$with_pid_dir"
7195
7196         if test "x$withval" != "xno" ; then
7197             piddir=$withval
7198         fi
7199
7200
7201 fi;
7202
7203 cat >>confdefs.h <<_ACEOF
7204 #define _PATH_BACULA_PIDDIR "$piddir"
7205 _ACEOF
7206
7207
7208
7209
7210 # ------------------------------------
7211 # Where to place subsys "lock file"
7212 # ------------------------------------
7213 subsysdir=/var/run/subsys
7214
7215 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7216 if test "${with_subsys_dir+set}" = set; then
7217   withval="$with_subsys_dir"
7218
7219         if test "x$withval" != "xno" ; then
7220             subsysdir=$withval
7221         fi
7222
7223
7224 fi;
7225
7226
7227
7228
7229
7230 # ------------------------------------
7231 # Where to start assigning ports
7232 # ------------------------------------
7233 baseport=9101
7234
7235 # Check whether --with-baseport or --without-baseport was given.
7236 if test "${with_baseport+set}" = set; then
7237   withval="$with_baseport"
7238
7239         if test "x$withval" != "xno" ; then
7240              baseport=$withval
7241         fi
7242
7243
7244 fi;
7245
7246
7247 dir_port=`expr $baseport`
7248 fd_port=`expr $baseport + 1`
7249 sd_port=`expr $fd_port + 1`
7250
7251
7252
7253
7254
7255
7256 # ------------------------------------------
7257 # Generate passwords
7258 # ------------------------------------------
7259 dir_password=
7260
7261 # Check whether --with-dir-password or --without-dir-password was given.
7262 if test "${with_dir_password+set}" = set; then
7263   withval="$with_dir_password"
7264
7265        if test "x$withval" != "xno" ; then
7266            dir_password=$withval
7267        fi
7268
7269
7270 fi;
7271
7272 if test "x$dir_password" = "x" ; then
7273    if test "x$OPENSSL" = "xnone" ; then
7274 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7275       key=`autoconf/randpass 33`
7276    else
7277       key=`openssl rand -base64 33`
7278    fi
7279    dir_password=$key
7280 fi
7281
7282 fd_password=
7283
7284 # Check whether --with-fd-password or --without-fd-password was given.
7285 if test "${with_fd_password+set}" = set; then
7286   withval="$with_fd_password"
7287
7288        if test "x$withval" != "xno" ; then
7289            fd_password=$withval
7290        fi
7291
7292
7293 fi;
7294
7295 if test "x$fd_password" = "x" ; then
7296    if test "x$OPENSSL" = "xnone" ; then
7297 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7298       key=`autoconf/randpass 37`
7299    else
7300       key=`openssl rand -base64 33`
7301    fi
7302    fd_password=$key
7303 fi
7304
7305 sd_password=
7306
7307 # Check whether --with-sd-password or --without-sd-password was given.
7308 if test "${with_sd_password+set}" = set; then
7309   withval="$with_sd_password"
7310
7311        if test "x$withval" != "xno" ; then
7312            sd_password=$withval
7313        fi
7314
7315
7316 fi;
7317
7318 if test "x$sd_password" = "x" ; then
7319    if test "x$OPENSSL" = "xnone" ; then
7320 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7321       key=`autoconf/randpass 41`
7322    else
7323       key=`openssl rand -base64 33`
7324    fi
7325    sd_password=$key
7326 fi
7327
7328
7329
7330
7331
7332
7333
7334 #
7335 # Handle users and groups for each daemon
7336 #
7337 dir_user=
7338
7339 # Check whether --with-dir_user or --without-dir_user was given.
7340 if test "${with_dir_user+set}" = set; then
7341   withval="$with_dir_user"
7342
7343         if test "x$withval" != "x" ; then
7344              dir_user=$withval
7345         fi
7346
7347
7348 fi;
7349
7350 dir_group=
7351
7352 # Check whether --with-dir_group or --without-dir_group was given.
7353 if test "${with_dir_group+set}" = set; then
7354   withval="$with_dir_group"
7355
7356         if test "x$withval" != "x" ; then
7357              dir_group=$withval
7358         fi
7359
7360
7361 fi;
7362
7363 sd_user=
7364
7365 # Check whether --with-sd_user or --without-sd_user was given.
7366 if test "${with_sd_user+set}" = set; then
7367   withval="$with_sd_user"
7368
7369         if test "x$withval" != "x" ; then
7370              sd_user=$withval
7371         fi
7372
7373
7374 fi;
7375
7376 sd_group=
7377
7378 # Check whether --with-sd_group or --without-sd_group was given.
7379 if test "${with_sd_group+set}" = set; then
7380   withval="$with_sd_group"
7381
7382         if test "x$withval" != "x" ; then
7383              sd_group=$withval
7384         fi
7385
7386
7387 fi;
7388
7389 fd_user=
7390
7391 # Check whether --with-fd_user or --without-fd_user was given.
7392 if test "${with_fd_user+set}" = set; then
7393   withval="$with_fd_user"
7394
7395         if test "x$withval" != "x" ; then
7396              fd_user=$withval
7397         fi
7398
7399
7400 fi;
7401
7402 fd_group=
7403
7404 # Check whether --with-fd_group or --without-fd_group was given.
7405 if test "${with_fd_group+set}" = set; then
7406   withval="$with_fd_group"
7407
7408         if test "x$withval" != "x" ; then
7409              fd_group=$withval
7410         fi
7411
7412
7413 fi;
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425 #
7426 # allow setting default executable permissions
7427 #
7428 SBINPERM=0754
7429
7430 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7431 if test "${with_sbin_perm+set}" = set; then
7432   withval="$with_sbin_perm"
7433
7434         if test "x$withval" != "x" ; then
7435             SBINPERM=$withval
7436         fi
7437
7438
7439 fi;
7440
7441
7442
7443 # ------------------------------------------------
7444 # Bacula check for various SQL database engines
7445 # ------------------------------------------------
7446
7447 db_found=no
7448 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7449 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7450
7451 # Check whether --with-postgresql or --without-postgresql was given.
7452 if test "${with_postgresql+set}" = set; then
7453   withval="$with_postgresql"
7454
7455   if test "$withval" != "no"; then
7456       if test "$db_found" = "yes"; then
7457           echo "$as_me:$LINENO: result: error" >&5
7458 echo "${ECHO_T}error" >&6
7459           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7460 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7461    { (exit 1); exit 1; }; };
7462       fi
7463       if test "$withval" = "yes"; then
7464           if test -f /usr/local/include/libpq-fe.h; then
7465               POSTGRESQL_INCDIR=/usr/local/include
7466               POSTGRESQL_LIBDIR=/usr/local/lib
7467               POSTGRESQL_BINDIR=/usr/local/bin
7468           elif test -f /usr/include/libpq-fe.h; then
7469               POSTGRESQL_INCDIR=/usr/include
7470               POSTGRESQL_LIBDIR=/usr/lib
7471               POSTGRESQL_BINDIR=/usr/bin
7472           elif test -f /usr/include/pgsql/libpq-fe.h; then
7473               POSTGRESQL_INCDIR=/usr/include/pgsql
7474               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7475               POSTGRESQL_BINDIR=/usr/bin
7476           elif test -f /usr/include/postgresql/libpq-fe.h; then
7477               POSTGRESQL_INCDIR=/usr/include/postgresql
7478               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7479               POSTGRESQL_BINDIR=/usr/bin
7480           else
7481               echo "$as_me:$LINENO: result: no" >&5
7482 echo "${ECHO_T}no" >&6
7483               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7484 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7485    { (exit 1); exit 1; }; }
7486           fi
7487       elif test -f $withval/include/libpq-fe.h; then
7488           POSTGRESQL_INCDIR=$withval/include
7489           POSTGRESQL_LIBDIR=$withval/lib
7490           POSTGRESQL_BINDIR=$withval/bin
7491       else
7492           echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6
7494           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7495 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7496    { (exit 1); exit 1; }; }
7497       fi
7498       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7499       echo "$as_me:$LINENO: checking for crypt" >&5
7500 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7501 if test "${ac_cv_func_crypt+set}" = set; then
7502   echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504   cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h.  */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h.  */
7510 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
7511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7512 #define crypt innocuous_crypt
7513
7514 /* System header to define __stub macros and hopefully few prototypes,
7515     which can conflict with char crypt (); below.
7516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7517     <limits.h> exists even on freestanding compilers.  */
7518
7519 #ifdef __STDC__
7520 # include <limits.h>
7521 #else
7522 # include <assert.h>
7523 #endif
7524
7525 #undef crypt
7526
7527 /* Override any gcc2 internal prototype to avoid an error.  */
7528 #ifdef __cplusplus
7529 extern "C"
7530 {
7531 #endif
7532 /* We use char because int might match the return type of a gcc2
7533    builtin and then its argument prototype would still apply.  */
7534 char crypt ();
7535 /* The GNU C library defines this for functions which it implements
7536     to always fail with ENOSYS.  Some functions are actually named
7537     something starting with __ and the normal name is an alias.  */
7538 #if defined (__stub_crypt) || defined (__stub___crypt)
7539 choke me
7540 #else
7541 char (*f) () = crypt;
7542 #endif
7543 #ifdef __cplusplus
7544 }
7545 #endif
7546
7547 int
7548 main ()
7549 {
7550 return f != crypt;
7551   ;
7552   return 0;
7553 }
7554 _ACEOF
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557   (eval $ac_link) 2>conftest.er1
7558   ac_status=$?
7559   grep -v '^ *+' conftest.er1 >conftest.err
7560   rm -f conftest.er1
7561   cat conftest.err >&5
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); } &&
7564          { ac_try='test -z "$ac_c_werror_flag"
7565                          || test ! -s conftest.err'
7566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567   (eval $ac_try) 2>&5
7568   ac_status=$?
7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570   (exit $ac_status); }; } &&
7571          { ac_try='test -s conftest$ac_exeext'
7572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573   (eval $ac_try) 2>&5
7574   ac_status=$?
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); }; }; then
7577   ac_cv_func_crypt=yes
7578 else
7579   echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7581
7582 ac_cv_func_crypt=no
7583 fi
7584 rm -f conftest.err conftest.$ac_objext \
7585       conftest$ac_exeext conftest.$ac_ext
7586 fi
7587 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7588 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7589 if test $ac_cv_func_crypt = yes; then
7590   :
7591 else
7592   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7593 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7594 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597   ac_check_lib_save_LIBS=$LIBS
7598 LIBS="-lcrypt  $LIBS"
7599 cat >conftest.$ac_ext <<_ACEOF
7600 /* confdefs.h.  */
7601 _ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h.  */
7605
7606 /* Override any gcc2 internal prototype to avoid an error.  */
7607 #ifdef __cplusplus
7608 extern "C"
7609 #endif
7610 /* We use char because int might match the return type of a gcc2
7611    builtin and then its argument prototype would still apply.  */
7612 char crypt ();
7613 int
7614 main ()
7615 {
7616 crypt ();
7617   ;
7618   return 0;
7619 }
7620 _ACEOF
7621 rm -f conftest.$ac_objext conftest$ac_exeext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7623   (eval $ac_link) 2>conftest.er1
7624   ac_status=$?
7625   grep -v '^ *+' conftest.er1 >conftest.err
7626   rm -f conftest.er1
7627   cat conftest.err >&5
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); } &&
7630          { ac_try='test -z "$ac_c_werror_flag"
7631                          || test ! -s conftest.err'
7632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633   (eval $ac_try) 2>&5
7634   ac_status=$?
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); }; } &&
7637          { ac_try='test -s conftest$ac_exeext'
7638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639   (eval $ac_try) 2>&5
7640   ac_status=$?
7641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); }; }; then
7643   ac_cv_lib_crypt_crypt=yes
7644 else
7645   echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7647
7648 ac_cv_lib_crypt_crypt=no
7649 fi
7650 rm -f conftest.err conftest.$ac_objext \
7651       conftest$ac_exeext conftest.$ac_ext
7652 LIBS=$ac_check_lib_save_LIBS
7653 fi
7654 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7655 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7656 if test $ac_cv_lib_crypt_crypt = yes; then
7657   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7658 fi
7659
7660 fi
7661
7662       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7663       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7664       SQL_BINDIR=$POSTGRESQL_BINDIR
7665       cat >>confdefs.h <<\_ACEOF
7666 #define HAVE_POSTGRESQL 1
7667 _ACEOF
7668
7669       echo "$as_me:$LINENO: result: yes" >&5
7670 echo "${ECHO_T}yes" >&6
7671       db_found=yes
7672       support_postgresql=yes
7673       db_name=PostgreSQL
7674       DB_NAME=postgresql
7675   else
7676       echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6
7678   fi
7679
7680 else
7681
7682   echo "$as_me:$LINENO: result: no" >&5
7683 echo "${ECHO_T}no" >&6
7684
7685 fi;
7686
7687
7688
7689
7690
7691
7692
7693 db_found=no
7694 echo "$as_me:$LINENO: checking for MySQL support" >&5
7695 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7696
7697 # Check whether --with-mysql or --without-mysql was given.
7698 if test "${with_mysql+set}" = set; then
7699   withval="$with_mysql"
7700
7701   if test "$withval" != "no"; then
7702         if test "$withval" = "yes"; then
7703                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7704                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7705                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7706                         MYSQL_BINDIR=/usr/local/mysql/bin
7707                 elif test -f /usr/include/mysql/mysql.h; then
7708                         MYSQL_INCDIR=/usr/include/mysql
7709                         MYSQL_LIBDIR=/usr/lib/mysql
7710                         MYSQL_BINDIR=/usr/bin
7711                 elif test -f /usr/include/mysql.h; then
7712                         MYSQL_INCDIR=/usr/include
7713                         MYSQL_LIBDIR=/usr/lib
7714                         MYSQL_BINDIR=/usr/bin
7715                 elif test -f /usr/local/include/mysql/mysql.h; then
7716                         MYSQL_INCDIR=/usr/local/include/mysql
7717                         MYSQL_LIBDIR=/usr/local/lib/mysql
7718                         MYSQL_BINDIR=/usr/local/bin
7719                 elif test -f /usr/local/include/mysql.h; then
7720                         MYSQL_INCDIR=/usr/local/include
7721                         MYSQL_LIBDIR=/usr/local/lib
7722                         MYSQL_BINDIR=/usr/local/bin
7723                 else
7724                    echo "$as_me:$LINENO: result: no" >&5
7725 echo "${ECHO_T}no" >&6
7726                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7727 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7728    { (exit 1); exit 1; }; }
7729                 fi
7730         else
7731                 if test -f $withval/include/mysql/mysql.h; then
7732                         MYSQL_INCDIR=$withval/include/mysql
7733                         MYSQL_LIBDIR=$withval/lib/mysql
7734                         MYSQL_BINDIR=$withval/bin
7735                 elif test -f $withval/include/mysql.h; then
7736                         MYSQL_INCDIR=$withval/include
7737                         MYSQL_LIBDIR=$withval/lib
7738                         MYSQL_BINDIR=$withval/bin
7739                 else
7740                    echo "$as_me:$LINENO: result: no" >&5
7741 echo "${ECHO_T}no" >&6
7742                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7743 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7744    { (exit 1); exit 1; }; }
7745                 fi
7746         fi
7747     SQL_INCLUDE=-I$MYSQL_INCDIR
7748     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7749        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7750        cat >>confdefs.h <<\_ACEOF
7751 #define HAVE_THREAD_SAFE_MYSQL 1
7752 _ACEOF
7753
7754     else
7755        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7756     fi
7757     SQL_BINDIR=$MYSQL_BINDIR
7758
7759     cat >>confdefs.h <<\_ACEOF
7760 #define HAVE_MYSQL 1
7761 _ACEOF
7762
7763     echo "$as_me:$LINENO: result: yes" >&5
7764 echo "${ECHO_T}yes" >&6
7765     db_found=yes
7766     support_mysql=yes
7767     db_name=MySQL
7768     DB_NAME=mysql
7769
7770   else
7771         echo "$as_me:$LINENO: result: no" >&5
7772 echo "${ECHO_T}no" >&6
7773   fi
7774
7775
7776 fi;
7777
7778
7779 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7780 if test "${with_embedded_mysql+set}" = set; then
7781   withval="$with_embedded_mysql"
7782
7783   if test "$withval" != "no"; then
7784         if test "$withval" = "yes"; then
7785                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7786                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7787                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7788                         MYSQL_BINDIR=/usr/local/mysql/bin
7789                 elif test -f /usr/include/mysql/mysql.h; then
7790                         MYSQL_INCDIR=/usr/include/mysql
7791                         MYSQL_LIBDIR=/usr/lib/mysql
7792                         MYSQL_BINDIR=/usr/bin
7793                 elif test -f /usr/include/mysql.h; then
7794                         MYSQL_INCDIR=/usr/include
7795                         MYSQL_LIBDIR=/usr/lib
7796                         MYSQL_BINDIR=/usr/bin
7797                 elif test -f /usr/local/include/mysql/mysql.h; then
7798                         MYSQL_INCDIR=/usr/local/include/mysql
7799                         MYSQL_LIBDIR=/usr/local/lib/mysql
7800                         MYSQL_BINDIR=/usr/local/bin
7801                 elif test -f /usr/local/include/mysql.h; then
7802                         MYSQL_INCDIR=/usr/local/include
7803                         MYSQL_LIBDIR=/usr/local/lib
7804                         MYSQL_BINDIR=/usr/local/bin
7805                 else
7806                    echo "$as_me:$LINENO: result: no" >&5
7807 echo "${ECHO_T}no" >&6
7808                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7809 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7810    { (exit 1); exit 1; }; }
7811                 fi
7812         else
7813                 if test -f $withval/include/mysql/mysql.h; then
7814                         MYSQL_INCDIR=$withval/include/mysql
7815                         MYSQL_LIBDIR=$withval/lib/mysql
7816                         MYSQL_BINDIR=$withval/bin
7817                 elif test -f $withval/include/mysql.h; then
7818                         MYSQL_INCDIR=$withval/include
7819                         MYSQL_LIBDIR=$withval/lib
7820                         MYSQL_BINDIR=$withval/bin
7821                 else
7822                    echo "$as_me:$LINENO: result: no" >&5
7823 echo "${ECHO_T}no" >&6
7824                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7825 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7826    { (exit 1); exit 1; }; }
7827                 fi
7828         fi
7829     SQL_INCLUDE=-I$MYSQL_INCDIR
7830     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7831     SQL_BINDIR=$MYSQL_BINDIR
7832
7833     cat >>confdefs.h <<\_ACEOF
7834 #define HAVE_MYSQL 1
7835 _ACEOF
7836
7837     cat >>confdefs.h <<\_ACEOF
7838 #define HAVE_EMBEDDED_MYSQL 1
7839 _ACEOF
7840
7841     echo "$as_me:$LINENO: result: yes" >&5
7842 echo "${ECHO_T}yes" >&6
7843     db_found=yes
7844     support_mysql=yes
7845     db_name=MySQL
7846     DB_NAME=mysql
7847
7848   else
7849         echo "$as_me:$LINENO: result: no" >&5
7850 echo "${ECHO_T}no" >&6
7851   fi
7852
7853
7854 fi;
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864 db_found=no
7865 echo "$as_me:$LINENO: checking for SQLite support" >&5
7866 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7867
7868 # Check whether --with-sqlite or --without-sqlite was given.
7869 if test "${with_sqlite+set}" = set; then
7870   withval="$with_sqlite"
7871
7872   if test "$withval" != "no"; then
7873      if test "$withval" = "yes"; then
7874         if test -f /usr/local/include/sqlite.h; then
7875            SQLITE_INCDIR=/usr/local/include
7876            SQLITE_LIBDIR=/usr/local/lib
7877            SQLITE_BINDIR=/usr/local/bin
7878         elif test -f /usr/include/sqlite.h; then
7879            SQLITE_INCDIR=/usr/include
7880            SQLITE_LIBDIR=/usr/lib
7881            SQLITE_BINDIR=/usr/bin
7882         else
7883            echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6
7885            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7886 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7887    { (exit 1); exit 1; }; }
7888         fi
7889      else
7890         if test -f $withval/sqlite.h; then
7891            SQLITE_INCDIR=$withval
7892            SQLITE_LIBDIR=$withval
7893            SQLITE_BINDIR=$withval
7894         else
7895            echo "$as_me:$LINENO: result: no" >&5
7896 echo "${ECHO_T}no" >&6
7897            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7898 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7899    { (exit 1); exit 1; }; }
7900         fi
7901      fi
7902      SQL_INCLUDE=-I$SQLITE_INCDIR
7903      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7904      SQL_BINDIR=$SQLITE_BINDIR
7905
7906      cat >>confdefs.h <<\_ACEOF
7907 #define HAVE_SQLITE 1
7908 _ACEOF
7909
7910      echo "$as_me:$LINENO: result: yes" >&5
7911 echo "${ECHO_T}yes" >&6
7912      db_found=yes
7913      support_sqlite=yes
7914      db_name=SQLite
7915      DB_NAME=sqlite
7916
7917   else
7918      echo "$as_me:$LINENO: result: no" >&5
7919 echo "${ECHO_T}no" >&6
7920   fi
7921
7922 else
7923
7924   echo "$as_me:$LINENO: result: no" >&5
7925 echo "${ECHO_T}no" >&6
7926
7927 fi;
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937 cat >>confdefs.h <<\_ACEOF
7938 #define PROTOTYPES 1
7939 _ACEOF
7940
7941
7942 if test -z "$CFLAGS"; then
7943     if test -z "$CCOPTS"; then
7944         CCOPTS='-g -O2'
7945     fi
7946     CFLAGS="$CCOPTS"
7947 fi
7948
7949
7950
7951
7952 largefile_support="no"
7953
7954    # Check whether --enable-largefile or --disable-largefile was given.
7955 if test "${enable_largefile+set}" = set; then
7956   enableval="$enable_largefile"
7957
7958 fi;
7959    if test "$enable_largefile" != no; then
7960      if test -n "$ac_tool_prefix"; then
7961   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7962 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7963 echo "$as_me:$LINENO: checking for $ac_word" >&5
7964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7965 if test "${ac_cv_prog_GETCONF+set}" = set; then
7966   echo $ECHO_N "(cached) $ECHO_C" >&6
7967 else
7968   if test -n "$GETCONF"; then
7969   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7973 do
7974   IFS=$as_save_IFS
7975   test -z "$as_dir" && as_dir=.
7976   for ac_exec_ext in '' $ac_executable_extensions; do
7977   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7980     break 2
7981   fi
7982 done
7983 done
7984
7985 fi
7986 fi
7987 GETCONF=$ac_cv_prog_GETCONF
7988 if test -n "$GETCONF"; then
7989   echo "$as_me:$LINENO: result: $GETCONF" >&5
7990 echo "${ECHO_T}$GETCONF" >&6
7991 else
7992   echo "$as_me:$LINENO: result: no" >&5
7993 echo "${ECHO_T}no" >&6
7994 fi
7995
7996 fi
7997 if test -z "$ac_cv_prog_GETCONF"; then
7998   ac_ct_GETCONF=$GETCONF
7999   # Extract the first word of "getconf", so it can be a program name with args.
8000 set dummy getconf; ac_word=$2
8001 echo "$as_me:$LINENO: checking for $ac_word" >&5
8002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8003 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   if test -n "$ac_ct_GETCONF"; then
8007   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8008 else
8009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 for as_dir in $PATH
8011 do
8012   IFS=$as_save_IFS
8013   test -z "$as_dir" && as_dir=.
8014   for ac_exec_ext in '' $ac_executable_extensions; do
8015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8016     ac_cv_prog_ac_ct_GETCONF="getconf"
8017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8018     break 2
8019   fi
8020 done
8021 done
8022
8023 fi
8024 fi
8025 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8026 if test -n "$ac_ct_GETCONF"; then
8027   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8028 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8029 else
8030   echo "$as_me:$LINENO: result: no" >&5
8031 echo "${ECHO_T}no" >&6
8032 fi
8033
8034   GETCONF=$ac_ct_GETCONF
8035 else
8036   GETCONF="$ac_cv_prog_GETCONF"
8037 fi
8038
8039      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8040 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8041 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8045         ac_cv_sys_largefile_CFLAGS=no
8046         case "$host_os" in
8047            # IRIX 6.2 and later require cc -n32.
8048            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8049              if test "$GCC" != yes; then
8050                ac_cv_sys_largefile_CFLAGS=-n32
8051              fi
8052              ac_save_CC="$CC"
8053              CC="$CC $ac_cv_sys_largefile_CFLAGS"
8054              cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060
8061 int
8062 main ()
8063 {
8064
8065   ;
8066   return 0;
8067 }
8068 _ACEOF
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8071   (eval $ac_link) 2>conftest.er1
8072   ac_status=$?
8073   grep -v '^ *+' conftest.er1 >conftest.err
8074   rm -f conftest.er1
8075   cat conftest.err >&5
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); } &&
8078          { ac_try='test -z "$ac_c_werror_flag"
8079                          || test ! -s conftest.err'
8080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8081   (eval $ac_try) 2>&5
8082   ac_status=$?
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); }; } &&
8085          { ac_try='test -s conftest$ac_exeext'
8086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087   (eval $ac_try) 2>&5
8088   ac_status=$?
8089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090   (exit $ac_status); }; }; then
8091   :
8092 else
8093   echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096 ac_cv_sys_largefile_CFLAGS=no
8097 fi
8098 rm -f conftest.err conftest.$ac_objext \
8099       conftest$ac_exeext conftest.$ac_ext
8100              CC="$ac_save_CC"
8101            esac
8102       }
8103 fi
8104 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8105 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8106      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8107 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8108 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8109   echo $ECHO_N "(cached) $ECHO_C" >&6
8110 else
8111   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8112         ac_cv_sys_largefile_LDFLAGS=no
8113
8114       }
8115 fi
8116 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8117 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8118      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8119 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8120 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8121   echo $ECHO_N "(cached) $ECHO_C" >&6
8122 else
8123   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8124         ac_cv_sys_largefile_LIBS=no
8125
8126       }
8127 fi
8128 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8129 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8130
8131      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8132        case "$ac_flag" in
8133        no) ;;
8134        -D_FILE_OFFSET_BITS=*) ;;
8135        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8136        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8137        -D?* | -I?*)
8138          case "$ac_flag" in
8139    no) ;;
8140    ?*)
8141      case "$CPPFLAGS" in
8142      '') CPPFLAGS="$ac_flag" ;;
8143      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8144      esac ;;
8145    esac ;;
8146        *)
8147          case "$ac_flag" in
8148    no) ;;
8149    ?*)
8150      case "$CFLAGS" in
8151      '') CFLAGS="$ac_flag" ;;
8152      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8153      esac ;;
8154    esac ;;
8155        esac
8156      done
8157      case "$ac_cv_sys_largefile_LDFLAGS" in
8158    no) ;;
8159    ?*)
8160      case "$LDFLAGS" in
8161      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8162      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8163      esac ;;
8164    esac
8165      case "$ac_cv_sys_largefile_LIBS" in
8166    no) ;;
8167    ?*)
8168      case "$LIBS" in
8169      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8170      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8171      esac ;;
8172    esac
8173      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8174 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8175 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8176   echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178   ac_cv_sys_file_offset_bits=no
8179       case "$host_os" in
8180         # HP-UX 10.20 and later
8181         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8182           ac_cv_sys_file_offset_bits=64 ;;
8183         esac
8184       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8185         case "$ac_flag" in
8186         -D_FILE_OFFSET_BITS)
8187           ac_cv_sys_file_offset_bits=1 ;;
8188         -D_FILE_OFFSET_BITS=*)
8189           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8190         esac
8191       done
8192
8193 fi
8194 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8195 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8196    if test "$ac_cv_sys_file_offset_bits" != no; then
8197
8198 cat >>confdefs.h <<_ACEOF
8199 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8200 _ACEOF
8201
8202    fi
8203      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8204 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8205 if test "${ac_cv_sys_largefile_source+set}" = set; then
8206   echo $ECHO_N "(cached) $ECHO_C" >&6
8207 else
8208   ac_cv_sys_largefile_source=no
8209       case "$host_os" in
8210         # HP-UX 10.20 and later
8211         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8212           ac_cv_sys_largefile_source=1 ;;
8213         esac
8214       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8215         case "$ac_flag" in
8216         -D_LARGEFILE_SOURCE)
8217           ac_cv_sys_largefile_source=1 ;;
8218         -D_LARGEFILE_SOURCE=*)
8219           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8220         esac
8221       done
8222
8223 fi
8224 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8225 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8226    if test "$ac_cv_sys_largefile_source" != no; then
8227
8228 cat >>confdefs.h <<_ACEOF
8229 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8230 _ACEOF
8231
8232    fi
8233      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8234 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8235 if test "${ac_cv_sys_large_files+set}" = set; then
8236   echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238   ac_cv_sys_large_files=no
8239       case "$host_os" in
8240         # AIX 4.2 and later
8241         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8242           ac_cv_sys_large_files=1 ;;
8243         esac
8244       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8245         case "$ac_flag" in
8246         -D_LARGE_FILES)
8247           ac_cv_sys_large_files=1 ;;
8248         -D_LARGE_FILES=*)
8249           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8250         esac
8251       done
8252
8253 fi
8254 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8255 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8256    if test "$ac_cv_sys_large_files" != no; then
8257
8258 cat >>confdefs.h <<_ACEOF
8259 #define _LARGE_FILES $ac_cv_sys_large_files
8260 _ACEOF
8261
8262    fi
8263    fi
8264
8265
8266
8267 echo "$as_me:$LINENO: checking for X" >&5
8268 echo $ECHO_N "checking for X... $ECHO_C" >&6
8269
8270
8271 # Check whether --with-x or --without-x was given.
8272 if test "${with_x+set}" = set; then
8273   withval="$with_x"
8274
8275 fi;
8276 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8277 if test "x$with_x" = xno; then
8278   # The user explicitly disabled X.
8279   have_x=disabled
8280 else
8281   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8282     # Both variables are already set.
8283     have_x=yes
8284   else
8285     if test "${ac_cv_have_x+set}" = set; then
8286   echo $ECHO_N "(cached) $ECHO_C" >&6
8287 else
8288   # One or both of the vars are not set, and there is no cached value.
8289 ac_x_includes=no ac_x_libraries=no
8290 rm -fr conftest.dir
8291 if mkdir conftest.dir; then
8292   cd conftest.dir
8293   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8294   cat >Imakefile <<'_ACEOF'
8295 acfindx:
8296         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8297 _ACEOF
8298   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8299     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8300     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8301     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8302     for ac_extension in a so sl; do
8303       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8304          test -f $ac_im_libdir/libX11.$ac_extension; then
8305         ac_im_usrlibdir=$ac_im_libdir; break
8306       fi
8307     done
8308     # Screen out bogus values from the imake configuration.  They are
8309     # bogus both because they are the default anyway, and because
8310     # using them would break gcc on systems where it needs fixed includes.
8311     case $ac_im_incroot in
8312         /usr/include) ;;
8313         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8314     esac
8315     case $ac_im_usrlibdir in
8316         /usr/lib | /lib) ;;
8317         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8318     esac
8319   fi
8320   cd ..
8321   rm -fr conftest.dir
8322 fi
8323
8324 # Standard set of common directories for X headers.
8325 # Check X11 before X11Rn because it is often a symlink to the current release.
8326 ac_x_header_dirs='
8327 /usr/X11/include
8328 /usr/X11R6/include
8329 /usr/X11R5/include
8330 /usr/X11R4/include
8331
8332 /usr/include/X11
8333 /usr/include/X11R6
8334 /usr/include/X11R5
8335 /usr/include/X11R4
8336
8337 /usr/local/X11/include
8338 /usr/local/X11R6/include
8339 /usr/local/X11R5/include
8340 /usr/local/X11R4/include
8341
8342 /usr/local/include/X11
8343 /usr/local/include/X11R6
8344 /usr/local/include/X11R5
8345 /usr/local/include/X11R4
8346
8347 /usr/X386/include
8348 /usr/x386/include
8349 /usr/XFree86/include/X11
8350
8351 /usr/include
8352 /usr/local/include
8353 /usr/unsupported/include
8354 /usr/athena/include
8355 /usr/local/x11r5/include
8356 /usr/lpp/Xamples/include
8357
8358 /usr/openwin/include
8359 /usr/openwin/share/include'
8360
8361 if test "$ac_x_includes" = no; then
8362   # Guess where to find include files, by looking for Intrinsic.h.
8363   # First, try using that file with no special directory specified.
8364   cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h.  */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h.  */
8370 #include <X11/Intrinsic.h>
8371 _ACEOF
8372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8374   ac_status=$?
8375   grep -v '^ *+' conftest.er1 >conftest.err
8376   rm -f conftest.er1
8377   cat conftest.err >&5
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); } >/dev/null; then
8380   if test -s conftest.err; then
8381     ac_cpp_err=$ac_c_preproc_warn_flag
8382     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8383   else
8384     ac_cpp_err=
8385   fi
8386 else
8387   ac_cpp_err=yes
8388 fi
8389 if test -z "$ac_cpp_err"; then
8390   # We can compile using X headers with no special include directory.
8391 ac_x_includes=
8392 else
8393   echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396   for ac_dir in $ac_x_header_dirs; do
8397   if test -r "$ac_dir/X11/Intrinsic.h"; then
8398     ac_x_includes=$ac_dir
8399     break
8400   fi
8401 done
8402 fi
8403 rm -f conftest.err conftest.$ac_ext
8404 fi # $ac_x_includes = no
8405
8406 if test "$ac_x_libraries" = no; then
8407   # Check for the libraries.
8408   # See if we find them without any special options.
8409   # Don't add to $LIBS permanently.
8410   ac_save_LIBS=$LIBS
8411   LIBS="-lXt $LIBS"
8412   cat >conftest.$ac_ext <<_ACEOF
8413 /* confdefs.h.  */
8414 _ACEOF
8415 cat confdefs.h >>conftest.$ac_ext
8416 cat >>conftest.$ac_ext <<_ACEOF
8417 /* end confdefs.h.  */
8418 #include <X11/Intrinsic.h>
8419 int
8420 main ()
8421 {
8422 XtMalloc (0)
8423   ;
8424   return 0;
8425 }
8426 _ACEOF
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8429   (eval $ac_link) 2>conftest.er1
8430   ac_status=$?
8431   grep -v '^ *+' conftest.er1 >conftest.err
8432   rm -f conftest.er1
8433   cat conftest.err >&5
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); } &&
8436          { ac_try='test -z "$ac_c_werror_flag"
8437                          || test ! -s conftest.err'
8438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439   (eval $ac_try) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; } &&
8443          { ac_try='test -s conftest$ac_exeext'
8444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445   (eval $ac_try) 2>&5
8446   ac_status=$?
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); }; }; then
8449   LIBS=$ac_save_LIBS
8450 # We can link X programs with no special library path.
8451 ac_x_libraries=
8452 else
8453   echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8455
8456 LIBS=$ac_save_LIBS
8457 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8458 do
8459   # Don't even attempt the hair of trying to link an X program!
8460   for ac_extension in a so sl; do
8461     if test -r $ac_dir/libXt.$ac_extension; then
8462       ac_x_libraries=$ac_dir
8463       break 2
8464     fi
8465   done
8466 done
8467 fi
8468 rm -f conftest.err conftest.$ac_objext \
8469       conftest$ac_exeext conftest.$ac_ext
8470 fi # $ac_x_libraries = no
8471
8472 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8473   # Didn't find X anywhere.  Cache the known absence of X.
8474   ac_cv_have_x="have_x=no"
8475 else
8476   # Record where we found X for the cache.
8477   ac_cv_have_x="have_x=yes \
8478                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8479 fi
8480 fi
8481
8482   fi
8483   eval "$ac_cv_have_x"
8484 fi # $with_x != no
8485
8486 if test "$have_x" != yes; then
8487   echo "$as_me:$LINENO: result: $have_x" >&5
8488 echo "${ECHO_T}$have_x" >&6
8489   no_x=yes
8490 else
8491   # If each of the values was on the command line, it overrides each guess.
8492   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8493   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8494   # Update the cache value to reflect the command line values.
8495   ac_cv_have_x="have_x=yes \
8496                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8497   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8498 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8499 fi
8500
8501 if test "$no_x" = yes; then
8502   # Not all programs may use this symbol, but it does not hurt to define it.
8503
8504 cat >>confdefs.h <<\_ACEOF
8505 #define X_DISPLAY_MISSING 1
8506 _ACEOF
8507
8508   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8509 else
8510   if test -n "$x_includes"; then
8511     X_CFLAGS="$X_CFLAGS -I$x_includes"
8512   fi
8513
8514   # It would also be nice to do this for all -L options, not just this one.
8515   if test -n "$x_libraries"; then
8516     X_LIBS="$X_LIBS -L$x_libraries"
8517     # For Solaris; some versions of Sun CC require a space after -R and
8518     # others require no space.  Words are not sufficient . . . .
8519     case `(uname -sr) 2>/dev/null` in
8520     "SunOS 5"*)
8521       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8522 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8523       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8524       cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h.  */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h.  */
8530
8531 int
8532 main ()
8533 {
8534
8535   ;
8536   return 0;
8537 }
8538 _ACEOF
8539 rm -f conftest.$ac_objext conftest$ac_exeext
8540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8541   (eval $ac_link) 2>conftest.er1
8542   ac_status=$?
8543   grep -v '^ *+' conftest.er1 >conftest.err
8544   rm -f conftest.er1
8545   cat conftest.err >&5
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); } &&
8548          { ac_try='test -z "$ac_c_werror_flag"
8549                          || test ! -s conftest.err'
8550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551   (eval $ac_try) 2>&5
8552   ac_status=$?
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); }; } &&
8555          { ac_try='test -s conftest$ac_exeext'
8556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557   (eval $ac_try) 2>&5
8558   ac_status=$?
8559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560   (exit $ac_status); }; }; then
8561   ac_R_nospace=yes
8562 else
8563   echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 ac_R_nospace=no
8567 fi
8568 rm -f conftest.err conftest.$ac_objext \
8569       conftest$ac_exeext conftest.$ac_ext
8570       if test $ac_R_nospace = yes; then
8571         echo "$as_me:$LINENO: result: no" >&5
8572 echo "${ECHO_T}no" >&6
8573         X_LIBS="$X_LIBS -R$x_libraries"
8574       else
8575         LIBS="$ac_xsave_LIBS -R $x_libraries"
8576         cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h.  */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h.  */
8582
8583 int
8584 main ()
8585 {
8586
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext conftest$ac_exeext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593   (eval $ac_link) 2>conftest.er1
8594   ac_status=$?
8595   grep -v '^ *+' conftest.er1 >conftest.err
8596   rm -f conftest.er1
8597   cat conftest.err >&5
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); } &&
8600          { ac_try='test -z "$ac_c_werror_flag"
8601                          || test ! -s conftest.err'
8602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603   (eval $ac_try) 2>&5
8604   ac_status=$?
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); }; } &&
8607          { ac_try='test -s conftest$ac_exeext'
8608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609   (eval $ac_try) 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); }; }; then
8613   ac_R_space=yes
8614 else
8615   echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618 ac_R_space=no
8619 fi
8620 rm -f conftest.err conftest.$ac_objext \
8621       conftest$ac_exeext conftest.$ac_ext
8622         if test $ac_R_space = yes; then
8623           echo "$as_me:$LINENO: result: yes" >&5
8624 echo "${ECHO_T}yes" >&6
8625           X_LIBS="$X_LIBS -R $x_libraries"
8626         else
8627           echo "$as_me:$LINENO: result: neither works" >&5
8628 echo "${ECHO_T}neither works" >&6
8629         fi
8630       fi
8631       LIBS=$ac_xsave_LIBS
8632     esac
8633   fi
8634
8635   # Check for system-dependent libraries X programs must link with.
8636   # Do this before checking for the system-independent R6 libraries
8637   # (-lICE), since we may need -lsocket or whatever for X linking.
8638
8639   if test "$ISC" = yes; then
8640     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8641   else
8642     # Martyn Johnson says this is needed for Ultrix, if the X
8643     # libraries were built with DECnet support.  And Karl Berry says
8644     # the Alpha needs dnet_stub (dnet does not exist).
8645     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8646     cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h.  */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h.  */
8652
8653 /* Override any gcc2 internal prototype to avoid an error.  */
8654 #ifdef __cplusplus
8655 extern "C"
8656 #endif
8657 /* We use char because int might match the return type of a gcc2
8658    builtin and then its argument prototype would still apply.  */
8659 char XOpenDisplay ();
8660 int
8661 main ()
8662 {
8663 XOpenDisplay ();
8664   ;
8665   return 0;
8666 }
8667 _ACEOF
8668 rm -f conftest.$ac_objext conftest$ac_exeext
8669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8670   (eval $ac_link) 2>conftest.er1
8671   ac_status=$?
8672   grep -v '^ *+' conftest.er1 >conftest.err
8673   rm -f conftest.er1
8674   cat conftest.err >&5
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); } &&
8677          { ac_try='test -z "$ac_c_werror_flag"
8678                          || test ! -s conftest.err'
8679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680   (eval $ac_try) 2>&5
8681   ac_status=$?
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); }; } &&
8684          { ac_try='test -s conftest$ac_exeext'
8685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8686   (eval $ac_try) 2>&5
8687   ac_status=$?
8688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689   (exit $ac_status); }; }; then
8690   :
8691 else
8692   echo "$as_me: failed program was:" >&5
8693 sed 's/^/| /' conftest.$ac_ext >&5
8694
8695 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8696 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8697 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8698   echo $ECHO_N "(cached) $ECHO_C" >&6
8699 else
8700   ac_check_lib_save_LIBS=$LIBS
8701 LIBS="-ldnet  $LIBS"
8702 cat >conftest.$ac_ext <<_ACEOF
8703 /* confdefs.h.  */
8704 _ACEOF
8705 cat confdefs.h >>conftest.$ac_ext
8706 cat >>conftest.$ac_ext <<_ACEOF
8707 /* end confdefs.h.  */
8708
8709 /* Override any gcc2 internal prototype to avoid an error.  */
8710 #ifdef __cplusplus
8711 extern "C"
8712 #endif
8713 /* We use char because int might match the return type of a gcc2
8714    builtin and then its argument prototype would still apply.  */
8715 char dnet_ntoa ();
8716 int
8717 main ()
8718 {
8719 dnet_ntoa ();
8720   ;
8721   return 0;
8722 }
8723 _ACEOF
8724 rm -f conftest.$ac_objext conftest$ac_exeext
8725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8726   (eval $ac_link) 2>conftest.er1
8727   ac_status=$?
8728   grep -v '^ *+' conftest.er1 >conftest.err
8729   rm -f conftest.er1
8730   cat conftest.err >&5
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); } &&
8733          { ac_try='test -z "$ac_c_werror_flag"
8734                          || test ! -s conftest.err'
8735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736   (eval $ac_try) 2>&5
8737   ac_status=$?
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); }; } &&
8740          { ac_try='test -s conftest$ac_exeext'
8741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742   (eval $ac_try) 2>&5
8743   ac_status=$?
8744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745   (exit $ac_status); }; }; then
8746   ac_cv_lib_dnet_dnet_ntoa=yes
8747 else
8748   echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8750
8751 ac_cv_lib_dnet_dnet_ntoa=no
8752 fi
8753 rm -f conftest.err conftest.$ac_objext \
8754       conftest$ac_exeext conftest.$ac_ext
8755 LIBS=$ac_check_lib_save_LIBS
8756 fi
8757 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8758 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8759 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8760   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8761 fi
8762
8763     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8764       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8765 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8766 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8767   echo $ECHO_N "(cached) $ECHO_C" >&6
8768 else
8769   ac_check_lib_save_LIBS=$LIBS
8770 LIBS="-ldnet_stub  $LIBS"
8771 cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h.  */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h.  */
8777
8778 /* Override any gcc2 internal prototype to avoid an error.  */
8779 #ifdef __cplusplus
8780 extern "C"
8781 #endif
8782 /* We use char because int might match the return type of a gcc2
8783    builtin and then its argument prototype would still apply.  */
8784 char dnet_ntoa ();
8785 int
8786 main ()
8787 {
8788 dnet_ntoa ();
8789   ;
8790   return 0;
8791 }
8792 _ACEOF
8793 rm -f conftest.$ac_objext conftest$ac_exeext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8795   (eval $ac_link) 2>conftest.er1
8796   ac_status=$?
8797   grep -v '^ *+' conftest.er1 >conftest.err
8798   rm -f conftest.er1
8799   cat conftest.err >&5
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } &&
8802          { ac_try='test -z "$ac_c_werror_flag"
8803                          || test ! -s conftest.err'
8804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805   (eval $ac_try) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); }; } &&
8809          { ac_try='test -s conftest$ac_exeext'
8810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811   (eval $ac_try) 2>&5
8812   ac_status=$?
8813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814   (exit $ac_status); }; }; then
8815   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8816 else
8817   echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 ac_cv_lib_dnet_stub_dnet_ntoa=no
8821 fi
8822 rm -f conftest.err conftest.$ac_objext \
8823       conftest$ac_exeext conftest.$ac_ext
8824 LIBS=$ac_check_lib_save_LIBS
8825 fi
8826 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8827 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8828 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8829   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8830 fi
8831
8832     fi
8833 fi
8834 rm -f conftest.err conftest.$ac_objext \
8835       conftest$ac_exeext conftest.$ac_ext
8836     LIBS="$ac_xsave_LIBS"
8837
8838     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8839     # to get the SysV transport functions.
8840     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8841     # needs -lnsl.
8842     # The nsl library prevents programs from opening the X display
8843     # on Irix 5.2, according to T.E. Dickey.
8844     # The functions gethostbyname, getservbyname, and inet_addr are
8845     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8846     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8847 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8848 if test "${ac_cv_func_gethostbyname+set}" = set; then
8849   echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851   cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h.  */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h.  */
8857 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8858    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8859 #define gethostbyname innocuous_gethostbyname
8860
8861 /* System header to define __stub macros and hopefully few prototypes,
8862     which can conflict with char gethostbyname (); below.
8863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8864     <limits.h> exists even on freestanding compilers.  */
8865
8866 #ifdef __STDC__
8867 # include <limits.h>
8868 #else
8869 # include <assert.h>
8870 #endif
8871
8872 #undef gethostbyname
8873
8874 /* Override any gcc2 internal prototype to avoid an error.  */
8875 #ifdef __cplusplus
8876 extern "C"
8877 {
8878 #endif
8879 /* We use char because int might match the return type of a gcc2
8880    builtin and then its argument prototype would still apply.  */
8881 char gethostbyname ();
8882 /* The GNU C library defines this for functions which it implements
8883     to always fail with ENOSYS.  Some functions are actually named
8884     something starting with __ and the normal name is an alias.  */
8885 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8886 choke me
8887 #else
8888 char (*f) () = gethostbyname;
8889 #endif
8890 #ifdef __cplusplus
8891 }
8892 #endif
8893
8894 int
8895 main ()
8896 {
8897 return f != gethostbyname;
8898   ;
8899   return 0;
8900 }
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904   (eval $ac_link) 2>conftest.er1
8905   ac_status=$?
8906   grep -v '^ *+' conftest.er1 >conftest.err
8907   rm -f conftest.er1
8908   cat conftest.err >&5
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   (exit $ac_status); } &&
8911          { ac_try='test -z "$ac_c_werror_flag"
8912                          || test ! -s conftest.err'
8913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914   (eval $ac_try) 2>&5
8915   ac_status=$?
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); }; } &&
8918          { ac_try='test -s conftest$ac_exeext'
8919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920   (eval $ac_try) 2>&5
8921   ac_status=$?
8922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923   (exit $ac_status); }; }; then
8924   ac_cv_func_gethostbyname=yes
8925 else
8926   echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929 ac_cv_func_gethostbyname=no
8930 fi
8931 rm -f conftest.err conftest.$ac_objext \
8932       conftest$ac_exeext conftest.$ac_ext
8933 fi
8934 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8935 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8936
8937     if test $ac_cv_func_gethostbyname = no; then
8938       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8939 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8940 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8941   echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943   ac_check_lib_save_LIBS=$LIBS
8944 LIBS="-lnsl  $LIBS"
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h.  */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h.  */
8951
8952 /* Override any gcc2 internal prototype to avoid an error.  */
8953 #ifdef __cplusplus
8954 extern "C"
8955 #endif
8956 /* We use char because int might match the return type of a gcc2
8957    builtin and then its argument prototype would still apply.  */
8958 char gethostbyname ();
8959 int
8960 main ()
8961 {
8962 gethostbyname ();
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8969   (eval $ac_link) 2>conftest.er1
8970   ac_status=$?
8971   grep -v '^ *+' conftest.er1 >conftest.err
8972   rm -f conftest.er1
8973   cat conftest.err >&5
8974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975   (exit $ac_status); } &&
8976          { ac_try='test -z "$ac_c_werror_flag"
8977                          || test ! -s conftest.err'
8978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979   (eval $ac_try) 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); }; } &&
8983          { ac_try='test -s conftest$ac_exeext'
8984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985   (eval $ac_try) 2>&5
8986   ac_status=$?
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   (exit $ac_status); }; }; then
8989   ac_cv_lib_nsl_gethostbyname=yes
8990 else
8991   echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994 ac_cv_lib_nsl_gethostbyname=no
8995 fi
8996 rm -f conftest.err conftest.$ac_objext \
8997       conftest$ac_exeext conftest.$ac_ext
8998 LIBS=$ac_check_lib_save_LIBS
8999 fi
9000 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9001 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9002 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9003   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9004 fi
9005
9006       if test $ac_cv_lib_nsl_gethostbyname = no; then
9007         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9008 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9009 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9010   echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012   ac_check_lib_save_LIBS=$LIBS
9013 LIBS="-lbsd  $LIBS"
9014 cat >conftest.$ac_ext <<_ACEOF
9015 /* confdefs.h.  */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h.  */
9020
9021 /* Override any gcc2 internal prototype to avoid an error.  */
9022 #ifdef __cplusplus
9023 extern "C"
9024 #endif
9025 /* We use char because int might match the return type of a gcc2
9026    builtin and then its argument prototype would still apply.  */
9027 char gethostbyname ();
9028 int
9029 main ()
9030 {
9031 gethostbyname ();
9032   ;
9033   return 0;
9034 }
9035 _ACEOF
9036 rm -f conftest.$ac_objext conftest$ac_exeext
9037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9038   (eval $ac_link) 2>conftest.er1
9039   ac_status=$?
9040   grep -v '^ *+' conftest.er1 >conftest.err
9041   rm -f conftest.er1
9042   cat conftest.err >&5
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); } &&
9045          { ac_try='test -z "$ac_c_werror_flag"
9046                          || test ! -s conftest.err'
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); }; } &&
9052          { ac_try='test -s conftest$ac_exeext'
9053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054   (eval $ac_try) 2>&5
9055   ac_status=$?
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); }; }; then
9058   ac_cv_lib_bsd_gethostbyname=yes
9059 else
9060   echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9062
9063 ac_cv_lib_bsd_gethostbyname=no
9064 fi
9065 rm -f conftest.err conftest.$ac_objext \
9066       conftest$ac_exeext conftest.$ac_ext
9067 LIBS=$ac_check_lib_save_LIBS
9068 fi
9069 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9070 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9071 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9072   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9073 fi
9074
9075       fi
9076     fi
9077
9078     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9079     # socket/setsockopt and other routines are undefined under SCO ODT
9080     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9081     # on later versions), says Simon Leinen: it contains gethostby*
9082     # variants that don't use the name server (or something).  -lsocket
9083     # must be given before -lnsl if both are needed.  We assume that
9084     # if connect needs -lnsl, so does gethostbyname.
9085     echo "$as_me:$LINENO: checking for connect" >&5
9086 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9087 if test "${ac_cv_func_connect+set}" = set; then
9088   echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090   cat >conftest.$ac_ext <<_ACEOF
9091 /* confdefs.h.  */
9092 _ACEOF
9093 cat confdefs.h >>conftest.$ac_ext
9094 cat >>conftest.$ac_ext <<_ACEOF
9095 /* end confdefs.h.  */
9096 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9098 #define connect innocuous_connect
9099
9100 /* System header to define __stub macros and hopefully few prototypes,
9101     which can conflict with char connect (); below.
9102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9103     <limits.h> exists even on freestanding compilers.  */
9104
9105 #ifdef __STDC__
9106 # include <limits.h>
9107 #else
9108 # include <assert.h>
9109 #endif
9110
9111 #undef connect
9112
9113 /* Override any gcc2 internal prototype to avoid an error.  */
9114 #ifdef __cplusplus
9115 extern "C"
9116 {
9117 #endif
9118 /* We use char because int might match the return type of a gcc2
9119    builtin and then its argument prototype would still apply.  */
9120 char connect ();
9121 /* The GNU C library defines this for functions which it implements
9122     to always fail with ENOSYS.  Some functions are actually named
9123     something starting with __ and the normal name is an alias.  */
9124 #if defined (__stub_connect) || defined (__stub___connect)
9125 choke me
9126 #else
9127 char (*f) () = connect;
9128 #endif
9129 #ifdef __cplusplus
9130 }
9131 #endif
9132
9133 int
9134 main ()
9135 {
9136 return f != connect;
9137   ;
9138   return 0;
9139 }
9140 _ACEOF
9141 rm -f conftest.$ac_objext conftest$ac_exeext
9142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9143   (eval $ac_link) 2>conftest.er1
9144   ac_status=$?
9145   grep -v '^ *+' conftest.er1 >conftest.err
9146   rm -f conftest.er1
9147   cat conftest.err >&5
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); } &&
9150          { ac_try='test -z "$ac_c_werror_flag"
9151                          || test ! -s conftest.err'
9152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153   (eval $ac_try) 2>&5
9154   ac_status=$?
9155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156   (exit $ac_status); }; } &&
9157          { ac_try='test -s conftest$ac_exeext'
9158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159   (eval $ac_try) 2>&5
9160   ac_status=$?
9161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162   (exit $ac_status); }; }; then
9163   ac_cv_func_connect=yes
9164 else
9165   echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9167
9168 ac_cv_func_connect=no
9169 fi
9170 rm -f conftest.err conftest.$ac_objext \
9171       conftest$ac_exeext conftest.$ac_ext
9172 fi
9173 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9174 echo "${ECHO_T}$ac_cv_func_connect" >&6
9175
9176     if test $ac_cv_func_connect = no; then
9177       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9178 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9179 if test "${ac_cv_lib_socket_connect+set}" = set; then
9180   echo $ECHO_N "(cached) $ECHO_C" >&6
9181 else
9182   ac_check_lib_save_LIBS=$LIBS
9183 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9184 cat >conftest.$ac_ext <<_ACEOF
9185 /* confdefs.h.  */
9186 _ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h.  */
9190
9191 /* Override any gcc2 internal prototype to avoid an error.  */
9192 #ifdef __cplusplus
9193 extern "C"
9194 #endif
9195 /* We use char because int might match the return type of a gcc2
9196    builtin and then its argument prototype would still apply.  */
9197 char connect ();
9198 int
9199 main ()
9200 {
9201 connect ();
9202   ;
9203   return 0;
9204 }
9205 _ACEOF
9206 rm -f conftest.$ac_objext conftest$ac_exeext
9207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9208   (eval $ac_link) 2>conftest.er1
9209   ac_status=$?
9210   grep -v '^ *+' conftest.er1 >conftest.err
9211   rm -f conftest.er1
9212   cat conftest.err >&5
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); } &&
9215          { ac_try='test -z "$ac_c_werror_flag"
9216                          || test ! -s conftest.err'
9217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218   (eval $ac_try) 2>&5
9219   ac_status=$?
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); }; } &&
9222          { ac_try='test -s conftest$ac_exeext'
9223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224   (eval $ac_try) 2>&5
9225   ac_status=$?
9226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); }; }; then
9228   ac_cv_lib_socket_connect=yes
9229 else
9230   echo "$as_me: failed program was:" >&5
9231 sed 's/^/| /' conftest.$ac_ext >&5
9232
9233 ac_cv_lib_socket_connect=no
9234 fi
9235 rm -f conftest.err conftest.$ac_objext \
9236       conftest$ac_exeext conftest.$ac_ext
9237 LIBS=$ac_check_lib_save_LIBS
9238 fi
9239 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9240 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9241 if test $ac_cv_lib_socket_connect = yes; then
9242   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9243 fi
9244
9245     fi
9246
9247     # Guillermo Gomez says -lposix is necessary on A/UX.
9248     echo "$as_me:$LINENO: checking for remove" >&5
9249 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9250 if test "${ac_cv_func_remove+set}" = set; then
9251   echo $ECHO_N "(cached) $ECHO_C" >&6
9252 else
9253   cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h.  */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h.  */
9259 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
9260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9261 #define remove innocuous_remove
9262
9263 /* System header to define __stub macros and hopefully few prototypes,
9264     which can conflict with char remove (); below.
9265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9266     <limits.h> exists even on freestanding compilers.  */
9267
9268 #ifdef __STDC__
9269 # include <limits.h>
9270 #else
9271 # include <assert.h>
9272 #endif
9273
9274 #undef remove
9275
9276 /* Override any gcc2 internal prototype to avoid an error.  */
9277 #ifdef __cplusplus
9278 extern "C"
9279 {
9280 #endif
9281 /* We use char because int might match the return type of a gcc2
9282    builtin and then its argument prototype would still apply.  */
9283 char remove ();
9284 /* The GNU C library defines this for functions which it implements
9285     to always fail with ENOSYS.  Some functions are actually named
9286     something starting with __ and the normal name is an alias.  */
9287 #if defined (__stub_remove) || defined (__stub___remove)
9288 choke me
9289 #else
9290 char (*f) () = remove;
9291 #endif
9292 #ifdef __cplusplus
9293 }
9294 #endif
9295
9296 int
9297 main ()
9298 {
9299 return f != remove;
9300   ;
9301   return 0;
9302 }
9303 _ACEOF
9304 rm -f conftest.$ac_objext conftest$ac_exeext
9305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9306   (eval $ac_link) 2>conftest.er1
9307   ac_status=$?
9308   grep -v '^ *+' conftest.er1 >conftest.err
9309   rm -f conftest.er1
9310   cat conftest.err >&5
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); } &&
9313          { ac_try='test -z "$ac_c_werror_flag"
9314                          || test ! -s conftest.err'
9315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316   (eval $ac_try) 2>&5
9317   ac_status=$?
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); }; } &&
9320          { ac_try='test -s conftest$ac_exeext'
9321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322   (eval $ac_try) 2>&5
9323   ac_status=$?
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); }; }; then
9326   ac_cv_func_remove=yes
9327 else
9328   echo "$as_me: failed program was:" >&5
9329 sed 's/^/| /' conftest.$ac_ext >&5
9330
9331 ac_cv_func_remove=no
9332 fi
9333 rm -f conftest.err conftest.$ac_objext \
9334       conftest$ac_exeext conftest.$ac_ext
9335 fi
9336 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9337 echo "${ECHO_T}$ac_cv_func_remove" >&6
9338
9339     if test $ac_cv_func_remove = no; then
9340       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9341 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9342 if test "${ac_cv_lib_posix_remove+set}" = set; then
9343   echo $ECHO_N "(cached) $ECHO_C" >&6
9344 else
9345   ac_check_lib_save_LIBS=$LIBS
9346 LIBS="-lposix  $LIBS"
9347 cat >conftest.$ac_ext <<_ACEOF
9348 /* confdefs.h.  */
9349 _ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h.  */
9353
9354 /* Override any gcc2 internal prototype to avoid an error.  */
9355 #ifdef __cplusplus
9356 extern "C"
9357 #endif
9358 /* We use char because int might match the return type of a gcc2
9359    builtin and then its argument prototype would still apply.  */
9360 char remove ();
9361 int
9362 main ()
9363 {
9364 remove ();
9365   ;
9366   return 0;
9367 }
9368 _ACEOF
9369 rm -f conftest.$ac_objext conftest$ac_exeext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9371   (eval $ac_link) 2>conftest.er1
9372   ac_status=$?
9373   grep -v '^ *+' conftest.er1 >conftest.err
9374   rm -f conftest.er1
9375   cat conftest.err >&5
9376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); } &&
9378          { ac_try='test -z "$ac_c_werror_flag"
9379                          || test ! -s conftest.err'
9380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381   (eval $ac_try) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; } &&
9385          { ac_try='test -s conftest$ac_exeext'
9386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387   (eval $ac_try) 2>&5
9388   ac_status=$?
9389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); }; }; then
9391   ac_cv_lib_posix_remove=yes
9392 else
9393   echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9395
9396 ac_cv_lib_posix_remove=no
9397 fi
9398 rm -f conftest.err conftest.$ac_objext \
9399       conftest$ac_exeext conftest.$ac_ext
9400 LIBS=$ac_check_lib_save_LIBS
9401 fi
9402 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9403 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9404 if test $ac_cv_lib_posix_remove = yes; then
9405   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9406 fi
9407
9408     fi
9409
9410     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9411     echo "$as_me:$LINENO: checking for shmat" >&5
9412 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9413 if test "${ac_cv_func_shmat+set}" = set; then
9414   echo $ECHO_N "(cached) $ECHO_C" >&6
9415 else
9416   cat >conftest.$ac_ext <<_ACEOF
9417 /* confdefs.h.  */
9418 _ACEOF
9419 cat confdefs.h >>conftest.$ac_ext
9420 cat >>conftest.$ac_ext <<_ACEOF
9421 /* end confdefs.h.  */
9422 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9424 #define shmat innocuous_shmat
9425
9426 /* System header to define __stub macros and hopefully few prototypes,
9427     which can conflict with char shmat (); below.
9428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9429     <limits.h> exists even on freestanding compilers.  */
9430
9431 #ifdef __STDC__
9432 # include <limits.h>
9433 #else
9434 # include <assert.h>
9435 #endif
9436
9437 #undef shmat
9438
9439 /* Override any gcc2 internal prototype to avoid an error.  */
9440 #ifdef __cplusplus
9441 extern "C"
9442 {
9443 #endif
9444 /* We use char because int might match the return type of a gcc2
9445    builtin and then its argument prototype would still apply.  */
9446 char shmat ();
9447 /* The GNU C library defines this for functions which it implements
9448     to always fail with ENOSYS.  Some functions are actually named
9449     something starting with __ and the normal name is an alias.  */
9450 #if defined (__stub_shmat) || defined (__stub___shmat)
9451 choke me
9452 #else
9453 char (*f) () = shmat;
9454 #endif
9455 #ifdef __cplusplus
9456 }
9457 #endif
9458
9459 int
9460 main ()
9461 {
9462 return f != shmat;
9463   ;
9464   return 0;
9465 }
9466 _ACEOF
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9469   (eval $ac_link) 2>conftest.er1
9470   ac_status=$?
9471   grep -v '^ *+' conftest.er1 >conftest.err
9472   rm -f conftest.er1
9473   cat conftest.err >&5
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); } &&
9476          { ac_try='test -z "$ac_c_werror_flag"
9477                          || test ! -s conftest.err'
9478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479   (eval $ac_try) 2>&5
9480   ac_status=$?
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); }; } &&
9483          { ac_try='test -s conftest$ac_exeext'
9484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485   (eval $ac_try) 2>&5
9486   ac_status=$?
9487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488   (exit $ac_status); }; }; then
9489   ac_cv_func_shmat=yes
9490 else
9491   echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9493
9494 ac_cv_func_shmat=no
9495 fi
9496 rm -f conftest.err conftest.$ac_objext \
9497       conftest$ac_exeext conftest.$ac_ext
9498 fi
9499 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9500 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9501
9502     if test $ac_cv_func_shmat = no; then
9503       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9504 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9505 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9506   echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508   ac_check_lib_save_LIBS=$LIBS
9509 LIBS="-lipc  $LIBS"
9510 cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h.  */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h.  */
9516
9517 /* Override any gcc2 internal prototype to avoid an error.  */
9518 #ifdef __cplusplus
9519 extern "C"
9520 #endif
9521 /* We use char because int might match the return type of a gcc2
9522    builtin and then its argument prototype would still apply.  */
9523 char shmat ();
9524 int
9525 main ()
9526 {
9527 shmat ();
9528   ;
9529   return 0;
9530 }
9531 _ACEOF
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9534   (eval $ac_link) 2>conftest.er1
9535   ac_status=$?
9536   grep -v '^ *+' conftest.er1 >conftest.err
9537   rm -f conftest.er1
9538   cat conftest.err >&5
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); } &&
9541          { ac_try='test -z "$ac_c_werror_flag"
9542                          || test ! -s conftest.err'
9543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9544   (eval $ac_try) 2>&5
9545   ac_status=$?
9546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547   (exit $ac_status); }; } &&
9548          { ac_try='test -s conftest$ac_exeext'
9549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550   (eval $ac_try) 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); }; }; then
9554   ac_cv_lib_ipc_shmat=yes
9555 else
9556   echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.$ac_ext >&5
9558
9559 ac_cv_lib_ipc_shmat=no
9560 fi
9561 rm -f conftest.err conftest.$ac_objext \
9562       conftest$ac_exeext conftest.$ac_ext
9563 LIBS=$ac_check_lib_save_LIBS
9564 fi
9565 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9566 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9567 if test $ac_cv_lib_ipc_shmat = yes; then
9568   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9569 fi
9570
9571     fi
9572   fi
9573
9574   # Check for libraries that X11R6 Xt/Xaw programs need.
9575   ac_save_LDFLAGS=$LDFLAGS
9576   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9577   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9578   # check for ICE first), but we must link in the order -lSM -lICE or
9579   # we get undefined symbols.  So assume we have SM if we have ICE.
9580   # These have to be linked with before -lX11, unlike the other
9581   # libraries we check for below, so use a different variable.
9582   # John Interrante, Karl Berry
9583   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9584 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9585 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9586   echo $ECHO_N "(cached) $ECHO_C" >&6
9587 else
9588   ac_check_lib_save_LIBS=$LIBS
9589 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9590 cat >conftest.$ac_ext <<_ACEOF
9591 /* confdefs.h.  */
9592 _ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h.  */
9596
9597 /* Override any gcc2 internal prototype to avoid an error.  */
9598 #ifdef __cplusplus
9599 extern "C"
9600 #endif
9601 /* We use char because int might match the return type of a gcc2
9602    builtin and then its argument prototype would still apply.  */
9603 char IceConnectionNumber ();
9604 int
9605 main ()
9606 {
9607 IceConnectionNumber ();
9608   ;
9609   return 0;
9610 }
9611 _ACEOF
9612 rm -f conftest.$ac_objext conftest$ac_exeext
9613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614   (eval $ac_link) 2>conftest.er1
9615   ac_status=$?
9616   grep -v '^ *+' conftest.er1 >conftest.err
9617   rm -f conftest.er1
9618   cat conftest.err >&5
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); } &&
9621          { ac_try='test -z "$ac_c_werror_flag"
9622                          || test ! -s conftest.err'
9623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624   (eval $ac_try) 2>&5
9625   ac_status=$?
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); }; } &&
9628          { ac_try='test -s conftest$ac_exeext'
9629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630   (eval $ac_try) 2>&5
9631   ac_status=$?
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); }; }; then
9634   ac_cv_lib_ICE_IceConnectionNumber=yes
9635 else
9636   echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.$ac_ext >&5
9638
9639 ac_cv_lib_ICE_IceConnectionNumber=no
9640 fi
9641 rm -f conftest.err conftest.$ac_objext \
9642       conftest$ac_exeext conftest.$ac_ext
9643 LIBS=$ac_check_lib_save_LIBS
9644 fi
9645 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9646 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9647 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9648   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9649 fi
9650
9651   LDFLAGS=$ac_save_LDFLAGS
9652
9653 fi
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681 for ac_header in \
9682         assert.h \
9683         fcntl.h \
9684         grp.h \
9685         pwd.h \
9686         libc.h \
9687         limits.h \
9688         stdarg.h \
9689         stdlib.h \
9690         stdint.h \
9691         string.h \
9692         termios.h \
9693         unistd.h \
9694         sys/bitypes.h \
9695         sys/byteorder.h \
9696         sys/ioctl.h \
9697         sys/select.h \
9698         sys/sockio.h \
9699         sys/time.h \
9700         sys/socket.h \
9701         arpa/nameser.h \
9702         resolv.h \
9703         mtio.h \
9704         sys/mtio.h \
9705         sys/tape.h \
9706         regex.h \
9707
9708 do
9709 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9711   echo "$as_me:$LINENO: checking for $ac_header" >&5
9712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 fi
9716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9718 else
9719   # Is the header compilable?
9720 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9722 cat >conftest.$ac_ext <<_ACEOF
9723 /* confdefs.h.  */
9724 _ACEOF
9725 cat confdefs.h >>conftest.$ac_ext
9726 cat >>conftest.$ac_ext <<_ACEOF
9727 /* end confdefs.h.  */
9728 $ac_includes_default
9729 #include <$ac_header>
9730 _ACEOF
9731 rm -f conftest.$ac_objext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9733   (eval $ac_compile) 2>conftest.er1
9734   ac_status=$?
9735   grep -v '^ *+' conftest.er1 >conftest.err
9736   rm -f conftest.er1
9737   cat conftest.err >&5
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); } &&
9740          { ac_try='test -z "$ac_c_werror_flag"
9741                          || test ! -s conftest.err'
9742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743   (eval $ac_try) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); }; } &&
9747          { ac_try='test -s conftest.$ac_objext'
9748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749   (eval $ac_try) 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; }; then
9753   ac_header_compiler=yes
9754 else
9755   echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9757
9758 ac_header_compiler=no
9759 fi
9760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9761 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9762 echo "${ECHO_T}$ac_header_compiler" >&6
9763
9764 # Is the header present?
9765 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9767 cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h.  */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h.  */
9773 #include <$ac_header>
9774 _ACEOF
9775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9777   ac_status=$?
9778   grep -v '^ *+' conftest.er1 >conftest.err
9779   rm -f conftest.er1
9780   cat conftest.err >&5
9781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782   (exit $ac_status); } >/dev/null; then
9783   if test -s conftest.err; then
9784     ac_cpp_err=$ac_c_preproc_warn_flag
9785     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9786   else
9787     ac_cpp_err=
9788   fi
9789 else
9790   ac_cpp_err=yes
9791 fi
9792 if test -z "$ac_cpp_err"; then
9793   ac_header_preproc=yes
9794 else
9795   echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9797
9798   ac_header_preproc=no
9799 fi
9800 rm -f conftest.err conftest.$ac_ext
9801 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9802 echo "${ECHO_T}$ac_header_preproc" >&6
9803
9804 # So?  What about this header?
9805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9806   yes:no: )
9807     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9809     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9811     ac_header_preproc=yes
9812     ;;
9813   no:yes:* )
9814     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9816     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9817 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9818     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9820     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9821 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9824     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9826     (
9827       cat <<\_ASBOX
9828 ## ------------------------------------------ ##
9829 ## Report this to the AC_PACKAGE_NAME lists.  ##
9830 ## ------------------------------------------ ##
9831 _ASBOX
9832     ) |
9833       sed "s/^/$as_me: WARNING:     /" >&2
9834     ;;
9835 esac
9836 echo "$as_me:$LINENO: checking for $ac_header" >&5
9837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9839   echo $ECHO_N "(cached) $ECHO_C" >&6
9840 else
9841   eval "$as_ac_Header=\$ac_header_preproc"
9842 fi
9843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9845
9846 fi
9847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9848   cat >>confdefs.h <<_ACEOF
9849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9850 _ACEOF
9851
9852 fi
9853
9854 done
9855
9856 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9857 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9858 if test "${ac_cv_header_stdc+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   cat >conftest.$ac_ext <<_ACEOF
9862 /* confdefs.h.  */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h.  */
9867 #include <stdlib.h>
9868 #include <stdarg.h>
9869 #include <string.h>
9870 #include <float.h>
9871
9872 int
9873 main ()
9874 {
9875
9876   ;
9877   return 0;
9878 }
9879 _ACEOF
9880 rm -f conftest.$ac_objext
9881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9882   (eval $ac_compile) 2>conftest.er1
9883   ac_status=$?
9884   grep -v '^ *+' conftest.er1 >conftest.err
9885   rm -f conftest.er1
9886   cat conftest.err >&5
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); } &&
9889          { ac_try='test -z "$ac_c_werror_flag"
9890                          || test ! -s conftest.err'
9891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9892   (eval $ac_try) 2>&5
9893   ac_status=$?
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); }; } &&
9896          { ac_try='test -s conftest.$ac_objext'
9897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9898   (eval $ac_try) 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); }; }; then
9902   ac_cv_header_stdc=yes
9903 else
9904   echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907 ac_cv_header_stdc=no
9908 fi
9909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9910
9911 if test $ac_cv_header_stdc = yes; then
9912   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9913   cat >conftest.$ac_ext <<_ACEOF
9914 /* confdefs.h.  */
9915 _ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h.  */
9919 #include <string.h>
9920
9921 _ACEOF
9922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9923   $EGREP "memchr" >/dev/null 2>&1; then
9924   :
9925 else
9926   ac_cv_header_stdc=no
9927 fi
9928 rm -f conftest*
9929
9930 fi
9931
9932 if test $ac_cv_header_stdc = yes; then
9933   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9934   cat >conftest.$ac_ext <<_ACEOF
9935 /* confdefs.h.  */
9936 _ACEOF
9937 cat confdefs.h >>conftest.$ac_ext
9938 cat >>conftest.$ac_ext <<_ACEOF
9939 /* end confdefs.h.  */
9940 #include <stdlib.h>
9941
9942 _ACEOF
9943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9944   $EGREP "free" >/dev/null 2>&1; then
9945   :
9946 else
9947   ac_cv_header_stdc=no
9948 fi
9949 rm -f conftest*
9950
9951 fi
9952
9953 if test $ac_cv_header_stdc = yes; then
9954   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9955   if test "$cross_compiling" = yes; then
9956   :
9957 else
9958   cat >conftest.$ac_ext <<_ACEOF
9959 /* confdefs.h.  */
9960 _ACEOF
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h.  */
9964 #include <ctype.h>
9965 #if ((' ' & 0x0FF) == 0x020)
9966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9968 #else
9969 # define ISLOWER(c) \
9970                    (('a' <= (c) && (c) <= 'i') \
9971                      || ('j' <= (c) && (c) <= 'r') \
9972                      || ('s' <= (c) && (c) <= 'z'))
9973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9974 #endif
9975
9976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9977 int
9978 main ()
9979 {
9980   int i;
9981   for (i = 0; i < 256; i++)
9982     if (XOR (islower (i), ISLOWER (i))
9983         || toupper (i) != TOUPPER (i))
9984       exit(2);
9985   exit (0);
9986 }
9987 _ACEOF
9988 rm -f conftest$ac_exeext
9989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9990   (eval $ac_link) 2>&5
9991   ac_status=$?
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995   (eval $ac_try) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); }; }; then
9999   :
10000 else
10001   echo "$as_me: program exited with status $ac_status" >&5
10002 echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10004
10005 ( exit $ac_status )
10006 ac_cv_header_stdc=no
10007 fi
10008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10009 fi
10010 fi
10011 fi
10012 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10013 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10014 if test $ac_cv_header_stdc = yes; then
10015
10016 cat >>confdefs.h <<\_ACEOF
10017 #define STDC_HEADERS 1
10018 _ACEOF
10019
10020 fi
10021
10022 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10023 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10024 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027   cat >conftest.$ac_ext <<_ACEOF
10028 /* confdefs.h.  */
10029 _ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h.  */
10033 #include <sys/types.h>
10034 int
10035 main ()
10036 {
10037 return makedev(0, 0);
10038   ;
10039   return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10044   (eval $ac_link) 2>conftest.er1
10045   ac_status=$?
10046   grep -v '^ *+' conftest.er1 >conftest.err
10047   rm -f conftest.er1
10048   cat conftest.err >&5
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); } &&
10051          { ac_try='test -z "$ac_c_werror_flag"
10052                          || test ! -s conftest.err'
10053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054   (eval $ac_try) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; } &&
10058          { ac_try='test -s conftest$ac_exeext'
10059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060   (eval $ac_try) 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   ac_cv_header_sys_types_h_makedev=yes
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069 ac_cv_header_sys_types_h_makedev=no
10070 fi
10071 rm -f conftest.err conftest.$ac_objext \
10072       conftest$ac_exeext conftest.$ac_ext
10073
10074 fi
10075 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10076 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10077
10078 if test $ac_cv_header_sys_types_h_makedev = no; then
10079 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10080   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10081 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10082 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10083   echo $ECHO_N "(cached) $ECHO_C" >&6
10084 fi
10085 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10086 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10087 else
10088   # Is the header compilable?
10089 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10090 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h.  */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h.  */
10097 $ac_includes_default
10098 #include <sys/mkdev.h>
10099 _ACEOF
10100 rm -f conftest.$ac_objext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10102   (eval $ac_compile) 2>conftest.er1
10103   ac_status=$?
10104   grep -v '^ *+' conftest.er1 >conftest.err
10105   rm -f conftest.er1
10106   cat conftest.err >&5
10107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108   (exit $ac_status); } &&
10109          { ac_try='test -z "$ac_c_werror_flag"
10110                          || test ! -s conftest.err'
10111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112   (eval $ac_try) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; } &&
10116          { ac_try='test -s conftest.$ac_objext'
10117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118   (eval $ac_try) 2>&5
10119   ac_status=$?
10120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121   (exit $ac_status); }; }; then
10122   ac_header_compiler=yes
10123 else
10124   echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10126
10127 ac_header_compiler=no
10128 fi
10129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10131 echo "${ECHO_T}$ac_header_compiler" >&6
10132
10133 # Is the header present?
10134 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10135 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h.  */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h.  */
10142 #include <sys/mkdev.h>
10143 _ACEOF
10144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10145   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10146   ac_status=$?
10147   grep -v '^ *+' conftest.er1 >conftest.err
10148   rm -f conftest.er1
10149   cat conftest.err >&5
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); } >/dev/null; then
10152   if test -s conftest.err; then
10153     ac_cpp_err=$ac_c_preproc_warn_flag
10154     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10155   else
10156     ac_cpp_err=
10157   fi
10158 else
10159   ac_cpp_err=yes
10160 fi
10161 if test -z "$ac_cpp_err"; then
10162   ac_header_preproc=yes
10163 else
10164   echo "$as_me: failed program was:" >&5
10165 sed 's/^/| /' conftest.$ac_ext >&5
10166
10167   ac_header_preproc=no
10168 fi
10169 rm -f conftest.err conftest.$ac_ext
10170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10171 echo "${ECHO_T}$ac_header_preproc" >&6
10172
10173 # So?  What about this header?
10174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10175   yes:no: )
10176     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10177 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10178     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
10179 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
10180     ac_header_preproc=yes
10181     ;;
10182   no:yes:* )
10183     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10184 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10185     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
10186 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
10187     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
10188 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
10189     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
10190 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10191     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10192 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10193     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
10194 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
10195     (
10196       cat <<\_ASBOX
10197 ## ------------------------------------------ ##
10198 ## Report this to the AC_PACKAGE_NAME lists.  ##
10199 ## ------------------------------------------ ##
10200 _ASBOX
10201     ) |
10202       sed "s/^/$as_me: WARNING:     /" >&2
10203     ;;
10204 esac
10205 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10206 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10207 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10208   echo $ECHO_N "(cached) $ECHO_C" >&6
10209 else
10210   ac_cv_header_sys_mkdev_h=$ac_header_preproc
10211 fi
10212 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10213 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10214
10215 fi
10216 if test $ac_cv_header_sys_mkdev_h = yes; then
10217
10218 cat >>confdefs.h <<\_ACEOF
10219 #define MAJOR_IN_MKDEV 1
10220 _ACEOF
10221
10222 fi
10223
10224
10225
10226   if test $ac_cv_header_sys_mkdev_h = no; then
10227     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10228   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10229 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10230 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10231   echo $ECHO_N "(cached) $ECHO_C" >&6
10232 fi
10233 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10234 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10235 else
10236   # Is the header compilable?
10237 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10238 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10239 cat >conftest.$ac_ext <<_ACEOF
10240 /* confdefs.h.  */
10241 _ACEOF
10242 cat confdefs.h >>conftest.$ac_ext
10243 cat >>conftest.$ac_ext <<_ACEOF
10244 /* end confdefs.h.  */
10245 $ac_includes_default
10246 #include <sys/sysmacros.h>
10247 _ACEOF
10248 rm -f conftest.$ac_objext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250   (eval $ac_compile) 2>conftest.er1
10251   ac_status=$?
10252   grep -v '^ *+' conftest.er1 >conftest.err
10253   rm -f conftest.er1
10254   cat conftest.err >&5
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); } &&
10257          { ac_try='test -z "$ac_c_werror_flag"
10258                          || test ! -s conftest.err'
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); }; } &&
10264          { ac_try='test -s conftest.$ac_objext'
10265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266   (eval $ac_try) 2>&5
10267   ac_status=$?
10268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269   (exit $ac_status); }; }; then
10270   ac_header_compiler=yes
10271 else
10272   echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10274
10275 ac_header_compiler=no
10276 fi
10277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10279 echo "${ECHO_T}$ac_header_compiler" >&6
10280
10281 # Is the header present?
10282 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10283 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h.  */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h.  */
10290 #include <sys/sysmacros.h>
10291 _ACEOF
10292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10294   ac_status=$?
10295   grep -v '^ *+' conftest.er1 >conftest.err
10296   rm -f conftest.er1
10297   cat conftest.err >&5
10298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299   (exit $ac_status); } >/dev/null; then
10300   if test -s conftest.err; then
10301     ac_cpp_err=$ac_c_preproc_warn_flag
10302     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10303   else
10304     ac_cpp_err=
10305   fi
10306 else
10307   ac_cpp_err=yes
10308 fi
10309 if test -z "$ac_cpp_err"; then
10310   ac_header_preproc=yes
10311 else
10312   echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10314
10315   ac_header_preproc=no
10316 fi
10317 rm -f conftest.err conftest.$ac_ext
10318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10319 echo "${ECHO_T}$ac_header_preproc" >&6
10320
10321 # So?  What about this header?
10322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10323   yes:no: )
10324     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10325 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10326     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
10327 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
10328     ac_header_preproc=yes
10329     ;;
10330   no:yes:* )
10331     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10332 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10333     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
10334 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
10335     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
10336 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
10337     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
10338 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10339     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10340 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10341     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
10342 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
10343     (
10344       cat <<\_ASBOX
10345 ## ------------------------------------------ ##
10346 ## Report this to the AC_PACKAGE_NAME lists.  ##
10347 ## ------------------------------------------ ##
10348 _ASBOX
10349     ) |
10350       sed "s/^/$as_me: WARNING:     /" >&2
10351     ;;
10352 esac
10353 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10354 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10355 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10356   echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10359 fi
10360 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10361 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10362
10363 fi
10364 if test $ac_cv_header_sys_sysmacros_h = yes; then
10365
10366 cat >>confdefs.h <<\_ACEOF
10367 #define MAJOR_IN_SYSMACROS 1
10368 _ACEOF
10369
10370 fi
10371
10372
10373   fi
10374 fi
10375
10376
10377
10378
10379
10380
10381 ac_header_dirent=no
10382 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10383   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10384 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10385 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10387   echo $ECHO_N "(cached) $ECHO_C" >&6
10388 else
10389   cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h.  */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h.  */
10395 #include <sys/types.h>
10396 #include <$ac_hdr>
10397
10398 int
10399 main ()
10400 {
10401 if ((DIR *) 0)
10402 return 0;
10403   ;
10404   return 0;
10405 }
10406 _ACEOF
10407 rm -f conftest.$ac_objext
10408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10409   (eval $ac_compile) 2>conftest.er1
10410   ac_status=$?
10411   grep -v '^ *+' conftest.er1 >conftest.err
10412   rm -f conftest.er1
10413   cat conftest.err >&5
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); } &&
10416          { ac_try='test -z "$ac_c_werror_flag"
10417                          || test ! -s conftest.err'
10418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419   (eval $ac_try) 2>&5
10420   ac_status=$?
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); }; } &&
10423          { ac_try='test -s conftest.$ac_objext'
10424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425   (eval $ac_try) 2>&5
10426   ac_status=$?
10427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428   (exit $ac_status); }; }; then
10429   eval "$as_ac_Header=yes"
10430 else
10431   echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10433
10434 eval "$as_ac_Header=no"
10435 fi
10436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10437 fi
10438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10441   cat >>confdefs.h <<_ACEOF
10442 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10443 _ACEOF
10444
10445 ac_header_dirent=$ac_hdr; break
10446 fi
10447
10448 done
10449 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10450 if test $ac_header_dirent = dirent.h; then
10451   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10452 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10453 if test "${ac_cv_search_opendir+set}" = set; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456   ac_func_search_save_LIBS=$LIBS
10457 ac_cv_search_opendir=no
10458 cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h.  */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h.  */
10464
10465 /* Override any gcc2 internal prototype to avoid an error.  */
10466 #ifdef __cplusplus
10467 extern "C"
10468 #endif
10469 /* We use char because int might match the return type of a gcc2
10470    builtin and then its argument prototype would still apply.  */
10471 char opendir ();
10472 int
10473 main ()
10474 {
10475 opendir ();
10476   ;
10477   return 0;
10478 }
10479 _ACEOF
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482   (eval $ac_link) 2>conftest.er1
10483   ac_status=$?
10484   grep -v '^ *+' conftest.er1 >conftest.err
10485   rm -f conftest.er1
10486   cat conftest.err >&5
10487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488   (exit $ac_status); } &&
10489          { ac_try='test -z "$ac_c_werror_flag"
10490                          || test ! -s conftest.err'
10491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492   (eval $ac_try) 2>&5
10493   ac_status=$?
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); }; } &&
10496          { ac_try='test -s conftest$ac_exeext'
10497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498   (eval $ac_try) 2>&5
10499   ac_status=$?
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); }; }; then
10502   ac_cv_search_opendir="none required"
10503 else
10504   echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10506
10507 fi
10508 rm -f conftest.err conftest.$ac_objext \
10509       conftest$ac_exeext conftest.$ac_ext
10510 if test "$ac_cv_search_opendir" = no; then
10511   for ac_lib in dir; do
10512     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10513     cat >conftest.$ac_ext <<_ACEOF
10514 /* confdefs.h.  */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h.  */
10519
10520 /* Override any gcc2 internal prototype to avoid an error.  */
10521 #ifdef __cplusplus
10522 extern "C"
10523 #endif
10524 /* We use char because int might match the return type of a gcc2
10525    builtin and then its argument prototype would still apply.  */
10526 char opendir ();
10527 int
10528 main ()
10529 {
10530 opendir ();
10531   ;
10532   return 0;
10533 }
10534 _ACEOF
10535 rm -f conftest.$ac_objext conftest$ac_exeext
10536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10537   (eval $ac_link) 2>conftest.er1
10538   ac_status=$?
10539   grep -v '^ *+' conftest.er1 >conftest.err
10540   rm -f conftest.er1
10541   cat conftest.err >&5
10542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543   (exit $ac_status); } &&
10544          { ac_try='test -z "$ac_c_werror_flag"
10545                          || test ! -s conftest.err'
10546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547   (eval $ac_try) 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); }; } &&
10551          { ac_try='test -s conftest$ac_exeext'
10552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553   (eval $ac_try) 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); }; }; then
10557   ac_cv_search_opendir="-l$ac_lib"
10558 break
10559 else
10560   echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10562
10563 fi
10564 rm -f conftest.err conftest.$ac_objext \
10565       conftest$ac_exeext conftest.$ac_ext
10566   done
10567 fi
10568 LIBS=$ac_func_search_save_LIBS
10569 fi
10570 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10571 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10572 if test "$ac_cv_search_opendir" != no; then
10573   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10574
10575 fi
10576
10577 else
10578   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10579 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10580 if test "${ac_cv_search_opendir+set}" = set; then
10581   echo $ECHO_N "(cached) $ECHO_C" >&6
10582 else
10583   ac_func_search_save_LIBS=$LIBS
10584 ac_cv_search_opendir=no
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h.  */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h.  */
10591
10592 /* Override any gcc2 internal prototype to avoid an error.  */
10593 #ifdef __cplusplus
10594 extern "C"
10595 #endif
10596 /* We use char because int might match the return type of a gcc2
10597    builtin and then its argument prototype would still apply.  */
10598 char opendir ();
10599 int
10600 main ()
10601 {
10602 opendir ();
10603   ;
10604   return 0;
10605 }
10606 _ACEOF
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10609   (eval $ac_link) 2>conftest.er1
10610   ac_status=$?
10611   grep -v '^ *+' conftest.er1 >conftest.err
10612   rm -f conftest.er1
10613   cat conftest.err >&5
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); } &&
10616          { ac_try='test -z "$ac_c_werror_flag"
10617                          || test ! -s conftest.err'
10618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619   (eval $ac_try) 2>&5
10620   ac_status=$?
10621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622   (exit $ac_status); }; } &&
10623          { ac_try='test -s conftest$ac_exeext'
10624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625   (eval $ac_try) 2>&5
10626   ac_status=$?
10627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628   (exit $ac_status); }; }; then
10629   ac_cv_search_opendir="none required"
10630 else
10631   echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10633
10634 fi
10635 rm -f conftest.err conftest.$ac_objext \
10636       conftest$ac_exeext conftest.$ac_ext
10637 if test "$ac_cv_search_opendir" = no; then
10638   for ac_lib in x; do
10639     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10640     cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h.  */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h.  */
10646
10647 /* Override any gcc2 internal prototype to avoid an error.  */
10648 #ifdef __cplusplus
10649 extern "C"
10650 #endif
10651 /* We use char because int might match the return type of a gcc2
10652    builtin and then its argument prototype would still apply.  */
10653 char opendir ();
10654 int
10655 main ()
10656 {
10657 opendir ();
10658   ;
10659   return 0;
10660 }
10661 _ACEOF
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664   (eval $ac_link) 2>conftest.er1
10665   ac_status=$?
10666   grep -v '^ *+' conftest.er1 >conftest.err
10667   rm -f conftest.er1
10668   cat conftest.err >&5
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); } &&
10671          { ac_try='test -z "$ac_c_werror_flag"
10672                          || test ! -s conftest.err'
10673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10674   (eval $ac_try) 2>&5
10675   ac_status=$?
10676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677   (exit $ac_status); }; } &&
10678          { ac_try='test -s conftest$ac_exeext'
10679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10680   (eval $ac_try) 2>&5
10681   ac_status=$?
10682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683   (exit $ac_status); }; }; then
10684   ac_cv_search_opendir="-l$ac_lib"
10685 break
10686 else
10687   echo "$as_me: failed program was:" >&5
10688 sed 's/^/| /' conftest.$ac_ext >&5
10689
10690 fi
10691 rm -f conftest.err conftest.$ac_objext \
10692       conftest$ac_exeext conftest.$ac_ext
10693   done
10694 fi
10695 LIBS=$ac_func_search_save_LIBS
10696 fi
10697 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10698 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10699 if test "$ac_cv_search_opendir" != no; then
10700   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10701
10702 fi
10703
10704 fi
10705
10706 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10707 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10708 if test "${ac_cv_header_stat_broken+set}" = set; then
10709   echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711   cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h.  */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h.  */
10717 #include <sys/types.h>
10718 #include <sys/stat.h>
10719
10720 #if defined(S_ISBLK) && defined(S_IFDIR)
10721 # if S_ISBLK (S_IFDIR)
10722 You lose.
10723 # endif
10724 #endif
10725
10726 #if defined(S_ISBLK) && defined(S_IFCHR)
10727 # if S_ISBLK (S_IFCHR)
10728 You lose.
10729 # endif
10730 #endif
10731
10732 #if defined(S_ISLNK) && defined(S_IFREG)
10733 # if S_ISLNK (S_IFREG)
10734 You lose.
10735 # endif
10736 #endif
10737
10738 #if defined(S_ISSOCK) && defined(S_IFREG)
10739 # if S_ISSOCK (S_IFREG)
10740 You lose.
10741 # endif
10742 #endif
10743
10744 _ACEOF
10745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10746   $EGREP "You lose" >/dev/null 2>&1; then
10747   ac_cv_header_stat_broken=yes
10748 else
10749   ac_cv_header_stat_broken=no
10750 fi
10751 rm -f conftest*
10752
10753 fi
10754 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10755 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10756 if test $ac_cv_header_stat_broken = yes; then
10757
10758 cat >>confdefs.h <<\_ACEOF
10759 #define STAT_MACROS_BROKEN 1
10760 _ACEOF
10761
10762 fi
10763
10764 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10765 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10766 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10767   echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769   cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h.  */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h.  */
10775 #include <sys/types.h>
10776 #include <sys/wait.h>
10777 #ifndef WEXITSTATUS
10778 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10779 #endif
10780 #ifndef WIFEXITED
10781 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10782 #endif
10783
10784 int
10785 main ()
10786 {
10787   int s;
10788   wait (&s);
10789   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10790   ;
10791   return 0;
10792 }
10793 _ACEOF
10794 rm -f conftest.$ac_objext
10795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10796   (eval $ac_compile) 2>conftest.er1
10797   ac_status=$?
10798   grep -v '^ *+' conftest.er1 >conftest.err
10799   rm -f conftest.er1
10800   cat conftest.err >&5
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); } &&
10803          { ac_try='test -z "$ac_c_werror_flag"
10804                          || test ! -s conftest.err'
10805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806   (eval $ac_try) 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); }; } &&
10810          { ac_try='test -s conftest.$ac_objext'
10811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812   (eval $ac_try) 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); }; }; then
10816   ac_cv_header_sys_wait_h=yes
10817 else
10818   echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10820
10821 ac_cv_header_sys_wait_h=no
10822 fi
10823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10824 fi
10825 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10826 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10827 if test $ac_cv_header_sys_wait_h = yes; then
10828
10829 cat >>confdefs.h <<\_ACEOF
10830 #define HAVE_SYS_WAIT_H 1
10831 _ACEOF
10832
10833 fi
10834
10835 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10836 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10837 if test "${ac_cv_header_time+set}" = set; then
10838   echo $ECHO_N "(cached) $ECHO_C" >&6
10839 else
10840   cat >conftest.$ac_ext <<_ACEOF
10841 /* confdefs.h.  */
10842 _ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h.  */
10846 #include <sys/types.h>
10847 #include <sys/time.h>
10848 #include <time.h>
10849
10850 int
10851 main ()
10852 {
10853 if ((struct tm *) 0)
10854 return 0;
10855   ;
10856   return 0;
10857 }
10858 _ACEOF
10859 rm -f conftest.$ac_objext
10860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10861   (eval $ac_compile) 2>conftest.er1
10862   ac_status=$?
10863   grep -v '^ *+' conftest.er1 >conftest.err
10864   rm -f conftest.er1
10865   cat conftest.err >&5
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); } &&
10868          { ac_try='test -z "$ac_c_werror_flag"
10869                          || test ! -s conftest.err'
10870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871   (eval $ac_try) 2>&5
10872   ac_status=$?
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); }; } &&
10875          { ac_try='test -s conftest.$ac_objext'
10876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877   (eval $ac_try) 2>&5
10878   ac_status=$?
10879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880   (exit $ac_status); }; }; then
10881   ac_cv_header_time=yes
10882 else
10883   echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10885
10886 ac_cv_header_time=no
10887 fi
10888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10889 fi
10890 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10891 echo "${ECHO_T}$ac_cv_header_time" >&6
10892 if test $ac_cv_header_time = yes; then
10893
10894 cat >>confdefs.h <<\_ACEOF
10895 #define TIME_WITH_SYS_TIME 1
10896 _ACEOF
10897
10898 fi
10899
10900
10901 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10902 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10903 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10904   echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906   cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h.  */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h.  */
10912 $ac_includes_default
10913 int
10914 main ()
10915 {
10916 static struct stat ac_aggr;
10917 if (ac_aggr.st_blksize)
10918 return 0;
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 rm -f conftest.$ac_objext
10924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10925   (eval $ac_compile) 2>conftest.er1
10926   ac_status=$?
10927   grep -v '^ *+' conftest.er1 >conftest.err
10928   rm -f conftest.er1
10929   cat conftest.err >&5
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); } &&
10932          { ac_try='test -z "$ac_c_werror_flag"
10933                          || test ! -s conftest.err'
10934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935   (eval $ac_try) 2>&5
10936   ac_status=$?
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); }; } &&
10939          { ac_try='test -s conftest.$ac_objext'
10940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941   (eval $ac_try) 2>&5
10942   ac_status=$?
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); }; }; then
10945   ac_cv_member_struct_stat_st_blksize=yes
10946 else
10947   echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10949
10950 cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h.  */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h.  */
10956 $ac_includes_default
10957 int
10958 main ()
10959 {
10960 static struct stat ac_aggr;
10961 if (sizeof ac_aggr.st_blksize)
10962 return 0;
10963   ;
10964   return 0;
10965 }
10966 _ACEOF
10967 rm -f conftest.$ac_objext
10968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10969   (eval $ac_compile) 2>conftest.er1
10970   ac_status=$?
10971   grep -v '^ *+' conftest.er1 >conftest.err
10972   rm -f conftest.er1
10973   cat conftest.err >&5
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); } &&
10976          { ac_try='test -z "$ac_c_werror_flag"
10977                          || test ! -s conftest.err'
10978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979   (eval $ac_try) 2>&5
10980   ac_status=$?
10981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982   (exit $ac_status); }; } &&
10983          { ac_try='test -s conftest.$ac_objext'
10984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985   (eval $ac_try) 2>&5
10986   ac_status=$?
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); }; }; then
10989   ac_cv_member_struct_stat_st_blksize=yes
10990 else
10991   echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10993
10994 ac_cv_member_struct_stat_st_blksize=no
10995 fi
10996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10997 fi
10998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10999 fi
11000 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11001 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11002 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11003
11004 cat >>confdefs.h <<_ACEOF
11005 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11006 _ACEOF
11007
11008
11009 cat >>confdefs.h <<\_ACEOF
11010 #define HAVE_ST_BLKSIZE 1
11011 _ACEOF
11012
11013 fi
11014
11015
11016 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11017 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11018 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11019   echo $ECHO_N "(cached) $ECHO_C" >&6
11020 else
11021   cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h.  */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h.  */
11027 $ac_includes_default
11028 int
11029 main ()
11030 {
11031 static struct stat ac_aggr;
11032 if (ac_aggr.st_blocks)
11033 return 0;
11034   ;
11035   return 0;
11036 }
11037 _ACEOF
11038 rm -f conftest.$ac_objext
11039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11040   (eval $ac_compile) 2>conftest.er1
11041   ac_status=$?
11042   grep -v '^ *+' conftest.er1 >conftest.err
11043   rm -f conftest.er1
11044   cat conftest.err >&5
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); } &&
11047          { ac_try='test -z "$ac_c_werror_flag"
11048                          || test ! -s conftest.err'
11049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050   (eval $ac_try) 2>&5
11051   ac_status=$?
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); }; } &&
11054          { ac_try='test -s conftest.$ac_objext'
11055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056   (eval $ac_try) 2>&5
11057   ac_status=$?
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); }; }; then
11060   ac_cv_member_struct_stat_st_blocks=yes
11061 else
11062   echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11064
11065 cat >conftest.$ac_ext <<_ACEOF
11066 /* confdefs.h.  */
11067 _ACEOF
11068 cat confdefs.h >>conftest.$ac_ext
11069 cat >>conftest.$ac_ext <<_ACEOF
11070 /* end confdefs.h.  */
11071 $ac_includes_default
11072 int
11073 main ()
11074 {
11075 static struct stat ac_aggr;
11076 if (sizeof ac_aggr.st_blocks)
11077 return 0;
11078   ;
11079   return 0;
11080 }
11081 _ACEOF
11082 rm -f conftest.$ac_objext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11084   (eval $ac_compile) 2>conftest.er1
11085   ac_status=$?
11086   grep -v '^ *+' conftest.er1 >conftest.err
11087   rm -f conftest.er1
11088   cat conftest.err >&5
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); } &&
11091          { ac_try='test -z "$ac_c_werror_flag"
11092                          || test ! -s conftest.err'
11093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094   (eval $ac_try) 2>&5
11095   ac_status=$?
11096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097   (exit $ac_status); }; } &&
11098          { ac_try='test -s conftest.$ac_objext'
11099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100   (eval $ac_try) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; }; then
11104   ac_cv_member_struct_stat_st_blocks=yes
11105 else
11106   echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.$ac_ext >&5
11108
11109 ac_cv_member_struct_stat_st_blocks=no
11110 fi
11111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11112 fi
11113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11114 fi
11115 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11116 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11117 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11118
11119 cat >>confdefs.h <<_ACEOF
11120 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11121 _ACEOF
11122
11123
11124 cat >>confdefs.h <<\_ACEOF
11125 #define HAVE_ST_BLOCKS 1
11126 _ACEOF
11127
11128 else
11129   case $LIBOBJS in
11130     "fileblocks.$ac_objext"   | \
11131   *" fileblocks.$ac_objext"   | \
11132     "fileblocks.$ac_objext "* | \
11133   *" fileblocks.$ac_objext "* ) ;;
11134   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
11135 esac
11136
11137 fi
11138
11139
11140 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11141 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11142 if test "${ac_cv_struct_tm+set}" = set; then
11143   echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145   cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h.  */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h.  */
11151 #include <sys/types.h>
11152 #include <time.h>
11153
11154 int
11155 main ()
11156 {
11157 struct tm *tp; tp->tm_sec;
11158   ;
11159   return 0;
11160 }
11161 _ACEOF
11162 rm -f conftest.$ac_objext
11163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11164   (eval $ac_compile) 2>conftest.er1
11165   ac_status=$?
11166   grep -v '^ *+' conftest.er1 >conftest.err
11167   rm -f conftest.er1
11168   cat conftest.err >&5
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); } &&
11171          { ac_try='test -z "$ac_c_werror_flag"
11172                          || test ! -s conftest.err'
11173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174   (eval $ac_try) 2>&5
11175   ac_status=$?
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); }; } &&
11178          { ac_try='test -s conftest.$ac_objext'
11179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180   (eval $ac_try) 2>&5
11181   ac_status=$?
11182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183   (exit $ac_status); }; }; then
11184   ac_cv_struct_tm=time.h
11185 else
11186   echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11188
11189 ac_cv_struct_tm=sys/time.h
11190 fi
11191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11192 fi
11193 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11194 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11195 if test $ac_cv_struct_tm = sys/time.h; then
11196
11197 cat >>confdefs.h <<\_ACEOF
11198 #define TM_IN_SYS_TIME 1
11199 _ACEOF
11200
11201 fi
11202
11203 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11204 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11205 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11206   echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
11208   cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h.  */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h.  */
11214 #include <sys/types.h>
11215 #include <$ac_cv_struct_tm>
11216
11217
11218 int
11219 main ()
11220 {
11221 static struct tm ac_aggr;
11222 if (ac_aggr.tm_zone)
11223 return 0;
11224   ;
11225   return 0;
11226 }
11227 _ACEOF
11228 rm -f conftest.$ac_objext
11229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11230   (eval $ac_compile) 2>conftest.er1
11231   ac_status=$?
11232   grep -v '^ *+' conftest.er1 >conftest.err
11233   rm -f conftest.er1
11234   cat conftest.err >&5
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); } &&
11237          { ac_try='test -z "$ac_c_werror_flag"
11238                          || test ! -s conftest.err'
11239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240   (eval $ac_try) 2>&5
11241   ac_status=$?
11242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243   (exit $ac_status); }; } &&
11244          { ac_try='test -s conftest.$ac_objext'
11245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11246   (eval $ac_try) 2>&5
11247   ac_status=$?
11248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249   (exit $ac_status); }; }; then
11250   ac_cv_member_struct_tm_tm_zone=yes
11251 else
11252   echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11254
11255 cat >conftest.$ac_ext <<_ACEOF
11256 /* confdefs.h.  */
11257 _ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h.  */
11261 #include <sys/types.h>
11262 #include <$ac_cv_struct_tm>
11263
11264
11265 int
11266 main ()
11267 {
11268 static struct tm ac_aggr;
11269 if (sizeof ac_aggr.tm_zone)
11270 return 0;
11271   ;
11272   return 0;
11273 }
11274 _ACEOF
11275 rm -f conftest.$ac_objext
11276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11277   (eval $ac_compile) 2>conftest.er1
11278   ac_status=$?
11279   grep -v '^ *+' conftest.er1 >conftest.err
11280   rm -f conftest.er1
11281   cat conftest.err >&5
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); } &&
11284          { ac_try='test -z "$ac_c_werror_flag"
11285                          || test ! -s conftest.err'
11286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11287   (eval $ac_try) 2>&5
11288   ac_status=$?
11289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290   (exit $ac_status); }; } &&
11291          { ac_try='test -s conftest.$ac_objext'
11292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293   (eval $ac_try) 2>&5
11294   ac_status=$?
11295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296   (exit $ac_status); }; }; then
11297   ac_cv_member_struct_tm_tm_zone=yes
11298 else
11299   echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11301
11302 ac_cv_member_struct_tm_tm_zone=no
11303 fi
11304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11305 fi
11306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11307 fi
11308 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11309 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11310 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11311
11312 cat >>confdefs.h <<_ACEOF
11313 #define HAVE_STRUCT_TM_TM_ZONE 1
11314 _ACEOF
11315
11316
11317 fi
11318
11319 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11320
11321 cat >>confdefs.h <<\_ACEOF
11322 #define HAVE_TM_ZONE 1
11323 _ACEOF
11324
11325 else
11326   echo "$as_me:$LINENO: checking for tzname" >&5
11327 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11328 if test "${ac_cv_var_tzname+set}" = set; then
11329   echo $ECHO_N "(cached) $ECHO_C" >&6
11330 else
11331   cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h.  */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h.  */
11337 #include <time.h>
11338 #ifndef tzname /* For SGI.  */
11339 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11340 #endif
11341
11342 int
11343 main ()
11344 {
11345 atoi(*tzname);
11346   ;
11347   return 0;
11348 }
11349 _ACEOF
11350 rm -f conftest.$ac_objext conftest$ac_exeext
11351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11352   (eval $ac_link) 2>conftest.er1
11353   ac_status=$?
11354   grep -v '^ *+' conftest.er1 >conftest.err
11355   rm -f conftest.er1
11356   cat conftest.err >&5
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); } &&
11359          { ac_try='test -z "$ac_c_werror_flag"
11360                          || test ! -s conftest.err'
11361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11362   (eval $ac_try) 2>&5
11363   ac_status=$?
11364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365   (exit $ac_status); }; } &&
11366          { ac_try='test -s conftest$ac_exeext'
11367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368   (eval $ac_try) 2>&5
11369   ac_status=$?
11370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371   (exit $ac_status); }; }; then
11372   ac_cv_var_tzname=yes
11373 else
11374   echo "$as_me: failed program was:" >&5
11375 sed 's/^/| /' conftest.$ac_ext >&5
11376
11377 ac_cv_var_tzname=no
11378 fi
11379 rm -f conftest.err conftest.$ac_objext \
11380       conftest$ac_exeext conftest.$ac_ext
11381 fi
11382 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11383 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11384   if test $ac_cv_var_tzname = yes; then
11385
11386 cat >>confdefs.h <<\_ACEOF
11387 #define HAVE_TZNAME 1
11388 _ACEOF
11389
11390   fi
11391 fi
11392
11393
11394 echo "$as_me:$LINENO: checking for utime.h" >&5
11395 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11396 if test "${ba_cv_header_utime_h+set}" = set; then
11397   echo $ECHO_N "(cached) $ECHO_C" >&6
11398 else
11399   cat >conftest.$ac_ext <<_ACEOF
11400 /* confdefs.h.  */
11401 _ACEOF
11402 cat confdefs.h >>conftest.$ac_ext
11403 cat >>conftest.$ac_ext <<_ACEOF
11404 /* end confdefs.h.  */
11405
11406 #include <sys/types.h>
11407 #include <utime.h>
11408 int
11409 main ()
11410 {
11411 struct utimbuf foo
11412   ;
11413   return 0;
11414 }
11415 _ACEOF
11416 rm -f conftest.$ac_objext
11417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11418   (eval $ac_compile) 2>conftest.er1
11419   ac_status=$?
11420   grep -v '^ *+' conftest.er1 >conftest.err
11421   rm -f conftest.er1
11422   cat conftest.err >&5
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } &&
11425          { ac_try='test -z "$ac_c_werror_flag"
11426                          || test ! -s conftest.err'
11427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11428   (eval $ac_try) 2>&5
11429   ac_status=$?
11430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); }; } &&
11432          { ac_try='test -s conftest.$ac_objext'
11433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434   (eval $ac_try) 2>&5
11435   ac_status=$?
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); }; }; then
11438   ba_cv_header_utime_h=yes
11439 else
11440   echo "$as_me: failed program was:" >&5
11441 sed 's/^/| /' conftest.$ac_ext >&5
11442
11443 ba_cv_header_utime_h=no
11444 fi
11445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11446 fi
11447 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11448 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11449 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11450 #define HAVE_UTIME_H 1
11451 _ACEOF
11452
11453
11454 echo "$as_me:$LINENO: checking for socklen_t" >&5
11455 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11456 if test "${ba_cv_header_socklen_t+set}" = set; then
11457   echo $ECHO_N "(cached) $ECHO_C" >&6
11458 else
11459   cat >conftest.$ac_ext <<_ACEOF
11460 /* confdefs.h.  */
11461 _ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h.  */
11465
11466 #include <sys/types.h>
11467 #include <sys/socket.h>
11468 int
11469 main ()
11470 {
11471 socklen_t x
11472   ;
11473   return 0;
11474 }
11475 _ACEOF
11476 rm -f conftest.$ac_objext
11477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11478   (eval $ac_compile) 2>conftest.er1
11479   ac_status=$?
11480   grep -v '^ *+' conftest.er1 >conftest.err
11481   rm -f conftest.er1
11482   cat conftest.err >&5
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); } &&
11485          { ac_try='test -z "$ac_c_werror_flag"
11486                          || test ! -s conftest.err'
11487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488   (eval $ac_try) 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); }; } &&
11492          { ac_try='test -s conftest.$ac_objext'
11493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11494   (eval $ac_try) 2>&5
11495   ac_status=$?
11496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); }; }; then
11498   ba_cv_header_socklen_t=yes
11499 else
11500   echo "$as_me: failed program was:" >&5
11501 sed 's/^/| /' conftest.$ac_ext >&5
11502
11503 ba_cv_header_socklen_t=no
11504 fi
11505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11506 fi
11507 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11508 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11509 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11510 #define HAVE_SOCKLEN_T 1
11511 _ACEOF
11512
11513
11514 echo "$as_me:$LINENO: checking for bigendian" >&5
11515 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11516 if test "${ba_cv_bigendian+set}" = set; then
11517   echo $ECHO_N "(cached) $ECHO_C" >&6
11518 else
11519   if test "$cross_compiling" = yes; then
11520   ba_cv_bigendian=no
11521 else
11522   cat >conftest.$ac_ext <<_ACEOF
11523 /* confdefs.h.  */
11524 _ACEOF
11525 cat confdefs.h >>conftest.$ac_ext
11526 cat >>conftest.$ac_ext <<_ACEOF
11527 /* end confdefs.h.  */
11528 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11529 _ACEOF
11530 rm -f conftest$ac_exeext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11532   (eval $ac_link) 2>&5
11533   ac_status=$?
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537   (eval $ac_try) 2>&5
11538   ac_status=$?
11539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540   (exit $ac_status); }; }; then
11541   ba_cv_bigendian=yes
11542 else
11543   echo "$as_me: program exited with status $ac_status" >&5
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11546
11547 ( exit $ac_status )
11548 ba_cv_bigendian=no
11549 fi
11550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11551 fi
11552 fi
11553 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11554 echo "${ECHO_T}$ba_cv_bigendian" >&6
11555 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11556 #define HAVE_BIGENDIAN 1
11557 _ACEOF
11558
11559
11560
11561 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11562 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11563 if test "${ac_cv_c_const+set}" = set; then
11564   echo $ECHO_N "(cached) $ECHO_C" >&6
11565 else
11566   cat >conftest.$ac_ext <<_ACEOF
11567 /* confdefs.h.  */
11568 _ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h.  */
11572
11573 int
11574 main ()
11575 {
11576 /* FIXME: Include the comments suggested by Paul. */
11577 #ifndef __cplusplus
11578   /* Ultrix mips cc rejects this.  */
11579   typedef int charset[2];
11580   const charset x;
11581   /* SunOS 4.1.1 cc rejects this.  */
11582   char const *const *ccp;
11583   char **p;
11584   /* NEC SVR4.0.2 mips cc rejects this.  */
11585   struct point {int x, y;};
11586   static struct point const zero = {0,0};
11587   /* AIX XL C 1.02.0.0 rejects this.
11588      It does not let you subtract one const X* pointer from another in
11589      an arm of an if-expression whose if-part is not a constant
11590      expression */
11591   const char *g = "string";
11592   ccp = &g + (g ? g-g : 0);
11593   /* HPUX 7.0 cc rejects these. */
11594   ++ccp;
11595   p = (char**) ccp;
11596   ccp = (char const *const *) p;
11597   { /* SCO 3.2v4 cc rejects this.  */
11598     char *t;
11599     char const *s = 0 ? (char *) 0 : (char const *) 0;
11600
11601     *t++ = 0;
11602   }
11603   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11604     int x[] = {25, 17};
11605     const int *foo = &x[0];
11606     ++foo;
11607   }
11608   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11609     typedef const int *iptr;
11610     iptr p = 0;
11611     ++p;
11612   }
11613   { /* AIX XL C 1.02.0.0 rejects this saying
11614        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11615     struct s { int j; const int *ap[3]; };
11616     struct s *b; b->j = 5;
11617   }
11618   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11619     const int foo = 10;
11620   }
11621 #endif
11622
11623   ;
11624   return 0;
11625 }
11626 _ACEOF
11627 rm -f conftest.$ac_objext
11628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11629   (eval $ac_compile) 2>conftest.er1
11630   ac_status=$?
11631   grep -v '^ *+' conftest.er1 >conftest.err
11632   rm -f conftest.er1
11633   cat conftest.err >&5
11634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635   (exit $ac_status); } &&
11636          { ac_try='test -z "$ac_c_werror_flag"
11637                          || test ! -s conftest.err'
11638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639   (eval $ac_try) 2>&5
11640   ac_status=$?
11641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); }; } &&
11643          { ac_try='test -s conftest.$ac_objext'
11644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11645   (eval $ac_try) 2>&5
11646   ac_status=$?
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); }; }; then
11649   ac_cv_c_const=yes
11650 else
11651   echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11653
11654 ac_cv_c_const=no
11655 fi
11656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11657 fi
11658 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11659 echo "${ECHO_T}$ac_cv_c_const" >&6
11660 if test $ac_cv_c_const = no; then
11661
11662 cat >>confdefs.h <<\_ACEOF
11663 #define const
11664 _ACEOF
11665
11666 fi
11667
11668
11669
11670 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11671 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11672 fstype=no
11673 # The order of these tests is important.
11674 cat >conftest.$ac_ext <<_ACEOF
11675 /* confdefs.h.  */
11676 _ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h.  */
11680 #include <sys/statvfs.h>
11681 #include <sys/fstyp.h>
11682 _ACEOF
11683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11684   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11685   ac_status=$?
11686   grep -v '^ *+' conftest.er1 >conftest.err
11687   rm -f conftest.er1
11688   cat conftest.err >&5
11689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690   (exit $ac_status); } >/dev/null; then
11691   if test -s conftest.err; then
11692     ac_cpp_err=$ac_c_preproc_warn_flag
11693     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11694   else
11695     ac_cpp_err=
11696   fi
11697 else
11698   ac_cpp_err=yes
11699 fi
11700 if test -z "$ac_cpp_err"; then
11701   cat >>confdefs.h <<\_ACEOF
11702 #define FSTYPE_STATVFS 1
11703 _ACEOF
11704  fstype=SVR4
11705 else
11706   echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11708
11709
11710 fi
11711 rm -f conftest.err conftest.$ac_ext
11712 if test $fstype = no; then
11713 cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h.  */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h.  */
11719 #include <sys/statfs.h>
11720 #include <sys/fstyp.h>
11721 _ACEOF
11722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11723   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11724   ac_status=$?
11725   grep -v '^ *+' conftest.er1 >conftest.err
11726   rm -f conftest.er1
11727   cat conftest.err >&5
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); } >/dev/null; then
11730   if test -s conftest.err; then
11731     ac_cpp_err=$ac_c_preproc_warn_flag
11732     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11733   else
11734     ac_cpp_err=
11735   fi
11736 else
11737   ac_cpp_err=yes
11738 fi
11739 if test -z "$ac_cpp_err"; then
11740   cat >>confdefs.h <<\_ACEOF
11741 #define FSTYPE_USG_STATFS 1
11742 _ACEOF
11743  fstype=SVR3
11744 else
11745   echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11747
11748
11749 fi
11750 rm -f conftest.err conftest.$ac_ext
11751 fi
11752 if test $fstype = no; then
11753 cat >conftest.$ac_ext <<_ACEOF
11754 /* confdefs.h.  */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h.  */
11759 #include <sys/statfs.h>
11760 #include <sys/vmount.h>
11761 _ACEOF
11762 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11763   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11764   ac_status=$?
11765   grep -v '^ *+' conftest.er1 >conftest.err
11766   rm -f conftest.er1
11767   cat conftest.err >&5
11768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769   (exit $ac_status); } >/dev/null; then
11770   if test -s conftest.err; then
11771     ac_cpp_err=$ac_c_preproc_warn_flag
11772     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11773   else
11774     ac_cpp_err=
11775   fi
11776 else
11777   ac_cpp_err=yes
11778 fi
11779 if test -z "$ac_cpp_err"; then
11780   cat >>confdefs.h <<\_ACEOF
11781 #define FSTYPE_AIX_STATFS 1
11782 _ACEOF
11783  fstype=AIX
11784 else
11785   echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11787
11788
11789 fi
11790 rm -f conftest.err conftest.$ac_ext
11791 fi
11792 if test $fstype = no; then
11793 cat >conftest.$ac_ext <<_ACEOF
11794 /* confdefs.h.  */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h.  */
11799 #include <mntent.h>
11800 _ACEOF
11801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11802   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11803   ac_status=$?
11804   grep -v '^ *+' conftest.er1 >conftest.err
11805   rm -f conftest.er1
11806   cat conftest.err >&5
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); } >/dev/null; then
11809   if test -s conftest.err; then
11810     ac_cpp_err=$ac_c_preproc_warn_flag
11811     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11812   else
11813     ac_cpp_err=
11814   fi
11815 else
11816   ac_cpp_err=yes
11817 fi
11818 if test -z "$ac_cpp_err"; then
11819   cat >>confdefs.h <<\_ACEOF
11820 #define FSTYPE_MNTENT 1
11821 _ACEOF
11822  fstype=4.3BSD
11823 else
11824   echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827
11828 fi
11829 rm -f conftest.err conftest.$ac_ext
11830 fi
11831 if test $fstype = no; then
11832 cat >conftest.$ac_ext <<_ACEOF
11833 /* confdefs.h.  */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h.  */
11838 #include <sys/mount.h>
11839
11840 _ACEOF
11841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11842   $EGREP "f_type;" >/dev/null 2>&1; then
11843   cat >>confdefs.h <<\_ACEOF
11844 #define FSTYPE_STATFS 1
11845 _ACEOF
11846  fstype=4.4BSD/OSF1
11847 fi
11848 rm -f conftest*
11849
11850 fi
11851 if test $fstype = no; then
11852 cat >conftest.$ac_ext <<_ACEOF
11853 /* confdefs.h.  */
11854 _ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h.  */
11858 #include <sys/mount.h>
11859 #include <sys/fs_types.h>
11860 _ACEOF
11861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11862   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11863   ac_status=$?
11864   grep -v '^ *+' conftest.er1 >conftest.err
11865   rm -f conftest.er1
11866   cat conftest.err >&5
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); } >/dev/null; then
11869   if test -s conftest.err; then
11870     ac_cpp_err=$ac_c_preproc_warn_flag
11871     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11872   else
11873     ac_cpp_err=
11874   fi
11875 else
11876   ac_cpp_err=yes
11877 fi
11878 if test -z "$ac_cpp_err"; then
11879   cat >>confdefs.h <<\_ACEOF
11880 #define FSTYPE_GETMNT 1
11881 _ACEOF
11882  fstype=Ultrix
11883 else
11884   echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11886
11887
11888 fi
11889 rm -f conftest.err conftest.$ac_ext
11890 fi
11891 echo "$as_me:$LINENO: result: $fstype" >&5
11892 echo "${ECHO_T}$fstype" >&6
11893
11894 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11895 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11896 if test "${ac_cv_type_signal+set}" = set; then
11897   echo $ECHO_N "(cached) $ECHO_C" >&6
11898 else
11899   cat >conftest.$ac_ext <<_ACEOF
11900 /* confdefs.h.  */
11901 _ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h.  */
11905 #include <sys/types.h>
11906 #include <signal.h>
11907 #ifdef signal
11908 # undef signal
11909 #endif
11910 #ifdef __cplusplus
11911 extern "C" void (*signal (int, void (*)(int)))(int);
11912 #else
11913 void (*signal ()) ();
11914 #endif
11915
11916 int
11917 main ()
11918 {
11919 int i;
11920   ;
11921   return 0;
11922 }
11923 _ACEOF
11924 rm -f conftest.$ac_objext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926   (eval $ac_compile) 2>conftest.er1
11927   ac_status=$?
11928   grep -v '^ *+' conftest.er1 >conftest.err
11929   rm -f conftest.er1
11930   cat conftest.err >&5
11931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932   (exit $ac_status); } &&
11933          { ac_try='test -z "$ac_c_werror_flag"
11934                          || test ! -s conftest.err'
11935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936   (eval $ac_try) 2>&5
11937   ac_status=$?
11938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939   (exit $ac_status); }; } &&
11940          { ac_try='test -s conftest.$ac_objext'
11941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942   (eval $ac_try) 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); }; }; then
11946   ac_cv_type_signal=void
11947 else
11948   echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11950
11951 ac_cv_type_signal=int
11952 fi
11953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11954 fi
11955 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11956 echo "${ECHO_T}$ac_cv_type_signal" >&6
11957
11958 cat >>confdefs.h <<_ACEOF
11959 #define RETSIGTYPE $ac_cv_type_signal
11960 _ACEOF
11961
11962
11963
11964 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11965 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11966 if test "${bash_cv_signal_vintage+set}" = set; then
11967   echo $ECHO_N "(cached) $ECHO_C" >&6
11968 else
11969
11970   cat >conftest.$ac_ext <<_ACEOF
11971 /* confdefs.h.  */
11972 _ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h.  */
11976 #include <signal.h>
11977 int
11978 main ()
11979 {
11980
11981     sigset_t ss;
11982     struct sigaction sa;
11983     sigemptyset(&ss); sigsuspend(&ss);
11984     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11985     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11986
11987   ;
11988   return 0;
11989 }
11990 _ACEOF
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11993   (eval $ac_link) 2>conftest.er1
11994   ac_status=$?
11995   grep -v '^ *+' conftest.er1 >conftest.err
11996   rm -f conftest.er1
11997   cat conftest.err >&5
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); } &&
12000          { ac_try='test -z "$ac_c_werror_flag"
12001                          || test ! -s conftest.err'
12002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003   (eval $ac_try) 2>&5
12004   ac_status=$?
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); }; } &&
12007          { ac_try='test -s conftest$ac_exeext'
12008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009   (eval $ac_try) 2>&5
12010   ac_status=$?
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); }; }; then
12013   bash_cv_signal_vintage=posix
12014 else
12015   echo "$as_me: failed program was:" >&5
12016 sed 's/^/| /' conftest.$ac_ext >&5
12017
12018
12019     cat >conftest.$ac_ext <<_ACEOF
12020 /* confdefs.h.  */
12021 _ACEOF
12022 cat confdefs.h >>conftest.$ac_ext
12023 cat >>conftest.$ac_ext <<_ACEOF
12024 /* end confdefs.h.  */
12025 #include <signal.h>
12026 int
12027 main ()
12028 {
12029
12030         int mask = sigmask(SIGINT);
12031         sigsetmask(mask); sigblock(mask); sigpause(mask);
12032
12033   ;
12034   return 0;
12035 }
12036 _ACEOF
12037 rm -f conftest.$ac_objext conftest$ac_exeext
12038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12039   (eval $ac_link) 2>conftest.er1
12040   ac_status=$?
12041   grep -v '^ *+' conftest.er1 >conftest.err
12042   rm -f conftest.er1
12043   cat conftest.err >&5
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); } &&
12046          { ac_try='test -z "$ac_c_werror_flag"
12047                          || test ! -s conftest.err'
12048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049   (eval $ac_try) 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; } &&
12053          { ac_try='test -s conftest$ac_exeext'
12054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055   (eval $ac_try) 2>&5
12056   ac_status=$?
12057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058   (exit $ac_status); }; }; then
12059   bash_cv_signal_vintage=4.2bsd
12060 else
12061   echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12063
12064
12065       cat >conftest.$ac_ext <<_ACEOF
12066 /* confdefs.h.  */
12067 _ACEOF
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h.  */
12071
12072         #include <signal.h>
12073         RETSIGTYPE foo() { }
12074 int
12075 main ()
12076 {
12077
12078                 int mask = sigmask(SIGINT);
12079                 sigset(SIGINT, foo); sigrelse(SIGINT);
12080                 sighold(SIGINT); sigpause(SIGINT);
12081
12082   ;
12083   return 0;
12084 }
12085 _ACEOF
12086 rm -f conftest.$ac_objext conftest$ac_exeext
12087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12088   (eval $ac_link) 2>conftest.er1
12089   ac_status=$?
12090   grep -v '^ *+' conftest.er1 >conftest.err
12091   rm -f conftest.er1
12092   cat conftest.err >&5
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } &&
12095          { ac_try='test -z "$ac_c_werror_flag"
12096                          || test ! -s conftest.err'
12097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098   (eval $ac_try) 2>&5
12099   ac_status=$?
12100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101   (exit $ac_status); }; } &&
12102          { ac_try='test -s conftest$ac_exeext'
12103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104   (eval $ac_try) 2>&5
12105   ac_status=$?
12106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107   (exit $ac_status); }; }; then
12108   bash_cv_signal_vintage=svr3
12109 else
12110   echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12112
12113 bash_cv_signal_vintage=v7
12114
12115 fi
12116 rm -f conftest.err conftest.$ac_objext \
12117       conftest$ac_exeext conftest.$ac_ext
12118
12119 fi
12120 rm -f conftest.err conftest.$ac_objext \
12121       conftest$ac_exeext conftest.$ac_ext
12122
12123 fi
12124 rm -f conftest.err conftest.$ac_objext \
12125       conftest$ac_exeext conftest.$ac_ext
12126
12127 fi
12128
12129 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12130 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12131 if test "$bash_cv_signal_vintage" = posix; then
12132 cat >>confdefs.h <<\_ACEOF
12133 #define HAVE_POSIX_SIGNALS 1
12134 _ACEOF
12135
12136 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12137 cat >>confdefs.h <<\_ACEOF
12138 #define HAVE_BSD_SIGNALS 1
12139 _ACEOF
12140
12141 elif test "$bash_cv_signal_vintage" = svr3; then
12142 cat >>confdefs.h <<\_ACEOF
12143 #define HAVE_USG_SIGHOLD 1
12144 _ACEOF
12145
12146 fi
12147
12148 echo "$as_me:$LINENO: checking for mode_t" >&5
12149 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12150 if test "${ac_cv_type_mode_t+set}" = set; then
12151   echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153   cat >conftest.$ac_ext <<_ACEOF
12154 /* confdefs.h.  */
12155 _ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h.  */
12159 $ac_includes_default
12160 int
12161 main ()
12162 {
12163 if ((mode_t *) 0)
12164   return 0;
12165 if (sizeof (mode_t))
12166   return 0;
12167   ;
12168   return 0;
12169 }
12170 _ACEOF
12171 rm -f conftest.$ac_objext
12172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12173   (eval $ac_compile) 2>conftest.er1
12174   ac_status=$?
12175   grep -v '^ *+' conftest.er1 >conftest.err
12176   rm -f conftest.er1
12177   cat conftest.err >&5
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); } &&
12180          { ac_try='test -z "$ac_c_werror_flag"
12181                          || test ! -s conftest.err'
12182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183   (eval $ac_try) 2>&5
12184   ac_status=$?
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); }; } &&
12187          { ac_try='test -s conftest.$ac_objext'
12188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189   (eval $ac_try) 2>&5
12190   ac_status=$?
12191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192   (exit $ac_status); }; }; then
12193   ac_cv_type_mode_t=yes
12194 else
12195   echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198 ac_cv_type_mode_t=no
12199 fi
12200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12201 fi
12202 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12203 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12204 if test $ac_cv_type_mode_t = yes; then
12205   :
12206 else
12207
12208 cat >>confdefs.h <<_ACEOF
12209 #define mode_t int
12210 _ACEOF
12211
12212 fi
12213
12214 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12215 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12216 if test "${ac_cv_type_uid_t+set}" = set; then
12217   echo $ECHO_N "(cached) $ECHO_C" >&6
12218 else
12219   cat >conftest.$ac_ext <<_ACEOF
12220 /* confdefs.h.  */
12221 _ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h.  */
12225 #include <sys/types.h>
12226
12227 _ACEOF
12228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12229   $EGREP "uid_t" >/dev/null 2>&1; then
12230   ac_cv_type_uid_t=yes
12231 else
12232   ac_cv_type_uid_t=no
12233 fi
12234 rm -f conftest*
12235
12236 fi
12237 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12238 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12239 if test $ac_cv_type_uid_t = no; then
12240
12241 cat >>confdefs.h <<\_ACEOF
12242 #define uid_t int
12243 _ACEOF
12244
12245
12246 cat >>confdefs.h <<\_ACEOF
12247 #define gid_t int
12248 _ACEOF
12249
12250 fi
12251
12252 echo "$as_me:$LINENO: checking for size_t" >&5
12253 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12254 if test "${ac_cv_type_size_t+set}" = set; then
12255   echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257   cat >conftest.$ac_ext <<_ACEOF
12258 /* confdefs.h.  */
12259 _ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h.  */
12263 $ac_includes_default
12264 int
12265 main ()
12266 {
12267 if ((size_t *) 0)
12268   return 0;
12269 if (sizeof (size_t))
12270   return 0;
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 rm -f conftest.$ac_objext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12277   (eval $ac_compile) 2>conftest.er1
12278   ac_status=$?
12279   grep -v '^ *+' conftest.er1 >conftest.err
12280   rm -f conftest.er1
12281   cat conftest.err >&5
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); } &&
12284          { ac_try='test -z "$ac_c_werror_flag"
12285                          || test ! -s conftest.err'
12286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287   (eval $ac_try) 2>&5
12288   ac_status=$?
12289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290   (exit $ac_status); }; } &&
12291          { ac_try='test -s conftest.$ac_objext'
12292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293   (eval $ac_try) 2>&5
12294   ac_status=$?
12295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296   (exit $ac_status); }; }; then
12297   ac_cv_type_size_t=yes
12298 else
12299   echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12301
12302 ac_cv_type_size_t=no
12303 fi
12304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12305 fi
12306 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12307 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12308 if test $ac_cv_type_size_t = yes; then
12309   :
12310 else
12311
12312 cat >>confdefs.h <<_ACEOF
12313 #define size_t unsigned
12314 _ACEOF
12315
12316 fi
12317
12318 echo "$as_me:$LINENO: checking for pid_t" >&5
12319 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12320 if test "${ac_cv_type_pid_t+set}" = set; then
12321   echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323   cat >conftest.$ac_ext <<_ACEOF
12324 /* confdefs.h.  */
12325 _ACEOF
12326 cat confdefs.h >>conftest.$ac_ext
12327 cat >>conftest.$ac_ext <<_ACEOF
12328 /* end confdefs.h.  */
12329 $ac_includes_default
12330 int
12331 main ()
12332 {
12333 if ((pid_t *) 0)
12334   return 0;
12335 if (sizeof (pid_t))
12336   return 0;
12337   ;
12338   return 0;
12339 }
12340 _ACEOF
12341 rm -f conftest.$ac_objext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12343   (eval $ac_compile) 2>conftest.er1
12344   ac_status=$?
12345   grep -v '^ *+' conftest.er1 >conftest.err
12346   rm -f conftest.er1
12347   cat conftest.err >&5
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); } &&
12350          { ac_try='test -z "$ac_c_werror_flag"
12351                          || test ! -s conftest.err'
12352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353   (eval $ac_try) 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); }; } &&
12357          { ac_try='test -s conftest.$ac_objext'
12358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359   (eval $ac_try) 2>&5
12360   ac_status=$?
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); }; }; then
12363   ac_cv_type_pid_t=yes
12364 else
12365   echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12367
12368 ac_cv_type_pid_t=no
12369 fi
12370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12371 fi
12372 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12373 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12374 if test $ac_cv_type_pid_t = yes; then
12375   :
12376 else
12377
12378 cat >>confdefs.h <<_ACEOF
12379 #define pid_t int
12380 _ACEOF
12381
12382 fi
12383
12384 echo "$as_me:$LINENO: checking for off_t" >&5
12385 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12386 if test "${ac_cv_type_off_t+set}" = set; then
12387   echo $ECHO_N "(cached) $ECHO_C" >&6
12388 else
12389   cat >conftest.$ac_ext <<_ACEOF
12390 /* confdefs.h.  */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395 $ac_includes_default
12396 int
12397 main ()
12398 {
12399 if ((off_t *) 0)
12400   return 0;
12401 if (sizeof (off_t))
12402   return 0;
12403   ;
12404   return 0;
12405 }
12406 _ACEOF
12407 rm -f conftest.$ac_objext
12408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12409   (eval $ac_compile) 2>conftest.er1
12410   ac_status=$?
12411   grep -v '^ *+' conftest.er1 >conftest.err
12412   rm -f conftest.er1
12413   cat conftest.err >&5
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); } &&
12416          { ac_try='test -z "$ac_c_werror_flag"
12417                          || test ! -s conftest.err'
12418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12419   (eval $ac_try) 2>&5
12420   ac_status=$?
12421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422   (exit $ac_status); }; } &&
12423          { ac_try='test -s conftest.$ac_objext'
12424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425   (eval $ac_try) 2>&5
12426   ac_status=$?
12427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428   (exit $ac_status); }; }; then
12429   ac_cv_type_off_t=yes
12430 else
12431   echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12433
12434 ac_cv_type_off_t=no
12435 fi
12436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12437 fi
12438 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12439 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12440 if test $ac_cv_type_off_t = yes; then
12441   :
12442 else
12443
12444 cat >>confdefs.h <<_ACEOF
12445 #define off_t long
12446 _ACEOF
12447
12448 fi
12449
12450 echo "$as_me:$LINENO: checking for ino_t" >&5
12451 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12452 if test "${ac_cv_type_ino_t+set}" = set; then
12453   echo $ECHO_N "(cached) $ECHO_C" >&6
12454 else
12455   cat >conftest.$ac_ext <<_ACEOF
12456 /* confdefs.h.  */
12457 _ACEOF
12458 cat confdefs.h >>conftest.$ac_ext
12459 cat >>conftest.$ac_ext <<_ACEOF
12460 /* end confdefs.h.  */
12461 $ac_includes_default
12462 int
12463 main ()
12464 {
12465 if ((ino_t *) 0)
12466   return 0;
12467 if (sizeof (ino_t))
12468   return 0;
12469   ;
12470   return 0;
12471 }
12472 _ACEOF
12473 rm -f conftest.$ac_objext
12474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12475   (eval $ac_compile) 2>conftest.er1
12476   ac_status=$?
12477   grep -v '^ *+' conftest.er1 >conftest.err
12478   rm -f conftest.er1
12479   cat conftest.err >&5
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); } &&
12482          { ac_try='test -z "$ac_c_werror_flag"
12483                          || test ! -s conftest.err'
12484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12485   (eval $ac_try) 2>&5
12486   ac_status=$?
12487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488   (exit $ac_status); }; } &&
12489          { ac_try='test -s conftest.$ac_objext'
12490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12491   (eval $ac_try) 2>&5
12492   ac_status=$?
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); }; }; then
12495   ac_cv_type_ino_t=yes
12496 else
12497   echo "$as_me: failed program was:" >&5
12498 sed 's/^/| /' conftest.$ac_ext >&5
12499
12500 ac_cv_type_ino_t=no
12501 fi
12502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12503 fi
12504 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12505 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12506 if test $ac_cv_type_ino_t = yes; then
12507   :
12508 else
12509
12510 cat >>confdefs.h <<_ACEOF
12511 #define ino_t unsigned long
12512 _ACEOF
12513
12514 fi
12515
12516 echo "$as_me:$LINENO: checking for dev_t" >&5
12517 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12518 if test "${ac_cv_type_dev_t+set}" = set; then
12519   echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521   cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h.  */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h.  */
12527 $ac_includes_default
12528 int
12529 main ()
12530 {
12531 if ((dev_t *) 0)
12532   return 0;
12533 if (sizeof (dev_t))
12534   return 0;
12535   ;
12536   return 0;
12537 }
12538 _ACEOF
12539 rm -f conftest.$ac_objext
12540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12541   (eval $ac_compile) 2>conftest.er1
12542   ac_status=$?
12543   grep -v '^ *+' conftest.er1 >conftest.err
12544   rm -f conftest.er1
12545   cat conftest.err >&5
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); } &&
12548          { ac_try='test -z "$ac_c_werror_flag"
12549                          || test ! -s conftest.err'
12550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551   (eval $ac_try) 2>&5
12552   ac_status=$?
12553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554   (exit $ac_status); }; } &&
12555          { ac_try='test -s conftest.$ac_objext'
12556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557   (eval $ac_try) 2>&5
12558   ac_status=$?
12559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); }; }; then
12561   ac_cv_type_dev_t=yes
12562 else
12563   echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12565
12566 ac_cv_type_dev_t=no
12567 fi
12568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12569 fi
12570 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12571 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12572 if test $ac_cv_type_dev_t = yes; then
12573   :
12574 else
12575
12576 cat >>confdefs.h <<_ACEOF
12577 #define dev_t unsigned long
12578 _ACEOF
12579
12580 fi
12581
12582 echo "$as_me:$LINENO: checking for daddr_t" >&5
12583 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12584 if test "${ac_cv_type_daddr_t+set}" = set; then
12585   echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587   cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593 $ac_includes_default
12594 int
12595 main ()
12596 {
12597 if ((daddr_t *) 0)
12598   return 0;
12599 if (sizeof (daddr_t))
12600   return 0;
12601   ;
12602   return 0;
12603 }
12604 _ACEOF
12605 rm -f conftest.$ac_objext
12606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12607   (eval $ac_compile) 2>conftest.er1
12608   ac_status=$?
12609   grep -v '^ *+' conftest.er1 >conftest.err
12610   rm -f conftest.er1
12611   cat conftest.err >&5
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); } &&
12614          { ac_try='test -z "$ac_c_werror_flag"
12615                          || test ! -s conftest.err'
12616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617   (eval $ac_try) 2>&5
12618   ac_status=$?
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); }; } &&
12621          { ac_try='test -s conftest.$ac_objext'
12622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623   (eval $ac_try) 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); }; }; then
12627   ac_cv_type_daddr_t=yes
12628 else
12629   echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12631
12632 ac_cv_type_daddr_t=no
12633 fi
12634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12635 fi
12636 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12637 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12638 if test $ac_cv_type_daddr_t = yes; then
12639   :
12640 else
12641
12642 cat >>confdefs.h <<_ACEOF
12643 #define daddr_t long
12644 _ACEOF
12645
12646 fi
12647
12648 echo "$as_me:$LINENO: checking for major_t" >&5
12649 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12650 if test "${ac_cv_type_major_t+set}" = set; then
12651   echo $ECHO_N "(cached) $ECHO_C" >&6
12652 else
12653   cat >conftest.$ac_ext <<_ACEOF
12654 /* confdefs.h.  */
12655 _ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h.  */
12659 $ac_includes_default
12660 int
12661 main ()
12662 {
12663 if ((major_t *) 0)
12664   return 0;
12665 if (sizeof (major_t))
12666   return 0;
12667   ;
12668   return 0;
12669 }
12670 _ACEOF
12671 rm -f conftest.$ac_objext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673   (eval $ac_compile) 2>conftest.er1
12674   ac_status=$?
12675   grep -v '^ *+' conftest.er1 >conftest.err
12676   rm -f conftest.er1
12677   cat conftest.err >&5
12678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679   (exit $ac_status); } &&
12680          { ac_try='test -z "$ac_c_werror_flag"
12681                          || test ! -s conftest.err'
12682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683   (eval $ac_try) 2>&5
12684   ac_status=$?
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); }; } &&
12687          { ac_try='test -s conftest.$ac_objext'
12688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689   (eval $ac_try) 2>&5
12690   ac_status=$?
12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); }; }; then
12693   ac_cv_type_major_t=yes
12694 else
12695   echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12697
12698 ac_cv_type_major_t=no
12699 fi
12700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12701 fi
12702 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12703 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12704 if test $ac_cv_type_major_t = yes; then
12705   :
12706 else
12707
12708 cat >>confdefs.h <<_ACEOF
12709 #define major_t int
12710 _ACEOF
12711
12712 fi
12713
12714 echo "$as_me:$LINENO: checking for minor_t" >&5
12715 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12716 if test "${ac_cv_type_minor_t+set}" = set; then
12717   echo $ECHO_N "(cached) $ECHO_C" >&6
12718 else
12719   cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h.  */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h.  */
12725 $ac_includes_default
12726 int
12727 main ()
12728 {
12729 if ((minor_t *) 0)
12730   return 0;
12731 if (sizeof (minor_t))
12732   return 0;
12733   ;
12734   return 0;
12735 }
12736 _ACEOF
12737 rm -f conftest.$ac_objext
12738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12739   (eval $ac_compile) 2>conftest.er1
12740   ac_status=$?
12741   grep -v '^ *+' conftest.er1 >conftest.err
12742   rm -f conftest.er1
12743   cat conftest.err >&5
12744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745   (exit $ac_status); } &&
12746          { ac_try='test -z "$ac_c_werror_flag"
12747                          || test ! -s conftest.err'
12748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749   (eval $ac_try) 2>&5
12750   ac_status=$?
12751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752   (exit $ac_status); }; } &&
12753          { ac_try='test -s conftest.$ac_objext'
12754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755   (eval $ac_try) 2>&5
12756   ac_status=$?
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); }; }; then
12759   ac_cv_type_minor_t=yes
12760 else
12761   echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12763
12764 ac_cv_type_minor_t=no
12765 fi
12766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12767 fi
12768 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12769 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12770 if test $ac_cv_type_minor_t = yes; then
12771   :
12772 else
12773
12774 cat >>confdefs.h <<_ACEOF
12775 #define minor_t int
12776 _ACEOF
12777
12778 fi
12779
12780 echo "$as_me:$LINENO: checking for ssize_t" >&5
12781 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12782 if test "${ac_cv_type_ssize_t+set}" = set; then
12783   echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785   cat >conftest.$ac_ext <<_ACEOF
12786 /* confdefs.h.  */
12787 _ACEOF
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h.  */
12791 $ac_includes_default
12792 int
12793 main ()
12794 {
12795 if ((ssize_t *) 0)
12796   return 0;
12797 if (sizeof (ssize_t))
12798   return 0;
12799   ;
12800   return 0;
12801 }
12802 _ACEOF
12803 rm -f conftest.$ac_objext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12805   (eval $ac_compile) 2>conftest.er1
12806   ac_status=$?
12807   grep -v '^ *+' conftest.er1 >conftest.err
12808   rm -f conftest.er1
12809   cat conftest.err >&5
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); } &&
12812          { ac_try='test -z "$ac_c_werror_flag"
12813                          || test ! -s conftest.err'
12814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815   (eval $ac_try) 2>&5
12816   ac_status=$?
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); }; } &&
12819          { ac_try='test -s conftest.$ac_objext'
12820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821   (eval $ac_try) 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); }; }; then
12825   ac_cv_type_ssize_t=yes
12826 else
12827   echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12829
12830 ac_cv_type_ssize_t=no
12831 fi
12832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12833 fi
12834 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12835 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12836 if test $ac_cv_type_ssize_t = yes; then
12837   :
12838 else
12839
12840 cat >>confdefs.h <<_ACEOF
12841 #define ssize_t int
12842 _ACEOF
12843
12844 fi
12845
12846 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12847 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12848 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12849   echo $ECHO_N "(cached) $ECHO_C" >&6
12850 else
12851   cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h.  */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h.  */
12857 $ac_includes_default
12858 int
12859 main ()
12860 {
12861 static struct stat ac_aggr;
12862 if (ac_aggr.st_blocks)
12863 return 0;
12864   ;
12865   return 0;
12866 }
12867 _ACEOF
12868 rm -f conftest.$ac_objext
12869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870   (eval $ac_compile) 2>conftest.er1
12871   ac_status=$?
12872   grep -v '^ *+' conftest.er1 >conftest.err
12873   rm -f conftest.er1
12874   cat conftest.err >&5
12875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876   (exit $ac_status); } &&
12877          { ac_try='test -z "$ac_c_werror_flag"
12878                          || test ! -s conftest.err'
12879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12880   (eval $ac_try) 2>&5
12881   ac_status=$?
12882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883   (exit $ac_status); }; } &&
12884          { ac_try='test -s conftest.$ac_objext'
12885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886   (eval $ac_try) 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); }; }; then
12890   ac_cv_member_struct_stat_st_blocks=yes
12891 else
12892   echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12894
12895 cat >conftest.$ac_ext <<_ACEOF
12896 /* confdefs.h.  */
12897 _ACEOF
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h.  */
12901 $ac_includes_default
12902 int
12903 main ()
12904 {
12905 static struct stat ac_aggr;
12906 if (sizeof ac_aggr.st_blocks)
12907 return 0;
12908   ;
12909   return 0;
12910 }
12911 _ACEOF
12912 rm -f conftest.$ac_objext
12913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914   (eval $ac_compile) 2>conftest.er1
12915   ac_status=$?
12916   grep -v '^ *+' conftest.er1 >conftest.err
12917   rm -f conftest.er1
12918   cat conftest.err >&5
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); } &&
12921          { ac_try='test -z "$ac_c_werror_flag"
12922                          || test ! -s conftest.err'
12923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924   (eval $ac_try) 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); }; } &&
12928          { ac_try='test -s conftest.$ac_objext'
12929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930   (eval $ac_try) 2>&5
12931   ac_status=$?
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); }; }; then
12934   ac_cv_member_struct_stat_st_blocks=yes
12935 else
12936   echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12938
12939 ac_cv_member_struct_stat_st_blocks=no
12940 fi
12941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12942 fi
12943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12944 fi
12945 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12946 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12947 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12948
12949 cat >>confdefs.h <<_ACEOF
12950 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12951 _ACEOF
12952
12953
12954 cat >>confdefs.h <<\_ACEOF
12955 #define HAVE_ST_BLOCKS 1
12956 _ACEOF
12957
12958 else
12959   case $LIBOBJS in
12960     "fileblocks.$ac_objext"   | \
12961   *" fileblocks.$ac_objext"   | \
12962     "fileblocks.$ac_objext "* | \
12963   *" fileblocks.$ac_objext "* ) ;;
12964   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12965 esac
12966
12967 fi
12968
12969
12970
12971 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12972 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12973 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12974   echo $ECHO_N "(cached) $ECHO_C" >&6
12975 else
12976   cat >conftest.$ac_ext <<_ACEOF
12977 /* confdefs.h.  */
12978 _ACEOF
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h.  */
12982 $ac_includes_default
12983 int
12984 main ()
12985 {
12986 static struct stat ac_aggr;
12987 if (ac_aggr.st_rdev)
12988 return 0;
12989   ;
12990   return 0;
12991 }
12992 _ACEOF
12993 rm -f conftest.$ac_objext
12994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12995   (eval $ac_compile) 2>conftest.er1
12996   ac_status=$?
12997   grep -v '^ *+' conftest.er1 >conftest.err
12998   rm -f conftest.er1
12999   cat conftest.err >&5
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); } &&
13002          { ac_try='test -z "$ac_c_werror_flag"
13003                          || test ! -s conftest.err'
13004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005   (eval $ac_try) 2>&5
13006   ac_status=$?
13007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008   (exit $ac_status); }; } &&
13009          { ac_try='test -s conftest.$ac_objext'
13010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13011   (eval $ac_try) 2>&5
13012   ac_status=$?
13013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014   (exit $ac_status); }; }; then
13015   ac_cv_member_struct_stat_st_rdev=yes
13016 else
13017   echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13019
13020 cat >conftest.$ac_ext <<_ACEOF
13021 /* confdefs.h.  */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h.  */
13026 $ac_includes_default
13027 int
13028 main ()
13029 {
13030 static struct stat ac_aggr;
13031 if (sizeof ac_aggr.st_rdev)
13032 return 0;
13033   ;
13034   return 0;
13035 }
13036 _ACEOF
13037 rm -f conftest.$ac_objext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13039   (eval $ac_compile) 2>conftest.er1
13040   ac_status=$?
13041   grep -v '^ *+' conftest.er1 >conftest.err
13042   rm -f conftest.er1
13043   cat conftest.err >&5
13044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045   (exit $ac_status); } &&
13046          { ac_try='test -z "$ac_c_werror_flag"
13047                          || test ! -s conftest.err'
13048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049   (eval $ac_try) 2>&5
13050   ac_status=$?
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); }; } &&
13053          { ac_try='test -s conftest.$ac_objext'
13054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055   (eval $ac_try) 2>&5
13056   ac_status=$?
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); }; }; then
13059   ac_cv_member_struct_stat_st_rdev=yes
13060 else
13061   echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13063
13064 ac_cv_member_struct_stat_st_rdev=no
13065 fi
13066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13067 fi
13068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13069 fi
13070 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13071 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13072 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13073
13074 cat >>confdefs.h <<_ACEOF
13075 #define HAVE_STRUCT_STAT_ST_RDEV 1
13076 _ACEOF
13077
13078
13079 cat >>confdefs.h <<\_ACEOF
13080 #define HAVE_ST_RDEV 1
13081 _ACEOF
13082
13083 fi
13084
13085
13086 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13087 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13088 if test "${ac_cv_struct_tm+set}" = set; then
13089   echo $ECHO_N "(cached) $ECHO_C" >&6
13090 else
13091   cat >conftest.$ac_ext <<_ACEOF
13092 /* confdefs.h.  */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h.  */
13097 #include <sys/types.h>
13098 #include <time.h>
13099
13100 int
13101 main ()
13102 {
13103 struct tm *tp; tp->tm_sec;
13104   ;
13105   return 0;
13106 }
13107 _ACEOF
13108 rm -f conftest.$ac_objext
13109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13110   (eval $ac_compile) 2>conftest.er1
13111   ac_status=$?
13112   grep -v '^ *+' conftest.er1 >conftest.err
13113   rm -f conftest.er1
13114   cat conftest.err >&5
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); } &&
13117          { ac_try='test -z "$ac_c_werror_flag"
13118                          || test ! -s conftest.err'
13119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120   (eval $ac_try) 2>&5
13121   ac_status=$?
13122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); }; } &&
13124          { ac_try='test -s conftest.$ac_objext'
13125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126   (eval $ac_try) 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); }; }; then
13130   ac_cv_struct_tm=time.h
13131 else
13132   echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13134
13135 ac_cv_struct_tm=sys/time.h
13136 fi
13137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13138 fi
13139 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13140 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13141 if test $ac_cv_struct_tm = sys/time.h; then
13142
13143 cat >>confdefs.h <<\_ACEOF
13144 #define TM_IN_SYS_TIME 1
13145 _ACEOF
13146
13147 fi
13148
13149 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13150 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13151 if test "${ac_cv_c_const+set}" = set; then
13152   echo $ECHO_N "(cached) $ECHO_C" >&6
13153 else
13154   cat >conftest.$ac_ext <<_ACEOF
13155 /* confdefs.h.  */
13156 _ACEOF
13157 cat confdefs.h >>conftest.$ac_ext
13158 cat >>conftest.$ac_ext <<_ACEOF
13159 /* end confdefs.h.  */
13160
13161 int
13162 main ()
13163 {
13164 /* FIXME: Include the comments suggested by Paul. */
13165 #ifndef __cplusplus
13166   /* Ultrix mips cc rejects this.  */
13167   typedef int charset[2];
13168   const charset x;
13169   /* SunOS 4.1.1 cc rejects this.  */
13170   char const *const *ccp;
13171   char **p;
13172   /* NEC SVR4.0.2 mips cc rejects this.  */
13173   struct point {int x, y;};
13174   static struct point const zero = {0,0};
13175   /* AIX XL C 1.02.0.0 rejects this.
13176      It does not let you subtract one const X* pointer from another in
13177      an arm of an if-expression whose if-part is not a constant
13178      expression */
13179   const char *g = "string";
13180   ccp = &g + (g ? g-g : 0);
13181   /* HPUX 7.0 cc rejects these. */
13182   ++ccp;
13183   p = (char**) ccp;
13184   ccp = (char const *const *) p;
13185   { /* SCO 3.2v4 cc rejects this.  */
13186     char *t;
13187     char const *s = 0 ? (char *) 0 : (char const *) 0;
13188
13189     *t++ = 0;
13190   }
13191   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13192     int x[] = {25, 17};
13193     const int *foo = &x[0];
13194     ++foo;
13195   }
13196   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13197     typedef const int *iptr;
13198     iptr p = 0;
13199     ++p;
13200   }
13201   { /* AIX XL C 1.02.0.0 rejects this saying
13202        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13203     struct s { int j; const int *ap[3]; };
13204     struct s *b; b->j = 5;
13205   }
13206   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13207     const int foo = 10;
13208   }
13209 #endif
13210
13211   ;
13212   return 0;
13213 }
13214 _ACEOF
13215 rm -f conftest.$ac_objext
13216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13217   (eval $ac_compile) 2>conftest.er1
13218   ac_status=$?
13219   grep -v '^ *+' conftest.er1 >conftest.err
13220   rm -f conftest.er1
13221   cat conftest.err >&5
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   (exit $ac_status); } &&
13224          { ac_try='test -z "$ac_c_werror_flag"
13225                          || test ! -s conftest.err'
13226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227   (eval $ac_try) 2>&5
13228   ac_status=$?
13229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230   (exit $ac_status); }; } &&
13231          { ac_try='test -s conftest.$ac_objext'
13232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233   (eval $ac_try) 2>&5
13234   ac_status=$?
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); }; }; then
13237   ac_cv_c_const=yes
13238 else
13239   echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13241
13242 ac_cv_c_const=no
13243 fi
13244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13245 fi
13246 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13247 echo "${ECHO_T}$ac_cv_c_const" >&6
13248 if test $ac_cv_c_const = no; then
13249
13250 cat >>confdefs.h <<\_ACEOF
13251 #define const
13252 _ACEOF
13253
13254 fi
13255
13256
13257
13258 echo "$as_me:$LINENO: checking for char" >&5
13259 echo $ECHO_N "checking for char... $ECHO_C" >&6
13260 if test "${ac_cv_type_char+set}" = set; then
13261   echo $ECHO_N "(cached) $ECHO_C" >&6
13262 else
13263   cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h.  */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h.  */
13269 $ac_includes_default
13270 int
13271 main ()
13272 {
13273 if ((char *) 0)
13274   return 0;
13275 if (sizeof (char))
13276   return 0;
13277   ;
13278   return 0;
13279 }
13280 _ACEOF
13281 rm -f conftest.$ac_objext
13282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13283   (eval $ac_compile) 2>conftest.er1
13284   ac_status=$?
13285   grep -v '^ *+' conftest.er1 >conftest.err
13286   rm -f conftest.er1
13287   cat conftest.err >&5
13288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289   (exit $ac_status); } &&
13290          { ac_try='test -z "$ac_c_werror_flag"
13291                          || test ! -s conftest.err'
13292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293   (eval $ac_try) 2>&5
13294   ac_status=$?
13295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296   (exit $ac_status); }; } &&
13297          { ac_try='test -s conftest.$ac_objext'
13298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299   (eval $ac_try) 2>&5
13300   ac_status=$?
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); }; }; then
13303   ac_cv_type_char=yes
13304 else
13305   echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13307
13308 ac_cv_type_char=no
13309 fi
13310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13311 fi
13312 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13313 echo "${ECHO_T}$ac_cv_type_char" >&6
13314
13315 echo "$as_me:$LINENO: checking size of char" >&5
13316 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13317 if test "${ac_cv_sizeof_char+set}" = set; then
13318   echo $ECHO_N "(cached) $ECHO_C" >&6
13319 else
13320   if test "$ac_cv_type_char" = yes; then
13321   # The cast to unsigned long works around a bug in the HP C Compiler
13322   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13323   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13324   # This bug is HP SR number 8606223364.
13325   if test "$cross_compiling" = yes; then
13326   # Depending upon the size, compute the lo and hi bounds.
13327 cat >conftest.$ac_ext <<_ACEOF
13328 /* confdefs.h.  */
13329 _ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h.  */
13333 $ac_includes_default
13334 int
13335 main ()
13336 {
13337 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13338 test_array [0] = 0
13339
13340   ;
13341   return 0;
13342 }
13343 _ACEOF
13344 rm -f conftest.$ac_objext
13345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13346   (eval $ac_compile) 2>conftest.er1
13347   ac_status=$?
13348   grep -v '^ *+' conftest.er1 >conftest.err
13349   rm -f conftest.er1
13350   cat conftest.err >&5
13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); } &&
13353          { ac_try='test -z "$ac_c_werror_flag"
13354                          || test ! -s conftest.err'
13355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356   (eval $ac_try) 2>&5
13357   ac_status=$?
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); }; } &&
13360          { ac_try='test -s conftest.$ac_objext'
13361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362   (eval $ac_try) 2>&5
13363   ac_status=$?
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); }; }; then
13366   ac_lo=0 ac_mid=0
13367   while :; do
13368     cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h.  */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h.  */
13374 $ac_includes_default
13375 int
13376 main ()
13377 {
13378 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13379 test_array [0] = 0
13380
13381   ;
13382   return 0;
13383 }
13384 _ACEOF
13385 rm -f conftest.$ac_objext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13387   (eval $ac_compile) 2>conftest.er1
13388   ac_status=$?
13389   grep -v '^ *+' conftest.er1 >conftest.err
13390   rm -f conftest.er1
13391   cat conftest.err >&5
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); } &&
13394          { ac_try='test -z "$ac_c_werror_flag"
13395                          || test ! -s conftest.err'
13396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397   (eval $ac_try) 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); }; } &&
13401          { ac_try='test -s conftest.$ac_objext'
13402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403   (eval $ac_try) 2>&5
13404   ac_status=$?
13405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406   (exit $ac_status); }; }; then
13407   ac_hi=$ac_mid; break
13408 else
13409   echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13411
13412 ac_lo=`expr $ac_mid + 1`
13413                     if test $ac_lo -le $ac_mid; then
13414                       ac_lo= ac_hi=
13415                       break
13416                     fi
13417                     ac_mid=`expr 2 '*' $ac_mid + 1`
13418 fi
13419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13420   done
13421 else
13422   echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13424
13425 cat >conftest.$ac_ext <<_ACEOF
13426 /* confdefs.h.  */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h.  */
13431 $ac_includes_default
13432 int
13433 main ()
13434 {
13435 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13436 test_array [0] = 0
13437
13438   ;
13439   return 0;
13440 }
13441 _ACEOF
13442 rm -f conftest.$ac_objext
13443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13444   (eval $ac_compile) 2>conftest.er1
13445   ac_status=$?
13446   grep -v '^ *+' conftest.er1 >conftest.err
13447   rm -f conftest.er1
13448   cat conftest.err >&5
13449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450   (exit $ac_status); } &&
13451          { ac_try='test -z "$ac_c_werror_flag"
13452                          || test ! -s conftest.err'
13453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13454   (eval $ac_try) 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); }; } &&
13458          { ac_try='test -s conftest.$ac_objext'
13459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13460   (eval $ac_try) 2>&5
13461   ac_status=$?
13462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463   (exit $ac_status); }; }; then
13464   ac_hi=-1 ac_mid=-1
13465   while :; do
13466     cat >conftest.$ac_ext <<_ACEOF
13467 /* confdefs.h.  */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h.  */
13472 $ac_includes_default
13473 int
13474 main ()
13475 {
13476 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13477 test_array [0] = 0
13478
13479   ;
13480   return 0;
13481 }
13482 _ACEOF
13483 rm -f conftest.$ac_objext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485   (eval $ac_compile) 2>conftest.er1
13486   ac_status=$?
13487   grep -v '^ *+' conftest.er1 >conftest.err
13488   rm -f conftest.er1
13489   cat conftest.err >&5
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } &&
13492          { ac_try='test -z "$ac_c_werror_flag"
13493                          || test ! -s conftest.err'
13494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495   (eval $ac_try) 2>&5
13496   ac_status=$?
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); }; } &&
13499          { ac_try='test -s conftest.$ac_objext'
13500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501   (eval $ac_try) 2>&5
13502   ac_status=$?
13503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504   (exit $ac_status); }; }; then
13505   ac_lo=$ac_mid; break
13506 else
13507   echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.$ac_ext >&5
13509
13510 ac_hi=`expr '(' $ac_mid ')' - 1`
13511                        if test $ac_mid -le $ac_hi; then
13512                          ac_lo= ac_hi=
13513                          break
13514                        fi
13515                        ac_mid=`expr 2 '*' $ac_mid`
13516 fi
13517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13518   done
13519 else
13520   echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13522
13523 ac_lo= ac_hi=
13524 fi
13525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13526 fi
13527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13528 # Binary search between lo and hi bounds.
13529 while test "x$ac_lo" != "x$ac_hi"; do
13530   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13531   cat >conftest.$ac_ext <<_ACEOF
13532 /* confdefs.h.  */
13533 _ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h.  */
13537 $ac_includes_default
13538 int
13539 main ()
13540 {
13541 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13542 test_array [0] = 0
13543
13544   ;
13545   return 0;
13546 }
13547 _ACEOF
13548 rm -f conftest.$ac_objext
13549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13550   (eval $ac_compile) 2>conftest.er1
13551   ac_status=$?
13552   grep -v '^ *+' conftest.er1 >conftest.err
13553   rm -f conftest.er1
13554   cat conftest.err >&5
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); } &&
13557          { ac_try='test -z "$ac_c_werror_flag"
13558                          || test ! -s conftest.err'
13559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560   (eval $ac_try) 2>&5
13561   ac_status=$?
13562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563   (exit $ac_status); }; } &&
13564          { ac_try='test -s conftest.$ac_objext'
13565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566   (eval $ac_try) 2>&5
13567   ac_status=$?
13568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569   (exit $ac_status); }; }; then
13570   ac_hi=$ac_mid
13571 else
13572   echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13574
13575 ac_lo=`expr '(' $ac_mid ')' + 1`
13576 fi
13577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13578 done
13579 case $ac_lo in
13580 ?*) ac_cv_sizeof_char=$ac_lo;;
13581 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13582 See \`config.log' for more details." >&5
13583 echo "$as_me: error: cannot compute sizeof (char), 77
13584 See \`config.log' for more details." >&2;}
13585    { (exit 1); exit 1; }; } ;;
13586 esac
13587 else
13588   if test "$cross_compiling" = yes; then
13589   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13590 See \`config.log' for more details." >&5
13591 echo "$as_me: error: cannot run test program while cross compiling
13592 See \`config.log' for more details." >&2;}
13593    { (exit 1); exit 1; }; }
13594 else
13595   cat >conftest.$ac_ext <<_ACEOF
13596 /* confdefs.h.  */
13597 _ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h.  */
13601 $ac_includes_default
13602 long longval () { return (long) (sizeof (char)); }
13603 unsigned long ulongval () { return (long) (sizeof (char)); }
13604 #include <stdio.h>
13605 #include <stdlib.h>
13606 int
13607 main ()
13608 {
13609
13610   FILE *f = fopen ("conftest.val", "w");
13611   if (! f)
13612     exit (1);
13613   if (((long) (sizeof (char))) < 0)
13614     {
13615       long i = longval ();
13616       if (i != ((long) (sizeof (char))))
13617         exit (1);
13618       fprintf (f, "%ld\n", i);
13619     }
13620   else
13621     {
13622       unsigned long i = ulongval ();
13623       if (i != ((long) (sizeof (char))))
13624         exit (1);
13625       fprintf (f, "%lu\n", i);
13626     }
13627   exit (ferror (f) || fclose (f) != 0);
13628
13629   ;
13630   return 0;
13631 }
13632 _ACEOF
13633 rm -f conftest$ac_exeext
13634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13635   (eval $ac_link) 2>&5
13636   ac_status=$?
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640   (eval $ac_try) 2>&5
13641   ac_status=$?
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); }; }; then
13644   ac_cv_sizeof_char=`cat conftest.val`
13645 else
13646   echo "$as_me: program exited with status $ac_status" >&5
13647 echo "$as_me: failed program was:" >&5
13648 sed 's/^/| /' conftest.$ac_ext >&5
13649
13650 ( exit $ac_status )
13651 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13652 See \`config.log' for more details." >&5
13653 echo "$as_me: error: cannot compute sizeof (char), 77
13654 See \`config.log' for more details." >&2;}
13655    { (exit 1); exit 1; }; }
13656 fi
13657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13658 fi
13659 fi
13660 rm -f conftest.val
13661 else
13662   ac_cv_sizeof_char=0
13663 fi
13664 fi
13665 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13666 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13667 cat >>confdefs.h <<_ACEOF
13668 #define SIZEOF_CHAR $ac_cv_sizeof_char
13669 _ACEOF
13670
13671
13672 echo "$as_me:$LINENO: checking for short int" >&5
13673 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13674 if test "${ac_cv_type_short_int+set}" = set; then
13675   echo $ECHO_N "(cached) $ECHO_C" >&6
13676 else
13677   cat >conftest.$ac_ext <<_ACEOF
13678 /* confdefs.h.  */
13679 _ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h.  */
13683 $ac_includes_default
13684 int
13685 main ()
13686 {
13687 if ((short int *) 0)
13688   return 0;
13689 if (sizeof (short int))
13690   return 0;
13691   ;
13692   return 0;
13693 }
13694 _ACEOF
13695 rm -f conftest.$ac_objext
13696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13697   (eval $ac_compile) 2>conftest.er1
13698   ac_status=$?
13699   grep -v '^ *+' conftest.er1 >conftest.err
13700   rm -f conftest.er1
13701   cat conftest.err >&5
13702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); } &&
13704          { ac_try='test -z "$ac_c_werror_flag"
13705                          || test ! -s conftest.err'
13706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707   (eval $ac_try) 2>&5
13708   ac_status=$?
13709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710   (exit $ac_status); }; } &&
13711          { ac_try='test -s conftest.$ac_objext'
13712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713   (eval $ac_try) 2>&5
13714   ac_status=$?
13715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); }; }; then
13717   ac_cv_type_short_int=yes
13718 else
13719   echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13721
13722 ac_cv_type_short_int=no
13723 fi
13724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13725 fi
13726 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13727 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13728
13729 echo "$as_me:$LINENO: checking size of short int" >&5
13730 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13731 if test "${ac_cv_sizeof_short_int+set}" = set; then
13732   echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734   if test "$ac_cv_type_short_int" = yes; then
13735   # The cast to unsigned long works around a bug in the HP C Compiler
13736   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13737   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13738   # This bug is HP SR number 8606223364.
13739   if test "$cross_compiling" = yes; then
13740   # Depending upon the size, compute the lo and hi bounds.
13741 cat >conftest.$ac_ext <<_ACEOF
13742 /* confdefs.h.  */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h.  */
13747 $ac_includes_default
13748 int
13749 main ()
13750 {
13751 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13752 test_array [0] = 0
13753
13754   ;
13755   return 0;
13756 }
13757 _ACEOF
13758 rm -f conftest.$ac_objext
13759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13760   (eval $ac_compile) 2>conftest.er1
13761   ac_status=$?
13762   grep -v '^ *+' conftest.er1 >conftest.err
13763   rm -f conftest.er1
13764   cat conftest.err >&5
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); } &&
13767          { ac_try='test -z "$ac_c_werror_flag"
13768                          || test ! -s conftest.err'
13769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770   (eval $ac_try) 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; } &&
13774          { ac_try='test -s conftest.$ac_objext'
13775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13776   (eval $ac_try) 2>&5
13777   ac_status=$?
13778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779   (exit $ac_status); }; }; then
13780   ac_lo=0 ac_mid=0
13781   while :; do
13782     cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h.  */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h.  */
13788 $ac_includes_default
13789 int
13790 main ()
13791 {
13792 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13793 test_array [0] = 0
13794
13795   ;
13796   return 0;
13797 }
13798 _ACEOF
13799 rm -f conftest.$ac_objext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13801   (eval $ac_compile) 2>conftest.er1
13802   ac_status=$?
13803   grep -v '^ *+' conftest.er1 >conftest.err
13804   rm -f conftest.er1
13805   cat conftest.err >&5
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); } &&
13808          { ac_try='test -z "$ac_c_werror_flag"
13809                          || test ! -s conftest.err'
13810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811   (eval $ac_try) 2>&5
13812   ac_status=$?
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); }; } &&
13815          { ac_try='test -s conftest.$ac_objext'
13816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817   (eval $ac_try) 2>&5
13818   ac_status=$?
13819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820   (exit $ac_status); }; }; then
13821   ac_hi=$ac_mid; break
13822 else
13823   echo "$as_me: failed program was:" >&5
13824 sed 's/^/| /' conftest.$ac_ext >&5
13825
13826 ac_lo=`expr $ac_mid + 1`
13827                     if test $ac_lo -le $ac_mid; then
13828                       ac_lo= ac_hi=
13829                       break
13830                     fi
13831                     ac_mid=`expr 2 '*' $ac_mid + 1`
13832 fi
13833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13834   done
13835 else
13836   echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13838
13839 cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h.  */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h.  */
13845 $ac_includes_default
13846 int
13847 main ()
13848 {
13849 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13850 test_array [0] = 0
13851
13852   ;
13853   return 0;
13854 }
13855 _ACEOF
13856 rm -f conftest.$ac_objext
13857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13858   (eval $ac_compile) 2>conftest.er1
13859   ac_status=$?
13860   grep -v '^ *+' conftest.er1 >conftest.err
13861   rm -f conftest.er1
13862   cat conftest.err >&5
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); } &&
13865          { ac_try='test -z "$ac_c_werror_flag"
13866                          || test ! -s conftest.err'
13867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868   (eval $ac_try) 2>&5
13869   ac_status=$?
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); }; } &&
13872          { ac_try='test -s conftest.$ac_objext'
13873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874   (eval $ac_try) 2>&5
13875   ac_status=$?
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); }; }; then
13878   ac_hi=-1 ac_mid=-1
13879   while :; do
13880     cat >conftest.$ac_ext <<_ACEOF
13881 /* confdefs.h.  */
13882 _ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h.  */
13886 $ac_includes_default
13887 int
13888 main ()
13889 {
13890 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13891 test_array [0] = 0
13892
13893   ;
13894   return 0;
13895 }
13896 _ACEOF
13897 rm -f conftest.$ac_objext
13898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13899   (eval $ac_compile) 2>conftest.er1
13900   ac_status=$?
13901   grep -v '^ *+' conftest.er1 >conftest.err
13902   rm -f conftest.er1
13903   cat conftest.err >&5
13904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905   (exit $ac_status); } &&
13906          { ac_try='test -z "$ac_c_werror_flag"
13907                          || test ! -s conftest.err'
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); }; } &&
13913          { ac_try='test -s conftest.$ac_objext'
13914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13915   (eval $ac_try) 2>&5
13916   ac_status=$?
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); }; }; then
13919   ac_lo=$ac_mid; break
13920 else
13921   echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13923
13924 ac_hi=`expr '(' $ac_mid ')' - 1`
13925                        if test $ac_mid -le $ac_hi; then
13926                          ac_lo= ac_hi=
13927                          break
13928                        fi
13929                        ac_mid=`expr 2 '*' $ac_mid`
13930 fi
13931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13932   done
13933 else
13934   echo "$as_me: failed program was:" >&5
13935 sed 's/^/| /' conftest.$ac_ext >&5
13936
13937 ac_lo= ac_hi=
13938 fi
13939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13940 fi
13941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13942 # Binary search between lo and hi bounds.
13943 while test "x$ac_lo" != "x$ac_hi"; do
13944   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13945   cat >conftest.$ac_ext <<_ACEOF
13946 /* confdefs.h.  */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h.  */
13951 $ac_includes_default
13952 int
13953 main ()
13954 {
13955 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13956 test_array [0] = 0
13957
13958   ;
13959   return 0;
13960 }
13961 _ACEOF
13962 rm -f conftest.$ac_objext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13964   (eval $ac_compile) 2>conftest.er1
13965   ac_status=$?
13966   grep -v '^ *+' conftest.er1 >conftest.err
13967   rm -f conftest.er1
13968   cat conftest.err >&5
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); } &&
13971          { ac_try='test -z "$ac_c_werror_flag"
13972                          || test ! -s conftest.err'
13973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974   (eval $ac_try) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); }; } &&
13978          { ac_try='test -s conftest.$ac_objext'
13979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980   (eval $ac_try) 2>&5
13981   ac_status=$?
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); }; }; then
13984   ac_hi=$ac_mid
13985 else
13986   echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13988
13989 ac_lo=`expr '(' $ac_mid ')' + 1`
13990 fi
13991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13992 done
13993 case $ac_lo in
13994 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13995 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13996 See \`config.log' for more details." >&5
13997 echo "$as_me: error: cannot compute sizeof (short int), 77
13998 See \`config.log' for more details." >&2;}
13999    { (exit 1); exit 1; }; } ;;
14000 esac
14001 else
14002   if test "$cross_compiling" = yes; then
14003   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14004 See \`config.log' for more details." >&5
14005 echo "$as_me: error: cannot run test program while cross compiling
14006 See \`config.log' for more details." >&2;}
14007    { (exit 1); exit 1; }; }
14008 else
14009   cat >conftest.$ac_ext <<_ACEOF
14010 /* confdefs.h.  */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h.  */
14015 $ac_includes_default
14016 long longval () { return (long) (sizeof (short int)); }
14017 unsigned long ulongval () { return (long) (sizeof (short int)); }
14018 #include <stdio.h>
14019 #include <stdlib.h>
14020 int
14021 main ()
14022 {
14023
14024   FILE *f = fopen ("conftest.val", "w");
14025   if (! f)
14026     exit (1);
14027   if (((long) (sizeof (short int))) < 0)
14028     {
14029       long i = longval ();
14030       if (i != ((long) (sizeof (short int))))
14031         exit (1);
14032       fprintf (f, "%ld\n", i);
14033     }
14034   else
14035     {
14036       unsigned long i = ulongval ();
14037       if (i != ((long) (sizeof (short int))))
14038         exit (1);
14039       fprintf (f, "%lu\n", i);
14040     }
14041   exit (ferror (f) || fclose (f) != 0);
14042
14043   ;
14044   return 0;
14045 }
14046 _ACEOF
14047 rm -f conftest$ac_exeext
14048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14049   (eval $ac_link) 2>&5
14050   ac_status=$?
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054   (eval $ac_try) 2>&5
14055   ac_status=$?
14056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057   (exit $ac_status); }; }; then
14058   ac_cv_sizeof_short_int=`cat conftest.val`
14059 else
14060   echo "$as_me: program exited with status $ac_status" >&5
14061 echo "$as_me: failed program was:" >&5
14062 sed 's/^/| /' conftest.$ac_ext >&5
14063
14064 ( exit $ac_status )
14065 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
14066 See \`config.log' for more details." >&5
14067 echo "$as_me: error: cannot compute sizeof (short int), 77
14068 See \`config.log' for more details." >&2;}
14069    { (exit 1); exit 1; }; }
14070 fi
14071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14072 fi
14073 fi
14074 rm -f conftest.val
14075 else
14076   ac_cv_sizeof_short_int=0
14077 fi
14078 fi
14079 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
14080 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
14081 cat >>confdefs.h <<_ACEOF
14082 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
14083 _ACEOF
14084
14085
14086 echo "$as_me:$LINENO: checking for int" >&5
14087 echo $ECHO_N "checking for int... $ECHO_C" >&6
14088 if test "${ac_cv_type_int+set}" = set; then
14089   echo $ECHO_N "(cached) $ECHO_C" >&6
14090 else
14091   cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h.  */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h.  */
14097 $ac_includes_default
14098 int
14099 main ()
14100 {
14101 if ((int *) 0)
14102   return 0;
14103 if (sizeof (int))
14104   return 0;
14105   ;
14106   return 0;
14107 }
14108 _ACEOF
14109 rm -f conftest.$ac_objext
14110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14111   (eval $ac_compile) 2>conftest.er1
14112   ac_status=$?
14113   grep -v '^ *+' conftest.er1 >conftest.err
14114   rm -f conftest.er1
14115   cat conftest.err >&5
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); } &&
14118          { ac_try='test -z "$ac_c_werror_flag"
14119                          || test ! -s conftest.err'
14120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14121   (eval $ac_try) 2>&5
14122   ac_status=$?
14123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124   (exit $ac_status); }; } &&
14125          { ac_try='test -s conftest.$ac_objext'
14126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127   (eval $ac_try) 2>&5
14128   ac_status=$?
14129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130   (exit $ac_status); }; }; then
14131   ac_cv_type_int=yes
14132 else
14133   echo "$as_me: failed program was:" >&5
14134 sed 's/^/| /' conftest.$ac_ext >&5
14135
14136 ac_cv_type_int=no
14137 fi
14138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14139 fi
14140 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14141 echo "${ECHO_T}$ac_cv_type_int" >&6
14142
14143 echo "$as_me:$LINENO: checking size of int" >&5
14144 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14145 if test "${ac_cv_sizeof_int+set}" = set; then
14146   echo $ECHO_N "(cached) $ECHO_C" >&6
14147 else
14148   if test "$ac_cv_type_int" = yes; then
14149   # The cast to unsigned long works around a bug in the HP C Compiler
14150   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14151   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14152   # This bug is HP SR number 8606223364.
14153   if test "$cross_compiling" = yes; then
14154   # Depending upon the size, compute the lo and hi bounds.
14155 cat >conftest.$ac_ext <<_ACEOF
14156 /* confdefs.h.  */
14157 _ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h.  */
14161 $ac_includes_default
14162 int
14163 main ()
14164 {
14165 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14166 test_array [0] = 0
14167
14168   ;
14169   return 0;
14170 }
14171 _ACEOF
14172 rm -f conftest.$ac_objext
14173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14174   (eval $ac_compile) 2>conftest.er1
14175   ac_status=$?
14176   grep -v '^ *+' conftest.er1 >conftest.err
14177   rm -f conftest.er1
14178   cat conftest.err >&5
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); } &&
14181          { ac_try='test -z "$ac_c_werror_flag"
14182                          || test ! -s conftest.err'
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); }; } &&
14188          { ac_try='test -s conftest.$ac_objext'
14189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190   (eval $ac_try) 2>&5
14191   ac_status=$?
14192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193   (exit $ac_status); }; }; then
14194   ac_lo=0 ac_mid=0
14195   while :; do
14196     cat >conftest.$ac_ext <<_ACEOF
14197 /* confdefs.h.  */
14198 _ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h.  */
14202 $ac_includes_default
14203 int
14204 main ()
14205 {
14206 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14207 test_array [0] = 0
14208
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213 rm -f conftest.$ac_objext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215   (eval $ac_compile) 2>conftest.er1
14216   ac_status=$?
14217   grep -v '^ *+' conftest.er1 >conftest.err
14218   rm -f conftest.er1
14219   cat conftest.err >&5
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); } &&
14222          { ac_try='test -z "$ac_c_werror_flag"
14223                          || test ! -s conftest.err'
14224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225   (eval $ac_try) 2>&5
14226   ac_status=$?
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); }; } &&
14229          { ac_try='test -s conftest.$ac_objext'
14230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231   (eval $ac_try) 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); }; }; then
14235   ac_hi=$ac_mid; break
14236 else
14237   echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14239
14240 ac_lo=`expr $ac_mid + 1`
14241                     if test $ac_lo -le $ac_mid; then
14242                       ac_lo= ac_hi=
14243                       break
14244                     fi
14245                     ac_mid=`expr 2 '*' $ac_mid + 1`
14246 fi
14247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14248   done
14249 else
14250   echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14252
14253 cat >conftest.$ac_ext <<_ACEOF
14254 /* confdefs.h.  */
14255 _ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h.  */
14259 $ac_includes_default
14260 int
14261 main ()
14262 {
14263 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14264 test_array [0] = 0
14265
14266   ;
14267   return 0;
14268 }
14269 _ACEOF
14270 rm -f conftest.$ac_objext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272   (eval $ac_compile) 2>conftest.er1
14273   ac_status=$?
14274   grep -v '^ *+' conftest.er1 >conftest.err
14275   rm -f conftest.er1
14276   cat conftest.err >&5
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); } &&
14279          { ac_try='test -z "$ac_c_werror_flag"
14280                          || test ! -s conftest.err'
14281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282   (eval $ac_try) 2>&5
14283   ac_status=$?
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); }; } &&
14286          { ac_try='test -s conftest.$ac_objext'
14287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288   (eval $ac_try) 2>&5
14289   ac_status=$?
14290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291   (exit $ac_status); }; }; then
14292   ac_hi=-1 ac_mid=-1
14293   while :; do
14294     cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300 $ac_includes_default
14301 int
14302 main ()
14303 {
14304 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14305 test_array [0] = 0
14306
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 rm -f conftest.$ac_objext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14313   (eval $ac_compile) 2>conftest.er1
14314   ac_status=$?
14315   grep -v '^ *+' conftest.er1 >conftest.err
14316   rm -f conftest.er1
14317   cat conftest.err >&5
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); } &&
14320          { ac_try='test -z "$ac_c_werror_flag"
14321                          || test ! -s conftest.err'
14322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323   (eval $ac_try) 2>&5
14324   ac_status=$?
14325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326   (exit $ac_status); }; } &&
14327          { ac_try='test -s conftest.$ac_objext'
14328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329   (eval $ac_try) 2>&5
14330   ac_status=$?
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); }; }; then
14333   ac_lo=$ac_mid; break
14334 else
14335   echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14337
14338 ac_hi=`expr '(' $ac_mid ')' - 1`
14339                        if test $ac_mid -le $ac_hi; then
14340                          ac_lo= ac_hi=
14341                          break
14342                        fi
14343                        ac_mid=`expr 2 '*' $ac_mid`
14344 fi
14345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14346   done
14347 else
14348   echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14350
14351 ac_lo= ac_hi=
14352 fi
14353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14354 fi
14355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14356 # Binary search between lo and hi bounds.
14357 while test "x$ac_lo" != "x$ac_hi"; do
14358   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14359   cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h.  */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h.  */
14365 $ac_includes_default
14366 int
14367 main ()
14368 {
14369 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14370 test_array [0] = 0
14371
14372   ;
14373   return 0;
14374 }
14375 _ACEOF
14376 rm -f conftest.$ac_objext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14378   (eval $ac_compile) 2>conftest.er1
14379   ac_status=$?
14380   grep -v '^ *+' conftest.er1 >conftest.err
14381   rm -f conftest.er1
14382   cat conftest.err >&5
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); } &&
14385          { ac_try='test -z "$ac_c_werror_flag"
14386                          || test ! -s conftest.err'
14387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14388   (eval $ac_try) 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; } &&
14392          { ac_try='test -s conftest.$ac_objext'
14393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394   (eval $ac_try) 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; }; then
14398   ac_hi=$ac_mid
14399 else
14400   echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403 ac_lo=`expr '(' $ac_mid ')' + 1`
14404 fi
14405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14406 done
14407 case $ac_lo in
14408 ?*) ac_cv_sizeof_int=$ac_lo;;
14409 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14410 See \`config.log' for more details." >&5
14411 echo "$as_me: error: cannot compute sizeof (int), 77
14412 See \`config.log' for more details." >&2;}
14413    { (exit 1); exit 1; }; } ;;
14414 esac
14415 else
14416   if test "$cross_compiling" = yes; then
14417   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14418 See \`config.log' for more details." >&5
14419 echo "$as_me: error: cannot run test program while cross compiling
14420 See \`config.log' for more details." >&2;}
14421    { (exit 1); exit 1; }; }
14422 else
14423   cat >conftest.$ac_ext <<_ACEOF
14424 /* confdefs.h.  */
14425 _ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h.  */
14429 $ac_includes_default
14430 long longval () { return (long) (sizeof (int)); }
14431 unsigned long ulongval () { return (long) (sizeof (int)); }
14432 #include <stdio.h>
14433 #include <stdlib.h>
14434 int
14435 main ()
14436 {
14437
14438   FILE *f = fopen ("conftest.val", "w");
14439   if (! f)
14440     exit (1);
14441   if (((long) (sizeof (int))) < 0)
14442     {
14443       long i = longval ();
14444       if (i != ((long) (sizeof (int))))
14445         exit (1);
14446       fprintf (f, "%ld\n", i);
14447     }
14448   else
14449     {
14450       unsigned long i = ulongval ();
14451       if (i != ((long) (sizeof (int))))
14452         exit (1);
14453       fprintf (f, "%lu\n", i);
14454     }
14455   exit (ferror (f) || fclose (f) != 0);
14456
14457   ;
14458   return 0;
14459 }
14460 _ACEOF
14461 rm -f conftest$ac_exeext
14462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14463   (eval $ac_link) 2>&5
14464   ac_status=$?
14465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468   (eval $ac_try) 2>&5
14469   ac_status=$?
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); }; }; then
14472   ac_cv_sizeof_int=`cat conftest.val`
14473 else
14474   echo "$as_me: program exited with status $ac_status" >&5
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14477
14478 ( exit $ac_status )
14479 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14480 See \`config.log' for more details." >&5
14481 echo "$as_me: error: cannot compute sizeof (int), 77
14482 See \`config.log' for more details." >&2;}
14483    { (exit 1); exit 1; }; }
14484 fi
14485 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14486 fi
14487 fi
14488 rm -f conftest.val
14489 else
14490   ac_cv_sizeof_int=0
14491 fi
14492 fi
14493 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14494 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14495 cat >>confdefs.h <<_ACEOF
14496 #define SIZEOF_INT $ac_cv_sizeof_int
14497 _ACEOF
14498
14499
14500 echo "$as_me:$LINENO: checking for long int" >&5
14501 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14502 if test "${ac_cv_type_long_int+set}" = set; then
14503   echo $ECHO_N "(cached) $ECHO_C" >&6
14504 else
14505   cat >conftest.$ac_ext <<_ACEOF
14506 /* confdefs.h.  */
14507 _ACEOF
14508 cat confdefs.h >>conftest.$ac_ext
14509 cat >>conftest.$ac_ext <<_ACEOF
14510 /* end confdefs.h.  */
14511 $ac_includes_default
14512 int
14513 main ()
14514 {
14515 if ((long int *) 0)
14516   return 0;
14517 if (sizeof (long int))
14518   return 0;
14519   ;
14520   return 0;
14521 }
14522 _ACEOF
14523 rm -f conftest.$ac_objext
14524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14525   (eval $ac_compile) 2>conftest.er1
14526   ac_status=$?
14527   grep -v '^ *+' conftest.er1 >conftest.err
14528   rm -f conftest.er1
14529   cat conftest.err >&5
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } &&
14532          { ac_try='test -z "$ac_c_werror_flag"
14533                          || test ! -s conftest.err'
14534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535   (eval $ac_try) 2>&5
14536   ac_status=$?
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); }; } &&
14539          { ac_try='test -s conftest.$ac_objext'
14540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541   (eval $ac_try) 2>&5
14542   ac_status=$?
14543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544   (exit $ac_status); }; }; then
14545   ac_cv_type_long_int=yes
14546 else
14547   echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14549
14550 ac_cv_type_long_int=no
14551 fi
14552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14553 fi
14554 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14555 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14556
14557 echo "$as_me:$LINENO: checking size of long int" >&5
14558 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14559 if test "${ac_cv_sizeof_long_int+set}" = set; then
14560   echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562   if test "$ac_cv_type_long_int" = yes; then
14563   # The cast to unsigned long works around a bug in the HP C Compiler
14564   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14565   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14566   # This bug is HP SR number 8606223364.
14567   if test "$cross_compiling" = yes; then
14568   # Depending upon the size, compute the lo and hi bounds.
14569 cat >conftest.$ac_ext <<_ACEOF
14570 /* confdefs.h.  */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h.  */
14575 $ac_includes_default
14576 int
14577 main ()
14578 {
14579 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14580 test_array [0] = 0
14581
14582   ;
14583   return 0;
14584 }
14585 _ACEOF
14586 rm -f conftest.$ac_objext
14587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14588   (eval $ac_compile) 2>conftest.er1
14589   ac_status=$?
14590   grep -v '^ *+' conftest.er1 >conftest.err
14591   rm -f conftest.er1
14592   cat conftest.err >&5
14593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594   (exit $ac_status); } &&
14595          { ac_try='test -z "$ac_c_werror_flag"
14596                          || test ! -s conftest.err'
14597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598   (eval $ac_try) 2>&5
14599   ac_status=$?
14600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601   (exit $ac_status); }; } &&
14602          { ac_try='test -s conftest.$ac_objext'
14603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604   (eval $ac_try) 2>&5
14605   ac_status=$?
14606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607   (exit $ac_status); }; }; then
14608   ac_lo=0 ac_mid=0
14609   while :; do
14610     cat >conftest.$ac_ext <<_ACEOF
14611 /* confdefs.h.  */
14612 _ACEOF
14613 cat confdefs.h >>conftest.$ac_ext
14614 cat >>conftest.$ac_ext <<_ACEOF
14615 /* end confdefs.h.  */
14616 $ac_includes_default
14617 int
14618 main ()
14619 {
14620 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14621 test_array [0] = 0
14622
14623   ;
14624   return 0;
14625 }
14626 _ACEOF
14627 rm -f conftest.$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629   (eval $ac_compile) 2>conftest.er1
14630   ac_status=$?
14631   grep -v '^ *+' conftest.er1 >conftest.err
14632   rm -f conftest.er1
14633   cat conftest.err >&5
14634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635   (exit $ac_status); } &&
14636          { ac_try='test -z "$ac_c_werror_flag"
14637                          || test ! -s conftest.err'
14638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14639   (eval $ac_try) 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); }; } &&
14643          { ac_try='test -s conftest.$ac_objext'
14644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645   (eval $ac_try) 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); }; }; then
14649   ac_hi=$ac_mid; break
14650 else
14651   echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14653
14654 ac_lo=`expr $ac_mid + 1`
14655                     if test $ac_lo -le $ac_mid; then
14656                       ac_lo= ac_hi=
14657                       break
14658                     fi
14659                     ac_mid=`expr 2 '*' $ac_mid + 1`
14660 fi
14661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14662   done
14663 else
14664   echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667 cat >conftest.$ac_ext <<_ACEOF
14668 /* confdefs.h.  */
14669 _ACEOF
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h.  */
14673 $ac_includes_default
14674 int
14675 main ()
14676 {
14677 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14678 test_array [0] = 0
14679
14680   ;
14681   return 0;
14682 }
14683 _ACEOF
14684 rm -f conftest.$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686   (eval $ac_compile) 2>conftest.er1
14687   ac_status=$?
14688   grep -v '^ *+' conftest.er1 >conftest.err
14689   rm -f conftest.er1
14690   cat conftest.err >&5
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); } &&
14693          { ac_try='test -z "$ac_c_werror_flag"
14694                          || test ! -s conftest.err'
14695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696   (eval $ac_try) 2>&5
14697   ac_status=$?
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); }; } &&
14700          { ac_try='test -s conftest.$ac_objext'
14701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702   (eval $ac_try) 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); }; }; then
14706   ac_hi=-1 ac_mid=-1
14707   while :; do
14708     cat >conftest.$ac_ext <<_ACEOF
14709 /* confdefs.h.  */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h.  */
14714 $ac_includes_default
14715 int
14716 main ()
14717 {
14718 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14719 test_array [0] = 0
14720
14721   ;
14722   return 0;
14723 }
14724 _ACEOF
14725 rm -f conftest.$ac_objext
14726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14727   (eval $ac_compile) 2>conftest.er1
14728   ac_status=$?
14729   grep -v '^ *+' conftest.er1 >conftest.err
14730   rm -f conftest.er1
14731   cat conftest.err >&5
14732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733   (exit $ac_status); } &&
14734          { ac_try='test -z "$ac_c_werror_flag"
14735                          || test ! -s conftest.err'
14736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737   (eval $ac_try) 2>&5
14738   ac_status=$?
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   (exit $ac_status); }; } &&
14741          { ac_try='test -s conftest.$ac_objext'
14742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743   (eval $ac_try) 2>&5
14744   ac_status=$?
14745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746   (exit $ac_status); }; }; then
14747   ac_lo=$ac_mid; break
14748 else
14749   echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.$ac_ext >&5
14751
14752 ac_hi=`expr '(' $ac_mid ')' - 1`
14753                        if test $ac_mid -le $ac_hi; then
14754                          ac_lo= ac_hi=
14755                          break
14756                        fi
14757                        ac_mid=`expr 2 '*' $ac_mid`
14758 fi
14759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14760   done
14761 else
14762   echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14764
14765 ac_lo= ac_hi=
14766 fi
14767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14768 fi
14769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14770 # Binary search between lo and hi bounds.
14771 while test "x$ac_lo" != "x$ac_hi"; do
14772   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14773   cat >conftest.$ac_ext <<_ACEOF
14774 /* confdefs.h.  */
14775 _ACEOF
14776 cat confdefs.h >>conftest.$ac_ext
14777 cat >>conftest.$ac_ext <<_ACEOF
14778 /* end confdefs.h.  */
14779 $ac_includes_default
14780 int
14781 main ()
14782 {
14783 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14784 test_array [0] = 0
14785
14786   ;
14787   return 0;
14788 }
14789 _ACEOF
14790 rm -f conftest.$ac_objext
14791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14792   (eval $ac_compile) 2>conftest.er1
14793   ac_status=$?
14794   grep -v '^ *+' conftest.er1 >conftest.err
14795   rm -f conftest.er1
14796   cat conftest.err >&5
14797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798   (exit $ac_status); } &&
14799          { ac_try='test -z "$ac_c_werror_flag"
14800                          || test ! -s conftest.err'
14801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802   (eval $ac_try) 2>&5
14803   ac_status=$?
14804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805   (exit $ac_status); }; } &&
14806          { ac_try='test -s conftest.$ac_objext'
14807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808   (eval $ac_try) 2>&5
14809   ac_status=$?
14810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811   (exit $ac_status); }; }; then
14812   ac_hi=$ac_mid
14813 else
14814   echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14816
14817 ac_lo=`expr '(' $ac_mid ')' + 1`
14818 fi
14819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14820 done
14821 case $ac_lo in
14822 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14823 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14824 See \`config.log' for more details." >&5
14825 echo "$as_me: error: cannot compute sizeof (long int), 77
14826 See \`config.log' for more details." >&2;}
14827    { (exit 1); exit 1; }; } ;;
14828 esac
14829 else
14830   if test "$cross_compiling" = yes; then
14831   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14832 See \`config.log' for more details." >&5
14833 echo "$as_me: error: cannot run test program while cross compiling
14834 See \`config.log' for more details." >&2;}
14835    { (exit 1); exit 1; }; }
14836 else
14837   cat >conftest.$ac_ext <<_ACEOF
14838 /* confdefs.h.  */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h.  */
14843 $ac_includes_default
14844 long longval () { return (long) (sizeof (long int)); }
14845 unsigned long ulongval () { return (long) (sizeof (long int)); }
14846 #include <stdio.h>
14847 #include <stdlib.h>
14848 int
14849 main ()
14850 {
14851
14852   FILE *f = fopen ("conftest.val", "w");
14853   if (! f)
14854     exit (1);
14855   if (((long) (sizeof (long int))) < 0)
14856     {
14857       long i = longval ();
14858       if (i != ((long) (sizeof (long int))))
14859         exit (1);
14860       fprintf (f, "%ld\n", i);
14861     }
14862   else
14863     {
14864       unsigned long i = ulongval ();
14865       if (i != ((long) (sizeof (long int))))
14866         exit (1);
14867       fprintf (f, "%lu\n", i);
14868     }
14869   exit (ferror (f) || fclose (f) != 0);
14870
14871   ;
14872   return 0;
14873 }
14874 _ACEOF
14875 rm -f conftest$ac_exeext
14876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14877   (eval $ac_link) 2>&5
14878   ac_status=$?
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882   (eval $ac_try) 2>&5
14883   ac_status=$?
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); }; }; then
14886   ac_cv_sizeof_long_int=`cat conftest.val`
14887 else
14888   echo "$as_me: program exited with status $ac_status" >&5
14889 echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14891
14892 ( exit $ac_status )
14893 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14894 See \`config.log' for more details." >&5
14895 echo "$as_me: error: cannot compute sizeof (long int), 77
14896 See \`config.log' for more details." >&2;}
14897    { (exit 1); exit 1; }; }
14898 fi
14899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14900 fi
14901 fi
14902 rm -f conftest.val
14903 else
14904   ac_cv_sizeof_long_int=0
14905 fi
14906 fi
14907 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14908 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14909 cat >>confdefs.h <<_ACEOF
14910 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14911 _ACEOF
14912
14913
14914 echo "$as_me:$LINENO: checking for long long int" >&5
14915 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14916 if test "${ac_cv_type_long_long_int+set}" = set; then
14917   echo $ECHO_N "(cached) $ECHO_C" >&6
14918 else
14919   cat >conftest.$ac_ext <<_ACEOF
14920 /* confdefs.h.  */
14921 _ACEOF
14922 cat confdefs.h >>conftest.$ac_ext
14923 cat >>conftest.$ac_ext <<_ACEOF
14924 /* end confdefs.h.  */
14925 $ac_includes_default
14926 int
14927 main ()
14928 {
14929 if ((long long int *) 0)
14930   return 0;
14931 if (sizeof (long long int))
14932   return 0;
14933   ;
14934   return 0;
14935 }
14936 _ACEOF
14937 rm -f conftest.$ac_objext
14938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14939   (eval $ac_compile) 2>conftest.er1
14940   ac_status=$?
14941   grep -v '^ *+' conftest.er1 >conftest.err
14942   rm -f conftest.er1
14943   cat conftest.err >&5
14944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945   (exit $ac_status); } &&
14946          { ac_try='test -z "$ac_c_werror_flag"
14947                          || test ! -s conftest.err'
14948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14949   (eval $ac_try) 2>&5
14950   ac_status=$?
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   (exit $ac_status); }; } &&
14953          { ac_try='test -s conftest.$ac_objext'
14954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955   (eval $ac_try) 2>&5
14956   ac_status=$?
14957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958   (exit $ac_status); }; }; then
14959   ac_cv_type_long_long_int=yes
14960 else
14961   echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14963
14964 ac_cv_type_long_long_int=no
14965 fi
14966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14967 fi
14968 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14969 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14970
14971 echo "$as_me:$LINENO: checking size of long long int" >&5
14972 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14973 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14974   echo $ECHO_N "(cached) $ECHO_C" >&6
14975 else
14976   if test "$ac_cv_type_long_long_int" = yes; then
14977   # The cast to unsigned long works around a bug in the HP C Compiler
14978   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14979   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14980   # This bug is HP SR number 8606223364.
14981   if test "$cross_compiling" = yes; then
14982   # Depending upon the size, compute the lo and hi bounds.
14983 cat >conftest.$ac_ext <<_ACEOF
14984 /* confdefs.h.  */
14985 _ACEOF
14986 cat confdefs.h >>conftest.$ac_ext
14987 cat >>conftest.$ac_ext <<_ACEOF
14988 /* end confdefs.h.  */
14989 $ac_includes_default
14990 int
14991 main ()
14992 {
14993 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14994 test_array [0] = 0
14995
14996   ;
14997   return 0;
14998 }
14999 _ACEOF
15000 rm -f conftest.$ac_objext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15002   (eval $ac_compile) 2>conftest.er1
15003   ac_status=$?
15004   grep -v '^ *+' conftest.er1 >conftest.err
15005   rm -f conftest.er1
15006   cat conftest.err >&5
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   (exit $ac_status); } &&
15009          { ac_try='test -z "$ac_c_werror_flag"
15010                          || test ! -s conftest.err'
15011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15012   (eval $ac_try) 2>&5
15013   ac_status=$?
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); }; } &&
15016          { ac_try='test -s conftest.$ac_objext'
15017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018   (eval $ac_try) 2>&5
15019   ac_status=$?
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); }; }; then
15022   ac_lo=0 ac_mid=0
15023   while :; do
15024     cat >conftest.$ac_ext <<_ACEOF
15025 /* confdefs.h.  */
15026 _ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h.  */
15030 $ac_includes_default
15031 int
15032 main ()
15033 {
15034 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15035 test_array [0] = 0
15036
15037   ;
15038   return 0;
15039 }
15040 _ACEOF
15041 rm -f conftest.$ac_objext
15042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15043   (eval $ac_compile) 2>conftest.er1
15044   ac_status=$?
15045   grep -v '^ *+' conftest.er1 >conftest.err
15046   rm -f conftest.er1
15047   cat conftest.err >&5
15048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15049   (exit $ac_status); } &&
15050          { ac_try='test -z "$ac_c_werror_flag"
15051                          || test ! -s conftest.err'
15052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053   (eval $ac_try) 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); }; } &&
15057          { ac_try='test -s conftest.$ac_objext'
15058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059   (eval $ac_try) 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); }; }; then
15063   ac_hi=$ac_mid; break
15064 else
15065   echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15067
15068 ac_lo=`expr $ac_mid + 1`
15069                     if test $ac_lo -le $ac_mid; then
15070                       ac_lo= ac_hi=
15071                       break
15072                     fi
15073                     ac_mid=`expr 2 '*' $ac_mid + 1`
15074 fi
15075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15076   done
15077 else
15078   echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15080
15081 cat >conftest.$ac_ext <<_ACEOF
15082 /* confdefs.h.  */
15083 _ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h.  */
15087 $ac_includes_default
15088 int
15089 main ()
15090 {
15091 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
15092 test_array [0] = 0
15093
15094   ;
15095   return 0;
15096 }
15097 _ACEOF
15098 rm -f conftest.$ac_objext
15099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15100   (eval $ac_compile) 2>conftest.er1
15101   ac_status=$?
15102   grep -v '^ *+' conftest.er1 >conftest.err
15103   rm -f conftest.er1
15104   cat conftest.err >&5
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); } &&
15107          { ac_try='test -z "$ac_c_werror_flag"
15108                          || test ! -s conftest.err'
15109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110   (eval $ac_try) 2>&5
15111   ac_status=$?
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); }; } &&
15114          { ac_try='test -s conftest.$ac_objext'
15115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116   (eval $ac_try) 2>&5
15117   ac_status=$?
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); }; }; then
15120   ac_hi=-1 ac_mid=-1
15121   while :; do
15122     cat >conftest.$ac_ext <<_ACEOF
15123 /* confdefs.h.  */
15124 _ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h.  */
15128 $ac_includes_default
15129 int
15130 main ()
15131 {
15132 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
15133 test_array [0] = 0
15134
15135   ;
15136   return 0;
15137 }
15138 _ACEOF
15139 rm -f conftest.$ac_objext
15140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15141   (eval $ac_compile) 2>conftest.er1
15142   ac_status=$?
15143   grep -v '^ *+' conftest.er1 >conftest.err
15144   rm -f conftest.er1
15145   cat conftest.err >&5
15146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147   (exit $ac_status); } &&
15148          { ac_try='test -z "$ac_c_werror_flag"
15149                          || test ! -s conftest.err'
15150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151   (eval $ac_try) 2>&5
15152   ac_status=$?
15153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154   (exit $ac_status); }; } &&
15155          { ac_try='test -s conftest.$ac_objext'
15156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157   (eval $ac_try) 2>&5
15158   ac_status=$?
15159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); }; }; then
15161   ac_lo=$ac_mid; break
15162 else
15163   echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15165
15166 ac_hi=`expr '(' $ac_mid ')' - 1`
15167                        if test $ac_mid -le $ac_hi; then
15168                          ac_lo= ac_hi=
15169                          break
15170                        fi
15171                        ac_mid=`expr 2 '*' $ac_mid`
15172 fi
15173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15174   done
15175 else
15176   echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15178
15179 ac_lo= ac_hi=
15180 fi
15181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15182 fi
15183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15184 # Binary search between lo and hi bounds.
15185 while test "x$ac_lo" != "x$ac_hi"; do
15186   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15187   cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h.  */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h.  */
15193 $ac_includes_default
15194 int
15195 main ()
15196 {
15197 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
15198 test_array [0] = 0
15199
15200   ;
15201   return 0;
15202 }
15203 _ACEOF
15204 rm -f conftest.$ac_objext
15205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15206   (eval $ac_compile) 2>conftest.er1
15207   ac_status=$?
15208   grep -v '^ *+' conftest.er1 >conftest.err
15209   rm -f conftest.er1
15210   cat conftest.err >&5
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); } &&
15213          { ac_try='test -z "$ac_c_werror_flag"
15214                          || test ! -s conftest.err'
15215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216   (eval $ac_try) 2>&5
15217   ac_status=$?
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   (exit $ac_status); }; } &&
15220          { ac_try='test -s conftest.$ac_objext'
15221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222   (eval $ac_try) 2>&5
15223   ac_status=$?
15224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225   (exit $ac_status); }; }; then
15226   ac_hi=$ac_mid
15227 else
15228   echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15230
15231 ac_lo=`expr '(' $ac_mid ')' + 1`
15232 fi
15233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15234 done
15235 case $ac_lo in
15236 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
15237 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15238 See \`config.log' for more details." >&5
15239 echo "$as_me: error: cannot compute sizeof (long long int), 77
15240 See \`config.log' for more details." >&2;}
15241    { (exit 1); exit 1; }; } ;;
15242 esac
15243 else
15244   if test "$cross_compiling" = yes; then
15245   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15246 See \`config.log' for more details." >&5
15247 echo "$as_me: error: cannot run test program while cross compiling
15248 See \`config.log' for more details." >&2;}
15249    { (exit 1); exit 1; }; }
15250 else
15251   cat >conftest.$ac_ext <<_ACEOF
15252 /* confdefs.h.  */
15253 _ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h.  */
15257 $ac_includes_default
15258 long longval () { return (long) (sizeof (long long int)); }
15259 unsigned long ulongval () { return (long) (sizeof (long long int)); }
15260 #include <stdio.h>
15261 #include <stdlib.h>
15262 int
15263 main ()
15264 {
15265
15266   FILE *f = fopen ("conftest.val", "w");
15267   if (! f)
15268     exit (1);
15269   if (((long) (sizeof (long long int))) < 0)
15270     {
15271       long i = longval ();
15272       if (i != ((long) (sizeof (long long int))))
15273         exit (1);
15274       fprintf (f, "%ld\n", i);
15275     }
15276   else
15277     {
15278       unsigned long i = ulongval ();
15279       if (i != ((long) (sizeof (long long int))))
15280         exit (1);
15281       fprintf (f, "%lu\n", i);
15282     }
15283   exit (ferror (f) || fclose (f) != 0);
15284
15285   ;
15286   return 0;
15287 }
15288 _ACEOF
15289 rm -f conftest$ac_exeext
15290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15291   (eval $ac_link) 2>&5
15292   ac_status=$?
15293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296   (eval $ac_try) 2>&5
15297   ac_status=$?
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); }; }; then
15300   ac_cv_sizeof_long_long_int=`cat conftest.val`
15301 else
15302   echo "$as_me: program exited with status $ac_status" >&5
15303 echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15305
15306 ( exit $ac_status )
15307 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15308 See \`config.log' for more details." >&5
15309 echo "$as_me: error: cannot compute sizeof (long long int), 77
15310 See \`config.log' for more details." >&2;}
15311    { (exit 1); exit 1; }; }
15312 fi
15313 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15314 fi
15315 fi
15316 rm -f conftest.val
15317 else
15318   ac_cv_sizeof_long_long_int=0
15319 fi
15320 fi
15321 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
15322 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
15323 cat >>confdefs.h <<_ACEOF
15324 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
15325 _ACEOF
15326
15327
15328 echo "$as_me:$LINENO: checking for int *" >&5
15329 echo $ECHO_N "checking for int *... $ECHO_C" >&6
15330 if test "${ac_cv_type_int_p+set}" = set; then
15331   echo $ECHO_N "(cached) $ECHO_C" >&6
15332 else
15333   cat >conftest.$ac_ext <<_ACEOF
15334 /* confdefs.h.  */
15335 _ACEOF
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h.  */
15339 $ac_includes_default
15340 int
15341 main ()
15342 {
15343 if ((int * *) 0)
15344   return 0;
15345 if (sizeof (int *))
15346   return 0;
15347   ;
15348   return 0;
15349 }
15350 _ACEOF
15351 rm -f conftest.$ac_objext
15352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15353   (eval $ac_compile) 2>conftest.er1
15354   ac_status=$?
15355   grep -v '^ *+' conftest.er1 >conftest.err
15356   rm -f conftest.er1
15357   cat conftest.err >&5
15358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359   (exit $ac_status); } &&
15360          { ac_try='test -z "$ac_c_werror_flag"
15361                          || test ! -s conftest.err'
15362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15363   (eval $ac_try) 2>&5
15364   ac_status=$?
15365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366   (exit $ac_status); }; } &&
15367          { ac_try='test -s conftest.$ac_objext'
15368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369   (eval $ac_try) 2>&5
15370   ac_status=$?
15371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372   (exit $ac_status); }; }; then
15373   ac_cv_type_int_p=yes
15374 else
15375   echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15377
15378 ac_cv_type_int_p=no
15379 fi
15380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15381 fi
15382 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
15383 echo "${ECHO_T}$ac_cv_type_int_p" >&6
15384
15385 echo "$as_me:$LINENO: checking size of int *" >&5
15386 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
15387 if test "${ac_cv_sizeof_int_p+set}" = set; then
15388   echo $ECHO_N "(cached) $ECHO_C" >&6
15389 else
15390   if test "$ac_cv_type_int_p" = yes; then
15391   # The cast to unsigned long works around a bug in the HP C Compiler
15392   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15393   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15394   # This bug is HP SR number 8606223364.
15395   if test "$cross_compiling" = yes; then
15396   # Depending upon the size, compute the lo and hi bounds.
15397 cat >conftest.$ac_ext <<_ACEOF
15398 /* confdefs.h.  */
15399 _ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h.  */
15403 $ac_includes_default
15404 int
15405 main ()
15406 {
15407 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
15408 test_array [0] = 0
15409
15410   ;
15411   return 0;
15412 }
15413 _ACEOF
15414 rm -f conftest.$ac_objext
15415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15416   (eval $ac_compile) 2>conftest.er1
15417   ac_status=$?
15418   grep -v '^ *+' conftest.er1 >conftest.err
15419   rm -f conftest.er1
15420   cat conftest.err >&5
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); } &&
15423          { ac_try='test -z "$ac_c_werror_flag"
15424                          || test ! -s conftest.err'
15425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426   (eval $ac_try) 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; } &&
15430          { ac_try='test -s conftest.$ac_objext'
15431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432   (eval $ac_try) 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); }; }; then
15436   ac_lo=0 ac_mid=0
15437   while :; do
15438     cat >conftest.$ac_ext <<_ACEOF
15439 /* confdefs.h.  */
15440 _ACEOF
15441 cat confdefs.h >>conftest.$ac_ext
15442 cat >>conftest.$ac_ext <<_ACEOF
15443 /* end confdefs.h.  */
15444 $ac_includes_default
15445 int
15446 main ()
15447 {
15448 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15449 test_array [0] = 0
15450
15451   ;
15452   return 0;
15453 }
15454 _ACEOF
15455 rm -f conftest.$ac_objext
15456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15457   (eval $ac_compile) 2>conftest.er1
15458   ac_status=$?
15459   grep -v '^ *+' conftest.er1 >conftest.err
15460   rm -f conftest.er1
15461   cat conftest.err >&5
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } &&
15464          { ac_try='test -z "$ac_c_werror_flag"
15465                          || test ! -s conftest.err'
15466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15467   (eval $ac_try) 2>&5
15468   ac_status=$?
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   (exit $ac_status); }; } &&
15471          { ac_try='test -s conftest.$ac_objext'
15472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473   (eval $ac_try) 2>&5
15474   ac_status=$?
15475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476   (exit $ac_status); }; }; then
15477   ac_hi=$ac_mid; break
15478 else
15479   echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15481
15482 ac_lo=`expr $ac_mid + 1`
15483                     if test $ac_lo -le $ac_mid; then
15484                       ac_lo= ac_hi=
15485                       break
15486                     fi
15487                     ac_mid=`expr 2 '*' $ac_mid + 1`
15488 fi
15489 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15490   done
15491 else
15492   echo "$as_me: failed program was:" >&5
15493 sed 's/^/| /' conftest.$ac_ext >&5
15494
15495 cat >conftest.$ac_ext <<_ACEOF
15496 /* confdefs.h.  */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h.  */
15501 $ac_includes_default
15502 int
15503 main ()
15504 {
15505 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15506 test_array [0] = 0
15507
15508   ;
15509   return 0;
15510 }
15511 _ACEOF
15512 rm -f conftest.$ac_objext
15513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15514   (eval $ac_compile) 2>conftest.er1
15515   ac_status=$?
15516   grep -v '^ *+' conftest.er1 >conftest.err
15517   rm -f conftest.er1
15518   cat conftest.err >&5
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); } &&
15521          { ac_try='test -z "$ac_c_werror_flag"
15522                          || test ! -s conftest.err'
15523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524   (eval $ac_try) 2>&5
15525   ac_status=$?
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); }; } &&
15528          { ac_try='test -s conftest.$ac_objext'
15529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530   (eval $ac_try) 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; }; then
15534   ac_hi=-1 ac_mid=-1
15535   while :; do
15536     cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h.  */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h.  */
15542 $ac_includes_default
15543 int
15544 main ()
15545 {
15546 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15547 test_array [0] = 0
15548
15549   ;
15550   return 0;
15551 }
15552 _ACEOF
15553 rm -f conftest.$ac_objext
15554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15555   (eval $ac_compile) 2>conftest.er1
15556   ac_status=$?
15557   grep -v '^ *+' conftest.er1 >conftest.err
15558   rm -f conftest.er1
15559   cat conftest.err >&5
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); } &&
15562          { ac_try='test -z "$ac_c_werror_flag"
15563                          || test ! -s conftest.err'
15564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565   (eval $ac_try) 2>&5
15566   ac_status=$?
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); }; } &&
15569          { ac_try='test -s conftest.$ac_objext'
15570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571   (eval $ac_try) 2>&5
15572   ac_status=$?
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); }; }; then
15575   ac_lo=$ac_mid; break
15576 else
15577   echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15579
15580 ac_hi=`expr '(' $ac_mid ')' - 1`
15581                        if test $ac_mid -le $ac_hi; then
15582                          ac_lo= ac_hi=
15583                          break
15584                        fi
15585                        ac_mid=`expr 2 '*' $ac_mid`
15586 fi
15587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15588   done
15589 else
15590   echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15592
15593 ac_lo= ac_hi=
15594 fi
15595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15596 fi
15597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15598 # Binary search between lo and hi bounds.
15599 while test "x$ac_lo" != "x$ac_hi"; do
15600   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15601   cat >conftest.$ac_ext <<_ACEOF
15602 /* confdefs.h.  */
15603 _ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h.  */
15607 $ac_includes_default
15608 int
15609 main ()
15610 {
15611 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15612 test_array [0] = 0
15613
15614   ;
15615   return 0;
15616 }
15617 _ACEOF
15618 rm -f conftest.$ac_objext
15619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15620   (eval $ac_compile) 2>conftest.er1
15621   ac_status=$?
15622   grep -v '^ *+' conftest.er1 >conftest.err
15623   rm -f conftest.er1
15624   cat conftest.err >&5
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); } &&
15627          { ac_try='test -z "$ac_c_werror_flag"
15628                          || test ! -s conftest.err'
15629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630   (eval $ac_try) 2>&5
15631   ac_status=$?
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); }; } &&
15634          { ac_try='test -s conftest.$ac_objext'
15635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15636   (eval $ac_try) 2>&5
15637   ac_status=$?
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); }; }; then
15640   ac_hi=$ac_mid
15641 else
15642   echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15644
15645 ac_lo=`expr '(' $ac_mid ')' + 1`
15646 fi
15647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15648 done
15649 case $ac_lo in
15650 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15651 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15652 See \`config.log' for more details." >&5
15653 echo "$as_me: error: cannot compute sizeof (int *), 77
15654 See \`config.log' for more details." >&2;}
15655    { (exit 1); exit 1; }; } ;;
15656 esac
15657 else
15658   if test "$cross_compiling" = yes; then
15659   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15660 See \`config.log' for more details." >&5
15661 echo "$as_me: error: cannot run test program while cross compiling
15662 See \`config.log' for more details." >&2;}
15663    { (exit 1); exit 1; }; }
15664 else
15665   cat >conftest.$ac_ext <<_ACEOF
15666 /* confdefs.h.  */
15667 _ACEOF
15668 cat confdefs.h >>conftest.$ac_ext
15669 cat >>conftest.$ac_ext <<_ACEOF
15670 /* end confdefs.h.  */
15671 $ac_includes_default
15672 long longval () { return (long) (sizeof (int *)); }
15673 unsigned long ulongval () { return (long) (sizeof (int *)); }
15674 #include <stdio.h>
15675 #include <stdlib.h>
15676 int
15677 main ()
15678 {
15679
15680   FILE *f = fopen ("conftest.val", "w");
15681   if (! f)
15682     exit (1);
15683   if (((long) (sizeof (int *))) < 0)
15684     {
15685       long i = longval ();
15686       if (i != ((long) (sizeof (int *))))
15687         exit (1);
15688       fprintf (f, "%ld\n", i);
15689     }
15690   else
15691     {
15692       unsigned long i = ulongval ();
15693       if (i != ((long) (sizeof (int *))))
15694         exit (1);
15695       fprintf (f, "%lu\n", i);
15696     }
15697   exit (ferror (f) || fclose (f) != 0);
15698
15699   ;
15700   return 0;
15701 }
15702 _ACEOF
15703 rm -f conftest$ac_exeext
15704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15705   (eval $ac_link) 2>&5
15706   ac_status=$?
15707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710   (eval $ac_try) 2>&5
15711   ac_status=$?
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); }; }; then
15714   ac_cv_sizeof_int_p=`cat conftest.val`
15715 else
15716   echo "$as_me: program exited with status $ac_status" >&5
15717 echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.$ac_ext >&5
15719
15720 ( exit $ac_status )
15721 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15722 See \`config.log' for more details." >&5
15723 echo "$as_me: error: cannot compute sizeof (int *), 77
15724 See \`config.log' for more details." >&2;}
15725    { (exit 1); exit 1; }; }
15726 fi
15727 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15728 fi
15729 fi
15730 rm -f conftest.val
15731 else
15732   ac_cv_sizeof_int_p=0
15733 fi
15734 fi
15735 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15736 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15737 cat >>confdefs.h <<_ACEOF
15738 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15739 _ACEOF
15740
15741
15742
15743 # Check for sys/types.h types
15744 echo "$as_me:$LINENO: checking for u_int type" >&5
15745 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15746 if test "${ac_cv_have_u_int+set}" = set; then
15747   echo $ECHO_N "(cached) $ECHO_C" >&6
15748 else
15749
15750     cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h.  */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h.  */
15756  #include <sys/types.h>
15757 int
15758 main ()
15759 {
15760  u_int a; a = 1;
15761   ;
15762   return 0;
15763 }
15764 _ACEOF
15765 rm -f conftest.$ac_objext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15767   (eval $ac_compile) 2>conftest.er1
15768   ac_status=$?
15769   grep -v '^ *+' conftest.er1 >conftest.err
15770   rm -f conftest.er1
15771   cat conftest.err >&5
15772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773   (exit $ac_status); } &&
15774          { ac_try='test -z "$ac_c_werror_flag"
15775                          || test ! -s conftest.err'
15776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777   (eval $ac_try) 2>&5
15778   ac_status=$?
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); }; } &&
15781          { ac_try='test -s conftest.$ac_objext'
15782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783   (eval $ac_try) 2>&5
15784   ac_status=$?
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); }; }; then
15787    ac_cv_have_u_int="yes"
15788 else
15789   echo "$as_me: failed program was:" >&5
15790 sed 's/^/| /' conftest.$ac_ext >&5
15791
15792  ac_cv_have_u_int="no"
15793
15794 fi
15795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15796
15797 fi
15798 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15799 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15800 if test "x$ac_cv_have_u_int" = "xyes" ; then
15801    cat >>confdefs.h <<\_ACEOF
15802 #define HAVE_U_INT 1
15803 _ACEOF
15804
15805    have_u_int=1
15806 fi
15807
15808 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15809 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15810 if test "${ac_cv_have_intmax_t+set}" = set; then
15811   echo $ECHO_N "(cached) $ECHO_C" >&6
15812 else
15813
15814    cat >conftest.$ac_ext <<_ACEOF
15815 /* confdefs.h.  */
15816 _ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h.  */
15820  #include <sys/types.h>
15821 int
15822 main ()
15823 {
15824  intmax_t a; a = 1;
15825   ;
15826   return 0;
15827 }
15828 _ACEOF
15829 rm -f conftest.$ac_objext
15830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15831   (eval $ac_compile) 2>conftest.er1
15832   ac_status=$?
15833   grep -v '^ *+' conftest.er1 >conftest.err
15834   rm -f conftest.er1
15835   cat conftest.err >&5
15836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837   (exit $ac_status); } &&
15838          { ac_try='test -z "$ac_c_werror_flag"
15839                          || test ! -s conftest.err'
15840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841   (eval $ac_try) 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); }; } &&
15845          { ac_try='test -s conftest.$ac_objext'
15846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847   (eval $ac_try) 2>&5
15848   ac_status=$?
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); }; }; then
15851    ac_cv_have_intmax_t="yes"
15852 else
15853   echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15855
15856
15857          cat >conftest.$ac_ext <<_ACEOF
15858 /* confdefs.h.  */
15859 _ACEOF
15860 cat confdefs.h >>conftest.$ac_ext
15861 cat >>conftest.$ac_ext <<_ACEOF
15862 /* end confdefs.h.  */
15863  #include <stdint.h>
15864 int
15865 main ()
15866 {
15867  intmax_t a; a = 1;
15868   ;
15869   return 0;
15870 }
15871 _ACEOF
15872 rm -f conftest.$ac_objext
15873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15874   (eval $ac_compile) 2>conftest.er1
15875   ac_status=$?
15876   grep -v '^ *+' conftest.er1 >conftest.err
15877   rm -f conftest.er1
15878   cat conftest.err >&5
15879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880   (exit $ac_status); } &&
15881          { ac_try='test -z "$ac_c_werror_flag"
15882                          || test ! -s conftest.err'
15883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15884   (eval $ac_try) 2>&5
15885   ac_status=$?
15886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887   (exit $ac_status); }; } &&
15888          { ac_try='test -s conftest.$ac_objext'
15889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890   (eval $ac_try) 2>&5
15891   ac_status=$?
15892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893   (exit $ac_status); }; }; then
15894    ac_cv_have_intmax_t="yes"
15895 else
15896   echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.$ac_ext >&5
15898
15899  ac_cv_have_intmax_t="no"
15900
15901 fi
15902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15903
15904
15905 fi
15906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15907
15908
15909 fi
15910 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15911 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15912 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15913    cat >>confdefs.h <<\_ACEOF
15914 #define HAVE_INTMAX_T 1
15915 _ACEOF
15916
15917    have_intmax_t=1
15918 fi
15919
15920
15921 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15922 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15923 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15924   echo $ECHO_N "(cached) $ECHO_C" >&6
15925 else
15926
15927    cat >conftest.$ac_ext <<_ACEOF
15928 /* confdefs.h.  */
15929 _ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h.  */
15933  #include <sys/types.h>
15934 int
15935 main ()
15936 {
15937  u_intmax_t a; a = 1;
15938   ;
15939   return 0;
15940 }
15941 _ACEOF
15942 rm -f conftest.$ac_objext
15943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15944   (eval $ac_compile) 2>conftest.er1
15945   ac_status=$?
15946   grep -v '^ *+' conftest.er1 >conftest.err
15947   rm -f conftest.er1
15948   cat conftest.err >&5
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } &&
15951          { ac_try='test -z "$ac_c_werror_flag"
15952                          || test ! -s conftest.err'
15953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954   (eval $ac_try) 2>&5
15955   ac_status=$?
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); }; } &&
15958          { ac_try='test -s conftest.$ac_objext'
15959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960   (eval $ac_try) 2>&5
15961   ac_status=$?
15962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963   (exit $ac_status); }; }; then
15964    ac_cv_have_u_intmax_t="yes"
15965 else
15966   echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15968
15969
15970          cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h.  */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h.  */
15976  #include <stdint.h>
15977 int
15978 main ()
15979 {
15980  u_intmax_t a; a = 1;
15981   ;
15982   return 0;
15983 }
15984 _ACEOF
15985 rm -f conftest.$ac_objext
15986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15987   (eval $ac_compile) 2>conftest.er1
15988   ac_status=$?
15989   grep -v '^ *+' conftest.er1 >conftest.err
15990   rm -f conftest.er1
15991   cat conftest.err >&5
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); } &&
15994          { ac_try='test -z "$ac_c_werror_flag"
15995                          || test ! -s conftest.err'
15996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997   (eval $ac_try) 2>&5
15998   ac_status=$?
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); }; } &&
16001          { ac_try='test -s conftest.$ac_objext'
16002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003   (eval $ac_try) 2>&5
16004   ac_status=$?
16005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006   (exit $ac_status); }; }; then
16007    ac_cv_have_u_intmax_t="yes"
16008 else
16009   echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16011
16012  ac_cv_have_u_intmax_t="no"
16013
16014 fi
16015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16016
16017
16018 fi
16019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16020
16021 fi
16022 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
16023 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
16024 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
16025    cat >>confdefs.h <<\_ACEOF
16026 #define HAVE_U_INTMAX_T 1
16027 _ACEOF
16028
16029    have_u_intmax_t=1
16030 fi
16031
16032
16033 echo "$as_me:$LINENO: checking for intXX_t types" >&5
16034 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
16035 if test "${ac_cv_have_intxx_t+set}" = set; then
16036   echo $ECHO_N "(cached) $ECHO_C" >&6
16037 else
16038
16039    cat >conftest.$ac_ext <<_ACEOF
16040 /* confdefs.h.  */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h.  */
16045  #include <sys/types.h>
16046 int
16047 main ()
16048 {
16049  int8_t a; int16_t b; int32_t c; a = b = c = 1;
16050   ;
16051   return 0;
16052 }
16053 _ACEOF
16054 rm -f conftest.$ac_objext
16055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16056   (eval $ac_compile) 2>conftest.er1
16057   ac_status=$?
16058   grep -v '^ *+' conftest.er1 >conftest.err
16059   rm -f conftest.er1
16060   cat conftest.err >&5
16061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062   (exit $ac_status); } &&
16063          { ac_try='test -z "$ac_c_werror_flag"
16064                          || test ! -s conftest.err'
16065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066   (eval $ac_try) 2>&5
16067   ac_status=$?
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); }; } &&
16070          { ac_try='test -s conftest.$ac_objext'
16071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072   (eval $ac_try) 2>&5
16073   ac_status=$?
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); }; }; then
16076    ac_cv_have_intxx_t="yes"
16077 else
16078   echo "$as_me: failed program was:" >&5
16079 sed 's/^/| /' conftest.$ac_ext >&5
16080
16081  ac_cv_have_intxx_t="no"
16082
16083 fi
16084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16085
16086 fi
16087 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
16088 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
16089 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
16090    cat >>confdefs.h <<\_ACEOF
16091 #define HAVE_INTXX_T 1
16092 _ACEOF
16093
16094    have_intxx_t=1
16095 fi
16096
16097 echo "$as_me:$LINENO: checking for int64_t type" >&5
16098 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
16099 if test "${ac_cv_have_int64_t+set}" = set; then
16100   echo $ECHO_N "(cached) $ECHO_C" >&6
16101 else
16102
16103    cat >conftest.$ac_ext <<_ACEOF
16104 /* confdefs.h.  */
16105 _ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h.  */
16109  #include <sys/types.h>
16110 int
16111 main ()
16112 {
16113  int64_t a; a = 1;
16114   ;
16115   return 0;
16116 }
16117 _ACEOF
16118 rm -f conftest.$ac_objext
16119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16120   (eval $ac_compile) 2>conftest.er1
16121   ac_status=$?
16122   grep -v '^ *+' conftest.er1 >conftest.err
16123   rm -f conftest.er1
16124   cat conftest.err >&5
16125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126   (exit $ac_status); } &&
16127          { ac_try='test -z "$ac_c_werror_flag"
16128                          || test ! -s conftest.err'
16129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130   (eval $ac_try) 2>&5
16131   ac_status=$?
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); }; } &&
16134          { ac_try='test -s conftest.$ac_objext'
16135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136   (eval $ac_try) 2>&5
16137   ac_status=$?
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); }; }; then
16140    ac_cv_have_int64_t="yes"
16141 else
16142   echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16144
16145  ac_cv_have_int64_t="no"
16146
16147 fi
16148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16149
16150 fi
16151 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
16152 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
16153 if test "x$ac_cv_have_int64_t" = "xyes" ; then
16154    cat >>confdefs.h <<\_ACEOF
16155 #define HAVE_INT64_T 1
16156 _ACEOF
16157
16158    have_int64_t=1
16159 fi
16160
16161 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
16162 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
16163 if test "${ac_cv_have_u_intxx_t+set}" = set; then
16164   echo $ECHO_N "(cached) $ECHO_C" >&6
16165 else
16166
16167    cat >conftest.$ac_ext <<_ACEOF
16168 /* confdefs.h.  */
16169 _ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h.  */
16173  #include <sys/types.h>
16174 int
16175 main ()
16176 {
16177  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
16178   ;
16179   return 0;
16180 }
16181 _ACEOF
16182 rm -f conftest.$ac_objext
16183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16184   (eval $ac_compile) 2>conftest.er1
16185   ac_status=$?
16186   grep -v '^ *+' conftest.er1 >conftest.err
16187   rm -f conftest.er1
16188   cat conftest.err >&5
16189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190   (exit $ac_status); } &&
16191          { ac_try='test -z "$ac_c_werror_flag"
16192                          || test ! -s conftest.err'
16193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194   (eval $ac_try) 2>&5
16195   ac_status=$?
16196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); }; } &&
16198          { ac_try='test -s conftest.$ac_objext'
16199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16200   (eval $ac_try) 2>&5
16201   ac_status=$?
16202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203   (exit $ac_status); }; }; then
16204    ac_cv_have_u_intxx_t="yes"
16205 else
16206   echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16208
16209  ac_cv_have_u_intxx_t="no"
16210
16211 fi
16212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16213
16214 fi
16215 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
16216 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
16217 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
16218    cat >>confdefs.h <<\_ACEOF
16219 #define HAVE_U_INTXX_T 1
16220 _ACEOF
16221
16222    have_u_intxx_t=1
16223 fi
16224
16225 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
16226 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
16227 if test "${ac_cv_have_u_int64_t+set}" = set; then
16228   echo $ECHO_N "(cached) $ECHO_C" >&6
16229 else
16230
16231    cat >conftest.$ac_ext <<_ACEOF
16232 /* confdefs.h.  */
16233 _ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h.  */
16237  #include <sys/types.h>
16238 int
16239 main ()
16240 {
16241  u_int64_t a; a = 1;
16242   ;
16243   return 0;
16244 }
16245 _ACEOF
16246 rm -f conftest.$ac_objext
16247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16248   (eval $ac_compile) 2>conftest.er1
16249   ac_status=$?
16250   grep -v '^ *+' conftest.er1 >conftest.err
16251   rm -f conftest.er1
16252   cat conftest.err >&5
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } &&
16255          { ac_try='test -z "$ac_c_werror_flag"
16256                          || test ! -s conftest.err'
16257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258   (eval $ac_try) 2>&5
16259   ac_status=$?
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); }; } &&
16262          { ac_try='test -s conftest.$ac_objext'
16263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264   (eval $ac_try) 2>&5
16265   ac_status=$?
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); }; }; then
16268    ac_cv_have_u_int64_t="yes"
16269 else
16270   echo "$as_me: failed program was:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16272
16273  ac_cv_have_u_int64_t="no"
16274
16275 fi
16276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16277
16278 fi
16279 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
16280 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
16281 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
16282    cat >>confdefs.h <<\_ACEOF
16283 #define HAVE_U_INT64_T 1
16284 _ACEOF
16285
16286    have_u_int64_t=1
16287 fi
16288
16289 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
16290            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16291 then
16292    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
16293 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
16294    cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h.  */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h.  */
16300  #include <sys/bitypes.h>
16301 int
16302 main ()
16303 {
16304  int8_t a; int16_t b; int32_t c;
16305         u_int8_t e; u_int16_t f; u_int32_t g;
16306         a = b = c = e = f = g = 1;
16307   ;
16308   return 0;
16309 }
16310 _ACEOF
16311 rm -f conftest.$ac_objext
16312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16313   (eval $ac_compile) 2>conftest.er1
16314   ac_status=$?
16315   grep -v '^ *+' conftest.er1 >conftest.err
16316   rm -f conftest.er1
16317   cat conftest.err >&5
16318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); } &&
16320          { ac_try='test -z "$ac_c_werror_flag"
16321                          || test ! -s conftest.err'
16322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323   (eval $ac_try) 2>&5
16324   ac_status=$?
16325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326   (exit $ac_status); }; } &&
16327          { ac_try='test -s conftest.$ac_objext'
16328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16329   (eval $ac_try) 2>&5
16330   ac_status=$?
16331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332   (exit $ac_status); }; }; then
16333    cat >>confdefs.h <<\_ACEOF
16334 #define HAVE_U_INTXX_T 1
16335 _ACEOF
16336
16337         cat >>confdefs.h <<\_ACEOF
16338 #define HAVE_INTXX_T 1
16339 _ACEOF
16340
16341         cat >>confdefs.h <<\_ACEOF
16342 #define HAVE_SYS_BITYPES_H 1
16343 _ACEOF
16344
16345         echo "$as_me:$LINENO: result: yes" >&5
16346 echo "${ECHO_T}yes" >&6
16347 else
16348   echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16350
16351  echo "$as_me:$LINENO: result: no" >&5
16352 echo "${ECHO_T}no" >&6
16353
16354 fi
16355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16356 fi
16357
16358 if test -z "$have_u_intxx_t" ; then
16359    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
16360 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
16361 if test "${ac_cv_have_uintxx_t+set}" = set; then
16362   echo $ECHO_N "(cached) $ECHO_C" >&6
16363 else
16364
16365       cat >conftest.$ac_ext <<_ACEOF
16366 /* confdefs.h.  */
16367 _ACEOF
16368 cat confdefs.h >>conftest.$ac_ext
16369 cat >>conftest.$ac_ext <<_ACEOF
16370 /* end confdefs.h.  */
16371  #include <sys/types.h>
16372 int
16373 main ()
16374 {
16375  uint8_t a; uint16_t b;
16376            uint32_t c; a = b = c = 1;
16377   ;
16378   return 0;
16379 }
16380 _ACEOF
16381 rm -f conftest.$ac_objext
16382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16383   (eval $ac_compile) 2>conftest.er1
16384   ac_status=$?
16385   grep -v '^ *+' conftest.er1 >conftest.err
16386   rm -f conftest.er1
16387   cat conftest.err >&5
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); } &&
16390          { ac_try='test -z "$ac_c_werror_flag"
16391                          || test ! -s conftest.err'
16392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393   (eval $ac_try) 2>&5
16394   ac_status=$?
16395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396   (exit $ac_status); }; } &&
16397          { ac_try='test -s conftest.$ac_objext'
16398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399   (eval $ac_try) 2>&5
16400   ac_status=$?
16401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402   (exit $ac_status); }; }; then
16403    ac_cv_have_uintxx_t="yes"
16404 else
16405   echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16407
16408  ac_cv_have_uintxx_t="no"
16409
16410 fi
16411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16412
16413 fi
16414 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
16415 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
16416    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
16417       cat >>confdefs.h <<\_ACEOF
16418 #define HAVE_UINTXX_T 1
16419 _ACEOF
16420
16421    fi
16422 fi
16423
16424 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
16425           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16426 then
16427    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
16428 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
16429    cat >conftest.$ac_ext <<_ACEOF
16430 /* confdefs.h.  */
16431 _ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h.  */
16435  #include <sys/bitypes.h>
16436 int
16437 main ()
16438 {
16439  int64_t a; u_int64_t b;
16440        a = b = 1;
16441   ;
16442   return 0;
16443 }
16444 _ACEOF
16445 rm -f conftest.$ac_objext
16446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16447   (eval $ac_compile) 2>conftest.er1
16448   ac_status=$?
16449   grep -v '^ *+' conftest.er1 >conftest.err
16450   rm -f conftest.er1
16451   cat conftest.err >&5
16452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16453   (exit $ac_status); } &&
16454          { ac_try='test -z "$ac_c_werror_flag"
16455                          || test ! -s conftest.err'
16456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457   (eval $ac_try) 2>&5
16458   ac_status=$?
16459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460   (exit $ac_status); }; } &&
16461          { ac_try='test -s conftest.$ac_objext'
16462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463   (eval $ac_try) 2>&5
16464   ac_status=$?
16465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466   (exit $ac_status); }; }; then
16467    cat >>confdefs.h <<\_ACEOF
16468 #define HAVE_U_INT64_T 1
16469 _ACEOF
16470
16471        cat >>confdefs.h <<\_ACEOF
16472 #define HAVE_INT64_T 1
16473 _ACEOF
16474
16475        echo "$as_me:$LINENO: result: yes" >&5
16476 echo "${ECHO_T}yes" >&6
16477 else
16478   echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16480
16481  echo "$as_me:$LINENO: result: no" >&5
16482 echo "${ECHO_T}no" >&6
16483
16484 fi
16485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16486 fi
16487
16488 if (test -z "$have_uintxx_t" && \
16489           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16490 then
16491    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
16492 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
16493    cat >conftest.$ac_ext <<_ACEOF
16494 /* confdefs.h.  */
16495 _ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h.  */
16499  #include <sys/bitypes.h>
16500 int
16501 main ()
16502 {
16503  uint8_t a; uint16_t b;
16504           uint32_t c; a = b = c = 1;
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 rm -f conftest.$ac_objext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16511   (eval $ac_compile) 2>conftest.er1
16512   ac_status=$?
16513   grep -v '^ *+' conftest.er1 >conftest.err
16514   rm -f conftest.er1
16515   cat conftest.err >&5
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); } &&
16518          { ac_try='test -z "$ac_c_werror_flag"
16519                          || test ! -s conftest.err'
16520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521   (eval $ac_try) 2>&5
16522   ac_status=$?
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); }; } &&
16525          { ac_try='test -s conftest.$ac_objext'
16526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527   (eval $ac_try) 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); }; }; then
16531    cat >>confdefs.h <<\_ACEOF
16532 #define HAVE_UINTXX_T 1
16533 _ACEOF
16534
16535        echo "$as_me:$LINENO: result: yes" >&5
16536 echo "${ECHO_T}yes" >&6
16537 else
16538   echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541  echo "$as_me:$LINENO: result: no" >&5
16542 echo "${ECHO_T}no" >&6
16543
16544 fi
16545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16546
16547 fi
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565 for ac_func in \
16566         fork \
16567         getcwd \
16568         gethostname \
16569         getpid \
16570         gettimeofday \
16571         setpgid \
16572         setpgrp \
16573         setsid \
16574         signal \
16575         strerror \
16576         strncmp \
16577         strncpy \
16578         vfprintf \
16579
16580 do
16581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16582 echo "$as_me:$LINENO: checking for $ac_func" >&5
16583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16584 if eval "test \"\${$as_ac_var+set}\" = set"; then
16585   echo $ECHO_N "(cached) $ECHO_C" >&6
16586 else
16587   cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h.  */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h.  */
16593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16595 #define $ac_func innocuous_$ac_func
16596
16597 /* System header to define __stub macros and hopefully few prototypes,
16598     which can conflict with char $ac_func (); below.
16599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16600     <limits.h> exists even on freestanding compilers.  */
16601
16602 #ifdef __STDC__
16603 # include <limits.h>
16604 #else
16605 # include <assert.h>
16606 #endif
16607
16608 #undef $ac_func
16609
16610 /* Override any gcc2 internal prototype to avoid an error.  */
16611 #ifdef __cplusplus
16612 extern "C"
16613 {
16614 #endif
16615 /* We use char because int might match the return type of a gcc2
16616    builtin and then its argument prototype would still apply.  */
16617 char $ac_func ();
16618 /* The GNU C library defines this for functions which it implements
16619     to always fail with ENOSYS.  Some functions are actually named
16620     something starting with __ and the normal name is an alias.  */
16621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16622 choke me
16623 #else
16624 char (*f) () = $ac_func;
16625 #endif
16626 #ifdef __cplusplus
16627 }
16628 #endif
16629
16630 int
16631 main ()
16632 {
16633 return f != $ac_func;
16634   ;
16635   return 0;
16636 }
16637 _ACEOF
16638 rm -f conftest.$ac_objext conftest$ac_exeext
16639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16640   (eval $ac_link) 2>conftest.er1
16641   ac_status=$?
16642   grep -v '^ *+' conftest.er1 >conftest.err
16643   rm -f conftest.er1
16644   cat conftest.err >&5
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } &&
16647          { ac_try='test -z "$ac_c_werror_flag"
16648                          || test ! -s conftest.err'
16649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650   (eval $ac_try) 2>&5
16651   ac_status=$?
16652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653   (exit $ac_status); }; } &&
16654          { ac_try='test -s conftest$ac_exeext'
16655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16656   (eval $ac_try) 2>&5
16657   ac_status=$?
16658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659   (exit $ac_status); }; }; then
16660   eval "$as_ac_var=yes"
16661 else
16662   echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16664
16665 eval "$as_ac_var=no"
16666 fi
16667 rm -f conftest.err conftest.$ac_objext \
16668       conftest$ac_exeext conftest.$ac_ext
16669 fi
16670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16671 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16672 if test `eval echo '${'$as_ac_var'}'` = yes; then
16673   cat >>confdefs.h <<_ACEOF
16674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16675 _ACEOF
16676
16677 else
16678   echo 'configure: cannot find needed function.'; exit 1
16679
16680 fi
16681 done
16682
16683
16684
16685 for ac_func in fchdir
16686 do
16687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16688 echo "$as_me:$LINENO: checking for $ac_func" >&5
16689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16690 if eval "test \"\${$as_ac_var+set}\" = set"; then
16691   echo $ECHO_N "(cached) $ECHO_C" >&6
16692 else
16693   cat >conftest.$ac_ext <<_ACEOF
16694 /* confdefs.h.  */
16695 _ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h.  */
16699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16701 #define $ac_func innocuous_$ac_func
16702
16703 /* System header to define __stub macros and hopefully few prototypes,
16704     which can conflict with char $ac_func (); below.
16705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16706     <limits.h> exists even on freestanding compilers.  */
16707
16708 #ifdef __STDC__
16709 # include <limits.h>
16710 #else
16711 # include <assert.h>
16712 #endif
16713
16714 #undef $ac_func
16715
16716 /* Override any gcc2 internal prototype to avoid an error.  */
16717 #ifdef __cplusplus
16718 extern "C"
16719 {
16720 #endif
16721 /* We use char because int might match the return type of a gcc2
16722    builtin and then its argument prototype would still apply.  */
16723 char $ac_func ();
16724 /* The GNU C library defines this for functions which it implements
16725     to always fail with ENOSYS.  Some functions are actually named
16726     something starting with __ and the normal name is an alias.  */
16727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16728 choke me
16729 #else
16730 char (*f) () = $ac_func;
16731 #endif
16732 #ifdef __cplusplus
16733 }
16734 #endif
16735
16736 int
16737 main ()
16738 {
16739 return f != $ac_func;
16740   ;
16741   return 0;
16742 }
16743 _ACEOF
16744 rm -f conftest.$ac_objext conftest$ac_exeext
16745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16746   (eval $ac_link) 2>conftest.er1
16747   ac_status=$?
16748   grep -v '^ *+' conftest.er1 >conftest.err
16749   rm -f conftest.er1
16750   cat conftest.err >&5
16751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752   (exit $ac_status); } &&
16753          { ac_try='test -z "$ac_c_werror_flag"
16754                          || test ! -s conftest.err'
16755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756   (eval $ac_try) 2>&5
16757   ac_status=$?
16758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); }; } &&
16760          { ac_try='test -s conftest$ac_exeext'
16761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762   (eval $ac_try) 2>&5
16763   ac_status=$?
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); }; }; then
16766   eval "$as_ac_var=yes"
16767 else
16768   echo "$as_me: failed program was:" >&5
16769 sed 's/^/| /' conftest.$ac_ext >&5
16770
16771 eval "$as_ac_var=no"
16772 fi
16773 rm -f conftest.err conftest.$ac_objext \
16774       conftest$ac_exeext conftest.$ac_ext
16775 fi
16776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16778 if test `eval echo '${'$as_ac_var'}'` = yes; then
16779   cat >>confdefs.h <<_ACEOF
16780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16781 _ACEOF
16782  cat >>confdefs.h <<\_ACEOF
16783 #define HAVE_FCHDIR 1
16784 _ACEOF
16785
16786 fi
16787 done
16788
16789
16790 for ac_func in strtoll
16791 do
16792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16793 echo "$as_me:$LINENO: checking for $ac_func" >&5
16794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16795 if eval "test \"\${$as_ac_var+set}\" = set"; then
16796   echo $ECHO_N "(cached) $ECHO_C" >&6
16797 else
16798   cat >conftest.$ac_ext <<_ACEOF
16799 /* confdefs.h.  */
16800 _ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h.  */
16804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16805    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16806 #define $ac_func innocuous_$ac_func
16807
16808 /* System header to define __stub macros and hopefully few prototypes,
16809     which can conflict with char $ac_func (); below.
16810     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16811     <limits.h> exists even on freestanding compilers.  */
16812
16813 #ifdef __STDC__
16814 # include <limits.h>
16815 #else
16816 # include <assert.h>
16817 #endif
16818
16819 #undef $ac_func
16820
16821 /* Override any gcc2 internal prototype to avoid an error.  */
16822 #ifdef __cplusplus
16823 extern "C"
16824 {
16825 #endif
16826 /* We use char because int might match the return type of a gcc2
16827    builtin and then its argument prototype would still apply.  */
16828 char $ac_func ();
16829 /* The GNU C library defines this for functions which it implements
16830     to always fail with ENOSYS.  Some functions are actually named
16831     something starting with __ and the normal name is an alias.  */
16832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16833 choke me
16834 #else
16835 char (*f) () = $ac_func;
16836 #endif
16837 #ifdef __cplusplus
16838 }
16839 #endif
16840
16841 int
16842 main ()
16843 {
16844 return f != $ac_func;
16845   ;
16846   return 0;
16847 }
16848 _ACEOF
16849 rm -f conftest.$ac_objext conftest$ac_exeext
16850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16851   (eval $ac_link) 2>conftest.er1
16852   ac_status=$?
16853   grep -v '^ *+' conftest.er1 >conftest.err
16854   rm -f conftest.er1
16855   cat conftest.err >&5
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); } &&
16858          { ac_try='test -z "$ac_c_werror_flag"
16859                          || test ! -s conftest.err'
16860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16861   (eval $ac_try) 2>&5
16862   ac_status=$?
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); }; } &&
16865          { ac_try='test -s conftest$ac_exeext'
16866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867   (eval $ac_try) 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); }; }; then
16871   eval "$as_ac_var=yes"
16872 else
16873   echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16875
16876 eval "$as_ac_var=no"
16877 fi
16878 rm -f conftest.err conftest.$ac_objext \
16879       conftest$ac_exeext conftest.$ac_ext
16880 fi
16881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16882 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16883 if test `eval echo '${'$as_ac_var'}'` = yes; then
16884   cat >>confdefs.h <<_ACEOF
16885 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16886 _ACEOF
16887  cat >>confdefs.h <<\_ACEOF
16888 #define HAVE_STRTOLL 1
16889 _ACEOF
16890
16891 fi
16892 done
16893
16894
16895
16896 for ac_func in chflags
16897 do
16898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16899 echo "$as_me:$LINENO: checking for $ac_func" >&5
16900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16901 if eval "test \"\${$as_ac_var+set}\" = set"; then
16902   echo $ECHO_N "(cached) $ECHO_C" >&6
16903 else
16904   cat >conftest.$ac_ext <<_ACEOF
16905 /* confdefs.h.  */
16906 _ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h.  */
16910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16912 #define $ac_func innocuous_$ac_func
16913
16914 /* System header to define __stub macros and hopefully few prototypes,
16915     which can conflict with char $ac_func (); below.
16916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16917     <limits.h> exists even on freestanding compilers.  */
16918
16919 #ifdef __STDC__
16920 # include <limits.h>
16921 #else
16922 # include <assert.h>
16923 #endif
16924
16925 #undef $ac_func
16926
16927 /* Override any gcc2 internal prototype to avoid an error.  */
16928 #ifdef __cplusplus
16929 extern "C"
16930 {
16931 #endif
16932 /* We use char because int might match the return type of a gcc2
16933    builtin and then its argument prototype would still apply.  */
16934 char $ac_func ();
16935 /* The GNU C library defines this for functions which it implements
16936     to always fail with ENOSYS.  Some functions are actually named
16937     something starting with __ and the normal name is an alias.  */
16938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16939 choke me
16940 #else
16941 char (*f) () = $ac_func;
16942 #endif
16943 #ifdef __cplusplus
16944 }
16945 #endif
16946
16947 int
16948 main ()
16949 {
16950 return f != $ac_func;
16951   ;
16952   return 0;
16953 }
16954 _ACEOF
16955 rm -f conftest.$ac_objext conftest$ac_exeext
16956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16957   (eval $ac_link) 2>conftest.er1
16958   ac_status=$?
16959   grep -v '^ *+' conftest.er1 >conftest.err
16960   rm -f conftest.er1
16961   cat conftest.err >&5
16962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); } &&
16964          { ac_try='test -z "$ac_c_werror_flag"
16965                          || test ! -s conftest.err'
16966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967   (eval $ac_try) 2>&5
16968   ac_status=$?
16969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970   (exit $ac_status); }; } &&
16971          { ac_try='test -s conftest$ac_exeext'
16972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973   (eval $ac_try) 2>&5
16974   ac_status=$?
16975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976   (exit $ac_status); }; }; then
16977   eval "$as_ac_var=yes"
16978 else
16979   echo "$as_me: failed program was:" >&5
16980 sed 's/^/| /' conftest.$ac_ext >&5
16981
16982 eval "$as_ac_var=no"
16983 fi
16984 rm -f conftest.err conftest.$ac_objext \
16985       conftest$ac_exeext conftest.$ac_ext
16986 fi
16987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16989 if test `eval echo '${'$as_ac_var'}'` = yes; then
16990   cat >>confdefs.h <<_ACEOF
16991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16992 _ACEOF
16993
16994 fi
16995 done
16996
16997
16998
16999
17000
17001
17002 for ac_func in snprintf vsnprintf gethostid getdomainname
17003 do
17004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17005 echo "$as_me:$LINENO: checking for $ac_func" >&5
17006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17007 if eval "test \"\${$as_ac_var+set}\" = set"; then
17008   echo $ECHO_N "(cached) $ECHO_C" >&6
17009 else
17010   cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h.  */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h.  */
17016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17018 #define $ac_func innocuous_$ac_func
17019
17020 /* System header to define __stub macros and hopefully few prototypes,
17021     which can conflict with char $ac_func (); below.
17022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17023     <limits.h> exists even on freestanding compilers.  */
17024
17025 #ifdef __STDC__
17026 # include <limits.h>
17027 #else
17028 # include <assert.h>
17029 #endif
17030
17031 #undef $ac_func
17032
17033 /* Override any gcc2 internal prototype to avoid an error.  */
17034 #ifdef __cplusplus
17035 extern "C"
17036 {
17037 #endif
17038 /* We use char because int might match the return type of a gcc2
17039    builtin and then its argument prototype would still apply.  */
17040 char $ac_func ();
17041 /* The GNU C library defines this for functions which it implements
17042     to always fail with ENOSYS.  Some functions are actually named
17043     something starting with __ and the normal name is an alias.  */
17044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17045 choke me
17046 #else
17047 char (*f) () = $ac_func;
17048 #endif
17049 #ifdef __cplusplus
17050 }
17051 #endif
17052
17053 int
17054 main ()
17055 {
17056 return f != $ac_func;
17057   ;
17058   return 0;
17059 }
17060 _ACEOF
17061 rm -f conftest.$ac_objext conftest$ac_exeext
17062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17063   (eval $ac_link) 2>conftest.er1
17064   ac_status=$?
17065   grep -v '^ *+' conftest.er1 >conftest.err
17066   rm -f conftest.er1
17067   cat conftest.err >&5
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); } &&
17070          { ac_try='test -z "$ac_c_werror_flag"
17071                          || test ! -s conftest.err'
17072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073   (eval $ac_try) 2>&5
17074   ac_status=$?
17075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076   (exit $ac_status); }; } &&
17077          { ac_try='test -s conftest$ac_exeext'
17078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079   (eval $ac_try) 2>&5
17080   ac_status=$?
17081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082   (exit $ac_status); }; }; then
17083   eval "$as_ac_var=yes"
17084 else
17085   echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17087
17088 eval "$as_ac_var=no"
17089 fi
17090 rm -f conftest.err conftest.$ac_objext \
17091       conftest$ac_exeext conftest.$ac_ext
17092 fi
17093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17095 if test `eval echo '${'$as_ac_var'}'` = yes; then
17096   cat >>confdefs.h <<_ACEOF
17097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17098 _ACEOF
17099
17100 fi
17101 done
17102
17103
17104
17105
17106
17107
17108 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
17109 do
17110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17111 echo "$as_me:$LINENO: checking for $ac_func" >&5
17112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17113 if eval "test \"\${$as_ac_var+set}\" = set"; then
17114   echo $ECHO_N "(cached) $ECHO_C" >&6
17115 else
17116   cat >conftest.$ac_ext <<_ACEOF
17117 /* confdefs.h.  */
17118 _ACEOF
17119 cat confdefs.h >>conftest.$ac_ext
17120 cat >>conftest.$ac_ext <<_ACEOF
17121 /* end confdefs.h.  */
17122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17124 #define $ac_func innocuous_$ac_func
17125
17126 /* System header to define __stub macros and hopefully few prototypes,
17127     which can conflict with char $ac_func (); below.
17128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17129     <limits.h> exists even on freestanding compilers.  */
17130
17131 #ifdef __STDC__
17132 # include <limits.h>
17133 #else
17134 # include <assert.h>
17135 #endif
17136
17137 #undef $ac_func
17138
17139 /* Override any gcc2 internal prototype to avoid an error.  */
17140 #ifdef __cplusplus
17141 extern "C"
17142 {
17143 #endif
17144 /* We use char because int might match the return type of a gcc2
17145    builtin and then its argument prototype would still apply.  */
17146 char $ac_func ();
17147 /* The GNU C library defines this for functions which it implements
17148     to always fail with ENOSYS.  Some functions are actually named
17149     something starting with __ and the normal name is an alias.  */
17150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17151 choke me
17152 #else
17153 char (*f) () = $ac_func;
17154 #endif
17155 #ifdef __cplusplus
17156 }
17157 #endif
17158
17159 int
17160 main ()
17161 {
17162 return f != $ac_func;
17163   ;
17164   return 0;
17165 }
17166 _ACEOF
17167 rm -f conftest.$ac_objext conftest$ac_exeext
17168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17169   (eval $ac_link) 2>conftest.er1
17170   ac_status=$?
17171   grep -v '^ *+' conftest.er1 >conftest.err
17172   rm -f conftest.er1
17173   cat conftest.err >&5
17174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17175   (exit $ac_status); } &&
17176          { ac_try='test -z "$ac_c_werror_flag"
17177                          || test ! -s conftest.err'
17178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17179   (eval $ac_try) 2>&5
17180   ac_status=$?
17181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182   (exit $ac_status); }; } &&
17183          { ac_try='test -s conftest$ac_exeext'
17184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185   (eval $ac_try) 2>&5
17186   ac_status=$?
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); }; }; then
17189   eval "$as_ac_var=yes"
17190 else
17191   echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17193
17194 eval "$as_ac_var=no"
17195 fi
17196 rm -f conftest.err conftest.$ac_objext \
17197       conftest$ac_exeext conftest.$ac_ext
17198 fi
17199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17201 if test `eval echo '${'$as_ac_var'}'` = yes; then
17202   cat >>confdefs.h <<_ACEOF
17203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17204 _ACEOF
17205
17206 fi
17207 done
17208
17209
17210 # If resolver functions are not in libc check for -lnsl or -lresolv.
17211 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
17212 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
17213 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
17214   echo $ECHO_N "(cached) $ECHO_C" >&6
17215 else
17216   cat >conftest.$ac_ext <<_ACEOF
17217 /* confdefs.h.  */
17218 _ACEOF
17219 cat confdefs.h >>conftest.$ac_ext
17220 cat >>conftest.$ac_ext <<_ACEOF
17221 /* end confdefs.h.  */
17222 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
17223    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17224 #define gethostbyname_r innocuous_gethostbyname_r
17225
17226 /* System header to define __stub macros and hopefully few prototypes,
17227     which can conflict with char gethostbyname_r (); below.
17228     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17229     <limits.h> exists even on freestanding compilers.  */
17230
17231 #ifdef __STDC__
17232 # include <limits.h>
17233 #else
17234 # include <assert.h>
17235 #endif
17236
17237 #undef gethostbyname_r
17238
17239 /* Override any gcc2 internal prototype to avoid an error.  */
17240 #ifdef __cplusplus
17241 extern "C"
17242 {
17243 #endif
17244 /* We use char because int might match the return type of a gcc2
17245    builtin and then its argument prototype would still apply.  */
17246 char gethostbyname_r ();
17247 /* The GNU C library defines this for functions which it implements
17248     to always fail with ENOSYS.  Some functions are actually named
17249     something starting with __ and the normal name is an alias.  */
17250 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
17251 choke me
17252 #else
17253 char (*f) () = gethostbyname_r;
17254 #endif
17255 #ifdef __cplusplus
17256 }
17257 #endif
17258
17259 int
17260 main ()
17261 {
17262 return f != gethostbyname_r;
17263   ;
17264   return 0;
17265 }
17266 _ACEOF
17267 rm -f conftest.$ac_objext conftest$ac_exeext
17268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17269   (eval $ac_link) 2>conftest.er1
17270   ac_status=$?
17271   grep -v '^ *+' conftest.er1 >conftest.err
17272   rm -f conftest.er1
17273   cat conftest.err >&5
17274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275   (exit $ac_status); } &&
17276          { ac_try='test -z "$ac_c_werror_flag"
17277                          || test ! -s conftest.err'
17278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17279   (eval $ac_try) 2>&5
17280   ac_status=$?
17281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282   (exit $ac_status); }; } &&
17283          { ac_try='test -s conftest$ac_exeext'
17284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17285   (eval $ac_try) 2>&5
17286   ac_status=$?
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); }; }; then
17289   ac_cv_func_gethostbyname_r=yes
17290 else
17291   echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294 ac_cv_func_gethostbyname_r=no
17295 fi
17296 rm -f conftest.err conftest.$ac_objext \
17297       conftest$ac_exeext conftest.$ac_ext
17298 fi
17299 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
17300 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
17301 if test $ac_cv_func_gethostbyname_r = yes; then
17302   echo "$as_me:$LINENO: result: using libc's resolver" >&5
17303 echo "${ECHO_T}using libc's resolver" >&6
17304 else
17305
17306 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
17307 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
17308 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
17309   echo $ECHO_N "(cached) $ECHO_C" >&6
17310 else
17311   ac_check_lib_save_LIBS=$LIBS
17312 LIBS="-lnsl  $LIBS"
17313 cat >conftest.$ac_ext <<_ACEOF
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 gethostbyname_r ();
17327 int
17328 main ()
17329 {
17330 gethostbyname_r ();
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>conftest.er1
17338   ac_status=$?
17339   grep -v '^ *+' conftest.er1 >conftest.err
17340   rm -f conftest.er1
17341   cat conftest.err >&5
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); } &&
17344          { ac_try='test -z "$ac_c_werror_flag"
17345                          || test ! -s conftest.err'
17346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347   (eval $ac_try) 2>&5
17348   ac_status=$?
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); }; } &&
17351          { ac_try='test -s conftest$ac_exeext'
17352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353   (eval $ac_try) 2>&5
17354   ac_status=$?
17355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); }; }; then
17357   ac_cv_lib_nsl_gethostbyname_r=yes
17358 else
17359   echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17361
17362 ac_cv_lib_nsl_gethostbyname_r=no
17363 fi
17364 rm -f conftest.err conftest.$ac_objext \
17365       conftest$ac_exeext conftest.$ac_ext
17366 LIBS=$ac_check_lib_save_LIBS
17367 fi
17368 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
17369 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
17370 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
17371   cat >>confdefs.h <<_ACEOF
17372 #define HAVE_LIBNSL 1
17373 _ACEOF
17374
17375   LIBS="-lnsl $LIBS"
17376
17377 fi
17378
17379
17380 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
17381 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
17382 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
17383   echo $ECHO_N "(cached) $ECHO_C" >&6
17384 else
17385   ac_check_lib_save_LIBS=$LIBS
17386 LIBS="-lresolv  $LIBS"
17387 cat >conftest.$ac_ext <<_ACEOF
17388 /* confdefs.h.  */
17389 _ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h.  */
17393
17394 /* Override any gcc2 internal prototype to avoid an error.  */
17395 #ifdef __cplusplus
17396 extern "C"
17397 #endif
17398 /* We use char because int might match the return type of a gcc2
17399    builtin and then its argument prototype would still apply.  */
17400 char gethostbyname_r ();
17401 int
17402 main ()
17403 {
17404 gethostbyname_r ();
17405   ;
17406   return 0;
17407 }
17408 _ACEOF
17409 rm -f conftest.$ac_objext conftest$ac_exeext
17410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17411   (eval $ac_link) 2>conftest.er1
17412   ac_status=$?
17413   grep -v '^ *+' conftest.er1 >conftest.err
17414   rm -f conftest.er1
17415   cat conftest.err >&5
17416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417   (exit $ac_status); } &&
17418          { ac_try='test -z "$ac_c_werror_flag"
17419                          || test ! -s conftest.err'
17420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421   (eval $ac_try) 2>&5
17422   ac_status=$?
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); }; } &&
17425          { ac_try='test -s conftest$ac_exeext'
17426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427   (eval $ac_try) 2>&5
17428   ac_status=$?
17429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430   (exit $ac_status); }; }; then
17431   ac_cv_lib_resolv_gethostbyname_r=yes
17432 else
17433   echo "$as_me: failed program was:" >&5
17434 sed 's/^/| /' conftest.$ac_ext >&5
17435
17436 ac_cv_lib_resolv_gethostbyname_r=no
17437 fi
17438 rm -f conftest.err conftest.$ac_objext \
17439       conftest$ac_exeext conftest.$ac_ext
17440 LIBS=$ac_check_lib_save_LIBS
17441 fi
17442 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
17443 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
17444 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
17445   cat >>confdefs.h <<_ACEOF
17446 #define HAVE_LIBRESOLV 1
17447 _ACEOF
17448
17449   LIBS="-lresolv $LIBS"
17450
17451 fi
17452
17453 fi
17454
17455
17456
17457 # Find where sockets are (especially for Solaris)
17458 echo "$as_me:$LINENO: checking for socket" >&5
17459 echo $ECHO_N "checking for socket... $ECHO_C" >&6
17460 if test "${ac_cv_func_socket+set}" = set; then
17461   echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463   cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h.  */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h.  */
17469 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17471 #define socket innocuous_socket
17472
17473 /* System header to define __stub macros and hopefully few prototypes,
17474     which can conflict with char socket (); below.
17475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17476     <limits.h> exists even on freestanding compilers.  */
17477
17478 #ifdef __STDC__
17479 # include <limits.h>
17480 #else
17481 # include <assert.h>
17482 #endif
17483
17484 #undef socket
17485
17486 /* Override any gcc2 internal prototype to avoid an error.  */
17487 #ifdef __cplusplus
17488 extern "C"
17489 {
17490 #endif
17491 /* We use char because int might match the return type of a gcc2
17492    builtin and then its argument prototype would still apply.  */
17493 char socket ();
17494 /* The GNU C library defines this for functions which it implements
17495     to always fail with ENOSYS.  Some functions are actually named
17496     something starting with __ and the normal name is an alias.  */
17497 #if defined (__stub_socket) || defined (__stub___socket)
17498 choke me
17499 #else
17500 char (*f) () = socket;
17501 #endif
17502 #ifdef __cplusplus
17503 }
17504 #endif
17505
17506 int
17507 main ()
17508 {
17509 return f != socket;
17510   ;
17511   return 0;
17512 }
17513 _ACEOF
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17516   (eval $ac_link) 2>conftest.er1
17517   ac_status=$?
17518   grep -v '^ *+' conftest.er1 >conftest.err
17519   rm -f conftest.er1
17520   cat conftest.err >&5
17521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522   (exit $ac_status); } &&
17523          { ac_try='test -z "$ac_c_werror_flag"
17524                          || test ! -s conftest.err'
17525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526   (eval $ac_try) 2>&5
17527   ac_status=$?
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); }; } &&
17530          { ac_try='test -s conftest$ac_exeext'
17531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532   (eval $ac_try) 2>&5
17533   ac_status=$?
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); }; }; then
17536   ac_cv_func_socket=yes
17537 else
17538   echo "$as_me: failed program was:" >&5
17539 sed 's/^/| /' conftest.$ac_ext >&5
17540
17541 ac_cv_func_socket=no
17542 fi
17543 rm -f conftest.err conftest.$ac_objext \
17544       conftest$ac_exeext conftest.$ac_ext
17545 fi
17546 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17547 echo "${ECHO_T}$ac_cv_func_socket" >&6
17548 if test $ac_cv_func_socket = yes; then
17549   echo "$as_me:$LINENO: result: using libc's socket" >&5
17550 echo "${ECHO_T}using libc's socket" >&6
17551 else
17552
17553 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17554 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
17555 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17556   echo $ECHO_N "(cached) $ECHO_C" >&6
17557 else
17558   ac_check_lib_save_LIBS=$LIBS
17559 LIBS="-lxnet  $LIBS"
17560 cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h.  */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h.  */
17566
17567 /* Override any gcc2 internal prototype to avoid an error.  */
17568 #ifdef __cplusplus
17569 extern "C"
17570 #endif
17571 /* We use char because int might match the return type of a gcc2
17572    builtin and then its argument prototype would still apply.  */
17573 char socket ();
17574 int
17575 main ()
17576 {
17577 socket ();
17578   ;
17579   return 0;
17580 }
17581 _ACEOF
17582 rm -f conftest.$ac_objext conftest$ac_exeext
17583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17584   (eval $ac_link) 2>conftest.er1
17585   ac_status=$?
17586   grep -v '^ *+' conftest.er1 >conftest.err
17587   rm -f conftest.er1
17588   cat conftest.err >&5
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); } &&
17591          { ac_try='test -z "$ac_c_werror_flag"
17592                          || test ! -s conftest.err'
17593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594   (eval $ac_try) 2>&5
17595   ac_status=$?
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); }; } &&
17598          { ac_try='test -s conftest$ac_exeext'
17599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17600   (eval $ac_try) 2>&5
17601   ac_status=$?
17602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603   (exit $ac_status); }; }; then
17604   ac_cv_lib_xnet_socket=yes
17605 else
17606   echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17608
17609 ac_cv_lib_xnet_socket=no
17610 fi
17611 rm -f conftest.err conftest.$ac_objext \
17612       conftest$ac_exeext conftest.$ac_ext
17613 LIBS=$ac_check_lib_save_LIBS
17614 fi
17615 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17616 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
17617 if test $ac_cv_lib_xnet_socket = yes; then
17618   cat >>confdefs.h <<_ACEOF
17619 #define HAVE_LIBXNET 1
17620 _ACEOF
17621
17622   LIBS="-lxnet $LIBS"
17623
17624 fi
17625
17626
17627 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17628 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
17629 if test "${ac_cv_lib_socket_socket+set}" = set; then
17630   echo $ECHO_N "(cached) $ECHO_C" >&6
17631 else
17632   ac_check_lib_save_LIBS=$LIBS
17633 LIBS="-lsocket  $LIBS"
17634 cat >conftest.$ac_ext <<_ACEOF
17635 /* confdefs.h.  */
17636 _ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h.  */
17640
17641 /* Override any gcc2 internal prototype to avoid an error.  */
17642 #ifdef __cplusplus
17643 extern "C"
17644 #endif
17645 /* We use char because int might match the return type of a gcc2
17646    builtin and then its argument prototype would still apply.  */
17647 char socket ();
17648 int
17649 main ()
17650 {
17651 socket ();
17652   ;
17653   return 0;
17654 }
17655 _ACEOF
17656 rm -f conftest.$ac_objext conftest$ac_exeext
17657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17658   (eval $ac_link) 2>conftest.er1
17659   ac_status=$?
17660   grep -v '^ *+' conftest.er1 >conftest.err
17661   rm -f conftest.er1
17662   cat conftest.err >&5
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); } &&
17665          { ac_try='test -z "$ac_c_werror_flag"
17666                          || test ! -s conftest.err'
17667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668   (eval $ac_try) 2>&5
17669   ac_status=$?
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); }; } &&
17672          { ac_try='test -s conftest$ac_exeext'
17673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674   (eval $ac_try) 2>&5
17675   ac_status=$?
17676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677   (exit $ac_status); }; }; then
17678   ac_cv_lib_socket_socket=yes
17679 else
17680   echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17682
17683 ac_cv_lib_socket_socket=no
17684 fi
17685 rm -f conftest.err conftest.$ac_objext \
17686       conftest$ac_exeext conftest.$ac_ext
17687 LIBS=$ac_check_lib_save_LIBS
17688 fi
17689 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17690 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
17691 if test $ac_cv_lib_socket_socket = yes; then
17692   cat >>confdefs.h <<_ACEOF
17693 #define HAVE_LIBSOCKET 1
17694 _ACEOF
17695
17696   LIBS="-lsocket $LIBS"
17697
17698 fi
17699
17700
17701 echo "$as_me:$LINENO: checking for socket in -linet" >&5
17702 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
17703 if test "${ac_cv_lib_inet_socket+set}" = set; then
17704   echo $ECHO_N "(cached) $ECHO_C" >&6
17705 else
17706   ac_check_lib_save_LIBS=$LIBS
17707 LIBS="-linet  $LIBS"
17708 cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h.  */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h.  */
17714
17715 /* Override any gcc2 internal prototype to avoid an error.  */
17716 #ifdef __cplusplus
17717 extern "C"
17718 #endif
17719 /* We use char because int might match the return type of a gcc2
17720    builtin and then its argument prototype would still apply.  */
17721 char socket ();
17722 int
17723 main ()
17724 {
17725 socket ();
17726   ;
17727   return 0;
17728 }
17729 _ACEOF
17730 rm -f conftest.$ac_objext conftest$ac_exeext
17731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17732   (eval $ac_link) 2>conftest.er1
17733   ac_status=$?
17734   grep -v '^ *+' conftest.er1 >conftest.err
17735   rm -f conftest.er1
17736   cat conftest.err >&5
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); } &&
17739          { ac_try='test -z "$ac_c_werror_flag"
17740                          || test ! -s conftest.err'
17741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742   (eval $ac_try) 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_inet_socket=yes
17753 else
17754   echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17756
17757 ac_cv_lib_inet_socket=no
17758 fi
17759 rm -f conftest.err conftest.$ac_objext \
17760       conftest$ac_exeext conftest.$ac_ext
17761 LIBS=$ac_check_lib_save_LIBS
17762 fi
17763 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17764 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
17765 if test $ac_cv_lib_inet_socket = yes; then
17766   cat >>confdefs.h <<_ACEOF
17767 #define HAVE_LIBINET 1
17768 _ACEOF
17769
17770   LIBS="-linet $LIBS"
17771
17772 fi
17773
17774 fi
17775
17776
17777
17778 for ac_func in inet_pton
17779 do
17780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17781 echo "$as_me:$LINENO: checking for $ac_func" >&5
17782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17783 if eval "test \"\${$as_ac_var+set}\" = set"; then
17784   echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786   cat >conftest.$ac_ext <<_ACEOF
17787 /* confdefs.h.  */
17788 _ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h.  */
17792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17794 #define $ac_func innocuous_$ac_func
17795
17796 /* System header to define __stub macros and hopefully few prototypes,
17797     which can conflict with char $ac_func (); below.
17798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17799     <limits.h> exists even on freestanding compilers.  */
17800
17801 #ifdef __STDC__
17802 # include <limits.h>
17803 #else
17804 # include <assert.h>
17805 #endif
17806
17807 #undef $ac_func
17808
17809 /* Override any gcc2 internal prototype to avoid an error.  */
17810 #ifdef __cplusplus
17811 extern "C"
17812 {
17813 #endif
17814 /* We use char because int might match the return type of a gcc2
17815    builtin and then its argument prototype would still apply.  */
17816 char $ac_func ();
17817 /* The GNU C library defines this for functions which it implements
17818     to always fail with ENOSYS.  Some functions are actually named
17819     something starting with __ and the normal name is an alias.  */
17820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17821 choke me
17822 #else
17823 char (*f) () = $ac_func;
17824 #endif
17825 #ifdef __cplusplus
17826 }
17827 #endif
17828
17829 int
17830 main ()
17831 {
17832 return f != $ac_func;
17833   ;
17834   return 0;
17835 }
17836 _ACEOF
17837 rm -f conftest.$ac_objext conftest$ac_exeext
17838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17839   (eval $ac_link) 2>conftest.er1
17840   ac_status=$?
17841   grep -v '^ *+' conftest.er1 >conftest.err
17842   rm -f conftest.er1
17843   cat conftest.err >&5
17844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); } &&
17846          { ac_try='test -z "$ac_c_werror_flag"
17847                          || test ! -s conftest.err'
17848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849   (eval $ac_try) 2>&5
17850   ac_status=$?
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); }; } &&
17853          { ac_try='test -s conftest$ac_exeext'
17854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855   (eval $ac_try) 2>&5
17856   ac_status=$?
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); }; }; then
17859   eval "$as_ac_var=yes"
17860 else
17861   echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17863
17864 eval "$as_ac_var=no"
17865 fi
17866 rm -f conftest.err conftest.$ac_objext \
17867       conftest$ac_exeext conftest.$ac_ext
17868 fi
17869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17871 if test `eval echo '${'$as_ac_var'}'` = yes; then
17872   cat >>confdefs.h <<_ACEOF
17873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17874 _ACEOF
17875  cat >>confdefs.h <<\_ACEOF
17876 #define HAVE_INET_PTON 1
17877 _ACEOF
17878
17879 fi
17880 done
17881
17882
17883 for ac_func in inet_ntop
17884 do
17885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17886 echo "$as_me:$LINENO: checking for $ac_func" >&5
17887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17888 if eval "test \"\${$as_ac_var+set}\" = set"; then
17889   echo $ECHO_N "(cached) $ECHO_C" >&6
17890 else
17891   cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h.  */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h.  */
17897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17899 #define $ac_func innocuous_$ac_func
17900
17901 /* System header to define __stub macros and hopefully few prototypes,
17902     which can conflict with char $ac_func (); below.
17903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17904     <limits.h> exists even on freestanding compilers.  */
17905
17906 #ifdef __STDC__
17907 # include <limits.h>
17908 #else
17909 # include <assert.h>
17910 #endif
17911
17912 #undef $ac_func
17913
17914 /* Override any gcc2 internal prototype to avoid an error.  */
17915 #ifdef __cplusplus
17916 extern "C"
17917 {
17918 #endif
17919 /* We use char because int might match the return type of a gcc2
17920    builtin and then its argument prototype would still apply.  */
17921 char $ac_func ();
17922 /* The GNU C library defines this for functions which it implements
17923     to always fail with ENOSYS.  Some functions are actually named
17924     something starting with __ and the normal name is an alias.  */
17925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17926 choke me
17927 #else
17928 char (*f) () = $ac_func;
17929 #endif
17930 #ifdef __cplusplus
17931 }
17932 #endif
17933
17934 int
17935 main ()
17936 {
17937 return f != $ac_func;
17938   ;
17939   return 0;
17940 }
17941 _ACEOF
17942 rm -f conftest.$ac_objext conftest$ac_exeext
17943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17944   (eval $ac_link) 2>conftest.er1
17945   ac_status=$?
17946   grep -v '^ *+' conftest.er1 >conftest.err
17947   rm -f conftest.er1
17948   cat conftest.err >&5
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); } &&
17951          { ac_try='test -z "$ac_c_werror_flag"
17952                          || test ! -s conftest.err'
17953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17954   (eval $ac_try) 2>&5
17955   ac_status=$?
17956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957   (exit $ac_status); }; } &&
17958          { ac_try='test -s conftest$ac_exeext'
17959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17960   (eval $ac_try) 2>&5
17961   ac_status=$?
17962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963   (exit $ac_status); }; }; then
17964   eval "$as_ac_var=yes"
17965 else
17966   echo "$as_me: failed program was:" >&5
17967 sed 's/^/| /' conftest.$ac_ext >&5
17968
17969 eval "$as_ac_var=no"
17970 fi
17971 rm -f conftest.err conftest.$ac_objext \
17972       conftest$ac_exeext conftest.$ac_ext
17973 fi
17974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17976 if test `eval echo '${'$as_ac_var'}'` = yes; then
17977   cat >>confdefs.h <<_ACEOF
17978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17979 _ACEOF
17980  cat >>confdefs.h <<\_ACEOF
17981 #define HAVE_INET_NTOP 1
17982 _ACEOF
17983
17984 fi
17985 done
17986
17987
17988 for ac_func in gethostbyname2
17989 do
17990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17991 echo "$as_me:$LINENO: checking for $ac_func" >&5
17992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17993 if eval "test \"\${$as_ac_var+set}\" = set"; then
17994   echo $ECHO_N "(cached) $ECHO_C" >&6
17995 else
17996   cat >conftest.$ac_ext <<_ACEOF
17997 /* confdefs.h.  */
17998 _ACEOF
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h.  */
18002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18003    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18004 #define $ac_func innocuous_$ac_func
18005
18006 /* System header to define __stub macros and hopefully few prototypes,
18007     which can conflict with char $ac_func (); below.
18008     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18009     <limits.h> exists even on freestanding compilers.  */
18010
18011 #ifdef __STDC__
18012 # include <limits.h>
18013 #else
18014 # include <assert.h>
18015 #endif
18016
18017 #undef $ac_func
18018
18019 /* Override any gcc2 internal prototype to avoid an error.  */
18020 #ifdef __cplusplus
18021 extern "C"
18022 {
18023 #endif
18024 /* We use char because int might match the return type of a gcc2
18025    builtin and then its argument prototype would still apply.  */
18026 char $ac_func ();
18027 /* The GNU C library defines this for functions which it implements
18028     to always fail with ENOSYS.  Some functions are actually named
18029     something starting with __ and the normal name is an alias.  */
18030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18031 choke me
18032 #else
18033 char (*f) () = $ac_func;
18034 #endif
18035 #ifdef __cplusplus
18036 }
18037 #endif
18038
18039 int
18040 main ()
18041 {
18042 return f != $ac_func;
18043   ;
18044   return 0;
18045 }
18046 _ACEOF
18047 rm -f conftest.$ac_objext conftest$ac_exeext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049   (eval $ac_link) 2>conftest.er1
18050   ac_status=$?
18051   grep -v '^ *+' conftest.er1 >conftest.err
18052   rm -f conftest.er1
18053   cat conftest.err >&5
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); } &&
18056          { ac_try='test -z "$ac_c_werror_flag"
18057                          || test ! -s conftest.err'
18058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059   (eval $ac_try) 2>&5
18060   ac_status=$?
18061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); }; } &&
18063          { ac_try='test -s conftest$ac_exeext'
18064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065   (eval $ac_try) 2>&5
18066   ac_status=$?
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); }; }; then
18069   eval "$as_ac_var=yes"
18070 else
18071   echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18073
18074 eval "$as_ac_var=no"
18075 fi
18076 rm -f conftest.err conftest.$ac_objext \
18077       conftest$ac_exeext conftest.$ac_ext
18078 fi
18079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18080 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18081 if test `eval echo '${'$as_ac_var'}'` = yes; then
18082   cat >>confdefs.h <<_ACEOF
18083 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18084 _ACEOF
18085  cat >>confdefs.h <<\_ACEOF
18086 #define HAVE_GETHOSTBYNAME2 1
18087 _ACEOF
18088
18089 fi
18090 done
18091
18092
18093 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18094 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18095 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18096   echo $ECHO_N "(cached) $ECHO_C" >&6
18097 else
18098   cat >conftest.$ac_ext <<_ACEOF
18099 /* confdefs.h.  */
18100 _ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h.  */
18104 #include <sys/socket.h>
18105 int
18106 main ()
18107 {
18108 struct sockaddr s; s.sa_len;
18109   ;
18110   return 0;
18111 }
18112 _ACEOF
18113 rm -f conftest.$ac_objext
18114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18115   (eval $ac_compile) 2>conftest.er1
18116   ac_status=$?
18117   grep -v '^ *+' conftest.er1 >conftest.err
18118   rm -f conftest.er1
18119   cat conftest.err >&5
18120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121   (exit $ac_status); } &&
18122          { ac_try='test -z "$ac_c_werror_flag"
18123                          || test ! -s conftest.err'
18124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125   (eval $ac_try) 2>&5
18126   ac_status=$?
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); }; } &&
18129          { ac_try='test -s conftest.$ac_objext'
18130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131   (eval $ac_try) 2>&5
18132   ac_status=$?
18133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134   (exit $ac_status); }; }; then
18135   ac_cv_struct_sockaddr_sa_len=yes
18136 else
18137   echo "$as_me: failed program was:" >&5
18138 sed 's/^/| /' conftest.$ac_ext >&5
18139
18140 ac_cv_struct_sockaddr_sa_len=no
18141 fi
18142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18143 fi
18144 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18145 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18146
18147  if test $ac_cv_struct_sockaddr_sa_len = yes; then
18148
18149 cat >>confdefs.h <<\_ACEOF
18150 #define HAVE_SA_LEN 1
18151 _ACEOF
18152
18153  fi
18154
18155
18156 echo "$as_me:$LINENO: checking for IPv6 support" >&5
18157 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
18158 if test "${ac_cv_ipv6_support+set}" = set; then
18159   echo $ECHO_N "(cached) $ECHO_C" >&6
18160 else
18161   cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h.  */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h.  */
18167  #include <sys/types.h>
18168 #include <sys/socket.h>
18169 #include <netinet/in.h>
18170 int
18171 main ()
18172 {
18173 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
18174  0;
18175   ;
18176   return 0;
18177 }
18178 _ACEOF
18179 rm -f conftest.$ac_objext conftest$ac_exeext
18180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18181   (eval $ac_link) 2>conftest.er1
18182   ac_status=$?
18183   grep -v '^ *+' conftest.er1 >conftest.err
18184   rm -f conftest.er1
18185   cat conftest.err >&5
18186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18187   (exit $ac_status); } &&
18188          { ac_try='test -z "$ac_c_werror_flag"
18189                          || test ! -s conftest.err'
18190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18191   (eval $ac_try) 2>&5
18192   ac_status=$?
18193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); }; } &&
18195          { ac_try='test -s conftest$ac_exeext'
18196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197   (eval $ac_try) 2>&5
18198   ac_status=$?
18199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200   (exit $ac_status); }; }; then
18201   ac_cv_ipv6_support=yes
18202 else
18203   echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18205
18206 ac_cv_ipv6_support=no
18207 fi
18208 rm -f conftest.err conftest.$ac_objext \
18209       conftest$ac_exeext conftest.$ac_ext
18210 fi
18211 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
18212 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
18213
18214 if test "$ac_cv_ipv6_support" = yes; then
18215
18216 cat >>confdefs.h <<\_ACEOF
18217 #define HAVE_IPV6 1
18218 _ACEOF
18219
18220 fi
18221
18222
18223
18224
18225 for ac_func in strftime
18226 do
18227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18228 echo "$as_me:$LINENO: checking for $ac_func" >&5
18229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18230 if eval "test \"\${$as_ac_var+set}\" = set"; then
18231   echo $ECHO_N "(cached) $ECHO_C" >&6
18232 else
18233   cat >conftest.$ac_ext <<_ACEOF
18234 /* confdefs.h.  */
18235 _ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h.  */
18239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18241 #define $ac_func innocuous_$ac_func
18242
18243 /* System header to define __stub macros and hopefully few prototypes,
18244     which can conflict with char $ac_func (); below.
18245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18246     <limits.h> exists even on freestanding compilers.  */
18247
18248 #ifdef __STDC__
18249 # include <limits.h>
18250 #else
18251 # include <assert.h>
18252 #endif
18253
18254 #undef $ac_func
18255
18256 /* Override any gcc2 internal prototype to avoid an error.  */
18257 #ifdef __cplusplus
18258 extern "C"
18259 {
18260 #endif
18261 /* We use char because int might match the return type of a gcc2
18262    builtin and then its argument prototype would still apply.  */
18263 char $ac_func ();
18264 /* The GNU C library defines this for functions which it implements
18265     to always fail with ENOSYS.  Some functions are actually named
18266     something starting with __ and the normal name is an alias.  */
18267 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18268 choke me
18269 #else
18270 char (*f) () = $ac_func;
18271 #endif
18272 #ifdef __cplusplus
18273 }
18274 #endif
18275
18276 int
18277 main ()
18278 {
18279 return f != $ac_func;
18280   ;
18281   return 0;
18282 }
18283 _ACEOF
18284 rm -f conftest.$ac_objext conftest$ac_exeext
18285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18286   (eval $ac_link) 2>conftest.er1
18287   ac_status=$?
18288   grep -v '^ *+' conftest.er1 >conftest.err
18289   rm -f conftest.er1
18290   cat conftest.err >&5
18291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292   (exit $ac_status); } &&
18293          { ac_try='test -z "$ac_c_werror_flag"
18294                          || test ! -s conftest.err'
18295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296   (eval $ac_try) 2>&5
18297   ac_status=$?
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); }; } &&
18300          { ac_try='test -s conftest$ac_exeext'
18301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302   (eval $ac_try) 2>&5
18303   ac_status=$?
18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); }; }; then
18306   eval "$as_ac_var=yes"
18307 else
18308   echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18310
18311 eval "$as_ac_var=no"
18312 fi
18313 rm -f conftest.err conftest.$ac_objext \
18314       conftest$ac_exeext conftest.$ac_ext
18315 fi
18316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18317 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18318 if test `eval echo '${'$as_ac_var'}'` = yes; then
18319   cat >>confdefs.h <<_ACEOF
18320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18321 _ACEOF
18322
18323 else
18324   # strftime is in -lintl on SCO UNIX.
18325 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18326 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18327 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18328   echo $ECHO_N "(cached) $ECHO_C" >&6
18329 else
18330   ac_check_lib_save_LIBS=$LIBS
18331 LIBS="-lintl  $LIBS"
18332 cat >conftest.$ac_ext <<_ACEOF
18333 /* confdefs.h.  */
18334 _ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h.  */
18338
18339 /* Override any gcc2 internal prototype to avoid an error.  */
18340 #ifdef __cplusplus
18341 extern "C"
18342 #endif
18343 /* We use char because int might match the return type of a gcc2
18344    builtin and then its argument prototype would still apply.  */
18345 char strftime ();
18346 int
18347 main ()
18348 {
18349 strftime ();
18350   ;
18351   return 0;
18352 }
18353 _ACEOF
18354 rm -f conftest.$ac_objext conftest$ac_exeext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18356   (eval $ac_link) 2>conftest.er1
18357   ac_status=$?
18358   grep -v '^ *+' conftest.er1 >conftest.err
18359   rm -f conftest.er1
18360   cat conftest.err >&5
18361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362   (exit $ac_status); } &&
18363          { ac_try='test -z "$ac_c_werror_flag"
18364                          || test ! -s conftest.err'
18365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18366   (eval $ac_try) 2>&5
18367   ac_status=$?
18368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369   (exit $ac_status); }; } &&
18370          { ac_try='test -s conftest$ac_exeext'
18371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372   (eval $ac_try) 2>&5
18373   ac_status=$?
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); }; }; then
18376   ac_cv_lib_intl_strftime=yes
18377 else
18378   echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18380
18381 ac_cv_lib_intl_strftime=no
18382 fi
18383 rm -f conftest.err conftest.$ac_objext \
18384       conftest$ac_exeext conftest.$ac_ext
18385 LIBS=$ac_check_lib_save_LIBS
18386 fi
18387 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18388 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18389 if test $ac_cv_lib_intl_strftime = yes; then
18390   cat >>confdefs.h <<\_ACEOF
18391 #define HAVE_STRFTIME 1
18392 _ACEOF
18393
18394 LIBS="-lintl $LIBS"
18395 fi
18396
18397 fi
18398 done
18399
18400
18401 for ac_func in vprintf
18402 do
18403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18404 echo "$as_me:$LINENO: checking for $ac_func" >&5
18405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18406 if eval "test \"\${$as_ac_var+set}\" = set"; then
18407   echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18409   cat >conftest.$ac_ext <<_ACEOF
18410 /* confdefs.h.  */
18411 _ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h.  */
18415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18417 #define $ac_func innocuous_$ac_func
18418
18419 /* System header to define __stub macros and hopefully few prototypes,
18420     which can conflict with char $ac_func (); below.
18421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18422     <limits.h> exists even on freestanding compilers.  */
18423
18424 #ifdef __STDC__
18425 # include <limits.h>
18426 #else
18427 # include <assert.h>
18428 #endif
18429
18430 #undef $ac_func
18431
18432 /* Override any gcc2 internal prototype to avoid an error.  */
18433 #ifdef __cplusplus
18434 extern "C"
18435 {
18436 #endif
18437 /* We use char because int might match the return type of a gcc2
18438    builtin and then its argument prototype would still apply.  */
18439 char $ac_func ();
18440 /* The GNU C library defines this for functions which it implements
18441     to always fail with ENOSYS.  Some functions are actually named
18442     something starting with __ and the normal name is an alias.  */
18443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18444 choke me
18445 #else
18446 char (*f) () = $ac_func;
18447 #endif
18448 #ifdef __cplusplus
18449 }
18450 #endif
18451
18452 int
18453 main ()
18454 {
18455 return f != $ac_func;
18456   ;
18457   return 0;
18458 }
18459 _ACEOF
18460 rm -f conftest.$ac_objext conftest$ac_exeext
18461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18462   (eval $ac_link) 2>conftest.er1
18463   ac_status=$?
18464   grep -v '^ *+' conftest.er1 >conftest.err
18465   rm -f conftest.er1
18466   cat conftest.err >&5
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); } &&
18469          { ac_try='test -z "$ac_c_werror_flag"
18470                          || test ! -s conftest.err'
18471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18472   (eval $ac_try) 2>&5
18473   ac_status=$?
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); }; } &&
18476          { ac_try='test -s conftest$ac_exeext'
18477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478   (eval $ac_try) 2>&5
18479   ac_status=$?
18480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481   (exit $ac_status); }; }; then
18482   eval "$as_ac_var=yes"
18483 else
18484   echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18486
18487 eval "$as_ac_var=no"
18488 fi
18489 rm -f conftest.err conftest.$ac_objext \
18490       conftest$ac_exeext conftest.$ac_ext
18491 fi
18492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18494 if test `eval echo '${'$as_ac_var'}'` = yes; then
18495   cat >>confdefs.h <<_ACEOF
18496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18497 _ACEOF
18498
18499 echo "$as_me:$LINENO: checking for _doprnt" >&5
18500 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
18501 if test "${ac_cv_func__doprnt+set}" = set; then
18502   echo $ECHO_N "(cached) $ECHO_C" >&6
18503 else
18504   cat >conftest.$ac_ext <<_ACEOF
18505 /* confdefs.h.  */
18506 _ACEOF
18507 cat confdefs.h >>conftest.$ac_ext
18508 cat >>conftest.$ac_ext <<_ACEOF
18509 /* end confdefs.h.  */
18510 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
18511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18512 #define _doprnt innocuous__doprnt
18513
18514 /* System header to define __stub macros and hopefully few prototypes,
18515     which can conflict with char _doprnt (); below.
18516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18517     <limits.h> exists even on freestanding compilers.  */
18518
18519 #ifdef __STDC__
18520 # include <limits.h>
18521 #else
18522 # include <assert.h>
18523 #endif
18524
18525 #undef _doprnt
18526
18527 /* Override any gcc2 internal prototype to avoid an error.  */
18528 #ifdef __cplusplus
18529 extern "C"
18530 {
18531 #endif
18532 /* We use char because int might match the return type of a gcc2
18533    builtin and then its argument prototype would still apply.  */
18534 char _doprnt ();
18535 /* The GNU C library defines this for functions which it implements
18536     to always fail with ENOSYS.  Some functions are actually named
18537     something starting with __ and the normal name is an alias.  */
18538 #if defined (__stub__doprnt) || defined (__stub____doprnt)
18539 choke me
18540 #else
18541 char (*f) () = _doprnt;
18542 #endif
18543 #ifdef __cplusplus
18544 }
18545 #endif
18546
18547 int
18548 main ()
18549 {
18550 return f != _doprnt;
18551   ;
18552   return 0;
18553 }
18554 _ACEOF
18555 rm -f conftest.$ac_objext conftest$ac_exeext
18556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18557   (eval $ac_link) 2>conftest.er1
18558   ac_status=$?
18559   grep -v '^ *+' conftest.er1 >conftest.err
18560   rm -f conftest.er1
18561   cat conftest.err >&5
18562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563   (exit $ac_status); } &&
18564          { ac_try='test -z "$ac_c_werror_flag"
18565                          || test ! -s conftest.err'
18566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567   (eval $ac_try) 2>&5
18568   ac_status=$?
18569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570   (exit $ac_status); }; } &&
18571          { ac_try='test -s conftest$ac_exeext'
18572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573   (eval $ac_try) 2>&5
18574   ac_status=$?
18575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576   (exit $ac_status); }; }; then
18577   ac_cv_func__doprnt=yes
18578 else
18579   echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18581
18582 ac_cv_func__doprnt=no
18583 fi
18584 rm -f conftest.err conftest.$ac_objext \
18585       conftest$ac_exeext conftest.$ac_ext
18586 fi
18587 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
18588 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
18589 if test $ac_cv_func__doprnt = yes; then
18590
18591 cat >>confdefs.h <<\_ACEOF
18592 #define HAVE_DOPRNT 1
18593 _ACEOF
18594
18595 fi
18596
18597 fi
18598 done
18599
18600
18601 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18602 # for constant arguments.  Useless!
18603 echo "$as_me:$LINENO: checking for working alloca.h" >&5
18604 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
18605 if test "${ac_cv_working_alloca_h+set}" = set; then
18606   echo $ECHO_N "(cached) $ECHO_C" >&6
18607 else
18608   cat >conftest.$ac_ext <<_ACEOF
18609 /* confdefs.h.  */
18610 _ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h.  */
18614 #include <alloca.h>
18615 int
18616 main ()
18617 {
18618 char *p = (char *) alloca (2 * sizeof (int));
18619   ;
18620   return 0;
18621 }
18622 _ACEOF
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18625   (eval $ac_link) 2>conftest.er1
18626   ac_status=$?
18627   grep -v '^ *+' conftest.er1 >conftest.err
18628   rm -f conftest.er1
18629   cat conftest.err >&5
18630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631   (exit $ac_status); } &&
18632          { ac_try='test -z "$ac_c_werror_flag"
18633                          || test ! -s conftest.err'
18634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635   (eval $ac_try) 2>&5
18636   ac_status=$?
18637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638   (exit $ac_status); }; } &&
18639          { ac_try='test -s conftest$ac_exeext'
18640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641   (eval $ac_try) 2>&5
18642   ac_status=$?
18643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644   (exit $ac_status); }; }; then
18645   ac_cv_working_alloca_h=yes
18646 else
18647   echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18649
18650 ac_cv_working_alloca_h=no
18651 fi
18652 rm -f conftest.err conftest.$ac_objext \
18653       conftest$ac_exeext conftest.$ac_ext
18654 fi
18655 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
18656 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
18657 if test $ac_cv_working_alloca_h = yes; then
18658
18659 cat >>confdefs.h <<\_ACEOF
18660 #define HAVE_ALLOCA_H 1
18661 _ACEOF
18662
18663 fi
18664
18665 echo "$as_me:$LINENO: checking for alloca" >&5
18666 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
18667 if test "${ac_cv_func_alloca_works+set}" = set; then
18668   echo $ECHO_N "(cached) $ECHO_C" >&6
18669 else
18670   cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h.  */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h.  */
18676 #ifdef __GNUC__
18677 # define alloca __builtin_alloca
18678 #else
18679 # ifdef _MSC_VER
18680 #  include <malloc.h>
18681 #  define alloca _alloca
18682 # else
18683 #  if HAVE_ALLOCA_H
18684 #   include <alloca.h>
18685 #  else
18686 #   ifdef _AIX
18687  #pragma alloca
18688 #   else
18689 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18690 char *alloca ();
18691 #    endif
18692 #   endif
18693 #  endif
18694 # endif
18695 #endif
18696
18697 int
18698 main ()
18699 {
18700 char *p = (char *) alloca (1);
18701   ;
18702   return 0;
18703 }
18704 _ACEOF
18705 rm -f conftest.$ac_objext conftest$ac_exeext
18706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18707   (eval $ac_link) 2>conftest.er1
18708   ac_status=$?
18709   grep -v '^ *+' conftest.er1 >conftest.err
18710   rm -f conftest.er1
18711   cat conftest.err >&5
18712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713   (exit $ac_status); } &&
18714          { ac_try='test -z "$ac_c_werror_flag"
18715                          || test ! -s conftest.err'
18716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717   (eval $ac_try) 2>&5
18718   ac_status=$?
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); }; } &&
18721          { ac_try='test -s conftest$ac_exeext'
18722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18723   (eval $ac_try) 2>&5
18724   ac_status=$?
18725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); }; }; then
18727   ac_cv_func_alloca_works=yes
18728 else
18729   echo "$as_me: failed program was:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18731
18732 ac_cv_func_alloca_works=no
18733 fi
18734 rm -f conftest.err conftest.$ac_objext \
18735       conftest$ac_exeext conftest.$ac_ext
18736 fi
18737 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
18738 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
18739
18740 if test $ac_cv_func_alloca_works = yes; then
18741
18742 cat >>confdefs.h <<\_ACEOF
18743 #define HAVE_ALLOCA 1
18744 _ACEOF
18745
18746 else
18747   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18748 # that cause trouble.  Some versions do not even contain alloca or
18749 # contain a buggy version.  If you still want to use their alloca,
18750 # use ar to extract alloca.o from them instead of compiling alloca.c.
18751
18752 ALLOCA=alloca.$ac_objext
18753
18754 cat >>confdefs.h <<\_ACEOF
18755 #define C_ALLOCA 1
18756 _ACEOF
18757
18758
18759 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
18760 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
18761 if test "${ac_cv_os_cray+set}" = set; then
18762   echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764   cat >conftest.$ac_ext <<_ACEOF
18765 /* confdefs.h.  */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h.  */
18770 #if defined(CRAY) && ! defined(CRAY2)
18771 webecray
18772 #else
18773 wenotbecray
18774 #endif
18775
18776 _ACEOF
18777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18778   $EGREP "webecray" >/dev/null 2>&1; then
18779   ac_cv_os_cray=yes
18780 else
18781   ac_cv_os_cray=no
18782 fi
18783 rm -f conftest*
18784
18785 fi
18786 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
18787 echo "${ECHO_T}$ac_cv_os_cray" >&6
18788 if test $ac_cv_os_cray = yes; then
18789   for ac_func in _getb67 GETB67 getb67; do
18790     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18791 echo "$as_me:$LINENO: checking for $ac_func" >&5
18792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18793 if eval "test \"\${$as_ac_var+set}\" = set"; then
18794   echo $ECHO_N "(cached) $ECHO_C" >&6
18795 else
18796   cat >conftest.$ac_ext <<_ACEOF
18797 /* confdefs.h.  */
18798 _ACEOF
18799 cat confdefs.h >>conftest.$ac_ext
18800 cat >>conftest.$ac_ext <<_ACEOF
18801 /* end confdefs.h.  */
18802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18804 #define $ac_func innocuous_$ac_func
18805
18806 /* System header to define __stub macros and hopefully few prototypes,
18807     which can conflict with char $ac_func (); below.
18808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18809     <limits.h> exists even on freestanding compilers.  */
18810
18811 #ifdef __STDC__
18812 # include <limits.h>
18813 #else
18814 # include <assert.h>
18815 #endif
18816
18817 #undef $ac_func
18818
18819 /* Override any gcc2 internal prototype to avoid an error.  */
18820 #ifdef __cplusplus
18821 extern "C"
18822 {
18823 #endif
18824 /* We use char because int might match the return type of a gcc2
18825    builtin and then its argument prototype would still apply.  */
18826 char $ac_func ();
18827 /* The GNU C library defines this for functions which it implements
18828     to always fail with ENOSYS.  Some functions are actually named
18829     something starting with __ and the normal name is an alias.  */
18830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18831 choke me
18832 #else
18833 char (*f) () = $ac_func;
18834 #endif
18835 #ifdef __cplusplus
18836 }
18837 #endif
18838
18839 int
18840 main ()
18841 {
18842 return f != $ac_func;
18843   ;
18844   return 0;
18845 }
18846 _ACEOF
18847 rm -f conftest.$ac_objext conftest$ac_exeext
18848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18849   (eval $ac_link) 2>conftest.er1
18850   ac_status=$?
18851   grep -v '^ *+' conftest.er1 >conftest.err
18852   rm -f conftest.er1
18853   cat conftest.err >&5
18854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855   (exit $ac_status); } &&
18856          { ac_try='test -z "$ac_c_werror_flag"
18857                          || test ! -s conftest.err'
18858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18859   (eval $ac_try) 2>&5
18860   ac_status=$?
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); }; } &&
18863          { ac_try='test -s conftest$ac_exeext'
18864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865   (eval $ac_try) 2>&5
18866   ac_status=$?
18867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868   (exit $ac_status); }; }; then
18869   eval "$as_ac_var=yes"
18870 else
18871   echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18873
18874 eval "$as_ac_var=no"
18875 fi
18876 rm -f conftest.err conftest.$ac_objext \
18877       conftest$ac_exeext conftest.$ac_ext
18878 fi
18879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18881 if test `eval echo '${'$as_ac_var'}'` = yes; then
18882
18883 cat >>confdefs.h <<_ACEOF
18884 #define CRAY_STACKSEG_END $ac_func
18885 _ACEOF
18886
18887     break
18888 fi
18889
18890   done
18891 fi
18892
18893 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
18894 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
18895 if test "${ac_cv_c_stack_direction+set}" = set; then
18896   echo $ECHO_N "(cached) $ECHO_C" >&6
18897 else
18898   if test "$cross_compiling" = yes; then
18899   ac_cv_c_stack_direction=0
18900 else
18901   cat >conftest.$ac_ext <<_ACEOF
18902 /* confdefs.h.  */
18903 _ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h.  */
18907 int
18908 find_stack_direction ()
18909 {
18910   static char *addr = 0;
18911   auto char dummy;
18912   if (addr == 0)
18913     {
18914       addr = &dummy;
18915       return find_stack_direction ();
18916     }
18917   else
18918     return (&dummy > addr) ? 1 : -1;
18919 }
18920
18921 int
18922 main ()
18923 {
18924   exit (find_stack_direction () < 0);
18925 }
18926 _ACEOF
18927 rm -f conftest$ac_exeext
18928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18929   (eval $ac_link) 2>&5
18930   ac_status=$?
18931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934   (eval $ac_try) 2>&5
18935   ac_status=$?
18936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937   (exit $ac_status); }; }; then
18938   ac_cv_c_stack_direction=1
18939 else
18940   echo "$as_me: program exited with status $ac_status" >&5
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18943
18944 ( exit $ac_status )
18945 ac_cv_c_stack_direction=-1
18946 fi
18947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18948 fi
18949 fi
18950 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
18951 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
18952
18953 cat >>confdefs.h <<_ACEOF
18954 #define STACK_DIRECTION $ac_cv_c_stack_direction
18955 _ACEOF
18956
18957
18958 fi
18959
18960 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
18961 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
18962 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
18963 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
18964   echo $ECHO_N "(cached) $ECHO_C" >&6
18965 else
18966   ac_check_lib_save_LIBS=$LIBS
18967 LIBS="-lsun  $LIBS"
18968 cat >conftest.$ac_ext <<_ACEOF
18969 /* confdefs.h.  */
18970 _ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h.  */
18974
18975 /* Override any gcc2 internal prototype to avoid an error.  */
18976 #ifdef __cplusplus
18977 extern "C"
18978 #endif
18979 /* We use char because int might match the return type of a gcc2
18980    builtin and then its argument prototype would still apply.  */
18981 char getmntent ();
18982 int
18983 main ()
18984 {
18985 getmntent ();
18986   ;
18987   return 0;
18988 }
18989 _ACEOF
18990 rm -f conftest.$ac_objext conftest$ac_exeext
18991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18992   (eval $ac_link) 2>conftest.er1
18993   ac_status=$?
18994   grep -v '^ *+' conftest.er1 >conftest.err
18995   rm -f conftest.er1
18996   cat conftest.err >&5
18997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998   (exit $ac_status); } &&
18999          { ac_try='test -z "$ac_c_werror_flag"
19000                          || test ! -s conftest.err'
19001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19002   (eval $ac_try) 2>&5
19003   ac_status=$?
19004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005   (exit $ac_status); }; } &&
19006          { ac_try='test -s conftest$ac_exeext'
19007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008   (eval $ac_try) 2>&5
19009   ac_status=$?
19010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011   (exit $ac_status); }; }; then
19012   ac_cv_lib_sun_getmntent=yes
19013 else
19014   echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19016
19017 ac_cv_lib_sun_getmntent=no
19018 fi
19019 rm -f conftest.err conftest.$ac_objext \
19020       conftest$ac_exeext conftest.$ac_ext
19021 LIBS=$ac_check_lib_save_LIBS
19022 fi
19023 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19024 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19025 if test $ac_cv_lib_sun_getmntent = yes; then
19026   LIBS="-lsun $LIBS"
19027 else
19028   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19029 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19030 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19031   echo $ECHO_N "(cached) $ECHO_C" >&6
19032 else
19033   ac_check_lib_save_LIBS=$LIBS
19034 LIBS="-lseq  $LIBS"
19035 cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h.  */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h.  */
19041
19042 /* Override any gcc2 internal prototype to avoid an error.  */
19043 #ifdef __cplusplus
19044 extern "C"
19045 #endif
19046 /* We use char because int might match the return type of a gcc2
19047    builtin and then its argument prototype would still apply.  */
19048 char getmntent ();
19049 int
19050 main ()
19051 {
19052 getmntent ();
19053   ;
19054   return 0;
19055 }
19056 _ACEOF
19057 rm -f conftest.$ac_objext conftest$ac_exeext
19058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19059   (eval $ac_link) 2>conftest.er1
19060   ac_status=$?
19061   grep -v '^ *+' conftest.er1 >conftest.err
19062   rm -f conftest.er1
19063   cat conftest.err >&5
19064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065   (exit $ac_status); } &&
19066          { ac_try='test -z "$ac_c_werror_flag"
19067                          || test ! -s conftest.err'
19068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069   (eval $ac_try) 2>&5
19070   ac_status=$?
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); }; } &&
19073          { ac_try='test -s conftest$ac_exeext'
19074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075   (eval $ac_try) 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); }; }; then
19079   ac_cv_lib_seq_getmntent=yes
19080 else
19081   echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084 ac_cv_lib_seq_getmntent=no
19085 fi
19086 rm -f conftest.err conftest.$ac_objext \
19087       conftest$ac_exeext conftest.$ac_ext
19088 LIBS=$ac_check_lib_save_LIBS
19089 fi
19090 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19091 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19092 if test $ac_cv_lib_seq_getmntent = yes; then
19093   LIBS="-lseq $LIBS"
19094 else
19095   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19096 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19097 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19098   echo $ECHO_N "(cached) $ECHO_C" >&6
19099 else
19100   ac_check_lib_save_LIBS=$LIBS
19101 LIBS="-lgen  $LIBS"
19102 cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h.  */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h.  */
19108
19109 /* Override any gcc2 internal prototype to avoid an error.  */
19110 #ifdef __cplusplus
19111 extern "C"
19112 #endif
19113 /* We use char because int might match the return type of a gcc2
19114    builtin and then its argument prototype would still apply.  */
19115 char getmntent ();
19116 int
19117 main ()
19118 {
19119 getmntent ();
19120   ;
19121   return 0;
19122 }
19123 _ACEOF
19124 rm -f conftest.$ac_objext conftest$ac_exeext
19125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19126   (eval $ac_link) 2>conftest.er1
19127   ac_status=$?
19128   grep -v '^ *+' conftest.er1 >conftest.err
19129   rm -f conftest.er1
19130   cat conftest.err >&5
19131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132   (exit $ac_status); } &&
19133          { ac_try='test -z "$ac_c_werror_flag"
19134                          || test ! -s conftest.err'
19135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136   (eval $ac_try) 2>&5
19137   ac_status=$?
19138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139   (exit $ac_status); }; } &&
19140          { ac_try='test -s conftest$ac_exeext'
19141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142   (eval $ac_try) 2>&5
19143   ac_status=$?
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); }; }; then
19146   ac_cv_lib_gen_getmntent=yes
19147 else
19148   echo "$as_me: failed program was:" >&5
19149 sed 's/^/| /' conftest.$ac_ext >&5
19150
19151 ac_cv_lib_gen_getmntent=no
19152 fi
19153 rm -f conftest.err conftest.$ac_objext \
19154       conftest$ac_exeext conftest.$ac_ext
19155 LIBS=$ac_check_lib_save_LIBS
19156 fi
19157 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
19158 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
19159 if test $ac_cv_lib_gen_getmntent = yes; then
19160   LIBS="-lgen $LIBS"
19161 fi
19162
19163 fi
19164
19165 fi
19166
19167
19168 for ac_func in getmntent
19169 do
19170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19171 echo "$as_me:$LINENO: checking for $ac_func" >&5
19172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19173 if eval "test \"\${$as_ac_var+set}\" = set"; then
19174   echo $ECHO_N "(cached) $ECHO_C" >&6
19175 else
19176   cat >conftest.$ac_ext <<_ACEOF
19177 /* confdefs.h.  */
19178 _ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h.  */
19182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19184 #define $ac_func innocuous_$ac_func
19185
19186 /* System header to define __stub macros and hopefully few prototypes,
19187     which can conflict with char $ac_func (); below.
19188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19189     <limits.h> exists even on freestanding compilers.  */
19190
19191 #ifdef __STDC__
19192 # include <limits.h>
19193 #else
19194 # include <assert.h>
19195 #endif
19196
19197 #undef $ac_func
19198
19199 /* Override any gcc2 internal prototype to avoid an error.  */
19200 #ifdef __cplusplus
19201 extern "C"
19202 {
19203 #endif
19204 /* We use char because int might match the return type of a gcc2
19205    builtin and then its argument prototype would still apply.  */
19206 char $ac_func ();
19207 /* The GNU C library defines this for functions which it implements
19208     to always fail with ENOSYS.  Some functions are actually named
19209     something starting with __ and the normal name is an alias.  */
19210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19211 choke me
19212 #else
19213 char (*f) () = $ac_func;
19214 #endif
19215 #ifdef __cplusplus
19216 }
19217 #endif
19218
19219 int
19220 main ()
19221 {
19222 return f != $ac_func;
19223   ;
19224   return 0;
19225 }
19226 _ACEOF
19227 rm -f conftest.$ac_objext conftest$ac_exeext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19229   (eval $ac_link) 2>conftest.er1
19230   ac_status=$?
19231   grep -v '^ *+' conftest.er1 >conftest.err
19232   rm -f conftest.er1
19233   cat conftest.err >&5
19234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235   (exit $ac_status); } &&
19236          { ac_try='test -z "$ac_c_werror_flag"
19237                          || test ! -s conftest.err'
19238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239   (eval $ac_try) 2>&5
19240   ac_status=$?
19241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242   (exit $ac_status); }; } &&
19243          { ac_try='test -s conftest$ac_exeext'
19244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245   (eval $ac_try) 2>&5
19246   ac_status=$?
19247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248   (exit $ac_status); }; }; then
19249   eval "$as_ac_var=yes"
19250 else
19251   echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19253
19254 eval "$as_ac_var=no"
19255 fi
19256 rm -f conftest.err conftest.$ac_objext \
19257       conftest$ac_exeext conftest.$ac_ext
19258 fi
19259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19261 if test `eval echo '${'$as_ac_var'}'` = yes; then
19262   cat >>confdefs.h <<_ACEOF
19263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19264 _ACEOF
19265
19266 fi
19267 done
19268
19269
19270 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
19271 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
19272 if test "${ac_cv_func_closedir_void+set}" = set; then
19273   echo $ECHO_N "(cached) $ECHO_C" >&6
19274 else
19275   if test "$cross_compiling" = yes; then
19276   ac_cv_func_closedir_void=yes
19277 else
19278   cat >conftest.$ac_ext <<_ACEOF
19279 /* confdefs.h.  */
19280 _ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h.  */
19284 $ac_includes_default
19285 #include <$ac_header_dirent>
19286 #ifndef __cplusplus
19287 int closedir ();
19288 #endif
19289
19290 int
19291 main ()
19292 {
19293 exit (closedir (opendir (".")) != 0);
19294   ;
19295   return 0;
19296 }
19297 _ACEOF
19298 rm -f conftest$ac_exeext
19299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19300   (eval $ac_link) 2>&5
19301   ac_status=$?
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305   (eval $ac_try) 2>&5
19306   ac_status=$?
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); }; }; then
19309   ac_cv_func_closedir_void=no
19310 else
19311   echo "$as_me: program exited with status $ac_status" >&5
19312 echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19314
19315 ( exit $ac_status )
19316 ac_cv_func_closedir_void=yes
19317 fi
19318 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19319 fi
19320 fi
19321 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
19322 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
19323 if test $ac_cv_func_closedir_void = yes; then
19324
19325 cat >>confdefs.h <<\_ACEOF
19326 #define CLOSEDIR_VOID 1
19327 _ACEOF
19328
19329 fi
19330
19331 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
19332 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
19333 if test "${ac_cv_func_setpgrp_void+set}" = set; then
19334   echo $ECHO_N "(cached) $ECHO_C" >&6
19335 else
19336   if test "$cross_compiling" = yes; then
19337   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
19338 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
19339    { (exit 1); exit 1; }; }
19340 else
19341   cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h.  */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h.  */
19347 #if HAVE_UNISTD_H
19348 # include <unistd.h>
19349 #endif
19350
19351 int
19352 main ()
19353 {
19354 /* If this system has a BSD-style setpgrp which takes arguments,
19355   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
19356   exit successfully. */
19357   exit (setpgrp (1,1) == -1 ? 0 : 1);
19358   ;
19359   return 0;
19360 }
19361 _ACEOF
19362 rm -f conftest$ac_exeext
19363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19364   (eval $ac_link) 2>&5
19365   ac_status=$?
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369   (eval $ac_try) 2>&5
19370   ac_status=$?
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); }; }; then
19373   ac_cv_func_setpgrp_void=no
19374 else
19375   echo "$as_me: program exited with status $ac_status" >&5
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19378
19379 ( exit $ac_status )
19380 ac_cv_func_setpgrp_void=yes
19381 fi
19382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19383 fi
19384 fi
19385 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19386 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
19387 if test $ac_cv_func_setpgrp_void = yes; then
19388
19389 cat >>confdefs.h <<\_ACEOF
19390 #define SETPGRP_VOID 1
19391 _ACEOF
19392
19393 fi
19394                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
19395 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
19396 if test "${ac_cv_func_fnmatch_works+set}" = set; then
19397   echo $ECHO_N "(cached) $ECHO_C" >&6
19398 else
19399   # Some versions of Solaris, SCO, and the GNU C Library
19400    # have a broken or incompatible fnmatch.
19401    # So we run a test program.  If we are cross-compiling, take no chance.
19402    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
19403    if test "$cross_compiling" = yes; then
19404   ac_cv_func_fnmatch_works=cross
19405 else
19406   cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h.  */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h.  */
19412 #include <fnmatch.h>
19413 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
19414 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
19415
19416 int
19417 main ()
19418 {
19419 exit
19420            (!(y ("a*", "abc", 0)
19421               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
19422               && y ("a\\\\bc", "abc", 0)
19423               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
19424               && y ("*x", ".x", 0)
19425               && n ("*x", ".x", FNM_PERIOD)
19426               && 1));
19427   ;
19428   return 0;
19429 }
19430 _ACEOF
19431 rm -f conftest$ac_exeext
19432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19433   (eval $ac_link) 2>&5
19434   ac_status=$?
19435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438   (eval $ac_try) 2>&5
19439   ac_status=$?
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); }; }; then
19442   ac_cv_func_fnmatch_works=yes
19443 else
19444   echo "$as_me: program exited with status $ac_status" >&5
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19447
19448 ( exit $ac_status )
19449 ac_cv_func_fnmatch_works=no
19450 fi
19451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19452 fi
19453 fi
19454 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
19455 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
19456 if test $ac_cv_func_fnmatch_works = yes; then
19457
19458 cat >>confdefs.h <<\_ACEOF
19459 #define HAVE_FNMATCH 1
19460 _ACEOF
19461
19462 fi
19463
19464
19465
19466
19467
19468 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
19469 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
19470 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
19471   echo $ECHO_N "(cached) $ECHO_C" >&6
19472 else
19473   ac_check_lib_save_LIBS=$LIBS
19474 LIBS="-lxpg4  $LIBS"
19475 cat >conftest.$ac_ext <<_ACEOF
19476 /* confdefs.h.  */
19477 _ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h.  */
19481
19482 /* Override any gcc2 internal prototype to avoid an error.  */
19483 #ifdef __cplusplus
19484 extern "C"
19485 #endif
19486 /* We use char because int might match the return type of a gcc2
19487    builtin and then its argument prototype would still apply.  */
19488 char setlocale ();
19489 int
19490 main ()
19491 {
19492 setlocale ();
19493   ;
19494   return 0;
19495 }
19496 _ACEOF
19497 rm -f conftest.$ac_objext conftest$ac_exeext
19498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19499   (eval $ac_link) 2>conftest.er1
19500   ac_status=$?
19501   grep -v '^ *+' conftest.er1 >conftest.err
19502   rm -f conftest.er1
19503   cat conftest.err >&5
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); } &&
19506          { ac_try='test -z "$ac_c_werror_flag"
19507                          || test ! -s conftest.err'
19508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509   (eval $ac_try) 2>&5
19510   ac_status=$?
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); }; } &&
19513          { ac_try='test -s conftest$ac_exeext'
19514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515   (eval $ac_try) 2>&5
19516   ac_status=$?
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); }; }; then
19519   ac_cv_lib_xpg4_setlocale=yes
19520 else
19521   echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19523
19524 ac_cv_lib_xpg4_setlocale=no
19525 fi
19526 rm -f conftest.err conftest.$ac_objext \
19527       conftest$ac_exeext conftest.$ac_ext
19528 LIBS=$ac_check_lib_save_LIBS
19529 fi
19530 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
19531 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
19532 if test $ac_cv_lib_xpg4_setlocale = yes; then
19533   LIBS="$LIBS -lxpg4"
19534 fi
19535
19536
19537
19538
19539 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
19540 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
19541 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
19542   echo $ECHO_N "(cached) $ECHO_C" >&6
19543 else
19544   ac_check_lib_save_LIBS=$LIBS
19545 LIBS="-lsun  $LIBS"
19546 cat >conftest.$ac_ext <<_ACEOF
19547 /* confdefs.h.  */
19548 _ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h.  */
19552
19553 /* Override any gcc2 internal prototype to avoid an error.  */
19554 #ifdef __cplusplus
19555 extern "C"
19556 #endif
19557 /* We use char because int might match the return type of a gcc2
19558    builtin and then its argument prototype would still apply.  */
19559 char getpwnam ();
19560 int
19561 main ()
19562 {
19563 getpwnam ();
19564   ;
19565   return 0;
19566 }
19567 _ACEOF
19568 rm -f conftest.$ac_objext conftest$ac_exeext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19570   (eval $ac_link) 2>conftest.er1
19571   ac_status=$?
19572   grep -v '^ *+' conftest.er1 >conftest.err
19573   rm -f conftest.er1
19574   cat conftest.err >&5
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); } &&
19577          { ac_try='test -z "$ac_c_werror_flag"
19578                          || test ! -s conftest.err'
19579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580   (eval $ac_try) 2>&5
19581   ac_status=$?
19582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583   (exit $ac_status); }; } &&
19584          { ac_try='test -s conftest$ac_exeext'
19585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586   (eval $ac_try) 2>&5
19587   ac_status=$?
19588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589   (exit $ac_status); }; }; then
19590   ac_cv_lib_sun_getpwnam=yes
19591 else
19592   echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19594
19595 ac_cv_lib_sun_getpwnam=no
19596 fi
19597 rm -f conftest.err conftest.$ac_objext \
19598       conftest$ac_exeext conftest.$ac_ext
19599 LIBS=$ac_check_lib_save_LIBS
19600 fi
19601 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
19602 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
19603 if test $ac_cv_lib_sun_getpwnam = yes; then
19604   cat >>confdefs.h <<_ACEOF
19605 #define HAVE_LIBSUN 1
19606 _ACEOF
19607
19608   LIBS="-lsun $LIBS"
19609
19610 fi
19611
19612
19613
19614 for ac_header in zlib.h
19615 do
19616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19618   echo "$as_me:$LINENO: checking for $ac_header" >&5
19619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19621   echo $ECHO_N "(cached) $ECHO_C" >&6
19622 fi
19623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19625 else
19626   # Is the header compilable?
19627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19629 cat >conftest.$ac_ext <<_ACEOF
19630 /* confdefs.h.  */
19631 _ACEOF
19632 cat confdefs.h >>conftest.$ac_ext
19633 cat >>conftest.$ac_ext <<_ACEOF
19634 /* end confdefs.h.  */
19635 $ac_includes_default
19636 #include <$ac_header>
19637 _ACEOF
19638 rm -f conftest.$ac_objext
19639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19640   (eval $ac_compile) 2>conftest.er1
19641   ac_status=$?
19642   grep -v '^ *+' conftest.er1 >conftest.err
19643   rm -f conftest.er1
19644   cat conftest.err >&5
19645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646   (exit $ac_status); } &&
19647          { ac_try='test -z "$ac_c_werror_flag"
19648                          || test ! -s conftest.err'
19649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650   (eval $ac_try) 2>&5
19651   ac_status=$?
19652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); }; } &&
19654          { ac_try='test -s conftest.$ac_objext'
19655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19656   (eval $ac_try) 2>&5
19657   ac_status=$?
19658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659   (exit $ac_status); }; }; then
19660   ac_header_compiler=yes
19661 else
19662   echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665 ac_header_compiler=no
19666 fi
19667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19669 echo "${ECHO_T}$ac_header_compiler" >&6
19670
19671 # Is the header present?
19672 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19674 cat >conftest.$ac_ext <<_ACEOF
19675 /* confdefs.h.  */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h.  */
19680 #include <$ac_header>
19681 _ACEOF
19682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19683   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19684   ac_status=$?
19685   grep -v '^ *+' conftest.er1 >conftest.err
19686   rm -f conftest.er1
19687   cat conftest.err >&5
19688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689   (exit $ac_status); } >/dev/null; then
19690   if test -s conftest.err; then
19691     ac_cpp_err=$ac_c_preproc_warn_flag
19692     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19693   else
19694     ac_cpp_err=
19695   fi
19696 else
19697   ac_cpp_err=yes
19698 fi
19699 if test -z "$ac_cpp_err"; then
19700   ac_header_preproc=yes
19701 else
19702   echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19704
19705   ac_header_preproc=no
19706 fi
19707 rm -f conftest.err conftest.$ac_ext
19708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19709 echo "${ECHO_T}$ac_header_preproc" >&6
19710
19711 # So?  What about this header?
19712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19713   yes:no: )
19714     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19718     ac_header_preproc=yes
19719     ;;
19720   no:yes:* )
19721     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19723     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19724 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19725     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19727     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19728 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19729     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19731     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19733     (
19734       cat <<\_ASBOX
19735 ## ------------------------------------------ ##
19736 ## Report this to the AC_PACKAGE_NAME lists.  ##
19737 ## ------------------------------------------ ##
19738 _ASBOX
19739     ) |
19740       sed "s/^/$as_me: WARNING:     /" >&2
19741     ;;
19742 esac
19743 echo "$as_me:$LINENO: checking for $ac_header" >&5
19744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19746   echo $ECHO_N "(cached) $ECHO_C" >&6
19747 else
19748   eval "$as_ac_Header=\$ac_header_preproc"
19749 fi
19750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19752
19753 fi
19754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19755   cat >>confdefs.h <<_ACEOF
19756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19757 _ACEOF
19758
19759 fi
19760
19761 done
19762
19763 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19764 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19765 if test "${ac_cv_lib_z_deflate+set}" = set; then
19766   echo $ECHO_N "(cached) $ECHO_C" >&6
19767 else
19768   ac_check_lib_save_LIBS=$LIBS
19769 LIBS="-lz  $LIBS"
19770 cat >conftest.$ac_ext <<_ACEOF
19771 /* confdefs.h.  */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h.  */
19776
19777 /* Override any gcc2 internal prototype to avoid an error.  */
19778 #ifdef __cplusplus
19779 extern "C"
19780 #endif
19781 /* We use char because int might match the return type of a gcc2
19782    builtin and then its argument prototype would still apply.  */
19783 char deflate ();
19784 int
19785 main ()
19786 {
19787 deflate ();
19788   ;
19789   return 0;
19790 }
19791 _ACEOF
19792 rm -f conftest.$ac_objext conftest$ac_exeext
19793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19794   (eval $ac_link) 2>conftest.er1
19795   ac_status=$?
19796   grep -v '^ *+' conftest.er1 >conftest.err
19797   rm -f conftest.er1
19798   cat conftest.err >&5
19799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800   (exit $ac_status); } &&
19801          { ac_try='test -z "$ac_c_werror_flag"
19802                          || test ! -s conftest.err'
19803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804   (eval $ac_try) 2>&5
19805   ac_status=$?
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); }; } &&
19808          { ac_try='test -s conftest$ac_exeext'
19809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810   (eval $ac_try) 2>&5
19811   ac_status=$?
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); }; }; then
19814   ac_cv_lib_z_deflate=yes
19815 else
19816   echo "$as_me: failed program was:" >&5
19817 sed 's/^/| /' conftest.$ac_ext >&5
19818
19819 ac_cv_lib_z_deflate=no
19820 fi
19821 rm -f conftest.err conftest.$ac_objext \
19822       conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19824 fi
19825 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19826 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19827 if test $ac_cv_lib_z_deflate = yes; then
19828   FDLIBS="-lz"
19829 fi
19830
19831 have_zlib=no
19832 if test x$FDLIBS = x-lz; then
19833   cat >>confdefs.h <<\_ACEOF
19834 #define HAVE_LIBZ 1
19835 _ACEOF
19836
19837   have_zlib=yes
19838 fi
19839
19840 if test "${ac_cv_header_sys_acl_h+set}" = set; then
19841   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
19842 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
19843 if test "${ac_cv_header_sys_acl_h+set}" = set; then
19844   echo $ECHO_N "(cached) $ECHO_C" >&6
19845 fi
19846 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
19847 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
19848 else
19849   # Is the header compilable?
19850 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
19851 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h.  */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h.  */
19858 $ac_includes_default
19859 #include <sys/acl.h>
19860 _ACEOF
19861 rm -f conftest.$ac_objext
19862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19863   (eval $ac_compile) 2>conftest.er1
19864   ac_status=$?
19865   grep -v '^ *+' conftest.er1 >conftest.err
19866   rm -f conftest.er1
19867   cat conftest.err >&5
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); } &&
19870          { ac_try='test -z "$ac_c_werror_flag"
19871                          || test ! -s conftest.err'
19872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873   (eval $ac_try) 2>&5
19874   ac_status=$?
19875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876   (exit $ac_status); }; } &&
19877          { ac_try='test -s conftest.$ac_objext'
19878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879   (eval $ac_try) 2>&5
19880   ac_status=$?
19881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882   (exit $ac_status); }; }; then
19883   ac_header_compiler=yes
19884 else
19885   echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19887
19888 ac_header_compiler=no
19889 fi
19890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19892 echo "${ECHO_T}$ac_header_compiler" >&6
19893
19894 # Is the header present?
19895 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
19896 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
19897 cat >conftest.$ac_ext <<_ACEOF
19898 /* confdefs.h.  */
19899 _ACEOF
19900 cat confdefs.h >>conftest.$ac_ext
19901 cat >>conftest.$ac_ext <<_ACEOF
19902 /* end confdefs.h.  */
19903 #include <sys/acl.h>
19904 _ACEOF
19905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19906   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19907   ac_status=$?
19908   grep -v '^ *+' conftest.er1 >conftest.err
19909   rm -f conftest.er1
19910   cat conftest.err >&5
19911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912   (exit $ac_status); } >/dev/null; then
19913   if test -s conftest.err; then
19914     ac_cpp_err=$ac_c_preproc_warn_flag
19915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19916   else
19917     ac_cpp_err=
19918   fi
19919 else
19920   ac_cpp_err=yes
19921 fi
19922 if test -z "$ac_cpp_err"; then
19923   ac_header_preproc=yes
19924 else
19925   echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928   ac_header_preproc=no
19929 fi
19930 rm -f conftest.err conftest.$ac_ext
19931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19932 echo "${ECHO_T}$ac_header_preproc" >&6
19933
19934 # So?  What about this header?
19935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19936   yes:no: )
19937     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
19938 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19939     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
19940 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
19941     ac_header_preproc=yes
19942     ;;
19943   no:yes:* )
19944     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
19945 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
19946     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
19947 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
19948     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
19949 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
19950     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
19951 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19952     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
19953 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
19954     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
19955 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
19956     (
19957       cat <<\_ASBOX
19958 ## ------------------------------------------ ##
19959 ## Report this to the AC_PACKAGE_NAME lists.  ##
19960 ## ------------------------------------------ ##
19961 _ASBOX
19962     ) |
19963       sed "s/^/$as_me: WARNING:     /" >&2
19964     ;;
19965 esac
19966 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
19967 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
19968 if test "${ac_cv_header_sys_acl_h+set}" = set; then
19969   echo $ECHO_N "(cached) $ECHO_C" >&6
19970 else
19971   ac_cv_header_sys_acl_h=$ac_header_preproc
19972 fi
19973 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
19974 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
19975
19976 fi
19977
19978
19979 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
19980 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
19981 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
19982   echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984   ac_check_lib_save_LIBS=$LIBS
19985 LIBS="-lacl  $LIBS"
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h.  */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h.  */
19992
19993 /* Override any gcc2 internal prototype to avoid an error.  */
19994 #ifdef __cplusplus
19995 extern "C"
19996 #endif
19997 /* We use char because int might match the return type of a gcc2
19998    builtin and then its argument prototype would still apply.  */
19999 char acl_get_file ();
20000 int
20001 main ()
20002 {
20003 acl_get_file ();
20004   ;
20005   return 0;
20006 }
20007 _ACEOF
20008 rm -f conftest.$ac_objext conftest$ac_exeext
20009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20010   (eval $ac_link) 2>conftest.er1
20011   ac_status=$?
20012   grep -v '^ *+' conftest.er1 >conftest.err
20013   rm -f conftest.er1
20014   cat conftest.err >&5
20015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016   (exit $ac_status); } &&
20017          { ac_try='test -z "$ac_c_werror_flag"
20018                          || test ! -s conftest.err'
20019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020   (eval $ac_try) 2>&5
20021   ac_status=$?
20022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023   (exit $ac_status); }; } &&
20024          { ac_try='test -s conftest$ac_exeext'
20025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026   (eval $ac_try) 2>&5
20027   ac_status=$?
20028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029   (exit $ac_status); }; }; then
20030   ac_cv_lib_acl_acl_get_file=yes
20031 else
20032   echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20034
20035 ac_cv_lib_acl_acl_get_file=no
20036 fi
20037 rm -f conftest.err conftest.$ac_objext \
20038       conftest$ac_exeext conftest.$ac_ext
20039 LIBS=$ac_check_lib_save_LIBS
20040 fi
20041 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20042 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20043 if test $ac_cv_lib_acl_acl_get_file = yes; then
20044   FDLIBS="-lacl $FDLIBS"
20045 fi
20046
20047 have_acl=no
20048 if test $ac_cv_lib_acl_acl_get_file = yes; then
20049    cat >>confdefs.h <<\_ACEOF
20050 #define HAVE_ACL 1
20051 _ACEOF
20052
20053    have_acl=yes
20054 fi
20055
20056 PTHREAD_LIB=""
20057 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20058 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20059 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20060   echo $ECHO_N "(cached) $ECHO_C" >&6
20061 else
20062   ac_check_lib_save_LIBS=$LIBS
20063 LIBS="-lpthread  $LIBS"
20064 cat >conftest.$ac_ext <<_ACEOF
20065 /* confdefs.h.  */
20066 _ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h.  */
20070
20071 /* Override any gcc2 internal prototype to avoid an error.  */
20072 #ifdef __cplusplus
20073 extern "C"
20074 #endif
20075 /* We use char because int might match the return type of a gcc2
20076    builtin and then its argument prototype would still apply.  */
20077 char pthread_create ();
20078 int
20079 main ()
20080 {
20081 pthread_create ();
20082   ;
20083   return 0;
20084 }
20085 _ACEOF
20086 rm -f conftest.$ac_objext conftest$ac_exeext
20087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20088   (eval $ac_link) 2>conftest.er1
20089   ac_status=$?
20090   grep -v '^ *+' conftest.er1 >conftest.err
20091   rm -f conftest.er1
20092   cat conftest.err >&5
20093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094   (exit $ac_status); } &&
20095          { ac_try='test -z "$ac_c_werror_flag"
20096                          || test ! -s conftest.err'
20097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098   (eval $ac_try) 2>&5
20099   ac_status=$?
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); }; } &&
20102          { ac_try='test -s conftest$ac_exeext'
20103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104   (eval $ac_try) 2>&5
20105   ac_status=$?
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); }; }; then
20108   ac_cv_lib_pthread_pthread_create=yes
20109 else
20110   echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20112
20113 ac_cv_lib_pthread_pthread_create=no
20114 fi
20115 rm -f conftest.err conftest.$ac_objext \
20116       conftest$ac_exeext conftest.$ac_ext
20117 LIBS=$ac_check_lib_save_LIBS
20118 fi
20119 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20120 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20121 if test $ac_cv_lib_pthread_pthread_create = yes; then
20122   PTHREAD_LIB="-lpthread"
20123 else
20124   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20125 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20126 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20127   echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129   ac_check_lib_save_LIBS=$LIBS
20130 LIBS="-lpthreads  $LIBS"
20131 cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h.  */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h.  */
20137
20138 /* Override any gcc2 internal prototype to avoid an error.  */
20139 #ifdef __cplusplus
20140 extern "C"
20141 #endif
20142 /* We use char because int might match the return type of a gcc2
20143    builtin and then its argument prototype would still apply.  */
20144 char pthread_create ();
20145 int
20146 main ()
20147 {
20148 pthread_create ();
20149   ;
20150   return 0;
20151 }
20152 _ACEOF
20153 rm -f conftest.$ac_objext conftest$ac_exeext
20154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20155   (eval $ac_link) 2>conftest.er1
20156   ac_status=$?
20157   grep -v '^ *+' conftest.er1 >conftest.err
20158   rm -f conftest.er1
20159   cat conftest.err >&5
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); } &&
20162          { ac_try='test -z "$ac_c_werror_flag"
20163                          || test ! -s conftest.err'
20164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165   (eval $ac_try) 2>&5
20166   ac_status=$?
20167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168   (exit $ac_status); }; } &&
20169          { ac_try='test -s conftest$ac_exeext'
20170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171   (eval $ac_try) 2>&5
20172   ac_status=$?
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); }; }; then
20175   ac_cv_lib_pthreads_pthread_create=yes
20176 else
20177   echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20179
20180 ac_cv_lib_pthreads_pthread_create=no
20181 fi
20182 rm -f conftest.err conftest.$ac_objext \
20183       conftest$ac_exeext conftest.$ac_ext
20184 LIBS=$ac_check_lib_save_LIBS
20185 fi
20186 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20187 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20188 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20189   PTHREAD_LIB="-lpthreads"
20190 else
20191   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20192 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20193 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20194   echo $ECHO_N "(cached) $ECHO_C" >&6
20195 else
20196   ac_check_lib_save_LIBS=$LIBS
20197 LIBS="-lc_r  $LIBS"
20198 cat >conftest.$ac_ext <<_ACEOF
20199 /* confdefs.h.  */
20200 _ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h.  */
20204
20205 /* Override any gcc2 internal prototype to avoid an error.  */
20206 #ifdef __cplusplus
20207 extern "C"
20208 #endif
20209 /* We use char because int might match the return type of a gcc2
20210    builtin and then its argument prototype would still apply.  */
20211 char pthread_create ();
20212 int
20213 main ()
20214 {
20215 pthread_create ();
20216   ;
20217   return 0;
20218 }
20219 _ACEOF
20220 rm -f conftest.$ac_objext conftest$ac_exeext
20221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20222   (eval $ac_link) 2>conftest.er1
20223   ac_status=$?
20224   grep -v '^ *+' conftest.er1 >conftest.err
20225   rm -f conftest.er1
20226   cat conftest.err >&5
20227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228   (exit $ac_status); } &&
20229          { ac_try='test -z "$ac_c_werror_flag"
20230                          || test ! -s conftest.err'
20231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232   (eval $ac_try) 2>&5
20233   ac_status=$?
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); }; } &&
20236          { ac_try='test -s conftest$ac_exeext'
20237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238   (eval $ac_try) 2>&5
20239   ac_status=$?
20240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241   (exit $ac_status); }; }; then
20242   ac_cv_lib_c_r_pthread_create=yes
20243 else
20244   echo "$as_me: failed program was:" >&5
20245 sed 's/^/| /' conftest.$ac_ext >&5
20246
20247 ac_cv_lib_c_r_pthread_create=no
20248 fi
20249 rm -f conftest.err conftest.$ac_objext \
20250       conftest$ac_exeext conftest.$ac_ext
20251 LIBS=$ac_check_lib_save_LIBS
20252 fi
20253 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20254 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20255 if test $ac_cv_lib_c_r_pthread_create = yes; then
20256   PTHREAD_LIB="-lc_r"
20257 else
20258   echo "$as_me:$LINENO: checking for pthread_create" >&5
20259 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
20260 if test "${ac_cv_func_pthread_create+set}" = set; then
20261   echo $ECHO_N "(cached) $ECHO_C" >&6
20262 else
20263   cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h.  */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h.  */
20269 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
20270    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20271 #define pthread_create innocuous_pthread_create
20272
20273 /* System header to define __stub macros and hopefully few prototypes,
20274     which can conflict with char pthread_create (); below.
20275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20276     <limits.h> exists even on freestanding compilers.  */
20277
20278 #ifdef __STDC__
20279 # include <limits.h>
20280 #else
20281 # include <assert.h>
20282 #endif
20283
20284 #undef pthread_create
20285
20286 /* Override any gcc2 internal prototype to avoid an error.  */
20287 #ifdef __cplusplus
20288 extern "C"
20289 {
20290 #endif
20291 /* We use char because int might match the return type of a gcc2
20292    builtin and then its argument prototype would still apply.  */
20293 char pthread_create ();
20294 /* The GNU C library defines this for functions which it implements
20295     to always fail with ENOSYS.  Some functions are actually named
20296     something starting with __ and the normal name is an alias.  */
20297 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
20298 choke me
20299 #else
20300 char (*f) () = pthread_create;
20301 #endif
20302 #ifdef __cplusplus
20303 }
20304 #endif
20305
20306 int
20307 main ()
20308 {
20309 return f != pthread_create;
20310   ;
20311   return 0;
20312 }
20313 _ACEOF
20314 rm -f conftest.$ac_objext conftest$ac_exeext
20315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20316   (eval $ac_link) 2>conftest.er1
20317   ac_status=$?
20318   grep -v '^ *+' conftest.er1 >conftest.err
20319   rm -f conftest.er1
20320   cat conftest.err >&5
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); } &&
20323          { ac_try='test -z "$ac_c_werror_flag"
20324                          || test ! -s conftest.err'
20325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326   (eval $ac_try) 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; } &&
20330          { ac_try='test -s conftest$ac_exeext'
20331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332   (eval $ac_try) 2>&5
20333   ac_status=$?
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); }; }; then
20336   ac_cv_func_pthread_create=yes
20337 else
20338   echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20340
20341 ac_cv_func_pthread_create=no
20342 fi
20343 rm -f conftest.err conftest.$ac_objext \
20344       conftest$ac_exeext conftest.$ac_ext
20345 fi
20346 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
20347 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
20348
20349
20350 fi
20351
20352
20353 fi
20354
20355
20356 fi
20357
20358
20359
20360 cat >>confdefs.h <<\_ACEOF
20361 #define FDLIBS 1
20362 _ACEOF
20363
20364
20365
20366 CFLAGS=${CFLAGS--O}
20367 LDFLAGS=${LDFLAGS--O}
20368 DB_LIBS="${SQL_LFLAGS}"
20369
20370 CPPFLAGS="$CPPFLAGS"
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385 OBJLIST=
20386
20387
20388 lld="lld"
20389 llu="llu"
20390
20391 WCFLAGS=
20392 WLDFLAGS=
20393
20394 #
20395 # Finally we set appropriate distribution specific
20396 #  variables and defaults
20397 #
20398 # PFILES are platform specific files
20399 PFILES="platforms/Makefile"
20400 PSCMD="ps -e"
20401 WIN32=
20402 MACOSX=
20403 hostname=`uname -n | cut -d '.' -f 1`
20404 case "$DISTNAME" in
20405 aix)
20406         DISTVER=`uname -r`
20407         PSCMD="ps -e -o pid,comm"
20408         PFILES="${PFILES} \
20409            platforms/aix/Makefile"
20410         TAPEDRIVE="/dev/rmt0.1"
20411   ;;
20412 alpha)
20413         DISTVER=`uname -r`
20414         PTHREAD_LIB="-lpthread -lexc"
20415         if test "${CC}" = "gcc" ; then
20416            lld="lld"
20417            llu="llu"
20418         else
20419            lld="ld"
20420            llu="lu"
20421         fi
20422         TAPEDRIVE="/dev/nrmt0"
20423   ;;
20424 bsdi)
20425         DISTVER=`uname -a |awk '{print $3}'`
20426         TAPEDRIVE="/dev/nrmt0"
20427         PTHREAD_LIB="-pthread"
20428         CFLAGS="${CFLAGS} -pthread"
20429         PSCMD="ps -x -o pid,command"
20430         lld="qd"
20431         llu="qu"
20432         PFILES="${PFILES} \
20433             platforms/bsdi/Makefile \
20434             platforms/bsdi/bacula-fd \
20435             platforms/bsdi/bacula-sd \
20436             platforms/bsdi/bacula-dir"
20437         largefile_support="yes"
20438   ;;
20439 cygwin)
20440         DISTVER=`uname -a |awk '{print $3}'`
20441         TAPEDRIVE="/dev/nrst0"
20442         WIN32=win32
20443         WCFLAGS="-mwindows"
20444         WLDFLAGS="-mwindows"
20445   ;;
20446 darwin)
20447         DISTVER=`uname -r`
20448         TAPEDRIVE="/dev/nst0"
20449         PSCMD="ps -e -o pid,command"
20450         MACOSX=macosx
20451         PFILES="${PFILES} \
20452            platforms/darwin/Makefile"
20453   ;;
20454 debian)
20455         DISTVER=`cat /etc/debian_version`
20456         TAPEDRIVE="/dev/nrst0"
20457         PSCMD="ps -e -o pid,command"
20458   ;;
20459 freebsd)
20460         DISTVER=`uname -a |awk '{print $3}'`
20461         VER=`echo $DISTVER | cut -c 1`
20462         if test x$VER = x4 ; then
20463            PTHREAD_LIB="-pthread"
20464            CFLAGS="${CFLAGS} -pthread"
20465         fi
20466         lld="qd"
20467         llu="qu"
20468         TAPEDRIVE="/dev/nrsa0"
20469         PSCMD="ps -x -o pid,command"
20470         PFILES="${PFILES} \
20471             platforms/freebsd/Makefile \
20472             platforms/freebsd/bacula-fd \
20473             platforms/freebsd/bacula-sd \
20474             platforms/freebsd/bacula-dir"
20475         largefile_support="yes"
20476   ;;
20477 hpux)
20478         PSCMD="UNIX95=1 ps -e -o pid,comm"
20479         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
20480         DISTVER=`uname -r`
20481         TAPEDRIVE="/dev/rmt/0hnb"
20482   ;;
20483 irix)
20484         DISTVER=`uname -r`
20485         TAPEDRIVE="/dev/rmt/0cbn"
20486         PSCMD="ps -e -o pid,comm"
20487         PFILES="${PFILES} \
20488             platforms/irix/Makefile \
20489             platforms/irix/bacula-fd \
20490             platforms/irix/bacula-sd \
20491             platforms/irix/bacula-dir"
20492   ;;
20493 netbsd)
20494         DISTVER=`uname -a |awk '{print $3}'`
20495         lld="qd"
20496         llu="qu"
20497         TAPEDRIVE="/dev/nrst0"
20498         PSCMD="ps -a -o pid,command"
20499         PTHREAD_LIB="-pthread"
20500         CFLAGS="${CFLAGS} -pthread"
20501   ;;
20502 openbsd)
20503         DISTVER=`uname -a |awk '{print $3}'`
20504         lld="qd"
20505         llu="qu"
20506         TAPEDRIVE="/dev/nrst0"
20507         PSCMD="ps -a -o pid,command"
20508         PTHREAD_LIB="-pthread"
20509         CFLAGS="${CFLAGS} -pthread"
20510         PFILES="${PFILES} \
20511             platforms/openbsd/Makefile \
20512             platforms/openbsd/bacula-fd \
20513             platforms/openbsd/bacula-sd \
20514             platforms/openbsd/bacula-dir"
20515   ;;
20516 redhat)
20517         if test -f /etc/whitebox-release ; then
20518            f=/etc/whitebox-release
20519         else
20520            f=/etc/redhat-release
20521         fi
20522         if test `cat $f | grep release |\
20523                    cut -f 3 -d ' '`x = "Enterprise"x ; then
20524            DISTVER="Enterprise "`cat $f | grep release |\
20525                     cut -f 6 -d ' '`
20526         else
20527             DISTVER=`cat /etc/redhat-release | grep release |\
20528                      cut -f 5 -d ' '`
20529         fi
20530         TAPEDRIVE="/dev/nst0"
20531         PSCMD="ps -e -o pid,command"
20532         PFILES="${PFILES} \
20533             platforms/redhat/Makefile \
20534             platforms/redhat/bacula-fd \
20535             platforms/redhat/bacula-sd \
20536             platforms/redhat/bacula-dir \
20537             platforms/redhat/bacula.spec \
20538             "
20539         hostname=`hostname -s`
20540   ;;
20541 mandrake)
20542         DISTVER=`cat /etc/mandrake-release | grep release |\
20543            cut -f 5 -d ' '`
20544         TAPEDRIVE="/dev/nst0"
20545         PSCMD="ps -e -o pid,command"
20546         PFILES="${PFILES} \
20547             platforms/mandrake/Makefile \
20548             platforms/mandrake/bacula-fd \
20549             platforms/mandrake/bacula-sd \
20550             platforms/mandrake/bacula-dir \
20551             platforms/mandrake/bacula.spec \
20552             "
20553   ;;
20554 gentoo)
20555         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
20556         TAPEDRIVE="/dev/nst0"
20557         PSCMD="ps -e -o pid,command"
20558         PFILES="${PFILES} \
20559             platforms/gentoo/Makefile \
20560             platforms/gentoo/bacula-fd \
20561             platforms/gentoo/bacula-sd \
20562             platforms/gentoo/bacula-dir"
20563   ;;
20564 slackware)
20565         DISTVER=`cat /etc/slackware-version`
20566         TAPEDRIVE="/dev/nst0"
20567         PSCMD="ps -e -o pid,command"
20568         PFILES="${PFILES} \
20569             platforms/slackware/Makefile \
20570             platforms/slackware/rc.bacula-fd \
20571             platforms/slackware/rc.bacula-sd \
20572             platforms/slackware/rc.bacula-dir\
20573             platforms/slackware/functions.bacula"
20574   ;;
20575 solaris)
20576         DISTVER=`uname -r`
20577         TAPEDRIVE="/dev/rmt/0cbn"
20578         PSCMD="ps -e -o pid,comm"
20579         PFILES="${PFILES} \
20580             platforms/solaris/Makefile \
20581             platforms/solaris/bacula-fd \
20582             platforms/solaris/bacula-sd \
20583             platforms/solaris/bacula-dir"
20584         if test x$DISTVER = x5.6 ; then
20585             cat >>confdefs.h <<\_ACEOF
20586 #define HAVE_OLD_SOCKOPT 1
20587 _ACEOF
20588
20589         fi
20590   ;;
20591 suse)
20592         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
20593             cut -f 3 -d ' '`
20594         TAPEDRIVE="/dev/nst0"
20595         PSCMD="ps -e -o pid,command"
20596         PFILES="${PFILES} \
20597             platforms/suse/Makefile \
20598             platforms/suse/bacula-fd \
20599             platforms/suse/bacula-sd \
20600             platforms/suse/bacula-dir \
20601             platforms/suse/bacula \
20602             platforms/suse/bacula.spec"
20603   ;;
20604 suse5)
20605         DISTNAME=suse
20606         DISTVER=5.x
20607         TAPEDRIVE="/dev/nst0"
20608         PSCMD="ps -e -o pid,command"
20609         PFILES="${PFILES} \
20610             platforms/suse/Makefile \
20611             platforms/suse/bacula-fd \
20612             platforms/suse/bacula-sd \
20613             platforms/suse/bacula-dir"
20614   ;;
20615 unknown)
20616         DISTVER=unknown
20617         TAPEDRIVE="/dev/nst0"
20618   ;;
20619 *)
20620   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
20621   ;;
20622 esac
20623
20624
20625
20626 LIBS="$PTHREAD_LIB $LIBS"
20627
20628 cat >>confdefs.h <<_ACEOF
20629 #define lld "$lld"
20630 _ACEOF
20631
20632 cat >>confdefs.h <<_ACEOF
20633 #define llu "$llu"
20634 _ACEOF
20635
20636
20637
20638
20639
20640
20641
20642
20643 MCOMMON=./autoconf/Make.common
20644
20645
20646 if test "x${subsysdir}" = "x${sbindir}" ; then
20647    echo " "
20648    echo " "
20649    echo "You have set both --sbindir and --with-subsys-dir"
20650    echo "  equal to: ${subsysdir} "
20651    echo "This is not permitted. Please reconfigure."
20652    echo " "
20653    echo "Aborting configuration ..."
20654    echo " "
20655    echo " "
20656    exit 1
20657 fi
20658
20659                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       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/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"
20660           ac_config_commands="$ac_config_commands default"
20661 cat >confcache <<\_ACEOF
20662 # This file is a shell script that caches the results of configure
20663 # tests run on this system so they can be shared between configure
20664 # scripts and configure runs, see configure's option --config-cache.
20665 # It is not useful on other systems.  If it contains results you don't
20666 # want to keep, you may remove or edit it.
20667 #
20668 # config.status only pays attention to the cache file if you give it
20669 # the --recheck option to rerun configure.
20670 #
20671 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20672 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20673 # following values.
20674
20675 _ACEOF
20676
20677 # The following way of writing the cache mishandles newlines in values,
20678 # but we know of no workaround that is simple, portable, and efficient.
20679 # So, don't put newlines in cache variables' values.
20680 # Ultrix sh set writes to stderr and can't be redirected directly,
20681 # and sets the high bit in the cache file unless we assign to the vars.
20682 {
20683   (set) 2>&1 |
20684     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20685     *ac_space=\ *)
20686       # `set' does not quote correctly, so add quotes (double-quote
20687       # substitution turns \\\\ into \\, and sed turns \\ into \).
20688       sed -n \
20689         "s/'/'\\\\''/g;
20690           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20691       ;;
20692     *)
20693       # `set' quotes correctly as required by POSIX, so do not add quotes.
20694       sed -n \
20695         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20696       ;;
20697     esac;
20698 } |
20699   sed '
20700      t clear
20701      : clear
20702      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20703      t end
20704      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20705      : end' >>confcache
20706 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20707   if test -w $cache_file; then
20708     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20709     cat confcache >$cache_file
20710   else
20711     echo "not updating unwritable cache $cache_file"
20712   fi
20713 fi
20714 rm -f confcache
20715
20716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20717 # Let make expand exec_prefix.
20718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20719
20720 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20721 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20722 # trailing colons and then remove the whole line if VPATH becomes empty
20723 # (actually we leave an empty line to preserve line numbers).
20724 if test "x$srcdir" = x.; then
20725   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20726 s/:*\$(srcdir):*/:/;
20727 s/:*\${srcdir}:*/:/;
20728 s/:*@srcdir@:*/:/;
20729 s/^\([^=]*=[     ]*\):*/\1/;
20730 s/:*$//;
20731 s/^[^=]*=[       ]*$//;
20732 }'
20733 fi
20734
20735 DEFS=-DHAVE_CONFIG_H
20736
20737 ac_libobjs=
20738 ac_ltlibobjs=
20739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20740   # 1. Remove the extension, and $U if already installed.
20741   ac_i=`echo "$ac_i" |
20742          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20743   # 2. Add them.
20744   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20745   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20746 done
20747 LIBOBJS=$ac_libobjs
20748
20749 LTLIBOBJS=$ac_ltlibobjs
20750
20751
20752
20753 : ${CONFIG_STATUS=./config.status}
20754 ac_clean_files_save=$ac_clean_files
20755 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20756 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20757 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20758 cat >$CONFIG_STATUS <<_ACEOF
20759 #! $SHELL
20760 # Generated by $as_me.
20761 # Run this file to recreate the current configuration.
20762 # Compiler output produced by configure, useful for debugging
20763 # configure, is in config.log if it exists.
20764
20765 debug=false
20766 ac_cs_recheck=false
20767 ac_cs_silent=false
20768 SHELL=\${CONFIG_SHELL-$SHELL}
20769 _ACEOF
20770
20771 cat >>$CONFIG_STATUS <<\_ACEOF
20772 ## --------------------- ##
20773 ## M4sh Initialization.  ##
20774 ## --------------------- ##
20775
20776 # Be Bourne compatible
20777 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20778   emulate sh
20779   NULLCMD=:
20780   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20781   # is contrary to our usage.  Disable this feature.
20782   alias -g '${1+"$@"}'='"$@"'
20783 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20784   set -o posix
20785 fi
20786 DUALCASE=1; export DUALCASE # for MKS sh
20787
20788 # Support unset when possible.
20789 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20790   as_unset=unset
20791 else
20792   as_unset=false
20793 fi
20794
20795
20796 # Work around bugs in pre-3.0 UWIN ksh.
20797 $as_unset ENV MAIL MAILPATH
20798 PS1='$ '
20799 PS2='> '
20800 PS4='+ '
20801
20802 # NLS nuisances.
20803 for as_var in \
20804   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20805   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20806   LC_TELEPHONE LC_TIME
20807 do
20808   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20809     eval $as_var=C; export $as_var
20810   else
20811     $as_unset $as_var
20812   fi
20813 done
20814
20815 # Required to use basename.
20816 if expr a : '\(a\)' >/dev/null 2>&1; then
20817   as_expr=expr
20818 else
20819   as_expr=false
20820 fi
20821
20822 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20823   as_basename=basename
20824 else
20825   as_basename=false
20826 fi
20827
20828
20829 # Name of the executable.
20830 as_me=`$as_basename "$0" ||
20831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20832          X"$0" : 'X\(//\)$' \| \
20833          X"$0" : 'X\(/\)$' \| \
20834          .     : '\(.\)' 2>/dev/null ||
20835 echo X/"$0" |
20836     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20837           /^X\/\(\/\/\)$/{ s//\1/; q; }
20838           /^X\/\(\/\).*/{ s//\1/; q; }
20839           s/.*/./; q'`
20840
20841
20842 # PATH needs CR, and LINENO needs CR and PATH.
20843 # Avoid depending upon Character Ranges.
20844 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20845 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20846 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20847 as_cr_digits='0123456789'
20848 as_cr_alnum=$as_cr_Letters$as_cr_digits
20849
20850 # The user is always right.
20851 if test "${PATH_SEPARATOR+set}" != set; then
20852   echo "#! /bin/sh" >conf$$.sh
20853   echo  "exit 0"   >>conf$$.sh
20854   chmod +x conf$$.sh
20855   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20856     PATH_SEPARATOR=';'
20857   else
20858     PATH_SEPARATOR=:
20859   fi
20860   rm -f conf$$.sh
20861 fi
20862
20863
20864   as_lineno_1=$LINENO
20865   as_lineno_2=$LINENO
20866   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20867   test "x$as_lineno_1" != "x$as_lineno_2" &&
20868   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20869   # Find who we are.  Look in the path if we contain no path at all
20870   # relative or not.
20871   case $0 in
20872     *[\\/]* ) as_myself=$0 ;;
20873     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20874 for as_dir in $PATH
20875 do
20876   IFS=$as_save_IFS
20877   test -z "$as_dir" && as_dir=.
20878   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20879 done
20880
20881        ;;
20882   esac
20883   # We did not find ourselves, most probably we were run as `sh COMMAND'
20884   # in which case we are not to be found in the path.
20885   if test "x$as_myself" = x; then
20886     as_myself=$0
20887   fi
20888   if test ! -f "$as_myself"; then
20889     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20890 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20891    { (exit 1); exit 1; }; }
20892   fi
20893   case $CONFIG_SHELL in
20894   '')
20895     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20896 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20897 do
20898   IFS=$as_save_IFS
20899   test -z "$as_dir" && as_dir=.
20900   for as_base in sh bash ksh sh5; do
20901          case $as_dir in
20902          /*)
20903            if ("$as_dir/$as_base" -c '
20904   as_lineno_1=$LINENO
20905   as_lineno_2=$LINENO
20906   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20907   test "x$as_lineno_1" != "x$as_lineno_2" &&
20908   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20909              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20910              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20911              CONFIG_SHELL=$as_dir/$as_base
20912              export CONFIG_SHELL
20913              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20914            fi;;
20915          esac
20916        done
20917 done
20918 ;;
20919   esac
20920
20921   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20922   # uniformly replaced by the line number.  The first 'sed' inserts a
20923   # line-number line before each line; the second 'sed' does the real
20924   # work.  The second script uses 'N' to pair each line-number line
20925   # with the numbered line, and appends trailing '-' during
20926   # substitution so that $LINENO is not a special case at line end.
20927   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20928   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20929   sed '=' <$as_myself |
20930     sed '
20931       N
20932       s,$,-,
20933       : loop
20934       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20935       t loop
20936       s,-$,,
20937       s,^['$as_cr_digits']*\n,,
20938     ' >$as_me.lineno &&
20939   chmod +x $as_me.lineno ||
20940     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20941 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20942    { (exit 1); exit 1; }; }
20943
20944   # Don't try to exec as it changes $[0], causing all sort of problems
20945   # (the dirname of $[0] is not the place where we might find the
20946   # original and so on.  Autoconf is especially sensible to this).
20947   . ./$as_me.lineno
20948   # Exit status is that of the last command.
20949   exit
20950 }
20951
20952
20953 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20954   *c*,-n*) ECHO_N= ECHO_C='
20955 ' ECHO_T='      ' ;;
20956   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20957   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20958 esac
20959
20960 if expr a : '\(a\)' >/dev/null 2>&1; then
20961   as_expr=expr
20962 else
20963   as_expr=false
20964 fi
20965
20966 rm -f conf$$ conf$$.exe conf$$.file
20967 echo >conf$$.file
20968 if ln -s conf$$.file conf$$ 2>/dev/null; then
20969   # We could just check for DJGPP; but this test a) works b) is more generic
20970   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20971   if test -f conf$$.exe; then
20972     # Don't use ln at all; we don't have any links
20973     as_ln_s='cp -p'
20974   else
20975     as_ln_s='ln -s'
20976   fi
20977 elif ln conf$$.file conf$$ 2>/dev/null; then
20978   as_ln_s=ln
20979 else
20980   as_ln_s='cp -p'
20981 fi
20982 rm -f conf$$ conf$$.exe conf$$.file
20983
20984 if mkdir -p . 2>/dev/null; then
20985   as_mkdir_p=:
20986 else
20987   test -d ./-p && rmdir ./-p
20988   as_mkdir_p=false
20989 fi
20990
20991 as_executable_p="test -f"
20992
20993 # Sed expression to map a string onto a valid CPP name.
20994 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20995
20996 # Sed expression to map a string onto a valid variable name.
20997 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20998
20999
21000 # IFS
21001 # We need space, tab and new line, in precisely that order.
21002 as_nl='
21003 '
21004 IFS="   $as_nl"
21005
21006 # CDPATH.
21007 $as_unset CDPATH
21008
21009 exec 6>&1
21010
21011 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21012 # report actual input values of CONFIG_FILES etc. instead of their
21013 # values after options handling.  Logging --version etc. is OK.
21014 exec 5>>config.log
21015 {
21016   echo
21017   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21018 ## Running $as_me. ##
21019 _ASBOX
21020 } >&5
21021 cat >&5 <<_CSEOF
21022
21023 This file was extended by $as_me, which was
21024 generated by GNU Autoconf 2.59.  Invocation command line was
21025
21026   CONFIG_FILES    = $CONFIG_FILES
21027   CONFIG_HEADERS  = $CONFIG_HEADERS
21028   CONFIG_LINKS    = $CONFIG_LINKS
21029   CONFIG_COMMANDS = $CONFIG_COMMANDS
21030   $ $0 $@
21031
21032 _CSEOF
21033 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21034 echo >&5
21035 _ACEOF
21036
21037 # Files that config.status was made for.
21038 if test -n "$ac_config_files"; then
21039   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21040 fi
21041
21042 if test -n "$ac_config_headers"; then
21043   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21044 fi
21045
21046 if test -n "$ac_config_links"; then
21047   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21048 fi
21049
21050 if test -n "$ac_config_commands"; then
21051   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21052 fi
21053
21054 cat >>$CONFIG_STATUS <<\_ACEOF
21055
21056 ac_cs_usage="\
21057 \`$as_me' instantiates files from templates according to the
21058 current configuration.
21059
21060 Usage: $0 [OPTIONS] [FILE]...
21061
21062   -h, --help       print this help, then exit
21063   -V, --version    print version number, then exit
21064   -q, --quiet      do not print progress messages
21065   -d, --debug      don't remove temporary files
21066       --recheck    update $as_me by reconfiguring in the same conditions
21067   --file=FILE[:TEMPLATE]
21068                    instantiate the configuration file FILE
21069   --header=FILE[:TEMPLATE]
21070                    instantiate the configuration header FILE
21071
21072 Configuration files:
21073 $config_files
21074
21075 Configuration headers:
21076 $config_headers
21077
21078 Configuration commands:
21079 $config_commands
21080
21081 Report bugs to <bug-autoconf@gnu.org>."
21082 _ACEOF
21083
21084 cat >>$CONFIG_STATUS <<_ACEOF
21085 ac_cs_version="\\
21086 config.status
21087 configured by $0, generated by GNU Autoconf 2.59,
21088   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21089
21090 Copyright (C) 2003 Free Software Foundation, Inc.
21091 This config.status script is free software; the Free Software Foundation
21092 gives unlimited permission to copy, distribute and modify it."
21093 srcdir=$srcdir
21094 INSTALL="$INSTALL"
21095 _ACEOF
21096
21097 cat >>$CONFIG_STATUS <<\_ACEOF
21098 # If no file are specified by the user, then we need to provide default
21099 # value.  By we need to know if files were specified by the user.
21100 ac_need_defaults=:
21101 while test $# != 0
21102 do
21103   case $1 in
21104   --*=*)
21105     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21106     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21107     ac_shift=:
21108     ;;
21109   -*)
21110     ac_option=$1
21111     ac_optarg=$2
21112     ac_shift=shift
21113     ;;
21114   *) # This is not an option, so the user has probably given explicit
21115      # arguments.
21116      ac_option=$1
21117      ac_need_defaults=false;;
21118   esac
21119
21120   case $ac_option in
21121   # Handling of the options.
21122 _ACEOF
21123 cat >>$CONFIG_STATUS <<\_ACEOF
21124   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21125     ac_cs_recheck=: ;;
21126   --version | --vers* | -V )
21127     echo "$ac_cs_version"; exit 0 ;;
21128   --he | --h)
21129     # Conflict between --help and --header
21130     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21131 Try \`$0 --help' for more information." >&5
21132 echo "$as_me: error: ambiguous option: $1
21133 Try \`$0 --help' for more information." >&2;}
21134    { (exit 1); exit 1; }; };;
21135   --help | --hel | -h )
21136     echo "$ac_cs_usage"; exit 0 ;;
21137   --debug | --d* | -d )
21138     debug=: ;;
21139   --file | --fil | --fi | --f )
21140     $ac_shift
21141     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21142     ac_need_defaults=false;;
21143   --header | --heade | --head | --hea )
21144     $ac_shift
21145     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21146     ac_need_defaults=false;;
21147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21148   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21149     ac_cs_silent=: ;;
21150
21151   # This is an error.
21152   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21153 Try \`$0 --help' for more information." >&5
21154 echo "$as_me: error: unrecognized option: $1
21155 Try \`$0 --help' for more information." >&2;}
21156    { (exit 1); exit 1; }; } ;;
21157
21158   *) ac_config_targets="$ac_config_targets $1" ;;
21159
21160   esac
21161   shift
21162 done
21163
21164 ac_configure_extra_args=
21165
21166 if $ac_cs_silent; then
21167   exec 6>/dev/null
21168   ac_configure_extra_args="$ac_configure_extra_args --silent"
21169 fi
21170
21171 _ACEOF
21172 cat >>$CONFIG_STATUS <<_ACEOF
21173 if \$ac_cs_recheck; then
21174   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21175   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21176 fi
21177
21178 _ACEOF
21179
21180
21181
21182
21183
21184 cat >>$CONFIG_STATUS <<\_ACEOF
21185 for ac_config_target in $ac_config_targets
21186 do
21187   case "$ac_config_target" in
21188   # Handling of arguments.
21189   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21190   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21191   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
21192   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
21193   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
21194   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
21195   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21196   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21197   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21198   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21199   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21200   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21201   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21202   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21203   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21204   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21205   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21206   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21207   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21208   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21209   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
21210   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
21211   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
21212   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
21213   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
21214   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21215   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21216   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
21217   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
21218   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
21219   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
21220   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
21221   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
21222   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
21223   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
21224   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
21225   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
21226   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
21227   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
21228   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
21229   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
21230   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
21231   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
21232   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
21233   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
21234   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
21235   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
21236   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
21237   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
21238   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
21239   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
21240   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
21241   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
21242   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
21243   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
21244   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
21245   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
21246   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
21247   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
21248   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
21249   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
21250   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
21251   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
21252   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
21253   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
21254   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
21255   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
21256   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
21257   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
21258   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
21259   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
21260   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
21261   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
21262   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
21263   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
21264   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
21265   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
21266   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
21267   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
21268   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
21269   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
21270   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
21271   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
21272   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
21273   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
21274   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
21275   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
21276   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21277   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
21278   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21279 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21280    { (exit 1); exit 1; }; };;
21281   esac
21282 done
21283
21284 # If the user did not use the arguments to specify the items to instantiate,
21285 # then the envvar interface is used.  Set only those that are not.
21286 # We use the long form for the default assignment because of an extremely
21287 # bizarre bug on SunOS 4.1.3.
21288 if $ac_need_defaults; then
21289   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21290   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21291   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21292 fi
21293
21294 # Have a temporary directory for convenience.  Make it in the build tree
21295 # simply because there is no reason to put it here, and in addition,
21296 # creating and moving files from /tmp can sometimes cause problems.
21297 # Create a temporary directory, and hook for its removal unless debugging.
21298 $debug ||
21299 {
21300   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21301   trap '{ (exit 1); exit 1; }' 1 2 13 15
21302 }
21303
21304 # Create a (secure) tmp directory for tmp files.
21305
21306 {
21307   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21308   test -n "$tmp" && test -d "$tmp"
21309 }  ||
21310 {
21311   tmp=./confstat$$-$RANDOM
21312   (umask 077 && mkdir $tmp)
21313 } ||
21314 {
21315    echo "$me: cannot create a temporary directory in ." >&2
21316    { (exit 1); exit 1; }
21317 }
21318
21319 _ACEOF
21320
21321 cat >>$CONFIG_STATUS <<_ACEOF
21322
21323 #
21324 # CONFIG_FILES section.
21325 #
21326
21327 # No need to generate the scripts if there are no CONFIG_FILES.
21328 # This happens for instance when ./config.status config.h
21329 if test -n "\$CONFIG_FILES"; then
21330   # Protect against being on the right side of a sed subst in config.status.
21331   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21332    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21333 s,@SHELL@,$SHELL,;t t
21334 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21335 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21336 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21337 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21338 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21339 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21340 s,@exec_prefix@,$exec_prefix,;t t
21341 s,@prefix@,$prefix,;t t
21342 s,@program_transform_name@,$program_transform_name,;t t
21343 s,@bindir@,$bindir,;t t
21344 s,@sbindir@,$sbindir,;t t
21345 s,@libexecdir@,$libexecdir,;t t
21346 s,@datadir@,$datadir,;t t
21347 s,@sysconfdir@,$sysconfdir,;t t
21348 s,@sharedstatedir@,$sharedstatedir,;t t
21349 s,@localstatedir@,$localstatedir,;t t
21350 s,@libdir@,$libdir,;t t
21351 s,@includedir@,$includedir,;t t
21352 s,@oldincludedir@,$oldincludedir,;t t
21353 s,@infodir@,$infodir,;t t
21354 s,@mandir@,$mandir,;t t
21355 s,@build_alias@,$build_alias,;t t
21356 s,@host_alias@,$host_alias,;t t
21357 s,@target_alias@,$target_alias,;t t
21358 s,@DEFS@,$DEFS,;t t
21359 s,@ECHO_C@,$ECHO_C,;t t
21360 s,@ECHO_N@,$ECHO_N,;t t
21361 s,@ECHO_T@,$ECHO_T,;t t
21362 s,@LIBS@,$LIBS,;t t
21363 s,@BUILD_DIR@,$BUILD_DIR,;t t
21364 s,@TRUEPRG@,$TRUEPRG,;t t
21365 s,@FALSEPRG@,$FALSEPRG,;t t
21366 s,@VERSION@,$VERSION,;t t
21367 s,@DATE@,$DATE,;t t
21368 s,@LSMDATE@,$LSMDATE,;t t
21369 s,@CC@,$CC,;t t
21370 s,@CFLAGS@,$CFLAGS,;t t
21371 s,@LDFLAGS@,$LDFLAGS,;t t
21372 s,@CPPFLAGS@,$CPPFLAGS,;t t
21373 s,@ac_ct_CC@,$ac_ct_CC,;t t
21374 s,@EXEEXT@,$EXEEXT,;t t
21375 s,@OBJEXT@,$OBJEXT,;t t
21376 s,@CXX@,$CXX,;t t
21377 s,@CXXFLAGS@,$CXXFLAGS,;t t
21378 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21379 s,@CPP@,$CPP,;t t
21380 s,@EGREP@,$EGREP,;t t
21381 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21382 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21383 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21384 s,@RANLIB@,$RANLIB,;t t
21385 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21386 s,@MV@,$MV,;t t
21387 s,@RM@,$RM,;t t
21388 s,@CP@,$CP,;t t
21389 s,@SED@,$SED,;t t
21390 s,@AWK@,$AWK,;t t
21391 s,@ECHO@,$ECHO,;t t
21392 s,@CMP@,$CMP,;t t
21393 s,@TBL@,$TBL,;t t
21394 s,@AR@,$AR,;t t
21395 s,@OPENSSL@,$OPENSSL,;t t
21396 s,@MTX@,$MTX,;t t
21397 s,@PKGCONFIG@,$PKGCONFIG,;t t
21398 s,@WXCONFIG@,$WXCONFIG,;t t
21399 s,@ARFLAGS@,$ARFLAGS,;t t
21400 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
21401 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
21402 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
21403 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21404 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
21405 s,@build@,$build,;t t
21406 s,@build_cpu@,$build_cpu,;t t
21407 s,@build_vendor@,$build_vendor,;t t
21408 s,@build_os@,$build_os,;t t
21409 s,@host@,$host,;t t
21410 s,@host_cpu@,$host_cpu,;t t
21411 s,@host_vendor@,$host_vendor,;t t
21412 s,@host_os@,$host_os,;t t
21413 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
21414 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
21415 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
21416 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
21417 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
21418 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
21419 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
21420 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
21421 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
21422 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
21423 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
21424 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
21425 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
21426 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
21427 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
21428 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
21429 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
21430 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
21431 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
21432 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
21433 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
21434 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
21435 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
21436 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
21437 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
21438 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
21439 s,@MSGFMT@,$MSGFMT,;t t
21440 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
21441 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
21442 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
21443 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
21444 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
21445 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
21446 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
21447 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
21448 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
21449 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
21450 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
21451 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
21452 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
21453 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
21454 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
21455 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
21456 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
21457 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
21458 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
21459 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
21460 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
21461 s,@GNOME_DIR@,$GNOME_DIR,;t t
21462 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
21463 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
21464 s,@WX_DIR@,$WX_DIR,;t t
21465 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
21466 s,@STATIC_FD@,$STATIC_FD,;t t
21467 s,@STATIC_SD@,$STATIC_SD,;t t
21468 s,@STATIC_DIR@,$STATIC_DIR,;t t
21469 s,@STATIC_CONS@,$STATIC_CONS,;t t
21470 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
21471 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
21472 s,@ALL_DIRS@,$ALL_DIRS,;t t
21473 s,@CONS_INC@,$CONS_INC,;t t
21474 s,@CONS_OBJ@,$CONS_OBJ,;t t
21475 s,@CONS_SRC@,$CONS_SRC,;t t
21476 s,@CONS_LIBS@,$CONS_LIBS,;t t
21477 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
21478 s,@READLINE_SRC@,$READLINE_SRC,;t t
21479 s,@working_dir@,$working_dir,;t t
21480 s,@scriptdir@,$scriptdir,;t t
21481 s,@dump_email@,$dump_email,;t t
21482 s,@job_email@,$job_email,;t t
21483 s,@smtp_host@,$smtp_host,;t t
21484 s,@piddir@,$piddir,;t t
21485 s,@subsysdir@,$subsysdir,;t t
21486 s,@baseport@,$baseport,;t t
21487 s,@dir_port@,$dir_port,;t t
21488 s,@fd_port@,$fd_port,;t t
21489 s,@sd_port@,$sd_port,;t t
21490 s,@dir_password@,$dir_password,;t t
21491 s,@fd_password@,$fd_password,;t t
21492 s,@sd_password@,$sd_password,;t t
21493 s,@dir_user@,$dir_user,;t t
21494 s,@dir_group@,$dir_group,;t t
21495 s,@sd_user@,$sd_user,;t t
21496 s,@sd_group@,$sd_group,;t t
21497 s,@fd_user@,$fd_user,;t t
21498 s,@fd_group@,$fd_group,;t t
21499 s,@SBINPERM@,$SBINPERM,;t t
21500 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
21501 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
21502 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
21503 s,@cats@,$cats,;t t
21504 s,@DB_NAME@,$DB_NAME,;t t
21505 s,@GETCONF@,$GETCONF,;t t
21506 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
21507 s,@X_CFLAGS@,$X_CFLAGS,;t t
21508 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21509 s,@X_LIBS@,$X_LIBS,;t t
21510 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21511 s,@LIBOBJS@,$LIBOBJS,;t t
21512 s,@ALLOCA@,$ALLOCA,;t t
21513 s,@FDLIBS@,$FDLIBS,;t t
21514 s,@DEBUG@,$DEBUG,;t t
21515 s,@DINCLUDE@,$DINCLUDE,;t t
21516 s,@DLIB@,$DLIB,;t t
21517 s,@DB_LIBS@,$DB_LIBS,;t t
21518 s,@WCFLAGS@,$WCFLAGS,;t t
21519 s,@WLDFLAGS@,$WLDFLAGS,;t t
21520 s,@OBJLIST@,$OBJLIST,;t t
21521 s,@hostname@,$hostname,;t t
21522 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
21523 s,@PSCMD@,$PSCMD,;t t
21524 s,@WIN32@,$WIN32,;t t
21525 s,@MACOSX@,$MACOSX,;t t
21526 s,@DISTNAME@,$DISTNAME,;t t
21527 s,@DISTVER@,$DISTVER,;t t
21528 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21529 /@MCOMMON@/r $MCOMMON
21530 s,@MCOMMON@,,;t t
21531 CEOF
21532
21533 _ACEOF
21534
21535   cat >>$CONFIG_STATUS <<\_ACEOF
21536   # Split the substitutions into bite-sized pieces for seds with
21537   # small command number limits, like on Digital OSF/1 and HP-UX.
21538   ac_max_sed_lines=48
21539   ac_sed_frag=1 # Number of current file.
21540   ac_beg=1 # First line for current file.
21541   ac_end=$ac_max_sed_lines # Line after last line for current file.
21542   ac_more_lines=:
21543   ac_sed_cmds=
21544   while $ac_more_lines; do
21545     if test $ac_beg -gt 1; then
21546       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21547     else
21548       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21549     fi
21550     if test ! -s $tmp/subs.frag; then
21551       ac_more_lines=false
21552     else
21553       # The purpose of the label and of the branching condition is to
21554       # speed up the sed processing (if there are no `@' at all, there
21555       # is no need to browse any of the substitutions).
21556       # These are the two extra sed commands mentioned above.
21557       (echo ':t
21558   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21559       if test -z "$ac_sed_cmds"; then
21560         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21561       else
21562         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21563       fi
21564       ac_sed_frag=`expr $ac_sed_frag + 1`
21565       ac_beg=$ac_end
21566       ac_end=`expr $ac_end + $ac_max_sed_lines`
21567     fi
21568   done
21569   if test -z "$ac_sed_cmds"; then
21570     ac_sed_cmds=cat
21571   fi
21572 fi # test -n "$CONFIG_FILES"
21573
21574 _ACEOF
21575 cat >>$CONFIG_STATUS <<\_ACEOF
21576 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21577   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21578   case $ac_file in
21579   - | *:- | *:-:* ) # input from stdin
21580         cat >$tmp/stdin
21581         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21582         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21583   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21584         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21585   * )   ac_file_in=$ac_file.in ;;
21586   esac
21587
21588   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21589   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21590 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21591          X"$ac_file" : 'X\(//\)[^/]' \| \
21592          X"$ac_file" : 'X\(//\)$' \| \
21593          X"$ac_file" : 'X\(/\)' \| \
21594          .     : '\(.\)' 2>/dev/null ||
21595 echo X"$ac_file" |
21596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21597           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21598           /^X\(\/\/\)$/{ s//\1/; q; }
21599           /^X\(\/\).*/{ s//\1/; q; }
21600           s/.*/./; q'`
21601   { if $as_mkdir_p; then
21602     mkdir -p "$ac_dir"
21603   else
21604     as_dir="$ac_dir"
21605     as_dirs=
21606     while test ! -d "$as_dir"; do
21607       as_dirs="$as_dir $as_dirs"
21608       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21610          X"$as_dir" : 'X\(//\)[^/]' \| \
21611          X"$as_dir" : 'X\(//\)$' \| \
21612          X"$as_dir" : 'X\(/\)' \| \
21613          .     : '\(.\)' 2>/dev/null ||
21614 echo X"$as_dir" |
21615     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21616           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21617           /^X\(\/\/\)$/{ s//\1/; q; }
21618           /^X\(\/\).*/{ s//\1/; q; }
21619           s/.*/./; q'`
21620     done
21621     test ! -n "$as_dirs" || mkdir $as_dirs
21622   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21623 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21624    { (exit 1); exit 1; }; }; }
21625
21626   ac_builddir=.
21627
21628 if test "$ac_dir" != .; then
21629   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21630   # A "../" for each directory in $ac_dir_suffix.
21631   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21632 else
21633   ac_dir_suffix= ac_top_builddir=
21634 fi
21635
21636 case $srcdir in
21637   .)  # No --srcdir option.  We are building in place.
21638     ac_srcdir=.
21639     if test -z "$ac_top_builddir"; then
21640        ac_top_srcdir=.
21641     else
21642        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21643     fi ;;
21644   [\\/]* | ?:[\\/]* )  # Absolute path.
21645     ac_srcdir=$srcdir$ac_dir_suffix;
21646     ac_top_srcdir=$srcdir ;;
21647   *) # Relative path.
21648     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21649     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21650 esac
21651
21652 # Do not use `cd foo && pwd` to compute absolute paths, because
21653 # the directories may not exist.
21654 case `pwd` in
21655 .) ac_abs_builddir="$ac_dir";;
21656 *)
21657   case "$ac_dir" in
21658   .) ac_abs_builddir=`pwd`;;
21659   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21660   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21661   esac;;
21662 esac
21663 case $ac_abs_builddir in
21664 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21665 *)
21666   case ${ac_top_builddir}. in
21667   .) ac_abs_top_builddir=$ac_abs_builddir;;
21668   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21669   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21670   esac;;
21671 esac
21672 case $ac_abs_builddir in
21673 .) ac_abs_srcdir=$ac_srcdir;;
21674 *)
21675   case $ac_srcdir in
21676   .) ac_abs_srcdir=$ac_abs_builddir;;
21677   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21678   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21679   esac;;
21680 esac
21681 case $ac_abs_builddir in
21682 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21683 *)
21684   case $ac_top_srcdir in
21685   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21686   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21687   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21688   esac;;
21689 esac
21690
21691
21692   case $INSTALL in
21693   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21694   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21695   esac
21696
21697   if test x"$ac_file" != x-; then
21698     { echo "$as_me:$LINENO: creating $ac_file" >&5
21699 echo "$as_me: creating $ac_file" >&6;}
21700     rm -f "$ac_file"
21701   fi
21702   # Let's still pretend it is `configure' which instantiates (i.e., don't
21703   # use $as_me), people would be surprised to read:
21704   #    /* config.h.  Generated by config.status.  */
21705   if test x"$ac_file" = x-; then
21706     configure_input=
21707   else
21708     configure_input="$ac_file.  "
21709   fi
21710   configure_input=$configure_input"Generated from `echo $ac_file_in |
21711                                      sed 's,.*/,,'` by configure."
21712
21713   # First look for the input files in the build tree, otherwise in the
21714   # src tree.
21715   ac_file_inputs=`IFS=:
21716     for f in $ac_file_in; do
21717       case $f in
21718       -) echo $tmp/stdin ;;
21719       [\\/$]*)
21720          # Absolute (can't be DOS-style, as IFS=:)
21721          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21722 echo "$as_me: error: cannot find input file: $f" >&2;}
21723    { (exit 1); exit 1; }; }
21724          echo "$f";;
21725       *) # Relative
21726          if test -f "$f"; then
21727            # Build tree
21728            echo "$f"
21729          elif test -f "$srcdir/$f"; then
21730            # Source tree
21731            echo "$srcdir/$f"
21732          else
21733            # /dev/null tree
21734            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21735 echo "$as_me: error: cannot find input file: $f" >&2;}
21736    { (exit 1); exit 1; }; }
21737          fi;;
21738       esac
21739     done` || { (exit 1); exit 1; }
21740 _ACEOF
21741 cat >>$CONFIG_STATUS <<_ACEOF
21742   sed "$ac_vpsub
21743 $extrasub
21744 _ACEOF
21745 cat >>$CONFIG_STATUS <<\_ACEOF
21746 :t
21747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21748 s,@configure_input@,$configure_input,;t t
21749 s,@srcdir@,$ac_srcdir,;t t
21750 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21751 s,@top_srcdir@,$ac_top_srcdir,;t t
21752 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21753 s,@builddir@,$ac_builddir,;t t
21754 s,@abs_builddir@,$ac_abs_builddir,;t t
21755 s,@top_builddir@,$ac_top_builddir,;t t
21756 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21757 s,@INSTALL@,$ac_INSTALL,;t t
21758 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21759   rm -f $tmp/stdin
21760   if test x"$ac_file" != x-; then
21761     mv $tmp/out $ac_file
21762   else
21763     cat $tmp/out
21764     rm -f $tmp/out
21765   fi
21766
21767 done
21768 _ACEOF
21769 cat >>$CONFIG_STATUS <<\_ACEOF
21770
21771 #
21772 # CONFIG_HEADER section.
21773 #
21774
21775 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21776 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21777 #
21778 # ac_d sets the value in "#define NAME VALUE" lines.
21779 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21780 ac_dB='[         ].*$,\1#\2'
21781 ac_dC=' '
21782 ac_dD=',;t'
21783 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21784 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21785 ac_uB='$,\1#\2define\3'
21786 ac_uC=' '
21787 ac_uD=',;t'
21788
21789 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21790   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21791   case $ac_file in
21792   - | *:- | *:-:* ) # input from stdin
21793         cat >$tmp/stdin
21794         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21795         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21796   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21797         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21798   * )   ac_file_in=$ac_file.in ;;
21799   esac
21800
21801   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21802 echo "$as_me: creating $ac_file" >&6;}
21803
21804   # First look for the input files in the build tree, otherwise in the
21805   # src tree.
21806   ac_file_inputs=`IFS=:
21807     for f in $ac_file_in; do
21808       case $f in
21809       -) echo $tmp/stdin ;;
21810       [\\/$]*)
21811          # Absolute (can't be DOS-style, as IFS=:)
21812          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21813 echo "$as_me: error: cannot find input file: $f" >&2;}
21814    { (exit 1); exit 1; }; }
21815          # Do quote $f, to prevent DOS paths from being IFS'd.
21816          echo "$f";;
21817       *) # Relative
21818          if test -f "$f"; then
21819            # Build tree
21820            echo "$f"
21821          elif test -f "$srcdir/$f"; then
21822            # Source tree
21823            echo "$srcdir/$f"
21824          else
21825            # /dev/null tree
21826            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21827 echo "$as_me: error: cannot find input file: $f" >&2;}
21828    { (exit 1); exit 1; }; }
21829          fi;;
21830       esac
21831     done` || { (exit 1); exit 1; }
21832   # Remove the trailing spaces.
21833   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21834
21835 _ACEOF
21836
21837 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21838 # `conftest.undefs', that substitutes the proper values into
21839 # config.h.in to produce config.h.  The first handles `#define'
21840 # templates, and the second `#undef' templates.
21841 # And first: Protect against being on the right side of a sed subst in
21842 # config.status.  Protect against being in an unquoted here document
21843 # in config.status.
21844 rm -f conftest.defines conftest.undefs
21845 # Using a here document instead of a string reduces the quoting nightmare.
21846 # Putting comments in sed scripts is not portable.
21847 #
21848 # `end' is used to avoid that the second main sed command (meant for
21849 # 0-ary CPP macros) applies to n-ary macro definitions.
21850 # See the Autoconf documentation for `clear'.
21851 cat >confdef2sed.sed <<\_ACEOF
21852 s/[\\&,]/\\&/g
21853 s,[\\$`],\\&,g
21854 t clear
21855 : clear
21856 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21857 t end
21858 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21859 : end
21860 _ACEOF
21861 # If some macros were called several times there might be several times
21862 # the same #defines, which is useless.  Nevertheless, we may not want to
21863 # sort them, since we want the *last* AC-DEFINE to be honored.
21864 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21865 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21866 rm -f confdef2sed.sed
21867
21868 # This sed command replaces #undef with comments.  This is necessary, for
21869 # example, in the case of _POSIX_SOURCE, which is predefined and required
21870 # on some systems where configure will not decide to define it.
21871 cat >>conftest.undefs <<\_ACEOF
21872 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21873 _ACEOF
21874
21875 # Break up conftest.defines because some shells have a limit on the size
21876 # of here documents, and old seds have small limits too (100 cmds).
21877 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21878 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21879 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21880 echo '  :' >>$CONFIG_STATUS
21881 rm -f conftest.tail
21882 while grep . conftest.defines >/dev/null
21883 do
21884   # Write a limited-size here document to $tmp/defines.sed.
21885   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21886   # Speed up: don't consider the non `#define' lines.
21887   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21888   # Work around the forget-to-reset-the-flag bug.
21889   echo 't clr' >>$CONFIG_STATUS
21890   echo ': clr' >>$CONFIG_STATUS
21891   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21892   echo 'CEOF
21893   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21894   rm -f $tmp/in
21895   mv $tmp/out $tmp/in
21896 ' >>$CONFIG_STATUS
21897   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21898   rm -f conftest.defines
21899   mv conftest.tail conftest.defines
21900 done
21901 rm -f conftest.defines
21902 echo '  fi # grep' >>$CONFIG_STATUS
21903 echo >>$CONFIG_STATUS
21904
21905 # Break up conftest.undefs because some shells have a limit on the size
21906 # of here documents, and old seds have small limits too (100 cmds).
21907 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21908 rm -f conftest.tail
21909 while grep . conftest.undefs >/dev/null
21910 do
21911   # Write a limited-size here document to $tmp/undefs.sed.
21912   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21913   # Speed up: don't consider the non `#undef'
21914   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21915   # Work around the forget-to-reset-the-flag bug.
21916   echo 't clr' >>$CONFIG_STATUS
21917   echo ': clr' >>$CONFIG_STATUS
21918   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21919   echo 'CEOF
21920   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21921   rm -f $tmp/in
21922   mv $tmp/out $tmp/in
21923 ' >>$CONFIG_STATUS
21924   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21925   rm -f conftest.undefs
21926   mv conftest.tail conftest.undefs
21927 done
21928 rm -f conftest.undefs
21929
21930 cat >>$CONFIG_STATUS <<\_ACEOF
21931   # Let's still pretend it is `configure' which instantiates (i.e., don't
21932   # use $as_me), people would be surprised to read:
21933   #    /* config.h.  Generated by config.status.  */
21934   if test x"$ac_file" = x-; then
21935     echo "/* Generated by configure.  */" >$tmp/config.h
21936   else
21937     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21938   fi
21939   cat $tmp/in >>$tmp/config.h
21940   rm -f $tmp/in
21941   if test x"$ac_file" != x-; then
21942     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21943       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21944 echo "$as_me: $ac_file is unchanged" >&6;}
21945     else
21946       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21948          X"$ac_file" : 'X\(//\)[^/]' \| \
21949          X"$ac_file" : 'X\(//\)$' \| \
21950          X"$ac_file" : 'X\(/\)' \| \
21951          .     : '\(.\)' 2>/dev/null ||
21952 echo X"$ac_file" |
21953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21954           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21955           /^X\(\/\/\)$/{ s//\1/; q; }
21956           /^X\(\/\).*/{ s//\1/; q; }
21957           s/.*/./; q'`
21958       { if $as_mkdir_p; then
21959     mkdir -p "$ac_dir"
21960   else
21961     as_dir="$ac_dir"
21962     as_dirs=
21963     while test ! -d "$as_dir"; do
21964       as_dirs="$as_dir $as_dirs"
21965       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21966 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21967          X"$as_dir" : 'X\(//\)[^/]' \| \
21968          X"$as_dir" : 'X\(//\)$' \| \
21969          X"$as_dir" : 'X\(/\)' \| \
21970          .     : '\(.\)' 2>/dev/null ||
21971 echo X"$as_dir" |
21972     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21973           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21974           /^X\(\/\/\)$/{ s//\1/; q; }
21975           /^X\(\/\).*/{ s//\1/; q; }
21976           s/.*/./; q'`
21977     done
21978     test ! -n "$as_dirs" || mkdir $as_dirs
21979   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21980 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21981    { (exit 1); exit 1; }; }; }
21982
21983       rm -f $ac_file
21984       mv $tmp/config.h $ac_file
21985     fi
21986   else
21987     cat $tmp/config.h
21988     rm -f $tmp/config.h
21989   fi
21990 done
21991 _ACEOF
21992 cat >>$CONFIG_STATUS <<\_ACEOF
21993
21994 #
21995 # CONFIG_COMMANDS section.
21996 #
21997 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21998   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21999   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22000   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22001 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22002          X"$ac_dest" : 'X\(//\)[^/]' \| \
22003          X"$ac_dest" : 'X\(//\)$' \| \
22004          X"$ac_dest" : 'X\(/\)' \| \
22005          .     : '\(.\)' 2>/dev/null ||
22006 echo X"$ac_dest" |
22007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22008           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22009           /^X\(\/\/\)$/{ s//\1/; q; }
22010           /^X\(\/\).*/{ s//\1/; q; }
22011           s/.*/./; q'`
22012   { if $as_mkdir_p; then
22013     mkdir -p "$ac_dir"
22014   else
22015     as_dir="$ac_dir"
22016     as_dirs=
22017     while test ! -d "$as_dir"; do
22018       as_dirs="$as_dir $as_dirs"
22019       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22021          X"$as_dir" : 'X\(//\)[^/]' \| \
22022          X"$as_dir" : 'X\(//\)$' \| \
22023          X"$as_dir" : 'X\(/\)' \| \
22024          .     : '\(.\)' 2>/dev/null ||
22025 echo X"$as_dir" |
22026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22027           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22028           /^X\(\/\/\)$/{ s//\1/; q; }
22029           /^X\(\/\).*/{ s//\1/; q; }
22030           s/.*/./; q'`
22031     done
22032     test ! -n "$as_dirs" || mkdir $as_dirs
22033   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22034 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22035    { (exit 1); exit 1; }; }; }
22036
22037   ac_builddir=.
22038
22039 if test "$ac_dir" != .; then
22040   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22041   # A "../" for each directory in $ac_dir_suffix.
22042   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22043 else
22044   ac_dir_suffix= ac_top_builddir=
22045 fi
22046
22047 case $srcdir in
22048   .)  # No --srcdir option.  We are building in place.
22049     ac_srcdir=.
22050     if test -z "$ac_top_builddir"; then
22051        ac_top_srcdir=.
22052     else
22053        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22054     fi ;;
22055   [\\/]* | ?:[\\/]* )  # Absolute path.
22056     ac_srcdir=$srcdir$ac_dir_suffix;
22057     ac_top_srcdir=$srcdir ;;
22058   *) # Relative path.
22059     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22060     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22061 esac
22062
22063 # Do not use `cd foo && pwd` to compute absolute paths, because
22064 # the directories may not exist.
22065 case `pwd` in
22066 .) ac_abs_builddir="$ac_dir";;
22067 *)
22068   case "$ac_dir" in
22069   .) ac_abs_builddir=`pwd`;;
22070   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22071   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22072   esac;;
22073 esac
22074 case $ac_abs_builddir in
22075 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22076 *)
22077   case ${ac_top_builddir}. in
22078   .) ac_abs_top_builddir=$ac_abs_builddir;;
22079   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22080   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22081   esac;;
22082 esac
22083 case $ac_abs_builddir in
22084 .) ac_abs_srcdir=$ac_srcdir;;
22085 *)
22086   case $ac_srcdir in
22087   .) ac_abs_srcdir=$ac_abs_builddir;;
22088   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22089   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22090   esac;;
22091 esac
22092 case $ac_abs_builddir in
22093 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22094 *)
22095   case $ac_top_srcdir in
22096   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22097   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22098   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22099   esac;;
22100 esac
22101
22102
22103   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22104 echo "$as_me: executing $ac_dest commands" >&6;}
22105   case $ac_dest in
22106     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22107  ;;
22108   esac
22109 done
22110 _ACEOF
22111
22112 cat >>$CONFIG_STATUS <<\_ACEOF
22113
22114 { (exit 0); exit 0; }
22115 _ACEOF
22116 chmod +x $CONFIG_STATUS
22117 ac_clean_files=$ac_clean_files_save
22118
22119
22120 # configure is writing to config.log, and then calls config.status.
22121 # config.status does its own redirection, appending to config.log.
22122 # Unfortunately, on DOS this fails, as config.log is still kept open
22123 # by configure, so config.status won't be able to write to it; its
22124 # output is simply discarded.  So we exec the FD to /dev/null,
22125 # effectively closing config.log, so it can be properly (re)opened and
22126 # appended to by config.status.  When coming back to configure, we
22127 # need to make the FD available again.
22128 if test "$no_create" != yes; then
22129   ac_cs_success=:
22130   ac_config_status_args=
22131   test "$silent" = yes &&
22132     ac_config_status_args="$ac_config_status_args --quiet"
22133   exec 5>/dev/null
22134   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22135   exec 5>>config.log
22136   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22137   # would make configure fail if this is the last instruction.
22138   $ac_cs_success || { (exit 1); exit 1; }
22139 fi
22140
22141
22142 cd scripts
22143 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22144 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22145 cd ..
22146
22147 c=src/cats
22148
22149 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
22150 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
22151
22152 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
22153 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
22154
22155 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
22156 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
22157
22158 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
22159 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
22160
22161 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
22162 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
22163
22164 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22165 chmod 755 $c/sqlite
22166 chmod 755 $c/mysql
22167
22168 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22169    largefile_support="yes"
22170 fi
22171
22172 #
22173 # A whole lot of hand springs to get the compiler version.
22174 #  This is because gcc changed the output in version 3.0
22175 #
22176 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22177 if test "x${CCVERSION}" = "x" ; then
22178   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22179 fi
22180 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
22181 if test x"${CXXVERSION}" = x ; then
22182   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
22183 fi
22184
22185 if test "x${subsysdir}" = "x${sbindir}" ; then
22186    echo " "
22187    echo " "
22188    echo "You have set --sbindir and --with-subsys-dir"
22189    echo "  both equal to: ${subsysdir} "
22190    echo "  This is not permitted. Please reconfigure."
22191    echo " "
22192    echo "Aborting configuration ..."
22193    echo " "
22194    echo " "
22195    exit 1
22196 fi
22197
22198 if test "x${db_name}" = "xInternal" ; then
22199    echo " "
22200    echo " "
22201    echo "You have not specified either --enable-client-only or one of the"
22202    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
22203    echo "  This is not permitted. Please reconfigure."
22204    echo " "
22205    echo "Aborting the configuration ..."
22206    echo " "
22207    echo " "
22208    exit 1
22209 fi
22210
22211 echo "
22212 Configuration on `date`:
22213
22214   Host:                       $host -- ${DISTNAME} ${DISTVER}
22215   Bacula version:             ${VERSION} (${DATE})
22216   Source code location:       ${srcdir}
22217   Install binaries:           ${sbindir}
22218   Install config files:       ${sysconfdir}
22219   Scripts directory:          ${scriptdir}
22220   Working directory:          ${working_dir}
22221   PID directory:              ${piddir}
22222   Subsys directory:           ${subsysdir}
22223   C Compiler:                 ${CC} ${CCVERSION}
22224   C++ Compiler:               ${CXX} ${CXXVERSION}
22225   Compiler flags:             ${WCFLAGS} ${CFLAGS}
22226   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
22227   Libraries:                  ${LIBS}
22228   Statically Linked Tools:    ${support_static_tools}
22229   Statically Linked FD:       ${support_static_fd}
22230   Statically Linked SD:       ${support_static_sd}
22231   Statically Linked DIR:      ${support_static_dir}
22232   Statically Linked CONS:     ${support_static_cons}
22233   Database type:              ${db_name}
22234   Database lib:               ${DB_LIBS}
22235
22236   Job Output Email:           ${job_email}
22237   Traceback Email:            ${dump_email}
22238   SMTP Host Address:          ${smtp_host}
22239
22240   Director Port:              ${dir_port}
22241   File daemon Port:           ${fd_port}
22242   Storage daemon Port:        ${sd_port}
22243
22244   Director User:              ${dir_user}
22245   Director Group:             ${dir_group}
22246   Storage Daemon User:        ${sd_user}
22247   Storage DaemonGroup:        ${sd_group}
22248   File Daemon User:           ${fd_user}
22249   File Daemon Group:          ${fd_group}
22250
22251   SQL binaries Directory      ${SQL_BINDIR}
22252
22253   Large file support:         $largefile_support
22254   Bacula conio support:       ${got_conio} ${CONS_LIBS}
22255   readline support:           ${got_readline} ${PRTREADLINE_SRC}
22256   TCP Wrappers support:       ${TCPW_MSG}
22257   ZLIB support:               ${have_zlib}
22258   enable-smartalloc:          ${support_smartalloc}
22259   enable-gnome:               ${support_gnome} ${gnome_version}
22260   enable-wx-console:          ${support_wx_console}
22261   client-only:                ${build_client_only}
22262   ACL support:                ${have_acl}
22263
22264   " > config.out
22265
22266 cat config.out
22267
22268 # old stuff
22269 # cweb support:               ${got_cweb} ${CWEB_SRC}
22270   # gmp support:                      ${got_gmp} ${GMP_SRC}