]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
4bf687d9dba62d628905e665854056af0261e80d
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-wx-console      enable build of wxWidgets console disabled
860   --enable-smartalloc     enable smartalloc debugging support disabled
861   --enable-static-tools   enable static tape tools disabled
862   --enable-static-fd      enable static File daemon disabled
863   --enable-static-sd      enable static Storage daemon disabled
864   --enable-static-dir     enable static Director disabled
865   --enable-static-cons    enable static Console disabled
866   --enable-client-only    build client (File daemon) only disabled
867   --disable-conio            disable conio support enabled
868
869   --disable-readline      disable readline support disable
870
871   --disable-largefile     omit support for large files
872
873 Optional Packages:
874   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
875   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
876   --with-gnome-includes   Specify location of GNOME headers
877   --with-gnome-libs       Specify location of GNOME libs
878   --with-gnome            Specify prefix for GNOME files
879  --with-readline=DIR             specify readline library directory
880   --with-tcp-wrappers=DIR        enable tcpwrappers support
881   --with-working-dir=PATH        specify path of Bacula working directory
882   --with-scriptdir=PATH    specify path of Bacula scripts directory
883   --with-dump-email=EMAIL        dump email address
884   --with-job-email=EMAIL         job output email address
885   --with-smtp-host=HOST          SMTP mail host address
886   --with-pid-dir=PATH            specify location of Bacula pid files
887   --with-subsys-dir=PATH         specify location of Bacula subsys file
888   --with-baseport=PORT           specify base port address for daemons
889   --with-dir-password=PASSWORD   specify Director's password
890   --with-fd-password=PASSWORD    specify Client's password
891   --with-sd-password=PASSWORD    specify Storage daemon's password
892   --with-dir-user=USER           specify user for Director daemon
893   --with-dir-group=GROUP                 specify group for Director daemon
894   --with-sd-user=USER            specify user for Storage daemon
895   --with-sd-group=GROUP          specify group for Storage daemon
896   --with-fd-user=USER            specify user for File daemon
897   --with-fd-group=GROUP          specify group for File daemon
898   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
899   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
900                           base install directory, defaults to /usr/local/pgsql
901
902   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
903                           install directory, default is to search through
904                           a number of common places for the MySQL files.
905
906   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
907                           install directory, default is to search through
908                           a number of common places for the MySQL files.
909
910   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
911                           install directory, default is to search through
912                           a number of common places for the SQLite files.
913   --with-x                use the X Window System
914
915 Some influential environment variables:
916   CC          C compiler command
917   CFLAGS      C compiler flags
918   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
919               nonstandard directory <lib dir>
920   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
921               headers in a nonstandard directory <include dir>
922   CXX         C++ compiler command
923   CXXFLAGS    C++ compiler flags
924   CPP         C preprocessor
925
926 Use these variables to override the choices made by `configure' or to help
927 it to find libraries and programs with nonstandard names/locations.
928
929 _ACEOF
930 fi
931
932 if test "$ac_init_help" = "recursive"; then
933   # If there are subdirs, report their specific --help.
934   ac_popdir=`pwd`
935   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
936     test -d $ac_dir || continue
937     ac_builddir=.
938
939 if test "$ac_dir" != .; then
940   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
941   # A "../" for each directory in $ac_dir_suffix.
942   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 else
944   ac_dir_suffix= ac_top_builddir=
945 fi
946
947 case $srcdir in
948   .)  # No --srcdir option.  We are building in place.
949     ac_srcdir=.
950     if test -z "$ac_top_builddir"; then
951        ac_top_srcdir=.
952     else
953        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954     fi ;;
955   [\\/]* | ?:[\\/]* )  # Absolute path.
956     ac_srcdir=$srcdir$ac_dir_suffix;
957     ac_top_srcdir=$srcdir ;;
958   *) # Relative path.
959     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
960     ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 esac
962 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 # absolute.
964 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
965 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
966 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
967 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
968
969     cd $ac_dir
970     # Check for guested configure; otherwise get Cygnus style configure.
971     if test -f $ac_srcdir/configure.gnu; then
972       echo
973       $SHELL $ac_srcdir/configure.gnu  --help=recursive
974     elif test -f $ac_srcdir/configure; then
975       echo
976       $SHELL $ac_srcdir/configure  --help=recursive
977     elif test -f $ac_srcdir/configure.ac ||
978            test -f $ac_srcdir/configure.in; then
979       echo
980       $ac_configure --help
981     else
982       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983     fi
984     cd $ac_popdir
985   done
986 fi
987
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
990   cat <<\_ACEOF
991
992 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
993 Free Software Foundation, Inc.
994 This configure script is free software; the Free Software Foundation
995 gives unlimited permission to copy, distribute and modify it.
996 _ACEOF
997   exit 0
998 fi
999 exec 5>config.log
1000 cat >&5 <<_ACEOF
1001 This file contains any messages produced by compilers while
1002 running configure, to aid debugging if configure makes a mistake.
1003
1004 It was created by $as_me, which was
1005 generated by GNU Autoconf 2.57.  Invocation command line was
1006
1007   $ $0 $@
1008
1009 _ACEOF
1010 {
1011 cat <<_ASUNAME
1012 ## --------- ##
1013 ## Platform. ##
1014 ## --------- ##
1015
1016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021
1022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1023 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1024
1025 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1026 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1028 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1029 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1030 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1031 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1032
1033 _ASUNAME
1034
1035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 for as_dir in $PATH
1037 do
1038   IFS=$as_save_IFS
1039   test -z "$as_dir" && as_dir=.
1040   echo "PATH: $as_dir"
1041 done
1042
1043 } >&5
1044
1045 cat >&5 <<_ACEOF
1046
1047
1048 ## ----------- ##
1049 ## Core tests. ##
1050 ## ----------- ##
1051
1052 _ACEOF
1053
1054
1055 # Keep a trace of the command line.
1056 # Strip out --no-create and --no-recursion so they do not pile up.
1057 # Strip out --silent because we don't want to record it for future runs.
1058 # Also quote any args containing shell meta-characters.
1059 # Make two passes to allow for proper duplicate-argument suppression.
1060 ac_configure_args=
1061 ac_configure_args0=
1062 ac_configure_args1=
1063 ac_sep=
1064 ac_must_keep_next=false
1065 for ac_pass in 1 2
1066 do
1067   for ac_arg
1068   do
1069     case $ac_arg in
1070     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1071     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072     | -silent | --silent | --silen | --sile | --sil)
1073       continue ;;
1074     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1075       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076     esac
1077     case $ac_pass in
1078     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079     2)
1080       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1081       if test $ac_must_keep_next = true; then
1082         ac_must_keep_next=false # Got value, back to normal.
1083       else
1084         case $ac_arg in
1085           *=* | --config-cache | -C | -disable-* | --disable-* \
1086           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1087           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1088           | -with-* | --with-* | -without-* | --without-* | --x)
1089             case "$ac_configure_args0 " in
1090               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091             esac
1092             ;;
1093           -* ) ac_must_keep_next=true ;;
1094         esac
1095       fi
1096       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1097       # Get rid of the leading space.
1098       ac_sep=" "
1099       ;;
1100     esac
1101   done
1102 done
1103 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1104 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105
1106 # When interrupted or exit'd, cleanup temporary files, and complete
1107 # config.log.  We remove comments because anyway the quotes in there
1108 # would cause problems or look ugly.
1109 # WARNING: Be sure not to use single quotes in there, as some shells,
1110 # such as our DU 5.0 friend, will then `close' the trap.
1111 trap 'exit_status=$?
1112   # Save into config.log some information that might help in debugging.
1113   {
1114     echo
1115
1116     cat <<\_ASBOX
1117 ## ---------------- ##
1118 ## Cache variables. ##
1119 ## ---------------- ##
1120 _ASBOX
1121     echo
1122     # The following way of writing the cache mishandles newlines in values,
1123 {
1124   (set) 2>&1 |
1125     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126     *ac_space=\ *)
1127       sed -n \
1128         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1129           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130       ;;
1131     *)
1132       sed -n \
1133         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1134       ;;
1135     esac;
1136 }
1137     echo
1138
1139     cat <<\_ASBOX
1140 ## ----------------- ##
1141 ## Output variables. ##
1142 ## ----------------- ##
1143 _ASBOX
1144     echo
1145     for ac_var in $ac_subst_vars
1146     do
1147       eval ac_val=$`echo $ac_var`
1148       echo "$ac_var='"'"'$ac_val'"'"'"
1149     done | sort
1150     echo
1151
1152     if test -n "$ac_subst_files"; then
1153       cat <<\_ASBOX
1154 ## ------------- ##
1155 ## Output files. ##
1156 ## ------------- ##
1157 _ASBOX
1158       echo
1159       for ac_var in $ac_subst_files
1160       do
1161         eval ac_val=$`echo $ac_var`
1162         echo "$ac_var='"'"'$ac_val'"'"'"
1163       done | sort
1164       echo
1165     fi
1166
1167     if test -s confdefs.h; then
1168       cat <<\_ASBOX
1169 ## ----------- ##
1170 ## confdefs.h. ##
1171 ## ----------- ##
1172 _ASBOX
1173       echo
1174       sed "/^$/d" confdefs.h | sort
1175       echo
1176     fi
1177     test "$ac_signal" != 0 &&
1178       echo "$as_me: caught signal $ac_signal"
1179     echo "$as_me: exit $exit_status"
1180   } >&5
1181   rm -f core core.* *.core &&
1182   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183     exit $exit_status
1184      ' 0
1185 for ac_signal in 1 2 13 15; do
1186   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 done
1188 ac_signal=0
1189
1190 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1191 rm -rf conftest* confdefs.h
1192 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 echo >confdefs.h
1194
1195 # Predefined preprocessor variables.
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 _ACEOF
1200
1201
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 _ACEOF
1205
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 _ACEOF
1220
1221
1222 # Let the site file select an alternate cache file if it wants to.
1223 # Prefer explicitly selected file to automatically selected ones.
1224 if test -z "$CONFIG_SITE"; then
1225   if test "x$prefix" != xNONE; then
1226     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227   else
1228     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229   fi
1230 fi
1231 for ac_site_file in $CONFIG_SITE; do
1232   if test -r "$ac_site_file"; then
1233     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1234 echo "$as_me: loading site script $ac_site_file" >&6;}
1235     sed 's/^/| /' "$ac_site_file" >&5
1236     . "$ac_site_file"
1237   fi
1238 done
1239
1240 if test -r "$cache_file"; then
1241   # Some versions of bash will fail to source /dev/null (special
1242   # files actually), so we avoid doing that.
1243   if test -f "$cache_file"; then
1244     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1245 echo "$as_me: loading cache $cache_file" >&6;}
1246     case $cache_file in
1247       [\\/]* | ?:[\\/]* ) . $cache_file;;
1248       *)                      . ./$cache_file;;
1249     esac
1250   fi
1251 else
1252   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1253 echo "$as_me: creating cache $cache_file" >&6;}
1254   >$cache_file
1255 fi
1256
1257 # Check that the precious variables saved in the cache have kept the same
1258 # value.
1259 ac_cache_corrupted=false
1260 for ac_var in `(set) 2>&1 |
1261                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1262   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1263   eval ac_new_set=\$ac_env_${ac_var}_set
1264   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1265   eval ac_new_val="\$ac_env_${ac_var}_value"
1266   case $ac_old_set,$ac_new_set in
1267     set,)
1268       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1269 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1270       ac_cache_corrupted=: ;;
1271     ,set)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,);;
1276     *)
1277       if test "x$ac_old_val" != "x$ac_new_val"; then
1278         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1279 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1280         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1281 echo "$as_me:   former value:  $ac_old_val" >&2;}
1282         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1283 echo "$as_me:   current value: $ac_new_val" >&2;}
1284         ac_cache_corrupted=:
1285       fi;;
1286   esac
1287   # Pass precious variables to config.status.
1288   if test "$ac_new_set" = set; then
1289     case $ac_new_val in
1290     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1291       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1292     *) ac_arg=$ac_var=$ac_new_val ;;
1293     esac
1294     case " $ac_configure_args " in
1295       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1296       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297     esac
1298   fi
1299 done
1300 if $ac_cache_corrupted; then
1301   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1302 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1303   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1304 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1305    { (exit 1); exit 1; }; }
1306 fi
1307
1308 ac_ext=c
1309 ac_cpp='$CPP $CPPFLAGS'
1310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332 BUILD_DIR=`pwd`
1333 cd ..
1334 TOP_DIR=`pwd`
1335 cd ${BUILD_DIR}
1336
1337 ac_aux_dir=
1338 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1339   if test -f $ac_dir/install-sh; then
1340     ac_aux_dir=$ac_dir
1341     ac_install_sh="$ac_aux_dir/install-sh -c"
1342     break
1343   elif test -f $ac_dir/install.sh; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/install.sh -c"
1346     break
1347   elif test -f $ac_dir/shtool; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/shtool install -c"
1350     break
1351   fi
1352 done
1353 if test -z "$ac_aux_dir"; then
1354   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1355 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1356    { (exit 1); exit 1; }; }
1357 fi
1358 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1359 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1360 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361
1362           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1363
1364
1365
1366
1367
1368 for ac_prog in true
1369 do
1370   # Extract the first word of "$ac_prog", so it can be a program name with args.
1371 set dummy $ac_prog; ac_word=$2
1372 echo "$as_me:$LINENO: checking for $ac_word" >&5
1373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1374 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1375   echo $ECHO_N "(cached) $ECHO_C" >&6
1376 else
1377   case $TRUEPRG in
1378   [\\/]* | ?:[\\/]*)
1379   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1380   ;;
1381   *)
1382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 for as_dir in $PATH
1384 do
1385   IFS=$as_save_IFS
1386   test -z "$as_dir" && as_dir=.
1387   for ac_exec_ext in '' $ac_executable_extensions; do
1388   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1389     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1391     break 2
1392   fi
1393 done
1394 done
1395
1396   ;;
1397 esac
1398 fi
1399 TRUEPRG=$ac_cv_path_TRUEPRG
1400
1401 if test -n "$TRUEPRG"; then
1402   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1403 echo "${ECHO_T}$TRUEPRG" >&6
1404 else
1405   echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1407 fi
1408
1409   test -n "$TRUEPRG" && break
1410 done
1411 test -n "$TRUEPRG" || TRUEPRG=":"
1412
1413 for ac_prog in false
1414 do
1415   # Extract the first word of "$ac_prog", so it can be a program name with args.
1416 set dummy $ac_prog; ac_word=$2
1417 echo "$as_me:$LINENO: checking for $ac_word" >&5
1418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1419 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1420   echo $ECHO_N "(cached) $ECHO_C" >&6
1421 else
1422   case $FALSEPRG in
1423   [\\/]* | ?:[\\/]*)
1424   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1425   ;;
1426   *)
1427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 for as_dir in $PATH
1429 do
1430   IFS=$as_save_IFS
1431   test -z "$as_dir" && as_dir=.
1432   for ac_exec_ext in '' $ac_executable_extensions; do
1433   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436     break 2
1437   fi
1438 done
1439 done
1440
1441   ;;
1442 esac
1443 fi
1444 FALSEPRG=$ac_cv_path_FALSEPRG
1445
1446 if test -n "$FALSEPRG"; then
1447   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1448 echo "${ECHO_T}$FALSEPRG" >&6
1449 else
1450   echo "$as_me:$LINENO: result: no" >&5
1451 echo "${ECHO_T}no" >&6
1452 fi
1453
1454   test -n "$FALSEPRG" && break
1455 done
1456 test -n "$FALSEPRG" || FALSEPRG=":"
1457
1458
1459 #AC_CANONICAL_HOST
1460
1461 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1462 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1463 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1464 echo "configuring for bacula $VERSION ($DATE)"
1465
1466
1467
1468 ac_ext=c
1469 ac_cpp='$CPP $CPPFLAGS'
1470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1473 if test -n "$ac_tool_prefix"; then
1474   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1475 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1476 echo "$as_me:$LINENO: checking for $ac_word" >&5
1477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1478 if test "${ac_cv_prog_CC+set}" = set; then
1479   echo $ECHO_N "(cached) $ECHO_C" >&6
1480 else
1481   if test -n "$CC"; then
1482   ac_cv_prog_CC="$CC" # Let the user override the test.
1483 else
1484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 for as_dir in $PATH
1486 do
1487   IFS=$as_save_IFS
1488   test -z "$as_dir" && as_dir=.
1489   for ac_exec_ext in '' $ac_executable_extensions; do
1490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1493     break 2
1494   fi
1495 done
1496 done
1497
1498 fi
1499 fi
1500 CC=$ac_cv_prog_CC
1501 if test -n "$CC"; then
1502   echo "$as_me:$LINENO: result: $CC" >&5
1503 echo "${ECHO_T}$CC" >&6
1504 else
1505   echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1507 fi
1508
1509 fi
1510 if test -z "$ac_cv_prog_CC"; then
1511   ac_ct_CC=$CC
1512   # Extract the first word of "gcc", so it can be a program name with args.
1513 set dummy gcc; ac_word=$2
1514 echo "$as_me:$LINENO: checking for $ac_word" >&5
1515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1517   echo $ECHO_N "(cached) $ECHO_C" >&6
1518 else
1519   if test -n "$ac_ct_CC"; then
1520   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1521 else
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1523 for as_dir in $PATH
1524 do
1525   IFS=$as_save_IFS
1526   test -z "$as_dir" && as_dir=.
1527   for ac_exec_ext in '' $ac_executable_extensions; do
1528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1529     ac_cv_prog_ac_ct_CC="gcc"
1530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1531     break 2
1532   fi
1533 done
1534 done
1535
1536 fi
1537 fi
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1542 else
1543   echo "$as_me:$LINENO: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1545 fi
1546
1547   CC=$ac_ct_CC
1548 else
1549   CC="$ac_cv_prog_CC"
1550 fi
1551
1552 if test -z "$CC"; then
1553   if test -n "$ac_tool_prefix"; then
1554   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1555 set dummy ${ac_tool_prefix}cc; ac_word=$2
1556 echo "$as_me:$LINENO: checking for $ac_word" >&5
1557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1558 if test "${ac_cv_prog_CC+set}" = set; then
1559   echo $ECHO_N "(cached) $ECHO_C" >&6
1560 else
1561   if test -n "$CC"; then
1562   ac_cv_prog_CC="$CC" # Let the user override the test.
1563 else
1564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1565 for as_dir in $PATH
1566 do
1567   IFS=$as_save_IFS
1568   test -z "$as_dir" && as_dir=.
1569   for ac_exec_ext in '' $ac_executable_extensions; do
1570   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1571     ac_cv_prog_CC="${ac_tool_prefix}cc"
1572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573     break 2
1574   fi
1575 done
1576 done
1577
1578 fi
1579 fi
1580 CC=$ac_cv_prog_CC
1581 if test -n "$CC"; then
1582   echo "$as_me:$LINENO: result: $CC" >&5
1583 echo "${ECHO_T}$CC" >&6
1584 else
1585   echo "$as_me:$LINENO: result: no" >&5
1586 echo "${ECHO_T}no" >&6
1587 fi
1588
1589 fi
1590 if test -z "$ac_cv_prog_CC"; then
1591   ac_ct_CC=$CC
1592   # Extract the first word of "cc", so it can be a program name with args.
1593 set dummy cc; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   if test -n "$ac_ct_CC"; then
1600   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605   IFS=$as_save_IFS
1606   test -z "$as_dir" && as_dir=.
1607   for ac_exec_ext in '' $ac_executable_extensions; do
1608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609     ac_cv_prog_ac_ct_CC="cc"
1610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611     break 2
1612   fi
1613 done
1614 done
1615
1616 fi
1617 fi
1618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1619 if test -n "$ac_ct_CC"; then
1620   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1621 echo "${ECHO_T}$ac_ct_CC" >&6
1622 else
1623   echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 fi
1626
1627   CC=$ac_ct_CC
1628 else
1629   CC="$ac_cv_prog_CC"
1630 fi
1631
1632 fi
1633 if test -z "$CC"; then
1634   # Extract the first word of "cc", so it can be a program name with args.
1635 set dummy cc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_CC+set}" = set; then
1639   echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641   if test -n "$CC"; then
1642   ac_cv_prog_CC="$CC" # Let the user override the test.
1643 else
1644   ac_prog_rejected=no
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648   IFS=$as_save_IFS
1649   test -z "$as_dir" && as_dir=.
1650   for ac_exec_ext in '' $ac_executable_extensions; do
1651   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1653        ac_prog_rejected=yes
1654        continue
1655      fi
1656     ac_cv_prog_CC="cc"
1657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658     break 2
1659   fi
1660 done
1661 done
1662
1663 if test $ac_prog_rejected = yes; then
1664   # We found a bogon in the path, so make sure we never use it.
1665   set dummy $ac_cv_prog_CC
1666   shift
1667   if test $# != 0; then
1668     # We chose a different compiler from the bogus one.
1669     # However, it has the same basename, so the bogon will be chosen
1670     # first if we set CC to just the basename; use the full file name.
1671     shift
1672     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1673   fi
1674 fi
1675 fi
1676 fi
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679   echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6
1681 else
1682   echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6
1684 fi
1685
1686 fi
1687 if test -z "$CC"; then
1688   if test -n "$ac_tool_prefix"; then
1689   for ac_prog in cl
1690   do
1691     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696   echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698   if test -n "$CC"; then
1699   ac_cv_prog_CC="$CC" # Let the user override the test.
1700 else
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1703 do
1704   IFS=$as_save_IFS
1705   test -z "$as_dir" && as_dir=.
1706   for ac_exec_ext in '' $ac_executable_extensions; do
1707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 fi
1716 fi
1717 CC=$ac_cv_prog_CC
1718 if test -n "$CC"; then
1719   echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1721 else
1722   echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1724 fi
1725
1726     test -n "$CC" && break
1727   done
1728 fi
1729 if test -z "$CC"; then
1730   ac_ct_CC=$CC
1731   for ac_prog in cl
1732 do
1733   # Extract the first word of "$ac_prog", so it can be a program name with args.
1734 set dummy $ac_prog; ac_word=$2
1735 echo "$as_me:$LINENO: checking for $ac_word" >&5
1736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1738   echo $ECHO_N "(cached) $ECHO_C" >&6
1739 else
1740   if test -n "$ac_ct_CC"; then
1741   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742 else
1743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 for as_dir in $PATH
1745 do
1746   IFS=$as_save_IFS
1747   test -z "$as_dir" && as_dir=.
1748   for ac_exec_ext in '' $ac_executable_extensions; do
1749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750     ac_cv_prog_ac_ct_CC="$ac_prog"
1751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752     break 2
1753   fi
1754 done
1755 done
1756
1757 fi
1758 fi
1759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1760 if test -n "$ac_ct_CC"; then
1761   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1762 echo "${ECHO_T}$ac_ct_CC" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768   test -n "$ac_ct_CC" && break
1769 done
1770
1771   CC=$ac_ct_CC
1772 fi
1773
1774 fi
1775
1776
1777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1778 See \`config.log' for more details." >&5
1779 echo "$as_me: error: no acceptable C compiler found in \$PATH
1780 See \`config.log' for more details." >&2;}
1781    { (exit 1); exit 1; }; }
1782
1783 # Provide some information about the compiler.
1784 echo "$as_me:$LINENO:" \
1785      "checking for C compiler version" >&5
1786 ac_compiler=`set X $ac_compile; echo $2`
1787 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1788   (eval $ac_compiler --version </dev/null >&5) 2>&5
1789   ac_status=$?
1790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791   (exit $ac_status); }
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1793   (eval $ac_compiler -v </dev/null >&5) 2>&5
1794   ac_status=$?
1795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796   (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1798   (eval $ac_compiler -V </dev/null >&5) 2>&5
1799   ac_status=$?
1800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801   (exit $ac_status); }
1802
1803 cat >conftest.$ac_ext <<_ACEOF
1804 #line $LINENO "configure"
1805 /* confdefs.h.  */
1806 _ACEOF
1807 cat confdefs.h >>conftest.$ac_ext
1808 cat >>conftest.$ac_ext <<_ACEOF
1809 /* end confdefs.h.  */
1810
1811 int
1812 main ()
1813 {
1814
1815   ;
1816   return 0;
1817 }
1818 _ACEOF
1819 ac_clean_files_save=$ac_clean_files
1820 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1821 # Try to create an executable without -o first, disregard a.out.
1822 # It will help us diagnose broken compilers, and finding out an intuition
1823 # of exeext.
1824 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1825 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1826 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1827 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1828   (eval $ac_link_default) 2>&5
1829   ac_status=$?
1830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1831   (exit $ac_status); }; then
1832   # Find the output, starting from the most likely.  This scheme is
1833 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1834 # resort.
1835
1836 # Be careful to initialize this variable, since it used to be cached.
1837 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1838 ac_cv_exeext=
1839 # b.out is created by i960 compilers.
1840 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1841 do
1842   test -f "$ac_file" || continue
1843   case $ac_file in
1844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1845         ;;
1846     conftest.$ac_ext )
1847         # This is the source file.
1848         ;;
1849     [ab].out )
1850         # We found the default executable, but exeext='' is most
1851         # certainly right.
1852         break;;
1853     *.* )
1854         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1855         # FIXME: I believe we export ac_cv_exeext for Libtool,
1856         # but it would be cool to find out if it's true.  Does anybody
1857         # maintain Libtool? --akim.
1858         export ac_cv_exeext
1859         break;;
1860     * )
1861         break;;
1862   esac
1863 done
1864 else
1865   echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1869 See \`config.log' for more details." >&5
1870 echo "$as_me: error: C compiler cannot create executables
1871 See \`config.log' for more details." >&2;}
1872    { (exit 77); exit 77; }; }
1873 fi
1874
1875 ac_exeext=$ac_cv_exeext
1876 echo "$as_me:$LINENO: result: $ac_file" >&5
1877 echo "${ECHO_T}$ac_file" >&6
1878
1879 # Check the compiler produces executables we can run.  If not, either
1880 # the compiler is broken, or we cross compile.
1881 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1882 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1883 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1884 # If not cross compiling, check that we can run a simple program.
1885 if test "$cross_compiling" != yes; then
1886   if { ac_try='./$ac_file'
1887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1888   (eval $ac_try) 2>&5
1889   ac_status=$?
1890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891   (exit $ac_status); }; }; then
1892     cross_compiling=no
1893   else
1894     if test "$cross_compiling" = maybe; then
1895         cross_compiling=yes
1896     else
1897         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1898 If you meant to cross compile, use \`--host'.
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&2;}
1903    { (exit 1); exit 1; }; }
1904     fi
1905   fi
1906 fi
1907 echo "$as_me:$LINENO: result: yes" >&5
1908 echo "${ECHO_T}yes" >&6
1909
1910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1911 ac_clean_files=$ac_clean_files_save
1912 # Check the compiler produces executables we can run.  If not, either
1913 # the compiler is broken, or we cross compile.
1914 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1916 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1917 echo "${ECHO_T}$cross_compiling" >&6
1918
1919 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1922   (eval $ac_link) 2>&5
1923   ac_status=$?
1924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1925   (exit $ac_status); }; then
1926   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1927 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1928 # work properly (i.e., refer to `conftest.exe'), while it won't with
1929 # `rm'.
1930 for ac_file in conftest.exe conftest conftest.*; do
1931   test -f "$ac_file" || continue
1932   case $ac_file in
1933     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1934     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1935           export ac_cv_exeext
1936           break;;
1937     * ) break;;
1938   esac
1939 done
1940 else
1941   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1942 See \`config.log' for more details." >&5
1943 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1944 See \`config.log' for more details." >&2;}
1945    { (exit 1); exit 1; }; }
1946 fi
1947
1948 rm -f conftest$ac_cv_exeext
1949 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1950 echo "${ECHO_T}$ac_cv_exeext" >&6
1951
1952 rm -f conftest.$ac_ext
1953 EXEEXT=$ac_cv_exeext
1954 ac_exeext=$EXEEXT
1955 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1956 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1957 if test "${ac_cv_objext+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   cat >conftest.$ac_ext <<_ACEOF
1961 #line $LINENO "configure"
1962 /* confdefs.h.  */
1963 _ACEOF
1964 cat confdefs.h >>conftest.$ac_ext
1965 cat >>conftest.$ac_ext <<_ACEOF
1966 /* end confdefs.h.  */
1967
1968 int
1969 main ()
1970 {
1971
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 rm -f conftest.o conftest.obj
1977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1978   (eval $ac_compile) 2>&5
1979   ac_status=$?
1980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981   (exit $ac_status); }; then
1982   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1983   case $ac_file in
1984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1985     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1986        break;;
1987   esac
1988 done
1989 else
1990   echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2001 fi
2002 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2003 echo "${ECHO_T}$ac_cv_objext" >&6
2004 OBJEXT=$ac_cv_objext
2005 ac_objext=$OBJEXT
2006 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2007 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2008 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2009   echo $ECHO_N "(cached) $ECHO_C" >&6
2010 else
2011   cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2013 /* confdefs.h.  */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h.  */
2018
2019 int
2020 main ()
2021 {
2022 #ifndef __GNUC__
2023        choke me
2024 #endif
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 rm -f conftest.$ac_objext
2031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2032   (eval $ac_compile) 2>&5
2033   ac_status=$?
2034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035   (exit $ac_status); } &&
2036          { ac_try='test -s conftest.$ac_objext'
2037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2038   (eval $ac_try) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; }; then
2042   ac_compiler_gnu=yes
2043 else
2044   echo "$as_me: failed program was:" >&5
2045 sed 's/^/| /' conftest.$ac_ext >&5
2046
2047 ac_compiler_gnu=no
2048 fi
2049 rm -f conftest.$ac_objext conftest.$ac_ext
2050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2051
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2054 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2055 GCC=`test $ac_compiler_gnu = yes && echo yes`
2056 ac_test_CFLAGS=${CFLAGS+set}
2057 ac_save_CFLAGS=$CFLAGS
2058 CFLAGS="-g"
2059 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2060 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2061 if test "${ac_cv_prog_cc_g+set}" = set; then
2062   echo $ECHO_N "(cached) $ECHO_C" >&6
2063 else
2064   cat >conftest.$ac_ext <<_ACEOF
2065 #line $LINENO "configure"
2066 /* confdefs.h.  */
2067 _ACEOF
2068 cat confdefs.h >>conftest.$ac_ext
2069 cat >>conftest.$ac_ext <<_ACEOF
2070 /* end confdefs.h.  */
2071
2072 int
2073 main ()
2074 {
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082   (eval $ac_compile) 2>&5
2083   ac_status=$?
2084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085   (exit $ac_status); } &&
2086          { ac_try='test -s conftest.$ac_objext'
2087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088   (eval $ac_try) 2>&5
2089   ac_status=$?
2090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091   (exit $ac_status); }; }; then
2092   ac_cv_prog_cc_g=yes
2093 else
2094   echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2096
2097 ac_cv_prog_cc_g=no
2098 fi
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2102 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2103 if test "$ac_test_CFLAGS" = set; then
2104   CFLAGS=$ac_save_CFLAGS
2105 elif test $ac_cv_prog_cc_g = yes; then
2106   if test "$GCC" = yes; then
2107     CFLAGS="-g -O2"
2108   else
2109     CFLAGS="-g"
2110   fi
2111 else
2112   if test "$GCC" = yes; then
2113     CFLAGS="-O2"
2114   else
2115     CFLAGS=
2116   fi
2117 fi
2118 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2119 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2121   echo $ECHO_N "(cached) $ECHO_C" >&6
2122 else
2123   ac_cv_prog_cc_stdc=no
2124 ac_save_CC=$CC
2125 cat >conftest.$ac_ext <<_ACEOF
2126 #line $LINENO "configure"
2127 /* confdefs.h.  */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h.  */
2132 #include <stdarg.h>
2133 #include <stdio.h>
2134 #include <sys/types.h>
2135 #include <sys/stat.h>
2136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2137 struct buf { int x; };
2138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2139 static char *e (p, i)
2140      char **p;
2141      int i;
2142 {
2143   return p[i];
2144 }
2145 static char *f (char * (*g) (char **, int), char **p, ...)
2146 {
2147   char *s;
2148   va_list v;
2149   va_start (v,p);
2150   s = g (p, va_arg (v,int));
2151   va_end (v);
2152   return s;
2153 }
2154 int test (int i, double x);
2155 struct s1 {int (*f) (int a);};
2156 struct s2 {int (*f) (double a);};
2157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2158 int argc;
2159 char **argv;
2160 int
2161 main ()
2162 {
2163 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2164   ;
2165   return 0;
2166 }
2167 _ACEOF
2168 # Don't try gcc -ansi; that turns off useful extensions and
2169 # breaks some systems' header files.
2170 # AIX                   -qlanglvl=ansi
2171 # Ultrix and OSF/1      -std1
2172 # HP-UX 10.20 and later -Ae
2173 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2174 # SVR4                  -Xc -D__EXTENSIONS__
2175 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2176 do
2177   CC="$ac_save_CC $ac_arg"
2178   rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180   (eval $ac_compile) 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); } &&
2184          { ac_try='test -s conftest.$ac_objext'
2185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186   (eval $ac_try) 2>&5
2187   ac_status=$?
2188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189   (exit $ac_status); }; }; then
2190   ac_cv_prog_cc_stdc=$ac_arg
2191 break
2192 else
2193   echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2195
2196 fi
2197 rm -f conftest.$ac_objext
2198 done
2199 rm -f conftest.$ac_ext conftest.$ac_objext
2200 CC=$ac_save_CC
2201
2202 fi
2203
2204 case "x$ac_cv_prog_cc_stdc" in
2205   x|xno)
2206     echo "$as_me:$LINENO: result: none needed" >&5
2207 echo "${ECHO_T}none needed" >&6 ;;
2208   *)
2209     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2210 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2211     CC="$CC $ac_cv_prog_cc_stdc" ;;
2212 esac
2213
2214 # Some people use a C++ compiler to compile C.  Since we use `exit',
2215 # in C++ we need to declare it.  In case someone uses the same compiler
2216 # for both compiling C and C++ we need to have the C++ compiler decide
2217 # the declaration of exit, since it's the most demanding environment.
2218 cat >conftest.$ac_ext <<_ACEOF
2219 #ifndef __cplusplus
2220   choke me
2221 #endif
2222 _ACEOF
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225   (eval $ac_compile) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } &&
2229          { ac_try='test -s conftest.$ac_objext'
2230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231   (eval $ac_try) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }; }; then
2235   for ac_declaration in \
2236    ''\
2237    '#include <stdlib.h>' \
2238    'extern "C" void std::exit (int) throw (); using std::exit;' \
2239    'extern "C" void std::exit (int); using std::exit;' \
2240    'extern "C" void exit (int) throw ();' \
2241    'extern "C" void exit (int);' \
2242    'void exit (int);'
2243 do
2244   cat >conftest.$ac_ext <<_ACEOF
2245 #line $LINENO "configure"
2246 /* confdefs.h.  */
2247 _ACEOF
2248 cat confdefs.h >>conftest.$ac_ext
2249 cat >>conftest.$ac_ext <<_ACEOF
2250 /* end confdefs.h.  */
2251 #include <stdlib.h>
2252 $ac_declaration
2253 int
2254 main ()
2255 {
2256 exit (42);
2257   ;
2258   return 0;
2259 }
2260 _ACEOF
2261 rm -f conftest.$ac_objext
2262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2263   (eval $ac_compile) 2>&5
2264   ac_status=$?
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); } &&
2267          { ac_try='test -s conftest.$ac_objext'
2268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269   (eval $ac_try) 2>&5
2270   ac_status=$?
2271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272   (exit $ac_status); }; }; then
2273   :
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 continue
2279 fi
2280 rm -f conftest.$ac_objext conftest.$ac_ext
2281   cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2283 /* confdefs.h.  */
2284 _ACEOF
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h.  */
2288 $ac_declaration
2289 int
2290 main ()
2291 {
2292 exit (42);
2293   ;
2294   return 0;
2295 }
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299   (eval $ac_compile) 2>&5
2300   ac_status=$?
2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302   (exit $ac_status); } &&
2303          { ac_try='test -s conftest.$ac_objext'
2304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305   (eval $ac_try) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; }; then
2309   break
2310 else
2311   echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2313
2314 fi
2315 rm -f conftest.$ac_objext conftest.$ac_ext
2316 done
2317 rm -f conftest*
2318 if test -n "$ac_declaration"; then
2319   echo '#ifdef __cplusplus' >>confdefs.h
2320   echo $ac_declaration      >>confdefs.h
2321   echo '#endif'             >>confdefs.h
2322 fi
2323
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 fi
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2330 ac_ext=c
2331 ac_cpp='$CPP $CPPFLAGS'
2332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2335
2336 ac_ext=cc
2337 ac_cpp='$CXXCPP $CPPFLAGS'
2338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2341 if test -n "$ac_tool_prefix"; then
2342   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2343   do
2344     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2346 echo "$as_me:$LINENO: checking for $ac_word" >&5
2347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348 if test "${ac_cv_prog_CXX+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   if test -n "$CXX"; then
2352   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2353 else
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2356 do
2357   IFS=$as_save_IFS
2358   test -z "$as_dir" && as_dir=.
2359   for ac_exec_ext in '' $ac_executable_extensions; do
2360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363     break 2
2364   fi
2365 done
2366 done
2367
2368 fi
2369 fi
2370 CXX=$ac_cv_prog_CXX
2371 if test -n "$CXX"; then
2372   echo "$as_me:$LINENO: result: $CXX" >&5
2373 echo "${ECHO_T}$CXX" >&6
2374 else
2375   echo "$as_me:$LINENO: result: no" >&5
2376 echo "${ECHO_T}no" >&6
2377 fi
2378
2379     test -n "$CXX" && break
2380   done
2381 fi
2382 if test -z "$CXX"; then
2383   ac_ct_CXX=$CXX
2384   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2385 do
2386   # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   if test -n "$ac_ct_CXX"; then
2394   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401   for ac_exec_ext in '' $ac_executable_extensions; do
2402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403     ac_cv_prog_ac_ct_CXX="$ac_prog"
2404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408 done
2409
2410 fi
2411 fi
2412 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2413 if test -n "$ac_ct_CXX"; then
2414   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2415 echo "${ECHO_T}$ac_ct_CXX" >&6
2416 else
2417   echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2419 fi
2420
2421   test -n "$ac_ct_CXX" && break
2422 done
2423 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2424
2425   CXX=$ac_ct_CXX
2426 fi
2427
2428
2429 # Provide some information about the compiler.
2430 echo "$as_me:$LINENO:" \
2431      "checking for C++ compiler version" >&5
2432 ac_compiler=`set X $ac_compile; echo $2`
2433 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2434   (eval $ac_compiler --version </dev/null >&5) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }
2438 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2439   (eval $ac_compiler -v </dev/null >&5) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }
2443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2444   (eval $ac_compiler -V </dev/null >&5) 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }
2448
2449 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2450 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2451 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2452   echo $ECHO_N "(cached) $ECHO_C" >&6
2453 else
2454   cat >conftest.$ac_ext <<_ACEOF
2455 #line $LINENO "configure"
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461
2462 int
2463 main ()
2464 {
2465 #ifndef __GNUC__
2466        choke me
2467 #endif
2468
2469   ;
2470   return 0;
2471 }
2472 _ACEOF
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475   (eval $ac_compile) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); } &&
2479          { ac_try='test -s conftest.$ac_objext'
2480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481   (eval $ac_try) 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; }; then
2485   ac_compiler_gnu=yes
2486 else
2487   echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2489
2490 ac_compiler_gnu=no
2491 fi
2492 rm -f conftest.$ac_objext conftest.$ac_ext
2493 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2494
2495 fi
2496 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2497 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2498 GXX=`test $ac_compiler_gnu = yes && echo yes`
2499 ac_test_CXXFLAGS=${CXXFLAGS+set}
2500 ac_save_CXXFLAGS=$CXXFLAGS
2501 CXXFLAGS="-g"
2502 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2503 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cxx_g+set}" = set; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   cat >conftest.$ac_ext <<_ACEOF
2508 #line $LINENO "configure"
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514
2515 int
2516 main ()
2517 {
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525   (eval $ac_compile) 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -s conftest.$ac_objext'
2530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531   (eval $ac_try) 2>&5
2532   ac_status=$?
2533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534   (exit $ac_status); }; }; then
2535   ac_cv_prog_cxx_g=yes
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_cv_prog_cxx_g=no
2541 fi
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543 fi
2544 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2545 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2546 if test "$ac_test_CXXFLAGS" = set; then
2547   CXXFLAGS=$ac_save_CXXFLAGS
2548 elif test $ac_cv_prog_cxx_g = yes; then
2549   if test "$GXX" = yes; then
2550     CXXFLAGS="-g -O2"
2551   else
2552     CXXFLAGS="-g"
2553   fi
2554 else
2555   if test "$GXX" = yes; then
2556     CXXFLAGS="-O2"
2557   else
2558     CXXFLAGS=
2559   fi
2560 fi
2561 for ac_declaration in \
2562    ''\
2563    '#include <stdlib.h>' \
2564    'extern "C" void std::exit (int) throw (); using std::exit;' \
2565    'extern "C" void std::exit (int); using std::exit;' \
2566    'extern "C" void exit (int) throw ();' \
2567    'extern "C" void exit (int);' \
2568    'void exit (int);'
2569 do
2570   cat >conftest.$ac_ext <<_ACEOF
2571 #line $LINENO "configure"
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577 #include <stdlib.h>
2578 $ac_declaration
2579 int
2580 main ()
2581 {
2582 exit (42);
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589   (eval $ac_compile) 2>&5
2590   ac_status=$?
2591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592   (exit $ac_status); } &&
2593          { ac_try='test -s conftest.$ac_objext'
2594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595   (eval $ac_try) 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599   :
2600 else
2601   echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2603
2604 continue
2605 fi
2606 rm -f conftest.$ac_objext conftest.$ac_ext
2607   cat >conftest.$ac_ext <<_ACEOF
2608 #line $LINENO "configure"
2609 /* confdefs.h.  */
2610 _ACEOF
2611 cat confdefs.h >>conftest.$ac_ext
2612 cat >>conftest.$ac_ext <<_ACEOF
2613 /* end confdefs.h.  */
2614 $ac_declaration
2615 int
2616 main ()
2617 {
2618 exit (42);
2619   ;
2620   return 0;
2621 }
2622 _ACEOF
2623 rm -f conftest.$ac_objext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2625   (eval $ac_compile) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); } &&
2629          { ac_try='test -s conftest.$ac_objext'
2630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631   (eval $ac_try) 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   break
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 fi
2641 rm -f conftest.$ac_objext conftest.$ac_ext
2642 done
2643 rm -f conftest*
2644 if test -n "$ac_declaration"; then
2645   echo '#ifdef __cplusplus' >>confdefs.h
2646   echo $ac_declaration      >>confdefs.h
2647   echo '#endif'             >>confdefs.h
2648 fi
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
2656 if test "x$CC" != xcc; then
2657   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2658 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2659 else
2660   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2661 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2662 fi
2663 set dummy $CC; ac_cc=`echo $2 |
2664                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2665 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2666   echo $ECHO_N "(cached) $ECHO_C" >&6
2667 else
2668   cat >conftest.$ac_ext <<_ACEOF
2669 #line $LINENO "configure"
2670 /* confdefs.h.  */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h.  */
2675
2676 int
2677 main ()
2678 {
2679
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
2684 # Make sure it works both with $CC and with simple cc.
2685 # We do the test twice because some compilers refuse to overwrite an
2686 # existing .o file with -o, though they will create one.
2687 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2688 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689   (eval $ac_try) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } &&
2693    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694   (eval $ac_try) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); };
2698 then
2699   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2700   if test "x$CC" != xcc; then
2701     # Test first that cc exists at all.
2702     if { ac_try='cc -c conftest.$ac_ext >&5'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; }; then
2708       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2709       if { (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          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715   (eval $ac_try) 2>&5
2716   ac_status=$?
2717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718   (exit $ac_status); };
2719       then
2720         # cc works too.
2721         :
2722       else
2723         # cc exists but doesn't like -o.
2724         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2725       fi
2726     fi
2727   fi
2728 else
2729   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2730 fi
2731 rm -f conftest*
2732
2733 fi
2734 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2735   echo "$as_me:$LINENO: result: yes" >&5
2736 echo "${ECHO_T}yes" >&6
2737 else
2738   echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740
2741 cat >>confdefs.h <<\_ACEOF
2742 #define NO_MINUS_C_MINUS_O 1
2743 _ACEOF
2744
2745 fi
2746
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2753 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2754 # On Suns, sometimes $CPP names a directory.
2755 if test -n "$CPP" && test -d "$CPP"; then
2756   CPP=
2757 fi
2758 if test -z "$CPP"; then
2759   if test "${ac_cv_prog_CPP+set}" = set; then
2760   echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762       # Double quotes because CPP needs to be expanded
2763     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2764     do
2765       ac_preproc_ok=false
2766 for ac_c_preproc_warn_flag in '' yes
2767 do
2768   # Use a header file that comes with gcc, so configuring glibc
2769   # with a fresh cross-compiler works.
2770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771   # <limits.h> exists even on freestanding compilers.
2772   # On the NeXT, cc -E runs the code through the compiler's parser,
2773   # not just through cpp. "Syntax error" is here to catch this case.
2774   cat >conftest.$ac_ext <<_ACEOF
2775 #line $LINENO "configure"
2776 /* confdefs.h.  */
2777 _ACEOF
2778 cat confdefs.h >>conftest.$ac_ext
2779 cat >>conftest.$ac_ext <<_ACEOF
2780 /* end confdefs.h.  */
2781 #ifdef __STDC__
2782 # include <limits.h>
2783 #else
2784 # include <assert.h>
2785 #endif
2786                      Syntax error
2787 _ACEOF
2788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } >/dev/null; then
2796   if test -s conftest.err; then
2797     ac_cpp_err=$ac_c_preproc_warn_flag
2798   else
2799     ac_cpp_err=
2800   fi
2801 else
2802   ac_cpp_err=yes
2803 fi
2804 if test -z "$ac_cpp_err"; then
2805   :
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810   # Broken: fails on valid input.
2811 continue
2812 fi
2813 rm -f conftest.err conftest.$ac_ext
2814
2815   # OK, works on sane cases.  Now check whether non-existent headers
2816   # can be detected and how.
2817   cat >conftest.$ac_ext <<_ACEOF
2818 #line $LINENO "configure"
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824 #include <ac_nonexistent.h>
2825 _ACEOF
2826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2828   ac_status=$?
2829   grep -v '^ *+' conftest.er1 >conftest.err
2830   rm -f conftest.er1
2831   cat conftest.err >&5
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); } >/dev/null; then
2834   if test -s conftest.err; then
2835     ac_cpp_err=$ac_c_preproc_warn_flag
2836   else
2837     ac_cpp_err=
2838   fi
2839 else
2840   ac_cpp_err=yes
2841 fi
2842 if test -z "$ac_cpp_err"; then
2843   # Broken: success on invalid input.
2844 continue
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849   # Passes both tests.
2850 ac_preproc_ok=:
2851 break
2852 fi
2853 rm -f conftest.err conftest.$ac_ext
2854
2855 done
2856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2857 rm -f conftest.err conftest.$ac_ext
2858 if $ac_preproc_ok; then
2859   break
2860 fi
2861
2862     done
2863     ac_cv_prog_CPP=$CPP
2864
2865 fi
2866   CPP=$ac_cv_prog_CPP
2867 else
2868   ac_cv_prog_CPP=$CPP
2869 fi
2870 echo "$as_me:$LINENO: result: $CPP" >&5
2871 echo "${ECHO_T}$CPP" >&6
2872 ac_preproc_ok=false
2873 for ac_c_preproc_warn_flag in '' yes
2874 do
2875   # Use a header file that comes with gcc, so configuring glibc
2876   # with a fresh cross-compiler works.
2877   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878   # <limits.h> exists even on freestanding compilers.
2879   # On the NeXT, cc -E runs the code through the compiler's parser,
2880   # not just through cpp. "Syntax error" is here to catch this case.
2881   cat >conftest.$ac_ext <<_ACEOF
2882 #line $LINENO "configure"
2883 /* confdefs.h.  */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h.  */
2888 #ifdef __STDC__
2889 # include <limits.h>
2890 #else
2891 # include <assert.h>
2892 #endif
2893                      Syntax error
2894 _ACEOF
2895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } >/dev/null; then
2903   if test -s conftest.err; then
2904     ac_cpp_err=$ac_c_preproc_warn_flag
2905   else
2906     ac_cpp_err=
2907   fi
2908 else
2909   ac_cpp_err=yes
2910 fi
2911 if test -z "$ac_cpp_err"; then
2912   :
2913 else
2914   echo "$as_me: failed program was:" >&5
2915 sed 's/^/| /' conftest.$ac_ext >&5
2916
2917   # Broken: fails on valid input.
2918 continue
2919 fi
2920 rm -f conftest.err conftest.$ac_ext
2921
2922   # OK, works on sane cases.  Now check whether non-existent headers
2923   # can be detected and how.
2924   cat >conftest.$ac_ext <<_ACEOF
2925 #line $LINENO "configure"
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931 #include <ac_nonexistent.h>
2932 _ACEOF
2933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } >/dev/null; then
2941   if test -s conftest.err; then
2942     ac_cpp_err=$ac_c_preproc_warn_flag
2943   else
2944     ac_cpp_err=
2945   fi
2946 else
2947   ac_cpp_err=yes
2948 fi
2949 if test -z "$ac_cpp_err"; then
2950   # Broken: success on invalid input.
2951 continue
2952 else
2953   echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2955
2956   # Passes both tests.
2957 ac_preproc_ok=:
2958 break
2959 fi
2960 rm -f conftest.err conftest.$ac_ext
2961
2962 done
2963 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964 rm -f conftest.err conftest.$ac_ext
2965 if $ac_preproc_ok; then
2966   :
2967 else
2968   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2969 See \`config.log' for more details." >&5
2970 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2971 See \`config.log' for more details." >&2;}
2972    { (exit 1); exit 1; }; }
2973 fi
2974
2975 ac_ext=c
2976 ac_cpp='$CPP $CPPFLAGS'
2977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980
2981
2982 echo "$as_me:$LINENO: checking for egrep" >&5
2983 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2984 if test "${ac_cv_prog_egrep+set}" = set; then
2985   echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2988     then ac_cv_prog_egrep='grep -E'
2989     else ac_cv_prog_egrep='egrep'
2990     fi
2991 fi
2992 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2993 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2994  EGREP=$ac_cv_prog_egrep
2995
2996
2997 if test $ac_cv_c_compiler_gnu = yes; then
2998     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2999 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3000 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3001   echo $ECHO_N "(cached) $ECHO_C" >&6
3002 else
3003     ac_pattern="Autoconf.*'x'"
3004   cat >conftest.$ac_ext <<_ACEOF
3005 #line $LINENO "configure"
3006 /* confdefs.h.  */
3007 _ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h.  */
3011 #include <sgtty.h>
3012 Autoconf TIOCGETP
3013 _ACEOF
3014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3015   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3016   ac_cv_prog_gcc_traditional=yes
3017 else
3018   ac_cv_prog_gcc_traditional=no
3019 fi
3020 rm -f conftest*
3021
3022
3023   if test $ac_cv_prog_gcc_traditional = no; then
3024     cat >conftest.$ac_ext <<_ACEOF
3025 #line $LINENO "configure"
3026 /* confdefs.h.  */
3027 _ACEOF
3028 cat confdefs.h >>conftest.$ac_ext
3029 cat >>conftest.$ac_ext <<_ACEOF
3030 /* end confdefs.h.  */
3031 #include <termio.h>
3032 Autoconf TCGETA
3033 _ACEOF
3034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3035   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3036   ac_cv_prog_gcc_traditional=yes
3037 fi
3038 rm -f conftest*
3039
3040   fi
3041 fi
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3043 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3044   if test $ac_cv_prog_gcc_traditional = yes; then
3045     CC="$CC -traditional"
3046   fi
3047 fi
3048
3049 if test x$CC = xgcc
3050 then
3051    cat >>confdefs.h <<\_ACEOF
3052 #define HAVE_GCC 1
3053 _ACEOF
3054
3055 fi
3056
3057 # Find a good install program.  We prefer a C program (faster),
3058 # so one script is as good as another.  But avoid the broken or
3059 # incompatible versions:
3060 # SysV /etc/install, /usr/sbin/install
3061 # SunOS /usr/etc/install
3062 # IRIX /sbin/install
3063 # AIX /bin/install
3064 # AmigaOS /C/install, which installs bootblocks on floppy discs
3065 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3066 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3067 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3068 # ./install, which can be erroneously created by make from ./install.sh.
3069 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3071 if test -z "$INSTALL"; then
3072 if test "${ac_cv_path_install+set}" = set; then
3073   echo $ECHO_N "(cached) $ECHO_C" >&6
3074 else
3075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080   # Account for people who put trailing slashes in PATH elements.
3081 case $as_dir/ in
3082   ./ | .// | /cC/* | \
3083   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3084   /usr/ucb/* ) ;;
3085   *)
3086     # OSF1 and SCO ODT 3.0 have their own names for install.
3087     # Don't use installbsd from OSF since it installs stuff as root
3088     # by default.
3089     for ac_prog in ginstall scoinst install; do
3090       for ac_exec_ext in '' $ac_executable_extensions; do
3091         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3092           if test $ac_prog = install &&
3093             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3094             # AIX install.  It has an incompatible calling convention.
3095             :
3096           elif test $ac_prog = install &&
3097             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098             # program-specific install script used by HP pwplus--don't use.
3099             :
3100           else
3101             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3102             break 3
3103           fi
3104         fi
3105       done
3106     done
3107     ;;
3108 esac
3109 done
3110
3111
3112 fi
3113   if test "${ac_cv_path_install+set}" = set; then
3114     INSTALL=$ac_cv_path_install
3115   else
3116     # As a last resort, use the slow shell script.  We don't cache a
3117     # path for INSTALL within a source directory, because that will
3118     # break other packages using the cache if that directory is
3119     # removed, or if the path is relative.
3120     INSTALL=$ac_install_sh
3121   fi
3122 fi
3123 echo "$as_me:$LINENO: result: $INSTALL" >&5
3124 echo "${ECHO_T}$INSTALL" >&6
3125
3126 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3127 # It thinks the first close brace ends the variable substitution.
3128 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3129
3130 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3131
3132 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3133
3134 if test -n "$ac_tool_prefix"; then
3135   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3137 echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3139 if test "${ac_cv_prog_RANLIB+set}" = set; then
3140   echo $ECHO_N "(cached) $ECHO_C" >&6
3141 else
3142   if test -n "$RANLIB"; then
3143   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148   IFS=$as_save_IFS
3149   test -z "$as_dir" && as_dir=.
3150   for ac_exec_ext in '' $ac_executable_extensions; do
3151   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3154     break 2
3155   fi
3156 done
3157 done
3158
3159 fi
3160 fi
3161 RANLIB=$ac_cv_prog_RANLIB
3162 if test -n "$RANLIB"; then
3163   echo "$as_me:$LINENO: result: $RANLIB" >&5
3164 echo "${ECHO_T}$RANLIB" >&6
3165 else
3166   echo "$as_me:$LINENO: result: no" >&5
3167 echo "${ECHO_T}no" >&6
3168 fi
3169
3170 fi
3171 if test -z "$ac_cv_prog_RANLIB"; then
3172   ac_ct_RANLIB=$RANLIB
3173   # Extract the first word of "ranlib", so it can be a program name with args.
3174 set dummy ranlib; ac_word=$2
3175 echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3178   echo $ECHO_N "(cached) $ECHO_C" >&6
3179 else
3180   if test -n "$ac_ct_RANLIB"; then
3181   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186   IFS=$as_save_IFS
3187   test -z "$as_dir" && as_dir=.
3188   for ac_exec_ext in '' $ac_executable_extensions; do
3189   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190     ac_cv_prog_ac_ct_RANLIB="ranlib"
3191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3192     break 2
3193   fi
3194 done
3195 done
3196
3197   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3198 fi
3199 fi
3200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3201 if test -n "$ac_ct_RANLIB"; then
3202   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3203 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3204 else
3205   echo "$as_me:$LINENO: result: no" >&5
3206 echo "${ECHO_T}no" >&6
3207 fi
3208
3209   RANLIB=$ac_ct_RANLIB
3210 else
3211   RANLIB="$ac_cv_prog_RANLIB"
3212 fi
3213
3214 # Extract the first word of "mv", so it can be a program name with args.
3215 set dummy mv; ac_word=$2
3216 echo "$as_me:$LINENO: checking for $ac_word" >&5
3217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3218 if test "${ac_cv_path_MV+set}" = set; then
3219   echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221   case $MV in
3222   [\\/]* | ?:[\\/]*)
3223   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3224   ;;
3225   *)
3226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229   IFS=$as_save_IFS
3230   test -z "$as_dir" && as_dir=.
3231   for ac_exec_ext in '' $ac_executable_extensions; do
3232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235     break 2
3236   fi
3237 done
3238 done
3239
3240   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3241   ;;
3242 esac
3243 fi
3244 MV=$ac_cv_path_MV
3245
3246 if test -n "$MV"; then
3247   echo "$as_me:$LINENO: result: $MV" >&5
3248 echo "${ECHO_T}$MV" >&6
3249 else
3250   echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6
3252 fi
3253
3254 # Extract the first word of "rm", so it can be a program name with args.
3255 set dummy rm; ac_word=$2
3256 echo "$as_me:$LINENO: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_path_RM+set}" = set; then
3259   echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261   case $RM in
3262   [\\/]* | ?:[\\/]*)
3263   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3264   ;;
3265   *)
3266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271   for ac_exec_ext in '' $ac_executable_extensions; do
3272   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278 done
3279
3280   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3281   ;;
3282 esac
3283 fi
3284 RM=$ac_cv_path_RM
3285
3286 if test -n "$RM"; then
3287   echo "$as_me:$LINENO: result: $RM" >&5
3288 echo "${ECHO_T}$RM" >&6
3289 else
3290   echo "$as_me:$LINENO: result: no" >&5
3291 echo "${ECHO_T}no" >&6
3292 fi
3293
3294 # Extract the first word of "cp", so it can be a program name with args.
3295 set dummy cp; ac_word=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_path_CP+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   case $CP in
3302   [\\/]* | ?:[\\/]*)
3303   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3304   ;;
3305   *)
3306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311   for ac_exec_ext in '' $ac_executable_extensions; do
3312   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318 done
3319
3320   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3321   ;;
3322 esac
3323 fi
3324 CP=$ac_cv_path_CP
3325
3326 if test -n "$CP"; then
3327   echo "$as_me:$LINENO: result: $CP" >&5
3328 echo "${ECHO_T}$CP" >&6
3329 else
3330   echo "$as_me:$LINENO: result: no" >&5
3331 echo "${ECHO_T}no" >&6
3332 fi
3333
3334 # Extract the first word of "sed", so it can be a program name with args.
3335 set dummy sed; ac_word=$2
3336 echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3338 if test "${ac_cv_path_SED+set}" = set; then
3339   echo $ECHO_N "(cached) $ECHO_C" >&6
3340 else
3341   case $SED in
3342   [\\/]* | ?:[\\/]*)
3343   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3344   ;;
3345   *)
3346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351   for ac_exec_ext in '' $ac_executable_extensions; do
3352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358 done
3359
3360   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3361   ;;
3362 esac
3363 fi
3364 SED=$ac_cv_path_SED
3365
3366 if test -n "$SED"; then
3367   echo "$as_me:$LINENO: result: $SED" >&5
3368 echo "${ECHO_T}$SED" >&6
3369 else
3370   echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3372 fi
3373
3374 # Extract the first word of "awk", so it can be a program name with args.
3375 set dummy awk; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_path_AWK+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   case $AWK in
3382   [\\/]* | ?:[\\/]*)
3383   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3384   ;;
3385   *)
3386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399
3400   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3401   ;;
3402 esac
3403 fi
3404 AWK=$ac_cv_path_AWK
3405
3406 if test -n "$AWK"; then
3407   echo "$as_me:$LINENO: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414 # Extract the first word of "echo", so it can be a program name with args.
3415 set dummy echo; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_path_ECHO+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   case $ECHO in
3422   [\\/]* | ?:[\\/]*)
3423   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3424   ;;
3425   *)
3426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for ac_exec_ext in '' $ac_executable_extensions; do
3432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435     break 2
3436   fi
3437 done
3438 done
3439
3440   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3441   ;;
3442 esac
3443 fi
3444 ECHO=$ac_cv_path_ECHO
3445
3446 if test -n "$ECHO"; then
3447   echo "$as_me:$LINENO: result: $ECHO" >&5
3448 echo "${ECHO_T}$ECHO" >&6
3449 else
3450   echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3452 fi
3453
3454 # Extract the first word of "cmp", so it can be a program name with args.
3455 set dummy cmp; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_path_CMP+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   case $CMP in
3462   [\\/]* | ?:[\\/]*)
3463   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3464   ;;
3465   *)
3466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471   for ac_exec_ext in '' $ac_executable_extensions; do
3472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478 done
3479
3480   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3481   ;;
3482 esac
3483 fi
3484 CMP=$ac_cv_path_CMP
3485
3486 if test -n "$CMP"; then
3487   echo "$as_me:$LINENO: result: $CMP" >&5
3488 echo "${ECHO_T}$CMP" >&6
3489 else
3490   echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3492 fi
3493
3494 # Extract the first word of "tbl", so it can be a program name with args.
3495 set dummy tbl; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_TBL+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   case $TBL in
3502   [\\/]* | ?:[\\/]*)
3503   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3504   ;;
3505   *)
3506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511   for ac_exec_ext in '' $ac_executable_extensions; do
3512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518 done
3519
3520   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3521   ;;
3522 esac
3523 fi
3524 TBL=$ac_cv_path_TBL
3525
3526 if test -n "$TBL"; then
3527   echo "$as_me:$LINENO: result: $TBL" >&5
3528 echo "${ECHO_T}$TBL" >&6
3529 else
3530   echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3532 fi
3533
3534 # Extract the first word of "ar", so it can be a program name with args.
3535 set dummy ar; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_path_AR+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   case $AR in
3542   [\\/]* | ?:[\\/]*)
3543   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3544   ;;
3545   *)
3546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551   for ac_exec_ext in '' $ac_executable_extensions; do
3552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558 done
3559
3560   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3561   ;;
3562 esac
3563 fi
3564 AR=$ac_cv_path_AR
3565
3566 if test -n "$AR"; then
3567   echo "$as_me:$LINENO: result: $AR" >&5
3568 echo "${ECHO_T}$AR" >&6
3569 else
3570   echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3572 fi
3573
3574 # Extract the first word of "openssl", so it can be a program name with args.
3575 set dummy openssl; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_path_OPENSSL+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   case $OPENSSL in
3582   [\\/]* | ?:[\\/]*)
3583   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3584   ;;
3585   *)
3586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599
3600   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3601   ;;
3602 esac
3603 fi
3604 OPENSSL=$ac_cv_path_OPENSSL
3605
3606 if test -n "$OPENSSL"; then
3607   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3608 echo "${ECHO_T}$OPENSSL" >&6
3609 else
3610   echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3612 fi
3613
3614 # Extract the first word of "mtx", so it can be a program name with args.
3615 set dummy mtx; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_path_MTX+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   case $MTX in
3622   [\\/]* | ?:[\\/]*)
3623   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3624   ;;
3625   *)
3626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629   IFS=$as_save_IFS
3630   test -z "$as_dir" && as_dir=.
3631   for ac_exec_ext in '' $ac_executable_extensions; do
3632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635     break 2
3636   fi
3637 done
3638 done
3639
3640   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3641   ;;
3642 esac
3643 fi
3644 MTX=$ac_cv_path_MTX
3645
3646 if test -n "$MTX"; then
3647   echo "$as_me:$LINENO: result: $MTX" >&5
3648 echo "${ECHO_T}$MTX" >&6
3649 else
3650   echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 fi
3653
3654 # Extract the first word of "pkg-config", so it can be a program name with args.
3655 set dummy pkg-config; ac_word=$2
3656 echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   case $PKGCONFIG in
3662   [\\/]* | ?:[\\/]*)
3663   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3664   ;;
3665   *)
3666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671   for ac_exec_ext in '' $ac_executable_extensions; do
3672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675     break 2
3676   fi
3677 done
3678 done
3679
3680   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3681   ;;
3682 esac
3683 fi
3684 PKGCONFIG=$ac_cv_path_PKGCONFIG
3685
3686 if test -n "$PKGCONFIG"; then
3687   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3688 echo "${ECHO_T}$PKGCONFIG" >&6
3689 else
3690   echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3692 fi
3693
3694 # Extract the first word of "wx-config", so it can be a program name with args.
3695 set dummy wx-config; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   case $WXCONFIG in
3702   [\\/]* | ?:[\\/]*)
3703   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3704   ;;
3705   *)
3706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709   IFS=$as_save_IFS
3710   test -z "$as_dir" && as_dir=.
3711   for ac_exec_ext in '' $ac_executable_extensions; do
3712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715     break 2
3716   fi
3717 done
3718 done
3719
3720   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3721   ;;
3722 esac
3723 fi
3724 WXCONFIG=$ac_cv_path_WXCONFIG
3725
3726 if test -n "$WXCONFIG"; then
3727   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3728 echo "${ECHO_T}$WXCONFIG" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3732 fi
3733
3734
3735 test -n "$ARFLAG" || ARFLAGS="cr"
3736
3737
3738 MAKE_SHELL=/bin/sh
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748 # Make sure we can run config.sub.
3749 $ac_config_sub sun4 >/dev/null 2>&1 ||
3750   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3751 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3752    { (exit 1); exit 1; }; }
3753
3754 echo "$as_me:$LINENO: checking build system type" >&5
3755 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3756 if test "${ac_cv_build+set}" = set; then
3757   echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759   ac_cv_build_alias=$build_alias
3760 test -z "$ac_cv_build_alias" &&
3761   ac_cv_build_alias=`$ac_config_guess`
3762 test -z "$ac_cv_build_alias" &&
3763   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3764 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3765    { (exit 1); exit 1; }; }
3766 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3767   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3768 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3769    { (exit 1); exit 1; }; }
3770
3771 fi
3772 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3773 echo "${ECHO_T}$ac_cv_build" >&6
3774 build=$ac_cv_build
3775 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3776 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3777 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3778
3779
3780
3781 echo "$as_me:$LINENO: checking host system type" >&5
3782 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3783 if test "${ac_cv_host+set}" = set; then
3784   echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786   ac_cv_host_alias=$host_alias
3787 test -z "$ac_cv_host_alias" &&
3788   ac_cv_host_alias=$ac_cv_build_alias
3789 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3790   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3791 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3792    { (exit 1); exit 1; }; }
3793
3794 fi
3795 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3796 echo "${ECHO_T}$ac_cv_host" >&6
3797 host=$ac_cv_host
3798 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3799 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3800 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3801
3802
3803 case $host_os in
3804   *cygwin* ) CYGWIN=yes;;
3805          * ) CYGWIN=no;;
3806 esac
3807
3808 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3809 then
3810
3811
3812 if $TRUEPRG; then
3813   HAVE_SUN_OS_TRUE=
3814   HAVE_SUN_OS_FALSE='#'
3815 else
3816   HAVE_SUN_OS_TRUE='#'
3817   HAVE_SUN_OS_FALSE=
3818 fi
3819         cat >>confdefs.h <<\_ACEOF
3820 #define HAVE_SUN_OS 1
3821 _ACEOF
3822
3823 else
3824
3825
3826 if $FALSEPRG; then
3827   HAVE_SUN_OS_TRUE=
3828   HAVE_SUN_OS_FALSE='#'
3829 else
3830   HAVE_SUN_OS_TRUE='#'
3831   HAVE_SUN_OS_FALSE=
3832 fi
3833 fi
3834
3835 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3836 then
3837
3838
3839 if $TRUEPRG; then
3840   HAVE_OSF1_OS_TRUE=
3841   HAVE_OSF1_OS_FALSE='#'
3842 else
3843   HAVE_OSF1_OS_TRUE='#'
3844   HAVE_OSF1_OS_FALSE=
3845 fi
3846         cat >>confdefs.h <<\_ACEOF
3847 #define HAVE_OSF1_OS 1
3848 _ACEOF
3849
3850 else
3851
3852
3853 if $FALSEPRG; then
3854   HAVE_OSF1_OS_TRUE=
3855   HAVE_OSF1_OS_FALSE='#'
3856 else
3857   HAVE_OSF1_OS_TRUE='#'
3858   HAVE_OSF1_OS_FALSE=
3859 fi
3860 fi
3861
3862 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3863 then
3864
3865
3866 if $TRUEPRG; then
3867   HAVE_AIX_OS_TRUE=
3868   HAVE_AIX_OS_FALSE='#'
3869 else
3870   HAVE_AIX_OS_TRUE='#'
3871   HAVE_AIX_OS_FALSE=
3872 fi
3873         cat >>confdefs.h <<\_ACEOF
3874 #define HAVE_AIX_OS 1
3875 _ACEOF
3876
3877 else
3878
3879
3880 if $FALSEPRG; then
3881   HAVE_AIX_OS_TRUE=
3882   HAVE_AIX_OS_FALSE='#'
3883 else
3884   HAVE_AIX_OS_TRUE='#'
3885   HAVE_AIX_OS_FALSE=
3886 fi
3887 fi
3888
3889 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3890 then
3891
3892
3893 if $TRUEPRG; then
3894   HAVE_HPUX_OS_TRUE=
3895   HAVE_HPUX_OS_FALSE='#'
3896 else
3897   HAVE_HPUX_OS_TRUE='#'
3898   HAVE_HPUX_OS_FALSE=
3899 fi
3900         cat >>confdefs.h <<\_ACEOF
3901 #define HAVE_HPUX_OS 1
3902 _ACEOF
3903
3904 else
3905
3906
3907 if $FALSEPRG; then
3908   HAVE_HPUX_OS_TRUE=
3909   HAVE_HPUX_OS_FALSE='#'
3910 else
3911   HAVE_HPUX_OS_TRUE='#'
3912   HAVE_HPUX_OS_FALSE=
3913 fi
3914 fi
3915
3916 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3917 then
3918
3919
3920 if $TRUEPRG; then
3921   HAVE_LINUX_OS_TRUE=
3922   HAVE_LINUX_OS_FALSE='#'
3923 else
3924   HAVE_LINUX_OS_TRUE='#'
3925   HAVE_LINUX_OS_FALSE=
3926 fi
3927         cat >>confdefs.h <<\_ACEOF
3928 #define HAVE_LINUX_OS 1
3929 _ACEOF
3930
3931 else
3932
3933
3934 if $FALSEPRG; then
3935   HAVE_LINUX_OS_TRUE=
3936   HAVE_LINUX_OS_FALSE='#'
3937 else
3938   HAVE_LINUX_OS_TRUE='#'
3939   HAVE_LINUX_OS_FALSE=
3940 fi
3941 fi
3942
3943 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3944 then
3945
3946
3947 if $TRUEPRG; then
3948   HAVE_FREEBSD_OS_TRUE=
3949   HAVE_FREEBSD_OS_FALSE='#'
3950 else
3951   HAVE_FREEBSD_OS_TRUE='#'
3952   HAVE_FREEBSD_OS_FALSE=
3953 fi
3954         cat >>confdefs.h <<\_ACEOF
3955 #define HAVE_FREEBSD_OS 1
3956 _ACEOF
3957
3958 else
3959
3960
3961 if $FALSEPRG; then
3962   HAVE_FREEBSD_OS_TRUE=
3963   HAVE_FREEBSD_OS_FALSE='#'
3964 else
3965   HAVE_FREEBSD_OS_TRUE='#'
3966   HAVE_FREEBSD_OS_FALSE=
3967 fi
3968 fi
3969
3970 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3971 then
3972
3973
3974 if $TRUEPRG; then
3975   HAVE_NETBSD_OS_TRUE=
3976   HAVE_NETBSD_OS_FALSE='#'
3977 else
3978   HAVE_NETBSD_OS_TRUE='#'
3979   HAVE_NETBSD_OS_FALSE=
3980 fi
3981         cat >>confdefs.h <<\_ACEOF
3982 #define HAVE_NETBSD_OS 1
3983 _ACEOF
3984
3985 else
3986
3987
3988 if $FALSEPRG; then
3989   HAVE_NETBSD_OS_TRUE=
3990   HAVE_NETBSD_OS_FALSE='#'
3991 else
3992   HAVE_NETBSD_OS_TRUE='#'
3993   HAVE_NETBSD_OS_FALSE=
3994 fi
3995 fi
3996
3997 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3998 then
3999
4000
4001 if $TRUEPRG; then
4002   HAVE_OPENBSD_OS_TRUE=
4003   HAVE_OPENBSD_OS_FALSE='#'
4004 else
4005   HAVE_OPENBSD_OS_TRUE='#'
4006   HAVE_OPENBSD_OS_FALSE=
4007 fi
4008         cat >>confdefs.h <<\_ACEOF
4009 #define HAVE_OPENBSD_OS 1
4010 _ACEOF
4011
4012 else
4013
4014
4015 if $FALSEPRG; then
4016   HAVE_OPENBSD_OS_TRUE=
4017   HAVE_OPENBSD_OS_FALSE='#'
4018 else
4019   HAVE_OPENBSD_OS_TRUE='#'
4020   HAVE_OPENBSD_OS_FALSE=
4021 fi
4022 fi
4023
4024 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4025 then
4026
4027
4028 if $TRUEPRG; then
4029   HAVE_BSDI_OS_TRUE=
4030   HAVE_BSDI_OS_FALSE='#'
4031 else
4032   HAVE_BSDI_OS_TRUE='#'
4033   HAVE_BSDI_OS_FALSE=
4034 fi
4035         cat >>confdefs.h <<\_ACEOF
4036 #define HAVE_BSDI_OS 1
4037 _ACEOF
4038
4039 else
4040
4041
4042 if $FALSEPRG; then
4043   HAVE_BSDI_OS_TRUE=
4044   HAVE_BSDI_OS_FALSE='#'
4045 else
4046   HAVE_BSDI_OS_TRUE='#'
4047   HAVE_BSDI_OS_FALSE=
4048 fi
4049 fi
4050
4051 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4052 then
4053
4054
4055 if $TRUEPRG; then
4056   HAVE_SGI_OS_TRUE=
4057   HAVE_SGI_OS_FALSE='#'
4058 else
4059   HAVE_SGI_OS_TRUE='#'
4060   HAVE_SGI_OS_FALSE=
4061 fi
4062         cat >>confdefs.h <<\_ACEOF
4063 #define HAVE_SGI_OS 1
4064 _ACEOF
4065
4066 else
4067
4068
4069 if $FALSEPRG; then
4070   HAVE_SGI_OS_TRUE=
4071   HAVE_SGI_OS_FALSE='#'
4072 else
4073   HAVE_SGI_OS_TRUE='#'
4074   HAVE_SGI_OS_FALSE=
4075 fi
4076 fi
4077
4078 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4079 then
4080
4081
4082 if $TRUEPRG; then
4083   HAVE_IRIX_OS_TRUE=
4084   HAVE_IRIX_OS_FALSE='#'
4085 else
4086   HAVE_IRIX_OS_TRUE='#'
4087   HAVE_IRIX_OS_FALSE=
4088 fi
4089         cat >>confdefs.h <<\_ACEOF
4090 #define HAVE_IRIX_OS 1
4091 _ACEOF
4092
4093 else
4094
4095
4096 if $FALSEPRG; then
4097   HAVE_IRIX_OS_TRUE=
4098   HAVE_IRIX_OS_FALSE='#'
4099 else
4100   HAVE_IRIX_OS_TRUE='#'
4101   HAVE_IRIX_OS_FALSE=
4102 fi
4103 fi
4104
4105 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4106 then
4107
4108
4109 if $TRUEPRG; then
4110   HAVE_DARWIN_OS_TRUE=
4111   HAVE_DARWIN_OS_FALSE='#'
4112 else
4113   HAVE_DARWIN_OS_TRUE='#'
4114   HAVE_DARWIN_OS_FALSE=
4115 fi
4116     cat >>confdefs.h <<\_ACEOF
4117 #define HAVE_DARWIN_OS 1
4118 _ACEOF
4119
4120 else
4121
4122
4123 if $FALSEPRG; then
4124   HAVE_DARWIN_OS_TRUE=
4125   HAVE_DARWIN_OS_FALSE='#'
4126 else
4127   HAVE_DARWIN_OS_TRUE='#'
4128   HAVE_DARWIN_OS_FALSE=
4129 fi
4130 fi
4131
4132
4133 # -----------------------------------------------------------
4134 # ----------------------------------------------------------
4135 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4136 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4137 if test "x$DISTNAME" != "x"
4138 then
4139         echo "distname set to $DISTNAME"
4140 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4141 then
4142         DISTNAME=alpha
4143 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4144 then
4145         DISTNAME=aix
4146 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4147 then
4148         DISTNAME=hpux
4149 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4150 then
4151         DISTNAME=solaris
4152 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4153 then
4154         DISTNAME=freebsd
4155 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4156 then
4157         DISTNAME=netbsd
4158 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4159 then
4160         DISTNAME=openbsd
4161 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4162 then
4163         DISTNAME=irix
4164 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4165 then
4166         DISTNAME=bsdi
4167 elif test -f /etc/SuSE-release
4168 then
4169         DISTNAME=suse
4170 elif test -d /etc/SuSEconfig
4171 then
4172         DISTNAME=suse5
4173 elif test -f /etc/mandrake-release
4174 then
4175         DISTNAME=mandrake
4176 elif test -f /etc/whitebox-release
4177 then
4178        DISTNAME=redhat
4179 elif test -f /etc/redhat-release
4180 then
4181         DISTNAME=redhat
4182 elif test -f /etc/gentoo-release
4183 then
4184         DISTNAME=gentoo
4185 elif test -f /etc/debian_version
4186 then
4187         DISTNAME=debian
4188 elif test -f /etc/slackware-version
4189 then
4190         DISTNAME=slackware
4191 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4192 then
4193     DISTNAME=darwin
4194 elif test -f /etc/engarde-version
4195 then
4196         DISTNAME=engarde
4197 elif test "$CYGWIN" = yes
4198 then
4199         DISTNAME=cygwin
4200         cat >>confdefs.h <<\_ACEOF
4201 #define HAVE_CYGWIN 1
4202 _ACEOF
4203
4204 else
4205         DISTNAME=unknown
4206 fi
4207 echo "$as_me:$LINENO: result: done" >&5
4208 echo "${ECHO_T}done" >&6
4209
4210
4211 # -----------------------------------------------------------
4212 # ----------------------------------------------------------
4213
4214
4215
4216 if false; then
4217   INSIDE_GNOME_COMMON_TRUE=
4218   INSIDE_GNOME_COMMON_FALSE='#'
4219 else
4220   INSIDE_GNOME_COMMON_TRUE='#'
4221   INSIDE_GNOME_COMMON_FALSE=
4222 fi
4223
4224         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4225
4226         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4227
4228
4229 # ------------------------------------------------------------------
4230 #  If the user has not set --prefix, we set our default to nothing.
4231 #  In this case, if the user has not set --sysconfdir, we set it
4232 #  to the package default of /etc/bacula.  If either --prefix or
4233 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4234 # ------------------------------------------------------------------
4235 if test x${prefix} = xNONE ; then
4236     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4237         sysconfdir=/etc/bacula
4238     fi
4239     prefix=
4240 fi
4241 sysconfdir=`eval echo ${sysconfdir}`
4242
4243 # -------------------------------------------------------------------------
4244 #  If the user has not set --exec-prefix, we default to ${prefix}
4245 # -------------------------------------------------------------------------
4246 if test x${exec_prefix} = xNONE ; then
4247     exec_prefix=${prefix}
4248 fi
4249
4250 # ------------------------------------------------------------------
4251 # If the user has not set --sbindir, we set our default as /sbin
4252 # ------------------------------------------------------------------
4253 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4254     sbindir=${exec_prefix}/sbin
4255 fi
4256 sbindir=`eval echo ${sbindir}`
4257
4258 # ------------------------------------------------------------------
4259 # All list of languages for which a translation exist. Each
4260 #  language is separated by a space.
4261 # ------------------------------------------------------------------
4262 ALL_LINGUAS=""
4263
4264 for ac_prog in msgfmt
4265 do
4266   # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_path_MSGFMT+set}" = set; then
4271   echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273   case $MSGFMT in
4274   [\\/]* | ?:[\\/]*)
4275   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4276   ;;
4277   *)
4278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281   IFS=$as_save_IFS
4282   test -z "$as_dir" && as_dir=.
4283   for ac_exec_ext in '' $ac_executable_extensions; do
4284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287     break 2
4288   fi
4289 done
4290 done
4291
4292   ;;
4293 esac
4294 fi
4295 MSGFMT=$ac_cv_path_MSGFMT
4296
4297 if test -n "$MSGFMT"; then
4298   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4299 echo "${ECHO_T}$MSGFMT" >&6
4300 else
4301   echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4303 fi
4304
4305   test -n "$MSGFMT" && break
4306 done
4307 test -n "$MSGFMT" || MSGFMT="no"
4308
4309 if test "$MSGFMT" = "no"
4310 then
4311    echo 'msgfmt program not found, disabling NLS !'
4312    USE_NLS=no
4313    USE_INCLUDED_LIBINTL=no
4314 #else
4315 #   AM_GNU_GETTEXT
4316 fi
4317
4318
4319 support_mysql=no
4320 support_sqlite=no
4321 support_postgresql=no
4322 support_smartalloc=yes
4323 support_readline=yes
4324 support_conio=yes
4325 support_gnome=no
4326 support_wx_console=no
4327 gnome_version=
4328 support_static_tools=no
4329 support_static_fd=no
4330 support_static_sd=no
4331 support_static_dir=no
4332 support_static_cons=no
4333 build_client_only=no
4334 cats=
4335 db_name=Internal
4336 DB_NAME=bdb
4337
4338
4339 # -------------------------------------------
4340 # gnome (default off)
4341 # -------------------------------------------
4342 # Check whether --enable-gnome or --disable-gnome was given.
4343 if test "${enable_gnome+set}" = set; then
4344   enableval="$enable_gnome"
4345   if test x$enableval = xyes; then
4346     support_gnome=yes
4347   fi
4348 fi;
4349
4350 GNOME_DIR=
4351 if test x$support_gnome = xyes; then
4352   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4353   pkg=$?
4354   if test $pkg = 0; then
4355      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4356      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4357      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4358      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4359
4360
4361
4362
4363      GNOME_DIR=src/gnome2-console
4364      gnome_version="Version 2.x"
4365   else
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4378 if test "${with_gnome_includes+set}" = set; then
4379   withval="$with_gnome_includes"
4380
4381         CFLAGS="$CFLAGS -I$withval"
4382
4383 fi;
4384
4385
4386 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4387 if test "${with_gnome_libs+set}" = set; then
4388   withval="$with_gnome_libs"
4389
4390         LDFLAGS="$LDFLAGS -L$withval"
4391         gnome_prefix=$withval
4392
4393 fi;
4394
4395
4396 # Check whether --with-gnome or --without-gnome was given.
4397 if test "${with_gnome+set}" = set; then
4398   withval="$with_gnome"
4399   if test x$withval = xyes; then
4400                         want_gnome=yes
4401                                                                         :
4402                 else
4403                         if test "x$withval" = xno; then
4404                                 want_gnome=no
4405                         else
4406                                 want_gnome=yes
4407                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4408                                 CFLAGS="$CFLAGS -I$withval/include"
4409                                 gnome_prefix=$withval/lib
4410                         fi
4411                 fi
4412 else
4413   want_gnome=yes
4414 fi;
4415
4416         if test "x$want_gnome" = xyes; then
4417
4418             # Extract the first word of "gnome-config", so it can be a program name with args.
4419 set dummy gnome-config; ac_word=$2
4420 echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4422 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   case $GNOME_CONFIG in
4426   [\\/]* | ?:[\\/]*)
4427   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4428   ;;
4429   *)
4430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433   IFS=$as_save_IFS
4434   test -z "$as_dir" && as_dir=.
4435   for ac_exec_ext in '' $ac_executable_extensions; do
4436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439     break 2
4440   fi
4441 done
4442 done
4443
4444   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4445   ;;
4446 esac
4447 fi
4448 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4449
4450 if test -n "$GNOME_CONFIG"; then
4451   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4452 echo "${ECHO_T}$GNOME_CONFIG" >&6
4453 else
4454   echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4456 fi
4457
4458             if test "$GNOME_CONFIG" = "no"; then
4459               no_gnome_config="yes"
4460             else
4461               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4462 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4463               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4464                 echo "$as_me:$LINENO: result: yes" >&5
4465 echo "${ECHO_T}yes" >&6
4466
4467
4468         # Extract the first word of "orbit-config", so it can be a program name with args.
4469 set dummy orbit-config; ac_word=$2
4470 echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   case $ORBIT_CONFIG in
4476   [\\/]* | ?:[\\/]*)
4477   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4478   ;;
4479   *)
4480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483   IFS=$as_save_IFS
4484   test -z "$as_dir" && as_dir=.
4485   for ac_exec_ext in '' $ac_executable_extensions; do
4486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4487     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489     break 2
4490   fi
4491 done
4492 done
4493
4494   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4495   ;;
4496 esac
4497 fi
4498 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4499
4500 if test -n "$ORBIT_CONFIG"; then
4501   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4502 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4503 else
4504   echo "$as_me:$LINENO: result: no" >&5
4505 echo "${ECHO_T}no" >&6
4506 fi
4507
4508         # Extract the first word of "orbit-idl", so it can be a program name with args.
4509 set dummy orbit-idl; ac_word=$2
4510 echo "$as_me:$LINENO: checking for $ac_word" >&5
4511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4512 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4513   echo $ECHO_N "(cached) $ECHO_C" >&6
4514 else
4515   case $ORBIT_IDL in
4516   [\\/]* | ?:[\\/]*)
4517   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4518   ;;
4519   *)
4520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4522 do
4523   IFS=$as_save_IFS
4524   test -z "$as_dir" && as_dir=.
4525   for ac_exec_ext in '' $ac_executable_extensions; do
4526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529     break 2
4530   fi
4531 done
4532 done
4533
4534   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4535   ;;
4536 esac
4537 fi
4538 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4539
4540 if test -n "$ORBIT_IDL"; then
4541   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4542 echo "${ECHO_T}$ORBIT_IDL" >&6
4543 else
4544   echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4546 fi
4547
4548         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4549 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4550 if test "${gnome_cv_orbit_found+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553
4554                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4555                         gnome_cv_orbit_found=no
4556                 else
4557                         gnome_cv_orbit_found=yes
4558                 fi
4559
4560 fi
4561 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4562 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4563
4564
4565 if test x$gnome_cv_orbit_found = xyes; then
4566   HAVE_ORBIT_TRUE=
4567   HAVE_ORBIT_FALSE='#'
4568 else
4569   HAVE_ORBIT_TRUE='#'
4570   HAVE_ORBIT_FALSE=
4571 fi
4572         if test x$gnome_cv_orbit_found = xyes; then
4573
4574                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4575                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4576
4577
4578         else
4579                 if test xfail = xfailure; then
4580                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4581 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4582    { (exit 1); exit 1; }; }
4583                 fi
4584         fi
4585
4586         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4587 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4588 if test "${gnome_cv_gnorba_found+set}" = set; then
4589   echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591
4592                 gnome_cv_gnorba_found=no
4593                 if test x$gnome_cv_orbit_found = xyes; then
4594                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4595                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4596                         if test -n "$GNORBA_LIBS"; then
4597                                 gnome_cv_gnorba_found=yes
4598                         fi
4599                 fi
4600
4601 fi
4602 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4603 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4604
4605
4606 if test x$gnome_cv_gnorba_found = xyes; then
4607   HAVE_GNORBA_TRUE=
4608   HAVE_GNORBA_FALSE='#'
4609 else
4610   HAVE_GNORBA_TRUE='#'
4611   HAVE_GNORBA_FALSE=
4612 fi
4613         if test x$gnome_cv_orbit_found = xyes; then
4614
4615                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4616                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4617
4618
4619         else
4620                 if test xfail = xfailure; then
4621                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4622 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4623    { (exit 1); exit 1; }; }
4624                 fi
4625         fi
4626
4627                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4628                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4629                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4630                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4631                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4632                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4633                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4634
4635               else
4636                 echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4638                 no_gnome_config="yes"
4639               fi
4640             fi
4641
4642             if test x$exec_prefix = xNONE; then
4643                 if test x$prefix = xNONE; then
4644                     gnome_prefix=$ac_default_prefix/lib
4645                 else
4646                     gnome_prefix=$prefix/lib
4647                 fi
4648             else
4649                 gnome_prefix=`eval echo \`echo $libdir\``
4650             fi
4651
4652             if test "$no_gnome_config" = "yes"; then
4653               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4654 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4655               if test -f $gnome_prefix/gnomeConf.sh; then
4656                 echo "$as_me:$LINENO: result: found" >&5
4657 echo "${ECHO_T}found" >&6
4658                 echo "loading gnome configuration from" \
4659                      "$gnome_prefix/gnomeConf.sh"
4660                 . $gnome_prefix/gnomeConf.sh
4661
4662               else
4663                 echo "$as_me:$LINENO: result: not found" >&5
4664 echo "${ECHO_T}not found" >&6
4665                 if test xfail = xfail; then
4666                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4667 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4668    { (exit 1); exit 1; }; }
4669                 fi
4670               fi
4671             fi
4672         fi
4673
4674         if test -n ""; then
4675           n=""
4676           for i in $n; do
4677             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4678 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4679             case $i in
4680               applets)
4681
4682                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4683                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4684 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4685               docklets)
4686
4687                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4688                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4689 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4690               capplet)
4691
4692                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4693                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4694 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4695               *)
4696                 echo "$as_me:$LINENO: result: unknown library" >&5
4697 echo "${ECHO_T}unknown library" >&6
4698             esac
4699             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4700             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4701           done
4702         fi
4703
4704
4705      GNOME_DIR=src/gnome-console
4706      gnome_version="Version 1.4"
4707   fi
4708 fi
4709
4710
4711
4712 # -------------------------------------------
4713 # wx-console (default off)
4714 # -------------------------------------------
4715 # Check whether --enable-wx-console or --disable-wx-console was given.
4716 if test "${enable_wx_console+set}" = set; then
4717   enableval="$enable_wx_console"
4718   if test x$enableval = xyes; then
4719     support_wx_console=yes
4720   fi
4721 fi;
4722
4723 WX_DIR=
4724 if test x$support_wx_console = xyes; then
4725   abc=`$WXCONFIG --cppflags`
4726   pkg=$?
4727   if test $pkg = 0; then
4728      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4729      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4730
4731
4732      WX_DIR=src/wx-console
4733   else
4734      echo " "
4735      echo "wx-config program not found. wx-console disabled."
4736      echo " "
4737      support_wx_console=no
4738   fi
4739 fi
4740
4741
4742
4743
4744 # -------------------------------------------
4745 # smartalloc (default off)
4746 # -------------------------------------------
4747 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4748 if test "${enable_smartalloc+set}" = set; then
4749   enableval="$enable_smartalloc"
4750   if test x$enableval = xno; then
4751     support_smartalloc=no
4752   fi
4753 fi;
4754
4755 if test x$support_smartalloc = xyes; then
4756    cat >>confdefs.h <<\_ACEOF
4757 #define SMARTALLOC 1
4758 _ACEOF
4759
4760 fi
4761
4762 # -------------------------------------------
4763 # static-tools (default off)
4764 # -------------------------------------------
4765 # Check whether --enable-static-tools or --disable-static-tools was given.
4766 if test "${enable_static_tools+set}" = set; then
4767   enableval="$enable_static_tools"
4768   if test x$enableval = xyes; then
4769      support_static_tools=yes
4770    fi
4771 fi;
4772
4773 TTOOL_LDFLAGS=
4774 if test x$support_static_tools = xyes; then
4775    TTOOL_LDFLAGS="-static"
4776 fi
4777
4778
4779 # -------------------------------------------
4780 # static-fd    (default off)
4781 # -------------------------------------------
4782 # Check whether --enable-static-fd or --disable-static-fd was given.
4783 if test "${enable_static_fd+set}" = set; then
4784   enableval="$enable_static_fd"
4785   if test x$enableval = xyes; then
4786      support_static_fd=yes
4787    fi
4788 fi;
4789
4790 STATIC_FD=
4791 if test x$support_static_fd = xyes; then
4792    STATIC_FD="static-bacula-fd"
4793 fi
4794
4795
4796 # -------------------------------------------
4797 # static-sd    (default off)
4798 # -------------------------------------------
4799 # Check whether --enable-static-sd or --disable-static-sd was given.
4800 if test "${enable_static_sd+set}" = set; then
4801   enableval="$enable_static_sd"
4802   if test x$enableval = xyes; then
4803      support_static_sd=yes
4804    fi
4805 fi;
4806
4807 STATIC_SD=
4808 if test x$support_static_sd = xyes; then
4809    STATIC_SD="static-bacula-sd"
4810 fi
4811
4812
4813 # -------------------------------------------
4814 # static-dir   (default off)
4815 # -------------------------------------------
4816 # Check whether --enable-static-dir or --disable-static-dir was given.
4817 if test "${enable_static_dir+set}" = set; then
4818   enableval="$enable_static_dir"
4819   if test x$enableval = xyes; then
4820      support_static_dir=yes
4821    fi
4822 fi;
4823
4824 STATIC_DIR=
4825 if test x$support_static_dir = xyes; then
4826    STATIC_DIR="static-bacula-dir"
4827 fi
4828
4829
4830 # -------------------------------------------
4831 # static-cons  (default off)
4832 # -------------------------------------------
4833 # Check whether --enable-static-cons or --disable-static-cons was given.
4834 if test "${enable_static_cons+set}" = set; then
4835   enableval="$enable_static_cons"
4836   if test x$enableval = xyes; then
4837      support_static_cons=yes
4838    fi
4839 fi;
4840
4841 STATIC_CONS=
4842 STATIC_GNOME_CONS=
4843 STATIC_WX_CONS=
4844 if test x$support_static_cons = xyes; then
4845    STATIC_CONS="static-bconsole"
4846    STATIC_GNOME_CONS="static-gnome-console"
4847    STATIC_WX_CONS="static-wx-console"
4848 fi
4849
4850
4851
4852
4853 # -------------------------------------------
4854 # client_only  (default off)
4855 # -------------------------------------------
4856 # Check whether --enable-client-only or --disable-client-only was given.
4857 if test "${enable_client_only+set}" = set; then
4858   enableval="$enable_client_only"
4859   if test x$enableval = xyes; then
4860      build_client_only=yes
4861     db_name=None
4862     DB_NAME=none
4863    fi
4864 fi;
4865 if test x$build_client_only = xno; then
4866    ALL_DIRS="subdirs"
4867 else
4868    ALL_DIRS=""
4869 fi
4870
4871
4872 # ---------------------------------------------------
4873 # Check for conio (Bacula readline substitute)(
4874 # ---------------------------------------------------
4875 # this allows you to turn it completely off
4876 # Check whether --enable-conio or --disable-conio was given.
4877 if test "${enable_conio+set}" = set; then
4878   enableval="$enable_conio"
4879   if test x$enableval = xno; then
4880     support_conio=no
4881   fi
4882 fi;
4883
4884 got_conio="no"
4885 if test x$support_conio = xyes; then
4886    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4887 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4888 if test "${ac_cv_header_stdc+set}" = set; then
4889   echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891   cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4893 /* confdefs.h.  */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h.  */
4898 #include <stdlib.h>
4899 #include <stdarg.h>
4900 #include <string.h>
4901 #include <float.h>
4902
4903 int
4904 main ()
4905 {
4906
4907   ;
4908   return 0;
4909 }
4910 _ACEOF
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913   (eval $ac_compile) 2>&5
4914   ac_status=$?
4915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916   (exit $ac_status); } &&
4917          { ac_try='test -s conftest.$ac_objext'
4918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919   (eval $ac_try) 2>&5
4920   ac_status=$?
4921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922   (exit $ac_status); }; }; then
4923   ac_cv_header_stdc=yes
4924 else
4925   echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4927
4928 ac_cv_header_stdc=no
4929 fi
4930 rm -f conftest.$ac_objext conftest.$ac_ext
4931
4932 if test $ac_cv_header_stdc = yes; then
4933   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4934   cat >conftest.$ac_ext <<_ACEOF
4935 #line $LINENO "configure"
4936 /* confdefs.h.  */
4937 _ACEOF
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h.  */
4941 #include <string.h>
4942
4943 _ACEOF
4944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4945   $EGREP "memchr" >/dev/null 2>&1; then
4946   :
4947 else
4948   ac_cv_header_stdc=no
4949 fi
4950 rm -f conftest*
4951
4952 fi
4953
4954 if test $ac_cv_header_stdc = yes; then
4955   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4956   cat >conftest.$ac_ext <<_ACEOF
4957 #line $LINENO "configure"
4958 /* confdefs.h.  */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h.  */
4963 #include <stdlib.h>
4964
4965 _ACEOF
4966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4967   $EGREP "free" >/dev/null 2>&1; then
4968   :
4969 else
4970   ac_cv_header_stdc=no
4971 fi
4972 rm -f conftest*
4973
4974 fi
4975
4976 if test $ac_cv_header_stdc = yes; then
4977   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4978   if test "$cross_compiling" = yes; then
4979   :
4980 else
4981   cat >conftest.$ac_ext <<_ACEOF
4982 #line $LINENO "configure"
4983 /* confdefs.h.  */
4984 _ACEOF
4985 cat confdefs.h >>conftest.$ac_ext
4986 cat >>conftest.$ac_ext <<_ACEOF
4987 /* end confdefs.h.  */
4988 #include <ctype.h>
4989 #if ((' ' & 0x0FF) == 0x020)
4990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4992 #else
4993 # define ISLOWER(c) \
4994                    (('a' <= (c) && (c) <= 'i') \
4995                      || ('j' <= (c) && (c) <= 'r') \
4996                      || ('s' <= (c) && (c) <= 'z'))
4997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4998 #endif
4999
5000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5001 int
5002 main ()
5003 {
5004   int i;
5005   for (i = 0; i < 256; i++)
5006     if (XOR (islower (i), ISLOWER (i))
5007         || toupper (i) != TOUPPER (i))
5008       exit(2);
5009   exit (0);
5010 }
5011 _ACEOF
5012 rm -f conftest$ac_exeext
5013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014   (eval $ac_link) 2>&5
5015   ac_status=$?
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019   (eval $ac_try) 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; }; then
5023   :
5024 else
5025   echo "$as_me: program exited with status $ac_status" >&5
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 ( exit $ac_status )
5030 ac_cv_header_stdc=no
5031 fi
5032 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5033 fi
5034 fi
5035 fi
5036 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5037 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5038 if test $ac_cv_header_stdc = yes; then
5039
5040 cat >>confdefs.h <<\_ACEOF
5041 #define STDC_HEADERS 1
5042 _ACEOF
5043
5044 fi
5045
5046 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5057                   inttypes.h stdint.h unistd.h
5058 do
5059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5060 echo "$as_me:$LINENO: checking for $ac_header" >&5
5061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5067 /* confdefs.h.  */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h.  */
5072 $ac_includes_default
5073
5074 #include <$ac_header>
5075 _ACEOF
5076 rm -f conftest.$ac_objext
5077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5078   (eval $ac_compile) 2>&5
5079   ac_status=$?
5080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081   (exit $ac_status); } &&
5082          { ac_try='test -s conftest.$ac_objext'
5083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084   (eval $ac_try) 2>&5
5085   ac_status=$?
5086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087   (exit $ac_status); }; }; then
5088   eval "$as_ac_Header=yes"
5089 else
5090   echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5092
5093 eval "$as_ac_Header=no"
5094 fi
5095 rm -f conftest.$ac_objext conftest.$ac_ext
5096 fi
5097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5100   cat >>confdefs.h <<_ACEOF
5101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5102 _ACEOF
5103
5104 fi
5105
5106 done
5107
5108
5109 if test "${ac_cv_header_termcap_h+set}" = set; then
5110   echo "$as_me:$LINENO: checking for termcap.h" >&5
5111 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5112 if test "${ac_cv_header_termcap_h+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 fi
5115 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5116 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5117 else
5118   # Is the header compilable?
5119 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5120 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5121 cat >conftest.$ac_ext <<_ACEOF
5122 #line $LINENO "configure"
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 $ac_includes_default
5129 #include <termcap.h>
5130 _ACEOF
5131 rm -f conftest.$ac_objext
5132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5133   (eval $ac_compile) 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); } &&
5137          { ac_try='test -s conftest.$ac_objext'
5138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139   (eval $ac_try) 2>&5
5140   ac_status=$?
5141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142   (exit $ac_status); }; }; then
5143   ac_header_compiler=yes
5144 else
5145   echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148 ac_header_compiler=no
5149 fi
5150 rm -f conftest.$ac_objext conftest.$ac_ext
5151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5152 echo "${ECHO_T}$ac_header_compiler" >&6
5153
5154 # Is the header present?
5155 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5156 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5157 cat >conftest.$ac_ext <<_ACEOF
5158 #line $LINENO "configure"
5159 /* confdefs.h.  */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h.  */
5164 #include <termcap.h>
5165 _ACEOF
5166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5167   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5168   ac_status=$?
5169   grep -v '^ *+' conftest.er1 >conftest.err
5170   rm -f conftest.er1
5171   cat conftest.err >&5
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); } >/dev/null; then
5174   if test -s conftest.err; then
5175     ac_cpp_err=$ac_c_preproc_warn_flag
5176   else
5177     ac_cpp_err=
5178   fi
5179 else
5180   ac_cpp_err=yes
5181 fi
5182 if test -z "$ac_cpp_err"; then
5183   ac_header_preproc=yes
5184 else
5185   echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5187
5188   ac_header_preproc=no
5189 fi
5190 rm -f conftest.err conftest.$ac_ext
5191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5192 echo "${ECHO_T}$ac_header_preproc" >&6
5193
5194 # So?  What about this header?
5195 case $ac_header_compiler:$ac_header_preproc in
5196   yes:no )
5197     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5198 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5199     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5200 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5201     (
5202       cat <<\_ASBOX
5203 ## ------------------------------------ ##
5204 ## Report this to bug-autoconf@gnu.org. ##
5205 ## ------------------------------------ ##
5206 _ASBOX
5207     ) |
5208       sed "s/^/$as_me: WARNING:     /" >&2
5209     ;;
5210   no:yes )
5211     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5212 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5213     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5214 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5215     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5216 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5217     (
5218       cat <<\_ASBOX
5219 ## ------------------------------------ ##
5220 ## Report this to bug-autoconf@gnu.org. ##
5221 ## ------------------------------------ ##
5222 _ASBOX
5223     ) |
5224       sed "s/^/$as_me: WARNING:     /" >&2
5225     ;;
5226 esac
5227 echo "$as_me:$LINENO: checking for termcap.h" >&5
5228 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5229 if test "${ac_cv_header_termcap_h+set}" = set; then
5230   echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232   ac_cv_header_termcap_h=$ac_header_preproc
5233 fi
5234 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5235 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5236
5237 fi
5238 if test $ac_cv_header_termcap_h = yes; then
5239    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5240 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5241 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5242   echo $ECHO_N "(cached) $ECHO_C" >&6
5243 else
5244   ac_check_lib_save_LIBS=$LIBS
5245 LIBS="-ltermcap  $LIBS"
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5248 /* confdefs.h.  */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h.  */
5253
5254 /* Override any gcc2 internal prototype to avoid an error.  */
5255 #ifdef __cplusplus
5256 extern "C"
5257 #endif
5258 /* We use char because int might match the return type of a gcc2
5259    builtin and then its argument prototype would still apply.  */
5260 char tgetent ();
5261 int
5262 main ()
5263 {
5264 tgetent ();
5265   ;
5266   return 0;
5267 }
5268 _ACEOF
5269 rm -f conftest.$ac_objext conftest$ac_exeext
5270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5271   (eval $ac_link) 2>&5
5272   ac_status=$?
5273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274   (exit $ac_status); } &&
5275          { ac_try='test -s conftest$ac_exeext'
5276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5277   (eval $ac_try) 2>&5
5278   ac_status=$?
5279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); }; }; then
5281   ac_cv_lib_termcap_tgetent=yes
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 ac_cv_lib_termcap_tgetent=no
5287 fi
5288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5289 LIBS=$ac_check_lib_save_LIBS
5290 fi
5291 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5292 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5293 if test $ac_cv_lib_termcap_tgetent = yes; then
5294    CONS_LIBS="-ltermcap"
5295          CONS_OBJ="conio.o"
5296          CONS_SRC="conio.c"
5297          got_conio="yes"
5298          support_readline=no
5299
5300 cat >>confdefs.h <<\_ACEOF
5301 #define HAVE_CONIO 1
5302 _ACEOF
5303
5304
5305 else
5306    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5307 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5308 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5309   echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311   ac_check_lib_save_LIBS=$LIBS
5312 LIBS="-lncurses  $LIBS"
5313 cat >conftest.$ac_ext <<_ACEOF
5314 #line $LINENO "configure"
5315 /* confdefs.h.  */
5316 _ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h.  */
5320
5321 /* Override any gcc2 internal prototype to avoid an error.  */
5322 #ifdef __cplusplus
5323 extern "C"
5324 #endif
5325 /* We use char because int might match the return type of a gcc2
5326    builtin and then its argument prototype would still apply.  */
5327 char tgetent ();
5328 int
5329 main ()
5330 {
5331 tgetent ();
5332   ;
5333   return 0;
5334 }
5335 _ACEOF
5336 rm -f conftest.$ac_objext conftest$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338   (eval $ac_link) 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); } &&
5342          { ac_try='test -s conftest$ac_exeext'
5343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344   (eval $ac_try) 2>&5
5345   ac_status=$?
5346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347   (exit $ac_status); }; }; then
5348   ac_cv_lib_ncurses_tgetent=yes
5349 else
5350   echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 ac_cv_lib_ncurses_tgetent=no
5354 fi
5355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5356 LIBS=$ac_check_lib_save_LIBS
5357 fi
5358 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5359 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5360 if test $ac_cv_lib_ncurses_tgetent = yes; then
5361    CONS_LIBS="-lncurses"
5362            CONS_OBJ="conio.o"
5363            CONS_SRC="conio.c"
5364            got_conio="yes"
5365            support_readline=no
5366
5367 cat >>confdefs.h <<\_ACEOF
5368 #define HAVE_CONIO 1
5369 _ACEOF
5370
5371
5372 else
5373    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5374 fi
5375
5376
5377 fi
5378
5379
5380 else
5381   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5382 fi
5383
5384
5385 fi
5386
5387
5388 # ---------------------------------------------------
5389 # Check for readline support/directory (default off)
5390 # ---------------------------------------------------
5391 # this allows you to turn it completely off
5392 # Check whether --enable-readline or --disable-readline was given.
5393 if test "${enable_readline+set}" = set; then
5394   enableval="$enable_readline"
5395   if test x$enableval = xno; then
5396     support_readline=no
5397   fi
5398 fi;
5399
5400 got_readline="no"
5401 READLINE_SRC=
5402 if test x$support_readline = xyes; then
5403
5404 # Check whether --with-readline or --without-readline was given.
5405 if test "${with_readline+set}" = set; then
5406   withval="$with_readline"
5407
5408         case "$with_readline" in
5409         no) : ;;
5410         yes|*)
5411           if test "$with_readline" != "yes"; then
5412             CONS_INC="-I${with_readline}"
5413             CONS_LDFLAGS="-L$with_readline"
5414           else
5415              with_readline="/usr/include/readline"
5416           fi
5417           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5419   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5420 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5422   echo $ECHO_N "(cached) $ECHO_C" >&6
5423 fi
5424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5426 else
5427   # Is the header compilable?
5428 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5429 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5430 cat >conftest.$ac_ext <<_ACEOF
5431 #line $LINENO "configure"
5432 /* confdefs.h.  */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h.  */
5437 $ac_includes_default
5438 #include <${with_readline}/readline.h>
5439 _ACEOF
5440 rm -f conftest.$ac_objext
5441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5442   (eval $ac_compile) 2>&5
5443   ac_status=$?
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); } &&
5446          { ac_try='test -s conftest.$ac_objext'
5447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448   (eval $ac_try) 2>&5
5449   ac_status=$?
5450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451   (exit $ac_status); }; }; then
5452   ac_header_compiler=yes
5453 else
5454   echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457 ac_header_compiler=no
5458 fi
5459 rm -f conftest.$ac_objext conftest.$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5461 echo "${ECHO_T}$ac_header_compiler" >&6
5462
5463 # Is the header present?
5464 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5465 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473 #include <${with_readline}/readline.h>
5474 _ACEOF
5475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5476   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5477   ac_status=$?
5478   grep -v '^ *+' conftest.er1 >conftest.err
5479   rm -f conftest.er1
5480   cat conftest.err >&5
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); } >/dev/null; then
5483   if test -s conftest.err; then
5484     ac_cpp_err=$ac_c_preproc_warn_flag
5485   else
5486     ac_cpp_err=
5487   fi
5488 else
5489   ac_cpp_err=yes
5490 fi
5491 if test -z "$ac_cpp_err"; then
5492   ac_header_preproc=yes
5493 else
5494   echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5496
5497   ac_header_preproc=no
5498 fi
5499 rm -f conftest.err conftest.$ac_ext
5500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5501 echo "${ECHO_T}$ac_header_preproc" >&6
5502
5503 # So?  What about this header?
5504 case $ac_header_compiler:$ac_header_preproc in
5505   yes:no )
5506     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5507 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5508     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5509 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5510     (
5511       cat <<\_ASBOX
5512 ## ------------------------------------ ##
5513 ## Report this to bug-autoconf@gnu.org. ##
5514 ## ------------------------------------ ##
5515 _ASBOX
5516     ) |
5517       sed "s/^/$as_me: WARNING:     /" >&2
5518     ;;
5519   no:yes )
5520     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5521 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5522     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5523 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5524     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5525 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5526     (
5527       cat <<\_ASBOX
5528 ## ------------------------------------ ##
5529 ## Report this to bug-autoconf@gnu.org. ##
5530 ## ------------------------------------ ##
5531 _ASBOX
5532     ) |
5533       sed "s/^/$as_me: WARNING:     /" >&2
5534     ;;
5535 esac
5536 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5537 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5539   echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541   eval "$as_ac_Header=$ac_header_preproc"
5542 fi
5543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5545
5546 fi
5547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5548    cat >>confdefs.h <<\_ACEOF
5549 #define HAVE_READLINE 1
5550 _ACEOF
5551
5552                CONS_LIBS="-lreadline -ltermcap"
5553                got_readline="yes"
5554
5555 else
5556    echo " "
5557                echo "readline.h not found. readline turned off ..."
5558                echo " "
5559
5560
5561 fi
5562
5563
5564           ;;
5565         esac
5566
5567 else
5568
5569        # check for standard readline library
5570        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5571   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5572 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5573 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5574   echo $ECHO_N "(cached) $ECHO_C" >&6
5575 fi
5576 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5577 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5578 else
5579   # Is the header compilable?
5580 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5581 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line $LINENO "configure"
5584 /* confdefs.h.  */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h.  */
5589 $ac_includes_default
5590 #include </usr/include/readline/readline.h>
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594   (eval $ac_compile) 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); } &&
5598          { ac_try='test -s conftest.$ac_objext'
5599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600   (eval $ac_try) 2>&5
5601   ac_status=$?
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); }; }; then
5604   ac_header_compiler=yes
5605 else
5606   echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5608
5609 ac_header_compiler=no
5610 fi
5611 rm -f conftest.$ac_objext conftest.$ac_ext
5612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5613 echo "${ECHO_T}$ac_header_compiler" >&6
5614
5615 # Is the header present?
5616 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5617 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5620 /* confdefs.h.  */
5621 _ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h.  */
5625 #include </usr/include/readline/readline.h>
5626 _ACEOF
5627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5628   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5629   ac_status=$?
5630   grep -v '^ *+' conftest.er1 >conftest.err
5631   rm -f conftest.er1
5632   cat conftest.err >&5
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } >/dev/null; then
5635   if test -s conftest.err; then
5636     ac_cpp_err=$ac_c_preproc_warn_flag
5637   else
5638     ac_cpp_err=
5639   fi
5640 else
5641   ac_cpp_err=yes
5642 fi
5643 if test -z "$ac_cpp_err"; then
5644   ac_header_preproc=yes
5645 else
5646   echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5648
5649   ac_header_preproc=no
5650 fi
5651 rm -f conftest.err conftest.$ac_ext
5652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5653 echo "${ECHO_T}$ac_header_preproc" >&6
5654
5655 # So?  What about this header?
5656 case $ac_header_compiler:$ac_header_preproc in
5657   yes:no )
5658     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5659 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5660     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5661 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5662     (
5663       cat <<\_ASBOX
5664 ## ------------------------------------ ##
5665 ## Report this to bug-autoconf@gnu.org. ##
5666 ## ------------------------------------ ##
5667 _ASBOX
5668     ) |
5669       sed "s/^/$as_me: WARNING:     /" >&2
5670     ;;
5671   no:yes )
5672     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5673 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5674     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5675 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5676     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5677 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5678     (
5679       cat <<\_ASBOX
5680 ## ------------------------------------ ##
5681 ## Report this to bug-autoconf@gnu.org. ##
5682 ## ------------------------------------ ##
5683 _ASBOX
5684     ) |
5685       sed "s/^/$as_me: WARNING:     /" >&2
5686     ;;
5687 esac
5688 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5689 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5690 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5691   echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5694 fi
5695 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5696 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5697
5698 fi
5699 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5700    cat >>confdefs.h <<\_ACEOF
5701 #define HAVE_READLINE 1
5702 _ACEOF
5703
5704            got_readline="yes"
5705            CONS_INC="-I/usr/include/readline"
5706            CONS_LIBS="-lreadline -ltermcap"
5707
5708 else
5709
5710            # Did not find standard library, so try Bacula's default
5711             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5713   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5714 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 fi
5718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5720 else
5721   # Is the header compilable?
5722 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5723 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5724 cat >conftest.$ac_ext <<_ACEOF
5725 #line $LINENO "configure"
5726 /* confdefs.h.  */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h.  */
5731 $ac_includes_default
5732 #include <${TOP_DIR}/depkgs/readline/readline.h>
5733 _ACEOF
5734 rm -f conftest.$ac_objext
5735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5736   (eval $ac_compile) 2>&5
5737   ac_status=$?
5738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739   (exit $ac_status); } &&
5740          { ac_try='test -s conftest.$ac_objext'
5741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742   (eval $ac_try) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); }; }; then
5746   ac_header_compiler=yes
5747 else
5748   echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5750
5751 ac_header_compiler=no
5752 fi
5753 rm -f conftest.$ac_objext conftest.$ac_ext
5754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5755 echo "${ECHO_T}$ac_header_compiler" >&6
5756
5757 # Is the header present?
5758 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5759 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5762 /* confdefs.h.  */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h.  */
5767 #include <${TOP_DIR}/depkgs/readline/readline.h>
5768 _ACEOF
5769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5770   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5771   ac_status=$?
5772   grep -v '^ *+' conftest.er1 >conftest.err
5773   rm -f conftest.er1
5774   cat conftest.err >&5
5775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776   (exit $ac_status); } >/dev/null; then
5777   if test -s conftest.err; then
5778     ac_cpp_err=$ac_c_preproc_warn_flag
5779   else
5780     ac_cpp_err=
5781   fi
5782 else
5783   ac_cpp_err=yes
5784 fi
5785 if test -z "$ac_cpp_err"; then
5786   ac_header_preproc=yes
5787 else
5788   echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791   ac_header_preproc=no
5792 fi
5793 rm -f conftest.err conftest.$ac_ext
5794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5795 echo "${ECHO_T}$ac_header_preproc" >&6
5796
5797 # So?  What about this header?
5798 case $ac_header_compiler:$ac_header_preproc in
5799   yes:no )
5800     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5801 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5802     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5803 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5804     (
5805       cat <<\_ASBOX
5806 ## ------------------------------------ ##
5807 ## Report this to bug-autoconf@gnu.org. ##
5808 ## ------------------------------------ ##
5809 _ASBOX
5810     ) |
5811       sed "s/^/$as_me: WARNING:     /" >&2
5812     ;;
5813   no:yes )
5814     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5815 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5816     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5817 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5818     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5819 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5820     (
5821       cat <<\_ASBOX
5822 ## ------------------------------------ ##
5823 ## Report this to bug-autoconf@gnu.org. ##
5824 ## ------------------------------------ ##
5825 _ASBOX
5826     ) |
5827       sed "s/^/$as_me: WARNING:     /" >&2
5828     ;;
5829 esac
5830 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5831 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   eval "$as_ac_Header=$ac_header_preproc"
5836 fi
5837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5839
5840 fi
5841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5842    cat >>confdefs.h <<\_ACEOF
5843 #define HAVE_READLINE 1
5844 _ACEOF
5845
5846                  got_readline="yes"
5847                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5848                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5849                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5850                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5851
5852 else
5853    echo " "
5854                 echo "readline.h not found. readline turned off ..."
5855                 echo " "
5856
5857
5858 fi
5859
5860
5861
5862
5863 fi
5864
5865
5866
5867
5868 fi;
5869 fi
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880 # Minimal stuff for readline Makefile configuration
5881 MAKE_SHELL=/bin/sh
5882
5883 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5884 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5885 if test "${ac_cv_header_stat_broken+set}" = set; then
5886   echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888   cat >conftest.$ac_ext <<_ACEOF
5889 #line $LINENO "configure"
5890 /* confdefs.h.  */
5891 _ACEOF
5892 cat confdefs.h >>conftest.$ac_ext
5893 cat >>conftest.$ac_ext <<_ACEOF
5894 /* end confdefs.h.  */
5895 #include <sys/types.h>
5896 #include <sys/stat.h>
5897
5898 #if defined(S_ISBLK) && defined(S_IFDIR)
5899 # if S_ISBLK (S_IFDIR)
5900 You lose.
5901 # endif
5902 #endif
5903
5904 #if defined(S_ISBLK) && defined(S_IFCHR)
5905 # if S_ISBLK (S_IFCHR)
5906 You lose.
5907 # endif
5908 #endif
5909
5910 #if defined(S_ISLNK) && defined(S_IFREG)
5911 # if S_ISLNK (S_IFREG)
5912 You lose.
5913 # endif
5914 #endif
5915
5916 #if defined(S_ISSOCK) && defined(S_IFREG)
5917 # if S_ISSOCK (S_IFREG)
5918 You lose.
5919 # endif
5920 #endif
5921
5922 _ACEOF
5923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5924   $EGREP "You lose" >/dev/null 2>&1; then
5925   ac_cv_header_stat_broken=yes
5926 else
5927   ac_cv_header_stat_broken=no
5928 fi
5929 rm -f conftest*
5930
5931 fi
5932 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5933 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5934 if test $ac_cv_header_stat_broken = yes; then
5935
5936 cat >>confdefs.h <<\_ACEOF
5937 #define STAT_MACROS_BROKEN 1
5938 _ACEOF
5939
5940 fi
5941
5942
5943
5944
5945
5946
5947 ac_header_dirent=no
5948 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5949   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5950 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5951 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5953   echo $ECHO_N "(cached) $ECHO_C" >&6
5954 else
5955   cat >conftest.$ac_ext <<_ACEOF
5956 #line $LINENO "configure"
5957 /* confdefs.h.  */
5958 _ACEOF
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h.  */
5962 #include <sys/types.h>
5963 #include <$ac_hdr>
5964
5965 int
5966 main ()
5967 {
5968 if ((DIR *) 0)
5969 return 0;
5970   ;
5971   return 0;
5972 }
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976   (eval $ac_compile) 2>&5
5977   ac_status=$?
5978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); } &&
5980          { ac_try='test -s conftest.$ac_objext'
5981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982   (eval $ac_try) 2>&5
5983   ac_status=$?
5984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985   (exit $ac_status); }; }; then
5986   eval "$as_ac_Header=yes"
5987 else
5988   echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991 eval "$as_ac_Header=no"
5992 fi
5993 rm -f conftest.$ac_objext conftest.$ac_ext
5994 fi
5995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5998   cat >>confdefs.h <<_ACEOF
5999 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6000 _ACEOF
6001
6002 ac_header_dirent=$ac_hdr; break
6003 fi
6004
6005 done
6006 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6007 if test $ac_header_dirent = dirent.h; then
6008   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6010 if test "${ac_cv_search_opendir+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   ac_func_search_save_LIBS=$LIBS
6014 ac_cv_search_opendir=no
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 /* confdefs.h.  */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h.  */
6022
6023 /* Override any gcc2 internal prototype to avoid an error.  */
6024 #ifdef __cplusplus
6025 extern "C"
6026 #endif
6027 /* We use char because int might match the return type of a gcc2
6028    builtin and then its argument prototype would still apply.  */
6029 char opendir ();
6030 int
6031 main ()
6032 {
6033 opendir ();
6034   ;
6035   return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040   (eval $ac_link) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } &&
6044          { ac_try='test -s conftest$ac_exeext'
6045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046   (eval $ac_try) 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; }; then
6050   ac_cv_search_opendir="none required"
6051 else
6052   echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 fi
6056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057 if test "$ac_cv_search_opendir" = no; then
6058   for ac_lib in dir; do
6059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6060     cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6062 /* confdefs.h.  */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h.  */
6067
6068 /* Override any gcc2 internal prototype to avoid an error.  */
6069 #ifdef __cplusplus
6070 extern "C"
6071 #endif
6072 /* We use char because int might match the return type of a gcc2
6073    builtin and then its argument prototype would still apply.  */
6074 char opendir ();
6075 int
6076 main ()
6077 {
6078 opendir ();
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085   (eval $ac_link) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); } &&
6089          { ac_try='test -s conftest$ac_exeext'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; }; then
6095   ac_cv_search_opendir="-l$ac_lib"
6096 break
6097 else
6098   echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 fi
6102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6103   done
6104 fi
6105 LIBS=$ac_func_search_save_LIBS
6106 fi
6107 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6108 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6109 if test "$ac_cv_search_opendir" != no; then
6110   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6111
6112 fi
6113
6114 else
6115   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6116 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6117 if test "${ac_cv_search_opendir+set}" = set; then
6118   echo $ECHO_N "(cached) $ECHO_C" >&6
6119 else
6120   ac_func_search_save_LIBS=$LIBS
6121 ac_cv_search_opendir=no
6122 cat >conftest.$ac_ext <<_ACEOF
6123 #line $LINENO "configure"
6124 /* confdefs.h.  */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h.  */
6129
6130 /* Override any gcc2 internal prototype to avoid an error.  */
6131 #ifdef __cplusplus
6132 extern "C"
6133 #endif
6134 /* We use char because int might match the return type of a gcc2
6135    builtin and then its argument prototype would still apply.  */
6136 char opendir ();
6137 int
6138 main ()
6139 {
6140 opendir ();
6141   ;
6142   return 0;
6143 }
6144 _ACEOF
6145 rm -f conftest.$ac_objext conftest$ac_exeext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6147   (eval $ac_link) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); } &&
6151          { ac_try='test -s conftest$ac_exeext'
6152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153   (eval $ac_try) 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); }; }; then
6157   ac_cv_search_opendir="none required"
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 fi
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6164 if test "$ac_cv_search_opendir" = no; then
6165   for ac_lib in x; do
6166     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6167     cat >conftest.$ac_ext <<_ACEOF
6168 #line $LINENO "configure"
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174
6175 /* Override any gcc2 internal prototype to avoid an error.  */
6176 #ifdef __cplusplus
6177 extern "C"
6178 #endif
6179 /* We use char because int might match the return type of a gcc2
6180    builtin and then its argument prototype would still apply.  */
6181 char opendir ();
6182 int
6183 main ()
6184 {
6185 opendir ();
6186   ;
6187   return 0;
6188 }
6189 _ACEOF
6190 rm -f conftest.$ac_objext conftest$ac_exeext
6191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192   (eval $ac_link) 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); } &&
6196          { ac_try='test -s conftest$ac_exeext'
6197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198   (eval $ac_try) 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; }; then
6202   ac_cv_search_opendir="-l$ac_lib"
6203 break
6204 else
6205   echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208 fi
6209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6210   done
6211 fi
6212 LIBS=$ac_func_search_save_LIBS
6213 fi
6214 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6215 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6216 if test "$ac_cv_search_opendir" != no; then
6217   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6218
6219 fi
6220
6221 fi
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6232 do
6233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6234 echo "$as_me:$LINENO: checking for $ac_func" >&5
6235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6236 if eval "test \"\${$as_ac_var+set}\" = set"; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   cat >conftest.$ac_ext <<_ACEOF
6240 #line $LINENO "configure"
6241 /* confdefs.h.  */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h.  */
6246 /* System header to define __stub macros and hopefully few prototypes,
6247     which can conflict with char $ac_func (); below.
6248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6249     <limits.h> exists even on freestanding compilers.  */
6250 #ifdef __STDC__
6251 # include <limits.h>
6252 #else
6253 # include <assert.h>
6254 #endif
6255 /* Override any gcc2 internal prototype to avoid an error.  */
6256 #ifdef __cplusplus
6257 extern "C"
6258 {
6259 #endif
6260 /* We use char because int might match the return type of a gcc2
6261    builtin and then its argument prototype would still apply.  */
6262 char $ac_func ();
6263 /* The GNU C library defines this for functions which it implements
6264     to always fail with ENOSYS.  Some functions are actually named
6265     something starting with __ and the normal name is an alias.  */
6266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6267 choke me
6268 #else
6269 char (*f) () = $ac_func;
6270 #endif
6271 #ifdef __cplusplus
6272 }
6273 #endif
6274
6275 int
6276 main ()
6277 {
6278 return f != $ac_func;
6279   ;
6280   return 0;
6281 }
6282 _ACEOF
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285   (eval $ac_link) 2>&5
6286   ac_status=$?
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); } &&
6289          { ac_try='test -s conftest$ac_exeext'
6290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291   (eval $ac_try) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); }; }; then
6295   eval "$as_ac_var=yes"
6296 else
6297   echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 eval "$as_ac_var=no"
6301 fi
6302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6303 fi
6304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6306 if test `eval echo '${'$as_ac_var'}'` = yes; then
6307   cat >>confdefs.h <<_ACEOF
6308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6309 _ACEOF
6310
6311 fi
6312 done
6313
6314
6315
6316 for ac_func in nanosleep nl_langinfo
6317 do
6318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6319 echo "$as_me:$LINENO: checking for $ac_func" >&5
6320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6321 if eval "test \"\${$as_ac_var+set}\" = set"; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   cat >conftest.$ac_ext <<_ACEOF
6325 #line $LINENO "configure"
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331 /* System header to define __stub macros and hopefully few prototypes,
6332     which can conflict with char $ac_func (); below.
6333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6334     <limits.h> exists even on freestanding compilers.  */
6335 #ifdef __STDC__
6336 # include <limits.h>
6337 #else
6338 # include <assert.h>
6339 #endif
6340 /* Override any gcc2 internal prototype to avoid an error.  */
6341 #ifdef __cplusplus
6342 extern "C"
6343 {
6344 #endif
6345 /* We use char because int might match the return type of a gcc2
6346    builtin and then its argument prototype would still apply.  */
6347 char $ac_func ();
6348 /* The GNU C library defines this for functions which it implements
6349     to always fail with ENOSYS.  Some functions are actually named
6350     something starting with __ and the normal name is an alias.  */
6351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6352 choke me
6353 #else
6354 char (*f) () = $ac_func;
6355 #endif
6356 #ifdef __cplusplus
6357 }
6358 #endif
6359
6360 int
6361 main ()
6362 {
6363 return f != $ac_func;
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>&5
6371   ac_status=$?
6372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373   (exit $ac_status); } &&
6374          { ac_try='test -s conftest$ac_exeext'
6375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6376   (eval $ac_try) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); }; }; then
6380   eval "$as_ac_var=yes"
6381 else
6382   echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6384
6385 eval "$as_ac_var=no"
6386 fi
6387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6388 fi
6389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6391 if test `eval echo '${'$as_ac_var'}'` = yes; then
6392   cat >>confdefs.h <<_ACEOF
6393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6394 _ACEOF
6395
6396 fi
6397 done
6398
6399
6400 for ac_header in varargs.h
6401 do
6402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404   echo "$as_me:$LINENO: checking for $ac_header" >&5
6405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407   echo $ECHO_N "(cached) $ECHO_C" >&6
6408 fi
6409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6411 else
6412   # Is the header compilable?
6413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6417 /* confdefs.h.  */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h.  */
6422 $ac_includes_default
6423 #include <$ac_header>
6424 _ACEOF
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6427   (eval $ac_compile) 2>&5
6428   ac_status=$?
6429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430   (exit $ac_status); } &&
6431          { ac_try='test -s conftest.$ac_objext'
6432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433   (eval $ac_try) 2>&5
6434   ac_status=$?
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); }; }; then
6437   ac_header_compiler=yes
6438 else
6439   echo "$as_me: failed program was:" >&5
6440 sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_header_compiler=no
6443 fi
6444 rm -f conftest.$ac_objext conftest.$ac_ext
6445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6446 echo "${ECHO_T}$ac_header_compiler" >&6
6447
6448 # Is the header present?
6449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6453 /* confdefs.h.  */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h.  */
6458 #include <$ac_header>
6459 _ACEOF
6460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6461   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6462   ac_status=$?
6463   grep -v '^ *+' conftest.er1 >conftest.err
6464   rm -f conftest.er1
6465   cat conftest.err >&5
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); } >/dev/null; then
6468   if test -s conftest.err; then
6469     ac_cpp_err=$ac_c_preproc_warn_flag
6470   else
6471     ac_cpp_err=
6472   fi
6473 else
6474   ac_cpp_err=yes
6475 fi
6476 if test -z "$ac_cpp_err"; then
6477   ac_header_preproc=yes
6478 else
6479   echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482   ac_header_preproc=no
6483 fi
6484 rm -f conftest.err conftest.$ac_ext
6485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6486 echo "${ECHO_T}$ac_header_preproc" >&6
6487
6488 # So?  What about this header?
6489 case $ac_header_compiler:$ac_header_preproc in
6490   yes:no )
6491     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6495     (
6496       cat <<\_ASBOX
6497 ## ------------------------------------ ##
6498 ## Report this to bug-autoconf@gnu.org. ##
6499 ## ------------------------------------ ##
6500 _ASBOX
6501     ) |
6502       sed "s/^/$as_me: WARNING:     /" >&2
6503     ;;
6504   no:yes )
6505     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6507     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6509     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6511     (
6512       cat <<\_ASBOX
6513 ## ------------------------------------ ##
6514 ## Report this to bug-autoconf@gnu.org. ##
6515 ## ------------------------------------ ##
6516 _ASBOX
6517     ) |
6518       sed "s/^/$as_me: WARNING:     /" >&2
6519     ;;
6520 esac
6521 echo "$as_me:$LINENO: checking for $ac_header" >&5
6522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   eval "$as_ac_Header=$ac_header_preproc"
6527 fi
6528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6530
6531 fi
6532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533   cat >>confdefs.h <<_ACEOF
6534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6535 _ACEOF
6536
6537 fi
6538
6539 done
6540
6541
6542 # End of readline/conio stuff
6543 # -----------------------------------------------------------------------
6544
6545
6546 # ---------------------------------------------------
6547 # Check for GMP support/directory
6548 # ---------------------------------------------------
6549 #GMP_SRC=
6550 #local_gmp="no"
6551 #AC_ARG_WITH(gmp,
6552 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6553 #  [
6554 #     case "$with_gmp" in
6555 #     no) : ;;
6556 #     yes|*)
6557 #       if test "$with_gmp" != "yes"; then
6558 #         GMP_INC="-I$with_gmp"
6559 #         GMP_LIBS="-lgmp"
6560 #         GMP_LDFLAGS="-L$with_gmp"
6561 #       else
6562 #          with_gmp="/usr/include"
6563 #       fi
6564 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6565 #          [ AC_MSG_RESULT(yes)
6566 #            AC_DEFINE(HAVE_GMP)
6567 #            GMP_LIBS="-lgmp"
6568 #            got_gmp="yes"
6569 #          ],
6570 #          [ AC_MSG_ERROR([*** gmp library missing])
6571 #          ]
6572 #       )
6573 #       ;;
6574 #     esac
6575 #  ],[
6576 #    # check for standard gmp library
6577 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6578 #    [ AC_MSG_RESULT(yes)
6579 #      AC_DEFINE(HAVE_GMP)
6580 #      got_gmp="yes"
6581 #      GMP_INC=
6582 #      GMP_LIBS="-lgmp"
6583 #    ], [
6584 #      # Did not find standard library, so use our own
6585 #      AC_MSG_RESULT(yes)
6586 #      AC_DEFINE(HAVE_GMP)
6587 #      got_gmp="yes"
6588 #      local_gmp="yes"
6589 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6590 #      GMP_LIBS="-lgmp"
6591 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6592 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6593 #    ])
6594 #  ]
6595 #)
6596 #AC_SUBST(GMP_INC)
6597 #AC_SUBST(GMP_LIBS)
6598 #AC_SUBST(GMP_LDFLAGS)
6599 #AC_SUBST(GMP_SRC)
6600
6601 # End of GMP stuff
6602 # -----------------------------------------------------------------------
6603
6604
6605 # ---------------------------------------------------
6606 # Check for CWEB support/directory
6607 # ---------------------------------------------------
6608 #CWEB_SRC=
6609 #CWEB=/bin
6610 #local_cweb="no"
6611 #AC_ARG_WITH(cweb,
6612 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6613 #  [
6614 #     case "$with_cweb" in
6615 #     no) : ;;
6616 #     yes|*)
6617 #       if test "$with_cweb" != "yes"; then
6618 #         CWEB_INC="-I$with_cweb"
6619 #         CWEB_LIBS="-lcweb"
6620 #         CWEB_LDFLAGS="-L$with_cweb"
6621 #       else
6622 #          with_cweb="/usr/include"
6623 #       fi
6624 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6625 #          [ AC_MSG_RESULT(yes)
6626 #            AC_DEFINE(HAVE_CWEB)
6627 #            CWEB_LIBS="-lcweb"
6628 #            got_cweb="yes"
6629 #          ],
6630 #          [ AC_MSG_ERROR([*** cweb library missing])
6631 #          ]
6632 #       )
6633 #       ;;
6634 #     esac
6635 #  ],[
6636 #    # check for standard cweb library
6637 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6638 #    [ AC_MSG_RESULT(yes)
6639 #      AC_DEFINE(HAVE_CWEB)
6640 #      got_cweb="yes"
6641 #      CWEB_INC=
6642 #      CWEB_LIBS="-lcweb"
6643 #    ], [
6644 #      # Did not find starndard library, so use our own
6645 #      AC_MSG_RESULT(yes)
6646 #      AC_DEFINE(HAVE_CWEB)
6647 #      got_cweb="yes"
6648 #      local_cweb="yes"
6649 #      CWEB=${TOP_DIR}/depkgs/cweb
6650 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6651 #      CWEB_LIBS="-lcweb"
6652 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6653 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6654 #    ])
6655 #  ]
6656 #)
6657 #AC_SUBST(CWEB)
6658 #AC_SUBST(CWEB_INC)
6659 #AC_SUBST(CWEB_LIBS)
6660 #AC_SUBST(CWEB_LDFLAGS)
6661 #AC_SUBST(CWEB_SRC)
6662
6663 # End of CWEB stuff
6664 # -----------------------------------------------------------------------
6665
6666
6667
6668 # -----------------------------------------------------------
6669 # Check whether user wants TCP wrappers support (default off)
6670 # -----------------------------------------------------------
6671 TCPW_MSG="no"
6672
6673 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6674 if test "${with_tcp_wrappers+set}" = set; then
6675   withval="$with_tcp_wrappers"
6676
6677     if test "x$withval" != "xno" ; then
6678        saved_LIBS="$LIBS"
6679        LIBS="$saved_LIBS -lwrap"
6680        echo "$as_me:$LINENO: checking for libwrap" >&5
6681 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6682        cat >conftest.$ac_ext <<_ACEOF
6683 #line $LINENO "configure"
6684 /* confdefs.h.  */
6685 _ACEOF
6686 cat confdefs.h >>conftest.$ac_ext
6687 cat >>conftest.$ac_ext <<_ACEOF
6688 /* end confdefs.h.  */
6689  #include <tcpd.h>
6690              int deny_severity = 0;
6691              int allow_severity = 0;
6692              struct request_info *req;
6693 int
6694 main ()
6695 {
6696  hosts_access(req);
6697   ;
6698   return 0;
6699 }
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703   (eval $ac_link) 2>&5
6704   ac_status=$?
6705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706   (exit $ac_status); } &&
6707          { ac_try='test -s conftest$ac_exeext'
6708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709   (eval $ac_try) 2>&5
6710   ac_status=$?
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); }; }; then
6713
6714             echo "$as_me:$LINENO: result: yes" >&5
6715 echo "${ECHO_T}yes" >&6
6716             cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_LIBWRAP 1
6718 _ACEOF
6719
6720             TCPW_MSG="yes"
6721
6722 else
6723   echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6725
6726
6727             LIBS="$saved_LIBS -lwrap -lnsl"
6728             cat >conftest.$ac_ext <<_ACEOF
6729 #line $LINENO "configure"
6730 /* confdefs.h.  */
6731 _ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h.  */
6735  #include <tcpd.h>
6736                  int deny_severity = 0;
6737                  int allow_severity = 0;
6738                  struct request_info *req;
6739 int
6740 main ()
6741 {
6742  hosts_access(req);
6743   ;
6744   return 0;
6745 }
6746 _ACEOF
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749   (eval $ac_link) 2>&5
6750   ac_status=$?
6751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752   (exit $ac_status); } &&
6753          { ac_try='test -s conftest$ac_exeext'
6754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755   (eval $ac_try) 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); }; }; then
6759
6760                  echo "$as_me:$LINENO: result: yes" >&5
6761 echo "${ECHO_T}yes" >&6
6762                  cat >>confdefs.h <<\_ACEOF
6763 #define HAVE_LIBWRAP 1
6764 _ACEOF
6765
6766                  TCPW_MSG="yes"
6767
6768 else
6769   echo "$as_me: failed program was:" >&5
6770 sed 's/^/| /' conftest.$ac_ext >&5
6771
6772 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6773 echo "$as_me: error: *** libwrap missing" >&2;}
6774    { (exit 1); exit 1; }; }
6775
6776 fi
6777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6778
6779 fi
6780 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6781     fi
6782
6783
6784 fi;
6785
6786 # ------------------------------------------
6787 # Where to place working dir
6788 # ------------------------------------------
6789 working_dir=`eval echo ${prefix}/var/bacula/working`
6790
6791 # Check whether --with-working-dir or --without-working-dir was given.
6792 if test "${with_working_dir+set}" = set; then
6793   withval="$with_working_dir"
6794
6795        if test "x$withval" != "xno" ; then
6796               working_dir=$withval
6797        fi
6798
6799
6800 fi;
6801
6802
6803
6804
6805 # ------------------------------------------
6806 # Where to place scriptdir (script files)
6807 # ------------------------------------------
6808 scriptdir=`eval echo ${sysconfdir}`
6809
6810 # Check whether --with-scriptdir or --without-scriptdir was given.
6811 if test "${with_scriptdir+set}" = set; then
6812   withval="$with_scriptdir"
6813
6814        if test "x$withval" != "xno" ; then
6815               scriptdir=$withval
6816        fi
6817
6818
6819 fi;
6820
6821
6822
6823
6824 # ------------------------------------------
6825 # Where to send dump email
6826 # ------------------------------------------
6827 dump_email=root@localhost
6828
6829 # Check whether --with-dump-email or --without-dump-email was given.
6830 if test "${with_dump_email+set}" = set; then
6831   withval="$with_dump_email"
6832
6833        if test "x$withval" != "xno" ; then
6834               dump_email=$withval
6835        fi
6836
6837
6838 fi;
6839
6840
6841
6842 # ------------------------------------------
6843 # Where to send job email
6844 # ------------------------------------------
6845 job_email=root@localhost
6846
6847 # Check whether --with-job-email or --without-job-email was given.
6848 if test "${with_job_email+set}" = set; then
6849   withval="$with_job_email"
6850
6851        if test "x$withval" != "xno" ; then
6852               job_email=$withval
6853        fi
6854
6855
6856 fi;
6857
6858
6859
6860 # ------------------------------------------
6861 # Where to find smtp host
6862 # ------------------------------------------
6863 smtp_host=localhost
6864
6865 # Check whether --with-smtp_host or --without-smtp_host was given.
6866 if test "${with_smtp_host+set}" = set; then
6867   withval="$with_smtp_host"
6868
6869        if test "x$withval" != "xno" ; then
6870               smtp_host=$withval
6871        fi
6872
6873
6874 fi;
6875
6876
6877
6878
6879 # ------------------------------------
6880 # Where to place pid files
6881 # ------------------------------------
6882 piddir=/var/run
6883
6884 # Check whether --with-pid-dir or --without-pid-dir was given.
6885 if test "${with_pid_dir+set}" = set; then
6886   withval="$with_pid_dir"
6887
6888         if test "x$withval" != "xno" ; then
6889             piddir=$withval
6890         fi
6891
6892
6893 fi;
6894
6895 cat >>confdefs.h <<_ACEOF
6896 #define _PATH_BACULA_PIDDIR "$piddir"
6897 _ACEOF
6898
6899
6900
6901
6902 # ------------------------------------
6903 # Where to place subsys "lock file"
6904 # ------------------------------------
6905 subsysdir=/var/run/subsys
6906
6907 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6908 if test "${with_subsys_dir+set}" = set; then
6909   withval="$with_subsys_dir"
6910
6911         if test "x$withval" != "xno" ; then
6912             subsysdir=$withval
6913         fi
6914
6915
6916 fi;
6917
6918
6919
6920
6921
6922 # ------------------------------------
6923 # Where to start assigning ports
6924 # ------------------------------------
6925 baseport=9101
6926
6927 # Check whether --with-baseport or --without-baseport was given.
6928 if test "${with_baseport+set}" = set; then
6929   withval="$with_baseport"
6930
6931         if test "x$withval" != "xno" ; then
6932              baseport=$withval
6933         fi
6934
6935
6936 fi;
6937
6938
6939 dir_port=`expr $baseport`
6940 fd_port=`expr $baseport + 1`
6941 sd_port=`expr $fd_port + 1`
6942
6943
6944
6945
6946
6947
6948 # ------------------------------------------
6949 # Generate passwords
6950 # ------------------------------------------
6951 dir_password=
6952
6953 # Check whether --with-dir-password or --without-dir-password was given.
6954 if test "${with_dir_password+set}" = set; then
6955   withval="$with_dir_password"
6956
6957        if test "x$withval" != "xno" ; then
6958            dir_password=$withval
6959        fi
6960
6961
6962 fi;
6963
6964 if test "x$dir_password" = "x" ; then
6965    if test "x$OPENSSL" = "xnone" ; then
6966 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6967       key=`autoconf/randpass 33`
6968    else
6969       key=`openssl rand -base64 33`
6970    fi
6971    dir_password=$key
6972 fi
6973
6974 fd_password=
6975
6976 # Check whether --with-fd-password or --without-fd-password was given.
6977 if test "${with_fd_password+set}" = set; then
6978   withval="$with_fd_password"
6979
6980        if test "x$withval" != "xno" ; then
6981            fd_password=$withval
6982        fi
6983
6984
6985 fi;
6986
6987 if test "x$fd_password" = "x" ; then
6988    if test "x$OPENSSL" = "xnone" ; then
6989 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6990       key=`autoconf/randpass 37`
6991    else
6992       key=`openssl rand -base64 33`
6993    fi
6994    fd_password=$key
6995 fi
6996
6997 sd_password=
6998
6999 # Check whether --with-sd-password or --without-sd-password was given.
7000 if test "${with_sd_password+set}" = set; then
7001   withval="$with_sd_password"
7002
7003        if test "x$withval" != "xno" ; then
7004            sd_password=$withval
7005        fi
7006
7007
7008 fi;
7009
7010 if test "x$sd_password" = "x" ; then
7011    if test "x$OPENSSL" = "xnone" ; then
7012 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7013       key=`autoconf/randpass 41`
7014    else
7015       key=`openssl rand -base64 33`
7016    fi
7017    sd_password=$key
7018 fi
7019
7020
7021
7022
7023
7024
7025
7026 #
7027 # Handle users and groups for each daemon
7028 #
7029 dir_user=
7030
7031 # Check whether --with-dir_user or --without-dir_user was given.
7032 if test "${with_dir_user+set}" = set; then
7033   withval="$with_dir_user"
7034
7035         if test "x$withval" != "x" ; then
7036              dir_user=$withval
7037         fi
7038
7039
7040 fi;
7041
7042 dir_group=
7043
7044 # Check whether --with-dir_group or --without-dir_group was given.
7045 if test "${with_dir_group+set}" = set; then
7046   withval="$with_dir_group"
7047
7048         if test "x$withval" != "x" ; then
7049              dir_group=$withval
7050         fi
7051
7052
7053 fi;
7054
7055 sd_user=
7056
7057 # Check whether --with-sd_user or --without-sd_user was given.
7058 if test "${with_sd_user+set}" = set; then
7059   withval="$with_sd_user"
7060
7061         if test "x$withval" != "x" ; then
7062              sd_user=$withval
7063         fi
7064
7065
7066 fi;
7067
7068 sd_group=
7069
7070 # Check whether --with-sd_group or --without-sd_group was given.
7071 if test "${with_sd_group+set}" = set; then
7072   withval="$with_sd_group"
7073
7074         if test "x$withval" != "x" ; then
7075              sd_group=$withval
7076         fi
7077
7078
7079 fi;
7080
7081 fd_user=
7082
7083 # Check whether --with-fd_user or --without-fd_user was given.
7084 if test "${with_fd_user+set}" = set; then
7085   withval="$with_fd_user"
7086
7087         if test "x$withval" != "x" ; then
7088              fd_user=$withval
7089         fi
7090
7091
7092 fi;
7093
7094 fd_group=
7095
7096 # Check whether --with-fd_group or --without-fd_group was given.
7097 if test "${with_fd_group+set}" = set; then
7098   withval="$with_fd_group"
7099
7100         if test "x$withval" != "x" ; then
7101              fd_group=$withval
7102         fi
7103
7104
7105 fi;
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117 #
7118 # allow setting default executable permissions
7119 #
7120 SBINPERM=0754
7121
7122 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7123 if test "${with_sbin_perm+set}" = set; then
7124   withval="$with_sbin_perm"
7125
7126         if test "x$withval" != "x" ; then
7127             SBINPERM=$withval
7128         fi
7129
7130
7131 fi;
7132
7133
7134
7135 # ------------------------------------------------
7136 # Bacula check for various SQL database engines
7137 # ------------------------------------------------
7138
7139 db_found=no
7140 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7141 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7142
7143 # Check whether --with-postgresql or --without-postgresql was given.
7144 if test "${with_postgresql+set}" = set; then
7145   withval="$with_postgresql"
7146
7147   if test "$withval" != "no"; then
7148       if test "$db_found" = "yes"; then
7149           echo "$as_me:$LINENO: result: error" >&5
7150 echo "${ECHO_T}error" >&6
7151           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7152 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7153    { (exit 1); exit 1; }; };
7154       fi
7155       if test "$withval" = "yes"; then
7156           if test -f /usr/local/include/libpq-fe.h; then
7157               POSTGRESQL_INCDIR=/usr/local/include
7158               POSTGRESQL_LIBDIR=/usr/local/lib
7159               POSTGRESQL_BINDIR=/usr/local/bin
7160           elif test -f /usr/include/libpq-fe.h; then
7161               POSTGRESQL_INCDIR=/usr/include
7162               POSTGRESQL_LIBDIR=/usr/lib
7163               POSTGRESQL_BINDIR=/usr/bin
7164           elif test -f /usr/include/pgsql/libpq-fe.h; then
7165               POSTGRESQL_INCDIR=/usr/include/pgsql
7166               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7167               POSTGRESQL_BINDIR=/usr/bin
7168           elif test -f /usr/include/postgresql/libpq-fe.h; then
7169               POSTGRESQL_INCDIR=/usr/include/postgresql
7170               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7171               POSTGRESQL_BINDIR=/usr/bin
7172           else
7173               echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7175               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7176 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7177    { (exit 1); exit 1; }; }
7178           fi
7179       elif test -f $withval/include/libpq-fe.h; then
7180           POSTGRESQL_INCDIR=$withval/include
7181           POSTGRESQL_LIBDIR=$withval/lib
7182           POSTGRESQL_BINDIR=$withval/bin
7183       else
7184           echo "$as_me:$LINENO: result: no" >&5
7185 echo "${ECHO_T}no" >&6
7186           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7187 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7188    { (exit 1); exit 1; }; }
7189       fi
7190       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7191       echo "$as_me:$LINENO: checking for crypt" >&5
7192 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7193 if test "${ac_cv_func_crypt+set}" = set; then
7194   echo $ECHO_N "(cached) $ECHO_C" >&6
7195 else
7196   cat >conftest.$ac_ext <<_ACEOF
7197 #line $LINENO "configure"
7198 /* confdefs.h.  */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h.  */
7203 /* System header to define __stub macros and hopefully few prototypes,
7204     which can conflict with char crypt (); below.
7205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7206     <limits.h> exists even on freestanding compilers.  */
7207 #ifdef __STDC__
7208 # include <limits.h>
7209 #else
7210 # include <assert.h>
7211 #endif
7212 /* Override any gcc2 internal prototype to avoid an error.  */
7213 #ifdef __cplusplus
7214 extern "C"
7215 {
7216 #endif
7217 /* We use char because int might match the return type of a gcc2
7218    builtin and then its argument prototype would still apply.  */
7219 char crypt ();
7220 /* The GNU C library defines this for functions which it implements
7221     to always fail with ENOSYS.  Some functions are actually named
7222     something starting with __ and the normal name is an alias.  */
7223 #if defined (__stub_crypt) || defined (__stub___crypt)
7224 choke me
7225 #else
7226 char (*f) () = crypt;
7227 #endif
7228 #ifdef __cplusplus
7229 }
7230 #endif
7231
7232 int
7233 main ()
7234 {
7235 return f != crypt;
7236   ;
7237   return 0;
7238 }
7239 _ACEOF
7240 rm -f conftest.$ac_objext conftest$ac_exeext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7242   (eval $ac_link) 2>&5
7243   ac_status=$?
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); } &&
7246          { ac_try='test -s conftest$ac_exeext'
7247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248   (eval $ac_try) 2>&5
7249   ac_status=$?
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); }; }; then
7252   ac_cv_func_crypt=yes
7253 else
7254   echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257 ac_cv_func_crypt=no
7258 fi
7259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7260 fi
7261 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7262 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7263 if test $ac_cv_func_crypt = yes; then
7264   :
7265 else
7266   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7267 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7268 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7269   echo $ECHO_N "(cached) $ECHO_C" >&6
7270 else
7271   ac_check_lib_save_LIBS=$LIBS
7272 LIBS="-lcrypt  $LIBS"
7273 cat >conftest.$ac_ext <<_ACEOF
7274 #line $LINENO "configure"
7275 /* confdefs.h.  */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h.  */
7280
7281 /* Override any gcc2 internal prototype to avoid an error.  */
7282 #ifdef __cplusplus
7283 extern "C"
7284 #endif
7285 /* We use char because int might match the return type of a gcc2
7286    builtin and then its argument prototype would still apply.  */
7287 char crypt ();
7288 int
7289 main ()
7290 {
7291 crypt ();
7292   ;
7293   return 0;
7294 }
7295 _ACEOF
7296 rm -f conftest.$ac_objext conftest$ac_exeext
7297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7298   (eval $ac_link) 2>&5
7299   ac_status=$?
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); } &&
7302          { ac_try='test -s conftest$ac_exeext'
7303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304   (eval $ac_try) 2>&5
7305   ac_status=$?
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); }; }; then
7308   ac_cv_lib_crypt_crypt=yes
7309 else
7310   echo "$as_me: failed program was:" >&5
7311 sed 's/^/| /' conftest.$ac_ext >&5
7312
7313 ac_cv_lib_crypt_crypt=no
7314 fi
7315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7316 LIBS=$ac_check_lib_save_LIBS
7317 fi
7318 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7319 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7320 if test $ac_cv_lib_crypt_crypt = yes; then
7321   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7322 fi
7323
7324 fi
7325
7326       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7327       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7328       SQL_BINDIR=$POSTGRESQL_BINDIR
7329       cat >>confdefs.h <<\_ACEOF
7330 #define HAVE_POSTGRESQL 1
7331 _ACEOF
7332
7333       echo "$as_me:$LINENO: result: yes" >&5
7334 echo "${ECHO_T}yes" >&6
7335       db_found=yes
7336       support_postgresql=yes
7337       db_name=PostgreSQL
7338       DB_NAME=postgresql
7339   else
7340       echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6
7342   fi
7343
7344 else
7345
7346   echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6
7348
7349 fi;
7350
7351
7352
7353
7354
7355
7356
7357 db_found=no
7358 echo "$as_me:$LINENO: checking for MySQL support" >&5
7359 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7360
7361 # Check whether --with-mysql or --without-mysql was given.
7362 if test "${with_mysql+set}" = set; then
7363   withval="$with_mysql"
7364
7365   if test "$withval" != "no"; then
7366         if test "$withval" = "yes"; then
7367                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7368                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7369                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7370                         MYSQL_BINDIR=/usr/local/mysql/bin
7371                 elif test -f /usr/include/mysql/mysql.h; then
7372                         MYSQL_INCDIR=/usr/include/mysql
7373                         MYSQL_LIBDIR=/usr/lib/mysql
7374                         MYSQL_BINDIR=/usr/bin
7375                 elif test -f /usr/include/mysql.h; then
7376                         MYSQL_INCDIR=/usr/include
7377                         MYSQL_LIBDIR=/usr/lib
7378                         MYSQL_BINDIR=/usr/bin
7379                 elif test -f /usr/local/include/mysql/mysql.h; then
7380                         MYSQL_INCDIR=/usr/local/include/mysql
7381                         MYSQL_LIBDIR=/usr/local/lib/mysql
7382                         MYSQL_BINDIR=/usr/local/bin
7383                 elif test -f /usr/local/include/mysql.h; then
7384                         MYSQL_INCDIR=/usr/local/include
7385                         MYSQL_LIBDIR=/usr/local/lib
7386                         MYSQL_BINDIR=/usr/local/bin
7387                 else
7388                    echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7390                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7391 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7392    { (exit 1); exit 1; }; }
7393                 fi
7394         else
7395                 if test -f $withval/include/mysql/mysql.h; then
7396                         MYSQL_INCDIR=$withval/include/mysql
7397                         MYSQL_LIBDIR=$withval/lib/mysql
7398                         MYSQL_BINDIR=$withval/bin
7399                 elif test -f $withval/include/mysql.h; then
7400                         MYSQL_INCDIR=$withval/include
7401                         MYSQL_LIBDIR=$withval/lib
7402                         MYSQL_BINDIR=$withval/bin
7403                 else
7404                    echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6
7406                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7407 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7408    { (exit 1); exit 1; }; }
7409                 fi
7410         fi
7411     SQL_INCLUDE=-I$MYSQL_INCDIR
7412     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7413        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7414        cat >>confdefs.h <<\_ACEOF
7415 #define HAVE_THREAD_SAFE_MYSQL 1
7416 _ACEOF
7417
7418     else
7419        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7420     fi
7421     SQL_BINDIR=$MYSQL_BINDIR
7422
7423     cat >>confdefs.h <<\_ACEOF
7424 #define HAVE_MYSQL 1
7425 _ACEOF
7426
7427     echo "$as_me:$LINENO: result: yes" >&5
7428 echo "${ECHO_T}yes" >&6
7429     db_found=yes
7430     support_mysql=yes
7431     db_name=MySQL
7432     DB_NAME=mysql
7433
7434   else
7435         echo "$as_me:$LINENO: result: no" >&5
7436 echo "${ECHO_T}no" >&6
7437   fi
7438
7439
7440 fi;
7441
7442
7443 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7444 if test "${with_embedded_mysql+set}" = set; then
7445   withval="$with_embedded_mysql"
7446
7447   if test "$withval" != "no"; then
7448         if test "$withval" = "yes"; then
7449                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7450                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7451                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7452                         MYSQL_BINDIR=/usr/local/mysql/bin
7453                 elif test -f /usr/include/mysql/mysql.h; then
7454                         MYSQL_INCDIR=/usr/include/mysql
7455                         MYSQL_LIBDIR=/usr/lib/mysql
7456                         MYSQL_BINDIR=/usr/bin
7457                 elif test -f /usr/include/mysql.h; then
7458                         MYSQL_INCDIR=/usr/include
7459                         MYSQL_LIBDIR=/usr/lib
7460                         MYSQL_BINDIR=/usr/bin
7461                 elif test -f /usr/local/include/mysql/mysql.h; then
7462                         MYSQL_INCDIR=/usr/local/include/mysql
7463                         MYSQL_LIBDIR=/usr/local/lib/mysql
7464                         MYSQL_BINDIR=/usr/local/bin
7465                 elif test -f /usr/local/include/mysql.h; then
7466                         MYSQL_INCDIR=/usr/local/include
7467                         MYSQL_LIBDIR=/usr/local/lib
7468                         MYSQL_BINDIR=/usr/local/bin
7469                 else
7470                    echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6
7472                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7473 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7474    { (exit 1); exit 1; }; }
7475                 fi
7476         else
7477                 if test -f $withval/include/mysql/mysql.h; then
7478                         MYSQL_INCDIR=$withval/include/mysql
7479                         MYSQL_LIBDIR=$withval/lib/mysql
7480                         MYSQL_BINDIR=$withval/bin
7481                 elif test -f $withval/include/mysql.h; then
7482                         MYSQL_INCDIR=$withval/include
7483                         MYSQL_LIBDIR=$withval/lib
7484                         MYSQL_BINDIR=$withval/bin
7485                 else
7486                    echo "$as_me:$LINENO: result: no" >&5
7487 echo "${ECHO_T}no" >&6
7488                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7489 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7490    { (exit 1); exit 1; }; }
7491                 fi
7492         fi
7493     SQL_INCLUDE=-I$MYSQL_INCDIR
7494     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7495     SQL_BINDIR=$MYSQL_BINDIR
7496
7497     cat >>confdefs.h <<\_ACEOF
7498 #define HAVE_MYSQL 1
7499 _ACEOF
7500
7501     cat >>confdefs.h <<\_ACEOF
7502 #define HAVE_EMBEDDED_MYSQL 1
7503 _ACEOF
7504
7505     echo "$as_me:$LINENO: result: yes" >&5
7506 echo "${ECHO_T}yes" >&6
7507     db_found=yes
7508     support_mysql=yes
7509     db_name=MySQL
7510     DB_NAME=mysql
7511
7512   else
7513         echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6
7515   fi
7516
7517
7518 fi;
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528 db_found=no
7529 echo "$as_me:$LINENO: checking for SQLite support" >&5
7530 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7531
7532 # Check whether --with-sqlite or --without-sqlite was given.
7533 if test "${with_sqlite+set}" = set; then
7534   withval="$with_sqlite"
7535
7536   if test "$withval" != "no"; then
7537         if test "$withval" = "yes"; then
7538                 if test -f /usr/local/include/sqlite.h; then
7539                         SQLITE_INCDIR=/usr/local/include
7540                         SQLITE_LIBDIR=/usr/local/lib
7541                         SQLITE_BINDIR=/usr/local/bin
7542                 elif test -f /usr/include/sqlite.h; then
7543                         SQLITE_INCDIR=/usr/include
7544                         SQLITE_LIBDIR=/usr/lib
7545                         SQLITE_BINDIR=/usr/bin
7546                 else
7547                    echo "$as_me:$LINENO: result: no" >&5
7548 echo "${ECHO_T}no" >&6
7549                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7550 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7551    { (exit 1); exit 1; }; }
7552                 fi
7553         else
7554                 if test -f $withval/sqlite.h; then
7555                         SQLITE_INCDIR=$withval
7556                         SQLITE_LIBDIR=$withval
7557                         SQLITE_BINDIR=$withval
7558                 else
7559                    echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7562 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7563    { (exit 1); exit 1; }; }
7564                 fi
7565         fi
7566     SQL_INCLUDE=-I$SQLITE_INCDIR
7567     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7568     SQL_BINDIR=$SQLITE_BINDIR
7569
7570     cat >>confdefs.h <<\_ACEOF
7571 #define HAVE_SQLITE 1
7572 _ACEOF
7573
7574     echo "$as_me:$LINENO: result: yes" >&5
7575 echo "${ECHO_T}yes" >&6
7576     db_found=yes
7577     support_sqlite=yes
7578     db_name=SQLite
7579     DB_NAME=sqlite
7580
7581   else
7582         echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6
7584   fi
7585
7586 else
7587
7588   echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6
7590
7591 fi;
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601 cat >>confdefs.h <<\_ACEOF
7602 #define PROTOTYPES 1
7603 _ACEOF
7604
7605
7606 if test -z "$CFLAGS"; then
7607     if test -z "$CCOPTS"; then
7608         CCOPTS='-g -O2'
7609     fi
7610     CFLAGS="$CCOPTS"
7611 fi
7612
7613
7614
7615
7616 largefile_support="no"
7617
7618    # Check whether --enable-largefile or --disable-largefile was given.
7619 if test "${enable_largefile+set}" = set; then
7620   enableval="$enable_largefile"
7621
7622 fi;
7623    if test "$enable_largefile" != no; then
7624      if test -n "$ac_tool_prefix"; then
7625   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7626 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7627 echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7629 if test "${ac_cv_prog_GETCONF+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   if test -n "$GETCONF"; then
7633   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7634 else
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636 for as_dir in $PATH
7637 do
7638   IFS=$as_save_IFS
7639   test -z "$as_dir" && as_dir=.
7640   for ac_exec_ext in '' $ac_executable_extensions; do
7641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644     break 2
7645   fi
7646 done
7647 done
7648
7649 fi
7650 fi
7651 GETCONF=$ac_cv_prog_GETCONF
7652 if test -n "$GETCONF"; then
7653   echo "$as_me:$LINENO: result: $GETCONF" >&5
7654 echo "${ECHO_T}$GETCONF" >&6
7655 else
7656   echo "$as_me:$LINENO: result: no" >&5
7657 echo "${ECHO_T}no" >&6
7658 fi
7659
7660 fi
7661 if test -z "$ac_cv_prog_GETCONF"; then
7662   ac_ct_GETCONF=$GETCONF
7663   # Extract the first word of "getconf", so it can be a program name with args.
7664 set dummy getconf; ac_word=$2
7665 echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7667 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   if test -n "$ac_ct_GETCONF"; then
7671   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676   IFS=$as_save_IFS
7677   test -z "$as_dir" && as_dir=.
7678   for ac_exec_ext in '' $ac_executable_extensions; do
7679   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680     ac_cv_prog_ac_ct_GETCONF="getconf"
7681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682     break 2
7683   fi
7684 done
7685 done
7686
7687 fi
7688 fi
7689 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7690 if test -n "$ac_ct_GETCONF"; then
7691   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7692 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7693 else
7694   echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6
7696 fi
7697
7698   GETCONF=$ac_ct_GETCONF
7699 else
7700   GETCONF="$ac_cv_prog_GETCONF"
7701 fi
7702
7703      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7704 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7705 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7706   echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7709         ac_cv_sys_largefile_CFLAGS=no
7710         case "$host_os" in
7711            # IRIX 6.2 and later require cc -n32.
7712            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7713              if test "$GCC" != yes; then
7714                ac_cv_sys_largefile_CFLAGS=-n32
7715              fi
7716              ac_save_CC="$CC"
7717              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7718              cat >conftest.$ac_ext <<_ACEOF
7719 #line $LINENO "configure"
7720 /* confdefs.h.  */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h.  */
7725
7726 int
7727 main ()
7728 {
7729
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7736   (eval $ac_link) 2>&5
7737   ac_status=$?
7738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739   (exit $ac_status); } &&
7740          { ac_try='test -s conftest$ac_exeext'
7741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7742   (eval $ac_try) 2>&5
7743   ac_status=$?
7744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745   (exit $ac_status); }; }; then
7746   :
7747 else
7748   echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7750
7751 ac_cv_sys_largefile_CFLAGS=no
7752 fi
7753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7754              CC="$ac_save_CC"
7755            esac
7756       }
7757 fi
7758 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7759 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7760      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7761 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7762 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7763   echo $ECHO_N "(cached) $ECHO_C" >&6
7764 else
7765   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7766         ac_cv_sys_largefile_LDFLAGS=no
7767
7768       }
7769 fi
7770 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7771 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7772      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7773 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7774 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7778         ac_cv_sys_largefile_LIBS=no
7779
7780       }
7781 fi
7782 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7783 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7784
7785      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7786        case "$ac_flag" in
7787        no) ;;
7788        -D_FILE_OFFSET_BITS=*) ;;
7789        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7790        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7791        -D?* | -I?*)
7792          case "$ac_flag" in
7793    no) ;;
7794    ?*)
7795      case "$CPPFLAGS" in
7796      '') CPPFLAGS="$ac_flag" ;;
7797      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7798      esac ;;
7799    esac ;;
7800        *)
7801          case "$ac_flag" in
7802    no) ;;
7803    ?*)
7804      case "$CFLAGS" in
7805      '') CFLAGS="$ac_flag" ;;
7806      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7807      esac ;;
7808    esac ;;
7809        esac
7810      done
7811      case "$ac_cv_sys_largefile_LDFLAGS" in
7812    no) ;;
7813    ?*)
7814      case "$LDFLAGS" in
7815      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7816      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7817      esac ;;
7818    esac
7819      case "$ac_cv_sys_largefile_LIBS" in
7820    no) ;;
7821    ?*)
7822      case "$LIBS" in
7823      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7824      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7825      esac ;;
7826    esac
7827      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7828 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7829 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7830   echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832   ac_cv_sys_file_offset_bits=no
7833       case "$host_os" in
7834         # HP-UX 10.20 and later
7835         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7836           ac_cv_sys_file_offset_bits=64 ;;
7837         esac
7838       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7839         case "$ac_flag" in
7840         -D_FILE_OFFSET_BITS)
7841           ac_cv_sys_file_offset_bits=1 ;;
7842         -D_FILE_OFFSET_BITS=*)
7843           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7844         esac
7845       done
7846
7847 fi
7848 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7849 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7850    if test "$ac_cv_sys_file_offset_bits" != no; then
7851
7852 cat >>confdefs.h <<_ACEOF
7853 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7854 _ACEOF
7855
7856    fi
7857      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7858 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7859 if test "${ac_cv_sys_largefile_source+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   ac_cv_sys_largefile_source=no
7863       case "$host_os" in
7864         # HP-UX 10.20 and later
7865         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7866           ac_cv_sys_largefile_source=1 ;;
7867         esac
7868       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7869         case "$ac_flag" in
7870         -D_LARGEFILE_SOURCE)
7871           ac_cv_sys_largefile_source=1 ;;
7872         -D_LARGEFILE_SOURCE=*)
7873           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7874         esac
7875       done
7876
7877 fi
7878 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7879 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7880    if test "$ac_cv_sys_largefile_source" != no; then
7881
7882 cat >>confdefs.h <<_ACEOF
7883 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7884 _ACEOF
7885
7886    fi
7887      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7888 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7889 if test "${ac_cv_sys_large_files+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892   ac_cv_sys_large_files=no
7893       case "$host_os" in
7894         # AIX 4.2 and later
7895         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7896           ac_cv_sys_large_files=1 ;;
7897         esac
7898       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7899         case "$ac_flag" in
7900         -D_LARGE_FILES)
7901           ac_cv_sys_large_files=1 ;;
7902         -D_LARGE_FILES=*)
7903           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7904         esac
7905       done
7906
7907 fi
7908 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7909 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7910    if test "$ac_cv_sys_large_files" != no; then
7911
7912 cat >>confdefs.h <<_ACEOF
7913 #define _LARGE_FILES $ac_cv_sys_large_files
7914 _ACEOF
7915
7916    fi
7917    fi
7918
7919
7920
7921 echo "$as_me:$LINENO: checking for X" >&5
7922 echo $ECHO_N "checking for X... $ECHO_C" >&6
7923
7924
7925 # Check whether --with-x or --without-x was given.
7926 if test "${with_x+set}" = set; then
7927   withval="$with_x"
7928
7929 fi;
7930 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7931 if test "x$with_x" = xno; then
7932   # The user explicitly disabled X.
7933   have_x=disabled
7934 else
7935   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7936     # Both variables are already set.
7937     have_x=yes
7938   else
7939     if test "${ac_cv_have_x+set}" = set; then
7940   echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942   # One or both of the vars are not set, and there is no cached value.
7943 ac_x_includes=no ac_x_libraries=no
7944 rm -fr conftest.dir
7945 if mkdir conftest.dir; then
7946   cd conftest.dir
7947   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7948   cat >Imakefile <<'_ACEOF'
7949 acfindx:
7950         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7951 _ACEOF
7952   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7953     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7954     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7955     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7956     for ac_extension in a so sl; do
7957       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7958          test -f $ac_im_libdir/libX11.$ac_extension; then
7959         ac_im_usrlibdir=$ac_im_libdir; break
7960       fi
7961     done
7962     # Screen out bogus values from the imake configuration.  They are
7963     # bogus both because they are the default anyway, and because
7964     # using them would break gcc on systems where it needs fixed includes.
7965     case $ac_im_incroot in
7966         /usr/include) ;;
7967         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7968     esac
7969     case $ac_im_usrlibdir in
7970         /usr/lib | /lib) ;;
7971         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7972     esac
7973   fi
7974   cd ..
7975   rm -fr conftest.dir
7976 fi
7977
7978 # Standard set of common directories for X headers.
7979 # Check X11 before X11Rn because it is often a symlink to the current release.
7980 ac_x_header_dirs='
7981 /usr/X11/include
7982 /usr/X11R6/include
7983 /usr/X11R5/include
7984 /usr/X11R4/include
7985
7986 /usr/include/X11
7987 /usr/include/X11R6
7988 /usr/include/X11R5
7989 /usr/include/X11R4
7990
7991 /usr/local/X11/include
7992 /usr/local/X11R6/include
7993 /usr/local/X11R5/include
7994 /usr/local/X11R4/include
7995
7996 /usr/local/include/X11
7997 /usr/local/include/X11R6
7998 /usr/local/include/X11R5
7999 /usr/local/include/X11R4
8000
8001 /usr/X386/include
8002 /usr/x386/include
8003 /usr/XFree86/include/X11
8004
8005 /usr/include
8006 /usr/local/include
8007 /usr/unsupported/include
8008 /usr/athena/include
8009 /usr/local/x11r5/include
8010 /usr/lpp/Xamples/include
8011
8012 /usr/openwin/include
8013 /usr/openwin/share/include'
8014
8015 if test "$ac_x_includes" = no; then
8016   # Guess where to find include files, by looking for Intrinsic.h.
8017   # First, try using that file with no special directory specified.
8018   cat >conftest.$ac_ext <<_ACEOF
8019 #line $LINENO "configure"
8020 /* confdefs.h.  */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h.  */
8025 #include <X11/Intrinsic.h>
8026 _ACEOF
8027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8028   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8029   ac_status=$?
8030   grep -v '^ *+' conftest.er1 >conftest.err
8031   rm -f conftest.er1
8032   cat conftest.err >&5
8033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034   (exit $ac_status); } >/dev/null; then
8035   if test -s conftest.err; then
8036     ac_cpp_err=$ac_c_preproc_warn_flag
8037   else
8038     ac_cpp_err=
8039   fi
8040 else
8041   ac_cpp_err=yes
8042 fi
8043 if test -z "$ac_cpp_err"; then
8044   # We can compile using X headers with no special include directory.
8045 ac_x_includes=
8046 else
8047   echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8049
8050   for ac_dir in $ac_x_header_dirs; do
8051   if test -r "$ac_dir/X11/Intrinsic.h"; then
8052     ac_x_includes=$ac_dir
8053     break
8054   fi
8055 done
8056 fi
8057 rm -f conftest.err conftest.$ac_ext
8058 fi # $ac_x_includes = no
8059
8060 if test "$ac_x_libraries" = no; then
8061   # Check for the libraries.
8062   # See if we find them without any special options.
8063   # Don't add to $LIBS permanently.
8064   ac_save_LIBS=$LIBS
8065   LIBS="-lXt $LIBS"
8066   cat >conftest.$ac_ext <<_ACEOF
8067 #line $LINENO "configure"
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073 #include <X11/Intrinsic.h>
8074 int
8075 main ()
8076 {
8077 XtMalloc (0)
8078   ;
8079   return 0;
8080 }
8081 _ACEOF
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8084   (eval $ac_link) 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); } &&
8088          { ac_try='test -s conftest$ac_exeext'
8089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8090   (eval $ac_try) 2>&5
8091   ac_status=$?
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); }; }; then
8094   LIBS=$ac_save_LIBS
8095 # We can link X programs with no special library path.
8096 ac_x_libraries=
8097 else
8098   echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101 LIBS=$ac_save_LIBS
8102 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8103 do
8104   # Don't even attempt the hair of trying to link an X program!
8105   for ac_extension in a so sl; do
8106     if test -r $ac_dir/libXt.$ac_extension; then
8107       ac_x_libraries=$ac_dir
8108       break 2
8109     fi
8110   done
8111 done
8112 fi
8113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8114 fi # $ac_x_libraries = no
8115
8116 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8117   # Didn't find X anywhere.  Cache the known absence of X.
8118   ac_cv_have_x="have_x=no"
8119 else
8120   # Record where we found X for the cache.
8121   ac_cv_have_x="have_x=yes \
8122                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8123 fi
8124 fi
8125
8126   fi
8127   eval "$ac_cv_have_x"
8128 fi # $with_x != no
8129
8130 if test "$have_x" != yes; then
8131   echo "$as_me:$LINENO: result: $have_x" >&5
8132 echo "${ECHO_T}$have_x" >&6
8133   no_x=yes
8134 else
8135   # If each of the values was on the command line, it overrides each guess.
8136   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8137   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8138   # Update the cache value to reflect the command line values.
8139   ac_cv_have_x="have_x=yes \
8140                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8141   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8142 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8143 fi
8144
8145 if test "$no_x" = yes; then
8146   # Not all programs may use this symbol, but it does not hurt to define it.
8147
8148 cat >>confdefs.h <<\_ACEOF
8149 #define X_DISPLAY_MISSING 1
8150 _ACEOF
8151
8152   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8153 else
8154   if test -n "$x_includes"; then
8155     X_CFLAGS="$X_CFLAGS -I$x_includes"
8156   fi
8157
8158   # It would also be nice to do this for all -L options, not just this one.
8159   if test -n "$x_libraries"; then
8160     X_LIBS="$X_LIBS -L$x_libraries"
8161     # For Solaris; some versions of Sun CC require a space after -R and
8162     # others require no space.  Words are not sufficient . . . .
8163     case `(uname -sr) 2>/dev/null` in
8164     "SunOS 5"*)
8165       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8166 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8167       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8168       cat >conftest.$ac_ext <<_ACEOF
8169 #line $LINENO "configure"
8170 /* confdefs.h.  */
8171 _ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h.  */
8175
8176 int
8177 main ()
8178 {
8179
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8186   (eval $ac_link) 2>&5
8187   ac_status=$?
8188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189   (exit $ac_status); } &&
8190          { ac_try='test -s conftest$ac_exeext'
8191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192   (eval $ac_try) 2>&5
8193   ac_status=$?
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); }; }; then
8196   ac_R_nospace=yes
8197 else
8198   echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201 ac_R_nospace=no
8202 fi
8203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8204       if test $ac_R_nospace = yes; then
8205         echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8207         X_LIBS="$X_LIBS -R$x_libraries"
8208       else
8209         LIBS="$ac_xsave_LIBS -R $x_libraries"
8210         cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217
8218 int
8219 main ()
8220 {
8221
8222   ;
8223   return 0;
8224 }
8225 _ACEOF
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8228   (eval $ac_link) 2>&5
8229   ac_status=$?
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); } &&
8232          { ac_try='test -s conftest$ac_exeext'
8233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234   (eval $ac_try) 2>&5
8235   ac_status=$?
8236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237   (exit $ac_status); }; }; then
8238   ac_R_space=yes
8239 else
8240   echo "$as_me: failed program was:" >&5
8241 sed 's/^/| /' conftest.$ac_ext >&5
8242
8243 ac_R_space=no
8244 fi
8245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8246         if test $ac_R_space = yes; then
8247           echo "$as_me:$LINENO: result: yes" >&5
8248 echo "${ECHO_T}yes" >&6
8249           X_LIBS="$X_LIBS -R $x_libraries"
8250         else
8251           echo "$as_me:$LINENO: result: neither works" >&5
8252 echo "${ECHO_T}neither works" >&6
8253         fi
8254       fi
8255       LIBS=$ac_xsave_LIBS
8256     esac
8257   fi
8258
8259   # Check for system-dependent libraries X programs must link with.
8260   # Do this before checking for the system-independent R6 libraries
8261   # (-lICE), since we may need -lsocket or whatever for X linking.
8262
8263   if test "$ISC" = yes; then
8264     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8265   else
8266     # Martyn Johnson says this is needed for Ultrix, if the X
8267     # libraries were built with DECnet support.  And Karl Berry says
8268     # the Alpha needs dnet_stub (dnet does not exist).
8269     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8270     cat >conftest.$ac_ext <<_ACEOF
8271 #line $LINENO "configure"
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277
8278 /* Override any gcc2 internal prototype to avoid an error.  */
8279 #ifdef __cplusplus
8280 extern "C"
8281 #endif
8282 /* We use char because int might match the return type of a gcc2
8283    builtin and then its argument prototype would still apply.  */
8284 char XOpenDisplay ();
8285 int
8286 main ()
8287 {
8288 XOpenDisplay ();
8289   ;
8290   return 0;
8291 }
8292 _ACEOF
8293 rm -f conftest.$ac_objext conftest$ac_exeext
8294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8295   (eval $ac_link) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); } &&
8299          { ac_try='test -s conftest$ac_exeext'
8300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301   (eval $ac_try) 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; }; then
8305   :
8306 else
8307   echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8311 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8312 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   ac_check_lib_save_LIBS=$LIBS
8316 LIBS="-ldnet  $LIBS"
8317 cat >conftest.$ac_ext <<_ACEOF
8318 #line $LINENO "configure"
8319 /* confdefs.h.  */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h.  */
8324
8325 /* Override any gcc2 internal prototype to avoid an error.  */
8326 #ifdef __cplusplus
8327 extern "C"
8328 #endif
8329 /* We use char because int might match the return type of a gcc2
8330    builtin and then its argument prototype would still apply.  */
8331 char dnet_ntoa ();
8332 int
8333 main ()
8334 {
8335 dnet_ntoa ();
8336   ;
8337   return 0;
8338 }
8339 _ACEOF
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342   (eval $ac_link) 2>&5
8343   ac_status=$?
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } &&
8346          { ac_try='test -s conftest$ac_exeext'
8347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348   (eval $ac_try) 2>&5
8349   ac_status=$?
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); }; }; then
8352   ac_cv_lib_dnet_dnet_ntoa=yes
8353 else
8354   echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8356
8357 ac_cv_lib_dnet_dnet_ntoa=no
8358 fi
8359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8360 LIBS=$ac_check_lib_save_LIBS
8361 fi
8362 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8363 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8364 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8365   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8366 fi
8367
8368     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8369       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8370 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8371 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374   ac_check_lib_save_LIBS=$LIBS
8375 LIBS="-ldnet_stub  $LIBS"
8376 cat >conftest.$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8378 /* confdefs.h.  */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h.  */
8383
8384 /* Override any gcc2 internal prototype to avoid an error.  */
8385 #ifdef __cplusplus
8386 extern "C"
8387 #endif
8388 /* We use char because int might match the return type of a gcc2
8389    builtin and then its argument prototype would still apply.  */
8390 char dnet_ntoa ();
8391 int
8392 main ()
8393 {
8394 dnet_ntoa ();
8395   ;
8396   return 0;
8397 }
8398 _ACEOF
8399 rm -f conftest.$ac_objext conftest$ac_exeext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401   (eval $ac_link) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); } &&
8405          { ac_try='test -s conftest$ac_exeext'
8406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407   (eval $ac_try) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416 ac_cv_lib_dnet_stub_dnet_ntoa=no
8417 fi
8418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8419 LIBS=$ac_check_lib_save_LIBS
8420 fi
8421 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8422 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8423 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8424   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8425 fi
8426
8427     fi
8428 fi
8429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8430     LIBS="$ac_xsave_LIBS"
8431
8432     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8433     # to get the SysV transport functions.
8434     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8435     # needs -lnsl.
8436     # The nsl library prevents programs from opening the X display
8437     # on Irix 5.2, according to T.E. Dickey.
8438     # The functions gethostbyname, getservbyname, and inet_addr are
8439     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8440     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8441 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8442 if test "${ac_cv_func_gethostbyname+set}" = set; then
8443   echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445   cat >conftest.$ac_ext <<_ACEOF
8446 #line $LINENO "configure"
8447 /* confdefs.h.  */
8448 _ACEOF
8449 cat confdefs.h >>conftest.$ac_ext
8450 cat >>conftest.$ac_ext <<_ACEOF
8451 /* end confdefs.h.  */
8452 /* System header to define __stub macros and hopefully few prototypes,
8453     which can conflict with char gethostbyname (); below.
8454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8455     <limits.h> exists even on freestanding compilers.  */
8456 #ifdef __STDC__
8457 # include <limits.h>
8458 #else
8459 # include <assert.h>
8460 #endif
8461 /* Override any gcc2 internal prototype to avoid an error.  */
8462 #ifdef __cplusplus
8463 extern "C"
8464 {
8465 #endif
8466 /* We use char because int might match the return type of a gcc2
8467    builtin and then its argument prototype would still apply.  */
8468 char gethostbyname ();
8469 /* The GNU C library defines this for functions which it implements
8470     to always fail with ENOSYS.  Some functions are actually named
8471     something starting with __ and the normal name is an alias.  */
8472 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8473 choke me
8474 #else
8475 char (*f) () = gethostbyname;
8476 #endif
8477 #ifdef __cplusplus
8478 }
8479 #endif
8480
8481 int
8482 main ()
8483 {
8484 return f != gethostbyname;
8485   ;
8486   return 0;
8487 }
8488 _ACEOF
8489 rm -f conftest.$ac_objext conftest$ac_exeext
8490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8491   (eval $ac_link) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); } &&
8495          { ac_try='test -s conftest$ac_exeext'
8496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8497   (eval $ac_try) 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); }; }; then
8501   ac_cv_func_gethostbyname=yes
8502 else
8503   echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8505
8506 ac_cv_func_gethostbyname=no
8507 fi
8508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8509 fi
8510 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8511 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8512
8513     if test $ac_cv_func_gethostbyname = no; then
8514       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8515 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8516 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   ac_check_lib_save_LIBS=$LIBS
8520 LIBS="-lnsl  $LIBS"
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line $LINENO "configure"
8523 /* confdefs.h.  */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h.  */
8528
8529 /* Override any gcc2 internal prototype to avoid an error.  */
8530 #ifdef __cplusplus
8531 extern "C"
8532 #endif
8533 /* We use char because int might match the return type of a gcc2
8534    builtin and then its argument prototype would still apply.  */
8535 char gethostbyname ();
8536 int
8537 main ()
8538 {
8539 gethostbyname ();
8540   ;
8541   return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546   (eval $ac_link) 2>&5
8547   ac_status=$?
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); } &&
8550          { ac_try='test -s conftest$ac_exeext'
8551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552   (eval $ac_try) 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); }; }; then
8556   ac_cv_lib_nsl_gethostbyname=yes
8557 else
8558   echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561 ac_cv_lib_nsl_gethostbyname=no
8562 fi
8563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8564 LIBS=$ac_check_lib_save_LIBS
8565 fi
8566 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8567 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8568 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8569   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8570 fi
8571
8572       if test $ac_cv_lib_nsl_gethostbyname = no; then
8573         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8574 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8575 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   ac_check_lib_save_LIBS=$LIBS
8579 LIBS="-lbsd  $LIBS"
8580 cat >conftest.$ac_ext <<_ACEOF
8581 #line $LINENO "configure"
8582 /* confdefs.h.  */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h.  */
8587
8588 /* Override any gcc2 internal prototype to avoid an error.  */
8589 #ifdef __cplusplus
8590 extern "C"
8591 #endif
8592 /* We use char because int might match the return type of a gcc2
8593    builtin and then its argument prototype would still apply.  */
8594 char gethostbyname ();
8595 int
8596 main ()
8597 {
8598 gethostbyname ();
8599   ;
8600   return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605   (eval $ac_link) 2>&5
8606   ac_status=$?
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } &&
8609          { ac_try='test -s conftest$ac_exeext'
8610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611   (eval $ac_try) 2>&5
8612   ac_status=$?
8613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614   (exit $ac_status); }; }; then
8615   ac_cv_lib_bsd_gethostbyname=yes
8616 else
8617   echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620 ac_cv_lib_bsd_gethostbyname=no
8621 fi
8622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8623 LIBS=$ac_check_lib_save_LIBS
8624 fi
8625 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8626 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8627 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8628   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8629 fi
8630
8631       fi
8632     fi
8633
8634     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8635     # socket/setsockopt and other routines are undefined under SCO ODT
8636     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8637     # on later versions), says Simon Leinen: it contains gethostby*
8638     # variants that don't use the name server (or something).  -lsocket
8639     # must be given before -lnsl if both are needed.  We assume that
8640     # if connect needs -lnsl, so does gethostbyname.
8641     echo "$as_me:$LINENO: checking for connect" >&5
8642 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8643 if test "${ac_cv_func_connect+set}" = set; then
8644   echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646   cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8648 /* confdefs.h.  */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h.  */
8653 /* System header to define __stub macros and hopefully few prototypes,
8654     which can conflict with char connect (); below.
8655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8656     <limits.h> exists even on freestanding compilers.  */
8657 #ifdef __STDC__
8658 # include <limits.h>
8659 #else
8660 # include <assert.h>
8661 #endif
8662 /* Override any gcc2 internal prototype to avoid an error.  */
8663 #ifdef __cplusplus
8664 extern "C"
8665 {
8666 #endif
8667 /* We use char because int might match the return type of a gcc2
8668    builtin and then its argument prototype would still apply.  */
8669 char connect ();
8670 /* The GNU C library defines this for functions which it implements
8671     to always fail with ENOSYS.  Some functions are actually named
8672     something starting with __ and the normal name is an alias.  */
8673 #if defined (__stub_connect) || defined (__stub___connect)
8674 choke me
8675 #else
8676 char (*f) () = connect;
8677 #endif
8678 #ifdef __cplusplus
8679 }
8680 #endif
8681
8682 int
8683 main ()
8684 {
8685 return f != connect;
8686   ;
8687   return 0;
8688 }
8689 _ACEOF
8690 rm -f conftest.$ac_objext conftest$ac_exeext
8691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8692   (eval $ac_link) 2>&5
8693   ac_status=$?
8694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695   (exit $ac_status); } &&
8696          { ac_try='test -s conftest$ac_exeext'
8697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698   (eval $ac_try) 2>&5
8699   ac_status=$?
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); }; }; then
8702   ac_cv_func_connect=yes
8703 else
8704   echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8706
8707 ac_cv_func_connect=no
8708 fi
8709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8710 fi
8711 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8712 echo "${ECHO_T}$ac_cv_func_connect" >&6
8713
8714     if test $ac_cv_func_connect = no; then
8715       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8716 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8717 if test "${ac_cv_lib_socket_connect+set}" = set; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720   ac_check_lib_save_LIBS=$LIBS
8721 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line $LINENO "configure"
8724 /* confdefs.h.  */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h.  */
8729
8730 /* Override any gcc2 internal prototype to avoid an error.  */
8731 #ifdef __cplusplus
8732 extern "C"
8733 #endif
8734 /* We use char because int might match the return type of a gcc2
8735    builtin and then its argument prototype would still apply.  */
8736 char connect ();
8737 int
8738 main ()
8739 {
8740 connect ();
8741   ;
8742   return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8747   (eval $ac_link) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); } &&
8751          { ac_try='test -s conftest$ac_exeext'
8752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753   (eval $ac_try) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); }; }; then
8757   ac_cv_lib_socket_connect=yes
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762 ac_cv_lib_socket_connect=no
8763 fi
8764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8765 LIBS=$ac_check_lib_save_LIBS
8766 fi
8767 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8768 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8769 if test $ac_cv_lib_socket_connect = yes; then
8770   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8771 fi
8772
8773     fi
8774
8775     # Guillermo Gomez says -lposix is necessary on A/UX.
8776     echo "$as_me:$LINENO: checking for remove" >&5
8777 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8778 if test "${ac_cv_func_remove+set}" = set; then
8779   echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781   cat >conftest.$ac_ext <<_ACEOF
8782 #line $LINENO "configure"
8783 /* confdefs.h.  */
8784 _ACEOF
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h.  */
8788 /* System header to define __stub macros and hopefully few prototypes,
8789     which can conflict with char remove (); below.
8790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8791     <limits.h> exists even on freestanding compilers.  */
8792 #ifdef __STDC__
8793 # include <limits.h>
8794 #else
8795 # include <assert.h>
8796 #endif
8797 /* Override any gcc2 internal prototype to avoid an error.  */
8798 #ifdef __cplusplus
8799 extern "C"
8800 {
8801 #endif
8802 /* We use char because int might match the return type of a gcc2
8803    builtin and then its argument prototype would still apply.  */
8804 char remove ();
8805 /* The GNU C library defines this for functions which it implements
8806     to always fail with ENOSYS.  Some functions are actually named
8807     something starting with __ and the normal name is an alias.  */
8808 #if defined (__stub_remove) || defined (__stub___remove)
8809 choke me
8810 #else
8811 char (*f) () = remove;
8812 #endif
8813 #ifdef __cplusplus
8814 }
8815 #endif
8816
8817 int
8818 main ()
8819 {
8820 return f != remove;
8821   ;
8822   return 0;
8823 }
8824 _ACEOF
8825 rm -f conftest.$ac_objext conftest$ac_exeext
8826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8827   (eval $ac_link) 2>&5
8828   ac_status=$?
8829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); } &&
8831          { ac_try='test -s conftest$ac_exeext'
8832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833   (eval $ac_try) 2>&5
8834   ac_status=$?
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); }; }; then
8837   ac_cv_func_remove=yes
8838 else
8839   echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8841
8842 ac_cv_func_remove=no
8843 fi
8844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8845 fi
8846 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8847 echo "${ECHO_T}$ac_cv_func_remove" >&6
8848
8849     if test $ac_cv_func_remove = no; then
8850       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8851 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8852 if test "${ac_cv_lib_posix_remove+set}" = set; then
8853   echo $ECHO_N "(cached) $ECHO_C" >&6
8854 else
8855   ac_check_lib_save_LIBS=$LIBS
8856 LIBS="-lposix  $LIBS"
8857 cat >conftest.$ac_ext <<_ACEOF
8858 #line $LINENO "configure"
8859 /* confdefs.h.  */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h.  */
8864
8865 /* Override any gcc2 internal prototype to avoid an error.  */
8866 #ifdef __cplusplus
8867 extern "C"
8868 #endif
8869 /* We use char because int might match the return type of a gcc2
8870    builtin and then its argument prototype would still apply.  */
8871 char remove ();
8872 int
8873 main ()
8874 {
8875 remove ();
8876   ;
8877   return 0;
8878 }
8879 _ACEOF
8880 rm -f conftest.$ac_objext conftest$ac_exeext
8881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8882   (eval $ac_link) 2>&5
8883   ac_status=$?
8884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); } &&
8886          { ac_try='test -s conftest$ac_exeext'
8887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888   (eval $ac_try) 2>&5
8889   ac_status=$?
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); }; }; then
8892   ac_cv_lib_posix_remove=yes
8893 else
8894   echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8896
8897 ac_cv_lib_posix_remove=no
8898 fi
8899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8900 LIBS=$ac_check_lib_save_LIBS
8901 fi
8902 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8903 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8904 if test $ac_cv_lib_posix_remove = yes; then
8905   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8906 fi
8907
8908     fi
8909
8910     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8911     echo "$as_me:$LINENO: checking for shmat" >&5
8912 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8913 if test "${ac_cv_func_shmat+set}" = set; then
8914   echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916   cat >conftest.$ac_ext <<_ACEOF
8917 #line $LINENO "configure"
8918 /* confdefs.h.  */
8919 _ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h.  */
8923 /* System header to define __stub macros and hopefully few prototypes,
8924     which can conflict with char shmat (); below.
8925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8926     <limits.h> exists even on freestanding compilers.  */
8927 #ifdef __STDC__
8928 # include <limits.h>
8929 #else
8930 # include <assert.h>
8931 #endif
8932 /* Override any gcc2 internal prototype to avoid an error.  */
8933 #ifdef __cplusplus
8934 extern "C"
8935 {
8936 #endif
8937 /* We use char because int might match the return type of a gcc2
8938    builtin and then its argument prototype would still apply.  */
8939 char shmat ();
8940 /* The GNU C library defines this for functions which it implements
8941     to always fail with ENOSYS.  Some functions are actually named
8942     something starting with __ and the normal name is an alias.  */
8943 #if defined (__stub_shmat) || defined (__stub___shmat)
8944 choke me
8945 #else
8946 char (*f) () = shmat;
8947 #endif
8948 #ifdef __cplusplus
8949 }
8950 #endif
8951
8952 int
8953 main ()
8954 {
8955 return f != shmat;
8956   ;
8957   return 0;
8958 }
8959 _ACEOF
8960 rm -f conftest.$ac_objext conftest$ac_exeext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962   (eval $ac_link) 2>&5
8963   ac_status=$?
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   (exit $ac_status); } &&
8966          { ac_try='test -s conftest$ac_exeext'
8967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968   (eval $ac_try) 2>&5
8969   ac_status=$?
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); }; }; then
8972   ac_cv_func_shmat=yes
8973 else
8974   echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977 ac_cv_func_shmat=no
8978 fi
8979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8980 fi
8981 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8982 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8983
8984     if test $ac_cv_func_shmat = no; then
8985       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8986 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8987 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8988   echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8990   ac_check_lib_save_LIBS=$LIBS
8991 LIBS="-lipc  $LIBS"
8992 cat >conftest.$ac_ext <<_ACEOF
8993 #line $LINENO "configure"
8994 /* confdefs.h.  */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h.  */
8999
9000 /* Override any gcc2 internal prototype to avoid an error.  */
9001 #ifdef __cplusplus
9002 extern "C"
9003 #endif
9004 /* We use char because int might match the return type of a gcc2
9005    builtin and then its argument prototype would still apply.  */
9006 char shmat ();
9007 int
9008 main ()
9009 {
9010 shmat ();
9011   ;
9012   return 0;
9013 }
9014 _ACEOF
9015 rm -f conftest.$ac_objext conftest$ac_exeext
9016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9017   (eval $ac_link) 2>&5
9018   ac_status=$?
9019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); } &&
9021          { ac_try='test -s conftest$ac_exeext'
9022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023   (eval $ac_try) 2>&5
9024   ac_status=$?
9025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); }; }; then
9027   ac_cv_lib_ipc_shmat=yes
9028 else
9029   echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9031
9032 ac_cv_lib_ipc_shmat=no
9033 fi
9034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9036 fi
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9038 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9039 if test $ac_cv_lib_ipc_shmat = yes; then
9040   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9041 fi
9042
9043     fi
9044   fi
9045
9046   # Check for libraries that X11R6 Xt/Xaw programs need.
9047   ac_save_LDFLAGS=$LDFLAGS
9048   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9049   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9050   # check for ICE first), but we must link in the order -lSM -lICE or
9051   # we get undefined symbols.  So assume we have SM if we have ICE.
9052   # These have to be linked with before -lX11, unlike the other
9053   # libraries we check for below, so use a different variable.
9054   # John Interrante, Karl Berry
9055   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9056 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9057 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9058   echo $ECHO_N "(cached) $ECHO_C" >&6
9059 else
9060   ac_check_lib_save_LIBS=$LIBS
9061 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9062 cat >conftest.$ac_ext <<_ACEOF
9063 #line $LINENO "configure"
9064 /* confdefs.h.  */
9065 _ACEOF
9066 cat confdefs.h >>conftest.$ac_ext
9067 cat >>conftest.$ac_ext <<_ACEOF
9068 /* end confdefs.h.  */
9069
9070 /* Override any gcc2 internal prototype to avoid an error.  */
9071 #ifdef __cplusplus
9072 extern "C"
9073 #endif
9074 /* We use char because int might match the return type of a gcc2
9075    builtin and then its argument prototype would still apply.  */
9076 char IceConnectionNumber ();
9077 int
9078 main ()
9079 {
9080 IceConnectionNumber ();
9081   ;
9082   return 0;
9083 }
9084 _ACEOF
9085 rm -f conftest.$ac_objext conftest$ac_exeext
9086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9087   (eval $ac_link) 2>&5
9088   ac_status=$?
9089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090   (exit $ac_status); } &&
9091          { ac_try='test -s conftest$ac_exeext'
9092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093   (eval $ac_try) 2>&5
9094   ac_status=$?
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   (exit $ac_status); }; }; then
9097   ac_cv_lib_ICE_IceConnectionNumber=yes
9098 else
9099   echo "$as_me: failed program was:" >&5
9100 sed 's/^/| /' conftest.$ac_ext >&5
9101
9102 ac_cv_lib_ICE_IceConnectionNumber=no
9103 fi
9104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9105 LIBS=$ac_check_lib_save_LIBS
9106 fi
9107 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9108 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9109 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9110   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9111 fi
9112
9113   LDFLAGS=$ac_save_LDFLAGS
9114
9115 fi
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141 for ac_header in \
9142         assert.h \
9143         fcntl.h \
9144         grp.h \
9145         pwd.h \
9146         libc.h \
9147         limits.h \
9148         stdarg.h \
9149         stdlib.h \
9150         stdint.h \
9151         string.h \
9152         termios.h \
9153         unistd.h \
9154         sys/byteorder.h \
9155         sys/ioctl.h \
9156         sys/select.h \
9157         sys/sockio.h \
9158         sys/time.h \
9159         sys/socket.h \
9160         arpa/nameser.h \
9161         resolv.h \
9162         mtio.h \
9163         sys/mtio.h \
9164         regex.h \
9165
9166 do
9167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9169   echo "$as_me:$LINENO: checking for $ac_header" >&5
9170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9171 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9172   echo $ECHO_N "(cached) $ECHO_C" >&6
9173 fi
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9176 else
9177   # Is the header compilable?
9178 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9179 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9180 cat >conftest.$ac_ext <<_ACEOF
9181 #line $LINENO "configure"
9182 /* confdefs.h.  */
9183 _ACEOF
9184 cat confdefs.h >>conftest.$ac_ext
9185 cat >>conftest.$ac_ext <<_ACEOF
9186 /* end confdefs.h.  */
9187 $ac_includes_default
9188 #include <$ac_header>
9189 _ACEOF
9190 rm -f conftest.$ac_objext
9191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9192   (eval $ac_compile) 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); } &&
9196          { ac_try='test -s conftest.$ac_objext'
9197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198   (eval $ac_try) 2>&5
9199   ac_status=$?
9200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201   (exit $ac_status); }; }; then
9202   ac_header_compiler=yes
9203 else
9204   echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9206
9207 ac_header_compiler=no
9208 fi
9209 rm -f conftest.$ac_objext conftest.$ac_ext
9210 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9211 echo "${ECHO_T}$ac_header_compiler" >&6
9212
9213 # Is the header present?
9214 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9216 cat >conftest.$ac_ext <<_ACEOF
9217 #line $LINENO "configure"
9218 /* confdefs.h.  */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h.  */
9223 #include <$ac_header>
9224 _ACEOF
9225 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9226   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9227   ac_status=$?
9228   grep -v '^ *+' conftest.er1 >conftest.err
9229   rm -f conftest.er1
9230   cat conftest.err >&5
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); } >/dev/null; then
9233   if test -s conftest.err; then
9234     ac_cpp_err=$ac_c_preproc_warn_flag
9235   else
9236     ac_cpp_err=
9237   fi
9238 else
9239   ac_cpp_err=yes
9240 fi
9241 if test -z "$ac_cpp_err"; then
9242   ac_header_preproc=yes
9243 else
9244   echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9246
9247   ac_header_preproc=no
9248 fi
9249 rm -f conftest.err conftest.$ac_ext
9250 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9251 echo "${ECHO_T}$ac_header_preproc" >&6
9252
9253 # So?  What about this header?
9254 case $ac_header_compiler:$ac_header_preproc in
9255   yes:no )
9256     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9260     (
9261       cat <<\_ASBOX
9262 ## ------------------------------------ ##
9263 ## Report this to bug-autoconf@gnu.org. ##
9264 ## ------------------------------------ ##
9265 _ASBOX
9266     ) |
9267       sed "s/^/$as_me: WARNING:     /" >&2
9268     ;;
9269   no:yes )
9270     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9271 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9272     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9273 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9274     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9276     (
9277       cat <<\_ASBOX
9278 ## ------------------------------------ ##
9279 ## Report this to bug-autoconf@gnu.org. ##
9280 ## ------------------------------------ ##
9281 _ASBOX
9282     ) |
9283       sed "s/^/$as_me: WARNING:     /" >&2
9284     ;;
9285 esac
9286 echo "$as_me:$LINENO: checking for $ac_header" >&5
9287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289   echo $ECHO_N "(cached) $ECHO_C" >&6
9290 else
9291   eval "$as_ac_Header=$ac_header_preproc"
9292 fi
9293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9294 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9295
9296 fi
9297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9298   cat >>confdefs.h <<_ACEOF
9299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9300 _ACEOF
9301
9302 fi
9303
9304 done
9305
9306 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9307 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9308 if test "${ac_cv_header_stdc+set}" = set; then
9309   echo $ECHO_N "(cached) $ECHO_C" >&6
9310 else
9311   cat >conftest.$ac_ext <<_ACEOF
9312 #line $LINENO "configure"
9313 /* confdefs.h.  */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h.  */
9318 #include <stdlib.h>
9319 #include <stdarg.h>
9320 #include <string.h>
9321 #include <float.h>
9322
9323 int
9324 main ()
9325 {
9326
9327   ;
9328   return 0;
9329 }
9330 _ACEOF
9331 rm -f conftest.$ac_objext
9332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9333   (eval $ac_compile) 2>&5
9334   ac_status=$?
9335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336   (exit $ac_status); } &&
9337          { ac_try='test -s conftest.$ac_objext'
9338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339   (eval $ac_try) 2>&5
9340   ac_status=$?
9341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342   (exit $ac_status); }; }; then
9343   ac_cv_header_stdc=yes
9344 else
9345   echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9347
9348 ac_cv_header_stdc=no
9349 fi
9350 rm -f conftest.$ac_objext conftest.$ac_ext
9351
9352 if test $ac_cv_header_stdc = yes; then
9353   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9354   cat >conftest.$ac_ext <<_ACEOF
9355 #line $LINENO "configure"
9356 /* confdefs.h.  */
9357 _ACEOF
9358 cat confdefs.h >>conftest.$ac_ext
9359 cat >>conftest.$ac_ext <<_ACEOF
9360 /* end confdefs.h.  */
9361 #include <string.h>
9362
9363 _ACEOF
9364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9365   $EGREP "memchr" >/dev/null 2>&1; then
9366   :
9367 else
9368   ac_cv_header_stdc=no
9369 fi
9370 rm -f conftest*
9371
9372 fi
9373
9374 if test $ac_cv_header_stdc = yes; then
9375   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9376   cat >conftest.$ac_ext <<_ACEOF
9377 #line $LINENO "configure"
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383 #include <stdlib.h>
9384
9385 _ACEOF
9386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9387   $EGREP "free" >/dev/null 2>&1; then
9388   :
9389 else
9390   ac_cv_header_stdc=no
9391 fi
9392 rm -f conftest*
9393
9394 fi
9395
9396 if test $ac_cv_header_stdc = yes; then
9397   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9398   if test "$cross_compiling" = yes; then
9399   :
9400 else
9401   cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9403 /* confdefs.h.  */
9404 _ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h.  */
9408 #include <ctype.h>
9409 #if ((' ' & 0x0FF) == 0x020)
9410 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9411 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9412 #else
9413 # define ISLOWER(c) \
9414                    (('a' <= (c) && (c) <= 'i') \
9415                      || ('j' <= (c) && (c) <= 'r') \
9416                      || ('s' <= (c) && (c) <= 'z'))
9417 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9418 #endif
9419
9420 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9421 int
9422 main ()
9423 {
9424   int i;
9425   for (i = 0; i < 256; i++)
9426     if (XOR (islower (i), ISLOWER (i))
9427         || toupper (i) != TOUPPER (i))
9428       exit(2);
9429   exit (0);
9430 }
9431 _ACEOF
9432 rm -f conftest$ac_exeext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9434   (eval $ac_link) 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439   (eval $ac_try) 2>&5
9440   ac_status=$?
9441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442   (exit $ac_status); }; }; then
9443   :
9444 else
9445   echo "$as_me: program exited with status $ac_status" >&5
9446 echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.$ac_ext >&5
9448
9449 ( exit $ac_status )
9450 ac_cv_header_stdc=no
9451 fi
9452 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9453 fi
9454 fi
9455 fi
9456 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9457 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9458 if test $ac_cv_header_stdc = yes; then
9459
9460 cat >>confdefs.h <<\_ACEOF
9461 #define STDC_HEADERS 1
9462 _ACEOF
9463
9464 fi
9465
9466 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9467 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9468 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9469   echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471   cat >conftest.$ac_ext <<_ACEOF
9472 #line $LINENO "configure"
9473 /* confdefs.h.  */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h.  */
9478 #include <sys/types.h>
9479 int
9480 main ()
9481 {
9482 return makedev(0, 0);
9483   ;
9484   return 0;
9485 }
9486 _ACEOF
9487 rm -f conftest.$ac_objext conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489   (eval $ac_link) 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); } &&
9493          { ac_try='test -s conftest$ac_exeext'
9494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9495   (eval $ac_try) 2>&5
9496   ac_status=$?
9497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498   (exit $ac_status); }; }; then
9499   ac_cv_header_sys_types_h_makedev=yes
9500 else
9501   echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ac_cv_header_sys_types_h_makedev=no
9505 fi
9506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9507
9508 fi
9509 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9510 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9511
9512 if test $ac_cv_header_sys_types_h_makedev = no; then
9513 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9514   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9515 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9516 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9517   echo $ECHO_N "(cached) $ECHO_C" >&6
9518 fi
9519 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9520 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9521 else
9522   # Is the header compilable?
9523 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9524 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9525 cat >conftest.$ac_ext <<_ACEOF
9526 #line $LINENO "configure"
9527 /* confdefs.h.  */
9528 _ACEOF
9529 cat confdefs.h >>conftest.$ac_ext
9530 cat >>conftest.$ac_ext <<_ACEOF
9531 /* end confdefs.h.  */
9532 $ac_includes_default
9533 #include <sys/mkdev.h>
9534 _ACEOF
9535 rm -f conftest.$ac_objext
9536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9537   (eval $ac_compile) 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); } &&
9541          { ac_try='test -s conftest.$ac_objext'
9542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9543   (eval $ac_try) 2>&5
9544   ac_status=$?
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); }; }; then
9547   ac_header_compiler=yes
9548 else
9549   echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9551
9552 ac_header_compiler=no
9553 fi
9554 rm -f conftest.$ac_objext conftest.$ac_ext
9555 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9556 echo "${ECHO_T}$ac_header_compiler" >&6
9557
9558 # Is the header present?
9559 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9560 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9561 cat >conftest.$ac_ext <<_ACEOF
9562 #line $LINENO "configure"
9563 /* confdefs.h.  */
9564 _ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h.  */
9568 #include <sys/mkdev.h>
9569 _ACEOF
9570 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9571   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9572   ac_status=$?
9573   grep -v '^ *+' conftest.er1 >conftest.err
9574   rm -f conftest.er1
9575   cat conftest.err >&5
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); } >/dev/null; then
9578   if test -s conftest.err; then
9579     ac_cpp_err=$ac_c_preproc_warn_flag
9580   else
9581     ac_cpp_err=
9582   fi
9583 else
9584   ac_cpp_err=yes
9585 fi
9586 if test -z "$ac_cpp_err"; then
9587   ac_header_preproc=yes
9588 else
9589   echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9591
9592   ac_header_preproc=no
9593 fi
9594 rm -f conftest.err conftest.$ac_ext
9595 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9596 echo "${ECHO_T}$ac_header_preproc" >&6
9597
9598 # So?  What about this header?
9599 case $ac_header_compiler:$ac_header_preproc in
9600   yes:no )
9601     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9602 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9603     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9604 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9605     (
9606       cat <<\_ASBOX
9607 ## ------------------------------------ ##
9608 ## Report this to bug-autoconf@gnu.org. ##
9609 ## ------------------------------------ ##
9610 _ASBOX
9611     ) |
9612       sed "s/^/$as_me: WARNING:     /" >&2
9613     ;;
9614   no:yes )
9615     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9616 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9617     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9618 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9619     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9620 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9621     (
9622       cat <<\_ASBOX
9623 ## ------------------------------------ ##
9624 ## Report this to bug-autoconf@gnu.org. ##
9625 ## ------------------------------------ ##
9626 _ASBOX
9627     ) |
9628       sed "s/^/$as_me: WARNING:     /" >&2
9629     ;;
9630 esac
9631 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9632 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9633 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9634   echo $ECHO_N "(cached) $ECHO_C" >&6
9635 else
9636   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9637 fi
9638 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9639 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9640
9641 fi
9642 if test $ac_cv_header_sys_mkdev_h = yes; then
9643
9644 cat >>confdefs.h <<\_ACEOF
9645 #define MAJOR_IN_MKDEV 1
9646 _ACEOF
9647
9648 fi
9649
9650
9651
9652   if test $ac_cv_header_sys_mkdev_h = no; then
9653     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9654   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9655 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9656 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 fi
9659 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9660 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9661 else
9662   # Is the header compilable?
9663 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9664 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9665 cat >conftest.$ac_ext <<_ACEOF
9666 #line $LINENO "configure"
9667 /* confdefs.h.  */
9668 _ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h.  */
9672 $ac_includes_default
9673 #include <sys/sysmacros.h>
9674 _ACEOF
9675 rm -f conftest.$ac_objext
9676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9677   (eval $ac_compile) 2>&5
9678   ac_status=$?
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); } &&
9681          { ac_try='test -s conftest.$ac_objext'
9682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683   (eval $ac_try) 2>&5
9684   ac_status=$?
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); }; }; then
9687   ac_header_compiler=yes
9688 else
9689   echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692 ac_header_compiler=no
9693 fi
9694 rm -f conftest.$ac_objext conftest.$ac_ext
9695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9696 echo "${ECHO_T}$ac_header_compiler" >&6
9697
9698 # Is the header present?
9699 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9700 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9701 cat >conftest.$ac_ext <<_ACEOF
9702 #line $LINENO "configure"
9703 /* confdefs.h.  */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h.  */
9708 #include <sys/sysmacros.h>
9709 _ACEOF
9710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9711   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9712   ac_status=$?
9713   grep -v '^ *+' conftest.er1 >conftest.err
9714   rm -f conftest.er1
9715   cat conftest.err >&5
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); } >/dev/null; then
9718   if test -s conftest.err; then
9719     ac_cpp_err=$ac_c_preproc_warn_flag
9720   else
9721     ac_cpp_err=
9722   fi
9723 else
9724   ac_cpp_err=yes
9725 fi
9726 if test -z "$ac_cpp_err"; then
9727   ac_header_preproc=yes
9728 else
9729   echo "$as_me: failed program was:" >&5
9730 sed 's/^/| /' conftest.$ac_ext >&5
9731
9732   ac_header_preproc=no
9733 fi
9734 rm -f conftest.err conftest.$ac_ext
9735 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9736 echo "${ECHO_T}$ac_header_preproc" >&6
9737
9738 # So?  What about this header?
9739 case $ac_header_compiler:$ac_header_preproc in
9740   yes:no )
9741     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9742 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9743     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9744 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9745     (
9746       cat <<\_ASBOX
9747 ## ------------------------------------ ##
9748 ## Report this to bug-autoconf@gnu.org. ##
9749 ## ------------------------------------ ##
9750 _ASBOX
9751     ) |
9752       sed "s/^/$as_me: WARNING:     /" >&2
9753     ;;
9754   no:yes )
9755     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9756 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9757     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9758 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9759     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9760 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9761     (
9762       cat <<\_ASBOX
9763 ## ------------------------------------ ##
9764 ## Report this to bug-autoconf@gnu.org. ##
9765 ## ------------------------------------ ##
9766 _ASBOX
9767     ) |
9768       sed "s/^/$as_me: WARNING:     /" >&2
9769     ;;
9770 esac
9771 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9772 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9773 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9774   echo $ECHO_N "(cached) $ECHO_C" >&6
9775 else
9776   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9777 fi
9778 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9779 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9780
9781 fi
9782 if test $ac_cv_header_sys_sysmacros_h = yes; then
9783
9784 cat >>confdefs.h <<\_ACEOF
9785 #define MAJOR_IN_SYSMACROS 1
9786 _ACEOF
9787
9788 fi
9789
9790
9791   fi
9792 fi
9793
9794
9795
9796
9797
9798
9799 ac_header_dirent=no
9800 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9801   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9802 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9803 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9805   echo $ECHO_N "(cached) $ECHO_C" >&6
9806 else
9807   cat >conftest.$ac_ext <<_ACEOF
9808 #line $LINENO "configure"
9809 /* confdefs.h.  */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h.  */
9814 #include <sys/types.h>
9815 #include <$ac_hdr>
9816
9817 int
9818 main ()
9819 {
9820 if ((DIR *) 0)
9821 return 0;
9822   ;
9823   return 0;
9824 }
9825 _ACEOF
9826 rm -f conftest.$ac_objext
9827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9828   (eval $ac_compile) 2>&5
9829   ac_status=$?
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); } &&
9832          { ac_try='test -s conftest.$ac_objext'
9833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834   (eval $ac_try) 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); }; }; then
9838   eval "$as_ac_Header=yes"
9839 else
9840   echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9842
9843 eval "$as_ac_Header=no"
9844 fi
9845 rm -f conftest.$ac_objext conftest.$ac_ext
9846 fi
9847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9850   cat >>confdefs.h <<_ACEOF
9851 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9852 _ACEOF
9853
9854 ac_header_dirent=$ac_hdr; break
9855 fi
9856
9857 done
9858 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9859 if test $ac_header_dirent = dirent.h; then
9860   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9861 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9862 if test "${ac_cv_search_opendir+set}" = set; then
9863   echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865   ac_func_search_save_LIBS=$LIBS
9866 ac_cv_search_opendir=no
9867 cat >conftest.$ac_ext <<_ACEOF
9868 #line $LINENO "configure"
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874
9875 /* Override any gcc2 internal prototype to avoid an error.  */
9876 #ifdef __cplusplus
9877 extern "C"
9878 #endif
9879 /* We use char because int might match the return type of a gcc2
9880    builtin and then its argument prototype would still apply.  */
9881 char opendir ();
9882 int
9883 main ()
9884 {
9885 opendir ();
9886   ;
9887   return 0;
9888 }
9889 _ACEOF
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892   (eval $ac_link) 2>&5
9893   ac_status=$?
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); } &&
9896          { ac_try='test -s conftest$ac_exeext'
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_search_opendir="none required"
9903 else
9904   echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907 fi
9908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9909 if test "$ac_cv_search_opendir" = no; then
9910   for ac_lib in dir; do
9911     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9912     cat >conftest.$ac_ext <<_ACEOF
9913 #line $LINENO "configure"
9914 /* confdefs.h.  */
9915 _ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h.  */
9919
9920 /* Override any gcc2 internal prototype to avoid an error.  */
9921 #ifdef __cplusplus
9922 extern "C"
9923 #endif
9924 /* We use char because int might match the return type of a gcc2
9925    builtin and then its argument prototype would still apply.  */
9926 char opendir ();
9927 int
9928 main ()
9929 {
9930 opendir ();
9931   ;
9932   return 0;
9933 }
9934 _ACEOF
9935 rm -f conftest.$ac_objext conftest$ac_exeext
9936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9937   (eval $ac_link) 2>&5
9938   ac_status=$?
9939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940   (exit $ac_status); } &&
9941          { ac_try='test -s conftest$ac_exeext'
9942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943   (eval $ac_try) 2>&5
9944   ac_status=$?
9945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946   (exit $ac_status); }; }; then
9947   ac_cv_search_opendir="-l$ac_lib"
9948 break
9949 else
9950   echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 fi
9954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9955   done
9956 fi
9957 LIBS=$ac_func_search_save_LIBS
9958 fi
9959 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9960 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9961 if test "$ac_cv_search_opendir" != no; then
9962   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9963
9964 fi
9965
9966 else
9967   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9968 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9969 if test "${ac_cv_search_opendir+set}" = set; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972   ac_func_search_save_LIBS=$LIBS
9973 ac_cv_search_opendir=no
9974 cat >conftest.$ac_ext <<_ACEOF
9975 #line $LINENO "configure"
9976 /* confdefs.h.  */
9977 _ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h.  */
9981
9982 /* Override any gcc2 internal prototype to avoid an error.  */
9983 #ifdef __cplusplus
9984 extern "C"
9985 #endif
9986 /* We use char because int might match the return type of a gcc2
9987    builtin and then its argument prototype would still apply.  */
9988 char opendir ();
9989 int
9990 main ()
9991 {
9992 opendir ();
9993   ;
9994   return 0;
9995 }
9996 _ACEOF
9997 rm -f conftest.$ac_objext conftest$ac_exeext
9998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9999   (eval $ac_link) 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); } &&
10003          { ac_try='test -s conftest$ac_exeext'
10004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005   (eval $ac_try) 2>&5
10006   ac_status=$?
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); }; }; then
10009   ac_cv_search_opendir="none required"
10010 else
10011   echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10013
10014 fi
10015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10016 if test "$ac_cv_search_opendir" = no; then
10017   for ac_lib in x; do
10018     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10019     cat >conftest.$ac_ext <<_ACEOF
10020 #line $LINENO "configure"
10021 /* confdefs.h.  */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h.  */
10026
10027 /* Override any gcc2 internal prototype to avoid an error.  */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 /* We use char because int might match the return type of a gcc2
10032    builtin and then its argument prototype would still apply.  */
10033 char opendir ();
10034 int
10035 main ()
10036 {
10037 opendir ();
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>&5
10045   ac_status=$?
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); } &&
10048          { ac_try='test -s conftest$ac_exeext'
10049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050   (eval $ac_try) 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); }; }; then
10054   ac_cv_search_opendir="-l$ac_lib"
10055 break
10056 else
10057   echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060 fi
10061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10062   done
10063 fi
10064 LIBS=$ac_func_search_save_LIBS
10065 fi
10066 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10067 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10068 if test "$ac_cv_search_opendir" != no; then
10069   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10070
10071 fi
10072
10073 fi
10074
10075 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10076 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10077 if test "${ac_cv_header_stat_broken+set}" = set; then
10078   echo $ECHO_N "(cached) $ECHO_C" >&6
10079 else
10080   cat >conftest.$ac_ext <<_ACEOF
10081 #line $LINENO "configure"
10082 /* confdefs.h.  */
10083 _ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h.  */
10087 #include <sys/types.h>
10088 #include <sys/stat.h>
10089
10090 #if defined(S_ISBLK) && defined(S_IFDIR)
10091 # if S_ISBLK (S_IFDIR)
10092 You lose.
10093 # endif
10094 #endif
10095
10096 #if defined(S_ISBLK) && defined(S_IFCHR)
10097 # if S_ISBLK (S_IFCHR)
10098 You lose.
10099 # endif
10100 #endif
10101
10102 #if defined(S_ISLNK) && defined(S_IFREG)
10103 # if S_ISLNK (S_IFREG)
10104 You lose.
10105 # endif
10106 #endif
10107
10108 #if defined(S_ISSOCK) && defined(S_IFREG)
10109 # if S_ISSOCK (S_IFREG)
10110 You lose.
10111 # endif
10112 #endif
10113
10114 _ACEOF
10115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10116   $EGREP "You lose" >/dev/null 2>&1; then
10117   ac_cv_header_stat_broken=yes
10118 else
10119   ac_cv_header_stat_broken=no
10120 fi
10121 rm -f conftest*
10122
10123 fi
10124 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10125 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10126 if test $ac_cv_header_stat_broken = yes; then
10127
10128 cat >>confdefs.h <<\_ACEOF
10129 #define STAT_MACROS_BROKEN 1
10130 _ACEOF
10131
10132 fi
10133
10134 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10135 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10136 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10137   echo $ECHO_N "(cached) $ECHO_C" >&6
10138 else
10139   cat >conftest.$ac_ext <<_ACEOF
10140 #line $LINENO "configure"
10141 /* confdefs.h.  */
10142 _ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h.  */
10146 #include <sys/types.h>
10147 #include <sys/wait.h>
10148 #ifndef WEXITSTATUS
10149 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10150 #endif
10151 #ifndef WIFEXITED
10152 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10153 #endif
10154
10155 int
10156 main ()
10157 {
10158   int s;
10159   wait (&s);
10160   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10161   ;
10162   return 0;
10163 }
10164 _ACEOF
10165 rm -f conftest.$ac_objext
10166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10167   (eval $ac_compile) 2>&5
10168   ac_status=$?
10169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170   (exit $ac_status); } &&
10171          { ac_try='test -s conftest.$ac_objext'
10172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173   (eval $ac_try) 2>&5
10174   ac_status=$?
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); }; }; then
10177   ac_cv_header_sys_wait_h=yes
10178 else
10179   echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10181
10182 ac_cv_header_sys_wait_h=no
10183 fi
10184 rm -f conftest.$ac_objext conftest.$ac_ext
10185 fi
10186 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10187 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10188 if test $ac_cv_header_sys_wait_h = yes; then
10189
10190 cat >>confdefs.h <<\_ACEOF
10191 #define HAVE_SYS_WAIT_H 1
10192 _ACEOF
10193
10194 fi
10195
10196 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10197 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10198 if test "${ac_cv_header_time+set}" = set; then
10199   echo $ECHO_N "(cached) $ECHO_C" >&6
10200 else
10201   cat >conftest.$ac_ext <<_ACEOF
10202 #line $LINENO "configure"
10203 /* confdefs.h.  */
10204 _ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h.  */
10208 #include <sys/types.h>
10209 #include <sys/time.h>
10210 #include <time.h>
10211
10212 int
10213 main ()
10214 {
10215 if ((struct tm *) 0)
10216 return 0;
10217   ;
10218   return 0;
10219 }
10220 _ACEOF
10221 rm -f conftest.$ac_objext
10222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10223   (eval $ac_compile) 2>&5
10224   ac_status=$?
10225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226   (exit $ac_status); } &&
10227          { ac_try='test -s conftest.$ac_objext'
10228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229   (eval $ac_try) 2>&5
10230   ac_status=$?
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); }; }; then
10233   ac_cv_header_time=yes
10234 else
10235   echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10237
10238 ac_cv_header_time=no
10239 fi
10240 rm -f conftest.$ac_objext conftest.$ac_ext
10241 fi
10242 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10243 echo "${ECHO_T}$ac_cv_header_time" >&6
10244 if test $ac_cv_header_time = yes; then
10245
10246 cat >>confdefs.h <<\_ACEOF
10247 #define TIME_WITH_SYS_TIME 1
10248 _ACEOF
10249
10250 fi
10251
10252
10253 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10254 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10255 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10256   echo $ECHO_N "(cached) $ECHO_C" >&6
10257 else
10258   cat >conftest.$ac_ext <<_ACEOF
10259 #line $LINENO "configure"
10260 /* confdefs.h.  */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h.  */
10265 $ac_includes_default
10266 int
10267 main ()
10268 {
10269 static struct stat ac_aggr;
10270 if (ac_aggr.st_blksize)
10271 return 0;
10272   ;
10273   return 0;
10274 }
10275 _ACEOF
10276 rm -f conftest.$ac_objext
10277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10278   (eval $ac_compile) 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); } &&
10282          { ac_try='test -s conftest.$ac_objext'
10283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284   (eval $ac_try) 2>&5
10285   ac_status=$?
10286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287   (exit $ac_status); }; }; then
10288   ac_cv_member_struct_stat_st_blksize=yes
10289 else
10290   echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10292
10293 cat >conftest.$ac_ext <<_ACEOF
10294 #line $LINENO "configure"
10295 /* confdefs.h.  */
10296 _ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h.  */
10300 $ac_includes_default
10301 int
10302 main ()
10303 {
10304 static struct stat ac_aggr;
10305 if (sizeof ac_aggr.st_blksize)
10306 return 0;
10307   ;
10308   return 0;
10309 }
10310 _ACEOF
10311 rm -f conftest.$ac_objext
10312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10313   (eval $ac_compile) 2>&5
10314   ac_status=$?
10315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316   (exit $ac_status); } &&
10317          { ac_try='test -s conftest.$ac_objext'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; }; then
10323   ac_cv_member_struct_stat_st_blksize=yes
10324 else
10325   echo "$as_me: failed program was:" >&5
10326 sed 's/^/| /' conftest.$ac_ext >&5
10327
10328 ac_cv_member_struct_stat_st_blksize=no
10329 fi
10330 rm -f conftest.$ac_objext conftest.$ac_ext
10331 fi
10332 rm -f conftest.$ac_objext conftest.$ac_ext
10333 fi
10334 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10335 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10336 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10337
10338 cat >>confdefs.h <<_ACEOF
10339 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10340 _ACEOF
10341
10342
10343 cat >>confdefs.h <<\_ACEOF
10344 #define HAVE_ST_BLKSIZE 1
10345 _ACEOF
10346
10347 fi
10348
10349
10350 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10351 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10352 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10353   echo $ECHO_N "(cached) $ECHO_C" >&6
10354 else
10355   cat >conftest.$ac_ext <<_ACEOF
10356 #line $LINENO "configure"
10357 /* confdefs.h.  */
10358 _ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h.  */
10362 $ac_includes_default
10363 int
10364 main ()
10365 {
10366 static struct stat ac_aggr;
10367 if (ac_aggr.st_blocks)
10368 return 0;
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 rm -f conftest.$ac_objext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10375   (eval $ac_compile) 2>&5
10376   ac_status=$?
10377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378   (exit $ac_status); } &&
10379          { ac_try='test -s conftest.$ac_objext'
10380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381   (eval $ac_try) 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); }; }; then
10385   ac_cv_member_struct_stat_st_blocks=yes
10386 else
10387   echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10389
10390 cat >conftest.$ac_ext <<_ACEOF
10391 #line $LINENO "configure"
10392 /* confdefs.h.  */
10393 _ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h.  */
10397 $ac_includes_default
10398 int
10399 main ()
10400 {
10401 static struct stat ac_aggr;
10402 if (sizeof ac_aggr.st_blocks)
10403 return 0;
10404   ;
10405   return 0;
10406 }
10407 _ACEOF
10408 rm -f conftest.$ac_objext
10409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10410   (eval $ac_compile) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); } &&
10414          { ac_try='test -s conftest.$ac_objext'
10415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416   (eval $ac_try) 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); }; }; then
10420   ac_cv_member_struct_stat_st_blocks=yes
10421 else
10422   echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10424
10425 ac_cv_member_struct_stat_st_blocks=no
10426 fi
10427 rm -f conftest.$ac_objext conftest.$ac_ext
10428 fi
10429 rm -f conftest.$ac_objext conftest.$ac_ext
10430 fi
10431 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10432 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10433 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10434
10435 cat >>confdefs.h <<_ACEOF
10436 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10437 _ACEOF
10438
10439
10440 cat >>confdefs.h <<\_ACEOF
10441 #define HAVE_ST_BLOCKS 1
10442 _ACEOF
10443
10444 else
10445   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10446 fi
10447
10448
10449 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10450 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10451 if test "${ac_cv_struct_tm+set}" = set; then
10452   echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454   cat >conftest.$ac_ext <<_ACEOF
10455 #line $LINENO "configure"
10456 /* confdefs.h.  */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h.  */
10461 #include <sys/types.h>
10462 #include <time.h>
10463
10464 int
10465 main ()
10466 {
10467 struct tm *tp; tp->tm_sec;
10468   ;
10469   return 0;
10470 }
10471 _ACEOF
10472 rm -f conftest.$ac_objext
10473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10474   (eval $ac_compile) 2>&5
10475   ac_status=$?
10476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477   (exit $ac_status); } &&
10478          { ac_try='test -s conftest.$ac_objext'
10479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480   (eval $ac_try) 2>&5
10481   ac_status=$?
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); }; }; then
10484   ac_cv_struct_tm=time.h
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489 ac_cv_struct_tm=sys/time.h
10490 fi
10491 rm -f conftest.$ac_objext conftest.$ac_ext
10492 fi
10493 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10494 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10495 if test $ac_cv_struct_tm = sys/time.h; then
10496
10497 cat >>confdefs.h <<\_ACEOF
10498 #define TM_IN_SYS_TIME 1
10499 _ACEOF
10500
10501 fi
10502
10503 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10504 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10505 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10506   echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508   cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515 #include <sys/types.h>
10516 #include <$ac_cv_struct_tm>
10517
10518
10519 int
10520 main ()
10521 {
10522 static struct tm ac_aggr;
10523 if (ac_aggr.tm_zone)
10524 return 0;
10525   ;
10526   return 0;
10527 }
10528 _ACEOF
10529 rm -f conftest.$ac_objext
10530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10531   (eval $ac_compile) 2>&5
10532   ac_status=$?
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); } &&
10535          { ac_try='test -s conftest.$ac_objext'
10536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537   (eval $ac_try) 2>&5
10538   ac_status=$?
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); }; }; then
10541   ac_cv_member_struct_tm_tm_zone=yes
10542 else
10543   echo "$as_me: failed program was:" >&5
10544 sed 's/^/| /' conftest.$ac_ext >&5
10545
10546 cat >conftest.$ac_ext <<_ACEOF
10547 #line $LINENO "configure"
10548 /* confdefs.h.  */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h.  */
10553 #include <sys/types.h>
10554 #include <$ac_cv_struct_tm>
10555
10556
10557 int
10558 main ()
10559 {
10560 static struct tm ac_aggr;
10561 if (sizeof ac_aggr.tm_zone)
10562 return 0;
10563   ;
10564   return 0;
10565 }
10566 _ACEOF
10567 rm -f conftest.$ac_objext
10568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10569   (eval $ac_compile) 2>&5
10570   ac_status=$?
10571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572   (exit $ac_status); } &&
10573          { ac_try='test -s conftest.$ac_objext'
10574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575   (eval $ac_try) 2>&5
10576   ac_status=$?
10577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578   (exit $ac_status); }; }; then
10579   ac_cv_member_struct_tm_tm_zone=yes
10580 else
10581   echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.$ac_ext >&5
10583
10584 ac_cv_member_struct_tm_tm_zone=no
10585 fi
10586 rm -f conftest.$ac_objext conftest.$ac_ext
10587 fi
10588 rm -f conftest.$ac_objext conftest.$ac_ext
10589 fi
10590 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10591 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10592 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10593
10594 cat >>confdefs.h <<_ACEOF
10595 #define HAVE_STRUCT_TM_TM_ZONE 1
10596 _ACEOF
10597
10598
10599 fi
10600
10601 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10602
10603 cat >>confdefs.h <<\_ACEOF
10604 #define HAVE_TM_ZONE 1
10605 _ACEOF
10606
10607 else
10608   echo "$as_me:$LINENO: checking for tzname" >&5
10609 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10610 if test "${ac_cv_var_tzname+set}" = set; then
10611   echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613   cat >conftest.$ac_ext <<_ACEOF
10614 #line $LINENO "configure"
10615 /* confdefs.h.  */
10616 _ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h.  */
10620 #include <time.h>
10621 #ifndef tzname /* For SGI.  */
10622 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10623 #endif
10624
10625 int
10626 main ()
10627 {
10628 atoi(*tzname);
10629   ;
10630   return 0;
10631 }
10632 _ACEOF
10633 rm -f conftest.$ac_objext conftest$ac_exeext
10634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10635   (eval $ac_link) 2>&5
10636   ac_status=$?
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); } &&
10639          { ac_try='test -s conftest$ac_exeext'
10640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641   (eval $ac_try) 2>&5
10642   ac_status=$?
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); }; }; then
10645   ac_cv_var_tzname=yes
10646 else
10647   echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10649
10650 ac_cv_var_tzname=no
10651 fi
10652 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10653 fi
10654 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10655 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10656   if test $ac_cv_var_tzname = yes; then
10657
10658 cat >>confdefs.h <<\_ACEOF
10659 #define HAVE_TZNAME 1
10660 _ACEOF
10661
10662   fi
10663 fi
10664
10665
10666 echo "$as_me:$LINENO: checking for utime.h" >&5
10667 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10668 if test "${ba_cv_header_utime_h+set}" = set; then
10669   echo $ECHO_N "(cached) $ECHO_C" >&6
10670 else
10671   cat >conftest.$ac_ext <<_ACEOF
10672 #line $LINENO "configure"
10673 /* confdefs.h.  */
10674 _ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h.  */
10678
10679 #include <sys/types.h>
10680 #include <utime.h>
10681 int
10682 main ()
10683 {
10684 struct utimbuf foo
10685   ;
10686   return 0;
10687 }
10688 _ACEOF
10689 rm -f conftest.$ac_objext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10691   (eval $ac_compile) 2>&5
10692   ac_status=$?
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); } &&
10695          { ac_try='test -s conftest.$ac_objext'
10696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697   (eval $ac_try) 2>&5
10698   ac_status=$?
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); }; }; then
10701   ba_cv_header_utime_h=yes
10702 else
10703   echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10705
10706 ba_cv_header_utime_h=no
10707 fi
10708 rm -f conftest.$ac_objext conftest.$ac_ext
10709 fi
10710 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10711 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10712 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10713 #define HAVE_UTIME_H 1
10714 _ACEOF
10715
10716
10717 echo "$as_me:$LINENO: checking for socklen_t" >&5
10718 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10719 if test "${ba_cv_header_socklen_t+set}" = set; then
10720   echo $ECHO_N "(cached) $ECHO_C" >&6
10721 else
10722   cat >conftest.$ac_ext <<_ACEOF
10723 #line $LINENO "configure"
10724 /* confdefs.h.  */
10725 _ACEOF
10726 cat confdefs.h >>conftest.$ac_ext
10727 cat >>conftest.$ac_ext <<_ACEOF
10728 /* end confdefs.h.  */
10729
10730 #include <sys/types.h>
10731 #include <sys/socket.h>
10732 int
10733 main ()
10734 {
10735 socklen_t x
10736   ;
10737   return 0;
10738 }
10739 _ACEOF
10740 rm -f conftest.$ac_objext
10741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10742   (eval $ac_compile) 2>&5
10743   ac_status=$?
10744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745   (exit $ac_status); } &&
10746          { ac_try='test -s conftest.$ac_objext'
10747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748   (eval $ac_try) 2>&5
10749   ac_status=$?
10750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751   (exit $ac_status); }; }; then
10752   ba_cv_header_socklen_t=yes
10753 else
10754   echo "$as_me: failed program was:" >&5
10755 sed 's/^/| /' conftest.$ac_ext >&5
10756
10757 ba_cv_header_socklen_t=no
10758 fi
10759 rm -f conftest.$ac_objext conftest.$ac_ext
10760 fi
10761 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10762 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10763 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10764 #define HAVE_SOCKLEN_T 1
10765 _ACEOF
10766
10767
10768 echo "$as_me:$LINENO: checking for bigendian" >&5
10769 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10770 if test "${ba_cv_bigendian+set}" = set; then
10771   echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773   if test "$cross_compiling" = yes; then
10774   ba_cv_bigendian=no
10775 else
10776   cat >conftest.$ac_ext <<_ACEOF
10777 #line $LINENO "configure"
10778 /* confdefs.h.  */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h.  */
10783 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10784 _ACEOF
10785 rm -f conftest$ac_exeext
10786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10787   (eval $ac_link) 2>&5
10788   ac_status=$?
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10792   (eval $ac_try) 2>&5
10793   ac_status=$?
10794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795   (exit $ac_status); }; }; then
10796   ba_cv_bigendian=yes
10797 else
10798   echo "$as_me: program exited with status $ac_status" >&5
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10801
10802 ( exit $ac_status )
10803 ba_cv_bigendian=no
10804 fi
10805 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10806 fi
10807 fi
10808 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10809 echo "${ECHO_T}$ba_cv_bigendian" >&6
10810 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10811 #define HAVE_BIGENDIAN 1
10812 _ACEOF
10813
10814
10815
10816 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10817 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10818 if test "${ac_cv_c_const+set}" = set; then
10819   echo $ECHO_N "(cached) $ECHO_C" >&6
10820 else
10821   cat >conftest.$ac_ext <<_ACEOF
10822 #line $LINENO "configure"
10823 /* confdefs.h.  */
10824 _ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h.  */
10828
10829 int
10830 main ()
10831 {
10832 /* FIXME: Include the comments suggested by Paul. */
10833 #ifndef __cplusplus
10834   /* Ultrix mips cc rejects this.  */
10835   typedef int charset[2];
10836   const charset x;
10837   /* SunOS 4.1.1 cc rejects this.  */
10838   char const *const *ccp;
10839   char **p;
10840   /* NEC SVR4.0.2 mips cc rejects this.  */
10841   struct point {int x, y;};
10842   static struct point const zero = {0,0};
10843   /* AIX XL C 1.02.0.0 rejects this.
10844      It does not let you subtract one const X* pointer from another in
10845      an arm of an if-expression whose if-part is not a constant
10846      expression */
10847   const char *g = "string";
10848   ccp = &g + (g ? g-g : 0);
10849   /* HPUX 7.0 cc rejects these. */
10850   ++ccp;
10851   p = (char**) ccp;
10852   ccp = (char const *const *) p;
10853   { /* SCO 3.2v4 cc rejects this.  */
10854     char *t;
10855     char const *s = 0 ? (char *) 0 : (char const *) 0;
10856
10857     *t++ = 0;
10858   }
10859   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10860     int x[] = {25, 17};
10861     const int *foo = &x[0];
10862     ++foo;
10863   }
10864   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10865     typedef const int *iptr;
10866     iptr p = 0;
10867     ++p;
10868   }
10869   { /* AIX XL C 1.02.0.0 rejects this saying
10870        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10871     struct s { int j; const int *ap[3]; };
10872     struct s *b; b->j = 5;
10873   }
10874   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10875     const int foo = 10;
10876   }
10877 #endif
10878
10879   ;
10880   return 0;
10881 }
10882 _ACEOF
10883 rm -f conftest.$ac_objext
10884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10885   (eval $ac_compile) 2>&5
10886   ac_status=$?
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); } &&
10889          { ac_try='test -s conftest.$ac_objext'
10890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891   (eval $ac_try) 2>&5
10892   ac_status=$?
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); }; }; then
10895   ac_cv_c_const=yes
10896 else
10897   echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10899
10900 ac_cv_c_const=no
10901 fi
10902 rm -f conftest.$ac_objext conftest.$ac_ext
10903 fi
10904 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10905 echo "${ECHO_T}$ac_cv_c_const" >&6
10906 if test $ac_cv_c_const = no; then
10907
10908 cat >>confdefs.h <<\_ACEOF
10909 #define const
10910 _ACEOF
10911
10912 fi
10913
10914
10915
10916 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10917 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10918 fstype=no
10919 # The order of these tests is important.
10920 cat >conftest.$ac_ext <<_ACEOF
10921 #line $LINENO "configure"
10922 /* confdefs.h.  */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h.  */
10927 #include <sys/statvfs.h>
10928 #include <sys/fstyp.h>
10929 _ACEOF
10930 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10931   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10932   ac_status=$?
10933   grep -v '^ *+' conftest.er1 >conftest.err
10934   rm -f conftest.er1
10935   cat conftest.err >&5
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); } >/dev/null; then
10938   if test -s conftest.err; then
10939     ac_cpp_err=$ac_c_preproc_warn_flag
10940   else
10941     ac_cpp_err=
10942   fi
10943 else
10944   ac_cpp_err=yes
10945 fi
10946 if test -z "$ac_cpp_err"; then
10947   cat >>confdefs.h <<\_ACEOF
10948 #define FSTYPE_STATVFS 1
10949 _ACEOF
10950  fstype=SVR4
10951 else
10952   echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10954
10955
10956 fi
10957 rm -f conftest.err conftest.$ac_ext
10958 if test $fstype = no; then
10959 cat >conftest.$ac_ext <<_ACEOF
10960 #line $LINENO "configure"
10961 /* confdefs.h.  */
10962 _ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h.  */
10966 #include <sys/statfs.h>
10967 #include <sys/fstyp.h>
10968 _ACEOF
10969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10971   ac_status=$?
10972   grep -v '^ *+' conftest.er1 >conftest.err
10973   rm -f conftest.er1
10974   cat conftest.err >&5
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); } >/dev/null; then
10977   if test -s conftest.err; then
10978     ac_cpp_err=$ac_c_preproc_warn_flag
10979   else
10980     ac_cpp_err=
10981   fi
10982 else
10983   ac_cpp_err=yes
10984 fi
10985 if test -z "$ac_cpp_err"; then
10986   cat >>confdefs.h <<\_ACEOF
10987 #define FSTYPE_USG_STATFS 1
10988 _ACEOF
10989  fstype=SVR3
10990 else
10991   echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10993
10994
10995 fi
10996 rm -f conftest.err conftest.$ac_ext
10997 fi
10998 if test $fstype = no; then
10999 cat >conftest.$ac_ext <<_ACEOF
11000 #line $LINENO "configure"
11001 /* confdefs.h.  */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h.  */
11006 #include <sys/statfs.h>
11007 #include <sys/vmount.h>
11008 _ACEOF
11009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11011   ac_status=$?
11012   grep -v '^ *+' conftest.er1 >conftest.err
11013   rm -f conftest.er1
11014   cat conftest.err >&5
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); } >/dev/null; then
11017   if test -s conftest.err; then
11018     ac_cpp_err=$ac_c_preproc_warn_flag
11019   else
11020     ac_cpp_err=
11021   fi
11022 else
11023   ac_cpp_err=yes
11024 fi
11025 if test -z "$ac_cpp_err"; then
11026   cat >>confdefs.h <<\_ACEOF
11027 #define FSTYPE_AIX_STATFS 1
11028 _ACEOF
11029  fstype=AIX
11030 else
11031   echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11033
11034
11035 fi
11036 rm -f conftest.err conftest.$ac_ext
11037 fi
11038 if test $fstype = no; then
11039 cat >conftest.$ac_ext <<_ACEOF
11040 #line $LINENO "configure"
11041 /* confdefs.h.  */
11042 _ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h.  */
11046 #include <mntent.h>
11047 _ACEOF
11048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11050   ac_status=$?
11051   grep -v '^ *+' conftest.er1 >conftest.err
11052   rm -f conftest.er1
11053   cat conftest.err >&5
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); } >/dev/null; then
11056   if test -s conftest.err; then
11057     ac_cpp_err=$ac_c_preproc_warn_flag
11058   else
11059     ac_cpp_err=
11060   fi
11061 else
11062   ac_cpp_err=yes
11063 fi
11064 if test -z "$ac_cpp_err"; then
11065   cat >>confdefs.h <<\_ACEOF
11066 #define FSTYPE_MNTENT 1
11067 _ACEOF
11068  fstype=4.3BSD
11069 else
11070   echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11072
11073
11074 fi
11075 rm -f conftest.err conftest.$ac_ext
11076 fi
11077 if test $fstype = no; then
11078 cat >conftest.$ac_ext <<_ACEOF
11079 #line $LINENO "configure"
11080 /* confdefs.h.  */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h.  */
11085 #include <sys/mount.h>
11086
11087 _ACEOF
11088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11089   $EGREP "f_type;" >/dev/null 2>&1; then
11090   cat >>confdefs.h <<\_ACEOF
11091 #define FSTYPE_STATFS 1
11092 _ACEOF
11093  fstype=4.4BSD/OSF1
11094 fi
11095 rm -f conftest*
11096
11097 fi
11098 if test $fstype = no; then
11099 cat >conftest.$ac_ext <<_ACEOF
11100 #line $LINENO "configure"
11101 /* confdefs.h.  */
11102 _ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h.  */
11106 #include <sys/mount.h>
11107 #include <sys/fs_types.h>
11108 _ACEOF
11109 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11110   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11111   ac_status=$?
11112   grep -v '^ *+' conftest.er1 >conftest.err
11113   rm -f conftest.er1
11114   cat conftest.err >&5
11115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116   (exit $ac_status); } >/dev/null; then
11117   if test -s conftest.err; then
11118     ac_cpp_err=$ac_c_preproc_warn_flag
11119   else
11120     ac_cpp_err=
11121   fi
11122 else
11123   ac_cpp_err=yes
11124 fi
11125 if test -z "$ac_cpp_err"; then
11126   cat >>confdefs.h <<\_ACEOF
11127 #define FSTYPE_GETMNT 1
11128 _ACEOF
11129  fstype=Ultrix
11130 else
11131   echo "$as_me: failed program was:" >&5
11132 sed 's/^/| /' conftest.$ac_ext >&5
11133
11134
11135 fi
11136 rm -f conftest.err conftest.$ac_ext
11137 fi
11138 echo "$as_me:$LINENO: result: $fstype" >&5
11139 echo "${ECHO_T}$fstype" >&6
11140
11141 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11142 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11143 if test "${ac_cv_type_signal+set}" = set; then
11144   echo $ECHO_N "(cached) $ECHO_C" >&6
11145 else
11146   cat >conftest.$ac_ext <<_ACEOF
11147 #line $LINENO "configure"
11148 /* confdefs.h.  */
11149 _ACEOF
11150 cat confdefs.h >>conftest.$ac_ext
11151 cat >>conftest.$ac_ext <<_ACEOF
11152 /* end confdefs.h.  */
11153 #include <sys/types.h>
11154 #include <signal.h>
11155 #ifdef signal
11156 # undef signal
11157 #endif
11158 #ifdef __cplusplus
11159 extern "C" void (*signal (int, void (*)(int)))(int);
11160 #else
11161 void (*signal ()) ();
11162 #endif
11163
11164 int
11165 main ()
11166 {
11167 int i;
11168   ;
11169   return 0;
11170 }
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11174   (eval $ac_compile) 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_type_signal=void
11185 else
11186   echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11188
11189 ac_cv_type_signal=int
11190 fi
11191 rm -f conftest.$ac_objext conftest.$ac_ext
11192 fi
11193 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11194 echo "${ECHO_T}$ac_cv_type_signal" >&6
11195
11196 cat >>confdefs.h <<_ACEOF
11197 #define RETSIGTYPE $ac_cv_type_signal
11198 _ACEOF
11199
11200
11201
11202 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11203 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11204 if test "${bash_cv_signal_vintage+set}" = set; then
11205   echo $ECHO_N "(cached) $ECHO_C" >&6
11206 else
11207
11208   cat >conftest.$ac_ext <<_ACEOF
11209 #line $LINENO "configure"
11210 /* confdefs.h.  */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h.  */
11215 #include <signal.h>
11216 int
11217 main ()
11218 {
11219
11220     sigset_t ss;
11221     struct sigaction sa;
11222     sigemptyset(&ss); sigsuspend(&ss);
11223     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11224     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11225
11226   ;
11227   return 0;
11228 }
11229 _ACEOF
11230 rm -f conftest.$ac_objext conftest$ac_exeext
11231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11232   (eval $ac_link) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); } &&
11236          { ac_try='test -s conftest$ac_exeext'
11237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238   (eval $ac_try) 2>&5
11239   ac_status=$?
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); }; }; then
11242   bash_cv_signal_vintage=posix
11243 else
11244   echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11246
11247
11248     cat >conftest.$ac_ext <<_ACEOF
11249 #line $LINENO "configure"
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255 #include <signal.h>
11256 int
11257 main ()
11258 {
11259
11260         int mask = sigmask(SIGINT);
11261         sigsetmask(mask); sigblock(mask); sigpause(mask);
11262
11263   ;
11264   return 0;
11265 }
11266 _ACEOF
11267 rm -f conftest.$ac_objext conftest$ac_exeext
11268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11269   (eval $ac_link) 2>&5
11270   ac_status=$?
11271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272   (exit $ac_status); } &&
11273          { ac_try='test -s conftest$ac_exeext'
11274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275   (eval $ac_try) 2>&5
11276   ac_status=$?
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); }; }; then
11279   bash_cv_signal_vintage=4.2bsd
11280 else
11281   echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11283
11284
11285       cat >conftest.$ac_ext <<_ACEOF
11286 #line $LINENO "configure"
11287 /* confdefs.h.  */
11288 _ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h.  */
11292
11293         #include <signal.h>
11294         RETSIGTYPE foo() { }
11295 int
11296 main ()
11297 {
11298
11299                 int mask = sigmask(SIGINT);
11300                 sigset(SIGINT, foo); sigrelse(SIGINT);
11301                 sighold(SIGINT); sigpause(SIGINT);
11302
11303   ;
11304   return 0;
11305 }
11306 _ACEOF
11307 rm -f conftest.$ac_objext conftest$ac_exeext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309   (eval $ac_link) 2>&5
11310   ac_status=$?
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); } &&
11313          { ac_try='test -s conftest$ac_exeext'
11314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315   (eval $ac_try) 2>&5
11316   ac_status=$?
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); }; }; then
11319   bash_cv_signal_vintage=svr3
11320 else
11321   echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11323
11324 bash_cv_signal_vintage=v7
11325
11326 fi
11327 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11328
11329 fi
11330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11331
11332 fi
11333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11334
11335 fi
11336
11337 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11338 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11339 if test "$bash_cv_signal_vintage" = posix; then
11340 cat >>confdefs.h <<\_ACEOF
11341 #define HAVE_POSIX_SIGNALS 1
11342 _ACEOF
11343
11344 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11345 cat >>confdefs.h <<\_ACEOF
11346 #define HAVE_BSD_SIGNALS 1
11347 _ACEOF
11348
11349 elif test "$bash_cv_signal_vintage" = svr3; then
11350 cat >>confdefs.h <<\_ACEOF
11351 #define HAVE_USG_SIGHOLD 1
11352 _ACEOF
11353
11354 fi
11355
11356 echo "$as_me:$LINENO: checking for mode_t" >&5
11357 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11358 if test "${ac_cv_type_mode_t+set}" = set; then
11359   echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361   cat >conftest.$ac_ext <<_ACEOF
11362 #line $LINENO "configure"
11363 /* confdefs.h.  */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h.  */
11368 $ac_includes_default
11369 int
11370 main ()
11371 {
11372 if ((mode_t *) 0)
11373   return 0;
11374 if (sizeof (mode_t))
11375   return 0;
11376   ;
11377   return 0;
11378 }
11379 _ACEOF
11380 rm -f conftest.$ac_objext
11381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11382   (eval $ac_compile) 2>&5
11383   ac_status=$?
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); } &&
11386          { ac_try='test -s conftest.$ac_objext'
11387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11388   (eval $ac_try) 2>&5
11389   ac_status=$?
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); }; }; then
11392   ac_cv_type_mode_t=yes
11393 else
11394   echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.$ac_ext >&5
11396
11397 ac_cv_type_mode_t=no
11398 fi
11399 rm -f conftest.$ac_objext conftest.$ac_ext
11400 fi
11401 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11402 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11403 if test $ac_cv_type_mode_t = yes; then
11404   :
11405 else
11406
11407 cat >>confdefs.h <<_ACEOF
11408 #define mode_t int
11409 _ACEOF
11410
11411 fi
11412
11413 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11414 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11415 if test "${ac_cv_type_uid_t+set}" = set; then
11416   echo $ECHO_N "(cached) $ECHO_C" >&6
11417 else
11418   cat >conftest.$ac_ext <<_ACEOF
11419 #line $LINENO "configure"
11420 /* confdefs.h.  */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h.  */
11425 #include <sys/types.h>
11426
11427 _ACEOF
11428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11429   $EGREP "uid_t" >/dev/null 2>&1; then
11430   ac_cv_type_uid_t=yes
11431 else
11432   ac_cv_type_uid_t=no
11433 fi
11434 rm -f conftest*
11435
11436 fi
11437 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11438 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11439 if test $ac_cv_type_uid_t = no; then
11440
11441 cat >>confdefs.h <<\_ACEOF
11442 #define uid_t int
11443 _ACEOF
11444
11445
11446 cat >>confdefs.h <<\_ACEOF
11447 #define gid_t int
11448 _ACEOF
11449
11450 fi
11451
11452 echo "$as_me:$LINENO: checking for size_t" >&5
11453 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11454 if test "${ac_cv_type_size_t+set}" = set; then
11455   echo $ECHO_N "(cached) $ECHO_C" >&6
11456 else
11457   cat >conftest.$ac_ext <<_ACEOF
11458 #line $LINENO "configure"
11459 /* confdefs.h.  */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h.  */
11464 $ac_includes_default
11465 int
11466 main ()
11467 {
11468 if ((size_t *) 0)
11469   return 0;
11470 if (sizeof (size_t))
11471   return 0;
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>&5
11479   ac_status=$?
11480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481   (exit $ac_status); } &&
11482          { ac_try='test -s conftest.$ac_objext'
11483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11484   (eval $ac_try) 2>&5
11485   ac_status=$?
11486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); }; }; then
11488   ac_cv_type_size_t=yes
11489 else
11490   echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11492
11493 ac_cv_type_size_t=no
11494 fi
11495 rm -f conftest.$ac_objext conftest.$ac_ext
11496 fi
11497 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11498 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11499 if test $ac_cv_type_size_t = yes; then
11500   :
11501 else
11502
11503 cat >>confdefs.h <<_ACEOF
11504 #define size_t unsigned
11505 _ACEOF
11506
11507 fi
11508
11509 echo "$as_me:$LINENO: checking for pid_t" >&5
11510 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11511 if test "${ac_cv_type_pid_t+set}" = set; then
11512   echo $ECHO_N "(cached) $ECHO_C" >&6
11513 else
11514   cat >conftest.$ac_ext <<_ACEOF
11515 #line $LINENO "configure"
11516 /* confdefs.h.  */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h.  */
11521 $ac_includes_default
11522 int
11523 main ()
11524 {
11525 if ((pid_t *) 0)
11526   return 0;
11527 if (sizeof (pid_t))
11528   return 0;
11529   ;
11530   return 0;
11531 }
11532 _ACEOF
11533 rm -f conftest.$ac_objext
11534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11535   (eval $ac_compile) 2>&5
11536   ac_status=$?
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); } &&
11539          { ac_try='test -s conftest.$ac_objext'
11540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541   (eval $ac_try) 2>&5
11542   ac_status=$?
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); }; }; then
11545   ac_cv_type_pid_t=yes
11546 else
11547   echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11549
11550 ac_cv_type_pid_t=no
11551 fi
11552 rm -f conftest.$ac_objext conftest.$ac_ext
11553 fi
11554 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11555 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11556 if test $ac_cv_type_pid_t = yes; then
11557   :
11558 else
11559
11560 cat >>confdefs.h <<_ACEOF
11561 #define pid_t int
11562 _ACEOF
11563
11564 fi
11565
11566 echo "$as_me:$LINENO: checking for off_t" >&5
11567 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11568 if test "${ac_cv_type_off_t+set}" = set; then
11569   echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571   cat >conftest.$ac_ext <<_ACEOF
11572 #line $LINENO "configure"
11573 /* confdefs.h.  */
11574 _ACEOF
11575 cat confdefs.h >>conftest.$ac_ext
11576 cat >>conftest.$ac_ext <<_ACEOF
11577 /* end confdefs.h.  */
11578 $ac_includes_default
11579 int
11580 main ()
11581 {
11582 if ((off_t *) 0)
11583   return 0;
11584 if (sizeof (off_t))
11585   return 0;
11586   ;
11587   return 0;
11588 }
11589 _ACEOF
11590 rm -f conftest.$ac_objext
11591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11592   (eval $ac_compile) 2>&5
11593   ac_status=$?
11594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595   (exit $ac_status); } &&
11596          { ac_try='test -s conftest.$ac_objext'
11597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598   (eval $ac_try) 2>&5
11599   ac_status=$?
11600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); }; }; then
11602   ac_cv_type_off_t=yes
11603 else
11604   echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11606
11607 ac_cv_type_off_t=no
11608 fi
11609 rm -f conftest.$ac_objext conftest.$ac_ext
11610 fi
11611 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11612 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11613 if test $ac_cv_type_off_t = yes; then
11614   :
11615 else
11616
11617 cat >>confdefs.h <<_ACEOF
11618 #define off_t long
11619 _ACEOF
11620
11621 fi
11622
11623 echo "$as_me:$LINENO: checking for ino_t" >&5
11624 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11625 if test "${ac_cv_type_ino_t+set}" = set; then
11626   echo $ECHO_N "(cached) $ECHO_C" >&6
11627 else
11628   cat >conftest.$ac_ext <<_ACEOF
11629 #line $LINENO "configure"
11630 /* confdefs.h.  */
11631 _ACEOF
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h.  */
11635 $ac_includes_default
11636 int
11637 main ()
11638 {
11639 if ((ino_t *) 0)
11640   return 0;
11641 if (sizeof (ino_t))
11642   return 0;
11643   ;
11644   return 0;
11645 }
11646 _ACEOF
11647 rm -f conftest.$ac_objext
11648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11649   (eval $ac_compile) 2>&5
11650   ac_status=$?
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); } &&
11653          { ac_try='test -s conftest.$ac_objext'
11654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655   (eval $ac_try) 2>&5
11656   ac_status=$?
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); }; }; then
11659   ac_cv_type_ino_t=yes
11660 else
11661   echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11663
11664 ac_cv_type_ino_t=no
11665 fi
11666 rm -f conftest.$ac_objext conftest.$ac_ext
11667 fi
11668 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11669 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11670 if test $ac_cv_type_ino_t = yes; then
11671   :
11672 else
11673
11674 cat >>confdefs.h <<_ACEOF
11675 #define ino_t unsigned long
11676 _ACEOF
11677
11678 fi
11679
11680 echo "$as_me:$LINENO: checking for dev_t" >&5
11681 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11682 if test "${ac_cv_type_dev_t+set}" = set; then
11683   echo $ECHO_N "(cached) $ECHO_C" >&6
11684 else
11685   cat >conftest.$ac_ext <<_ACEOF
11686 #line $LINENO "configure"
11687 /* confdefs.h.  */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h.  */
11692 $ac_includes_default
11693 int
11694 main ()
11695 {
11696 if ((dev_t *) 0)
11697   return 0;
11698 if (sizeof (dev_t))
11699   return 0;
11700   ;
11701   return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11706   (eval $ac_compile) 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); } &&
11710          { ac_try='test -s conftest.$ac_objext'
11711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11712   (eval $ac_try) 2>&5
11713   ac_status=$?
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); }; }; then
11716   ac_cv_type_dev_t=yes
11717 else
11718   echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11720
11721 ac_cv_type_dev_t=no
11722 fi
11723 rm -f conftest.$ac_objext conftest.$ac_ext
11724 fi
11725 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11726 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11727 if test $ac_cv_type_dev_t = yes; then
11728   :
11729 else
11730
11731 cat >>confdefs.h <<_ACEOF
11732 #define dev_t unsigned long
11733 _ACEOF
11734
11735 fi
11736
11737 echo "$as_me:$LINENO: checking for daddr_t" >&5
11738 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11739 if test "${ac_cv_type_daddr_t+set}" = set; then
11740   echo $ECHO_N "(cached) $ECHO_C" >&6
11741 else
11742   cat >conftest.$ac_ext <<_ACEOF
11743 #line $LINENO "configure"
11744 /* confdefs.h.  */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h.  */
11749 $ac_includes_default
11750 int
11751 main ()
11752 {
11753 if ((daddr_t *) 0)
11754   return 0;
11755 if (sizeof (daddr_t))
11756   return 0;
11757   ;
11758   return 0;
11759 }
11760 _ACEOF
11761 rm -f conftest.$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763   (eval $ac_compile) 2>&5
11764   ac_status=$?
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); } &&
11767          { ac_try='test -s conftest.$ac_objext'
11768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769   (eval $ac_try) 2>&5
11770   ac_status=$?
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); }; }; then
11773   ac_cv_type_daddr_t=yes
11774 else
11775   echo "$as_me: failed program was:" >&5
11776 sed 's/^/| /' conftest.$ac_ext >&5
11777
11778 ac_cv_type_daddr_t=no
11779 fi
11780 rm -f conftest.$ac_objext conftest.$ac_ext
11781 fi
11782 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11783 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11784 if test $ac_cv_type_daddr_t = yes; then
11785   :
11786 else
11787
11788 cat >>confdefs.h <<_ACEOF
11789 #define daddr_t long
11790 _ACEOF
11791
11792 fi
11793
11794 echo "$as_me:$LINENO: checking for major_t" >&5
11795 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11796 if test "${ac_cv_type_major_t+set}" = set; then
11797   echo $ECHO_N "(cached) $ECHO_C" >&6
11798 else
11799   cat >conftest.$ac_ext <<_ACEOF
11800 #line $LINENO "configure"
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806 $ac_includes_default
11807 int
11808 main ()
11809 {
11810 if ((major_t *) 0)
11811   return 0;
11812 if (sizeof (major_t))
11813   return 0;
11814   ;
11815   return 0;
11816 }
11817 _ACEOF
11818 rm -f conftest.$ac_objext
11819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11820   (eval $ac_compile) 2>&5
11821   ac_status=$?
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); } &&
11824          { ac_try='test -s conftest.$ac_objext'
11825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826   (eval $ac_try) 2>&5
11827   ac_status=$?
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); }; }; then
11830   ac_cv_type_major_t=yes
11831 else
11832   echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11834
11835 ac_cv_type_major_t=no
11836 fi
11837 rm -f conftest.$ac_objext conftest.$ac_ext
11838 fi
11839 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11840 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11841 if test $ac_cv_type_major_t = yes; then
11842   :
11843 else
11844
11845 cat >>confdefs.h <<_ACEOF
11846 #define major_t int
11847 _ACEOF
11848
11849 fi
11850
11851 echo "$as_me:$LINENO: checking for minor_t" >&5
11852 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11853 if test "${ac_cv_type_minor_t+set}" = set; then
11854   echo $ECHO_N "(cached) $ECHO_C" >&6
11855 else
11856   cat >conftest.$ac_ext <<_ACEOF
11857 #line $LINENO "configure"
11858 /* confdefs.h.  */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h.  */
11863 $ac_includes_default
11864 int
11865 main ()
11866 {
11867 if ((minor_t *) 0)
11868   return 0;
11869 if (sizeof (minor_t))
11870   return 0;
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 rm -f conftest.$ac_objext
11876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11877   (eval $ac_compile) 2>&5
11878   ac_status=$?
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); } &&
11881          { ac_try='test -s conftest.$ac_objext'
11882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883   (eval $ac_try) 2>&5
11884   ac_status=$?
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); }; }; then
11887   ac_cv_type_minor_t=yes
11888 else
11889   echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11891
11892 ac_cv_type_minor_t=no
11893 fi
11894 rm -f conftest.$ac_objext conftest.$ac_ext
11895 fi
11896 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11897 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11898 if test $ac_cv_type_minor_t = yes; then
11899   :
11900 else
11901
11902 cat >>confdefs.h <<_ACEOF
11903 #define minor_t int
11904 _ACEOF
11905
11906 fi
11907
11908 echo "$as_me:$LINENO: checking for ssize_t" >&5
11909 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11910 if test "${ac_cv_type_ssize_t+set}" = set; then
11911   echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913   cat >conftest.$ac_ext <<_ACEOF
11914 #line $LINENO "configure"
11915 /* confdefs.h.  */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h.  */
11920 $ac_includes_default
11921 int
11922 main ()
11923 {
11924 if ((ssize_t *) 0)
11925   return 0;
11926 if (sizeof (ssize_t))
11927   return 0;
11928   ;
11929   return 0;
11930 }
11931 _ACEOF
11932 rm -f conftest.$ac_objext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11934   (eval $ac_compile) 2>&5
11935   ac_status=$?
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); } &&
11938          { ac_try='test -s conftest.$ac_objext'
11939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940   (eval $ac_try) 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; }; then
11944   ac_cv_type_ssize_t=yes
11945 else
11946   echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11948
11949 ac_cv_type_ssize_t=no
11950 fi
11951 rm -f conftest.$ac_objext conftest.$ac_ext
11952 fi
11953 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11954 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11955 if test $ac_cv_type_ssize_t = yes; then
11956   :
11957 else
11958
11959 cat >>confdefs.h <<_ACEOF
11960 #define ssize_t int
11961 _ACEOF
11962
11963 fi
11964
11965 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11966 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11967 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11968   echo $ECHO_N "(cached) $ECHO_C" >&6
11969 else
11970   cat >conftest.$ac_ext <<_ACEOF
11971 #line $LINENO "configure"
11972 /* confdefs.h.  */
11973 _ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h.  */
11977 $ac_includes_default
11978 int
11979 main ()
11980 {
11981 static struct stat ac_aggr;
11982 if (ac_aggr.st_blocks)
11983 return 0;
11984   ;
11985   return 0;
11986 }
11987 _ACEOF
11988 rm -f conftest.$ac_objext
11989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11990   (eval $ac_compile) 2>&5
11991   ac_status=$?
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); } &&
11994          { ac_try='test -s conftest.$ac_objext'
11995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996   (eval $ac_try) 2>&5
11997   ac_status=$?
11998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999   (exit $ac_status); }; }; then
12000   ac_cv_member_struct_stat_st_blocks=yes
12001 else
12002   echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12004
12005 cat >conftest.$ac_ext <<_ACEOF
12006 #line $LINENO "configure"
12007 /* confdefs.h.  */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h.  */
12012 $ac_includes_default
12013 int
12014 main ()
12015 {
12016 static struct stat ac_aggr;
12017 if (sizeof ac_aggr.st_blocks)
12018 return 0;
12019   ;
12020   return 0;
12021 }
12022 _ACEOF
12023 rm -f conftest.$ac_objext
12024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12025   (eval $ac_compile) 2>&5
12026   ac_status=$?
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); } &&
12029          { ac_try='test -s conftest.$ac_objext'
12030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031   (eval $ac_try) 2>&5
12032   ac_status=$?
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); }; }; then
12035   ac_cv_member_struct_stat_st_blocks=yes
12036 else
12037   echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12039
12040 ac_cv_member_struct_stat_st_blocks=no
12041 fi
12042 rm -f conftest.$ac_objext conftest.$ac_ext
12043 fi
12044 rm -f conftest.$ac_objext conftest.$ac_ext
12045 fi
12046 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12047 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12048 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12049
12050 cat >>confdefs.h <<_ACEOF
12051 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12052 _ACEOF
12053
12054
12055 cat >>confdefs.h <<\_ACEOF
12056 #define HAVE_ST_BLOCKS 1
12057 _ACEOF
12058
12059 else
12060   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12061 fi
12062
12063
12064
12065 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12066 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12067 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12068   echo $ECHO_N "(cached) $ECHO_C" >&6
12069 else
12070   cat >conftest.$ac_ext <<_ACEOF
12071 #line $LINENO "configure"
12072 /* confdefs.h.  */
12073 _ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h.  */
12077 $ac_includes_default
12078 int
12079 main ()
12080 {
12081 static struct stat ac_aggr;
12082 if (ac_aggr.st_rdev)
12083 return 0;
12084   ;
12085   return 0;
12086 }
12087 _ACEOF
12088 rm -f conftest.$ac_objext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12090   (eval $ac_compile) 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); } &&
12094          { ac_try='test -s conftest.$ac_objext'
12095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096   (eval $ac_try) 2>&5
12097   ac_status=$?
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); }; }; then
12100   ac_cv_member_struct_stat_st_rdev=yes
12101 else
12102   echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12104
12105 cat >conftest.$ac_ext <<_ACEOF
12106 #line $LINENO "configure"
12107 /* confdefs.h.  */
12108 _ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h.  */
12112 $ac_includes_default
12113 int
12114 main ()
12115 {
12116 static struct stat ac_aggr;
12117 if (sizeof ac_aggr.st_rdev)
12118 return 0;
12119   ;
12120   return 0;
12121 }
12122 _ACEOF
12123 rm -f conftest.$ac_objext
12124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12125   (eval $ac_compile) 2>&5
12126   ac_status=$?
12127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128   (exit $ac_status); } &&
12129          { ac_try='test -s conftest.$ac_objext'
12130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131   (eval $ac_try) 2>&5
12132   ac_status=$?
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); }; }; then
12135   ac_cv_member_struct_stat_st_rdev=yes
12136 else
12137   echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 ac_cv_member_struct_stat_st_rdev=no
12141 fi
12142 rm -f conftest.$ac_objext conftest.$ac_ext
12143 fi
12144 rm -f conftest.$ac_objext conftest.$ac_ext
12145 fi
12146 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12147 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12148 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12149
12150 cat >>confdefs.h <<_ACEOF
12151 #define HAVE_STRUCT_STAT_ST_RDEV 1
12152 _ACEOF
12153
12154
12155 cat >>confdefs.h <<\_ACEOF
12156 #define HAVE_ST_RDEV 1
12157 _ACEOF
12158
12159 fi
12160
12161
12162 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12163 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12164 if test "${ac_cv_struct_tm+set}" = set; then
12165   echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167   cat >conftest.$ac_ext <<_ACEOF
12168 #line $LINENO "configure"
12169 /* confdefs.h.  */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h.  */
12174 #include <sys/types.h>
12175 #include <time.h>
12176
12177 int
12178 main ()
12179 {
12180 struct tm *tp; tp->tm_sec;
12181   ;
12182   return 0;
12183 }
12184 _ACEOF
12185 rm -f conftest.$ac_objext
12186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12187   (eval $ac_compile) 2>&5
12188   ac_status=$?
12189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190   (exit $ac_status); } &&
12191          { ac_try='test -s conftest.$ac_objext'
12192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193   (eval $ac_try) 2>&5
12194   ac_status=$?
12195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196   (exit $ac_status); }; }; then
12197   ac_cv_struct_tm=time.h
12198 else
12199   echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12201
12202 ac_cv_struct_tm=sys/time.h
12203 fi
12204 rm -f conftest.$ac_objext conftest.$ac_ext
12205 fi
12206 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12207 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12208 if test $ac_cv_struct_tm = sys/time.h; then
12209
12210 cat >>confdefs.h <<\_ACEOF
12211 #define TM_IN_SYS_TIME 1
12212 _ACEOF
12213
12214 fi
12215
12216 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12217 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12218 if test "${ac_cv_c_const+set}" = set; then
12219   echo $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221   cat >conftest.$ac_ext <<_ACEOF
12222 #line $LINENO "configure"
12223 /* confdefs.h.  */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h.  */
12228
12229 int
12230 main ()
12231 {
12232 /* FIXME: Include the comments suggested by Paul. */
12233 #ifndef __cplusplus
12234   /* Ultrix mips cc rejects this.  */
12235   typedef int charset[2];
12236   const charset x;
12237   /* SunOS 4.1.1 cc rejects this.  */
12238   char const *const *ccp;
12239   char **p;
12240   /* NEC SVR4.0.2 mips cc rejects this.  */
12241   struct point {int x, y;};
12242   static struct point const zero = {0,0};
12243   /* AIX XL C 1.02.0.0 rejects this.
12244      It does not let you subtract one const X* pointer from another in
12245      an arm of an if-expression whose if-part is not a constant
12246      expression */
12247   const char *g = "string";
12248   ccp = &g + (g ? g-g : 0);
12249   /* HPUX 7.0 cc rejects these. */
12250   ++ccp;
12251   p = (char**) ccp;
12252   ccp = (char const *const *) p;
12253   { /* SCO 3.2v4 cc rejects this.  */
12254     char *t;
12255     char const *s = 0 ? (char *) 0 : (char const *) 0;
12256
12257     *t++ = 0;
12258   }
12259   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12260     int x[] = {25, 17};
12261     const int *foo = &x[0];
12262     ++foo;
12263   }
12264   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12265     typedef const int *iptr;
12266     iptr p = 0;
12267     ++p;
12268   }
12269   { /* AIX XL C 1.02.0.0 rejects this saying
12270        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12271     struct s { int j; const int *ap[3]; };
12272     struct s *b; b->j = 5;
12273   }
12274   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12275     const int foo = 10;
12276   }
12277 #endif
12278
12279   ;
12280   return 0;
12281 }
12282 _ACEOF
12283 rm -f conftest.$ac_objext
12284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12285   (eval $ac_compile) 2>&5
12286   ac_status=$?
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); } &&
12289          { ac_try='test -s conftest.$ac_objext'
12290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291   (eval $ac_try) 2>&5
12292   ac_status=$?
12293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294   (exit $ac_status); }; }; then
12295   ac_cv_c_const=yes
12296 else
12297   echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12299
12300 ac_cv_c_const=no
12301 fi
12302 rm -f conftest.$ac_objext conftest.$ac_ext
12303 fi
12304 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12305 echo "${ECHO_T}$ac_cv_c_const" >&6
12306 if test $ac_cv_c_const = no; then
12307
12308 cat >>confdefs.h <<\_ACEOF
12309 #define const
12310 _ACEOF
12311
12312 fi
12313
12314
12315
12316 echo "$as_me:$LINENO: checking for char" >&5
12317 echo $ECHO_N "checking for char... $ECHO_C" >&6
12318 if test "${ac_cv_type_char+set}" = set; then
12319   echo $ECHO_N "(cached) $ECHO_C" >&6
12320 else
12321   cat >conftest.$ac_ext <<_ACEOF
12322 #line $LINENO "configure"
12323 /* confdefs.h.  */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h.  */
12328 $ac_includes_default
12329 int
12330 main ()
12331 {
12332 if ((char *) 0)
12333   return 0;
12334 if (sizeof (char))
12335   return 0;
12336   ;
12337   return 0;
12338 }
12339 _ACEOF
12340 rm -f conftest.$ac_objext
12341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342   (eval $ac_compile) 2>&5
12343   ac_status=$?
12344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345   (exit $ac_status); } &&
12346          { ac_try='test -s conftest.$ac_objext'
12347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12348   (eval $ac_try) 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; }; then
12352   ac_cv_type_char=yes
12353 else
12354   echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357 ac_cv_type_char=no
12358 fi
12359 rm -f conftest.$ac_objext conftest.$ac_ext
12360 fi
12361 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12362 echo "${ECHO_T}$ac_cv_type_char" >&6
12363
12364 echo "$as_me:$LINENO: checking size of char" >&5
12365 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12366 if test "${ac_cv_sizeof_char+set}" = set; then
12367   echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369   if test "$ac_cv_type_char" = yes; then
12370   # The cast to unsigned long works around a bug in the HP C Compiler
12371   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12372   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12373   # This bug is HP SR number 8606223364.
12374   if test "$cross_compiling" = yes; then
12375   # Depending upon the size, compute the lo and hi bounds.
12376 cat >conftest.$ac_ext <<_ACEOF
12377 #line $LINENO "configure"
12378 /* confdefs.h.  */
12379 _ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h.  */
12383 $ac_includes_default
12384 int
12385 main ()
12386 {
12387 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12388 test_array [0] = 0
12389
12390   ;
12391   return 0;
12392 }
12393 _ACEOF
12394 rm -f conftest.$ac_objext
12395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12396   (eval $ac_compile) 2>&5
12397   ac_status=$?
12398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399   (exit $ac_status); } &&
12400          { ac_try='test -s conftest.$ac_objext'
12401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402   (eval $ac_try) 2>&5
12403   ac_status=$?
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); }; }; then
12406   ac_lo=0 ac_mid=0
12407   while :; do
12408     cat >conftest.$ac_ext <<_ACEOF
12409 #line $LINENO "configure"
12410 /* confdefs.h.  */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h.  */
12415 $ac_includes_default
12416 int
12417 main ()
12418 {
12419 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12420 test_array [0] = 0
12421
12422   ;
12423   return 0;
12424 }
12425 _ACEOF
12426 rm -f conftest.$ac_objext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428   (eval $ac_compile) 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); } &&
12432          { ac_try='test -s conftest.$ac_objext'
12433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434   (eval $ac_try) 2>&5
12435   ac_status=$?
12436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437   (exit $ac_status); }; }; then
12438   ac_hi=$ac_mid; break
12439 else
12440   echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 ac_lo=`expr $ac_mid + 1`
12444                     if test $ac_lo -le $ac_mid; then
12445                       ac_lo= ac_hi=
12446                       break
12447                     fi
12448                     ac_mid=`expr 2 '*' $ac_mid + 1`
12449 fi
12450 rm -f conftest.$ac_objext conftest.$ac_ext
12451   done
12452 else
12453   echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12455
12456 cat >conftest.$ac_ext <<_ACEOF
12457 #line $LINENO "configure"
12458 /* confdefs.h.  */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h.  */
12463 $ac_includes_default
12464 int
12465 main ()
12466 {
12467 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12468 test_array [0] = 0
12469
12470   ;
12471   return 0;
12472 }
12473 _ACEOF
12474 rm -f conftest.$ac_objext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476   (eval $ac_compile) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); } &&
12480          { ac_try='test -s conftest.$ac_objext'
12481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482   (eval $ac_try) 2>&5
12483   ac_status=$?
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); }; }; then
12486   ac_hi=-1 ac_mid=-1
12487   while :; do
12488     cat >conftest.$ac_ext <<_ACEOF
12489 #line $LINENO "configure"
12490 /* confdefs.h.  */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h.  */
12495 $ac_includes_default
12496 int
12497 main ()
12498 {
12499 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12500 test_array [0] = 0
12501
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 rm -f conftest.$ac_objext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12508   (eval $ac_compile) 2>&5
12509   ac_status=$?
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); } &&
12512          { ac_try='test -s conftest.$ac_objext'
12513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514   (eval $ac_try) 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; }; then
12518   ac_lo=$ac_mid; break
12519 else
12520   echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12522
12523 ac_hi=`expr '(' $ac_mid ')' - 1`
12524                        if test $ac_mid -le $ac_hi; then
12525                          ac_lo= ac_hi=
12526                          break
12527                        fi
12528                        ac_mid=`expr 2 '*' $ac_mid`
12529 fi
12530 rm -f conftest.$ac_objext conftest.$ac_ext
12531   done
12532 else
12533   echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12535
12536 ac_lo= ac_hi=
12537 fi
12538 rm -f conftest.$ac_objext conftest.$ac_ext
12539 fi
12540 rm -f conftest.$ac_objext conftest.$ac_ext
12541 # Binary search between lo and hi bounds.
12542 while test "x$ac_lo" != "x$ac_hi"; do
12543   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12544   cat >conftest.$ac_ext <<_ACEOF
12545 #line $LINENO "configure"
12546 /* confdefs.h.  */
12547 _ACEOF
12548 cat confdefs.h >>conftest.$ac_ext
12549 cat >>conftest.$ac_ext <<_ACEOF
12550 /* end confdefs.h.  */
12551 $ac_includes_default
12552 int
12553 main ()
12554 {
12555 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12556 test_array [0] = 0
12557
12558   ;
12559   return 0;
12560 }
12561 _ACEOF
12562 rm -f conftest.$ac_objext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12564   (eval $ac_compile) 2>&5
12565   ac_status=$?
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); } &&
12568          { ac_try='test -s conftest.$ac_objext'
12569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12570   (eval $ac_try) 2>&5
12571   ac_status=$?
12572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12573   (exit $ac_status); }; }; then
12574   ac_hi=$ac_mid
12575 else
12576   echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 ac_lo=`expr '(' $ac_mid ')' + 1`
12580 fi
12581 rm -f conftest.$ac_objext conftest.$ac_ext
12582 done
12583 case $ac_lo in
12584 ?*) ac_cv_sizeof_char=$ac_lo;;
12585 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12586 See \`config.log' for more details." >&5
12587 echo "$as_me: error: cannot compute sizeof (char), 77
12588 See \`config.log' for more details." >&2;}
12589    { (exit 1); exit 1; }; } ;;
12590 esac
12591 else
12592   if test "$cross_compiling" = yes; then
12593   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12594 See \`config.log' for more details." >&5
12595 echo "$as_me: error: cannot run test program while cross compiling
12596 See \`config.log' for more details." >&2;}
12597    { (exit 1); exit 1; }; }
12598 else
12599   cat >conftest.$ac_ext <<_ACEOF
12600 #line $LINENO "configure"
12601 /* confdefs.h.  */
12602 _ACEOF
12603 cat confdefs.h >>conftest.$ac_ext
12604 cat >>conftest.$ac_ext <<_ACEOF
12605 /* end confdefs.h.  */
12606 $ac_includes_default
12607 long longval () { return (long) (sizeof (char)); }
12608 unsigned long ulongval () { return (long) (sizeof (char)); }
12609 #include <stdio.h>
12610 #include <stdlib.h>
12611 int
12612 main ()
12613 {
12614
12615   FILE *f = fopen ("conftest.val", "w");
12616   if (! f)
12617     exit (1);
12618   if (((long) (sizeof (char))) < 0)
12619     {
12620       long i = longval ();
12621       if (i != ((long) (sizeof (char))))
12622         exit (1);
12623       fprintf (f, "%ld\n", i);
12624     }
12625   else
12626     {
12627       unsigned long i = ulongval ();
12628       if (i != ((long) (sizeof (char))))
12629         exit (1);
12630       fprintf (f, "%lu\n", i);
12631     }
12632   exit (ferror (f) || fclose (f) != 0);
12633
12634   ;
12635   return 0;
12636 }
12637 _ACEOF
12638 rm -f conftest$ac_exeext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12640   (eval $ac_link) 2>&5
12641   ac_status=$?
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645   (eval $ac_try) 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; }; then
12649   ac_cv_sizeof_char=`cat conftest.val`
12650 else
12651   echo "$as_me: program exited with status $ac_status" >&5
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655 ( exit $ac_status )
12656 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12657 See \`config.log' for more details." >&5
12658 echo "$as_me: error: cannot compute sizeof (char), 77
12659 See \`config.log' for more details." >&2;}
12660    { (exit 1); exit 1; }; }
12661 fi
12662 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12663 fi
12664 fi
12665 rm -f conftest.val
12666 else
12667   ac_cv_sizeof_char=0
12668 fi
12669 fi
12670 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12671 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12672 cat >>confdefs.h <<_ACEOF
12673 #define SIZEOF_CHAR $ac_cv_sizeof_char
12674 _ACEOF
12675
12676
12677 echo "$as_me:$LINENO: checking for short int" >&5
12678 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12679 if test "${ac_cv_type_short_int+set}" = set; then
12680   echo $ECHO_N "(cached) $ECHO_C" >&6
12681 else
12682   cat >conftest.$ac_ext <<_ACEOF
12683 #line $LINENO "configure"
12684 /* confdefs.h.  */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h.  */
12689 $ac_includes_default
12690 int
12691 main ()
12692 {
12693 if ((short int *) 0)
12694   return 0;
12695 if (sizeof (short int))
12696   return 0;
12697   ;
12698   return 0;
12699 }
12700 _ACEOF
12701 rm -f conftest.$ac_objext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12703   (eval $ac_compile) 2>&5
12704   ac_status=$?
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); } &&
12707          { ac_try='test -s conftest.$ac_objext'
12708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709   (eval $ac_try) 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); }; }; then
12713   ac_cv_type_short_int=yes
12714 else
12715   echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12717
12718 ac_cv_type_short_int=no
12719 fi
12720 rm -f conftest.$ac_objext conftest.$ac_ext
12721 fi
12722 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12723 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12724
12725 echo "$as_me:$LINENO: checking size of short int" >&5
12726 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12727 if test "${ac_cv_sizeof_short_int+set}" = set; then
12728   echo $ECHO_N "(cached) $ECHO_C" >&6
12729 else
12730   if test "$ac_cv_type_short_int" = yes; then
12731   # The cast to unsigned long works around a bug in the HP C Compiler
12732   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12733   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12734   # This bug is HP SR number 8606223364.
12735   if test "$cross_compiling" = yes; then
12736   # Depending upon the size, compute the lo and hi bounds.
12737 cat >conftest.$ac_ext <<_ACEOF
12738 #line $LINENO "configure"
12739 /* confdefs.h.  */
12740 _ACEOF
12741 cat confdefs.h >>conftest.$ac_ext
12742 cat >>conftest.$ac_ext <<_ACEOF
12743 /* end confdefs.h.  */
12744 $ac_includes_default
12745 int
12746 main ()
12747 {
12748 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12749 test_array [0] = 0
12750
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 rm -f conftest.$ac_objext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757   (eval $ac_compile) 2>&5
12758   ac_status=$?
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); } &&
12761          { ac_try='test -s conftest.$ac_objext'
12762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763   (eval $ac_try) 2>&5
12764   ac_status=$?
12765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766   (exit $ac_status); }; }; then
12767   ac_lo=0 ac_mid=0
12768   while :; do
12769     cat >conftest.$ac_ext <<_ACEOF
12770 #line $LINENO "configure"
12771 /* confdefs.h.  */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h.  */
12776 $ac_includes_default
12777 int
12778 main ()
12779 {
12780 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12781 test_array [0] = 0
12782
12783   ;
12784   return 0;
12785 }
12786 _ACEOF
12787 rm -f conftest.$ac_objext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12789   (eval $ac_compile) 2>&5
12790   ac_status=$?
12791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792   (exit $ac_status); } &&
12793          { ac_try='test -s conftest.$ac_objext'
12794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795   (eval $ac_try) 2>&5
12796   ac_status=$?
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); }; }; then
12799   ac_hi=$ac_mid; break
12800 else
12801   echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12803
12804 ac_lo=`expr $ac_mid + 1`
12805                     if test $ac_lo -le $ac_mid; then
12806                       ac_lo= ac_hi=
12807                       break
12808                     fi
12809                     ac_mid=`expr 2 '*' $ac_mid + 1`
12810 fi
12811 rm -f conftest.$ac_objext conftest.$ac_ext
12812   done
12813 else
12814   echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12816
12817 cat >conftest.$ac_ext <<_ACEOF
12818 #line $LINENO "configure"
12819 /* confdefs.h.  */
12820 _ACEOF
12821 cat confdefs.h >>conftest.$ac_ext
12822 cat >>conftest.$ac_ext <<_ACEOF
12823 /* end confdefs.h.  */
12824 $ac_includes_default
12825 int
12826 main ()
12827 {
12828 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12829 test_array [0] = 0
12830
12831   ;
12832   return 0;
12833 }
12834 _ACEOF
12835 rm -f conftest.$ac_objext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12837   (eval $ac_compile) 2>&5
12838   ac_status=$?
12839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840   (exit $ac_status); } &&
12841          { ac_try='test -s conftest.$ac_objext'
12842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843   (eval $ac_try) 2>&5
12844   ac_status=$?
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); }; }; then
12847   ac_hi=-1 ac_mid=-1
12848   while :; do
12849     cat >conftest.$ac_ext <<_ACEOF
12850 #line $LINENO "configure"
12851 /* confdefs.h.  */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h.  */
12856 $ac_includes_default
12857 int
12858 main ()
12859 {
12860 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12861 test_array [0] = 0
12862
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 rm -f conftest.$ac_objext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12869   (eval $ac_compile) 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); } &&
12873          { ac_try='test -s conftest.$ac_objext'
12874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875   (eval $ac_try) 2>&5
12876   ac_status=$?
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); }; }; then
12879   ac_lo=$ac_mid; break
12880 else
12881   echo "$as_me: failed program was:" >&5
12882 sed 's/^/| /' conftest.$ac_ext >&5
12883
12884 ac_hi=`expr '(' $ac_mid ')' - 1`
12885                        if test $ac_mid -le $ac_hi; then
12886                          ac_lo= ac_hi=
12887                          break
12888                        fi
12889                        ac_mid=`expr 2 '*' $ac_mid`
12890 fi
12891 rm -f conftest.$ac_objext conftest.$ac_ext
12892   done
12893 else
12894   echo "$as_me: failed program was:" >&5
12895 sed 's/^/| /' conftest.$ac_ext >&5
12896
12897 ac_lo= ac_hi=
12898 fi
12899 rm -f conftest.$ac_objext conftest.$ac_ext
12900 fi
12901 rm -f conftest.$ac_objext conftest.$ac_ext
12902 # Binary search between lo and hi bounds.
12903 while test "x$ac_lo" != "x$ac_hi"; do
12904   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12905   cat >conftest.$ac_ext <<_ACEOF
12906 #line $LINENO "configure"
12907 /* confdefs.h.  */
12908 _ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h.  */
12912 $ac_includes_default
12913 int
12914 main ()
12915 {
12916 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12917 test_array [0] = 0
12918
12919   ;
12920   return 0;
12921 }
12922 _ACEOF
12923 rm -f conftest.$ac_objext
12924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12925   (eval $ac_compile) 2>&5
12926   ac_status=$?
12927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928   (exit $ac_status); } &&
12929          { ac_try='test -s conftest.$ac_objext'
12930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931   (eval $ac_try) 2>&5
12932   ac_status=$?
12933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934   (exit $ac_status); }; }; then
12935   ac_hi=$ac_mid
12936 else
12937   echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12939
12940 ac_lo=`expr '(' $ac_mid ')' + 1`
12941 fi
12942 rm -f conftest.$ac_objext conftest.$ac_ext
12943 done
12944 case $ac_lo in
12945 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12946 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12947 See \`config.log' for more details." >&5
12948 echo "$as_me: error: cannot compute sizeof (short int), 77
12949 See \`config.log' for more details." >&2;}
12950    { (exit 1); exit 1; }; } ;;
12951 esac
12952 else
12953   if test "$cross_compiling" = yes; then
12954   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12955 See \`config.log' for more details." >&5
12956 echo "$as_me: error: cannot run test program while cross compiling
12957 See \`config.log' for more details." >&2;}
12958    { (exit 1); exit 1; }; }
12959 else
12960   cat >conftest.$ac_ext <<_ACEOF
12961 #line $LINENO "configure"
12962 /* confdefs.h.  */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h.  */
12967 $ac_includes_default
12968 long longval () { return (long) (sizeof (short int)); }
12969 unsigned long ulongval () { return (long) (sizeof (short int)); }
12970 #include <stdio.h>
12971 #include <stdlib.h>
12972 int
12973 main ()
12974 {
12975
12976   FILE *f = fopen ("conftest.val", "w");
12977   if (! f)
12978     exit (1);
12979   if (((long) (sizeof (short int))) < 0)
12980     {
12981       long i = longval ();
12982       if (i != ((long) (sizeof (short int))))
12983         exit (1);
12984       fprintf (f, "%ld\n", i);
12985     }
12986   else
12987     {
12988       unsigned long i = ulongval ();
12989       if (i != ((long) (sizeof (short int))))
12990         exit (1);
12991       fprintf (f, "%lu\n", i);
12992     }
12993   exit (ferror (f) || fclose (f) != 0);
12994
12995   ;
12996   return 0;
12997 }
12998 _ACEOF
12999 rm -f conftest$ac_exeext
13000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13001   (eval $ac_link) 2>&5
13002   ac_status=$?
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006   (eval $ac_try) 2>&5
13007   ac_status=$?
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); }; }; then
13010   ac_cv_sizeof_short_int=`cat conftest.val`
13011 else
13012   echo "$as_me: program exited with status $ac_status" >&5
13013 echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13015
13016 ( exit $ac_status )
13017 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13018 See \`config.log' for more details." >&5
13019 echo "$as_me: error: cannot compute sizeof (short int), 77
13020 See \`config.log' for more details." >&2;}
13021    { (exit 1); exit 1; }; }
13022 fi
13023 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13024 fi
13025 fi
13026 rm -f conftest.val
13027 else
13028   ac_cv_sizeof_short_int=0
13029 fi
13030 fi
13031 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13032 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13033 cat >>confdefs.h <<_ACEOF
13034 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13035 _ACEOF
13036
13037
13038 echo "$as_me:$LINENO: checking for int" >&5
13039 echo $ECHO_N "checking for int... $ECHO_C" >&6
13040 if test "${ac_cv_type_int+set}" = set; then
13041   echo $ECHO_N "(cached) $ECHO_C" >&6
13042 else
13043   cat >conftest.$ac_ext <<_ACEOF
13044 #line $LINENO "configure"
13045 /* confdefs.h.  */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h.  */
13050 $ac_includes_default
13051 int
13052 main ()
13053 {
13054 if ((int *) 0)
13055   return 0;
13056 if (sizeof (int))
13057   return 0;
13058   ;
13059   return 0;
13060 }
13061 _ACEOF
13062 rm -f conftest.$ac_objext
13063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13064   (eval $ac_compile) 2>&5
13065   ac_status=$?
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); } &&
13068          { ac_try='test -s conftest.$ac_objext'
13069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070   (eval $ac_try) 2>&5
13071   ac_status=$?
13072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073   (exit $ac_status); }; }; then
13074   ac_cv_type_int=yes
13075 else
13076   echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13078
13079 ac_cv_type_int=no
13080 fi
13081 rm -f conftest.$ac_objext conftest.$ac_ext
13082 fi
13083 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13084 echo "${ECHO_T}$ac_cv_type_int" >&6
13085
13086 echo "$as_me:$LINENO: checking size of int" >&5
13087 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13088 if test "${ac_cv_sizeof_int+set}" = set; then
13089   echo $ECHO_N "(cached) $ECHO_C" >&6
13090 else
13091   if test "$ac_cv_type_int" = yes; then
13092   # The cast to unsigned long works around a bug in the HP C Compiler
13093   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13094   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13095   # This bug is HP SR number 8606223364.
13096   if test "$cross_compiling" = yes; then
13097   # Depending upon the size, compute the lo and hi bounds.
13098 cat >conftest.$ac_ext <<_ACEOF
13099 #line $LINENO "configure"
13100 /* confdefs.h.  */
13101 _ACEOF
13102 cat confdefs.h >>conftest.$ac_ext
13103 cat >>conftest.$ac_ext <<_ACEOF
13104 /* end confdefs.h.  */
13105 $ac_includes_default
13106 int
13107 main ()
13108 {
13109 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13110 test_array [0] = 0
13111
13112   ;
13113   return 0;
13114 }
13115 _ACEOF
13116 rm -f conftest.$ac_objext
13117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13118   (eval $ac_compile) 2>&5
13119   ac_status=$?
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); } &&
13122          { ac_try='test -s conftest.$ac_objext'
13123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124   (eval $ac_try) 2>&5
13125   ac_status=$?
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); }; }; then
13128   ac_lo=0 ac_mid=0
13129   while :; do
13130     cat >conftest.$ac_ext <<_ACEOF
13131 #line $LINENO "configure"
13132 /* confdefs.h.  */
13133 _ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h.  */
13137 $ac_includes_default
13138 int
13139 main ()
13140 {
13141 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13142 test_array [0] = 0
13143
13144   ;
13145   return 0;
13146 }
13147 _ACEOF
13148 rm -f conftest.$ac_objext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150   (eval $ac_compile) 2>&5
13151   ac_status=$?
13152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153   (exit $ac_status); } &&
13154          { ac_try='test -s conftest.$ac_objext'
13155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156   (eval $ac_try) 2>&5
13157   ac_status=$?
13158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159   (exit $ac_status); }; }; then
13160   ac_hi=$ac_mid; break
13161 else
13162   echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13164
13165 ac_lo=`expr $ac_mid + 1`
13166                     if test $ac_lo -le $ac_mid; then
13167                       ac_lo= ac_hi=
13168                       break
13169                     fi
13170                     ac_mid=`expr 2 '*' $ac_mid + 1`
13171 fi
13172 rm -f conftest.$ac_objext conftest.$ac_ext
13173   done
13174 else
13175   echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13177
13178 cat >conftest.$ac_ext <<_ACEOF
13179 #line $LINENO "configure"
13180 /* confdefs.h.  */
13181 _ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h.  */
13185 $ac_includes_default
13186 int
13187 main ()
13188 {
13189 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13190 test_array [0] = 0
13191
13192   ;
13193   return 0;
13194 }
13195 _ACEOF
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198   (eval $ac_compile) 2>&5
13199   ac_status=$?
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); } &&
13202          { ac_try='test -s conftest.$ac_objext'
13203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204   (eval $ac_try) 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); }; }; then
13208   ac_hi=-1 ac_mid=-1
13209   while :; do
13210     cat >conftest.$ac_ext <<_ACEOF
13211 #line $LINENO "configure"
13212 /* confdefs.h.  */
13213 _ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h.  */
13217 $ac_includes_default
13218 int
13219 main ()
13220 {
13221 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13222 test_array [0] = 0
13223
13224   ;
13225   return 0;
13226 }
13227 _ACEOF
13228 rm -f conftest.$ac_objext
13229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13230   (eval $ac_compile) 2>&5
13231   ac_status=$?
13232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233   (exit $ac_status); } &&
13234          { ac_try='test -s conftest.$ac_objext'
13235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236   (eval $ac_try) 2>&5
13237   ac_status=$?
13238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239   (exit $ac_status); }; }; then
13240   ac_lo=$ac_mid; break
13241 else
13242   echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13244
13245 ac_hi=`expr '(' $ac_mid ')' - 1`
13246                        if test $ac_mid -le $ac_hi; then
13247                          ac_lo= ac_hi=
13248                          break
13249                        fi
13250                        ac_mid=`expr 2 '*' $ac_mid`
13251 fi
13252 rm -f conftest.$ac_objext conftest.$ac_ext
13253   done
13254 else
13255   echo "$as_me: failed program was:" >&5
13256 sed 's/^/| /' conftest.$ac_ext >&5
13257
13258 ac_lo= ac_hi=
13259 fi
13260 rm -f conftest.$ac_objext conftest.$ac_ext
13261 fi
13262 rm -f conftest.$ac_objext conftest.$ac_ext
13263 # Binary search between lo and hi bounds.
13264 while test "x$ac_lo" != "x$ac_hi"; do
13265   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13266   cat >conftest.$ac_ext <<_ACEOF
13267 #line $LINENO "configure"
13268 /* confdefs.h.  */
13269 _ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h.  */
13273 $ac_includes_default
13274 int
13275 main ()
13276 {
13277 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13278 test_array [0] = 0
13279
13280   ;
13281   return 0;
13282 }
13283 _ACEOF
13284 rm -f conftest.$ac_objext
13285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13286   (eval $ac_compile) 2>&5
13287   ac_status=$?
13288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289   (exit $ac_status); } &&
13290          { ac_try='test -s conftest.$ac_objext'
13291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13292   (eval $ac_try) 2>&5
13293   ac_status=$?
13294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295   (exit $ac_status); }; }; then
13296   ac_hi=$ac_mid
13297 else
13298   echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13300
13301 ac_lo=`expr '(' $ac_mid ')' + 1`
13302 fi
13303 rm -f conftest.$ac_objext conftest.$ac_ext
13304 done
13305 case $ac_lo in
13306 ?*) ac_cv_sizeof_int=$ac_lo;;
13307 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13308 See \`config.log' for more details." >&5
13309 echo "$as_me: error: cannot compute sizeof (int), 77
13310 See \`config.log' for more details." >&2;}
13311    { (exit 1); exit 1; }; } ;;
13312 esac
13313 else
13314   if test "$cross_compiling" = yes; then
13315   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13316 See \`config.log' for more details." >&5
13317 echo "$as_me: error: cannot run test program while cross compiling
13318 See \`config.log' for more details." >&2;}
13319    { (exit 1); exit 1; }; }
13320 else
13321   cat >conftest.$ac_ext <<_ACEOF
13322 #line $LINENO "configure"
13323 /* confdefs.h.  */
13324 _ACEOF
13325 cat confdefs.h >>conftest.$ac_ext
13326 cat >>conftest.$ac_ext <<_ACEOF
13327 /* end confdefs.h.  */
13328 $ac_includes_default
13329 long longval () { return (long) (sizeof (int)); }
13330 unsigned long ulongval () { return (long) (sizeof (int)); }
13331 #include <stdio.h>
13332 #include <stdlib.h>
13333 int
13334 main ()
13335 {
13336
13337   FILE *f = fopen ("conftest.val", "w");
13338   if (! f)
13339     exit (1);
13340   if (((long) (sizeof (int))) < 0)
13341     {
13342       long i = longval ();
13343       if (i != ((long) (sizeof (int))))
13344         exit (1);
13345       fprintf (f, "%ld\n", i);
13346     }
13347   else
13348     {
13349       unsigned long i = ulongval ();
13350       if (i != ((long) (sizeof (int))))
13351         exit (1);
13352       fprintf (f, "%lu\n", i);
13353     }
13354   exit (ferror (f) || fclose (f) != 0);
13355
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 rm -f conftest$ac_exeext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13362   (eval $ac_link) 2>&5
13363   ac_status=$?
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367   (eval $ac_try) 2>&5
13368   ac_status=$?
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); }; }; then
13371   ac_cv_sizeof_int=`cat conftest.val`
13372 else
13373   echo "$as_me: program exited with status $ac_status" >&5
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13376
13377 ( exit $ac_status )
13378 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13379 See \`config.log' for more details." >&5
13380 echo "$as_me: error: cannot compute sizeof (int), 77
13381 See \`config.log' for more details." >&2;}
13382    { (exit 1); exit 1; }; }
13383 fi
13384 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13385 fi
13386 fi
13387 rm -f conftest.val
13388 else
13389   ac_cv_sizeof_int=0
13390 fi
13391 fi
13392 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13393 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13394 cat >>confdefs.h <<_ACEOF
13395 #define SIZEOF_INT $ac_cv_sizeof_int
13396 _ACEOF
13397
13398
13399 echo "$as_me:$LINENO: checking for long int" >&5
13400 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13401 if test "${ac_cv_type_long_int+set}" = set; then
13402   echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404   cat >conftest.$ac_ext <<_ACEOF
13405 #line $LINENO "configure"
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411 $ac_includes_default
13412 int
13413 main ()
13414 {
13415 if ((long int *) 0)
13416   return 0;
13417 if (sizeof (long int))
13418   return 0;
13419   ;
13420   return 0;
13421 }
13422 _ACEOF
13423 rm -f conftest.$ac_objext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425   (eval $ac_compile) 2>&5
13426   ac_status=$?
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); } &&
13429          { ac_try='test -s conftest.$ac_objext'
13430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431   (eval $ac_try) 2>&5
13432   ac_status=$?
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); }; }; then
13435   ac_cv_type_long_int=yes
13436 else
13437   echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13439
13440 ac_cv_type_long_int=no
13441 fi
13442 rm -f conftest.$ac_objext conftest.$ac_ext
13443 fi
13444 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13445 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13446
13447 echo "$as_me:$LINENO: checking size of long int" >&5
13448 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13449 if test "${ac_cv_sizeof_long_int+set}" = set; then
13450   echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13452   if test "$ac_cv_type_long_int" = yes; then
13453   # The cast to unsigned long works around a bug in the HP C Compiler
13454   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13455   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13456   # This bug is HP SR number 8606223364.
13457   if test "$cross_compiling" = yes; then
13458   # Depending upon the size, compute the lo and hi bounds.
13459 cat >conftest.$ac_ext <<_ACEOF
13460 #line $LINENO "configure"
13461 /* confdefs.h.  */
13462 _ACEOF
13463 cat confdefs.h >>conftest.$ac_ext
13464 cat >>conftest.$ac_ext <<_ACEOF
13465 /* end confdefs.h.  */
13466 $ac_includes_default
13467 int
13468 main ()
13469 {
13470 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13471 test_array [0] = 0
13472
13473   ;
13474   return 0;
13475 }
13476 _ACEOF
13477 rm -f conftest.$ac_objext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13479   (eval $ac_compile) 2>&5
13480   ac_status=$?
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); } &&
13483          { ac_try='test -s conftest.$ac_objext'
13484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13485   (eval $ac_try) 2>&5
13486   ac_status=$?
13487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488   (exit $ac_status); }; }; then
13489   ac_lo=0 ac_mid=0
13490   while :; do
13491     cat >conftest.$ac_ext <<_ACEOF
13492 #line $LINENO "configure"
13493 /* confdefs.h.  */
13494 _ACEOF
13495 cat confdefs.h >>conftest.$ac_ext
13496 cat >>conftest.$ac_ext <<_ACEOF
13497 /* end confdefs.h.  */
13498 $ac_includes_default
13499 int
13500 main ()
13501 {
13502 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13503 test_array [0] = 0
13504
13505   ;
13506   return 0;
13507 }
13508 _ACEOF
13509 rm -f conftest.$ac_objext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511   (eval $ac_compile) 2>&5
13512   ac_status=$?
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); } &&
13515          { ac_try='test -s conftest.$ac_objext'
13516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517   (eval $ac_try) 2>&5
13518   ac_status=$?
13519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520   (exit $ac_status); }; }; then
13521   ac_hi=$ac_mid; break
13522 else
13523   echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13525
13526 ac_lo=`expr $ac_mid + 1`
13527                     if test $ac_lo -le $ac_mid; then
13528                       ac_lo= ac_hi=
13529                       break
13530                     fi
13531                     ac_mid=`expr 2 '*' $ac_mid + 1`
13532 fi
13533 rm -f conftest.$ac_objext conftest.$ac_ext
13534   done
13535 else
13536   echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13538
13539 cat >conftest.$ac_ext <<_ACEOF
13540 #line $LINENO "configure"
13541 /* confdefs.h.  */
13542 _ACEOF
13543 cat confdefs.h >>conftest.$ac_ext
13544 cat >>conftest.$ac_ext <<_ACEOF
13545 /* end confdefs.h.  */
13546 $ac_includes_default
13547 int
13548 main ()
13549 {
13550 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13551 test_array [0] = 0
13552
13553   ;
13554   return 0;
13555 }
13556 _ACEOF
13557 rm -f conftest.$ac_objext
13558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13559   (eval $ac_compile) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); } &&
13563          { ac_try='test -s conftest.$ac_objext'
13564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565   (eval $ac_try) 2>&5
13566   ac_status=$?
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); }; }; then
13569   ac_hi=-1 ac_mid=-1
13570   while :; do
13571     cat >conftest.$ac_ext <<_ACEOF
13572 #line $LINENO "configure"
13573 /* confdefs.h.  */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h.  */
13578 $ac_includes_default
13579 int
13580 main ()
13581 {
13582 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13583 test_array [0] = 0
13584
13585   ;
13586   return 0;
13587 }
13588 _ACEOF
13589 rm -f conftest.$ac_objext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591   (eval $ac_compile) 2>&5
13592   ac_status=$?
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); } &&
13595          { ac_try='test -s conftest.$ac_objext'
13596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597   (eval $ac_try) 2>&5
13598   ac_status=$?
13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); }; }; then
13601   ac_lo=$ac_mid; break
13602 else
13603   echo "$as_me: failed program was:" >&5
13604 sed 's/^/| /' conftest.$ac_ext >&5
13605
13606 ac_hi=`expr '(' $ac_mid ')' - 1`
13607                        if test $ac_mid -le $ac_hi; then
13608                          ac_lo= ac_hi=
13609                          break
13610                        fi
13611                        ac_mid=`expr 2 '*' $ac_mid`
13612 fi
13613 rm -f conftest.$ac_objext conftest.$ac_ext
13614   done
13615 else
13616   echo "$as_me: failed program was:" >&5
13617 sed 's/^/| /' conftest.$ac_ext >&5
13618
13619 ac_lo= ac_hi=
13620 fi
13621 rm -f conftest.$ac_objext conftest.$ac_ext
13622 fi
13623 rm -f conftest.$ac_objext conftest.$ac_ext
13624 # Binary search between lo and hi bounds.
13625 while test "x$ac_lo" != "x$ac_hi"; do
13626   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13627   cat >conftest.$ac_ext <<_ACEOF
13628 #line $LINENO "configure"
13629 /* confdefs.h.  */
13630 _ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h.  */
13634 $ac_includes_default
13635 int
13636 main ()
13637 {
13638 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13639 test_array [0] = 0
13640
13641   ;
13642   return 0;
13643 }
13644 _ACEOF
13645 rm -f conftest.$ac_objext
13646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13647   (eval $ac_compile) 2>&5
13648   ac_status=$?
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } &&
13651          { ac_try='test -s conftest.$ac_objext'
13652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653   (eval $ac_try) 2>&5
13654   ac_status=$?
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); }; }; then
13657   ac_hi=$ac_mid
13658 else
13659   echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13661
13662 ac_lo=`expr '(' $ac_mid ')' + 1`
13663 fi
13664 rm -f conftest.$ac_objext conftest.$ac_ext
13665 done
13666 case $ac_lo in
13667 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13668 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13669 See \`config.log' for more details." >&5
13670 echo "$as_me: error: cannot compute sizeof (long int), 77
13671 See \`config.log' for more details." >&2;}
13672    { (exit 1); exit 1; }; } ;;
13673 esac
13674 else
13675   if test "$cross_compiling" = yes; then
13676   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13677 See \`config.log' for more details." >&5
13678 echo "$as_me: error: cannot run test program while cross compiling
13679 See \`config.log' for more details." >&2;}
13680    { (exit 1); exit 1; }; }
13681 else
13682   cat >conftest.$ac_ext <<_ACEOF
13683 #line $LINENO "configure"
13684 /* confdefs.h.  */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h.  */
13689 $ac_includes_default
13690 long longval () { return (long) (sizeof (long int)); }
13691 unsigned long ulongval () { return (long) (sizeof (long int)); }
13692 #include <stdio.h>
13693 #include <stdlib.h>
13694 int
13695 main ()
13696 {
13697
13698   FILE *f = fopen ("conftest.val", "w");
13699   if (! f)
13700     exit (1);
13701   if (((long) (sizeof (long int))) < 0)
13702     {
13703       long i = longval ();
13704       if (i != ((long) (sizeof (long int))))
13705         exit (1);
13706       fprintf (f, "%ld\n", i);
13707     }
13708   else
13709     {
13710       unsigned long i = ulongval ();
13711       if (i != ((long) (sizeof (long int))))
13712         exit (1);
13713       fprintf (f, "%lu\n", i);
13714     }
13715   exit (ferror (f) || fclose (f) != 0);
13716
13717   ;
13718   return 0;
13719 }
13720 _ACEOF
13721 rm -f conftest$ac_exeext
13722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13723   (eval $ac_link) 2>&5
13724   ac_status=$?
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728   (eval $ac_try) 2>&5
13729   ac_status=$?
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); }; }; then
13732   ac_cv_sizeof_long_int=`cat conftest.val`
13733 else
13734   echo "$as_me: program exited with status $ac_status" >&5
13735 echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738 ( exit $ac_status )
13739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13740 See \`config.log' for more details." >&5
13741 echo "$as_me: error: cannot compute sizeof (long int), 77
13742 See \`config.log' for more details." >&2;}
13743    { (exit 1); exit 1; }; }
13744 fi
13745 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13746 fi
13747 fi
13748 rm -f conftest.val
13749 else
13750   ac_cv_sizeof_long_int=0
13751 fi
13752 fi
13753 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13754 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13755 cat >>confdefs.h <<_ACEOF
13756 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13757 _ACEOF
13758
13759
13760 echo "$as_me:$LINENO: checking for long long int" >&5
13761 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13762 if test "${ac_cv_type_long_long_int+set}" = set; then
13763   echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765   cat >conftest.$ac_ext <<_ACEOF
13766 #line $LINENO "configure"
13767 /* confdefs.h.  */
13768 _ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h.  */
13772 $ac_includes_default
13773 int
13774 main ()
13775 {
13776 if ((long long int *) 0)
13777   return 0;
13778 if (sizeof (long long int))
13779   return 0;
13780   ;
13781   return 0;
13782 }
13783 _ACEOF
13784 rm -f conftest.$ac_objext
13785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13786   (eval $ac_compile) 2>&5
13787   ac_status=$?
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); } &&
13790          { ac_try='test -s conftest.$ac_objext'
13791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792   (eval $ac_try) 2>&5
13793   ac_status=$?
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); }; }; then
13796   ac_cv_type_long_long_int=yes
13797 else
13798   echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13800
13801 ac_cv_type_long_long_int=no
13802 fi
13803 rm -f conftest.$ac_objext conftest.$ac_ext
13804 fi
13805 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13806 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13807
13808 echo "$as_me:$LINENO: checking size of long long int" >&5
13809 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13810 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13811   echo $ECHO_N "(cached) $ECHO_C" >&6
13812 else
13813   if test "$ac_cv_type_long_long_int" = yes; then
13814   # The cast to unsigned long works around a bug in the HP C Compiler
13815   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13816   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13817   # This bug is HP SR number 8606223364.
13818   if test "$cross_compiling" = yes; then
13819   # Depending upon the size, compute the lo and hi bounds.
13820 cat >conftest.$ac_ext <<_ACEOF
13821 #line $LINENO "configure"
13822 /* confdefs.h.  */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h.  */
13827 $ac_includes_default
13828 int
13829 main ()
13830 {
13831 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13832 test_array [0] = 0
13833
13834   ;
13835   return 0;
13836 }
13837 _ACEOF
13838 rm -f conftest.$ac_objext
13839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13840   (eval $ac_compile) 2>&5
13841   ac_status=$?
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); } &&
13844          { ac_try='test -s conftest.$ac_objext'
13845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846   (eval $ac_try) 2>&5
13847   ac_status=$?
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); }; }; then
13850   ac_lo=0 ac_mid=0
13851   while :; do
13852     cat >conftest.$ac_ext <<_ACEOF
13853 #line $LINENO "configure"
13854 /* confdefs.h.  */
13855 _ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h.  */
13859 $ac_includes_default
13860 int
13861 main ()
13862 {
13863 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13864 test_array [0] = 0
13865
13866   ;
13867   return 0;
13868 }
13869 _ACEOF
13870 rm -f conftest.$ac_objext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13872   (eval $ac_compile) 2>&5
13873   ac_status=$?
13874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875   (exit $ac_status); } &&
13876          { ac_try='test -s conftest.$ac_objext'
13877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878   (eval $ac_try) 2>&5
13879   ac_status=$?
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); }; }; then
13882   ac_hi=$ac_mid; break
13883 else
13884   echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13886
13887 ac_lo=`expr $ac_mid + 1`
13888                     if test $ac_lo -le $ac_mid; then
13889                       ac_lo= ac_hi=
13890                       break
13891                     fi
13892                     ac_mid=`expr 2 '*' $ac_mid + 1`
13893 fi
13894 rm -f conftest.$ac_objext conftest.$ac_ext
13895   done
13896 else
13897   echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13899
13900 cat >conftest.$ac_ext <<_ACEOF
13901 #line $LINENO "configure"
13902 /* confdefs.h.  */
13903 _ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h.  */
13907 $ac_includes_default
13908 int
13909 main ()
13910 {
13911 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13912 test_array [0] = 0
13913
13914   ;
13915   return 0;
13916 }
13917 _ACEOF
13918 rm -f conftest.$ac_objext
13919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13920   (eval $ac_compile) 2>&5
13921   ac_status=$?
13922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923   (exit $ac_status); } &&
13924          { ac_try='test -s conftest.$ac_objext'
13925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926   (eval $ac_try) 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; }; then
13930   ac_hi=-1 ac_mid=-1
13931   while :; do
13932     cat >conftest.$ac_ext <<_ACEOF
13933 #line $LINENO "configure"
13934 /* confdefs.h.  */
13935 _ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h.  */
13939 $ac_includes_default
13940 int
13941 main ()
13942 {
13943 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13944 test_array [0] = 0
13945
13946   ;
13947   return 0;
13948 }
13949 _ACEOF
13950 rm -f conftest.$ac_objext
13951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13952   (eval $ac_compile) 2>&5
13953   ac_status=$?
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); } &&
13956          { ac_try='test -s conftest.$ac_objext'
13957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958   (eval $ac_try) 2>&5
13959   ac_status=$?
13960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); }; }; then
13962   ac_lo=$ac_mid; break
13963 else
13964   echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13966
13967 ac_hi=`expr '(' $ac_mid ')' - 1`
13968                        if test $ac_mid -le $ac_hi; then
13969                          ac_lo= ac_hi=
13970                          break
13971                        fi
13972                        ac_mid=`expr 2 '*' $ac_mid`
13973 fi
13974 rm -f conftest.$ac_objext conftest.$ac_ext
13975   done
13976 else
13977   echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13979
13980 ac_lo= ac_hi=
13981 fi
13982 rm -f conftest.$ac_objext conftest.$ac_ext
13983 fi
13984 rm -f conftest.$ac_objext conftest.$ac_ext
13985 # Binary search between lo and hi bounds.
13986 while test "x$ac_lo" != "x$ac_hi"; do
13987   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13988   cat >conftest.$ac_ext <<_ACEOF
13989 #line $LINENO "configure"
13990 /* confdefs.h.  */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h.  */
13995 $ac_includes_default
13996 int
13997 main ()
13998 {
13999 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14000 test_array [0] = 0
14001
14002   ;
14003   return 0;
14004 }
14005 _ACEOF
14006 rm -f conftest.$ac_objext
14007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14008   (eval $ac_compile) 2>&5
14009   ac_status=$?
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); } &&
14012          { ac_try='test -s conftest.$ac_objext'
14013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14014   (eval $ac_try) 2>&5
14015   ac_status=$?
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); }; }; then
14018   ac_hi=$ac_mid
14019 else
14020   echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14022
14023 ac_lo=`expr '(' $ac_mid ')' + 1`
14024 fi
14025 rm -f conftest.$ac_objext conftest.$ac_ext
14026 done
14027 case $ac_lo in
14028 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14029 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14030 See \`config.log' for more details." >&5
14031 echo "$as_me: error: cannot compute sizeof (long long int), 77
14032 See \`config.log' for more details." >&2;}
14033    { (exit 1); exit 1; }; } ;;
14034 esac
14035 else
14036   if test "$cross_compiling" = yes; then
14037   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14038 See \`config.log' for more details." >&5
14039 echo "$as_me: error: cannot run test program while cross compiling
14040 See \`config.log' for more details." >&2;}
14041    { (exit 1); exit 1; }; }
14042 else
14043   cat >conftest.$ac_ext <<_ACEOF
14044 #line $LINENO "configure"
14045 /* confdefs.h.  */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h.  */
14050 $ac_includes_default
14051 long longval () { return (long) (sizeof (long long int)); }
14052 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14053 #include <stdio.h>
14054 #include <stdlib.h>
14055 int
14056 main ()
14057 {
14058
14059   FILE *f = fopen ("conftest.val", "w");
14060   if (! f)
14061     exit (1);
14062   if (((long) (sizeof (long long int))) < 0)
14063     {
14064       long i = longval ();
14065       if (i != ((long) (sizeof (long long int))))
14066         exit (1);
14067       fprintf (f, "%ld\n", i);
14068     }
14069   else
14070     {
14071       unsigned long i = ulongval ();
14072       if (i != ((long) (sizeof (long long int))))
14073         exit (1);
14074       fprintf (f, "%lu\n", i);
14075     }
14076   exit (ferror (f) || fclose (f) != 0);
14077
14078   ;
14079   return 0;
14080 }
14081 _ACEOF
14082 rm -f conftest$ac_exeext
14083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14084   (eval $ac_link) 2>&5
14085   ac_status=$?
14086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14089   (eval $ac_try) 2>&5
14090   ac_status=$?
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); }; }; then
14093   ac_cv_sizeof_long_long_int=`cat conftest.val`
14094 else
14095   echo "$as_me: program exited with status $ac_status" >&5
14096 echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14098
14099 ( exit $ac_status )
14100 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14101 See \`config.log' for more details." >&5
14102 echo "$as_me: error: cannot compute sizeof (long long int), 77
14103 See \`config.log' for more details." >&2;}
14104    { (exit 1); exit 1; }; }
14105 fi
14106 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14107 fi
14108 fi
14109 rm -f conftest.val
14110 else
14111   ac_cv_sizeof_long_long_int=0
14112 fi
14113 fi
14114 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14115 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14116 cat >>confdefs.h <<_ACEOF
14117 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14118 _ACEOF
14119
14120
14121 echo "$as_me:$LINENO: checking for int *" >&5
14122 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14123 if test "${ac_cv_type_int_p+set}" = set; then
14124   echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126   cat >conftest.$ac_ext <<_ACEOF
14127 #line $LINENO "configure"
14128 /* confdefs.h.  */
14129 _ACEOF
14130 cat confdefs.h >>conftest.$ac_ext
14131 cat >>conftest.$ac_ext <<_ACEOF
14132 /* end confdefs.h.  */
14133 $ac_includes_default
14134 int
14135 main ()
14136 {
14137 if ((int * *) 0)
14138   return 0;
14139 if (sizeof (int *))
14140   return 0;
14141   ;
14142   return 0;
14143 }
14144 _ACEOF
14145 rm -f conftest.$ac_objext
14146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14147   (eval $ac_compile) 2>&5
14148   ac_status=$?
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); } &&
14151          { ac_try='test -s conftest.$ac_objext'
14152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14153   (eval $ac_try) 2>&5
14154   ac_status=$?
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); }; }; then
14157   ac_cv_type_int_p=yes
14158 else
14159   echo "$as_me: failed program was:" >&5
14160 sed 's/^/| /' conftest.$ac_ext >&5
14161
14162 ac_cv_type_int_p=no
14163 fi
14164 rm -f conftest.$ac_objext conftest.$ac_ext
14165 fi
14166 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14167 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14168
14169 echo "$as_me:$LINENO: checking size of int *" >&5
14170 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14171 if test "${ac_cv_sizeof_int_p+set}" = set; then
14172   echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174   if test "$ac_cv_type_int_p" = yes; then
14175   # The cast to unsigned long works around a bug in the HP C Compiler
14176   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14177   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14178   # This bug is HP SR number 8606223364.
14179   if test "$cross_compiling" = yes; then
14180   # Depending upon the size, compute the lo and hi bounds.
14181 cat >conftest.$ac_ext <<_ACEOF
14182 #line $LINENO "configure"
14183 /* confdefs.h.  */
14184 _ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h.  */
14188 $ac_includes_default
14189 int
14190 main ()
14191 {
14192 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14193 test_array [0] = 0
14194
14195   ;
14196   return 0;
14197 }
14198 _ACEOF
14199 rm -f conftest.$ac_objext
14200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14201   (eval $ac_compile) 2>&5
14202   ac_status=$?
14203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204   (exit $ac_status); } &&
14205          { ac_try='test -s conftest.$ac_objext'
14206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207   (eval $ac_try) 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); }; }; then
14211   ac_lo=0 ac_mid=0
14212   while :; do
14213     cat >conftest.$ac_ext <<_ACEOF
14214 #line $LINENO "configure"
14215 /* confdefs.h.  */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h.  */
14220 $ac_includes_default
14221 int
14222 main ()
14223 {
14224 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14225 test_array [0] = 0
14226
14227   ;
14228   return 0;
14229 }
14230 _ACEOF
14231 rm -f conftest.$ac_objext
14232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233   (eval $ac_compile) 2>&5
14234   ac_status=$?
14235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236   (exit $ac_status); } &&
14237          { ac_try='test -s conftest.$ac_objext'
14238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239   (eval $ac_try) 2>&5
14240   ac_status=$?
14241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242   (exit $ac_status); }; }; then
14243   ac_hi=$ac_mid; break
14244 else
14245   echo "$as_me: failed program was:" >&5
14246 sed 's/^/| /' conftest.$ac_ext >&5
14247
14248 ac_lo=`expr $ac_mid + 1`
14249                     if test $ac_lo -le $ac_mid; then
14250                       ac_lo= ac_hi=
14251                       break
14252                     fi
14253                     ac_mid=`expr 2 '*' $ac_mid + 1`
14254 fi
14255 rm -f conftest.$ac_objext conftest.$ac_ext
14256   done
14257 else
14258   echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14260
14261 cat >conftest.$ac_ext <<_ACEOF
14262 #line $LINENO "configure"
14263 /* confdefs.h.  */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h.  */
14268 $ac_includes_default
14269 int
14270 main ()
14271 {
14272 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14273 test_array [0] = 0
14274
14275   ;
14276   return 0;
14277 }
14278 _ACEOF
14279 rm -f conftest.$ac_objext
14280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14281   (eval $ac_compile) 2>&5
14282   ac_status=$?
14283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284   (exit $ac_status); } &&
14285          { ac_try='test -s conftest.$ac_objext'
14286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287   (eval $ac_try) 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); }; }; then
14291   ac_hi=-1 ac_mid=-1
14292   while :; do
14293     cat >conftest.$ac_ext <<_ACEOF
14294 #line $LINENO "configure"
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>&5
14314   ac_status=$?
14315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316   (exit $ac_status); } &&
14317          { ac_try='test -s conftest.$ac_objext'
14318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319   (eval $ac_try) 2>&5
14320   ac_status=$?
14321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322   (exit $ac_status); }; }; then
14323   ac_lo=$ac_mid; break
14324 else
14325   echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14327
14328 ac_hi=`expr '(' $ac_mid ')' - 1`
14329                        if test $ac_mid -le $ac_hi; then
14330                          ac_lo= ac_hi=
14331                          break
14332                        fi
14333                        ac_mid=`expr 2 '*' $ac_mid`
14334 fi
14335 rm -f conftest.$ac_objext conftest.$ac_ext
14336   done
14337 else
14338   echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14340
14341 ac_lo= ac_hi=
14342 fi
14343 rm -f conftest.$ac_objext conftest.$ac_ext
14344 fi
14345 rm -f conftest.$ac_objext conftest.$ac_ext
14346 # Binary search between lo and hi bounds.
14347 while test "x$ac_lo" != "x$ac_hi"; do
14348   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14349   cat >conftest.$ac_ext <<_ACEOF
14350 #line $LINENO "configure"
14351 /* confdefs.h.  */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h.  */
14356 $ac_includes_default
14357 int
14358 main ()
14359 {
14360 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14361 test_array [0] = 0
14362
14363   ;
14364   return 0;
14365 }
14366 _ACEOF
14367 rm -f conftest.$ac_objext
14368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14369   (eval $ac_compile) 2>&5
14370   ac_status=$?
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); } &&
14373          { ac_try='test -s conftest.$ac_objext'
14374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375   (eval $ac_try) 2>&5
14376   ac_status=$?
14377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378   (exit $ac_status); }; }; then
14379   ac_hi=$ac_mid
14380 else
14381   echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14383
14384 ac_lo=`expr '(' $ac_mid ')' + 1`
14385 fi
14386 rm -f conftest.$ac_objext conftest.$ac_ext
14387 done
14388 case $ac_lo in
14389 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14390 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14391 See \`config.log' for more details." >&5
14392 echo "$as_me: error: cannot compute sizeof (int *), 77
14393 See \`config.log' for more details." >&2;}
14394    { (exit 1); exit 1; }; } ;;
14395 esac
14396 else
14397   if test "$cross_compiling" = yes; then
14398   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14399 See \`config.log' for more details." >&5
14400 echo "$as_me: error: cannot run test program while cross compiling
14401 See \`config.log' for more details." >&2;}
14402    { (exit 1); exit 1; }; }
14403 else
14404   cat >conftest.$ac_ext <<_ACEOF
14405 #line $LINENO "configure"
14406 /* confdefs.h.  */
14407 _ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h.  */
14411 $ac_includes_default
14412 long longval () { return (long) (sizeof (int *)); }
14413 unsigned long ulongval () { return (long) (sizeof (int *)); }
14414 #include <stdio.h>
14415 #include <stdlib.h>
14416 int
14417 main ()
14418 {
14419
14420   FILE *f = fopen ("conftest.val", "w");
14421   if (! f)
14422     exit (1);
14423   if (((long) (sizeof (int *))) < 0)
14424     {
14425       long i = longval ();
14426       if (i != ((long) (sizeof (int *))))
14427         exit (1);
14428       fprintf (f, "%ld\n", i);
14429     }
14430   else
14431     {
14432       unsigned long i = ulongval ();
14433       if (i != ((long) (sizeof (int *))))
14434         exit (1);
14435       fprintf (f, "%lu\n", i);
14436     }
14437   exit (ferror (f) || fclose (f) != 0);
14438
14439   ;
14440   return 0;
14441 }
14442 _ACEOF
14443 rm -f conftest$ac_exeext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14445   (eval $ac_link) 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450   (eval $ac_try) 2>&5
14451   ac_status=$?
14452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453   (exit $ac_status); }; }; then
14454   ac_cv_sizeof_int_p=`cat conftest.val`
14455 else
14456   echo "$as_me: program exited with status $ac_status" >&5
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14459
14460 ( exit $ac_status )
14461 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14462 See \`config.log' for more details." >&5
14463 echo "$as_me: error: cannot compute sizeof (int *), 77
14464 See \`config.log' for more details." >&2;}
14465    { (exit 1); exit 1; }; }
14466 fi
14467 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14468 fi
14469 fi
14470 rm -f conftest.val
14471 else
14472   ac_cv_sizeof_int_p=0
14473 fi
14474 fi
14475 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14476 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14477 cat >>confdefs.h <<_ACEOF
14478 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14479 _ACEOF
14480
14481
14482
14483 # Check for sys/types.h types
14484 echo "$as_me:$LINENO: checking for u_int type" >&5
14485 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14486 if test "${ac_cv_have_u_int+set}" = set; then
14487   echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489
14490     cat >conftest.$ac_ext <<_ACEOF
14491 #line $LINENO "configure"
14492 /* confdefs.h.  */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h.  */
14497  #include <sys/types.h>
14498 int
14499 main ()
14500 {
14501  u_int a; a = 1;
14502   ;
14503   return 0;
14504 }
14505 _ACEOF
14506 rm -f conftest.$ac_objext
14507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14508   (eval $ac_compile) 2>&5
14509   ac_status=$?
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); } &&
14512          { ac_try='test -s conftest.$ac_objext'
14513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514   (eval $ac_try) 2>&5
14515   ac_status=$?
14516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517   (exit $ac_status); }; }; then
14518    ac_cv_have_u_int="yes"
14519 else
14520   echo "$as_me: failed program was:" >&5
14521 sed 's/^/| /' conftest.$ac_ext >&5
14522
14523  ac_cv_have_u_int="no"
14524
14525 fi
14526 rm -f conftest.$ac_objext conftest.$ac_ext
14527
14528 fi
14529 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14530 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14531 if test "x$ac_cv_have_u_int" = "xyes" ; then
14532    cat >>confdefs.h <<\_ACEOF
14533 #define HAVE_U_INT 1
14534 _ACEOF
14535
14536    have_u_int=1
14537 fi
14538
14539 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14540 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14541 if test "${ac_cv_have_intmax_t+set}" = set; then
14542   echo $ECHO_N "(cached) $ECHO_C" >&6
14543 else
14544
14545    cat >conftest.$ac_ext <<_ACEOF
14546 #line $LINENO "configure"
14547 /* confdefs.h.  */
14548 _ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h.  */
14552  #include <sys/types.h>
14553 int
14554 main ()
14555 {
14556  intmax_t a; a = 1;
14557   ;
14558   return 0;
14559 }
14560 _ACEOF
14561 rm -f conftest.$ac_objext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563   (eval $ac_compile) 2>&5
14564   ac_status=$?
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); } &&
14567          { ac_try='test -s conftest.$ac_objext'
14568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569   (eval $ac_try) 2>&5
14570   ac_status=$?
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); }; }; then
14573    ac_cv_have_intmax_t="yes"
14574 else
14575   echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14577
14578
14579          cat >conftest.$ac_ext <<_ACEOF
14580 #line $LINENO "configure"
14581 /* confdefs.h.  */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h.  */
14586  #include <stdint.h>
14587 int
14588 main ()
14589 {
14590  intmax_t a; a = 1;
14591   ;
14592   return 0;
14593 }
14594 _ACEOF
14595 rm -f conftest.$ac_objext
14596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14597   (eval $ac_compile) 2>&5
14598   ac_status=$?
14599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600   (exit $ac_status); } &&
14601          { ac_try='test -s conftest.$ac_objext'
14602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603   (eval $ac_try) 2>&5
14604   ac_status=$?
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); }; }; then
14607    ac_cv_have_intmax_t="yes"
14608 else
14609   echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14611
14612  ac_cv_have_intmax_t="no"
14613
14614 fi
14615 rm -f conftest.$ac_objext conftest.$ac_ext
14616
14617
14618 fi
14619 rm -f conftest.$ac_objext conftest.$ac_ext
14620
14621
14622 fi
14623 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14624 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14625 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14626    cat >>confdefs.h <<\_ACEOF
14627 #define HAVE_INTMAX_T 1
14628 _ACEOF
14629
14630    have_intmax_t=1
14631 fi
14632
14633
14634 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14635 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14636 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14637   echo $ECHO_N "(cached) $ECHO_C" >&6
14638 else
14639
14640    cat >conftest.$ac_ext <<_ACEOF
14641 #line $LINENO "configure"
14642 /* confdefs.h.  */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h.  */
14647  #include <sys/types.h>
14648 int
14649 main ()
14650 {
14651  u_intmax_t a; a = 1;
14652   ;
14653   return 0;
14654 }
14655 _ACEOF
14656 rm -f conftest.$ac_objext
14657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14658   (eval $ac_compile) 2>&5
14659   ac_status=$?
14660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661   (exit $ac_status); } &&
14662          { ac_try='test -s conftest.$ac_objext'
14663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664   (eval $ac_try) 2>&5
14665   ac_status=$?
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); }; }; then
14668    ac_cv_have_u_intmax_t="yes"
14669 else
14670   echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14672
14673
14674          cat >conftest.$ac_ext <<_ACEOF
14675 #line $LINENO "configure"
14676 /* confdefs.h.  */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h.  */
14681  #include <stdint.h>
14682 int
14683 main ()
14684 {
14685  u_intmax_t a; a = 1;
14686   ;
14687   return 0;
14688 }
14689 _ACEOF
14690 rm -f conftest.$ac_objext
14691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14692   (eval $ac_compile) 2>&5
14693   ac_status=$?
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); } &&
14696          { ac_try='test -s conftest.$ac_objext'
14697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698   (eval $ac_try) 2>&5
14699   ac_status=$?
14700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   (exit $ac_status); }; }; then
14702    ac_cv_have_u_intmax_t="yes"
14703 else
14704   echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14706
14707  ac_cv_have_u_intmax_t="no"
14708
14709 fi
14710 rm -f conftest.$ac_objext conftest.$ac_ext
14711
14712
14713 fi
14714 rm -f conftest.$ac_objext conftest.$ac_ext
14715
14716 fi
14717 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14718 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14719 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14720    cat >>confdefs.h <<\_ACEOF
14721 #define HAVE_U_INTMAX_T 1
14722 _ACEOF
14723
14724    have_u_intmax_t=1
14725 fi
14726
14727
14728 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14729 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14730 if test "${ac_cv_have_intxx_t+set}" = set; then
14731   echo $ECHO_N "(cached) $ECHO_C" >&6
14732 else
14733
14734    cat >conftest.$ac_ext <<_ACEOF
14735 #line $LINENO "configure"
14736 /* confdefs.h.  */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h.  */
14741  #include <sys/types.h>
14742 int
14743 main ()
14744 {
14745  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14746   ;
14747   return 0;
14748 }
14749 _ACEOF
14750 rm -f conftest.$ac_objext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14752   (eval $ac_compile) 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); } &&
14756          { ac_try='test -s conftest.$ac_objext'
14757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758   (eval $ac_try) 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; }; then
14762    ac_cv_have_intxx_t="yes"
14763 else
14764   echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14766
14767  ac_cv_have_intxx_t="no"
14768
14769 fi
14770 rm -f conftest.$ac_objext conftest.$ac_ext
14771
14772 fi
14773 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14774 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14775 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14776    cat >>confdefs.h <<\_ACEOF
14777 #define HAVE_INTXX_T 1
14778 _ACEOF
14779
14780    have_intxx_t=1
14781 fi
14782
14783 echo "$as_me:$LINENO: checking for int64_t type" >&5
14784 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14785 if test "${ac_cv_have_int64_t+set}" = set; then
14786   echo $ECHO_N "(cached) $ECHO_C" >&6
14787 else
14788
14789    cat >conftest.$ac_ext <<_ACEOF
14790 #line $LINENO "configure"
14791 /* confdefs.h.  */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h.  */
14796  #include <sys/types.h>
14797 int
14798 main ()
14799 {
14800  int64_t a; a = 1;
14801   ;
14802   return 0;
14803 }
14804 _ACEOF
14805 rm -f conftest.$ac_objext
14806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14807   (eval $ac_compile) 2>&5
14808   ac_status=$?
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); } &&
14811          { ac_try='test -s conftest.$ac_objext'
14812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813   (eval $ac_try) 2>&5
14814   ac_status=$?
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); }; }; then
14817    ac_cv_have_int64_t="yes"
14818 else
14819   echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14821
14822  ac_cv_have_int64_t="no"
14823
14824 fi
14825 rm -f conftest.$ac_objext conftest.$ac_ext
14826
14827 fi
14828 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14829 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14830 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14831    cat >>confdefs.h <<\_ACEOF
14832 #define HAVE_INT64_T 1
14833 _ACEOF
14834
14835    have_int64_t=1
14836 fi
14837
14838 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14839 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14840 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14841   echo $ECHO_N "(cached) $ECHO_C" >&6
14842 else
14843
14844    cat >conftest.$ac_ext <<_ACEOF
14845 #line $LINENO "configure"
14846 /* confdefs.h.  */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h.  */
14851  #include <sys/types.h>
14852 int
14853 main ()
14854 {
14855  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14856   ;
14857   return 0;
14858 }
14859 _ACEOF
14860 rm -f conftest.$ac_objext
14861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862   (eval $ac_compile) 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); } &&
14866          { ac_try='test -s conftest.$ac_objext'
14867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868   (eval $ac_try) 2>&5
14869   ac_status=$?
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); }; }; then
14872    ac_cv_have_u_intxx_t="yes"
14873 else
14874   echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14876
14877  ac_cv_have_u_intxx_t="no"
14878
14879 fi
14880 rm -f conftest.$ac_objext conftest.$ac_ext
14881
14882 fi
14883 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14884 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14885 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14886    cat >>confdefs.h <<\_ACEOF
14887 #define HAVE_U_INTXX_T 1
14888 _ACEOF
14889
14890    have_u_intxx_t=1
14891 fi
14892
14893 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14894 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14895 if test "${ac_cv_have_u_int64_t+set}" = set; then
14896   echo $ECHO_N "(cached) $ECHO_C" >&6
14897 else
14898
14899    cat >conftest.$ac_ext <<_ACEOF
14900 #line $LINENO "configure"
14901 /* confdefs.h.  */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h.  */
14906  #include <sys/types.h>
14907 int
14908 main ()
14909 {
14910  u_int64_t a; a = 1;
14911   ;
14912   return 0;
14913 }
14914 _ACEOF
14915 rm -f conftest.$ac_objext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917   (eval $ac_compile) 2>&5
14918   ac_status=$?
14919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920   (exit $ac_status); } &&
14921          { ac_try='test -s conftest.$ac_objext'
14922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923   (eval $ac_try) 2>&5
14924   ac_status=$?
14925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926   (exit $ac_status); }; }; then
14927    ac_cv_have_u_int64_t="yes"
14928 else
14929   echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14931
14932  ac_cv_have_u_int64_t="no"
14933
14934 fi
14935 rm -f conftest.$ac_objext conftest.$ac_ext
14936
14937 fi
14938 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14939 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14940 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14941    cat >>confdefs.h <<\_ACEOF
14942 #define HAVE_U_INT64_T 1
14943 _ACEOF
14944
14945    have_u_int64_t=1
14946 fi
14947
14948 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14949            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14950 then
14951    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14952 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14953    cat >conftest.$ac_ext <<_ACEOF
14954 #line $LINENO "configure"
14955 /* confdefs.h.  */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h.  */
14960  #include <sys/bitypes.h>
14961 int
14962 main ()
14963 {
14964  int8_t a; int16_t b; int32_t c;
14965         u_int8_t e; u_int16_t f; u_int32_t g;
14966         a = b = c = e = f = g = 1;
14967   ;
14968   return 0;
14969 }
14970 _ACEOF
14971 rm -f conftest.$ac_objext
14972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14973   (eval $ac_compile) 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); } &&
14977          { ac_try='test -s conftest.$ac_objext'
14978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979   (eval $ac_try) 2>&5
14980   ac_status=$?
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); }; }; then
14983    cat >>confdefs.h <<\_ACEOF
14984 #define HAVE_U_INTXX_T 1
14985 _ACEOF
14986
14987         cat >>confdefs.h <<\_ACEOF
14988 #define HAVE_INTXX_T 1
14989 _ACEOF
14990
14991         cat >>confdefs.h <<\_ACEOF
14992 #define HAVE_SYS_BITYPES_H 1
14993 _ACEOF
14994
14995         echo "$as_me:$LINENO: result: yes" >&5
14996 echo "${ECHO_T}yes" >&6
14997 else
14998   echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15000
15001  echo "$as_me:$LINENO: result: no" >&5
15002 echo "${ECHO_T}no" >&6
15003
15004 fi
15005 rm -f conftest.$ac_objext conftest.$ac_ext
15006 fi
15007
15008 if test -z "$have_u_intxx_t" ; then
15009    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15010 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15011 if test "${ac_cv_have_uintxx_t+set}" = set; then
15012   echo $ECHO_N "(cached) $ECHO_C" >&6
15013 else
15014
15015       cat >conftest.$ac_ext <<_ACEOF
15016 #line $LINENO "configure"
15017 /* confdefs.h.  */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h.  */
15022  #include <sys/types.h>
15023 int
15024 main ()
15025 {
15026  uint8_t a; uint16_t b;
15027            uint32_t c; a = b = c = 1;
15028   ;
15029   return 0;
15030 }
15031 _ACEOF
15032 rm -f conftest.$ac_objext
15033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15034   (eval $ac_compile) 2>&5
15035   ac_status=$?
15036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037   (exit $ac_status); } &&
15038          { ac_try='test -s conftest.$ac_objext'
15039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040   (eval $ac_try) 2>&5
15041   ac_status=$?
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); }; }; then
15044    ac_cv_have_uintxx_t="yes"
15045 else
15046   echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15048
15049  ac_cv_have_uintxx_t="no"
15050
15051 fi
15052 rm -f conftest.$ac_objext conftest.$ac_ext
15053
15054 fi
15055 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15056 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15057    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15058       cat >>confdefs.h <<\_ACEOF
15059 #define HAVE_UINTXX_T 1
15060 _ACEOF
15061
15062    fi
15063 fi
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079 for ac_func in \
15080         fork \
15081         getcwd \
15082         gethostname \
15083         getpid \
15084         gettimeofday \
15085         setpgid \
15086         setpgrp \
15087         setsid \
15088         signal \
15089         strerror \
15090         strncmp \
15091         strncpy \
15092         vfprintf \
15093
15094 do
15095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15096 echo "$as_me:$LINENO: checking for $ac_func" >&5
15097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15098 if eval "test \"\${$as_ac_var+set}\" = set"; then
15099   echo $ECHO_N "(cached) $ECHO_C" >&6
15100 else
15101   cat >conftest.$ac_ext <<_ACEOF
15102 #line $LINENO "configure"
15103 /* confdefs.h.  */
15104 _ACEOF
15105 cat confdefs.h >>conftest.$ac_ext
15106 cat >>conftest.$ac_ext <<_ACEOF
15107 /* end confdefs.h.  */
15108 /* System header to define __stub macros and hopefully few prototypes,
15109     which can conflict with char $ac_func (); below.
15110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15111     <limits.h> exists even on freestanding compilers.  */
15112 #ifdef __STDC__
15113 # include <limits.h>
15114 #else
15115 # include <assert.h>
15116 #endif
15117 /* Override any gcc2 internal prototype to avoid an error.  */
15118 #ifdef __cplusplus
15119 extern "C"
15120 {
15121 #endif
15122 /* We use char because int might match the return type of a gcc2
15123    builtin and then its argument prototype would still apply.  */
15124 char $ac_func ();
15125 /* The GNU C library defines this for functions which it implements
15126     to always fail with ENOSYS.  Some functions are actually named
15127     something starting with __ and the normal name is an alias.  */
15128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15129 choke me
15130 #else
15131 char (*f) () = $ac_func;
15132 #endif
15133 #ifdef __cplusplus
15134 }
15135 #endif
15136
15137 int
15138 main ()
15139 {
15140 return f != $ac_func;
15141   ;
15142   return 0;
15143 }
15144 _ACEOF
15145 rm -f conftest.$ac_objext conftest$ac_exeext
15146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15147   (eval $ac_link) 2>&5
15148   ac_status=$?
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); } &&
15151          { ac_try='test -s conftest$ac_exeext'
15152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15153   (eval $ac_try) 2>&5
15154   ac_status=$?
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); }; }; then
15157   eval "$as_ac_var=yes"
15158 else
15159   echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15161
15162 eval "$as_ac_var=no"
15163 fi
15164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15165 fi
15166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15168 if test `eval echo '${'$as_ac_var'}'` = yes; then
15169   cat >>confdefs.h <<_ACEOF
15170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15171 _ACEOF
15172
15173 else
15174   echo 'configure: cannot find needed function.'; exit 1
15175
15176 fi
15177 done
15178
15179
15180
15181 for ac_func in fchdir
15182 do
15183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15184 echo "$as_me:$LINENO: checking for $ac_func" >&5
15185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15186 if eval "test \"\${$as_ac_var+set}\" = set"; then
15187   echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189   cat >conftest.$ac_ext <<_ACEOF
15190 #line $LINENO "configure"
15191 /* confdefs.h.  */
15192 _ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h.  */
15196 /* System header to define __stub macros and hopefully few prototypes,
15197     which can conflict with char $ac_func (); below.
15198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15199     <limits.h> exists even on freestanding compilers.  */
15200 #ifdef __STDC__
15201 # include <limits.h>
15202 #else
15203 # include <assert.h>
15204 #endif
15205 /* Override any gcc2 internal prototype to avoid an error.  */
15206 #ifdef __cplusplus
15207 extern "C"
15208 {
15209 #endif
15210 /* We use char because int might match the return type of a gcc2
15211    builtin and then its argument prototype would still apply.  */
15212 char $ac_func ();
15213 /* The GNU C library defines this for functions which it implements
15214     to always fail with ENOSYS.  Some functions are actually named
15215     something starting with __ and the normal name is an alias.  */
15216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15217 choke me
15218 #else
15219 char (*f) () = $ac_func;
15220 #endif
15221 #ifdef __cplusplus
15222 }
15223 #endif
15224
15225 int
15226 main ()
15227 {
15228 return f != $ac_func;
15229   ;
15230   return 0;
15231 }
15232 _ACEOF
15233 rm -f conftest.$ac_objext conftest$ac_exeext
15234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15235   (eval $ac_link) 2>&5
15236   ac_status=$?
15237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); } &&
15239          { ac_try='test -s conftest$ac_exeext'
15240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15241   (eval $ac_try) 2>&5
15242   ac_status=$?
15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244   (exit $ac_status); }; }; then
15245   eval "$as_ac_var=yes"
15246 else
15247   echo "$as_me: failed program was:" >&5
15248 sed 's/^/| /' conftest.$ac_ext >&5
15249
15250 eval "$as_ac_var=no"
15251 fi
15252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15253 fi
15254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15256 if test `eval echo '${'$as_ac_var'}'` = yes; then
15257   cat >>confdefs.h <<_ACEOF
15258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15259 _ACEOF
15260  cat >>confdefs.h <<\_ACEOF
15261 #define HAVE_FCHDIR 1
15262 _ACEOF
15263
15264 fi
15265 done
15266
15267
15268 for ac_func in strtoll
15269 do
15270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15271 echo "$as_me:$LINENO: checking for $ac_func" >&5
15272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15273 if eval "test \"\${$as_ac_var+set}\" = set"; then
15274   echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276   cat >conftest.$ac_ext <<_ACEOF
15277 #line $LINENO "configure"
15278 /* confdefs.h.  */
15279 _ACEOF
15280 cat confdefs.h >>conftest.$ac_ext
15281 cat >>conftest.$ac_ext <<_ACEOF
15282 /* end confdefs.h.  */
15283 /* System header to define __stub macros and hopefully few prototypes,
15284     which can conflict with char $ac_func (); below.
15285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15286     <limits.h> exists even on freestanding compilers.  */
15287 #ifdef __STDC__
15288 # include <limits.h>
15289 #else
15290 # include <assert.h>
15291 #endif
15292 /* Override any gcc2 internal prototype to avoid an error.  */
15293 #ifdef __cplusplus
15294 extern "C"
15295 {
15296 #endif
15297 /* We use char because int might match the return type of a gcc2
15298    builtin and then its argument prototype would still apply.  */
15299 char $ac_func ();
15300 /* The GNU C library defines this for functions which it implements
15301     to always fail with ENOSYS.  Some functions are actually named
15302     something starting with __ and the normal name is an alias.  */
15303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15304 choke me
15305 #else
15306 char (*f) () = $ac_func;
15307 #endif
15308 #ifdef __cplusplus
15309 }
15310 #endif
15311
15312 int
15313 main ()
15314 {
15315 return f != $ac_func;
15316   ;
15317   return 0;
15318 }
15319 _ACEOF
15320 rm -f conftest.$ac_objext conftest$ac_exeext
15321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15322   (eval $ac_link) 2>&5
15323   ac_status=$?
15324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325   (exit $ac_status); } &&
15326          { ac_try='test -s conftest$ac_exeext'
15327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328   (eval $ac_try) 2>&5
15329   ac_status=$?
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); }; }; then
15332   eval "$as_ac_var=yes"
15333 else
15334   echo "$as_me: failed program was:" >&5
15335 sed 's/^/| /' conftest.$ac_ext >&5
15336
15337 eval "$as_ac_var=no"
15338 fi
15339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15340 fi
15341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15343 if test `eval echo '${'$as_ac_var'}'` = yes; then
15344   cat >>confdefs.h <<_ACEOF
15345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15346 _ACEOF
15347  cat >>confdefs.h <<\_ACEOF
15348 #define HAVE_STRTOLL 1
15349 _ACEOF
15350
15351 fi
15352 done
15353
15354
15355
15356 for ac_func in chflags
15357 do
15358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15359 echo "$as_me:$LINENO: checking for $ac_func" >&5
15360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15361 if eval "test \"\${$as_ac_var+set}\" = set"; then
15362   echo $ECHO_N "(cached) $ECHO_C" >&6
15363 else
15364   cat >conftest.$ac_ext <<_ACEOF
15365 #line $LINENO "configure"
15366 /* confdefs.h.  */
15367 _ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h.  */
15371 /* System header to define __stub macros and hopefully few prototypes,
15372     which can conflict with char $ac_func (); below.
15373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15374     <limits.h> exists even on freestanding compilers.  */
15375 #ifdef __STDC__
15376 # include <limits.h>
15377 #else
15378 # include <assert.h>
15379 #endif
15380 /* Override any gcc2 internal prototype to avoid an error.  */
15381 #ifdef __cplusplus
15382 extern "C"
15383 {
15384 #endif
15385 /* We use char because int might match the return type of a gcc2
15386    builtin and then its argument prototype would still apply.  */
15387 char $ac_func ();
15388 /* The GNU C library defines this for functions which it implements
15389     to always fail with ENOSYS.  Some functions are actually named
15390     something starting with __ and the normal name is an alias.  */
15391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15392 choke me
15393 #else
15394 char (*f) () = $ac_func;
15395 #endif
15396 #ifdef __cplusplus
15397 }
15398 #endif
15399
15400 int
15401 main ()
15402 {
15403 return f != $ac_func;
15404   ;
15405   return 0;
15406 }
15407 _ACEOF
15408 rm -f conftest.$ac_objext conftest$ac_exeext
15409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15410   (eval $ac_link) 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } &&
15414          { ac_try='test -s conftest$ac_exeext'
15415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416   (eval $ac_try) 2>&5
15417   ac_status=$?
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); }; }; then
15420   eval "$as_ac_var=yes"
15421 else
15422   echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425 eval "$as_ac_var=no"
15426 fi
15427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15428 fi
15429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15431 if test `eval echo '${'$as_ac_var'}'` = yes; then
15432   cat >>confdefs.h <<_ACEOF
15433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15434 _ACEOF
15435
15436 fi
15437 done
15438
15439
15440
15441
15442
15443
15444 for ac_func in snprintf vsnprintf gethostid getdomainname
15445 do
15446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15447 echo "$as_me:$LINENO: checking for $ac_func" >&5
15448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15449 if eval "test \"\${$as_ac_var+set}\" = set"; then
15450   echo $ECHO_N "(cached) $ECHO_C" >&6
15451 else
15452   cat >conftest.$ac_ext <<_ACEOF
15453 #line $LINENO "configure"
15454 /* confdefs.h.  */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h.  */
15459 /* System header to define __stub macros and hopefully few prototypes,
15460     which can conflict with char $ac_func (); below.
15461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15462     <limits.h> exists even on freestanding compilers.  */
15463 #ifdef __STDC__
15464 # include <limits.h>
15465 #else
15466 # include <assert.h>
15467 #endif
15468 /* Override any gcc2 internal prototype to avoid an error.  */
15469 #ifdef __cplusplus
15470 extern "C"
15471 {
15472 #endif
15473 /* We use char because int might match the return type of a gcc2
15474    builtin and then its argument prototype would still apply.  */
15475 char $ac_func ();
15476 /* The GNU C library defines this for functions which it implements
15477     to always fail with ENOSYS.  Some functions are actually named
15478     something starting with __ and the normal name is an alias.  */
15479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15480 choke me
15481 #else
15482 char (*f) () = $ac_func;
15483 #endif
15484 #ifdef __cplusplus
15485 }
15486 #endif
15487
15488 int
15489 main ()
15490 {
15491 return f != $ac_func;
15492   ;
15493   return 0;
15494 }
15495 _ACEOF
15496 rm -f conftest.$ac_objext conftest$ac_exeext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15498   (eval $ac_link) 2>&5
15499   ac_status=$?
15500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501   (exit $ac_status); } &&
15502          { ac_try='test -s conftest$ac_exeext'
15503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504   (eval $ac_try) 2>&5
15505   ac_status=$?
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); }; }; then
15508   eval "$as_ac_var=yes"
15509 else
15510   echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513 eval "$as_ac_var=no"
15514 fi
15515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15516 fi
15517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15519 if test `eval echo '${'$as_ac_var'}'` = yes; then
15520   cat >>confdefs.h <<_ACEOF
15521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15522 _ACEOF
15523
15524 fi
15525 done
15526
15527
15528
15529
15530
15531
15532 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15533 do
15534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15535 echo "$as_me:$LINENO: checking for $ac_func" >&5
15536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15537 if eval "test \"\${$as_ac_var+set}\" = set"; then
15538   echo $ECHO_N "(cached) $ECHO_C" >&6
15539 else
15540   cat >conftest.$ac_ext <<_ACEOF
15541 #line $LINENO "configure"
15542 /* confdefs.h.  */
15543 _ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h.  */
15547 /* System header to define __stub macros and hopefully few prototypes,
15548     which can conflict with char $ac_func (); below.
15549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15550     <limits.h> exists even on freestanding compilers.  */
15551 #ifdef __STDC__
15552 # include <limits.h>
15553 #else
15554 # include <assert.h>
15555 #endif
15556 /* Override any gcc2 internal prototype to avoid an error.  */
15557 #ifdef __cplusplus
15558 extern "C"
15559 {
15560 #endif
15561 /* We use char because int might match the return type of a gcc2
15562    builtin and then its argument prototype would still apply.  */
15563 char $ac_func ();
15564 /* The GNU C library defines this for functions which it implements
15565     to always fail with ENOSYS.  Some functions are actually named
15566     something starting with __ and the normal name is an alias.  */
15567 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15568 choke me
15569 #else
15570 char (*f) () = $ac_func;
15571 #endif
15572 #ifdef __cplusplus
15573 }
15574 #endif
15575
15576 int
15577 main ()
15578 {
15579 return f != $ac_func;
15580   ;
15581   return 0;
15582 }
15583 _ACEOF
15584 rm -f conftest.$ac_objext conftest$ac_exeext
15585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15586   (eval $ac_link) 2>&5
15587   ac_status=$?
15588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589   (exit $ac_status); } &&
15590          { ac_try='test -s conftest$ac_exeext'
15591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15592   (eval $ac_try) 2>&5
15593   ac_status=$?
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); }; }; then
15596   eval "$as_ac_var=yes"
15597 else
15598   echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15600
15601 eval "$as_ac_var=no"
15602 fi
15603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15604 fi
15605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15606 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15607 if test `eval echo '${'$as_ac_var'}'` = yes; then
15608   cat >>confdefs.h <<_ACEOF
15609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15610 _ACEOF
15611
15612 fi
15613 done
15614
15615
15616 # If resolver functions are not in libc check for -lnsl or -lresolv.
15617 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15618 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15619 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15620   echo $ECHO_N "(cached) $ECHO_C" >&6
15621 else
15622   cat >conftest.$ac_ext <<_ACEOF
15623 #line $LINENO "configure"
15624 /* confdefs.h.  */
15625 _ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h.  */
15629 /* System header to define __stub macros and hopefully few prototypes,
15630     which can conflict with char gethostbyname_r (); below.
15631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15632     <limits.h> exists even on freestanding compilers.  */
15633 #ifdef __STDC__
15634 # include <limits.h>
15635 #else
15636 # include <assert.h>
15637 #endif
15638 /* Override any gcc2 internal prototype to avoid an error.  */
15639 #ifdef __cplusplus
15640 extern "C"
15641 {
15642 #endif
15643 /* We use char because int might match the return type of a gcc2
15644    builtin and then its argument prototype would still apply.  */
15645 char gethostbyname_r ();
15646 /* The GNU C library defines this for functions which it implements
15647     to always fail with ENOSYS.  Some functions are actually named
15648     something starting with __ and the normal name is an alias.  */
15649 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15650 choke me
15651 #else
15652 char (*f) () = gethostbyname_r;
15653 #endif
15654 #ifdef __cplusplus
15655 }
15656 #endif
15657
15658 int
15659 main ()
15660 {
15661 return f != gethostbyname_r;
15662   ;
15663   return 0;
15664 }
15665 _ACEOF
15666 rm -f conftest.$ac_objext conftest$ac_exeext
15667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15668   (eval $ac_link) 2>&5
15669   ac_status=$?
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); } &&
15672          { ac_try='test -s conftest$ac_exeext'
15673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15674   (eval $ac_try) 2>&5
15675   ac_status=$?
15676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677   (exit $ac_status); }; }; then
15678   ac_cv_func_gethostbyname_r=yes
15679 else
15680   echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15682
15683 ac_cv_func_gethostbyname_r=no
15684 fi
15685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15686 fi
15687 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15688 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15689 if test $ac_cv_func_gethostbyname_r = yes; then
15690   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15691 echo "${ECHO_T}using libc's resolver" >&6
15692 else
15693
15694 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15695 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15696 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15697   echo $ECHO_N "(cached) $ECHO_C" >&6
15698 else
15699   ac_check_lib_save_LIBS=$LIBS
15700 LIBS="-lnsl  $LIBS"
15701 cat >conftest.$ac_ext <<_ACEOF
15702 #line $LINENO "configure"
15703 /* confdefs.h.  */
15704 _ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h.  */
15708
15709 /* Override any gcc2 internal prototype to avoid an error.  */
15710 #ifdef __cplusplus
15711 extern "C"
15712 #endif
15713 /* We use char because int might match the return type of a gcc2
15714    builtin and then its argument prototype would still apply.  */
15715 char gethostbyname_r ();
15716 int
15717 main ()
15718 {
15719 gethostbyname_r ();
15720   ;
15721   return 0;
15722 }
15723 _ACEOF
15724 rm -f conftest.$ac_objext conftest$ac_exeext
15725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15726   (eval $ac_link) 2>&5
15727   ac_status=$?
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); } &&
15730          { ac_try='test -s conftest$ac_exeext'
15731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732   (eval $ac_try) 2>&5
15733   ac_status=$?
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); }; }; then
15736   ac_cv_lib_nsl_gethostbyname_r=yes
15737 else
15738   echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15740
15741 ac_cv_lib_nsl_gethostbyname_r=no
15742 fi
15743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15744 LIBS=$ac_check_lib_save_LIBS
15745 fi
15746 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15747 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15748 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15749   cat >>confdefs.h <<_ACEOF
15750 #define HAVE_LIBNSL 1
15751 _ACEOF
15752
15753   LIBS="-lnsl $LIBS"
15754
15755 fi
15756
15757
15758 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15759 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15760 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15761   echo $ECHO_N "(cached) $ECHO_C" >&6
15762 else
15763   ac_check_lib_save_LIBS=$LIBS
15764 LIBS="-lresolv  $LIBS"
15765 cat >conftest.$ac_ext <<_ACEOF
15766 #line $LINENO "configure"
15767 /* confdefs.h.  */
15768 _ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h.  */
15772
15773 /* Override any gcc2 internal prototype to avoid an error.  */
15774 #ifdef __cplusplus
15775 extern "C"
15776 #endif
15777 /* We use char because int might match the return type of a gcc2
15778    builtin and then its argument prototype would still apply.  */
15779 char gethostbyname_r ();
15780 int
15781 main ()
15782 {
15783 gethostbyname_r ();
15784   ;
15785   return 0;
15786 }
15787 _ACEOF
15788 rm -f conftest.$ac_objext conftest$ac_exeext
15789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15790   (eval $ac_link) 2>&5
15791   ac_status=$?
15792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793   (exit $ac_status); } &&
15794          { ac_try='test -s conftest$ac_exeext'
15795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796   (eval $ac_try) 2>&5
15797   ac_status=$?
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); }; }; then
15800   ac_cv_lib_resolv_gethostbyname_r=yes
15801 else
15802   echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15804
15805 ac_cv_lib_resolv_gethostbyname_r=no
15806 fi
15807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15808 LIBS=$ac_check_lib_save_LIBS
15809 fi
15810 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15811 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15812 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15813   cat >>confdefs.h <<_ACEOF
15814 #define HAVE_LIBRESOLV 1
15815 _ACEOF
15816
15817   LIBS="-lresolv $LIBS"
15818
15819 fi
15820
15821 fi
15822
15823
15824
15825 # Find where sockets are (especially for Solaris)
15826 echo "$as_me:$LINENO: checking for socket" >&5
15827 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15828 if test "${ac_cv_func_socket+set}" = set; then
15829   echo $ECHO_N "(cached) $ECHO_C" >&6
15830 else
15831   cat >conftest.$ac_ext <<_ACEOF
15832 #line $LINENO "configure"
15833 /* confdefs.h.  */
15834 _ACEOF
15835 cat confdefs.h >>conftest.$ac_ext
15836 cat >>conftest.$ac_ext <<_ACEOF
15837 /* end confdefs.h.  */
15838 /* System header to define __stub macros and hopefully few prototypes,
15839     which can conflict with char socket (); below.
15840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15841     <limits.h> exists even on freestanding compilers.  */
15842 #ifdef __STDC__
15843 # include <limits.h>
15844 #else
15845 # include <assert.h>
15846 #endif
15847 /* Override any gcc2 internal prototype to avoid an error.  */
15848 #ifdef __cplusplus
15849 extern "C"
15850 {
15851 #endif
15852 /* We use char because int might match the return type of a gcc2
15853    builtin and then its argument prototype would still apply.  */
15854 char socket ();
15855 /* The GNU C library defines this for functions which it implements
15856     to always fail with ENOSYS.  Some functions are actually named
15857     something starting with __ and the normal name is an alias.  */
15858 #if defined (__stub_socket) || defined (__stub___socket)
15859 choke me
15860 #else
15861 char (*f) () = socket;
15862 #endif
15863 #ifdef __cplusplus
15864 }
15865 #endif
15866
15867 int
15868 main ()
15869 {
15870 return f != socket;
15871   ;
15872   return 0;
15873 }
15874 _ACEOF
15875 rm -f conftest.$ac_objext conftest$ac_exeext
15876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15877   (eval $ac_link) 2>&5
15878   ac_status=$?
15879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880   (exit $ac_status); } &&
15881          { ac_try='test -s conftest$ac_exeext'
15882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883   (eval $ac_try) 2>&5
15884   ac_status=$?
15885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886   (exit $ac_status); }; }; then
15887   ac_cv_func_socket=yes
15888 else
15889   echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.$ac_ext >&5
15891
15892 ac_cv_func_socket=no
15893 fi
15894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15895 fi
15896 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15897 echo "${ECHO_T}$ac_cv_func_socket" >&6
15898 if test $ac_cv_func_socket = yes; then
15899   echo "$as_me:$LINENO: result: using libc's socket" >&5
15900 echo "${ECHO_T}using libc's socket" >&6
15901 else
15902
15903 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15904 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15905 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15906   echo $ECHO_N "(cached) $ECHO_C" >&6
15907 else
15908   ac_check_lib_save_LIBS=$LIBS
15909 LIBS="-lxnet  $LIBS"
15910 cat >conftest.$ac_ext <<_ACEOF
15911 #line $LINENO "configure"
15912 /* confdefs.h.  */
15913 _ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h.  */
15917
15918 /* Override any gcc2 internal prototype to avoid an error.  */
15919 #ifdef __cplusplus
15920 extern "C"
15921 #endif
15922 /* We use char because int might match the return type of a gcc2
15923    builtin and then its argument prototype would still apply.  */
15924 char socket ();
15925 int
15926 main ()
15927 {
15928 socket ();
15929   ;
15930   return 0;
15931 }
15932 _ACEOF
15933 rm -f conftest.$ac_objext conftest$ac_exeext
15934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15935   (eval $ac_link) 2>&5
15936   ac_status=$?
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); } &&
15939          { ac_try='test -s conftest$ac_exeext'
15940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941   (eval $ac_try) 2>&5
15942   ac_status=$?
15943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944   (exit $ac_status); }; }; then
15945   ac_cv_lib_xnet_socket=yes
15946 else
15947   echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15949
15950 ac_cv_lib_xnet_socket=no
15951 fi
15952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15953 LIBS=$ac_check_lib_save_LIBS
15954 fi
15955 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15956 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15957 if test $ac_cv_lib_xnet_socket = yes; then
15958   cat >>confdefs.h <<_ACEOF
15959 #define HAVE_LIBXNET 1
15960 _ACEOF
15961
15962   LIBS="-lxnet $LIBS"
15963
15964 fi
15965
15966
15967 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15968 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15969 if test "${ac_cv_lib_socket_socket+set}" = set; then
15970   echo $ECHO_N "(cached) $ECHO_C" >&6
15971 else
15972   ac_check_lib_save_LIBS=$LIBS
15973 LIBS="-lsocket  $LIBS"
15974 cat >conftest.$ac_ext <<_ACEOF
15975 #line $LINENO "configure"
15976 /* confdefs.h.  */
15977 _ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h.  */
15981
15982 /* Override any gcc2 internal prototype to avoid an error.  */
15983 #ifdef __cplusplus
15984 extern "C"
15985 #endif
15986 /* We use char because int might match the return type of a gcc2
15987    builtin and then its argument prototype would still apply.  */
15988 char socket ();
15989 int
15990 main ()
15991 {
15992 socket ();
15993   ;
15994   return 0;
15995 }
15996 _ACEOF
15997 rm -f conftest.$ac_objext conftest$ac_exeext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15999   (eval $ac_link) 2>&5
16000   ac_status=$?
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); } &&
16003          { ac_try='test -s conftest$ac_exeext'
16004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005   (eval $ac_try) 2>&5
16006   ac_status=$?
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); }; }; then
16009   ac_cv_lib_socket_socket=yes
16010 else
16011   echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16013
16014 ac_cv_lib_socket_socket=no
16015 fi
16016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16017 LIBS=$ac_check_lib_save_LIBS
16018 fi
16019 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16020 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16021 if test $ac_cv_lib_socket_socket = yes; then
16022   cat >>confdefs.h <<_ACEOF
16023 #define HAVE_LIBSOCKET 1
16024 _ACEOF
16025
16026   LIBS="-lsocket $LIBS"
16027
16028 fi
16029
16030
16031 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16032 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16033 if test "${ac_cv_lib_inet_socket+set}" = set; then
16034   echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036   ac_check_lib_save_LIBS=$LIBS
16037 LIBS="-linet  $LIBS"
16038 cat >conftest.$ac_ext <<_ACEOF
16039 #line $LINENO "configure"
16040 /* confdefs.h.  */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h.  */
16045
16046 /* Override any gcc2 internal prototype to avoid an error.  */
16047 #ifdef __cplusplus
16048 extern "C"
16049 #endif
16050 /* We use char because int might match the return type of a gcc2
16051    builtin and then its argument prototype would still apply.  */
16052 char socket ();
16053 int
16054 main ()
16055 {
16056 socket ();
16057   ;
16058   return 0;
16059 }
16060 _ACEOF
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16063   (eval $ac_link) 2>&5
16064   ac_status=$?
16065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066   (exit $ac_status); } &&
16067          { ac_try='test -s conftest$ac_exeext'
16068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16069   (eval $ac_try) 2>&5
16070   ac_status=$?
16071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072   (exit $ac_status); }; }; then
16073   ac_cv_lib_inet_socket=yes
16074 else
16075   echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16077
16078 ac_cv_lib_inet_socket=no
16079 fi
16080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16081 LIBS=$ac_check_lib_save_LIBS
16082 fi
16083 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16084 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16085 if test $ac_cv_lib_inet_socket = yes; then
16086   cat >>confdefs.h <<_ACEOF
16087 #define HAVE_LIBINET 1
16088 _ACEOF
16089
16090   LIBS="-linet $LIBS"
16091
16092 fi
16093
16094 fi
16095
16096
16097
16098 for ac_func in inet_pton
16099 do
16100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16101 echo "$as_me:$LINENO: checking for $ac_func" >&5
16102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16103 if eval "test \"\${$as_ac_var+set}\" = set"; then
16104   echo $ECHO_N "(cached) $ECHO_C" >&6
16105 else
16106   cat >conftest.$ac_ext <<_ACEOF
16107 #line $LINENO "configure"
16108 /* confdefs.h.  */
16109 _ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h.  */
16113 /* System header to define __stub macros and hopefully few prototypes,
16114     which can conflict with char $ac_func (); below.
16115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16116     <limits.h> exists even on freestanding compilers.  */
16117 #ifdef __STDC__
16118 # include <limits.h>
16119 #else
16120 # include <assert.h>
16121 #endif
16122 /* Override any gcc2 internal prototype to avoid an error.  */
16123 #ifdef __cplusplus
16124 extern "C"
16125 {
16126 #endif
16127 /* We use char because int might match the return type of a gcc2
16128    builtin and then its argument prototype would still apply.  */
16129 char $ac_func ();
16130 /* The GNU C library defines this for functions which it implements
16131     to always fail with ENOSYS.  Some functions are actually named
16132     something starting with __ and the normal name is an alias.  */
16133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16134 choke me
16135 #else
16136 char (*f) () = $ac_func;
16137 #endif
16138 #ifdef __cplusplus
16139 }
16140 #endif
16141
16142 int
16143 main ()
16144 {
16145 return f != $ac_func;
16146   ;
16147   return 0;
16148 }
16149 _ACEOF
16150 rm -f conftest.$ac_objext conftest$ac_exeext
16151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16152   (eval $ac_link) 2>&5
16153   ac_status=$?
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); } &&
16156          { ac_try='test -s conftest$ac_exeext'
16157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158   (eval $ac_try) 2>&5
16159   ac_status=$?
16160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161   (exit $ac_status); }; }; then
16162   eval "$as_ac_var=yes"
16163 else
16164   echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16166
16167 eval "$as_ac_var=no"
16168 fi
16169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16170 fi
16171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16173 if test `eval echo '${'$as_ac_var'}'` = yes; then
16174   cat >>confdefs.h <<_ACEOF
16175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16176 _ACEOF
16177  cat >>confdefs.h <<\_ACEOF
16178 #define HAVE_INET_PTON 1
16179 _ACEOF
16180
16181 fi
16182 done
16183
16184
16185
16186 for ac_func in strftime
16187 do
16188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16189 echo "$as_me:$LINENO: checking for $ac_func" >&5
16190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16191 if eval "test \"\${$as_ac_var+set}\" = set"; then
16192   echo $ECHO_N "(cached) $ECHO_C" >&6
16193 else
16194   cat >conftest.$ac_ext <<_ACEOF
16195 #line $LINENO "configure"
16196 /* confdefs.h.  */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h.  */
16201 /* System header to define __stub macros and hopefully few prototypes,
16202     which can conflict with char $ac_func (); below.
16203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16204     <limits.h> exists even on freestanding compilers.  */
16205 #ifdef __STDC__
16206 # include <limits.h>
16207 #else
16208 # include <assert.h>
16209 #endif
16210 /* Override any gcc2 internal prototype to avoid an error.  */
16211 #ifdef __cplusplus
16212 extern "C"
16213 {
16214 #endif
16215 /* We use char because int might match the return type of a gcc2
16216    builtin and then its argument prototype would still apply.  */
16217 char $ac_func ();
16218 /* The GNU C library defines this for functions which it implements
16219     to always fail with ENOSYS.  Some functions are actually named
16220     something starting with __ and the normal name is an alias.  */
16221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16222 choke me
16223 #else
16224 char (*f) () = $ac_func;
16225 #endif
16226 #ifdef __cplusplus
16227 }
16228 #endif
16229
16230 int
16231 main ()
16232 {
16233 return f != $ac_func;
16234   ;
16235   return 0;
16236 }
16237 _ACEOF
16238 rm -f conftest.$ac_objext conftest$ac_exeext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16240   (eval $ac_link) 2>&5
16241   ac_status=$?
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); } &&
16244          { ac_try='test -s conftest$ac_exeext'
16245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16246   (eval $ac_try) 2>&5
16247   ac_status=$?
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); }; }; then
16250   eval "$as_ac_var=yes"
16251 else
16252   echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16254
16255 eval "$as_ac_var=no"
16256 fi
16257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16258 fi
16259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16261 if test `eval echo '${'$as_ac_var'}'` = yes; then
16262   cat >>confdefs.h <<_ACEOF
16263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16264 _ACEOF
16265
16266 else
16267   # strftime is in -lintl on SCO UNIX.
16268 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16269 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16270 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16271   echo $ECHO_N "(cached) $ECHO_C" >&6
16272 else
16273   ac_check_lib_save_LIBS=$LIBS
16274 LIBS="-lintl  $LIBS"
16275 cat >conftest.$ac_ext <<_ACEOF
16276 #line $LINENO "configure"
16277 /* confdefs.h.  */
16278 _ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h.  */
16282
16283 /* Override any gcc2 internal prototype to avoid an error.  */
16284 #ifdef __cplusplus
16285 extern "C"
16286 #endif
16287 /* We use char because int might match the return type of a gcc2
16288    builtin and then its argument prototype would still apply.  */
16289 char strftime ();
16290 int
16291 main ()
16292 {
16293 strftime ();
16294   ;
16295   return 0;
16296 }
16297 _ACEOF
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16300   (eval $ac_link) 2>&5
16301   ac_status=$?
16302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303   (exit $ac_status); } &&
16304          { ac_try='test -s conftest$ac_exeext'
16305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306   (eval $ac_try) 2>&5
16307   ac_status=$?
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); }; }; then
16310   ac_cv_lib_intl_strftime=yes
16311 else
16312   echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16314
16315 ac_cv_lib_intl_strftime=no
16316 fi
16317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16318 LIBS=$ac_check_lib_save_LIBS
16319 fi
16320 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16321 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16322 if test $ac_cv_lib_intl_strftime = yes; then
16323   cat >>confdefs.h <<\_ACEOF
16324 #define HAVE_STRFTIME 1
16325 _ACEOF
16326
16327 LIBS="-lintl $LIBS"
16328 fi
16329
16330 fi
16331 done
16332
16333
16334 for ac_func in vprintf
16335 do
16336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16337 echo "$as_me:$LINENO: checking for $ac_func" >&5
16338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16339 if eval "test \"\${$as_ac_var+set}\" = set"; then
16340   echo $ECHO_N "(cached) $ECHO_C" >&6
16341 else
16342   cat >conftest.$ac_ext <<_ACEOF
16343 #line $LINENO "configure"
16344 /* confdefs.h.  */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h.  */
16349 /* System header to define __stub macros and hopefully few prototypes,
16350     which can conflict with char $ac_func (); below.
16351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16352     <limits.h> exists even on freestanding compilers.  */
16353 #ifdef __STDC__
16354 # include <limits.h>
16355 #else
16356 # include <assert.h>
16357 #endif
16358 /* Override any gcc2 internal prototype to avoid an error.  */
16359 #ifdef __cplusplus
16360 extern "C"
16361 {
16362 #endif
16363 /* We use char because int might match the return type of a gcc2
16364    builtin and then its argument prototype would still apply.  */
16365 char $ac_func ();
16366 /* The GNU C library defines this for functions which it implements
16367     to always fail with ENOSYS.  Some functions are actually named
16368     something starting with __ and the normal name is an alias.  */
16369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16370 choke me
16371 #else
16372 char (*f) () = $ac_func;
16373 #endif
16374 #ifdef __cplusplus
16375 }
16376 #endif
16377
16378 int
16379 main ()
16380 {
16381 return f != $ac_func;
16382   ;
16383   return 0;
16384 }
16385 _ACEOF
16386 rm -f conftest.$ac_objext conftest$ac_exeext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16388   (eval $ac_link) 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } &&
16392          { ac_try='test -s conftest$ac_exeext'
16393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394   (eval $ac_try) 2>&5
16395   ac_status=$?
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); }; }; then
16398   eval "$as_ac_var=yes"
16399 else
16400   echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16402
16403 eval "$as_ac_var=no"
16404 fi
16405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16406 fi
16407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16409 if test `eval echo '${'$as_ac_var'}'` = yes; then
16410   cat >>confdefs.h <<_ACEOF
16411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16412 _ACEOF
16413
16414 echo "$as_me:$LINENO: checking for _doprnt" >&5
16415 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16416 if test "${ac_cv_func__doprnt+set}" = set; then
16417   echo $ECHO_N "(cached) $ECHO_C" >&6
16418 else
16419   cat >conftest.$ac_ext <<_ACEOF
16420 #line $LINENO "configure"
16421 /* confdefs.h.  */
16422 _ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h.  */
16426 /* System header to define __stub macros and hopefully few prototypes,
16427     which can conflict with char _doprnt (); below.
16428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16429     <limits.h> exists even on freestanding compilers.  */
16430 #ifdef __STDC__
16431 # include <limits.h>
16432 #else
16433 # include <assert.h>
16434 #endif
16435 /* Override any gcc2 internal prototype to avoid an error.  */
16436 #ifdef __cplusplus
16437 extern "C"
16438 {
16439 #endif
16440 /* We use char because int might match the return type of a gcc2
16441    builtin and then its argument prototype would still apply.  */
16442 char _doprnt ();
16443 /* The GNU C library defines this for functions which it implements
16444     to always fail with ENOSYS.  Some functions are actually named
16445     something starting with __ and the normal name is an alias.  */
16446 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16447 choke me
16448 #else
16449 char (*f) () = _doprnt;
16450 #endif
16451 #ifdef __cplusplus
16452 }
16453 #endif
16454
16455 int
16456 main ()
16457 {
16458 return f != _doprnt;
16459   ;
16460   return 0;
16461 }
16462 _ACEOF
16463 rm -f conftest.$ac_objext conftest$ac_exeext
16464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16465   (eval $ac_link) 2>&5
16466   ac_status=$?
16467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468   (exit $ac_status); } &&
16469          { ac_try='test -s conftest$ac_exeext'
16470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471   (eval $ac_try) 2>&5
16472   ac_status=$?
16473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474   (exit $ac_status); }; }; then
16475   ac_cv_func__doprnt=yes
16476 else
16477   echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16479
16480 ac_cv_func__doprnt=no
16481 fi
16482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16483 fi
16484 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16485 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16486 if test $ac_cv_func__doprnt = yes; then
16487
16488 cat >>confdefs.h <<\_ACEOF
16489 #define HAVE_DOPRNT 1
16490 _ACEOF
16491
16492 fi
16493
16494 fi
16495 done
16496
16497
16498 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16499 # for constant arguments.  Useless!
16500 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16501 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16502 if test "${ac_cv_working_alloca_h+set}" = set; then
16503   echo $ECHO_N "(cached) $ECHO_C" >&6
16504 else
16505   cat >conftest.$ac_ext <<_ACEOF
16506 #line $LINENO "configure"
16507 /* confdefs.h.  */
16508 _ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h.  */
16512 #include <alloca.h>
16513 int
16514 main ()
16515 {
16516 char *p = (char *) alloca (2 * sizeof (int));
16517   ;
16518   return 0;
16519 }
16520 _ACEOF
16521 rm -f conftest.$ac_objext conftest$ac_exeext
16522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16523   (eval $ac_link) 2>&5
16524   ac_status=$?
16525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526   (exit $ac_status); } &&
16527          { ac_try='test -s conftest$ac_exeext'
16528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529   (eval $ac_try) 2>&5
16530   ac_status=$?
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); }; }; then
16533   ac_cv_working_alloca_h=yes
16534 else
16535   echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16537
16538 ac_cv_working_alloca_h=no
16539 fi
16540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16541 fi
16542 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16543 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16544 if test $ac_cv_working_alloca_h = yes; then
16545
16546 cat >>confdefs.h <<\_ACEOF
16547 #define HAVE_ALLOCA_H 1
16548 _ACEOF
16549
16550 fi
16551
16552 echo "$as_me:$LINENO: checking for alloca" >&5
16553 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16554 if test "${ac_cv_func_alloca_works+set}" = set; then
16555   echo $ECHO_N "(cached) $ECHO_C" >&6
16556 else
16557   cat >conftest.$ac_ext <<_ACEOF
16558 #line $LINENO "configure"
16559 /* confdefs.h.  */
16560 _ACEOF
16561 cat confdefs.h >>conftest.$ac_ext
16562 cat >>conftest.$ac_ext <<_ACEOF
16563 /* end confdefs.h.  */
16564 #ifdef __GNUC__
16565 # define alloca __builtin_alloca
16566 #else
16567 # ifdef _MSC_VER
16568 #  include <malloc.h>
16569 #  define alloca _alloca
16570 # else
16571 #  if HAVE_ALLOCA_H
16572 #   include <alloca.h>
16573 #  else
16574 #   ifdef _AIX
16575  #pragma alloca
16576 #   else
16577 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16578 char *alloca ();
16579 #    endif
16580 #   endif
16581 #  endif
16582 # endif
16583 #endif
16584
16585 int
16586 main ()
16587 {
16588 char *p = (char *) alloca (1);
16589   ;
16590   return 0;
16591 }
16592 _ACEOF
16593 rm -f conftest.$ac_objext conftest$ac_exeext
16594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16595   (eval $ac_link) 2>&5
16596   ac_status=$?
16597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598   (exit $ac_status); } &&
16599          { ac_try='test -s conftest$ac_exeext'
16600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601   (eval $ac_try) 2>&5
16602   ac_status=$?
16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); }; }; then
16605   ac_cv_func_alloca_works=yes
16606 else
16607   echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16609
16610 ac_cv_func_alloca_works=no
16611 fi
16612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16613 fi
16614 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16615 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16616
16617 if test $ac_cv_func_alloca_works = yes; then
16618
16619 cat >>confdefs.h <<\_ACEOF
16620 #define HAVE_ALLOCA 1
16621 _ACEOF
16622
16623 else
16624   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16625 # that cause trouble.  Some versions do not even contain alloca or
16626 # contain a buggy version.  If you still want to use their alloca,
16627 # use ar to extract alloca.o from them instead of compiling alloca.c.
16628
16629 ALLOCA=alloca.$ac_objext
16630
16631 cat >>confdefs.h <<\_ACEOF
16632 #define C_ALLOCA 1
16633 _ACEOF
16634
16635
16636 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16637 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16638 if test "${ac_cv_os_cray+set}" = set; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641   cat >conftest.$ac_ext <<_ACEOF
16642 #line $LINENO "configure"
16643 /* confdefs.h.  */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h.  */
16648 #if defined(CRAY) && ! defined(CRAY2)
16649 webecray
16650 #else
16651 wenotbecray
16652 #endif
16653
16654 _ACEOF
16655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16656   $EGREP "webecray" >/dev/null 2>&1; then
16657   ac_cv_os_cray=yes
16658 else
16659   ac_cv_os_cray=no
16660 fi
16661 rm -f conftest*
16662
16663 fi
16664 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16665 echo "${ECHO_T}$ac_cv_os_cray" >&6
16666 if test $ac_cv_os_cray = yes; then
16667   for ac_func in _getb67 GETB67 getb67; do
16668     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16669 echo "$as_me:$LINENO: checking for $ac_func" >&5
16670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16671 if eval "test \"\${$as_ac_var+set}\" = set"; then
16672   echo $ECHO_N "(cached) $ECHO_C" >&6
16673 else
16674   cat >conftest.$ac_ext <<_ACEOF
16675 #line $LINENO "configure"
16676 /* confdefs.h.  */
16677 _ACEOF
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h.  */
16681 /* System header to define __stub macros and hopefully few prototypes,
16682     which can conflict with char $ac_func (); below.
16683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16684     <limits.h> exists even on freestanding compilers.  */
16685 #ifdef __STDC__
16686 # include <limits.h>
16687 #else
16688 # include <assert.h>
16689 #endif
16690 /* Override any gcc2 internal prototype to avoid an error.  */
16691 #ifdef __cplusplus
16692 extern "C"
16693 {
16694 #endif
16695 /* We use char because int might match the return type of a gcc2
16696    builtin and then its argument prototype would still apply.  */
16697 char $ac_func ();
16698 /* The GNU C library defines this for functions which it implements
16699     to always fail with ENOSYS.  Some functions are actually named
16700     something starting with __ and the normal name is an alias.  */
16701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16702 choke me
16703 #else
16704 char (*f) () = $ac_func;
16705 #endif
16706 #ifdef __cplusplus
16707 }
16708 #endif
16709
16710 int
16711 main ()
16712 {
16713 return f != $ac_func;
16714   ;
16715   return 0;
16716 }
16717 _ACEOF
16718 rm -f conftest.$ac_objext conftest$ac_exeext
16719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16720   (eval $ac_link) 2>&5
16721   ac_status=$?
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); } &&
16724          { ac_try='test -s conftest$ac_exeext'
16725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726   (eval $ac_try) 2>&5
16727   ac_status=$?
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); }; }; then
16730   eval "$as_ac_var=yes"
16731 else
16732   echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.$ac_ext >&5
16734
16735 eval "$as_ac_var=no"
16736 fi
16737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16738 fi
16739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16741 if test `eval echo '${'$as_ac_var'}'` = yes; then
16742
16743 cat >>confdefs.h <<_ACEOF
16744 #define CRAY_STACKSEG_END $ac_func
16745 _ACEOF
16746
16747     break
16748 fi
16749
16750   done
16751 fi
16752
16753 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16754 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16755 if test "${ac_cv_c_stack_direction+set}" = set; then
16756   echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758   if test "$cross_compiling" = yes; then
16759   ac_cv_c_stack_direction=0
16760 else
16761   cat >conftest.$ac_ext <<_ACEOF
16762 #line $LINENO "configure"
16763 /* confdefs.h.  */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h.  */
16768 int
16769 find_stack_direction ()
16770 {
16771   static char *addr = 0;
16772   auto char dummy;
16773   if (addr == 0)
16774     {
16775       addr = &dummy;
16776       return find_stack_direction ();
16777     }
16778   else
16779     return (&dummy > addr) ? 1 : -1;
16780 }
16781
16782 int
16783 main ()
16784 {
16785   exit (find_stack_direction () < 0);
16786 }
16787 _ACEOF
16788 rm -f conftest$ac_exeext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16790   (eval $ac_link) 2>&5
16791   ac_status=$?
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795   (eval $ac_try) 2>&5
16796   ac_status=$?
16797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798   (exit $ac_status); }; }; then
16799   ac_cv_c_stack_direction=1
16800 else
16801   echo "$as_me: program exited with status $ac_status" >&5
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16804
16805 ( exit $ac_status )
16806 ac_cv_c_stack_direction=-1
16807 fi
16808 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16809 fi
16810 fi
16811 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16812 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16813
16814 cat >>confdefs.h <<_ACEOF
16815 #define STACK_DIRECTION $ac_cv_c_stack_direction
16816 _ACEOF
16817
16818
16819 fi
16820
16821 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16822 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16823 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16824 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16825   echo $ECHO_N "(cached) $ECHO_C" >&6
16826 else
16827   ac_check_lib_save_LIBS=$LIBS
16828 LIBS="-lsun  $LIBS"
16829 cat >conftest.$ac_ext <<_ACEOF
16830 #line $LINENO "configure"
16831 /* confdefs.h.  */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h.  */
16836
16837 /* Override any gcc2 internal prototype to avoid an error.  */
16838 #ifdef __cplusplus
16839 extern "C"
16840 #endif
16841 /* We use char because int might match the return type of a gcc2
16842    builtin and then its argument prototype would still apply.  */
16843 char getmntent ();
16844 int
16845 main ()
16846 {
16847 getmntent ();
16848   ;
16849   return 0;
16850 }
16851 _ACEOF
16852 rm -f conftest.$ac_objext conftest$ac_exeext
16853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16854   (eval $ac_link) 2>&5
16855   ac_status=$?
16856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857   (exit $ac_status); } &&
16858          { ac_try='test -s conftest$ac_exeext'
16859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860   (eval $ac_try) 2>&5
16861   ac_status=$?
16862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863   (exit $ac_status); }; }; then
16864   ac_cv_lib_sun_getmntent=yes
16865 else
16866   echo "$as_me: failed program was:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16868
16869 ac_cv_lib_sun_getmntent=no
16870 fi
16871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16872 LIBS=$ac_check_lib_save_LIBS
16873 fi
16874 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16875 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16876 if test $ac_cv_lib_sun_getmntent = yes; then
16877   LIBS="-lsun $LIBS"
16878 else
16879   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16880 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16881 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16882   echo $ECHO_N "(cached) $ECHO_C" >&6
16883 else
16884   ac_check_lib_save_LIBS=$LIBS
16885 LIBS="-lseq  $LIBS"
16886 cat >conftest.$ac_ext <<_ACEOF
16887 #line $LINENO "configure"
16888 /* confdefs.h.  */
16889 _ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h.  */
16893
16894 /* Override any gcc2 internal prototype to avoid an error.  */
16895 #ifdef __cplusplus
16896 extern "C"
16897 #endif
16898 /* We use char because int might match the return type of a gcc2
16899    builtin and then its argument prototype would still apply.  */
16900 char getmntent ();
16901 int
16902 main ()
16903 {
16904 getmntent ();
16905   ;
16906   return 0;
16907 }
16908 _ACEOF
16909 rm -f conftest.$ac_objext conftest$ac_exeext
16910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16911   (eval $ac_link) 2>&5
16912   ac_status=$?
16913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914   (exit $ac_status); } &&
16915          { ac_try='test -s conftest$ac_exeext'
16916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16917   (eval $ac_try) 2>&5
16918   ac_status=$?
16919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920   (exit $ac_status); }; }; then
16921   ac_cv_lib_seq_getmntent=yes
16922 else
16923   echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16925
16926 ac_cv_lib_seq_getmntent=no
16927 fi
16928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16929 LIBS=$ac_check_lib_save_LIBS
16930 fi
16931 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16932 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16933 if test $ac_cv_lib_seq_getmntent = yes; then
16934   LIBS="-lseq $LIBS"
16935 else
16936   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16937 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16938 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16939   echo $ECHO_N "(cached) $ECHO_C" >&6
16940 else
16941   ac_check_lib_save_LIBS=$LIBS
16942 LIBS="-lgen  $LIBS"
16943 cat >conftest.$ac_ext <<_ACEOF
16944 #line $LINENO "configure"
16945 /* confdefs.h.  */
16946 _ACEOF
16947 cat confdefs.h >>conftest.$ac_ext
16948 cat >>conftest.$ac_ext <<_ACEOF
16949 /* end confdefs.h.  */
16950
16951 /* Override any gcc2 internal prototype to avoid an error.  */
16952 #ifdef __cplusplus
16953 extern "C"
16954 #endif
16955 /* We use char because int might match the return type of a gcc2
16956    builtin and then its argument prototype would still apply.  */
16957 char getmntent ();
16958 int
16959 main ()
16960 {
16961 getmntent ();
16962   ;
16963   return 0;
16964 }
16965 _ACEOF
16966 rm -f conftest.$ac_objext conftest$ac_exeext
16967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16968   (eval $ac_link) 2>&5
16969   ac_status=$?
16970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971   (exit $ac_status); } &&
16972          { ac_try='test -s conftest$ac_exeext'
16973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974   (eval $ac_try) 2>&5
16975   ac_status=$?
16976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977   (exit $ac_status); }; }; then
16978   ac_cv_lib_gen_getmntent=yes
16979 else
16980   echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16982
16983 ac_cv_lib_gen_getmntent=no
16984 fi
16985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16986 LIBS=$ac_check_lib_save_LIBS
16987 fi
16988 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16989 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16990 if test $ac_cv_lib_gen_getmntent = yes; then
16991   LIBS="-lgen $LIBS"
16992 fi
16993
16994 fi
16995
16996 fi
16997
16998
16999 for ac_func in getmntent
17000 do
17001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17002 echo "$as_me:$LINENO: checking for $ac_func" >&5
17003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17004 if eval "test \"\${$as_ac_var+set}\" = set"; then
17005   echo $ECHO_N "(cached) $ECHO_C" >&6
17006 else
17007   cat >conftest.$ac_ext <<_ACEOF
17008 #line $LINENO "configure"
17009 /* confdefs.h.  */
17010 _ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h.  */
17014 /* System header to define __stub macros and hopefully few prototypes,
17015     which can conflict with char $ac_func (); below.
17016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17017     <limits.h> exists even on freestanding compilers.  */
17018 #ifdef __STDC__
17019 # include <limits.h>
17020 #else
17021 # include <assert.h>
17022 #endif
17023 /* Override any gcc2 internal prototype to avoid an error.  */
17024 #ifdef __cplusplus
17025 extern "C"
17026 {
17027 #endif
17028 /* We use char because int might match the return type of a gcc2
17029    builtin and then its argument prototype would still apply.  */
17030 char $ac_func ();
17031 /* The GNU C library defines this for functions which it implements
17032     to always fail with ENOSYS.  Some functions are actually named
17033     something starting with __ and the normal name is an alias.  */
17034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17035 choke me
17036 #else
17037 char (*f) () = $ac_func;
17038 #endif
17039 #ifdef __cplusplus
17040 }
17041 #endif
17042
17043 int
17044 main ()
17045 {
17046 return f != $ac_func;
17047   ;
17048   return 0;
17049 }
17050 _ACEOF
17051 rm -f conftest.$ac_objext conftest$ac_exeext
17052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17053   (eval $ac_link) 2>&5
17054   ac_status=$?
17055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056   (exit $ac_status); } &&
17057          { ac_try='test -s conftest$ac_exeext'
17058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059   (eval $ac_try) 2>&5
17060   ac_status=$?
17061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062   (exit $ac_status); }; }; then
17063   eval "$as_ac_var=yes"
17064 else
17065   echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17067
17068 eval "$as_ac_var=no"
17069 fi
17070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17071 fi
17072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17074 if test `eval echo '${'$as_ac_var'}'` = yes; then
17075   cat >>confdefs.h <<_ACEOF
17076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17077 _ACEOF
17078
17079 fi
17080 done
17081
17082
17083 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17084 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17085 if test "${ac_cv_func_closedir_void+set}" = set; then
17086   echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088   if test "$cross_compiling" = yes; then
17089   ac_cv_func_closedir_void=yes
17090 else
17091   cat >conftest.$ac_ext <<_ACEOF
17092 #line $LINENO "configure"
17093 /* confdefs.h.  */
17094 _ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h.  */
17098 $ac_includes_default
17099 #include <$ac_header_dirent>
17100 #ifndef __cplusplus
17101 int closedir ();
17102 #endif
17103
17104 int
17105 main ()
17106 {
17107 exit (closedir (opendir (".")) != 0);
17108   ;
17109   return 0;
17110 }
17111 _ACEOF
17112 rm -f conftest$ac_exeext
17113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17114   (eval $ac_link) 2>&5
17115   ac_status=$?
17116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119   (eval $ac_try) 2>&5
17120   ac_status=$?
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); }; }; then
17123   ac_cv_func_closedir_void=no
17124 else
17125   echo "$as_me: program exited with status $ac_status" >&5
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17128
17129 ( exit $ac_status )
17130 ac_cv_func_closedir_void=yes
17131 fi
17132 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17133 fi
17134 fi
17135 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17136 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17137 if test $ac_cv_func_closedir_void = yes; then
17138
17139 cat >>confdefs.h <<\_ACEOF
17140 #define CLOSEDIR_VOID 1
17141 _ACEOF
17142
17143 fi
17144
17145 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17146 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17147 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17148   echo $ECHO_N "(cached) $ECHO_C" >&6
17149 else
17150   if test "$cross_compiling" = yes; then
17151   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17152 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17153    { (exit 1); exit 1; }; }
17154 else
17155   cat >conftest.$ac_ext <<_ACEOF
17156 #line $LINENO "configure"
17157 /* confdefs.h.  */
17158 _ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h.  */
17162 #if HAVE_UNISTD_H
17163 # include <unistd.h>
17164 #endif
17165
17166 int
17167 main ()
17168 {
17169 /* If this system has a BSD-style setpgrp which takes arguments,
17170   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17171   exit successfully. */
17172   exit (setpgrp (1,1) == -1 ? 0 : 1);
17173   ;
17174   return 0;
17175 }
17176 _ACEOF
17177 rm -f conftest$ac_exeext
17178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17179   (eval $ac_link) 2>&5
17180   ac_status=$?
17181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184   (eval $ac_try) 2>&5
17185   ac_status=$?
17186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187   (exit $ac_status); }; }; then
17188   ac_cv_func_setpgrp_void=no
17189 else
17190   echo "$as_me: program exited with status $ac_status" >&5
17191 echo "$as_me: failed program was:" >&5
17192 sed 's/^/| /' conftest.$ac_ext >&5
17193
17194 ( exit $ac_status )
17195 ac_cv_func_setpgrp_void=yes
17196 fi
17197 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17198 fi
17199 fi
17200 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17201 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17202 if test $ac_cv_func_setpgrp_void = yes; then
17203
17204 cat >>confdefs.h <<\_ACEOF
17205 #define SETPGRP_VOID 1
17206 _ACEOF
17207
17208 fi
17209                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17210 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17211 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17212   echo $ECHO_N "(cached) $ECHO_C" >&6
17213 else
17214   # Some versions of Solaris, SCO, and the GNU C Library
17215    # have a broken or incompatible fnmatch.
17216    # So we run a test program.  If we are cross-compiling, take no chance.
17217    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17218    if test "$cross_compiling" = yes; then
17219   ac_cv_func_fnmatch_works=cross
17220 else
17221   cat >conftest.$ac_ext <<_ACEOF
17222 #line $LINENO "configure"
17223 /* confdefs.h.  */
17224 _ACEOF
17225 cat confdefs.h >>conftest.$ac_ext
17226 cat >>conftest.$ac_ext <<_ACEOF
17227 /* end confdefs.h.  */
17228 #include <fnmatch.h>
17229 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17230 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17231
17232 int
17233 main ()
17234 {
17235 exit
17236            (!(y ("a*", "abc", 0)
17237               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17238               && y ("a\\\\bc", "abc", 0)
17239               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17240               && y ("*x", ".x", 0)
17241               && n ("*x", ".x", FNM_PERIOD)
17242               && 1));
17243   ;
17244   return 0;
17245 }
17246 _ACEOF
17247 rm -f conftest$ac_exeext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17249   (eval $ac_link) 2>&5
17250   ac_status=$?
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254   (eval $ac_try) 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); }; }; then
17258   ac_cv_func_fnmatch_works=yes
17259 else
17260   echo "$as_me: program exited with status $ac_status" >&5
17261 echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17263
17264 ( exit $ac_status )
17265 ac_cv_func_fnmatch_works=no
17266 fi
17267 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17268 fi
17269 fi
17270 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17271 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17272 if test $ac_cv_func_fnmatch_works = yes; then
17273
17274 cat >>confdefs.h <<\_ACEOF
17275 #define HAVE_FNMATCH 1
17276 _ACEOF
17277
17278 fi
17279
17280
17281
17282
17283
17284 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17285 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17286 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17287   echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289   ac_check_lib_save_LIBS=$LIBS
17290 LIBS="-lxpg4  $LIBS"
17291 cat >conftest.$ac_ext <<_ACEOF
17292 #line $LINENO "configure"
17293 /* confdefs.h.  */
17294 _ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h.  */
17298
17299 /* Override any gcc2 internal prototype to avoid an error.  */
17300 #ifdef __cplusplus
17301 extern "C"
17302 #endif
17303 /* We use char because int might match the return type of a gcc2
17304    builtin and then its argument prototype would still apply.  */
17305 char setlocale ();
17306 int
17307 main ()
17308 {
17309 setlocale ();
17310   ;
17311   return 0;
17312 }
17313 _ACEOF
17314 rm -f conftest.$ac_objext conftest$ac_exeext
17315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17316   (eval $ac_link) 2>&5
17317   ac_status=$?
17318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319   (exit $ac_status); } &&
17320          { ac_try='test -s conftest$ac_exeext'
17321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322   (eval $ac_try) 2>&5
17323   ac_status=$?
17324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325   (exit $ac_status); }; }; then
17326   ac_cv_lib_xpg4_setlocale=yes
17327 else
17328   echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17330
17331 ac_cv_lib_xpg4_setlocale=no
17332 fi
17333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17334 LIBS=$ac_check_lib_save_LIBS
17335 fi
17336 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17337 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17338 if test $ac_cv_lib_xpg4_setlocale = yes; then
17339   LIBS="$LIBS -lxpg4"
17340 fi
17341
17342
17343
17344
17345 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17346 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17347 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17348   echo $ECHO_N "(cached) $ECHO_C" >&6
17349 else
17350   ac_check_lib_save_LIBS=$LIBS
17351 LIBS="-lsun  $LIBS"
17352 cat >conftest.$ac_ext <<_ACEOF
17353 #line $LINENO "configure"
17354 /* confdefs.h.  */
17355 _ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h.  */
17359
17360 /* Override any gcc2 internal prototype to avoid an error.  */
17361 #ifdef __cplusplus
17362 extern "C"
17363 #endif
17364 /* We use char because int might match the return type of a gcc2
17365    builtin and then its argument prototype would still apply.  */
17366 char getpwnam ();
17367 int
17368 main ()
17369 {
17370 getpwnam ();
17371   ;
17372   return 0;
17373 }
17374 _ACEOF
17375 rm -f conftest.$ac_objext conftest$ac_exeext
17376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17377   (eval $ac_link) 2>&5
17378   ac_status=$?
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); } &&
17381          { ac_try='test -s conftest$ac_exeext'
17382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383   (eval $ac_try) 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; }; then
17387   ac_cv_lib_sun_getpwnam=yes
17388 else
17389   echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17391
17392 ac_cv_lib_sun_getpwnam=no
17393 fi
17394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17395 LIBS=$ac_check_lib_save_LIBS
17396 fi
17397 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17398 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17399 if test $ac_cv_lib_sun_getpwnam = yes; then
17400   cat >>confdefs.h <<_ACEOF
17401 #define HAVE_LIBSUN 1
17402 _ACEOF
17403
17404   LIBS="-lsun $LIBS"
17405
17406 fi
17407
17408
17409
17410 for ac_header in zlib.h
17411 do
17412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17414   echo "$as_me:$LINENO: checking for $ac_header" >&5
17415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17417   echo $ECHO_N "(cached) $ECHO_C" >&6
17418 fi
17419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17421 else
17422   # Is the header compilable?
17423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17425 cat >conftest.$ac_ext <<_ACEOF
17426 #line $LINENO "configure"
17427 /* confdefs.h.  */
17428 _ACEOF
17429 cat confdefs.h >>conftest.$ac_ext
17430 cat >>conftest.$ac_ext <<_ACEOF
17431 /* end confdefs.h.  */
17432 $ac_includes_default
17433 #include <$ac_header>
17434 _ACEOF
17435 rm -f conftest.$ac_objext
17436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17437   (eval $ac_compile) 2>&5
17438   ac_status=$?
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); } &&
17441          { ac_try='test -s conftest.$ac_objext'
17442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443   (eval $ac_try) 2>&5
17444   ac_status=$?
17445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446   (exit $ac_status); }; }; then
17447   ac_header_compiler=yes
17448 else
17449   echo "$as_me: failed program was:" >&5
17450 sed 's/^/| /' conftest.$ac_ext >&5
17451
17452 ac_header_compiler=no
17453 fi
17454 rm -f conftest.$ac_objext conftest.$ac_ext
17455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17456 echo "${ECHO_T}$ac_header_compiler" >&6
17457
17458 # Is the header present?
17459 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17461 cat >conftest.$ac_ext <<_ACEOF
17462 #line $LINENO "configure"
17463 /* confdefs.h.  */
17464 _ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h.  */
17468 #include <$ac_header>
17469 _ACEOF
17470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17472   ac_status=$?
17473   grep -v '^ *+' conftest.er1 >conftest.err
17474   rm -f conftest.er1
17475   cat conftest.err >&5
17476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477   (exit $ac_status); } >/dev/null; then
17478   if test -s conftest.err; then
17479     ac_cpp_err=$ac_c_preproc_warn_flag
17480   else
17481     ac_cpp_err=
17482   fi
17483 else
17484   ac_cpp_err=yes
17485 fi
17486 if test -z "$ac_cpp_err"; then
17487   ac_header_preproc=yes
17488 else
17489   echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17491
17492   ac_header_preproc=no
17493 fi
17494 rm -f conftest.err conftest.$ac_ext
17495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17496 echo "${ECHO_T}$ac_header_preproc" >&6
17497
17498 # So?  What about this header?
17499 case $ac_header_compiler:$ac_header_preproc in
17500   yes:no )
17501     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17505     (
17506       cat <<\_ASBOX
17507 ## ------------------------------------ ##
17508 ## Report this to bug-autoconf@gnu.org. ##
17509 ## ------------------------------------ ##
17510 _ASBOX
17511     ) |
17512       sed "s/^/$as_me: WARNING:     /" >&2
17513     ;;
17514   no:yes )
17515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17517     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17521     (
17522       cat <<\_ASBOX
17523 ## ------------------------------------ ##
17524 ## Report this to bug-autoconf@gnu.org. ##
17525 ## ------------------------------------ ##
17526 _ASBOX
17527     ) |
17528       sed "s/^/$as_me: WARNING:     /" >&2
17529     ;;
17530 esac
17531 echo "$as_me:$LINENO: checking for $ac_header" >&5
17532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17534   echo $ECHO_N "(cached) $ECHO_C" >&6
17535 else
17536   eval "$as_ac_Header=$ac_header_preproc"
17537 fi
17538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17540
17541 fi
17542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17543   cat >>confdefs.h <<_ACEOF
17544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17545 _ACEOF
17546
17547 fi
17548
17549 done
17550
17551 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17552 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17553 if test "${ac_cv_lib_z_deflate+set}" = set; then
17554   echo $ECHO_N "(cached) $ECHO_C" >&6
17555 else
17556   ac_check_lib_save_LIBS=$LIBS
17557 LIBS="-lz  $LIBS"
17558 cat >conftest.$ac_ext <<_ACEOF
17559 #line $LINENO "configure"
17560 /* confdefs.h.  */
17561 _ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h.  */
17565
17566 /* Override any gcc2 internal prototype to avoid an error.  */
17567 #ifdef __cplusplus
17568 extern "C"
17569 #endif
17570 /* We use char because int might match the return type of a gcc2
17571    builtin and then its argument prototype would still apply.  */
17572 char deflate ();
17573 int
17574 main ()
17575 {
17576 deflate ();
17577   ;
17578   return 0;
17579 }
17580 _ACEOF
17581 rm -f conftest.$ac_objext conftest$ac_exeext
17582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17583   (eval $ac_link) 2>&5
17584   ac_status=$?
17585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586   (exit $ac_status); } &&
17587          { ac_try='test -s conftest$ac_exeext'
17588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589   (eval $ac_try) 2>&5
17590   ac_status=$?
17591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592   (exit $ac_status); }; }; then
17593   ac_cv_lib_z_deflate=yes
17594 else
17595   echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17597
17598 ac_cv_lib_z_deflate=no
17599 fi
17600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17601 LIBS=$ac_check_lib_save_LIBS
17602 fi
17603 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17604 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17605 if test $ac_cv_lib_z_deflate = yes; then
17606   FDLIBS="-lz"
17607 fi
17608
17609 have_zlib=no
17610 if test x$FDLIBS = x-lz; then
17611   cat >>confdefs.h <<\_ACEOF
17612 #define HAVE_LIBZ 1
17613 _ACEOF
17614
17615   have_zlib=yes
17616 fi
17617
17618 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17619   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17620 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17621 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17622   echo $ECHO_N "(cached) $ECHO_C" >&6
17623 fi
17624 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17625 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17626 else
17627   # Is the header compilable?
17628 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
17629 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
17630 cat >conftest.$ac_ext <<_ACEOF
17631 #line $LINENO "configure"
17632 /* confdefs.h.  */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h.  */
17637 $ac_includes_default
17638 #include <sys/acl.h>
17639 _ACEOF
17640 rm -f conftest.$ac_objext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17642   (eval $ac_compile) 2>&5
17643   ac_status=$?
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); } &&
17646          { ac_try='test -s conftest.$ac_objext'
17647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648   (eval $ac_try) 2>&5
17649   ac_status=$?
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); }; }; then
17652   ac_header_compiler=yes
17653 else
17654   echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17656
17657 ac_header_compiler=no
17658 fi
17659 rm -f conftest.$ac_objext conftest.$ac_ext
17660 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17661 echo "${ECHO_T}$ac_header_compiler" >&6
17662
17663 # Is the header present?
17664 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
17665 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
17666 cat >conftest.$ac_ext <<_ACEOF
17667 #line $LINENO "configure"
17668 /* confdefs.h.  */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h.  */
17673 #include <sys/acl.h>
17674 _ACEOF
17675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17676   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17677   ac_status=$?
17678   grep -v '^ *+' conftest.er1 >conftest.err
17679   rm -f conftest.er1
17680   cat conftest.err >&5
17681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682   (exit $ac_status); } >/dev/null; then
17683   if test -s conftest.err; then
17684     ac_cpp_err=$ac_c_preproc_warn_flag
17685   else
17686     ac_cpp_err=
17687   fi
17688 else
17689   ac_cpp_err=yes
17690 fi
17691 if test -z "$ac_cpp_err"; then
17692   ac_header_preproc=yes
17693 else
17694   echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17696
17697   ac_header_preproc=no
17698 fi
17699 rm -f conftest.err conftest.$ac_ext
17700 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17701 echo "${ECHO_T}$ac_header_preproc" >&6
17702
17703 # So?  What about this header?
17704 case $ac_header_compiler:$ac_header_preproc in
17705   yes:no )
17706     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
17707 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17708     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17709 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17710     (
17711       cat <<\_ASBOX
17712 ## ------------------------------------ ##
17713 ## Report this to bug-autoconf@gnu.org. ##
17714 ## ------------------------------------ ##
17715 _ASBOX
17716     ) |
17717       sed "s/^/$as_me: WARNING:     /" >&2
17718     ;;
17719   no:yes )
17720     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
17721 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
17722     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
17723 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
17724     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
17725 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
17726     (
17727       cat <<\_ASBOX
17728 ## ------------------------------------ ##
17729 ## Report this to bug-autoconf@gnu.org. ##
17730 ## ------------------------------------ ##
17731 _ASBOX
17732     ) |
17733       sed "s/^/$as_me: WARNING:     /" >&2
17734     ;;
17735 esac
17736 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
17737 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
17738 if test "${ac_cv_header_sys_acl_h+set}" = set; then
17739   echo $ECHO_N "(cached) $ECHO_C" >&6
17740 else
17741   ac_cv_header_sys_acl_h=$ac_header_preproc
17742 fi
17743 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
17744 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
17745
17746 fi
17747
17748
17749 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
17750 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
17751 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
17752   echo $ECHO_N "(cached) $ECHO_C" >&6
17753 else
17754   ac_check_lib_save_LIBS=$LIBS
17755 LIBS="-lacl  $LIBS"
17756 cat >conftest.$ac_ext <<_ACEOF
17757 #line $LINENO "configure"
17758 /* confdefs.h.  */
17759 _ACEOF
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h.  */
17763
17764 /* Override any gcc2 internal prototype to avoid an error.  */
17765 #ifdef __cplusplus
17766 extern "C"
17767 #endif
17768 /* We use char because int might match the return type of a gcc2
17769    builtin and then its argument prototype would still apply.  */
17770 char acl_get_file ();
17771 int
17772 main ()
17773 {
17774 acl_get_file ();
17775   ;
17776   return 0;
17777 }
17778 _ACEOF
17779 rm -f conftest.$ac_objext conftest$ac_exeext
17780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17781   (eval $ac_link) 2>&5
17782   ac_status=$?
17783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784   (exit $ac_status); } &&
17785          { ac_try='test -s conftest$ac_exeext'
17786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787   (eval $ac_try) 2>&5
17788   ac_status=$?
17789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790   (exit $ac_status); }; }; then
17791   ac_cv_lib_acl_acl_get_file=yes
17792 else
17793   echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17795
17796 ac_cv_lib_acl_acl_get_file=no
17797 fi
17798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17799 LIBS=$ac_check_lib_save_LIBS
17800 fi
17801 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
17802 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
17803 if test $ac_cv_lib_acl_acl_get_file = yes; then
17804   FDLIBS="-lacl $FDLIBS"
17805 fi
17806
17807 have_acl=no
17808 if test $ac_cv_lib_acl_acl_get_file = yes; then
17809    cat >>confdefs.h <<\_ACEOF
17810 #define HAVE_ACL 1
17811 _ACEOF
17812
17813    have_acl=yes
17814 fi
17815
17816 PTHREAD_LIB=""
17817 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17818 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17819 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17820   echo $ECHO_N "(cached) $ECHO_C" >&6
17821 else
17822   ac_check_lib_save_LIBS=$LIBS
17823 LIBS="-lpthread  $LIBS"
17824 cat >conftest.$ac_ext <<_ACEOF
17825 #line $LINENO "configure"
17826 /* confdefs.h.  */
17827 _ACEOF
17828 cat confdefs.h >>conftest.$ac_ext
17829 cat >>conftest.$ac_ext <<_ACEOF
17830 /* end confdefs.h.  */
17831
17832 /* Override any gcc2 internal prototype to avoid an error.  */
17833 #ifdef __cplusplus
17834 extern "C"
17835 #endif
17836 /* We use char because int might match the return type of a gcc2
17837    builtin and then its argument prototype would still apply.  */
17838 char pthread_create ();
17839 int
17840 main ()
17841 {
17842 pthread_create ();
17843   ;
17844   return 0;
17845 }
17846 _ACEOF
17847 rm -f conftest.$ac_objext conftest$ac_exeext
17848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17849   (eval $ac_link) 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   ac_cv_lib_pthread_pthread_create=yes
17860 else
17861   echo "$as_me: failed program was:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17863
17864 ac_cv_lib_pthread_pthread_create=no
17865 fi
17866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17867 LIBS=$ac_check_lib_save_LIBS
17868 fi
17869 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17870 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17871 if test $ac_cv_lib_pthread_pthread_create = yes; then
17872   PTHREAD_LIB="-lpthread"
17873 else
17874   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17875 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17876 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17877   echo $ECHO_N "(cached) $ECHO_C" >&6
17878 else
17879   ac_check_lib_save_LIBS=$LIBS
17880 LIBS="-lpthreads  $LIBS"
17881 cat >conftest.$ac_ext <<_ACEOF
17882 #line $LINENO "configure"
17883 /* confdefs.h.  */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h.  */
17888
17889 /* Override any gcc2 internal prototype to avoid an error.  */
17890 #ifdef __cplusplus
17891 extern "C"
17892 #endif
17893 /* We use char because int might match the return type of a gcc2
17894    builtin and then its argument prototype would still apply.  */
17895 char pthread_create ();
17896 int
17897 main ()
17898 {
17899 pthread_create ();
17900   ;
17901   return 0;
17902 }
17903 _ACEOF
17904 rm -f conftest.$ac_objext conftest$ac_exeext
17905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906   (eval $ac_link) 2>&5
17907   ac_status=$?
17908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909   (exit $ac_status); } &&
17910          { ac_try='test -s conftest$ac_exeext'
17911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912   (eval $ac_try) 2>&5
17913   ac_status=$?
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); }; }; then
17916   ac_cv_lib_pthreads_pthread_create=yes
17917 else
17918   echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17920
17921 ac_cv_lib_pthreads_pthread_create=no
17922 fi
17923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17924 LIBS=$ac_check_lib_save_LIBS
17925 fi
17926 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17927 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17928 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17929   PTHREAD_LIB="-lpthreads"
17930 else
17931   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17932 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17933 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17934   echo $ECHO_N "(cached) $ECHO_C" >&6
17935 else
17936   ac_check_lib_save_LIBS=$LIBS
17937 LIBS="-lc_r  $LIBS"
17938 cat >conftest.$ac_ext <<_ACEOF
17939 #line $LINENO "configure"
17940 /* confdefs.h.  */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h.  */
17945
17946 /* Override any gcc2 internal prototype to avoid an error.  */
17947 #ifdef __cplusplus
17948 extern "C"
17949 #endif
17950 /* We use char because int might match the return type of a gcc2
17951    builtin and then its argument prototype would still apply.  */
17952 char pthread_create ();
17953 int
17954 main ()
17955 {
17956 pthread_create ();
17957   ;
17958   return 0;
17959 }
17960 _ACEOF
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17963   (eval $ac_link) 2>&5
17964   ac_status=$?
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); } &&
17967          { ac_try='test -s conftest$ac_exeext'
17968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969   (eval $ac_try) 2>&5
17970   ac_status=$?
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); }; }; then
17973   ac_cv_lib_c_r_pthread_create=yes
17974 else
17975   echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17977
17978 ac_cv_lib_c_r_pthread_create=no
17979 fi
17980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17981 LIBS=$ac_check_lib_save_LIBS
17982 fi
17983 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17984 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17985 if test $ac_cv_lib_c_r_pthread_create = yes; then
17986   PTHREAD_LIB="-lc_r"
17987 else
17988   echo "$as_me:$LINENO: checking for pthread_create" >&5
17989 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17990 if test "${ac_cv_func_pthread_create+set}" = set; then
17991   echo $ECHO_N "(cached) $ECHO_C" >&6
17992 else
17993   cat >conftest.$ac_ext <<_ACEOF
17994 #line $LINENO "configure"
17995 /* confdefs.h.  */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h.  */
18000 /* System header to define __stub macros and hopefully few prototypes,
18001     which can conflict with char pthread_create (); below.
18002     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18003     <limits.h> exists even on freestanding compilers.  */
18004 #ifdef __STDC__
18005 # include <limits.h>
18006 #else
18007 # include <assert.h>
18008 #endif
18009 /* Override any gcc2 internal prototype to avoid an error.  */
18010 #ifdef __cplusplus
18011 extern "C"
18012 {
18013 #endif
18014 /* We use char because int might match the return type of a gcc2
18015    builtin and then its argument prototype would still apply.  */
18016 char pthread_create ();
18017 /* The GNU C library defines this for functions which it implements
18018     to always fail with ENOSYS.  Some functions are actually named
18019     something starting with __ and the normal name is an alias.  */
18020 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18021 choke me
18022 #else
18023 char (*f) () = pthread_create;
18024 #endif
18025 #ifdef __cplusplus
18026 }
18027 #endif
18028
18029 int
18030 main ()
18031 {
18032 return f != pthread_create;
18033   ;
18034   return 0;
18035 }
18036 _ACEOF
18037 rm -f conftest.$ac_objext conftest$ac_exeext
18038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18039   (eval $ac_link) 2>&5
18040   ac_status=$?
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); } &&
18043          { ac_try='test -s conftest$ac_exeext'
18044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045   (eval $ac_try) 2>&5
18046   ac_status=$?
18047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048   (exit $ac_status); }; }; then
18049   ac_cv_func_pthread_create=yes
18050 else
18051   echo "$as_me: failed program was:" >&5
18052 sed 's/^/| /' conftest.$ac_ext >&5
18053
18054 ac_cv_func_pthread_create=no
18055 fi
18056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18057 fi
18058 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18059 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18060
18061
18062 fi
18063
18064
18065 fi
18066
18067
18068 fi
18069
18070
18071
18072 cat >>confdefs.h <<\_ACEOF
18073 #define FDLIBS 1
18074 _ACEOF
18075
18076
18077
18078 CFLAGS=${CFLAGS--O}
18079 LDFLAGS=${LDFLAGS--O}
18080 DB_LIBS="${SQL_LFLAGS}"
18081
18082 CPPFLAGS="$CPPFLAGS"
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097 OBJLIST=
18098
18099
18100 lld="lld"
18101 llu="llu"
18102
18103 WCFLAGS=
18104 WLDFLAGS=
18105
18106 #
18107 # Finally we set appropriate distribution specific
18108 #  variables and defaults
18109 #
18110 # PFILES are platform specific files
18111 PFILES="platforms/Makefile"
18112 PSCMD="ps -e"
18113 WIN32=
18114 MACOSX=
18115 hostname=`uname -n | cut -d '.' -f 1`
18116 case "$DISTNAME" in
18117 aix)
18118         DISTVER=`uname -r`
18119         PSCMD="ps -e -o pid,comm"
18120         PFILES="${PFILES} \
18121            platforms/aix/Makefile"
18122         TAPEDRIVE="/dev/rmt0.1"
18123   ;;
18124 alpha)
18125         DISTVER=`uname -r`
18126         PTHREAD_LIB="-lpthread -lexc"
18127         if test "${CC}" = "gcc" ; then
18128            lld="lld"
18129            llu="llu"
18130         else
18131            lld="ld"
18132            llu="lu"
18133         fi
18134         TAPEDRIVE="/dev/nrmt0"
18135   ;;
18136 bsdi)
18137         DISTVER=`uname -a |awk '{print $3}'`
18138         TAPEDRIVE="/dev/nrmt0"
18139         PTHREAD_LIB="-pthread"
18140         CFLAGS="${CFLAGS} -pthread"
18141         PSCMD="ps -x -o pid,command"
18142         lld="qd"
18143         llu="qu"
18144         PFILES="${PFILES} \
18145             platforms/bsdi/Makefile \
18146             platforms/bsdi/bacula-fd \
18147             platforms/bsdi/bacula-sd \
18148             platforms/bsdi/bacula-dir"
18149         largefile_support="yes"
18150   ;;
18151 cygwin)
18152         DISTVER=`uname -a |awk '{print $3}'`
18153         TAPEDRIVE="/dev/nrst0"
18154         WIN32=win32
18155         WCFLAGS="-mwindows"
18156         WLDFLAGS="-mwindows"
18157   ;;
18158 darwin)
18159         DISTVER=`uname -r`
18160         TAPEDRIVE="/dev/nst0"
18161         PSCMD="ps -e -o pid,command"
18162         MACOSX=macosx
18163         PFILES="${PFILES} \
18164            platforms/darwin/Makefile"
18165   ;;
18166 debian)
18167         DISTVER=`cat /etc/debian_version`
18168         TAPEDRIVE="/dev/nrst0"
18169         PSCMD="ps -e -o pid,command"
18170   ;;
18171 freebsd)
18172         DISTVER=`uname -a |awk '{print $3}'`
18173         VER=`echo $DISTVER | cut -c 1`
18174         if test x$VER = x4 ; then
18175            PTHREAD_LIB="-pthread"
18176            CFLAGS="${CFLAGS} -pthread"
18177         fi
18178         lld="qd"
18179         llu="qu"
18180         TAPEDRIVE="/dev/nrsa0"
18181         PSCMD="ps -x -o pid,command"
18182         PFILES="${PFILES} \
18183             platforms/freebsd/Makefile \
18184             platforms/freebsd/bacula-fd \
18185             platforms/freebsd/bacula-sd \
18186             platforms/freebsd/bacula-dir"
18187         largefile_support="yes"
18188   ;;
18189 hpux)
18190         PSCMD="UNIX95=1 ps -e -o pid,comm"
18191         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18192         DISTVER=`uname -r`
18193         TAPEDRIVE="/dev/rmt/0hnb"
18194   ;;
18195 irix)
18196         DISTVER=`uname -r`
18197         TAPEDRIVE="/dev/rmt/0cbn"
18198         PSCMD="ps -e -o pid,comm"
18199         PFILES="${PFILES} \
18200             platforms/irix/Makefile \
18201             platforms/irix/bacula-fd \
18202             platforms/irix/bacula-sd \
18203             platforms/irix/bacula-dir"
18204   ;;
18205 netbsd)
18206         DISTVER=`uname -a |awk '{print $3}'`
18207         lld="qd"
18208         llu="qu"
18209         TAPEDRIVE="/dev/nrst0"
18210         PSCMD="ps -a -o pid,command"
18211         PTHREAD_LIB="-pthread"
18212         CFLAGS="${CFLAGS} -pthread"
18213   ;;
18214 openbsd)
18215         DISTVER=`uname -a |awk '{print $3}'`
18216         lld="qd"
18217         llu="qu"
18218         TAPEDRIVE="/dev/nrst0"
18219         PSCMD="ps -a -o pid,command"
18220         PTHREAD_LIB="-pthread"
18221         CFLAGS="${CFLAGS} -pthread"
18222         PFILES="${PFILES} \
18223             platforms/openbsd/Makefile \
18224             platforms/openbsd/bacula-fd \
18225             platforms/openbsd/bacula-sd \
18226             platforms/openbsd/bacula-dir"
18227   ;;
18228 redhat)
18229         if test -f /etc/whitebox-release ; then
18230            f=/etc/whitebox-release
18231         else
18232            f=/etc/redhat-release
18233         fi
18234         if test `cat $f | grep release |\
18235                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18236            DISTVER="Enterprise "`cat $f | grep release |\
18237                     cut -f 6 -d ' '`
18238         else
18239             DISTVER=`cat /etc/redhat-release | grep release |\
18240                      cut -f 5 -d ' '`
18241         fi
18242         TAPEDRIVE="/dev/nst0"
18243         PSCMD="ps -e -o pid,command"
18244         PFILES="${PFILES} \
18245             platforms/redhat/Makefile \
18246             platforms/redhat/bacula-fd \
18247             platforms/redhat/bacula-sd \
18248             platforms/redhat/bacula-dir \
18249             platforms/redhat/bacula.spec \
18250             "
18251         hostname=`hostname -s`
18252   ;;
18253 mandrake)
18254         DISTVER=`cat /etc/mandrake-release | grep release |\
18255            cut -f 5 -d ' '`
18256         TAPEDRIVE="/dev/nst0"
18257         PSCMD="ps -e -o pid,command"
18258         PFILES="${PFILES} \
18259             platforms/mandrake/Makefile \
18260             platforms/mandrake/bacula-fd \
18261             platforms/mandrake/bacula-sd \
18262             platforms/mandrake/bacula-dir \
18263             platforms/mandrake/bacula.spec \
18264             "
18265   ;;
18266 gentoo)
18267         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18268         TAPEDRIVE="/dev/nst0"
18269         PSCMD="ps -e -o pid,command"
18270         PFILES="${PFILES} \
18271             platforms/gentoo/Makefile \
18272             platforms/gentoo/bacula-fd \
18273             platforms/gentoo/bacula-sd \
18274             platforms/gentoo/bacula-dir"
18275   ;;
18276 slackware)
18277         DISTVER=`cat /etc/slackware-version`
18278         TAPEDRIVE="/dev/nst0"
18279         PSCMD="ps -e -o pid,command"
18280         PFILES="${PFILES} \
18281             platforms/slackware/Makefile \
18282             platforms/slackware/rc.bacula-fd \
18283             platforms/slackware/rc.bacula-sd \
18284             platforms/slackware/rc.bacula-dir\
18285             platforms/slackware/functions.bacula"
18286   ;;
18287 solaris)
18288         DISTVER=`uname -r`
18289         TAPEDRIVE="/dev/rmt/0cbn"
18290         PSCMD="ps -e -o pid,comm"
18291         PFILES="${PFILES} \
18292             platforms/solaris/Makefile \
18293             platforms/solaris/bacula-fd \
18294             platforms/solaris/bacula-sd \
18295             platforms/solaris/bacula-dir"
18296         if test x$DISTVER = x5.6 ; then
18297             cat >>confdefs.h <<\_ACEOF
18298 #define HAVE_OLD_SOCKOPT 1
18299 _ACEOF
18300
18301         fi
18302   ;;
18303 suse)
18304         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18305             cut -f 3 -d ' '`
18306         TAPEDRIVE="/dev/nst0"
18307         PSCMD="ps -e -o pid,command"
18308         PFILES="${PFILES} \
18309             platforms/suse/Makefile \
18310             platforms/suse/bacula-fd \
18311             platforms/suse/bacula-sd \
18312             platforms/suse/bacula-dir \
18313             platforms/suse/bacula \
18314             platforms/suse/bacula.spec"
18315   ;;
18316 suse5)
18317         DISTNAME=suse
18318         DISTVER=5.x
18319         TAPEDRIVE="/dev/nst0"
18320         PSCMD="ps -e -o pid,command"
18321         PFILES="${PFILES} \
18322             platforms/suse/Makefile \
18323             platforms/suse/bacula-fd \
18324             platforms/suse/bacula-sd \
18325             platforms/suse/bacula-dir"
18326   ;;
18327 unknown)
18328         DISTVER=unknown
18329         TAPEDRIVE="/dev/nst0"
18330   ;;
18331 *)
18332   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18333   ;;
18334 esac
18335
18336
18337
18338 LIBS="$PTHREAD_LIB $LIBS"
18339
18340 cat >>confdefs.h <<_ACEOF
18341 #define lld "$lld"
18342 _ACEOF
18343
18344 cat >>confdefs.h <<_ACEOF
18345 #define llu "$llu"
18346 _ACEOF
18347
18348
18349
18350
18351
18352
18353
18354
18355 MCOMMON=./autoconf/Make.common
18356
18357
18358 if test "x${subsysdir}" = "x${sbindir}" ; then
18359    echo " "
18360    echo " "
18361    echo "You have set both --sbindir and --with-subsys-dir"
18362    echo "  equal to: ${subsysdir} "
18363    echo "This is not permitted. Please reconfigure."
18364    echo " "
18365    echo "Aborting configuration ..."
18366    echo " "
18367    echo " "
18368    exit 1
18369 fi
18370
18371                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/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"
18372           ac_config_commands="$ac_config_commands default"
18373 cat >confcache <<\_ACEOF
18374 # This file is a shell script that caches the results of configure
18375 # tests run on this system so they can be shared between configure
18376 # scripts and configure runs, see configure's option --config-cache.
18377 # It is not useful on other systems.  If it contains results you don't
18378 # want to keep, you may remove or edit it.
18379 #
18380 # config.status only pays attention to the cache file if you give it
18381 # the --recheck option to rerun configure.
18382 #
18383 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18384 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18385 # following values.
18386
18387 _ACEOF
18388
18389 # The following way of writing the cache mishandles newlines in values,
18390 # but we know of no workaround that is simple, portable, and efficient.
18391 # So, don't put newlines in cache variables' values.
18392 # Ultrix sh set writes to stderr and can't be redirected directly,
18393 # and sets the high bit in the cache file unless we assign to the vars.
18394 {
18395   (set) 2>&1 |
18396     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18397     *ac_space=\ *)
18398       # `set' does not quote correctly, so add quotes (double-quote
18399       # substitution turns \\\\ into \\, and sed turns \\ into \).
18400       sed -n \
18401         "s/'/'\\\\''/g;
18402           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18403       ;;
18404     *)
18405       # `set' quotes correctly as required by POSIX, so do not add quotes.
18406       sed -n \
18407         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18408       ;;
18409     esac;
18410 } |
18411   sed '
18412      t clear
18413      : clear
18414      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18415      t end
18416      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18417      : end' >>confcache
18418 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18419   if test -w $cache_file; then
18420     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18421     cat confcache >$cache_file
18422   else
18423     echo "not updating unwritable cache $cache_file"
18424   fi
18425 fi
18426 rm -f confcache
18427
18428 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18429 # Let make expand exec_prefix.
18430 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18431
18432 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18433 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18434 # trailing colons and then remove the whole line if VPATH becomes empty
18435 # (actually we leave an empty line to preserve line numbers).
18436 if test "x$srcdir" = x.; then
18437   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18438 s/:*\$(srcdir):*/:/;
18439 s/:*\${srcdir}:*/:/;
18440 s/:*@srcdir@:*/:/;
18441 s/^\([^=]*=[    ]*\):*/\1/;
18442 s/:*$//;
18443 s/^[^=]*=[      ]*$//;
18444 }'
18445 fi
18446
18447 DEFS=-DHAVE_CONFIG_H
18448
18449 ac_libobjs=
18450 ac_ltlibobjs=
18451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18452   # 1. Remove the extension, and $U if already installed.
18453   ac_i=`echo "$ac_i" |
18454          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18455   # 2. Add them.
18456   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18457   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18458 done
18459 LIBOBJS=$ac_libobjs
18460
18461 LTLIBOBJS=$ac_ltlibobjs
18462
18463
18464
18465 : ${CONFIG_STATUS=./config.status}
18466 ac_clean_files_save=$ac_clean_files
18467 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18468 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18469 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18470 cat >$CONFIG_STATUS <<_ACEOF
18471 #! $SHELL
18472 # Generated by $as_me.
18473 # Run this file to recreate the current configuration.
18474 # Compiler output produced by configure, useful for debugging
18475 # configure, is in config.log if it exists.
18476
18477 debug=false
18478 ac_cs_recheck=false
18479 ac_cs_silent=false
18480 SHELL=\${CONFIG_SHELL-$SHELL}
18481 _ACEOF
18482
18483 cat >>$CONFIG_STATUS <<\_ACEOF
18484 ## --------------------- ##
18485 ## M4sh Initialization.  ##
18486 ## --------------------- ##
18487
18488 # Be Bourne compatible
18489 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18490   emulate sh
18491   NULLCMD=:
18492   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18493   # is contrary to our usage.  Disable this feature.
18494   alias -g '${1+"$@"}'='"$@"'
18495 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18496   set -o posix
18497 fi
18498
18499 # Support unset when possible.
18500 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18501   as_unset=unset
18502 else
18503   as_unset=false
18504 fi
18505
18506
18507 # Work around bugs in pre-3.0 UWIN ksh.
18508 $as_unset ENV MAIL MAILPATH
18509 PS1='$ '
18510 PS2='> '
18511 PS4='+ '
18512
18513 # NLS nuisances.
18514 for as_var in \
18515   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18516   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18517   LC_TELEPHONE LC_TIME
18518 do
18519   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18520     eval $as_var=C; export $as_var
18521   else
18522     $as_unset $as_var
18523   fi
18524 done
18525
18526 # Required to use basename.
18527 if expr a : '\(a\)' >/dev/null 2>&1; then
18528   as_expr=expr
18529 else
18530   as_expr=false
18531 fi
18532
18533 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18534   as_basename=basename
18535 else
18536   as_basename=false
18537 fi
18538
18539
18540 # Name of the executable.
18541 as_me=`$as_basename "$0" ||
18542 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18543          X"$0" : 'X\(//\)$' \| \
18544          X"$0" : 'X\(/\)$' \| \
18545          .     : '\(.\)' 2>/dev/null ||
18546 echo X/"$0" |
18547     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18548           /^X\/\(\/\/\)$/{ s//\1/; q; }
18549           /^X\/\(\/\).*/{ s//\1/; q; }
18550           s/.*/./; q'`
18551
18552
18553 # PATH needs CR, and LINENO needs CR and PATH.
18554 # Avoid depending upon Character Ranges.
18555 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18556 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18557 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18558 as_cr_digits='0123456789'
18559 as_cr_alnum=$as_cr_Letters$as_cr_digits
18560
18561 # The user is always right.
18562 if test "${PATH_SEPARATOR+set}" != set; then
18563   echo "#! /bin/sh" >conf$$.sh
18564   echo  "exit 0"   >>conf$$.sh
18565   chmod +x conf$$.sh
18566   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18567     PATH_SEPARATOR=';'
18568   else
18569     PATH_SEPARATOR=:
18570   fi
18571   rm -f conf$$.sh
18572 fi
18573
18574
18575   as_lineno_1=$LINENO
18576   as_lineno_2=$LINENO
18577   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18578   test "x$as_lineno_1" != "x$as_lineno_2" &&
18579   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18580   # Find who we are.  Look in the path if we contain no path at all
18581   # relative or not.
18582   case $0 in
18583     *[\\/]* ) as_myself=$0 ;;
18584     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18585 for as_dir in $PATH
18586 do
18587   IFS=$as_save_IFS
18588   test -z "$as_dir" && as_dir=.
18589   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18590 done
18591
18592        ;;
18593   esac
18594   # We did not find ourselves, most probably we were run as `sh COMMAND'
18595   # in which case we are not to be found in the path.
18596   if test "x$as_myself" = x; then
18597     as_myself=$0
18598   fi
18599   if test ! -f "$as_myself"; then
18600     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18601 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18602    { (exit 1); exit 1; }; }
18603   fi
18604   case $CONFIG_SHELL in
18605   '')
18606     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18607 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18608 do
18609   IFS=$as_save_IFS
18610   test -z "$as_dir" && as_dir=.
18611   for as_base in sh bash ksh sh5; do
18612          case $as_dir in
18613          /*)
18614            if ("$as_dir/$as_base" -c '
18615   as_lineno_1=$LINENO
18616   as_lineno_2=$LINENO
18617   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18618   test "x$as_lineno_1" != "x$as_lineno_2" &&
18619   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18620              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18621              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18622              CONFIG_SHELL=$as_dir/$as_base
18623              export CONFIG_SHELL
18624              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18625            fi;;
18626          esac
18627        done
18628 done
18629 ;;
18630   esac
18631
18632   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18633   # uniformly replaced by the line number.  The first 'sed' inserts a
18634   # line-number line before each line; the second 'sed' does the real
18635   # work.  The second script uses 'N' to pair each line-number line
18636   # with the numbered line, and appends trailing '-' during
18637   # substitution so that $LINENO is not a special case at line end.
18638   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18639   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18640   sed '=' <$as_myself |
18641     sed '
18642       N
18643       s,$,-,
18644       : loop
18645       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18646       t loop
18647       s,-$,,
18648       s,^['$as_cr_digits']*\n,,
18649     ' >$as_me.lineno &&
18650   chmod +x $as_me.lineno ||
18651     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18652 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18653    { (exit 1); exit 1; }; }
18654
18655   # Don't try to exec as it changes $[0], causing all sort of problems
18656   # (the dirname of $[0] is not the place where we might find the
18657   # original and so on.  Autoconf is especially sensible to this).
18658   . ./$as_me.lineno
18659   # Exit status is that of the last command.
18660   exit
18661 }
18662
18663
18664 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18665   *c*,-n*) ECHO_N= ECHO_C='
18666 ' ECHO_T='      ' ;;
18667   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18668   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18669 esac
18670
18671 if expr a : '\(a\)' >/dev/null 2>&1; then
18672   as_expr=expr
18673 else
18674   as_expr=false
18675 fi
18676
18677 rm -f conf$$ conf$$.exe conf$$.file
18678 echo >conf$$.file
18679 if ln -s conf$$.file conf$$ 2>/dev/null; then
18680   # We could just check for DJGPP; but this test a) works b) is more generic
18681   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18682   if test -f conf$$.exe; then
18683     # Don't use ln at all; we don't have any links
18684     as_ln_s='cp -p'
18685   else
18686     as_ln_s='ln -s'
18687   fi
18688 elif ln conf$$.file conf$$ 2>/dev/null; then
18689   as_ln_s=ln
18690 else
18691   as_ln_s='cp -p'
18692 fi
18693 rm -f conf$$ conf$$.exe conf$$.file
18694
18695 if mkdir -p . 2>/dev/null; then
18696   as_mkdir_p=:
18697 else
18698   as_mkdir_p=false
18699 fi
18700
18701 as_executable_p="test -f"
18702
18703 # Sed expression to map a string onto a valid CPP name.
18704 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18705
18706 # Sed expression to map a string onto a valid variable name.
18707 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18708
18709
18710 # IFS
18711 # We need space, tab and new line, in precisely that order.
18712 as_nl='
18713 '
18714 IFS="   $as_nl"
18715
18716 # CDPATH.
18717 $as_unset CDPATH
18718
18719 exec 6>&1
18720
18721 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18722 # report actual input values of CONFIG_FILES etc. instead of their
18723 # values after options handling.  Logging --version etc. is OK.
18724 exec 5>>config.log
18725 {
18726   echo
18727   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18728 ## Running $as_me. ##
18729 _ASBOX
18730 } >&5
18731 cat >&5 <<_CSEOF
18732
18733 This file was extended by $as_me, which was
18734 generated by GNU Autoconf 2.57.  Invocation command line was
18735
18736   CONFIG_FILES    = $CONFIG_FILES
18737   CONFIG_HEADERS  = $CONFIG_HEADERS
18738   CONFIG_LINKS    = $CONFIG_LINKS
18739   CONFIG_COMMANDS = $CONFIG_COMMANDS
18740   $ $0 $@
18741
18742 _CSEOF
18743 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18744 echo >&5
18745 _ACEOF
18746
18747 # Files that config.status was made for.
18748 if test -n "$ac_config_files"; then
18749   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18750 fi
18751
18752 if test -n "$ac_config_headers"; then
18753   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18754 fi
18755
18756 if test -n "$ac_config_links"; then
18757   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18758 fi
18759
18760 if test -n "$ac_config_commands"; then
18761   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18762 fi
18763
18764 cat >>$CONFIG_STATUS <<\_ACEOF
18765
18766 ac_cs_usage="\
18767 \`$as_me' instantiates files from templates according to the
18768 current configuration.
18769
18770 Usage: $0 [OPTIONS] [FILE]...
18771
18772   -h, --help       print this help, then exit
18773   -V, --version    print version number, then exit
18774   -q, --quiet      do not print progress messages
18775   -d, --debug      don't remove temporary files
18776       --recheck    update $as_me by reconfiguring in the same conditions
18777   --file=FILE[:TEMPLATE]
18778                    instantiate the configuration file FILE
18779   --header=FILE[:TEMPLATE]
18780                    instantiate the configuration header FILE
18781
18782 Configuration files:
18783 $config_files
18784
18785 Configuration headers:
18786 $config_headers
18787
18788 Configuration commands:
18789 $config_commands
18790
18791 Report bugs to <bug-autoconf@gnu.org>."
18792 _ACEOF
18793
18794 cat >>$CONFIG_STATUS <<_ACEOF
18795 ac_cs_version="\\
18796 config.status
18797 configured by $0, generated by GNU Autoconf 2.57,
18798   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18799
18800 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18801 Free Software Foundation, Inc.
18802 This config.status script is free software; the Free Software Foundation
18803 gives unlimited permission to copy, distribute and modify it."
18804 srcdir=$srcdir
18805 INSTALL="$INSTALL"
18806 _ACEOF
18807
18808 cat >>$CONFIG_STATUS <<\_ACEOF
18809 # If no file are specified by the user, then we need to provide default
18810 # value.  By we need to know if files were specified by the user.
18811 ac_need_defaults=:
18812 while test $# != 0
18813 do
18814   case $1 in
18815   --*=*)
18816     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18817     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18818     ac_shift=:
18819     ;;
18820   -*)
18821     ac_option=$1
18822     ac_optarg=$2
18823     ac_shift=shift
18824     ;;
18825   *) # This is not an option, so the user has probably given explicit
18826      # arguments.
18827      ac_option=$1
18828      ac_need_defaults=false;;
18829   esac
18830
18831   case $ac_option in
18832   # Handling of the options.
18833 _ACEOF
18834 cat >>$CONFIG_STATUS <<\_ACEOF
18835   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18836     ac_cs_recheck=: ;;
18837   --version | --vers* | -V )
18838     echo "$ac_cs_version"; exit 0 ;;
18839   --he | --h)
18840     # Conflict between --help and --header
18841     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18842 Try \`$0 --help' for more information." >&5
18843 echo "$as_me: error: ambiguous option: $1
18844 Try \`$0 --help' for more information." >&2;}
18845    { (exit 1); exit 1; }; };;
18846   --help | --hel | -h )
18847     echo "$ac_cs_usage"; exit 0 ;;
18848   --debug | --d* | -d )
18849     debug=: ;;
18850   --file | --fil | --fi | --f )
18851     $ac_shift
18852     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18853     ac_need_defaults=false;;
18854   --header | --heade | --head | --hea )
18855     $ac_shift
18856     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18857     ac_need_defaults=false;;
18858   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18859   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18860     ac_cs_silent=: ;;
18861
18862   # This is an error.
18863   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18864 Try \`$0 --help' for more information." >&5
18865 echo "$as_me: error: unrecognized option: $1
18866 Try \`$0 --help' for more information." >&2;}
18867    { (exit 1); exit 1; }; } ;;
18868
18869   *) ac_config_targets="$ac_config_targets $1" ;;
18870
18871   esac
18872   shift
18873 done
18874
18875 ac_configure_extra_args=
18876
18877 if $ac_cs_silent; then
18878   exec 6>/dev/null
18879   ac_configure_extra_args="$ac_configure_extra_args --silent"
18880 fi
18881
18882 _ACEOF
18883 cat >>$CONFIG_STATUS <<_ACEOF
18884 if \$ac_cs_recheck; then
18885   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18886   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18887 fi
18888
18889 _ACEOF
18890
18891
18892
18893
18894
18895 cat >>$CONFIG_STATUS <<\_ACEOF
18896 for ac_config_target in $ac_config_targets
18897 do
18898   case "$ac_config_target" in
18899   # Handling of arguments.
18900   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18901   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18902   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18903   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18904   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18905   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18906   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18907   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18908   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18909   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18910   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18911   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18912   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18913   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18914   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18915   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18916   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18917   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18918   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18919   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18920   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
18921   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
18922   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
18923   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
18924   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
18925   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18926   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18927   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18928   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18929   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18930   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18931   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18932   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18933   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18934   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18935   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
18936   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
18937   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18938   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18939   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18940   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18941   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18942   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18943   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18944   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18945   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18946   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18947   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18948   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18949   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18950   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18951   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18952   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18953   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18954   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18955   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18956   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18957   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18958   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18959   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18960   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18961   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18962   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18963   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18964   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18965   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18966   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18967   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18968   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18969   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18970   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18971   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18972   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18973   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18974   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18975   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18976   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18977   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18978   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18979   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18980   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18981   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18982   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
18983   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
18984   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
18985   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
18986   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
18987   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18988   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18989   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18990   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18991 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18992    { (exit 1); exit 1; }; };;
18993   esac
18994 done
18995
18996 # If the user did not use the arguments to specify the items to instantiate,
18997 # then the envvar interface is used.  Set only those that are not.
18998 # We use the long form for the default assignment because of an extremely
18999 # bizarre bug on SunOS 4.1.3.
19000 if $ac_need_defaults; then
19001   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19002   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19003   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19004 fi
19005
19006 # Have a temporary directory for convenience.  Make it in the build tree
19007 # simply because there is no reason to put it here, and in addition,
19008 # creating and moving files from /tmp can sometimes cause problems.
19009 # Create a temporary directory, and hook for its removal unless debugging.
19010 $debug ||
19011 {
19012   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19013   trap '{ (exit 1); exit 1; }' 1 2 13 15
19014 }
19015
19016 # Create a (secure) tmp directory for tmp files.
19017
19018 {
19019   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19020   test -n "$tmp" && test -d "$tmp"
19021 }  ||
19022 {
19023   tmp=./confstat$$-$RANDOM
19024   (umask 077 && mkdir $tmp)
19025 } ||
19026 {
19027    echo "$me: cannot create a temporary directory in ." >&2
19028    { (exit 1); exit 1; }
19029 }
19030
19031 _ACEOF
19032
19033 cat >>$CONFIG_STATUS <<_ACEOF
19034
19035 #
19036 # CONFIG_FILES section.
19037 #
19038
19039 # No need to generate the scripts if there are no CONFIG_FILES.
19040 # This happens for instance when ./config.status config.h
19041 if test -n "\$CONFIG_FILES"; then
19042   # Protect against being on the right side of a sed subst in config.status.
19043   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19044    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19045 s,@SHELL@,$SHELL,;t t
19046 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19047 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19048 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19049 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19050 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19051 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19052 s,@exec_prefix@,$exec_prefix,;t t
19053 s,@prefix@,$prefix,;t t
19054 s,@program_transform_name@,$program_transform_name,;t t
19055 s,@bindir@,$bindir,;t t
19056 s,@sbindir@,$sbindir,;t t
19057 s,@libexecdir@,$libexecdir,;t t
19058 s,@datadir@,$datadir,;t t
19059 s,@sysconfdir@,$sysconfdir,;t t
19060 s,@sharedstatedir@,$sharedstatedir,;t t
19061 s,@localstatedir@,$localstatedir,;t t
19062 s,@libdir@,$libdir,;t t
19063 s,@includedir@,$includedir,;t t
19064 s,@oldincludedir@,$oldincludedir,;t t
19065 s,@infodir@,$infodir,;t t
19066 s,@mandir@,$mandir,;t t
19067 s,@build_alias@,$build_alias,;t t
19068 s,@host_alias@,$host_alias,;t t
19069 s,@target_alias@,$target_alias,;t t
19070 s,@DEFS@,$DEFS,;t t
19071 s,@ECHO_C@,$ECHO_C,;t t
19072 s,@ECHO_N@,$ECHO_N,;t t
19073 s,@ECHO_T@,$ECHO_T,;t t
19074 s,@LIBS@,$LIBS,;t t
19075 s,@BUILD_DIR@,$BUILD_DIR,;t t
19076 s,@TRUEPRG@,$TRUEPRG,;t t
19077 s,@FALSEPRG@,$FALSEPRG,;t t
19078 s,@VERSION@,$VERSION,;t t
19079 s,@DATE@,$DATE,;t t
19080 s,@LSMDATE@,$LSMDATE,;t t
19081 s,@CC@,$CC,;t t
19082 s,@CFLAGS@,$CFLAGS,;t t
19083 s,@LDFLAGS@,$LDFLAGS,;t t
19084 s,@CPPFLAGS@,$CPPFLAGS,;t t
19085 s,@ac_ct_CC@,$ac_ct_CC,;t t
19086 s,@EXEEXT@,$EXEEXT,;t t
19087 s,@OBJEXT@,$OBJEXT,;t t
19088 s,@CXX@,$CXX,;t t
19089 s,@CXXFLAGS@,$CXXFLAGS,;t t
19090 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19091 s,@CPP@,$CPP,;t t
19092 s,@EGREP@,$EGREP,;t t
19093 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19094 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19095 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19096 s,@RANLIB@,$RANLIB,;t t
19097 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19098 s,@MV@,$MV,;t t
19099 s,@RM@,$RM,;t t
19100 s,@CP@,$CP,;t t
19101 s,@SED@,$SED,;t t
19102 s,@AWK@,$AWK,;t t
19103 s,@ECHO@,$ECHO,;t t
19104 s,@CMP@,$CMP,;t t
19105 s,@TBL@,$TBL,;t t
19106 s,@AR@,$AR,;t t
19107 s,@OPENSSL@,$OPENSSL,;t t
19108 s,@MTX@,$MTX,;t t
19109 s,@PKGCONFIG@,$PKGCONFIG,;t t
19110 s,@WXCONFIG@,$WXCONFIG,;t t
19111 s,@ARFLAGS@,$ARFLAGS,;t t
19112 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19113 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19114 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19115 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19116 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19117 s,@build@,$build,;t t
19118 s,@build_cpu@,$build_cpu,;t t
19119 s,@build_vendor@,$build_vendor,;t t
19120 s,@build_os@,$build_os,;t t
19121 s,@host@,$host,;t t
19122 s,@host_cpu@,$host_cpu,;t t
19123 s,@host_vendor@,$host_vendor,;t t
19124 s,@host_os@,$host_os,;t t
19125 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19126 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19127 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19128 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19129 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19130 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19131 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19132 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19133 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19134 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19135 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19136 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19137 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19138 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19139 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19140 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19141 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19142 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19143 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19144 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19145 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19146 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19147 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19148 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19149 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19150 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19151 s,@MSGFMT@,$MSGFMT,;t t
19152 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19153 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19154 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19155 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19156 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19157 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19158 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19159 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19160 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19161 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19162 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19163 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19164 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19165 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19166 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19167 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19168 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19169 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19170 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19171 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19172 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19173 s,@GNOME_DIR@,$GNOME_DIR,;t t
19174 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19175 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19176 s,@WX_DIR@,$WX_DIR,;t t
19177 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19178 s,@STATIC_FD@,$STATIC_FD,;t t
19179 s,@STATIC_SD@,$STATIC_SD,;t t
19180 s,@STATIC_DIR@,$STATIC_DIR,;t t
19181 s,@STATIC_CONS@,$STATIC_CONS,;t t
19182 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19183 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19184 s,@ALL_DIRS@,$ALL_DIRS,;t t
19185 s,@CONS_INC@,$CONS_INC,;t t
19186 s,@CONS_OBJ@,$CONS_OBJ,;t t
19187 s,@CONS_SRC@,$CONS_SRC,;t t
19188 s,@CONS_LIBS@,$CONS_LIBS,;t t
19189 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19190 s,@READLINE_SRC@,$READLINE_SRC,;t t
19191 s,@working_dir@,$working_dir,;t t
19192 s,@scriptdir@,$scriptdir,;t t
19193 s,@dump_email@,$dump_email,;t t
19194 s,@job_email@,$job_email,;t t
19195 s,@smtp_host@,$smtp_host,;t t
19196 s,@piddir@,$piddir,;t t
19197 s,@subsysdir@,$subsysdir,;t t
19198 s,@baseport@,$baseport,;t t
19199 s,@dir_port@,$dir_port,;t t
19200 s,@fd_port@,$fd_port,;t t
19201 s,@sd_port@,$sd_port,;t t
19202 s,@dir_password@,$dir_password,;t t
19203 s,@fd_password@,$fd_password,;t t
19204 s,@sd_password@,$sd_password,;t t
19205 s,@dir_user@,$dir_user,;t t
19206 s,@dir_group@,$dir_group,;t t
19207 s,@sd_user@,$sd_user,;t t
19208 s,@sd_group@,$sd_group,;t t
19209 s,@fd_user@,$fd_user,;t t
19210 s,@fd_group@,$fd_group,;t t
19211 s,@SBINPERM@,$SBINPERM,;t t
19212 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19213 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19214 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19215 s,@cats@,$cats,;t t
19216 s,@DB_NAME@,$DB_NAME,;t t
19217 s,@GETCONF@,$GETCONF,;t t
19218 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19219 s,@X_CFLAGS@,$X_CFLAGS,;t t
19220 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19221 s,@X_LIBS@,$X_LIBS,;t t
19222 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19223 s,@LIBOBJS@,$LIBOBJS,;t t
19224 s,@ALLOCA@,$ALLOCA,;t t
19225 s,@FDLIBS@,$FDLIBS,;t t
19226 s,@DEBUG@,$DEBUG,;t t
19227 s,@DINCLUDE@,$DINCLUDE,;t t
19228 s,@DLIB@,$DLIB,;t t
19229 s,@DB_LIBS@,$DB_LIBS,;t t
19230 s,@WCFLAGS@,$WCFLAGS,;t t
19231 s,@WLDFLAGS@,$WLDFLAGS,;t t
19232 s,@OBJLIST@,$OBJLIST,;t t
19233 s,@hostname@,$hostname,;t t
19234 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19235 s,@PSCMD@,$PSCMD,;t t
19236 s,@WIN32@,$WIN32,;t t
19237 s,@MACOSX@,$MACOSX,;t t
19238 s,@DISTNAME@,$DISTNAME,;t t
19239 s,@DISTVER@,$DISTVER,;t t
19240 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19241 /@MCOMMON@/r $MCOMMON
19242 s,@MCOMMON@,,;t t
19243 CEOF
19244
19245 _ACEOF
19246
19247   cat >>$CONFIG_STATUS <<\_ACEOF
19248   # Split the substitutions into bite-sized pieces for seds with
19249   # small command number limits, like on Digital OSF/1 and HP-UX.
19250   ac_max_sed_lines=48
19251   ac_sed_frag=1 # Number of current file.
19252   ac_beg=1 # First line for current file.
19253   ac_end=$ac_max_sed_lines # Line after last line for current file.
19254   ac_more_lines=:
19255   ac_sed_cmds=
19256   while $ac_more_lines; do
19257     if test $ac_beg -gt 1; then
19258       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19259     else
19260       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19261     fi
19262     if test ! -s $tmp/subs.frag; then
19263       ac_more_lines=false
19264     else
19265       # The purpose of the label and of the branching condition is to
19266       # speed up the sed processing (if there are no `@' at all, there
19267       # is no need to browse any of the substitutions).
19268       # These are the two extra sed commands mentioned above.
19269       (echo ':t
19270   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19271       if test -z "$ac_sed_cmds"; then
19272         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19273       else
19274         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19275       fi
19276       ac_sed_frag=`expr $ac_sed_frag + 1`
19277       ac_beg=$ac_end
19278       ac_end=`expr $ac_end + $ac_max_sed_lines`
19279     fi
19280   done
19281   if test -z "$ac_sed_cmds"; then
19282     ac_sed_cmds=cat
19283   fi
19284 fi # test -n "$CONFIG_FILES"
19285
19286 _ACEOF
19287 cat >>$CONFIG_STATUS <<\_ACEOF
19288 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19289   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19290   case $ac_file in
19291   - | *:- | *:-:* ) # input from stdin
19292         cat >$tmp/stdin
19293         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19294         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19295   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19296         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19297   * )   ac_file_in=$ac_file.in ;;
19298   esac
19299
19300   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19301   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19302 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19303          X"$ac_file" : 'X\(//\)[^/]' \| \
19304          X"$ac_file" : 'X\(//\)$' \| \
19305          X"$ac_file" : 'X\(/\)' \| \
19306          .     : '\(.\)' 2>/dev/null ||
19307 echo X"$ac_file" |
19308     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19309           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19310           /^X\(\/\/\)$/{ s//\1/; q; }
19311           /^X\(\/\).*/{ s//\1/; q; }
19312           s/.*/./; q'`
19313   { if $as_mkdir_p; then
19314     mkdir -p "$ac_dir"
19315   else
19316     as_dir="$ac_dir"
19317     as_dirs=
19318     while test ! -d "$as_dir"; do
19319       as_dirs="$as_dir $as_dirs"
19320       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19322          X"$as_dir" : 'X\(//\)[^/]' \| \
19323          X"$as_dir" : 'X\(//\)$' \| \
19324          X"$as_dir" : 'X\(/\)' \| \
19325          .     : '\(.\)' 2>/dev/null ||
19326 echo X"$as_dir" |
19327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19328           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19329           /^X\(\/\/\)$/{ s//\1/; q; }
19330           /^X\(\/\).*/{ s//\1/; q; }
19331           s/.*/./; q'`
19332     done
19333     test ! -n "$as_dirs" || mkdir $as_dirs
19334   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19335 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19336    { (exit 1); exit 1; }; }; }
19337
19338   ac_builddir=.
19339
19340 if test "$ac_dir" != .; then
19341   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19342   # A "../" for each directory in $ac_dir_suffix.
19343   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19344 else
19345   ac_dir_suffix= ac_top_builddir=
19346 fi
19347
19348 case $srcdir in
19349   .)  # No --srcdir option.  We are building in place.
19350     ac_srcdir=.
19351     if test -z "$ac_top_builddir"; then
19352        ac_top_srcdir=.
19353     else
19354        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19355     fi ;;
19356   [\\/]* | ?:[\\/]* )  # Absolute path.
19357     ac_srcdir=$srcdir$ac_dir_suffix;
19358     ac_top_srcdir=$srcdir ;;
19359   *) # Relative path.
19360     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19361     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19362 esac
19363 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19364 # absolute.
19365 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19366 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19367 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19368 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19369
19370
19371   case $INSTALL in
19372   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19373   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19374   esac
19375
19376   if test x"$ac_file" != x-; then
19377     { echo "$as_me:$LINENO: creating $ac_file" >&5
19378 echo "$as_me: creating $ac_file" >&6;}
19379     rm -f "$ac_file"
19380   fi
19381   # Let's still pretend it is `configure' which instantiates (i.e., don't
19382   # use $as_me), people would be surprised to read:
19383   #    /* config.h.  Generated by config.status.  */
19384   if test x"$ac_file" = x-; then
19385     configure_input=
19386   else
19387     configure_input="$ac_file.  "
19388   fi
19389   configure_input=$configure_input"Generated from `echo $ac_file_in |
19390                                      sed 's,.*/,,'` by configure."
19391
19392   # First look for the input files in the build tree, otherwise in the
19393   # src tree.
19394   ac_file_inputs=`IFS=:
19395     for f in $ac_file_in; do
19396       case $f in
19397       -) echo $tmp/stdin ;;
19398       [\\/$]*)
19399          # Absolute (can't be DOS-style, as IFS=:)
19400          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19401 echo "$as_me: error: cannot find input file: $f" >&2;}
19402    { (exit 1); exit 1; }; }
19403          echo $f;;
19404       *) # Relative
19405          if test -f "$f"; then
19406            # Build tree
19407            echo $f
19408          elif test -f "$srcdir/$f"; then
19409            # Source tree
19410            echo $srcdir/$f
19411          else
19412            # /dev/null tree
19413            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19414 echo "$as_me: error: cannot find input file: $f" >&2;}
19415    { (exit 1); exit 1; }; }
19416          fi;;
19417       esac
19418     done` || { (exit 1); exit 1; }
19419 _ACEOF
19420 cat >>$CONFIG_STATUS <<_ACEOF
19421   sed "$ac_vpsub
19422 $extrasub
19423 _ACEOF
19424 cat >>$CONFIG_STATUS <<\_ACEOF
19425 :t
19426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19427 s,@configure_input@,$configure_input,;t t
19428 s,@srcdir@,$ac_srcdir,;t t
19429 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19430 s,@top_srcdir@,$ac_top_srcdir,;t t
19431 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19432 s,@builddir@,$ac_builddir,;t t
19433 s,@abs_builddir@,$ac_abs_builddir,;t t
19434 s,@top_builddir@,$ac_top_builddir,;t t
19435 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19436 s,@INSTALL@,$ac_INSTALL,;t t
19437 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19438   rm -f $tmp/stdin
19439   if test x"$ac_file" != x-; then
19440     mv $tmp/out $ac_file
19441   else
19442     cat $tmp/out
19443     rm -f $tmp/out
19444   fi
19445
19446 done
19447 _ACEOF
19448 cat >>$CONFIG_STATUS <<\_ACEOF
19449
19450 #
19451 # CONFIG_HEADER section.
19452 #
19453
19454 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19455 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19456 #
19457 # ac_d sets the value in "#define NAME VALUE" lines.
19458 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19459 ac_dB='[        ].*$,\1#\2'
19460 ac_dC=' '
19461 ac_dD=',;t'
19462 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19463 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19464 ac_uB='$,\1#\2define\3'
19465 ac_uC=' '
19466 ac_uD=',;t'
19467
19468 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19469   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19470   case $ac_file in
19471   - | *:- | *:-:* ) # input from stdin
19472         cat >$tmp/stdin
19473         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19474         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19475   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19476         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19477   * )   ac_file_in=$ac_file.in ;;
19478   esac
19479
19480   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19481 echo "$as_me: creating $ac_file" >&6;}
19482
19483   # First look for the input files in the build tree, otherwise in the
19484   # src tree.
19485   ac_file_inputs=`IFS=:
19486     for f in $ac_file_in; do
19487       case $f in
19488       -) echo $tmp/stdin ;;
19489       [\\/$]*)
19490          # Absolute (can't be DOS-style, as IFS=:)
19491          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19492 echo "$as_me: error: cannot find input file: $f" >&2;}
19493    { (exit 1); exit 1; }; }
19494          echo $f;;
19495       *) # Relative
19496          if test -f "$f"; then
19497            # Build tree
19498            echo $f
19499          elif test -f "$srcdir/$f"; then
19500            # Source tree
19501            echo $srcdir/$f
19502          else
19503            # /dev/null tree
19504            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19505 echo "$as_me: error: cannot find input file: $f" >&2;}
19506    { (exit 1); exit 1; }; }
19507          fi;;
19508       esac
19509     done` || { (exit 1); exit 1; }
19510   # Remove the trailing spaces.
19511   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
19512
19513 _ACEOF
19514
19515 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19516 # `conftest.undefs', that substitutes the proper values into
19517 # config.h.in to produce config.h.  The first handles `#define'
19518 # templates, and the second `#undef' templates.
19519 # And first: Protect against being on the right side of a sed subst in
19520 # config.status.  Protect against being in an unquoted here document
19521 # in config.status.
19522 rm -f conftest.defines conftest.undefs
19523 # Using a here document instead of a string reduces the quoting nightmare.
19524 # Putting comments in sed scripts is not portable.
19525 #
19526 # `end' is used to avoid that the second main sed command (meant for
19527 # 0-ary CPP macros) applies to n-ary macro definitions.
19528 # See the Autoconf documentation for `clear'.
19529 cat >confdef2sed.sed <<\_ACEOF
19530 s/[\\&,]/\\&/g
19531 s,[\\$`],\\&,g
19532 t clear
19533 : clear
19534 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19535 t end
19536 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19537 : end
19538 _ACEOF
19539 # If some macros were called several times there might be several times
19540 # the same #defines, which is useless.  Nevertheless, we may not want to
19541 # sort them, since we want the *last* AC-DEFINE to be honored.
19542 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19543 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19544 rm -f confdef2sed.sed
19545
19546 # This sed command replaces #undef with comments.  This is necessary, for
19547 # example, in the case of _POSIX_SOURCE, which is predefined and required
19548 # on some systems where configure will not decide to define it.
19549 cat >>conftest.undefs <<\_ACEOF
19550 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19551 _ACEOF
19552
19553 # Break up conftest.defines because some shells have a limit on the size
19554 # of here documents, and old seds have small limits too (100 cmds).
19555 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19556 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19557 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19558 echo '  :' >>$CONFIG_STATUS
19559 rm -f conftest.tail
19560 while grep . conftest.defines >/dev/null
19561 do
19562   # Write a limited-size here document to $tmp/defines.sed.
19563   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19564   # Speed up: don't consider the non `#define' lines.
19565   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
19566   # Work around the forget-to-reset-the-flag bug.
19567   echo 't clr' >>$CONFIG_STATUS
19568   echo ': clr' >>$CONFIG_STATUS
19569   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19570   echo 'CEOF
19571   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19572   rm -f $tmp/in
19573   mv $tmp/out $tmp/in
19574 ' >>$CONFIG_STATUS
19575   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19576   rm -f conftest.defines
19577   mv conftest.tail conftest.defines
19578 done
19579 rm -f conftest.defines
19580 echo '  fi # grep' >>$CONFIG_STATUS
19581 echo >>$CONFIG_STATUS
19582
19583 # Break up conftest.undefs because some shells have a limit on the size
19584 # of here documents, and old seds have small limits too (100 cmds).
19585 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19586 rm -f conftest.tail
19587 while grep . conftest.undefs >/dev/null
19588 do
19589   # Write a limited-size here document to $tmp/undefs.sed.
19590   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19591   # Speed up: don't consider the non `#undef'
19592   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19593   # Work around the forget-to-reset-the-flag bug.
19594   echo 't clr' >>$CONFIG_STATUS
19595   echo ': clr' >>$CONFIG_STATUS
19596   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19597   echo 'CEOF
19598   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19599   rm -f $tmp/in
19600   mv $tmp/out $tmp/in
19601 ' >>$CONFIG_STATUS
19602   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19603   rm -f conftest.undefs
19604   mv conftest.tail conftest.undefs
19605 done
19606 rm -f conftest.undefs
19607
19608 cat >>$CONFIG_STATUS <<\_ACEOF
19609   # Let's still pretend it is `configure' which instantiates (i.e., don't
19610   # use $as_me), people would be surprised to read:
19611   #    /* config.h.  Generated by config.status.  */
19612   if test x"$ac_file" = x-; then
19613     echo "/* Generated by configure.  */" >$tmp/config.h
19614   else
19615     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19616   fi
19617   cat $tmp/in >>$tmp/config.h
19618   rm -f $tmp/in
19619   if test x"$ac_file" != x-; then
19620     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19621       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19622 echo "$as_me: $ac_file is unchanged" >&6;}
19623     else
19624       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19626          X"$ac_file" : 'X\(//\)[^/]' \| \
19627          X"$ac_file" : 'X\(//\)$' \| \
19628          X"$ac_file" : 'X\(/\)' \| \
19629          .     : '\(.\)' 2>/dev/null ||
19630 echo X"$ac_file" |
19631     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19632           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19633           /^X\(\/\/\)$/{ s//\1/; q; }
19634           /^X\(\/\).*/{ s//\1/; q; }
19635           s/.*/./; q'`
19636       { if $as_mkdir_p; then
19637     mkdir -p "$ac_dir"
19638   else
19639     as_dir="$ac_dir"
19640     as_dirs=
19641     while test ! -d "$as_dir"; do
19642       as_dirs="$as_dir $as_dirs"
19643       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19645          X"$as_dir" : 'X\(//\)[^/]' \| \
19646          X"$as_dir" : 'X\(//\)$' \| \
19647          X"$as_dir" : 'X\(/\)' \| \
19648          .     : '\(.\)' 2>/dev/null ||
19649 echo X"$as_dir" |
19650     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19651           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19652           /^X\(\/\/\)$/{ s//\1/; q; }
19653           /^X\(\/\).*/{ s//\1/; q; }
19654           s/.*/./; q'`
19655     done
19656     test ! -n "$as_dirs" || mkdir $as_dirs
19657   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19658 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19659    { (exit 1); exit 1; }; }; }
19660
19661       rm -f $ac_file
19662       mv $tmp/config.h $ac_file
19663     fi
19664   else
19665     cat $tmp/config.h
19666     rm -f $tmp/config.h
19667   fi
19668 done
19669 _ACEOF
19670 cat >>$CONFIG_STATUS <<\_ACEOF
19671
19672 #
19673 # CONFIG_COMMANDS section.
19674 #
19675 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19676   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19677   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19678   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19679 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19680          X"$ac_dest" : 'X\(//\)[^/]' \| \
19681          X"$ac_dest" : 'X\(//\)$' \| \
19682          X"$ac_dest" : 'X\(/\)' \| \
19683          .     : '\(.\)' 2>/dev/null ||
19684 echo X"$ac_dest" |
19685     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19686           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19687           /^X\(\/\/\)$/{ s//\1/; q; }
19688           /^X\(\/\).*/{ s//\1/; q; }
19689           s/.*/./; q'`
19690   ac_builddir=.
19691
19692 if test "$ac_dir" != .; then
19693   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19694   # A "../" for each directory in $ac_dir_suffix.
19695   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19696 else
19697   ac_dir_suffix= ac_top_builddir=
19698 fi
19699
19700 case $srcdir in
19701   .)  # No --srcdir option.  We are building in place.
19702     ac_srcdir=.
19703     if test -z "$ac_top_builddir"; then
19704        ac_top_srcdir=.
19705     else
19706        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19707     fi ;;
19708   [\\/]* | ?:[\\/]* )  # Absolute path.
19709     ac_srcdir=$srcdir$ac_dir_suffix;
19710     ac_top_srcdir=$srcdir ;;
19711   *) # Relative path.
19712     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19713     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19714 esac
19715 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19716 # absolute.
19717 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19718 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19719 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19720 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19721
19722
19723   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19724 echo "$as_me: executing $ac_dest commands" >&6;}
19725   case $ac_dest in
19726     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
19727  ;;
19728   esac
19729 done
19730 _ACEOF
19731
19732 cat >>$CONFIG_STATUS <<\_ACEOF
19733
19734 { (exit 0); exit 0; }
19735 _ACEOF
19736 chmod +x $CONFIG_STATUS
19737 ac_clean_files=$ac_clean_files_save
19738
19739
19740 # configure is writing to config.log, and then calls config.status.
19741 # config.status does its own redirection, appending to config.log.
19742 # Unfortunately, on DOS this fails, as config.log is still kept open
19743 # by configure, so config.status won't be able to write to it; its
19744 # output is simply discarded.  So we exec the FD to /dev/null,
19745 # effectively closing config.log, so it can be properly (re)opened and
19746 # appended to by config.status.  When coming back to configure, we
19747 # need to make the FD available again.
19748 if test "$no_create" != yes; then
19749   ac_cs_success=:
19750   ac_config_status_args=
19751   test "$silent" = yes &&
19752     ac_config_status_args="$ac_config_status_args --quiet"
19753   exec 5>/dev/null
19754   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19755   exec 5>>config.log
19756   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19757   # would make configure fail if this is the last instruction.
19758   $ac_cs_success || { (exit 1); exit 1; }
19759 fi
19760
19761
19762 cd scripts
19763 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19764 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19765 cd ..
19766
19767 c=src/cats
19768
19769 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
19770 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
19771
19772 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
19773 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
19774
19775 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
19776 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
19777
19778 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
19779 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
19780
19781 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
19782 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
19783
19784 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19785 chmod 755 $c/sqlite
19786 chmod 755 $c/mysql
19787
19788 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19789    largefile_support="yes"
19790 fi
19791
19792 #
19793 # A whole lot of hand springs to get the compiler version.
19794 #  This is because gcc changed the output in version 3.0
19795 #
19796 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19797 if test "x${CCVERSION}" = "x" ; then
19798   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19799 fi
19800 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19801 if test x"${CXXVERSION}" = x ; then
19802   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19803 fi
19804
19805 if test "x${subsysdir}" = "x${sbindir}" ; then
19806    echo " "
19807    echo " "
19808    echo "You have set --sbindir and --with-subsys-dir"
19809    echo "  both equal to: ${subsysdir} "
19810    echo "  This is not permitted. Please reconfigure."
19811    echo " "
19812    echo "Aborting configuration ..."
19813    echo " "
19814    echo " "
19815    exit 1
19816 fi
19817
19818 if test "x${db_name}" = "xInternal" ; then
19819    echo " "
19820    echo " "
19821    echo "You have not specified either --enable-client-only or one of the"
19822    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
19823    echo "  This is not permitted. Please reconfigure."
19824    echo " "
19825    echo "Aborting the configuration ..."
19826    echo " "
19827    echo " "
19828    exit 1
19829 fi
19830
19831 echo "
19832 Configuration on `date`:
19833
19834   Host:                       $host -- ${DISTNAME} ${DISTVER}
19835   Bacula version:             ${VERSION} (${DATE})
19836   Source code location:       ${srcdir}
19837   Install binaries:           ${sbindir}
19838   Install config files:       ${sysconfdir}
19839   Scripts directory:          ${scriptdir}
19840   Working directory:          ${working_dir}
19841   PID directory:              ${piddir}
19842   Subsys directory:           ${subsysdir}
19843   C Compiler:                 ${CC} ${CCVERSION}
19844   C++ Compiler:               ${CXX} ${CXXVERSION}
19845   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19846   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19847   Libraries:                  ${LIBS}
19848   Statically Linked Tools:    ${support_static_tools}
19849   Statically Linked FD:       ${support_static_fd}
19850   Statically Linked SD:       ${support_static_sd}
19851   Statically Linked DIR:      ${support_static_dir}
19852   Statically Linked CONS:     ${support_static_cons}
19853   Database type:              ${db_name}
19854   Database lib:               ${DB_LIBS}
19855
19856   Job Output Email:           ${job_email}
19857   Traceback Email:            ${dump_email}
19858   SMTP Host Address:          ${smtp_host}
19859
19860   Director Port:              ${dir_port}
19861   File daemon Port:           ${fd_port}
19862   Storage daemon Port:        ${sd_port}
19863
19864   Director User:              ${dir_user}
19865   Director Group:             ${dir_group}
19866   Storage Daemon User:        ${sd_user}
19867   Storage DaemonGroup:        ${sd_group}
19868   File Daemon User:           ${fd_user}
19869   File Daemon Group:          ${fd_group}
19870
19871   SQL binaries Directory      ${SQL_BINDIR}
19872
19873   Large file support:         $largefile_support
19874   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19875   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19876   TCP Wrappers support:       ${TCPW_MSG}
19877   ZLIB support:               ${have_zlib}
19878   enable-smartalloc:          ${support_smartalloc}
19879   enable-gnome:               ${support_gnome} ${gnome_version}
19880   enable-wx-console:          ${support_wx_console}
19881   client-only:                ${build_client_only}
19882   ACL support:                ${have_acl}
19883
19884   " > config.out
19885
19886 cat config.out
19887
19888 # old stuff
19889 # cweb support:               ${got_cweb} ${CWEB_SRC}
19890 # gmp support:                ${got_gmp} ${GMP_SRC}