]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
A improvment of the sqlite detection. Now
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-wx-console     enable build of wxWidgets console disabled
860   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
861   --enable-smartalloc     enable smartalloc debugging support disabled
862   --enable-static-tools   enable static tape tools disabled
863   --enable-static-fd      enable static File daemon disabled
864   --enable-static-sd      enable static Storage daemon disabled
865   --enable-static-dir     enable static Director disabled
866   --enable-static-cons    enable static Console disabled
867   --enable-client-only    build client (File daemon) only disabled
868   --disable-conio            disable conio support enabled
869
870   --disable-readline      disable readline support disable
871
872   --disable-largefile     omit support for large files
873
874 Optional Packages:
875   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
876   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
877   --with-gnome-includes   Specify location of GNOME headers
878   --with-gnome-libs       Specify location of GNOME libs
879   --with-gnome            Specify prefix for GNOME files
880  --with-readline=DIR             specify readline library directory
881   --with-tcp-wrappers=DIR        enable tcpwrappers support
882   --with-working-dir=PATH        specify path of Bacula working directory
883   --with-scriptdir=PATH    specify path of Bacula scripts directory
884   --with-dump-email=EMAIL        dump email address
885   --with-job-email=EMAIL         job output email address
886   --with-smtp-host=HOST          SMTP mail host address
887   --with-pid-dir=PATH            specify location of Bacula pid files
888   --with-subsys-dir=PATH         specify location of Bacula subsys file
889   --with-baseport=PORT           specify base port address for daemons
890   --with-dir-password=PASSWORD   specify Director's password
891   --with-fd-password=PASSWORD    specify Client's password
892   --with-sd-password=PASSWORD    specify Storage daemon's password
893   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
894   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
895   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
896   --with-dir-user=USER           specify user for Director daemon
897   --with-dir-group=GROUP                 specify group for Director daemon
898   --with-sd-user=USER            specify user for Storage daemon
899   --with-sd-group=GROUP          specify group for Storage daemon
900   --with-fd-user=USER            specify user for File daemon
901   --with-fd-group=GROUP          specify group for File daemon
902   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
903   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
904                           base install directory, defaults to /usr/local/pgsql
905
906   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
907                           install directory, default is to search through
908                           a number of common places for the MySQL files.
909
910   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
911                           install directory, default is to search through
912                           a number of common places for the MySQL files.
913
914   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
915                           install directory, default is to search through
916                           a number of common places for the SQLite files.
917   --with-x                use the X Window System
918
919 Some influential environment variables:
920   CC          C compiler command
921   CFLAGS      C compiler flags
922   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
923               nonstandard directory <lib dir>
924   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
925               headers in a nonstandard directory <include dir>
926   CXX         C++ compiler command
927   CXXFLAGS    C++ compiler flags
928   CPP         C preprocessor
929
930 Use these variables to override the choices made by `configure' or to help
931 it to find libraries and programs with nonstandard names/locations.
932
933 _ACEOF
934 fi
935
936 if test "$ac_init_help" = "recursive"; then
937   # If there are subdirs, report their specific --help.
938   ac_popdir=`pwd`
939   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
940     test -d $ac_dir || continue
941     ac_builddir=.
942
943 if test "$ac_dir" != .; then
944   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
945   # A "../" for each directory in $ac_dir_suffix.
946   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
947 else
948   ac_dir_suffix= ac_top_builddir=
949 fi
950
951 case $srcdir in
952   .)  # No --srcdir option.  We are building in place.
953     ac_srcdir=.
954     if test -z "$ac_top_builddir"; then
955        ac_top_srcdir=.
956     else
957        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
958     fi ;;
959   [\\/]* | ?:[\\/]* )  # Absolute path.
960     ac_srcdir=$srcdir$ac_dir_suffix;
961     ac_top_srcdir=$srcdir ;;
962   *) # Relative path.
963     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
964     ac_top_srcdir=$ac_top_builddir$srcdir ;;
965 esac
966 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
967 # absolute.
968 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
969 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
970 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
971 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
972
973     cd $ac_dir
974     # Check for guested configure; otherwise get Cygnus style configure.
975     if test -f $ac_srcdir/configure.gnu; then
976       echo
977       $SHELL $ac_srcdir/configure.gnu  --help=recursive
978     elif test -f $ac_srcdir/configure; then
979       echo
980       $SHELL $ac_srcdir/configure  --help=recursive
981     elif test -f $ac_srcdir/configure.ac ||
982            test -f $ac_srcdir/configure.in; then
983       echo
984       $ac_configure --help
985     else
986       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987     fi
988     cd $ac_popdir
989   done
990 fi
991
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
994   cat <<\_ACEOF
995
996 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
997 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1000 _ACEOF
1001   exit 0
1002 fi
1003 exec 5>config.log
1004 cat >&5 <<_ACEOF
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1007
1008 It was created by $as_me, which was
1009 generated by GNU Autoconf 2.57.  Invocation command line was
1010
1011   $ $0 $@
1012
1013 _ACEOF
1014 {
1015 cat <<_ASUNAME
1016 ## --------- ##
1017 ## Platform. ##
1018 ## --------- ##
1019
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1025
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1028
1029 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1030 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1033 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1034 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1035 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1036
1037 _ASUNAME
1038
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1040 for as_dir in $PATH
1041 do
1042   IFS=$as_save_IFS
1043   test -z "$as_dir" && as_dir=.
1044   echo "PATH: $as_dir"
1045 done
1046
1047 } >&5
1048
1049 cat >&5 <<_ACEOF
1050
1051
1052 ## ----------- ##
1053 ## Core tests. ##
1054 ## ----------- ##
1055
1056 _ACEOF
1057
1058
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1064 ac_configure_args=
1065 ac_configure_args0=
1066 ac_configure_args1=
1067 ac_sep=
1068 ac_must_keep_next=false
1069 for ac_pass in 1 2
1070 do
1071   for ac_arg
1072   do
1073     case $ac_arg in
1074     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076     | -silent | --silent | --silen | --sile | --sil)
1077       continue ;;
1078     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1080     esac
1081     case $ac_pass in
1082     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1083     2)
1084       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085       if test $ac_must_keep_next = true; then
1086         ac_must_keep_next=false # Got value, back to normal.
1087       else
1088         case $ac_arg in
1089           *=* | --config-cache | -C | -disable-* | --disable-* \
1090           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092           | -with-* | --with-* | -without-* | --without-* | --x)
1093             case "$ac_configure_args0 " in
1094               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1095             esac
1096             ;;
1097           -* ) ac_must_keep_next=true ;;
1098         esac
1099       fi
1100       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101       # Get rid of the leading space.
1102       ac_sep=" "
1103       ;;
1104     esac
1105   done
1106 done
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1109
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log.  We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116   # Save into config.log some information that might help in debugging.
1117   {
1118     echo
1119
1120     cat <<\_ASBOX
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1124 _ASBOX
1125     echo
1126     # The following way of writing the cache mishandles newlines in values,
1127 {
1128   (set) 2>&1 |
1129     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1130     *ac_space=\ *)
1131       sed -n \
1132         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1134       ;;
1135     *)
1136       sed -n \
1137         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138       ;;
1139     esac;
1140 }
1141     echo
1142
1143     cat <<\_ASBOX
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1147 _ASBOX
1148     echo
1149     for ac_var in $ac_subst_vars
1150     do
1151       eval ac_val=$`echo $ac_var`
1152       echo "$ac_var='"'"'$ac_val'"'"'"
1153     done | sort
1154     echo
1155
1156     if test -n "$ac_subst_files"; then
1157       cat <<\_ASBOX
1158 ## ------------- ##
1159 ## Output files. ##
1160 ## ------------- ##
1161 _ASBOX
1162       echo
1163       for ac_var in $ac_subst_files
1164       do
1165         eval ac_val=$`echo $ac_var`
1166         echo "$ac_var='"'"'$ac_val'"'"'"
1167       done | sort
1168       echo
1169     fi
1170
1171     if test -s confdefs.h; then
1172       cat <<\_ASBOX
1173 ## ----------- ##
1174 ## confdefs.h. ##
1175 ## ----------- ##
1176 _ASBOX
1177       echo
1178       sed "/^$/d" confdefs.h | sort
1179       echo
1180     fi
1181     test "$ac_signal" != 0 &&
1182       echo "$as_me: caught signal $ac_signal"
1183     echo "$as_me: exit $exit_status"
1184   } >&5
1185   rm -f core core.* *.core &&
1186   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1187     exit $exit_status
1188      ' 0
1189 for ac_signal in 1 2 13 15; do
1190   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1191 done
1192 ac_signal=0
1193
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1197 echo >confdefs.h
1198
1199 # Predefined preprocessor variables.
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1223 _ACEOF
1224
1225
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229   if test "x$prefix" != xNONE; then
1230     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1231   else
1232     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1233   fi
1234 fi
1235 for ac_site_file in $CONFIG_SITE; do
1236   if test -r "$ac_site_file"; then
1237     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239     sed 's/^/| /' "$ac_site_file" >&5
1240     . "$ac_site_file"
1241   fi
1242 done
1243
1244 if test -r "$cache_file"; then
1245   # Some versions of bash will fail to source /dev/null (special
1246   # files actually), so we avoid doing that.
1247   if test -f "$cache_file"; then
1248     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1250     case $cache_file in
1251       [\\/]* | ?:[\\/]* ) . $cache_file;;
1252       *)                      . ./$cache_file;;
1253     esac
1254   fi
1255 else
1256   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1258   >$cache_file
1259 fi
1260
1261 # Check that the precious variables saved in the cache have kept the same
1262 # value.
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267   eval ac_new_set=\$ac_env_${ac_var}_set
1268   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269   eval ac_new_val="\$ac_env_${ac_var}_value"
1270   case $ac_old_set,$ac_new_set in
1271     set,)
1272       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274       ac_cache_corrupted=: ;;
1275     ,set)
1276       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278       ac_cache_corrupted=: ;;
1279     ,);;
1280     *)
1281       if test "x$ac_old_val" != "x$ac_new_val"; then
1282         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1285 echo "$as_me:   former value:  $ac_old_val" >&2;}
1286         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1287 echo "$as_me:   current value: $ac_new_val" >&2;}
1288         ac_cache_corrupted=:
1289       fi;;
1290   esac
1291   # Pass precious variables to config.status.
1292   if test "$ac_new_set" = set; then
1293     case $ac_new_val in
1294     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296     *) ac_arg=$ac_var=$ac_new_val ;;
1297     esac
1298     case " $ac_configure_args " in
1299       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1300       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1301     esac
1302   fi
1303 done
1304 if $ac_cache_corrupted; then
1305   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309    { (exit 1); exit 1; }; }
1310 fi
1311
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336 BUILD_DIR=`pwd`
1337 cd ..
1338 TOP_DIR=`pwd`
1339 cd ${BUILD_DIR}
1340
1341 ac_aux_dir=
1342 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1343   if test -f $ac_dir/install-sh; then
1344     ac_aux_dir=$ac_dir
1345     ac_install_sh="$ac_aux_dir/install-sh -c"
1346     break
1347   elif test -f $ac_dir/install.sh; then
1348     ac_aux_dir=$ac_dir
1349     ac_install_sh="$ac_aux_dir/install.sh -c"
1350     break
1351   elif test -f $ac_dir/shtool; then
1352     ac_aux_dir=$ac_dir
1353     ac_install_sh="$ac_aux_dir/shtool install -c"
1354     break
1355   fi
1356 done
1357 if test -z "$ac_aux_dir"; then
1358   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1359 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1360    { (exit 1); exit 1; }; }
1361 fi
1362 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1363 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1364 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1365
1366           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1367
1368
1369
1370
1371
1372 for ac_prog in true
1373 do
1374   # Extract the first word of "$ac_prog", so it can be a program name with args.
1375 set dummy $ac_prog; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1379   echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381   case $TRUEPRG in
1382   [\\/]* | ?:[\\/]*)
1383   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1384   ;;
1385   *)
1386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 for as_dir in $PATH
1388 do
1389   IFS=$as_save_IFS
1390   test -z "$as_dir" && as_dir=.
1391   for ac_exec_ext in '' $ac_executable_extensions; do
1392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395     break 2
1396   fi
1397 done
1398 done
1399
1400   ;;
1401 esac
1402 fi
1403 TRUEPRG=$ac_cv_path_TRUEPRG
1404
1405 if test -n "$TRUEPRG"; then
1406   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1407 echo "${ECHO_T}$TRUEPRG" >&6
1408 else
1409   echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1411 fi
1412
1413   test -n "$TRUEPRG" && break
1414 done
1415 test -n "$TRUEPRG" || TRUEPRG=":"
1416
1417 for ac_prog in false
1418 do
1419   # Extract the first word of "$ac_prog", so it can be a program name with args.
1420 set dummy $ac_prog; ac_word=$2
1421 echo "$as_me:$LINENO: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1424   echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426   case $FALSEPRG in
1427   [\\/]* | ?:[\\/]*)
1428   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1429   ;;
1430   *)
1431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1433 do
1434   IFS=$as_save_IFS
1435   test -z "$as_dir" && as_dir=.
1436   for ac_exec_ext in '' $ac_executable_extensions; do
1437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440     break 2
1441   fi
1442 done
1443 done
1444
1445   ;;
1446 esac
1447 fi
1448 FALSEPRG=$ac_cv_path_FALSEPRG
1449
1450 if test -n "$FALSEPRG"; then
1451   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1452 echo "${ECHO_T}$FALSEPRG" >&6
1453 else
1454   echo "$as_me:$LINENO: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1456 fi
1457
1458   test -n "$FALSEPRG" && break
1459 done
1460 test -n "$FALSEPRG" || FALSEPRG=":"
1461
1462
1463 #AC_CANONICAL_HOST
1464
1465 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1466 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1467 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1468 echo "configuring for bacula $VERSION ($DATE)"
1469
1470
1471
1472 ac_ext=c
1473 ac_cpp='$CPP $CPPFLAGS'
1474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477 if test -n "$ac_tool_prefix"; then
1478   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483   echo $ECHO_N "(cached) $ECHO_C" >&6
1484 else
1485   if test -n "$CC"; then
1486   ac_cv_prog_CC="$CC" # Let the user override the test.
1487 else
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1489 for as_dir in $PATH
1490 do
1491   IFS=$as_save_IFS
1492   test -z "$as_dir" && as_dir=.
1493   for ac_exec_ext in '' $ac_executable_extensions; do
1494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1497     break 2
1498   fi
1499 done
1500 done
1501
1502 fi
1503 fi
1504 CC=$ac_cv_prog_CC
1505 if test -n "$CC"; then
1506   echo "$as_me:$LINENO: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1508 else
1509   echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1511 fi
1512
1513 fi
1514 if test -z "$ac_cv_prog_CC"; then
1515   ac_ct_CC=$CC
1516   # Extract the first word of "gcc", so it can be a program name with args.
1517 set dummy gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521   echo $ECHO_N "(cached) $ECHO_C" >&6
1522 else
1523   if test -n "$ac_ct_CC"; then
1524   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 else
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527 for as_dir in $PATH
1528 do
1529   IFS=$as_save_IFS
1530   test -z "$as_dir" && as_dir=.
1531   for ac_exec_ext in '' $ac_executable_extensions; do
1532   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533     ac_cv_prog_ac_ct_CC="gcc"
1534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535     break 2
1536   fi
1537 done
1538 done
1539
1540 fi
1541 fi
1542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543 if test -n "$ac_ct_CC"; then
1544   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545 echo "${ECHO_T}$ac_ct_CC" >&6
1546 else
1547   echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1549 fi
1550
1551   CC=$ac_ct_CC
1552 else
1553   CC="$ac_cv_prog_CC"
1554 fi
1555
1556 if test -z "$CC"; then
1557   if test -n "$ac_tool_prefix"; then
1558   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1559 set dummy ${ac_tool_prefix}cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_CC+set}" = set; then
1563   echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565   if test -n "$CC"; then
1566   ac_cv_prog_CC="$CC" # Let the user override the test.
1567 else
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571   IFS=$as_save_IFS
1572   test -z "$as_dir" && as_dir=.
1573   for ac_exec_ext in '' $ac_executable_extensions; do
1574   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575     ac_cv_prog_CC="${ac_tool_prefix}cc"
1576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577     break 2
1578   fi
1579 done
1580 done
1581
1582 fi
1583 fi
1584 CC=$ac_cv_prog_CC
1585 if test -n "$CC"; then
1586   echo "$as_me:$LINENO: result: $CC" >&5
1587 echo "${ECHO_T}$CC" >&6
1588 else
1589   echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1591 fi
1592
1593 fi
1594 if test -z "$ac_cv_prog_CC"; then
1595   ac_ct_CC=$CC
1596   # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601   echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603   if test -n "$ac_ct_CC"; then
1604   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   for ac_exec_ext in '' $ac_executable_extensions; do
1612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613     ac_cv_prog_ac_ct_CC="cc"
1614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615     break 2
1616   fi
1617 done
1618 done
1619
1620 fi
1621 fi
1622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623 if test -n "$ac_ct_CC"; then
1624   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625 echo "${ECHO_T}$ac_ct_CC" >&6
1626 else
1627   echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631   CC=$ac_ct_CC
1632 else
1633   CC="$ac_cv_prog_CC"
1634 fi
1635
1636 fi
1637 if test -z "$CC"; then
1638   # Extract the first word of "cc", so it can be a program name with args.
1639 set dummy cc; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_CC+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   if test -n "$CC"; then
1646   ac_cv_prog_CC="$CC" # Let the user override the test.
1647 else
1648   ac_prog_rejected=no
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1651 do
1652   IFS=$as_save_IFS
1653   test -z "$as_dir" && as_dir=.
1654   for ac_exec_ext in '' $ac_executable_extensions; do
1655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1657        ac_prog_rejected=yes
1658        continue
1659      fi
1660     ac_cv_prog_CC="cc"
1661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662     break 2
1663   fi
1664 done
1665 done
1666
1667 if test $ac_prog_rejected = yes; then
1668   # We found a bogon in the path, so make sure we never use it.
1669   set dummy $ac_cv_prog_CC
1670   shift
1671   if test $# != 0; then
1672     # We chose a different compiler from the bogus one.
1673     # However, it has the same basename, so the bogon will be chosen
1674     # first if we set CC to just the basename; use the full file name.
1675     shift
1676     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1677   fi
1678 fi
1679 fi
1680 fi
1681 CC=$ac_cv_prog_CC
1682 if test -n "$CC"; then
1683   echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1685 else
1686   echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1688 fi
1689
1690 fi
1691 if test -z "$CC"; then
1692   if test -n "$ac_tool_prefix"; then
1693   for ac_prog in cl
1694   do
1695     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700   echo $ECHO_N "(cached) $ECHO_C" >&6
1701 else
1702   if test -n "$CC"; then
1703   ac_cv_prog_CC="$CC" # Let the user override the test.
1704 else
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706 for as_dir in $PATH
1707 do
1708   IFS=$as_save_IFS
1709   test -z "$as_dir" && as_dir=.
1710   for ac_exec_ext in '' $ac_executable_extensions; do
1711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714     break 2
1715   fi
1716 done
1717 done
1718
1719 fi
1720 fi
1721 CC=$ac_cv_prog_CC
1722 if test -n "$CC"; then
1723   echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1725 else
1726   echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1728 fi
1729
1730     test -n "$CC" && break
1731   done
1732 fi
1733 if test -z "$CC"; then
1734   ac_ct_CC=$CC
1735   for ac_prog in cl
1736 do
1737   # Extract the first word of "$ac_prog", so it can be a program name with args.
1738 set dummy $ac_prog; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742   echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744   if test -n "$ac_ct_CC"; then
1745   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1746 else
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1748 for as_dir in $PATH
1749 do
1750   IFS=$as_save_IFS
1751   test -z "$as_dir" && as_dir=.
1752   for ac_exec_ext in '' $ac_executable_extensions; do
1753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754     ac_cv_prog_ac_ct_CC="$ac_prog"
1755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1756     break 2
1757   fi
1758 done
1759 done
1760
1761 fi
1762 fi
1763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764 if test -n "$ac_ct_CC"; then
1765   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766 echo "${ECHO_T}$ac_ct_CC" >&6
1767 else
1768   echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1770 fi
1771
1772   test -n "$ac_ct_CC" && break
1773 done
1774
1775   CC=$ac_ct_CC
1776 fi
1777
1778 fi
1779
1780
1781 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1782 See \`config.log' for more details." >&5
1783 echo "$as_me: error: no acceptable C compiler found in \$PATH
1784 See \`config.log' for more details." >&2;}
1785    { (exit 1); exit 1; }; }
1786
1787 # Provide some information about the compiler.
1788 echo "$as_me:$LINENO:" \
1789      "checking for C compiler version" >&5
1790 ac_compiler=`set X $ac_compile; echo $2`
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1792   (eval $ac_compiler --version </dev/null >&5) 2>&5
1793   ac_status=$?
1794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795   (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1797   (eval $ac_compiler -v </dev/null >&5) 2>&5
1798   ac_status=$?
1799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800   (exit $ac_status); }
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1802   (eval $ac_compiler -V </dev/null >&5) 2>&5
1803   ac_status=$?
1804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805   (exit $ac_status); }
1806
1807 cat >conftest.$ac_ext <<_ACEOF
1808 #line $LINENO "configure"
1809 /* confdefs.h.  */
1810 _ACEOF
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h.  */
1814
1815 int
1816 main ()
1817 {
1818
1819   ;
1820   return 0;
1821 }
1822 _ACEOF
1823 ac_clean_files_save=$ac_clean_files
1824 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1825 # Try to create an executable without -o first, disregard a.out.
1826 # It will help us diagnose broken compilers, and finding out an intuition
1827 # of exeext.
1828 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1829 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1830 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1831 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1832   (eval $ac_link_default) 2>&5
1833   ac_status=$?
1834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835   (exit $ac_status); }; then
1836   # Find the output, starting from the most likely.  This scheme is
1837 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1838 # resort.
1839
1840 # Be careful to initialize this variable, since it used to be cached.
1841 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1842 ac_cv_exeext=
1843 # b.out is created by i960 compilers.
1844 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1845 do
1846   test -f "$ac_file" || continue
1847   case $ac_file in
1848     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1849         ;;
1850     conftest.$ac_ext )
1851         # This is the source file.
1852         ;;
1853     [ab].out )
1854         # We found the default executable, but exeext='' is most
1855         # certainly right.
1856         break;;
1857     *.* )
1858         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1859         # FIXME: I believe we export ac_cv_exeext for Libtool,
1860         # but it would be cool to find out if it's true.  Does anybody
1861         # maintain Libtool? --akim.
1862         export ac_cv_exeext
1863         break;;
1864     * )
1865         break;;
1866   esac
1867 done
1868 else
1869   echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1873 See \`config.log' for more details." >&5
1874 echo "$as_me: error: C compiler cannot create executables
1875 See \`config.log' for more details." >&2;}
1876    { (exit 77); exit 77; }; }
1877 fi
1878
1879 ac_exeext=$ac_cv_exeext
1880 echo "$as_me:$LINENO: result: $ac_file" >&5
1881 echo "${ECHO_T}$ac_file" >&6
1882
1883 # Check the compiler produces executables we can run.  If not, either
1884 # the compiler is broken, or we cross compile.
1885 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1886 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1887 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1888 # If not cross compiling, check that we can run a simple program.
1889 if test "$cross_compiling" != yes; then
1890   if { ac_try='./$ac_file'
1891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892   (eval $ac_try) 2>&5
1893   ac_status=$?
1894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895   (exit $ac_status); }; }; then
1896     cross_compiling=no
1897   else
1898     if test "$cross_compiling" = maybe; then
1899         cross_compiling=yes
1900     else
1901         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot run C compiled programs.
1905 If you meant to cross compile, use \`--host'.
1906 See \`config.log' for more details." >&2;}
1907    { (exit 1); exit 1; }; }
1908     fi
1909   fi
1910 fi
1911 echo "$as_me:$LINENO: result: yes" >&5
1912 echo "${ECHO_T}yes" >&6
1913
1914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1915 ac_clean_files=$ac_clean_files_save
1916 # Check the compiler produces executables we can run.  If not, either
1917 # the compiler is broken, or we cross compile.
1918 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1920 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1921 echo "${ECHO_T}$cross_compiling" >&6
1922
1923 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1926   (eval $ac_link) 2>&5
1927   ac_status=$?
1928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929   (exit $ac_status); }; then
1930   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1931 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1932 # work properly (i.e., refer to `conftest.exe'), while it won't with
1933 # `rm'.
1934 for ac_file in conftest.exe conftest conftest.*; do
1935   test -f "$ac_file" || continue
1936   case $ac_file in
1937     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1938     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1939           export ac_cv_exeext
1940           break;;
1941     * ) break;;
1942   esac
1943 done
1944 else
1945   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1946 See \`config.log' for more details." >&5
1947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1948 See \`config.log' for more details." >&2;}
1949    { (exit 1); exit 1; }; }
1950 fi
1951
1952 rm -f conftest$ac_cv_exeext
1953 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1954 echo "${ECHO_T}$ac_cv_exeext" >&6
1955
1956 rm -f conftest.$ac_ext
1957 EXEEXT=$ac_cv_exeext
1958 ac_exeext=$EXEEXT
1959 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1961 if test "${ac_cv_objext+set}" = set; then
1962   echo $ECHO_N "(cached) $ECHO_C" >&6
1963 else
1964   cat >conftest.$ac_ext <<_ACEOF
1965 #line $LINENO "configure"
1966 /* confdefs.h.  */
1967 _ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h.  */
1971
1972 int
1973 main ()
1974 {
1975
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 rm -f conftest.o conftest.obj
1981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982   (eval $ac_compile) 2>&5
1983   ac_status=$?
1984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985   (exit $ac_status); }; then
1986   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1987   case $ac_file in
1988     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1989     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1990        break;;
1991   esac
1992 done
1993 else
1994   echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1998 See \`config.log' for more details." >&5
1999 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2000 See \`config.log' for more details." >&2;}
2001    { (exit 1); exit 1; }; }
2002 fi
2003
2004 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2005 fi
2006 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2007 echo "${ECHO_T}$ac_cv_objext" >&6
2008 OBJEXT=$ac_cv_objext
2009 ac_objext=$OBJEXT
2010 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2011 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2012 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2013   echo $ECHO_N "(cached) $ECHO_C" >&6
2014 else
2015   cat >conftest.$ac_ext <<_ACEOF
2016 #line $LINENO "configure"
2017 /* confdefs.h.  */
2018 _ACEOF
2019 cat confdefs.h >>conftest.$ac_ext
2020 cat >>conftest.$ac_ext <<_ACEOF
2021 /* end confdefs.h.  */
2022
2023 int
2024 main ()
2025 {
2026 #ifndef __GNUC__
2027        choke me
2028 #endif
2029
2030   ;
2031   return 0;
2032 }
2033 _ACEOF
2034 rm -f conftest.$ac_objext
2035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036   (eval $ac_compile) 2>&5
2037   ac_status=$?
2038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039   (exit $ac_status); } &&
2040          { ac_try='test -s conftest.$ac_objext'
2041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2042   (eval $ac_try) 2>&5
2043   ac_status=$?
2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045   (exit $ac_status); }; }; then
2046   ac_compiler_gnu=yes
2047 else
2048   echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_compiler_gnu=no
2052 fi
2053 rm -f conftest.$ac_objext conftest.$ac_ext
2054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2055
2056 fi
2057 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2059 GCC=`test $ac_compiler_gnu = yes && echo yes`
2060 ac_test_CFLAGS=${CFLAGS+set}
2061 ac_save_CFLAGS=$CFLAGS
2062 CFLAGS="-g"
2063 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_g+set}" = set; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   cat >conftest.$ac_ext <<_ACEOF
2069 #line $LINENO "configure"
2070 /* confdefs.h.  */
2071 _ACEOF
2072 cat confdefs.h >>conftest.$ac_ext
2073 cat >>conftest.$ac_ext <<_ACEOF
2074 /* end confdefs.h.  */
2075
2076 int
2077 main ()
2078 {
2079
2080   ;
2081   return 0;
2082 }
2083 _ACEOF
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086   (eval $ac_compile) 2>&5
2087   ac_status=$?
2088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089   (exit $ac_status); } &&
2090          { ac_try='test -s conftest.$ac_objext'
2091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092   (eval $ac_try) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; }; then
2096   ac_cv_prog_cc_g=yes
2097 else
2098   echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2100
2101 ac_cv_prog_cc_g=no
2102 fi
2103 rm -f conftest.$ac_objext conftest.$ac_ext
2104 fi
2105 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2107 if test "$ac_test_CFLAGS" = set; then
2108   CFLAGS=$ac_save_CFLAGS
2109 elif test $ac_cv_prog_cc_g = yes; then
2110   if test "$GCC" = yes; then
2111     CFLAGS="-g -O2"
2112   else
2113     CFLAGS="-g"
2114   fi
2115 else
2116   if test "$GCC" = yes; then
2117     CFLAGS="-O2"
2118   else
2119     CFLAGS=
2120   fi
2121 fi
2122 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2123 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2124 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2125   echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127   ac_cv_prog_cc_stdc=no
2128 ac_save_CC=$CC
2129 cat >conftest.$ac_ext <<_ACEOF
2130 #line $LINENO "configure"
2131 /* confdefs.h.  */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h.  */
2136 #include <stdarg.h>
2137 #include <stdio.h>
2138 #include <sys/types.h>
2139 #include <sys/stat.h>
2140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2141 struct buf { int x; };
2142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2143 static char *e (p, i)
2144      char **p;
2145      int i;
2146 {
2147   return p[i];
2148 }
2149 static char *f (char * (*g) (char **, int), char **p, ...)
2150 {
2151   char *s;
2152   va_list v;
2153   va_start (v,p);
2154   s = g (p, va_arg (v,int));
2155   va_end (v);
2156   return s;
2157 }
2158 int test (int i, double x);
2159 struct s1 {int (*f) (int a);};
2160 struct s2 {int (*f) (double a);};
2161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2162 int argc;
2163 char **argv;
2164 int
2165 main ()
2166 {
2167 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2168   ;
2169   return 0;
2170 }
2171 _ACEOF
2172 # Don't try gcc -ansi; that turns off useful extensions and
2173 # breaks some systems' header files.
2174 # AIX                   -qlanglvl=ansi
2175 # Ultrix and OSF/1      -std1
2176 # HP-UX 10.20 and later -Ae
2177 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2178 # SVR4                  -Xc -D__EXTENSIONS__
2179 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2180 do
2181   CC="$ac_save_CC $ac_arg"
2182   rm -f conftest.$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184   (eval $ac_compile) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); } &&
2188          { ac_try='test -s conftest.$ac_objext'
2189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190   (eval $ac_try) 2>&5
2191   ac_status=$?
2192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193   (exit $ac_status); }; }; then
2194   ac_cv_prog_cc_stdc=$ac_arg
2195 break
2196 else
2197   echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 fi
2201 rm -f conftest.$ac_objext
2202 done
2203 rm -f conftest.$ac_ext conftest.$ac_objext
2204 CC=$ac_save_CC
2205
2206 fi
2207
2208 case "x$ac_cv_prog_cc_stdc" in
2209   x|xno)
2210     echo "$as_me:$LINENO: result: none needed" >&5
2211 echo "${ECHO_T}none needed" >&6 ;;
2212   *)
2213     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2214 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2215     CC="$CC $ac_cv_prog_cc_stdc" ;;
2216 esac
2217
2218 # Some people use a C++ compiler to compile C.  Since we use `exit',
2219 # in C++ we need to declare it.  In case someone uses the same compiler
2220 # for both compiling C and C++ we need to have the C++ compiler decide
2221 # the declaration of exit, since it's the most demanding environment.
2222 cat >conftest.$ac_ext <<_ACEOF
2223 #ifndef __cplusplus
2224   choke me
2225 #endif
2226 _ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229   (eval $ac_compile) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); } &&
2233          { ac_try='test -s conftest.$ac_objext'
2234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2235   (eval $ac_try) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }; }; then
2239   for ac_declaration in \
2240    ''\
2241    '#include <stdlib.h>' \
2242    'extern "C" void std::exit (int) throw (); using std::exit;' \
2243    'extern "C" void std::exit (int); using std::exit;' \
2244    'extern "C" void exit (int) throw ();' \
2245    'extern "C" void exit (int);' \
2246    'void exit (int);'
2247 do
2248   cat >conftest.$ac_ext <<_ACEOF
2249 #line $LINENO "configure"
2250 /* confdefs.h.  */
2251 _ACEOF
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h.  */
2255 #include <stdlib.h>
2256 $ac_declaration
2257 int
2258 main ()
2259 {
2260 exit (42);
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267   (eval $ac_compile) 2>&5
2268   ac_status=$?
2269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270   (exit $ac_status); } &&
2271          { ac_try='test -s conftest.$ac_objext'
2272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273   (eval $ac_try) 2>&5
2274   ac_status=$?
2275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276   (exit $ac_status); }; }; then
2277   :
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 continue
2283 fi
2284 rm -f conftest.$ac_objext conftest.$ac_ext
2285   cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2287 /* confdefs.h.  */
2288 _ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h.  */
2292 $ac_declaration
2293 int
2294 main ()
2295 {
2296 exit (42);
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303   (eval $ac_compile) 2>&5
2304   ac_status=$?
2305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306   (exit $ac_status); } &&
2307          { ac_try='test -s conftest.$ac_objext'
2308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309   (eval $ac_try) 2>&5
2310   ac_status=$?
2311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312   (exit $ac_status); }; }; then
2313   break
2314 else
2315   echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2317
2318 fi
2319 rm -f conftest.$ac_objext conftest.$ac_ext
2320 done
2321 rm -f conftest*
2322 if test -n "$ac_declaration"; then
2323   echo '#ifdef __cplusplus' >>confdefs.h
2324   echo $ac_declaration      >>confdefs.h
2325   echo '#endif'             >>confdefs.h
2326 fi
2327
2328 else
2329   echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331
2332 fi
2333 rm -f conftest.$ac_objext conftest.$ac_ext
2334 ac_ext=c
2335 ac_cpp='$CPP $CPPFLAGS'
2336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2339
2340 ac_ext=cc
2341 ac_cpp='$CXXCPP $CPPFLAGS'
2342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2345 if test -n "$ac_tool_prefix"; then
2346   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2347   do
2348     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2350 echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_prog_CXX+set}" = set; then
2353   echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355   if test -n "$CXX"; then
2356   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2357 else
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367     break 2
2368   fi
2369 done
2370 done
2371
2372 fi
2373 fi
2374 CXX=$ac_cv_prog_CXX
2375 if test -n "$CXX"; then
2376   echo "$as_me:$LINENO: result: $CXX" >&5
2377 echo "${ECHO_T}$CXX" >&6
2378 else
2379   echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2381 fi
2382
2383     test -n "$CXX" && break
2384   done
2385 fi
2386 if test -z "$CXX"; then
2387   ac_ct_CXX=$CXX
2388   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2389 do
2390   # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   if test -n "$ac_ct_CXX"; then
2398   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403   IFS=$as_save_IFS
2404   test -z "$as_dir" && as_dir=.
2405   for ac_exec_ext in '' $ac_executable_extensions; do
2406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407     ac_cv_prog_ac_ct_CXX="$ac_prog"
2408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409     break 2
2410   fi
2411 done
2412 done
2413
2414 fi
2415 fi
2416 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2417 if test -n "$ac_ct_CXX"; then
2418   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2419 echo "${ECHO_T}$ac_ct_CXX" >&6
2420 else
2421   echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2423 fi
2424
2425   test -n "$ac_ct_CXX" && break
2426 done
2427 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2428
2429   CXX=$ac_ct_CXX
2430 fi
2431
2432
2433 # Provide some information about the compiler.
2434 echo "$as_me:$LINENO:" \
2435      "checking for C++ compiler version" >&5
2436 ac_compiler=`set X $ac_compile; echo $2`
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2438   (eval $ac_compiler --version </dev/null >&5) 2>&5
2439   ac_status=$?
2440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }
2442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2443   (eval $ac_compiler -v </dev/null >&5) 2>&5
2444   ac_status=$?
2445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446   (exit $ac_status); }
2447 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2448   (eval $ac_compiler -V </dev/null >&5) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }
2452
2453 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2454 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2456   echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458   cat >conftest.$ac_ext <<_ACEOF
2459 #line $LINENO "configure"
2460 /* confdefs.h.  */
2461 _ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h.  */
2465
2466 int
2467 main ()
2468 {
2469 #ifndef __GNUC__
2470        choke me
2471 #endif
2472
2473   ;
2474   return 0;
2475 }
2476 _ACEOF
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479   (eval $ac_compile) 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); } &&
2483          { ac_try='test -s conftest.$ac_objext'
2484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485   (eval $ac_try) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489   ac_compiler_gnu=yes
2490 else
2491   echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493
2494 ac_compiler_gnu=no
2495 fi
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2497 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2498
2499 fi
2500 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2501 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2502 GXX=`test $ac_compiler_gnu = yes && echo yes`
2503 ac_test_CXXFLAGS=${CXXFLAGS+set}
2504 ac_save_CXXFLAGS=$CXXFLAGS
2505 CXXFLAGS="-g"
2506 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2507 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2508 if test "${ac_cv_prog_cxx_g+set}" = set; then
2509   echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511   cat >conftest.$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2513 /* confdefs.h.  */
2514 _ACEOF
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h.  */
2518
2519 int
2520 main ()
2521 {
2522
2523   ;
2524   return 0;
2525 }
2526 _ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529   (eval $ac_compile) 2>&5
2530   ac_status=$?
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } &&
2533          { ac_try='test -s conftest.$ac_objext'
2534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535   (eval $ac_try) 2>&5
2536   ac_status=$?
2537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538   (exit $ac_status); }; }; then
2539   ac_cv_prog_cxx_g=yes
2540 else
2541   echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2543
2544 ac_cv_prog_cxx_g=no
2545 fi
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2547 fi
2548 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2549 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2550 if test "$ac_test_CXXFLAGS" = set; then
2551   CXXFLAGS=$ac_save_CXXFLAGS
2552 elif test $ac_cv_prog_cxx_g = yes; then
2553   if test "$GXX" = yes; then
2554     CXXFLAGS="-g -O2"
2555   else
2556     CXXFLAGS="-g"
2557   fi
2558 else
2559   if test "$GXX" = yes; then
2560     CXXFLAGS="-O2"
2561   else
2562     CXXFLAGS=
2563   fi
2564 fi
2565 for ac_declaration in \
2566    ''\
2567    '#include <stdlib.h>' \
2568    'extern "C" void std::exit (int) throw (); using std::exit;' \
2569    'extern "C" void std::exit (int); using std::exit;' \
2570    'extern "C" void exit (int) throw ();' \
2571    'extern "C" void exit (int);' \
2572    'void exit (int);'
2573 do
2574   cat >conftest.$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2576 /* confdefs.h.  */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h.  */
2581 #include <stdlib.h>
2582 $ac_declaration
2583 int
2584 main ()
2585 {
2586 exit (42);
2587   ;
2588   return 0;
2589 }
2590 _ACEOF
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593   (eval $ac_compile) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); } &&
2597          { ac_try='test -s conftest.$ac_objext'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; }; then
2603   :
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2607
2608 continue
2609 fi
2610 rm -f conftest.$ac_objext conftest.$ac_ext
2611   cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618 $ac_declaration
2619 int
2620 main ()
2621 {
2622 exit (42);
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629   (eval $ac_compile) 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); } &&
2633          { ac_try='test -s conftest.$ac_objext'
2634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635   (eval $ac_try) 2>&5
2636   ac_status=$?
2637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638   (exit $ac_status); }; }; then
2639   break
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 fi
2645 rm -f conftest.$ac_objext conftest.$ac_ext
2646 done
2647 rm -f conftest*
2648 if test -n "$ac_declaration"; then
2649   echo '#ifdef __cplusplus' >>confdefs.h
2650   echo $ac_declaration      >>confdefs.h
2651   echo '#endif'             >>confdefs.h
2652 fi
2653
2654 ac_ext=c
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660 if test "x$CC" != xcc; then
2661   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2662 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2663 else
2664   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2665 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2666 fi
2667 set dummy $CC; ac_cc=`echo $2 |
2668                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2669 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   cat >conftest.$ac_ext <<_ACEOF
2673 #line $LINENO "configure"
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679
2680 int
2681 main ()
2682 {
2683
2684   ;
2685   return 0;
2686 }
2687 _ACEOF
2688 # Make sure it works both with $CC and with simple cc.
2689 # We do the test twice because some compilers refuse to overwrite an
2690 # existing .o file with -o, though they will create one.
2691 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2692 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693   (eval $ac_try) 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); } &&
2697    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); };
2702 then
2703   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2704   if test "x$CC" != xcc; then
2705     # Test first that cc exists at all.
2706     if { ac_try='cc -c conftest.$ac_ext >&5'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; }; then
2712       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2713       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719   (eval $ac_try) 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); };
2723       then
2724         # cc works too.
2725         :
2726       else
2727         # cc exists but doesn't like -o.
2728         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2729       fi
2730     fi
2731   fi
2732 else
2733   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2734 fi
2735 rm -f conftest*
2736
2737 fi
2738 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2739   echo "$as_me:$LINENO: result: yes" >&5
2740 echo "${ECHO_T}yes" >&6
2741 else
2742   echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2744
2745 cat >>confdefs.h <<\_ACEOF
2746 #define NO_MINUS_C_MINUS_O 1
2747 _ACEOF
2748
2749 fi
2750
2751 ac_ext=c
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2758 # On Suns, sometimes $CPP names a directory.
2759 if test -n "$CPP" && test -d "$CPP"; then
2760   CPP=
2761 fi
2762 if test -z "$CPP"; then
2763   if test "${ac_cv_prog_CPP+set}" = set; then
2764   echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766       # Double quotes because CPP needs to be expanded
2767     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2768     do
2769       ac_preproc_ok=false
2770 for ac_c_preproc_warn_flag in '' yes
2771 do
2772   # Use a header file that comes with gcc, so configuring glibc
2773   # with a fresh cross-compiler works.
2774   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2775   # <limits.h> exists even on freestanding compilers.
2776   # On the NeXT, cc -E runs the code through the compiler's parser,
2777   # not just through cpp. "Syntax error" is here to catch this case.
2778   cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785 #ifdef __STDC__
2786 # include <limits.h>
2787 #else
2788 # include <assert.h>
2789 #endif
2790                      Syntax error
2791 _ACEOF
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2794   ac_status=$?
2795   grep -v '^ *+' conftest.er1 >conftest.err
2796   rm -f conftest.er1
2797   cat conftest.err >&5
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); } >/dev/null; then
2800   if test -s conftest.err; then
2801     ac_cpp_err=$ac_c_preproc_warn_flag
2802   else
2803     ac_cpp_err=
2804   fi
2805 else
2806   ac_cpp_err=yes
2807 fi
2808 if test -z "$ac_cpp_err"; then
2809   :
2810 else
2811   echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814   # Broken: fails on valid input.
2815 continue
2816 fi
2817 rm -f conftest.err conftest.$ac_ext
2818
2819   # OK, works on sane cases.  Now check whether non-existent headers
2820   # can be detected and how.
2821   cat >conftest.$ac_ext <<_ACEOF
2822 #line $LINENO "configure"
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828 #include <ac_nonexistent.h>
2829 _ACEOF
2830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2832   ac_status=$?
2833   grep -v '^ *+' conftest.er1 >conftest.err
2834   rm -f conftest.er1
2835   cat conftest.err >&5
2836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837   (exit $ac_status); } >/dev/null; then
2838   if test -s conftest.err; then
2839     ac_cpp_err=$ac_c_preproc_warn_flag
2840   else
2841     ac_cpp_err=
2842   fi
2843 else
2844   ac_cpp_err=yes
2845 fi
2846 if test -z "$ac_cpp_err"; then
2847   # Broken: success on invalid input.
2848 continue
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853   # Passes both tests.
2854 ac_preproc_ok=:
2855 break
2856 fi
2857 rm -f conftest.err conftest.$ac_ext
2858
2859 done
2860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2861 rm -f conftest.err conftest.$ac_ext
2862 if $ac_preproc_ok; then
2863   break
2864 fi
2865
2866     done
2867     ac_cv_prog_CPP=$CPP
2868
2869 fi
2870   CPP=$ac_cv_prog_CPP
2871 else
2872   ac_cv_prog_CPP=$CPP
2873 fi
2874 echo "$as_me:$LINENO: result: $CPP" >&5
2875 echo "${ECHO_T}$CPP" >&6
2876 ac_preproc_ok=false
2877 for ac_c_preproc_warn_flag in '' yes
2878 do
2879   # Use a header file that comes with gcc, so configuring glibc
2880   # with a fresh cross-compiler works.
2881   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2882   # <limits.h> exists even on freestanding compilers.
2883   # On the NeXT, cc -E runs the code through the compiler's parser,
2884   # not just through cpp. "Syntax error" is here to catch this case.
2885   cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2887 /* confdefs.h.  */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h.  */
2892 #ifdef __STDC__
2893 # include <limits.h>
2894 #else
2895 # include <assert.h>
2896 #endif
2897                      Syntax error
2898 _ACEOF
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } >/dev/null; then
2907   if test -s conftest.err; then
2908     ac_cpp_err=$ac_c_preproc_warn_flag
2909   else
2910     ac_cpp_err=
2911   fi
2912 else
2913   ac_cpp_err=yes
2914 fi
2915 if test -z "$ac_cpp_err"; then
2916   :
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921   # Broken: fails on valid input.
2922 continue
2923 fi
2924 rm -f conftest.err conftest.$ac_ext
2925
2926   # OK, works on sane cases.  Now check whether non-existent headers
2927   # can be detected and how.
2928   cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935 #include <ac_nonexistent.h>
2936 _ACEOF
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2939   ac_status=$?
2940   grep -v '^ *+' conftest.er1 >conftest.err
2941   rm -f conftest.er1
2942   cat conftest.err >&5
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); } >/dev/null; then
2945   if test -s conftest.err; then
2946     ac_cpp_err=$ac_c_preproc_warn_flag
2947   else
2948     ac_cpp_err=
2949   fi
2950 else
2951   ac_cpp_err=yes
2952 fi
2953 if test -z "$ac_cpp_err"; then
2954   # Broken: success on invalid input.
2955 continue
2956 else
2957   echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960   # Passes both tests.
2961 ac_preproc_ok=:
2962 break
2963 fi
2964 rm -f conftest.err conftest.$ac_ext
2965
2966 done
2967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2968 rm -f conftest.err conftest.$ac_ext
2969 if $ac_preproc_ok; then
2970   :
2971 else
2972   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2975 See \`config.log' for more details." >&2;}
2976    { (exit 1); exit 1; }; }
2977 fi
2978
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984
2985
2986 echo "$as_me:$LINENO: checking for egrep" >&5
2987 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2988 if test "${ac_cv_prog_egrep+set}" = set; then
2989   echo $ECHO_N "(cached) $ECHO_C" >&6
2990 else
2991   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2992     then ac_cv_prog_egrep='grep -E'
2993     else ac_cv_prog_egrep='egrep'
2994     fi
2995 fi
2996 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2997 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2998  EGREP=$ac_cv_prog_egrep
2999
3000
3001 if test $ac_cv_c_compiler_gnu = yes; then
3002     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3003 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3004 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3005   echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007     ac_pattern="Autoconf.*'x'"
3008   cat >conftest.$ac_ext <<_ACEOF
3009 #line $LINENO "configure"
3010 /* confdefs.h.  */
3011 _ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h.  */
3015 #include <sgtty.h>
3016 Autoconf TIOCGETP
3017 _ACEOF
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3020   ac_cv_prog_gcc_traditional=yes
3021 else
3022   ac_cv_prog_gcc_traditional=no
3023 fi
3024 rm -f conftest*
3025
3026
3027   if test $ac_cv_prog_gcc_traditional = no; then
3028     cat >conftest.$ac_ext <<_ACEOF
3029 #line $LINENO "configure"
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035 #include <termio.h>
3036 Autoconf TCGETA
3037 _ACEOF
3038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3039   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3040   ac_cv_prog_gcc_traditional=yes
3041 fi
3042 rm -f conftest*
3043
3044   fi
3045 fi
3046 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3047 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3048   if test $ac_cv_prog_gcc_traditional = yes; then
3049     CC="$CC -traditional"
3050   fi
3051 fi
3052
3053 if test x$CC = xgcc
3054 then
3055    cat >>confdefs.h <<\_ACEOF
3056 #define HAVE_GCC 1
3057 _ACEOF
3058
3059 fi
3060
3061 # Find a good install program.  We prefer a C program (faster),
3062 # so one script is as good as another.  But avoid the broken or
3063 # incompatible versions:
3064 # SysV /etc/install, /usr/sbin/install
3065 # SunOS /usr/etc/install
3066 # IRIX /sbin/install
3067 # AIX /bin/install
3068 # AmigaOS /C/install, which installs bootblocks on floppy discs
3069 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3072 # ./install, which can be erroneously created by make from ./install.sh.
3073 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3074 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3075 if test -z "$INSTALL"; then
3076 if test "${ac_cv_path_install+set}" = set; then
3077   echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH
3081 do
3082   IFS=$as_save_IFS
3083   test -z "$as_dir" && as_dir=.
3084   # Account for people who put trailing slashes in PATH elements.
3085 case $as_dir/ in
3086   ./ | .// | /cC/* | \
3087   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3088   /usr/ucb/* ) ;;
3089   *)
3090     # OSF1 and SCO ODT 3.0 have their own names for install.
3091     # Don't use installbsd from OSF since it installs stuff as root
3092     # by default.
3093     for ac_prog in ginstall scoinst install; do
3094       for ac_exec_ext in '' $ac_executable_extensions; do
3095         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3096           if test $ac_prog = install &&
3097             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098             # AIX install.  It has an incompatible calling convention.
3099             :
3100           elif test $ac_prog = install &&
3101             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3102             # program-specific install script used by HP pwplus--don't use.
3103             :
3104           else
3105             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3106             break 3
3107           fi
3108         fi
3109       done
3110     done
3111     ;;
3112 esac
3113 done
3114
3115
3116 fi
3117   if test "${ac_cv_path_install+set}" = set; then
3118     INSTALL=$ac_cv_path_install
3119   else
3120     # As a last resort, use the slow shell script.  We don't cache a
3121     # path for INSTALL within a source directory, because that will
3122     # break other packages using the cache if that directory is
3123     # removed, or if the path is relative.
3124     INSTALL=$ac_install_sh
3125   fi
3126 fi
3127 echo "$as_me:$LINENO: result: $INSTALL" >&5
3128 echo "${ECHO_T}$INSTALL" >&6
3129
3130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3131 # It thinks the first close brace ends the variable substitution.
3132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3133
3134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3135
3136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3137
3138 if test -n "$ac_tool_prefix"; then
3139   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_RANLIB+set}" = set; then
3144   echo $ECHO_N "(cached) $ECHO_C" >&6
3145 else
3146   if test -n "$RANLIB"; then
3147   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152   IFS=$as_save_IFS
3153   test -z "$as_dir" && as_dir=.
3154   for ac_exec_ext in '' $ac_executable_extensions; do
3155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161 done
3162
3163 fi
3164 fi
3165 RANLIB=$ac_cv_prog_RANLIB
3166 if test -n "$RANLIB"; then
3167   echo "$as_me:$LINENO: result: $RANLIB" >&5
3168 echo "${ECHO_T}$RANLIB" >&6
3169 else
3170   echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3172 fi
3173
3174 fi
3175 if test -z "$ac_cv_prog_RANLIB"; then
3176   ac_ct_RANLIB=$RANLIB
3177   # Extract the first word of "ranlib", so it can be a program name with args.
3178 set dummy ranlib; ac_word=$2
3179 echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3182   echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184   if test -n "$ac_ct_RANLIB"; then
3185   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190   IFS=$as_save_IFS
3191   test -z "$as_dir" && as_dir=.
3192   for ac_exec_ext in '' $ac_executable_extensions; do
3193   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194     ac_cv_prog_ac_ct_RANLIB="ranlib"
3195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196     break 2
3197   fi
3198 done
3199 done
3200
3201   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3202 fi
3203 fi
3204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3205 if test -n "$ac_ct_RANLIB"; then
3206   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3207 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3208 else
3209   echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3211 fi
3212
3213   RANLIB=$ac_ct_RANLIB
3214 else
3215   RANLIB="$ac_cv_prog_RANLIB"
3216 fi
3217
3218 # Extract the first word of "mv", so it can be a program name with args.
3219 set dummy mv; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_path_MV+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   case $MV in
3226   [\\/]* | ?:[\\/]*)
3227   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3228   ;;
3229   *)
3230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233   IFS=$as_save_IFS
3234   test -z "$as_dir" && as_dir=.
3235   for ac_exec_ext in '' $ac_executable_extensions; do
3236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239     break 2
3240   fi
3241 done
3242 done
3243
3244   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3245   ;;
3246 esac
3247 fi
3248 MV=$ac_cv_path_MV
3249
3250 if test -n "$MV"; then
3251   echo "$as_me:$LINENO: result: $MV" >&5
3252 echo "${ECHO_T}$MV" >&6
3253 else
3254   echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6
3256 fi
3257
3258 # Extract the first word of "rm", so it can be a program name with args.
3259 set dummy rm; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_path_RM+set}" = set; then
3263   echo $ECHO_N "(cached) $ECHO_C" >&6
3264 else
3265   case $RM in
3266   [\\/]* | ?:[\\/]*)
3267   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3268   ;;
3269   *)
3270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3271 for as_dir in $PATH
3272 do
3273   IFS=$as_save_IFS
3274   test -z "$as_dir" && as_dir=.
3275   for ac_exec_ext in '' $ac_executable_extensions; do
3276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3279     break 2
3280   fi
3281 done
3282 done
3283
3284   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3285   ;;
3286 esac
3287 fi
3288 RM=$ac_cv_path_RM
3289
3290 if test -n "$RM"; then
3291   echo "$as_me:$LINENO: result: $RM" >&5
3292 echo "${ECHO_T}$RM" >&6
3293 else
3294   echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3296 fi
3297
3298 # Extract the first word of "cp", so it can be a program name with args.
3299 set dummy cp; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_CP+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   case $CP in
3306   [\\/]* | ?:[\\/]*)
3307   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3308   ;;
3309   *)
3310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH
3312 do
3313   IFS=$as_save_IFS
3314   test -z "$as_dir" && as_dir=.
3315   for ac_exec_ext in '' $ac_executable_extensions; do
3316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3319     break 2
3320   fi
3321 done
3322 done
3323
3324   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3325   ;;
3326 esac
3327 fi
3328 CP=$ac_cv_path_CP
3329
3330 if test -n "$CP"; then
3331   echo "$as_me:$LINENO: result: $CP" >&5
3332 echo "${ECHO_T}$CP" >&6
3333 else
3334   echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3336 fi
3337
3338 # Extract the first word of "sed", so it can be a program name with args.
3339 set dummy sed; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_path_SED+set}" = set; then
3343   echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345   case $SED in
3346   [\\/]* | ?:[\\/]*)
3347   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3348   ;;
3349   *)
3350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353   IFS=$as_save_IFS
3354   test -z "$as_dir" && as_dir=.
3355   for ac_exec_ext in '' $ac_executable_extensions; do
3356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359     break 2
3360   fi
3361 done
3362 done
3363
3364   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3365   ;;
3366 esac
3367 fi
3368 SED=$ac_cv_path_SED
3369
3370 if test -n "$SED"; then
3371   echo "$as_me:$LINENO: result: $SED" >&5
3372 echo "${ECHO_T}$SED" >&6
3373 else
3374   echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3376 fi
3377
3378 # Extract the first word of "awk", so it can be a program name with args.
3379 set dummy awk; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_path_AWK+set}" = set; then
3383   echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385   case $AWK in
3386   [\\/]* | ?:[\\/]*)
3387   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3388   ;;
3389   *)
3390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3392 do
3393   IFS=$as_save_IFS
3394   test -z "$as_dir" && as_dir=.
3395   for ac_exec_ext in '' $ac_executable_extensions; do
3396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399     break 2
3400   fi
3401 done
3402 done
3403
3404   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3405   ;;
3406 esac
3407 fi
3408 AWK=$ac_cv_path_AWK
3409
3410 if test -n "$AWK"; then
3411   echo "$as_me:$LINENO: result: $AWK" >&5
3412 echo "${ECHO_T}$AWK" >&6
3413 else
3414   echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3416 fi
3417
3418 # Extract the first word of "echo", so it can be a program name with args.
3419 set dummy echo; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_ECHO+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   case $ECHO in
3426   [\\/]* | ?:[\\/]*)
3427   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3428   ;;
3429   *)
3430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443
3444   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3445   ;;
3446 esac
3447 fi
3448 ECHO=$ac_cv_path_ECHO
3449
3450 if test -n "$ECHO"; then
3451   echo "$as_me:$LINENO: result: $ECHO" >&5
3452 echo "${ECHO_T}$ECHO" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 fi
3457
3458 # Extract the first word of "cmp", so it can be a program name with args.
3459 set dummy cmp; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_CMP+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   case $CMP in
3466   [\\/]* | ?:[\\/]*)
3467   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3468   ;;
3469   *)
3470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483
3484   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3485   ;;
3486 esac
3487 fi
3488 CMP=$ac_cv_path_CMP
3489
3490 if test -n "$CMP"; then
3491   echo "$as_me:$LINENO: result: $CMP" >&5
3492 echo "${ECHO_T}$CMP" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498 # Extract the first word of "tbl", so it can be a program name with args.
3499 set dummy tbl; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_TBL+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   case $TBL in
3506   [\\/]* | ?:[\\/]*)
3507   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3508   ;;
3509   *)
3510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523
3524   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3525   ;;
3526 esac
3527 fi
3528 TBL=$ac_cv_path_TBL
3529
3530 if test -n "$TBL"; then
3531   echo "$as_me:$LINENO: result: $TBL" >&5
3532 echo "${ECHO_T}$TBL" >&6
3533 else
3534   echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 fi
3537
3538 # Extract the first word of "ar", so it can be a program name with args.
3539 set dummy ar; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_AR+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   case $AR in
3546   [\\/]* | ?:[\\/]*)
3547   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3548   ;;
3549   *)
3550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555   for ac_exec_ext in '' $ac_executable_extensions; do
3556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562 done
3563
3564   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3565   ;;
3566 esac
3567 fi
3568 AR=$ac_cv_path_AR
3569
3570 if test -n "$AR"; then
3571   echo "$as_me:$LINENO: result: $AR" >&5
3572 echo "${ECHO_T}$AR" >&6
3573 else
3574   echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578 # Extract the first word of "openssl", so it can be a program name with args.
3579 set dummy openssl; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_OPENSSL+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   case $OPENSSL in
3586   [\\/]* | ?:[\\/]*)
3587   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3588   ;;
3589   *)
3590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3605   ;;
3606 esac
3607 fi
3608 OPENSSL=$ac_cv_path_OPENSSL
3609
3610 if test -n "$OPENSSL"; then
3611   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3612 echo "${ECHO_T}$OPENSSL" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618 # Extract the first word of "mtx", so it can be a program name with args.
3619 set dummy mtx; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_MTX+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   case $MTX in
3626   [\\/]* | ?:[\\/]*)
3627   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3628   ;;
3629   *)
3630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643
3644   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3645   ;;
3646 esac
3647 fi
3648 MTX=$ac_cv_path_MTX
3649
3650 if test -n "$MTX"; then
3651   echo "$as_me:$LINENO: result: $MTX" >&5
3652 echo "${ECHO_T}$MTX" >&6
3653 else
3654   echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 fi
3657
3658 # Extract the first word of "pkg-config", so it can be a program name with args.
3659 set dummy pkg-config; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   case $PKGCONFIG in
3666   [\\/]* | ?:[\\/]*)
3667   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3668   ;;
3669   *)
3670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683
3684   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3685   ;;
3686 esac
3687 fi
3688 PKGCONFIG=$ac_cv_path_PKGCONFIG
3689
3690 if test -n "$PKGCONFIG"; then
3691   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3692 echo "${ECHO_T}$PKGCONFIG" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698 # Extract the first word of "wx-config", so it can be a program name with args.
3699 set dummy wx-config; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   case $WXCONFIG in
3706   [\\/]* | ?:[\\/]*)
3707   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3708   ;;
3709   *)
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3725   ;;
3726 esac
3727 fi
3728 WXCONFIG=$ac_cv_path_WXCONFIG
3729
3730 if test -n "$WXCONFIG"; then
3731   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3732 echo "${ECHO_T}$WXCONFIG" >&6
3733 else
3734   echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738
3739 test -n "$ARFLAG" || ARFLAGS="cr"
3740
3741
3742 MAKE_SHELL=/bin/sh
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752 # Make sure we can run config.sub.
3753 $ac_config_sub sun4 >/dev/null 2>&1 ||
3754   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3755 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3756    { (exit 1); exit 1; }; }
3757
3758 echo "$as_me:$LINENO: checking build system type" >&5
3759 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3760 if test "${ac_cv_build+set}" = set; then
3761   echo $ECHO_N "(cached) $ECHO_C" >&6
3762 else
3763   ac_cv_build_alias=$build_alias
3764 test -z "$ac_cv_build_alias" &&
3765   ac_cv_build_alias=`$ac_config_guess`
3766 test -z "$ac_cv_build_alias" &&
3767   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3768 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3769    { (exit 1); exit 1; }; }
3770 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3771   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3772 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3773    { (exit 1); exit 1; }; }
3774
3775 fi
3776 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3777 echo "${ECHO_T}$ac_cv_build" >&6
3778 build=$ac_cv_build
3779 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3780 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3781 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3782
3783
3784
3785 echo "$as_me:$LINENO: checking host system type" >&5
3786 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3787 if test "${ac_cv_host+set}" = set; then
3788   echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790   ac_cv_host_alias=$host_alias
3791 test -z "$ac_cv_host_alias" &&
3792   ac_cv_host_alias=$ac_cv_build_alias
3793 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3794   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3795 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3796    { (exit 1); exit 1; }; }
3797
3798 fi
3799 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3800 echo "${ECHO_T}$ac_cv_host" >&6
3801 host=$ac_cv_host
3802 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3803 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3804 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3805
3806
3807 case $host_os in
3808   *cygwin* ) CYGWIN=yes;;
3809          * ) CYGWIN=no;;
3810 esac
3811
3812 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3813 then
3814
3815
3816 if $TRUEPRG; then
3817   HAVE_SUN_OS_TRUE=
3818   HAVE_SUN_OS_FALSE='#'
3819 else
3820   HAVE_SUN_OS_TRUE='#'
3821   HAVE_SUN_OS_FALSE=
3822 fi
3823         cat >>confdefs.h <<\_ACEOF
3824 #define HAVE_SUN_OS 1
3825 _ACEOF
3826
3827 else
3828
3829
3830 if $FALSEPRG; then
3831   HAVE_SUN_OS_TRUE=
3832   HAVE_SUN_OS_FALSE='#'
3833 else
3834   HAVE_SUN_OS_TRUE='#'
3835   HAVE_SUN_OS_FALSE=
3836 fi
3837 fi
3838
3839 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3840 then
3841
3842
3843 if $TRUEPRG; then
3844   HAVE_OSF1_OS_TRUE=
3845   HAVE_OSF1_OS_FALSE='#'
3846 else
3847   HAVE_OSF1_OS_TRUE='#'
3848   HAVE_OSF1_OS_FALSE=
3849 fi
3850         cat >>confdefs.h <<\_ACEOF
3851 #define HAVE_OSF1_OS 1
3852 _ACEOF
3853
3854 else
3855
3856
3857 if $FALSEPRG; then
3858   HAVE_OSF1_OS_TRUE=
3859   HAVE_OSF1_OS_FALSE='#'
3860 else
3861   HAVE_OSF1_OS_TRUE='#'
3862   HAVE_OSF1_OS_FALSE=
3863 fi
3864 fi
3865
3866 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3867 then
3868
3869
3870 if $TRUEPRG; then
3871   HAVE_AIX_OS_TRUE=
3872   HAVE_AIX_OS_FALSE='#'
3873 else
3874   HAVE_AIX_OS_TRUE='#'
3875   HAVE_AIX_OS_FALSE=
3876 fi
3877         cat >>confdefs.h <<\_ACEOF
3878 #define HAVE_AIX_OS 1
3879 _ACEOF
3880
3881 else
3882
3883
3884 if $FALSEPRG; then
3885   HAVE_AIX_OS_TRUE=
3886   HAVE_AIX_OS_FALSE='#'
3887 else
3888   HAVE_AIX_OS_TRUE='#'
3889   HAVE_AIX_OS_FALSE=
3890 fi
3891 fi
3892
3893 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3894 then
3895
3896
3897 if $TRUEPRG; then
3898   HAVE_HPUX_OS_TRUE=
3899   HAVE_HPUX_OS_FALSE='#'
3900 else
3901   HAVE_HPUX_OS_TRUE='#'
3902   HAVE_HPUX_OS_FALSE=
3903 fi
3904         cat >>confdefs.h <<\_ACEOF
3905 #define HAVE_HPUX_OS 1
3906 _ACEOF
3907
3908 else
3909
3910
3911 if $FALSEPRG; then
3912   HAVE_HPUX_OS_TRUE=
3913   HAVE_HPUX_OS_FALSE='#'
3914 else
3915   HAVE_HPUX_OS_TRUE='#'
3916   HAVE_HPUX_OS_FALSE=
3917 fi
3918 fi
3919
3920 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3921 then
3922
3923
3924 if $TRUEPRG; then
3925   HAVE_LINUX_OS_TRUE=
3926   HAVE_LINUX_OS_FALSE='#'
3927 else
3928   HAVE_LINUX_OS_TRUE='#'
3929   HAVE_LINUX_OS_FALSE=
3930 fi
3931         cat >>confdefs.h <<\_ACEOF
3932 #define HAVE_LINUX_OS 1
3933 _ACEOF
3934
3935 else
3936
3937
3938 if $FALSEPRG; then
3939   HAVE_LINUX_OS_TRUE=
3940   HAVE_LINUX_OS_FALSE='#'
3941 else
3942   HAVE_LINUX_OS_TRUE='#'
3943   HAVE_LINUX_OS_FALSE=
3944 fi
3945 fi
3946
3947 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3948 then
3949
3950
3951 if $TRUEPRG; then
3952   HAVE_FREEBSD_OS_TRUE=
3953   HAVE_FREEBSD_OS_FALSE='#'
3954 else
3955   HAVE_FREEBSD_OS_TRUE='#'
3956   HAVE_FREEBSD_OS_FALSE=
3957 fi
3958         cat >>confdefs.h <<\_ACEOF
3959 #define HAVE_FREEBSD_OS 1
3960 _ACEOF
3961
3962 else
3963
3964
3965 if $FALSEPRG; then
3966   HAVE_FREEBSD_OS_TRUE=
3967   HAVE_FREEBSD_OS_FALSE='#'
3968 else
3969   HAVE_FREEBSD_OS_TRUE='#'
3970   HAVE_FREEBSD_OS_FALSE=
3971 fi
3972 fi
3973
3974 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3975 then
3976
3977
3978 if $TRUEPRG; then
3979   HAVE_NETBSD_OS_TRUE=
3980   HAVE_NETBSD_OS_FALSE='#'
3981 else
3982   HAVE_NETBSD_OS_TRUE='#'
3983   HAVE_NETBSD_OS_FALSE=
3984 fi
3985         cat >>confdefs.h <<\_ACEOF
3986 #define HAVE_NETBSD_OS 1
3987 _ACEOF
3988
3989 else
3990
3991
3992 if $FALSEPRG; then
3993   HAVE_NETBSD_OS_TRUE=
3994   HAVE_NETBSD_OS_FALSE='#'
3995 else
3996   HAVE_NETBSD_OS_TRUE='#'
3997   HAVE_NETBSD_OS_FALSE=
3998 fi
3999 fi
4000
4001 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4002 then
4003
4004
4005 if $TRUEPRG; then
4006   HAVE_OPENBSD_OS_TRUE=
4007   HAVE_OPENBSD_OS_FALSE='#'
4008 else
4009   HAVE_OPENBSD_OS_TRUE='#'
4010   HAVE_OPENBSD_OS_FALSE=
4011 fi
4012         cat >>confdefs.h <<\_ACEOF
4013 #define HAVE_OPENBSD_OS 1
4014 _ACEOF
4015
4016 else
4017
4018
4019 if $FALSEPRG; then
4020   HAVE_OPENBSD_OS_TRUE=
4021   HAVE_OPENBSD_OS_FALSE='#'
4022 else
4023   HAVE_OPENBSD_OS_TRUE='#'
4024   HAVE_OPENBSD_OS_FALSE=
4025 fi
4026 fi
4027
4028 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4029 then
4030
4031
4032 if $TRUEPRG; then
4033   HAVE_BSDI_OS_TRUE=
4034   HAVE_BSDI_OS_FALSE='#'
4035 else
4036   HAVE_BSDI_OS_TRUE='#'
4037   HAVE_BSDI_OS_FALSE=
4038 fi
4039         cat >>confdefs.h <<\_ACEOF
4040 #define HAVE_BSDI_OS 1
4041 _ACEOF
4042
4043 else
4044
4045
4046 if $FALSEPRG; then
4047   HAVE_BSDI_OS_TRUE=
4048   HAVE_BSDI_OS_FALSE='#'
4049 else
4050   HAVE_BSDI_OS_TRUE='#'
4051   HAVE_BSDI_OS_FALSE=
4052 fi
4053 fi
4054
4055 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4056 then
4057
4058
4059 if $TRUEPRG; then
4060   HAVE_SGI_OS_TRUE=
4061   HAVE_SGI_OS_FALSE='#'
4062 else
4063   HAVE_SGI_OS_TRUE='#'
4064   HAVE_SGI_OS_FALSE=
4065 fi
4066         cat >>confdefs.h <<\_ACEOF
4067 #define HAVE_SGI_OS 1
4068 _ACEOF
4069
4070 else
4071
4072
4073 if $FALSEPRG; then
4074   HAVE_SGI_OS_TRUE=
4075   HAVE_SGI_OS_FALSE='#'
4076 else
4077   HAVE_SGI_OS_TRUE='#'
4078   HAVE_SGI_OS_FALSE=
4079 fi
4080 fi
4081
4082 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4083 then
4084
4085
4086 if $TRUEPRG; then
4087   HAVE_IRIX_OS_TRUE=
4088   HAVE_IRIX_OS_FALSE='#'
4089 else
4090   HAVE_IRIX_OS_TRUE='#'
4091   HAVE_IRIX_OS_FALSE=
4092 fi
4093         cat >>confdefs.h <<\_ACEOF
4094 #define HAVE_IRIX_OS 1
4095 _ACEOF
4096
4097 else
4098
4099
4100 if $FALSEPRG; then
4101   HAVE_IRIX_OS_TRUE=
4102   HAVE_IRIX_OS_FALSE='#'
4103 else
4104   HAVE_IRIX_OS_TRUE='#'
4105   HAVE_IRIX_OS_FALSE=
4106 fi
4107 fi
4108
4109 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4110 then
4111
4112
4113 if $TRUEPRG; then
4114   HAVE_DARWIN_OS_TRUE=
4115   HAVE_DARWIN_OS_FALSE='#'
4116 else
4117   HAVE_DARWIN_OS_TRUE='#'
4118   HAVE_DARWIN_OS_FALSE=
4119 fi
4120     cat >>confdefs.h <<\_ACEOF
4121 #define HAVE_DARWIN_OS 1
4122 _ACEOF
4123
4124 else
4125
4126
4127 if $FALSEPRG; then
4128   HAVE_DARWIN_OS_TRUE=
4129   HAVE_DARWIN_OS_FALSE='#'
4130 else
4131   HAVE_DARWIN_OS_TRUE='#'
4132   HAVE_DARWIN_OS_FALSE=
4133 fi
4134 fi
4135
4136
4137 # -----------------------------------------------------------
4138 # ----------------------------------------------------------
4139 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4140 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4141 if test "x$DISTNAME" != "x"
4142 then
4143         echo "distname set to $DISTNAME"
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4145 then
4146         DISTNAME=alpha
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4148 then
4149         DISTNAME=aix
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4151 then
4152         DISTNAME=hpux
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4154 then
4155         DISTNAME=solaris
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4157 then
4158         DISTNAME=freebsd
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4160 then
4161         DISTNAME=netbsd
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4163 then
4164         DISTNAME=openbsd
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4166 then
4167         DISTNAME=irix
4168 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4169 then
4170         DISTNAME=bsdi
4171 elif test -f /etc/SuSE-release
4172 then
4173         DISTNAME=suse
4174 elif test -d /etc/SuSEconfig
4175 then
4176         DISTNAME=suse5
4177 elif test -f /etc/mandrake-release
4178 then
4179         DISTNAME=mandrake
4180 elif test -f /etc/whitebox-release
4181 then
4182        DISTNAME=redhat
4183 elif test -f /etc/redhat-release
4184 then
4185         DISTNAME=redhat
4186 elif test -f /etc/gentoo-release
4187 then
4188         DISTNAME=gentoo
4189 elif test -f /etc/debian_version
4190 then
4191         DISTNAME=debian
4192 elif test -f /etc/slackware-version
4193 then
4194         DISTNAME=slackware
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4196 then
4197     DISTNAME=darwin
4198 elif test -f /etc/engarde-version
4199 then
4200         DISTNAME=engarde
4201 elif test "$CYGWIN" = yes
4202 then
4203         DISTNAME=cygwin
4204         cat >>confdefs.h <<\_ACEOF
4205 #define HAVE_CYGWIN 1
4206 _ACEOF
4207
4208 else
4209         DISTNAME=unknown
4210 fi
4211 echo "$as_me:$LINENO: result: done" >&5
4212 echo "${ECHO_T}done" >&6
4213
4214
4215 # -----------------------------------------------------------
4216 # ----------------------------------------------------------
4217
4218
4219
4220 if false; then
4221   INSIDE_GNOME_COMMON_TRUE=
4222   INSIDE_GNOME_COMMON_FALSE='#'
4223 else
4224   INSIDE_GNOME_COMMON_TRUE='#'
4225   INSIDE_GNOME_COMMON_FALSE=
4226 fi
4227
4228         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4229
4230         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4231
4232
4233 # ------------------------------------------------------------------
4234 #  If the user has not set --prefix, we set our default to nothing.
4235 #  In this case, if the user has not set --sysconfdir, we set it
4236 #  to the package default of /etc/bacula.  If either --prefix or
4237 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4238 # ------------------------------------------------------------------
4239 if test x${prefix} = xNONE ; then
4240     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4241         sysconfdir=/etc/bacula
4242     fi
4243     prefix=
4244 fi
4245 sysconfdir=`eval echo ${sysconfdir}`
4246
4247 # -------------------------------------------------------------------------
4248 #  If the user has not set --exec-prefix, we default to ${prefix}
4249 # -------------------------------------------------------------------------
4250 if test x${exec_prefix} = xNONE ; then
4251     exec_prefix=${prefix}
4252 fi
4253
4254 # ------------------------------------------------------------------
4255 # If the user has not set --sbindir, we set our default as /sbin
4256 # ------------------------------------------------------------------
4257 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4258     sbindir=${exec_prefix}/sbin
4259 fi
4260 sbindir=`eval echo ${sbindir}`
4261
4262 # ------------------------------------------------------------------
4263 # All list of languages for which a translation exist. Each
4264 #  language is separated by a space.
4265 # ------------------------------------------------------------------
4266 ALL_LINGUAS=""
4267
4268 for ac_prog in msgfmt
4269 do
4270   # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_path_MSGFMT+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   case $MSGFMT in
4278   [\\/]* | ?:[\\/]*)
4279   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4280   ;;
4281   *)
4282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4284 do
4285   IFS=$as_save_IFS
4286   test -z "$as_dir" && as_dir=.
4287   for ac_exec_ext in '' $ac_executable_extensions; do
4288   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291     break 2
4292   fi
4293 done
4294 done
4295
4296   ;;
4297 esac
4298 fi
4299 MSGFMT=$ac_cv_path_MSGFMT
4300
4301 if test -n "$MSGFMT"; then
4302   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4303 echo "${ECHO_T}$MSGFMT" >&6
4304 else
4305   echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4307 fi
4308
4309   test -n "$MSGFMT" && break
4310 done
4311 test -n "$MSGFMT" || MSGFMT="no"
4312
4313 if test "$MSGFMT" = "no"
4314 then
4315    echo 'msgfmt program not found, disabling NLS !'
4316    USE_NLS=no
4317    USE_INCLUDED_LIBINTL=no
4318 #else
4319 #   AM_GNU_GETTEXT
4320 fi
4321
4322
4323 support_mysql=no
4324 support_sqlite=no
4325 support_postgresql=no
4326 support_smartalloc=yes
4327 support_readline=yes
4328 support_conio=yes
4329 support_gnome=no
4330 support_wx_console=no
4331 gnome_version=
4332 support_static_tools=no
4333 support_static_fd=no
4334 support_static_sd=no
4335 support_static_dir=no
4336 support_static_cons=no
4337 build_client_only=no
4338 cats=
4339 db_name=Internal
4340 DB_NAME=bdb
4341
4342
4343 # -------------------------------------------
4344 # gnome (default off)
4345 # -------------------------------------------
4346 # Check whether --enable-gnome or --disable-gnome was given.
4347 if test "${enable_gnome+set}" = set; then
4348   enableval="$enable_gnome"
4349   if test x$enableval = xyes; then
4350     support_gnome=yes
4351   fi
4352 fi;
4353
4354 GNOME_DIR=
4355 if test x$support_gnome = xyes; then
4356   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4357   pkg=$?
4358   if test $pkg = 0; then
4359      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4360      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4361      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4362      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4363
4364
4365
4366
4367      GNOME_DIR=src/gnome2-console
4368      gnome_version="Version 2.x"
4369   else
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4382 if test "${with_gnome_includes+set}" = set; then
4383   withval="$with_gnome_includes"
4384
4385         CFLAGS="$CFLAGS -I$withval"
4386
4387 fi;
4388
4389
4390 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4391 if test "${with_gnome_libs+set}" = set; then
4392   withval="$with_gnome_libs"
4393
4394         LDFLAGS="$LDFLAGS -L$withval"
4395         gnome_prefix=$withval
4396
4397 fi;
4398
4399
4400 # Check whether --with-gnome or --without-gnome was given.
4401 if test "${with_gnome+set}" = set; then
4402   withval="$with_gnome"
4403   if test x$withval = xyes; then
4404                         want_gnome=yes
4405                                                                         :
4406                 else
4407                         if test "x$withval" = xno; then
4408                                 want_gnome=no
4409                         else
4410                                 want_gnome=yes
4411                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4412                                 CFLAGS="$CFLAGS -I$withval/include"
4413                                 gnome_prefix=$withval/lib
4414                         fi
4415                 fi
4416 else
4417   want_gnome=yes
4418 fi;
4419
4420         if test "x$want_gnome" = xyes; then
4421
4422             # Extract the first word of "gnome-config", so it can be a program name with args.
4423 set dummy gnome-config; ac_word=$2
4424 echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   case $GNOME_CONFIG in
4430   [\\/]* | ?:[\\/]*)
4431   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4432   ;;
4433   *)
4434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437   IFS=$as_save_IFS
4438   test -z "$as_dir" && as_dir=.
4439   for ac_exec_ext in '' $ac_executable_extensions; do
4440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446 done
4447
4448   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4449   ;;
4450 esac
4451 fi
4452 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4453
4454 if test -n "$GNOME_CONFIG"; then
4455   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4456 echo "${ECHO_T}$GNOME_CONFIG" >&6
4457 else
4458   echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4460 fi
4461
4462             if test "$GNOME_CONFIG" = "no"; then
4463               no_gnome_config="yes"
4464             else
4465               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4466 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4467               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4468                 echo "$as_me:$LINENO: result: yes" >&5
4469 echo "${ECHO_T}yes" >&6
4470
4471
4472         # Extract the first word of "orbit-config", so it can be a program name with args.
4473 set dummy orbit-config; ac_word=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   case $ORBIT_CONFIG in
4480   [\\/]* | ?:[\\/]*)
4481   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4482   ;;
4483   *)
4484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489   for ac_exec_ext in '' $ac_executable_extensions; do
4490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493     break 2
4494   fi
4495 done
4496 done
4497
4498   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4499   ;;
4500 esac
4501 fi
4502 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4503
4504 if test -n "$ORBIT_CONFIG"; then
4505   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4506 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4507 else
4508   echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4510 fi
4511
4512         # Extract the first word of "orbit-idl", so it can be a program name with args.
4513 set dummy orbit-idl; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   case $ORBIT_IDL in
4520   [\\/]* | ?:[\\/]*)
4521   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4522   ;;
4523   *)
4524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4526 do
4527   IFS=$as_save_IFS
4528   test -z "$as_dir" && as_dir=.
4529   for ac_exec_ext in '' $ac_executable_extensions; do
4530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533     break 2
4534   fi
4535 done
4536 done
4537
4538   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4539   ;;
4540 esac
4541 fi
4542 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4543
4544 if test -n "$ORBIT_IDL"; then
4545   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4546 echo "${ECHO_T}$ORBIT_IDL" >&6
4547 else
4548   echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4550 fi
4551
4552         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4553 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4554 if test "${gnome_cv_orbit_found+set}" = set; then
4555   echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557
4558                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4559                         gnome_cv_orbit_found=no
4560                 else
4561                         gnome_cv_orbit_found=yes
4562                 fi
4563
4564 fi
4565 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4566 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4567
4568
4569 if test x$gnome_cv_orbit_found = xyes; then
4570   HAVE_ORBIT_TRUE=
4571   HAVE_ORBIT_FALSE='#'
4572 else
4573   HAVE_ORBIT_TRUE='#'
4574   HAVE_ORBIT_FALSE=
4575 fi
4576         if test x$gnome_cv_orbit_found = xyes; then
4577
4578                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4579                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4580
4581
4582         else
4583                 if test xfail = xfailure; then
4584                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4585 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4586    { (exit 1); exit 1; }; }
4587                 fi
4588         fi
4589
4590         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4591 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4592 if test "${gnome_cv_gnorba_found+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595
4596                 gnome_cv_gnorba_found=no
4597                 if test x$gnome_cv_orbit_found = xyes; then
4598                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4599                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4600                         if test -n "$GNORBA_LIBS"; then
4601                                 gnome_cv_gnorba_found=yes
4602                         fi
4603                 fi
4604
4605 fi
4606 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4607 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4608
4609
4610 if test x$gnome_cv_gnorba_found = xyes; then
4611   HAVE_GNORBA_TRUE=
4612   HAVE_GNORBA_FALSE='#'
4613 else
4614   HAVE_GNORBA_TRUE='#'
4615   HAVE_GNORBA_FALSE=
4616 fi
4617         if test x$gnome_cv_orbit_found = xyes; then
4618
4619                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4620                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4621
4622
4623         else
4624                 if test xfail = xfailure; then
4625                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4626 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4627    { (exit 1); exit 1; }; }
4628                 fi
4629         fi
4630
4631                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4632                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4633                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4634                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4635                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4636                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4637                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4638
4639               else
4640                 echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6
4642                 no_gnome_config="yes"
4643               fi
4644             fi
4645
4646             if test x$exec_prefix = xNONE; then
4647                 if test x$prefix = xNONE; then
4648                     gnome_prefix=$ac_default_prefix/lib
4649                 else
4650                     gnome_prefix=$prefix/lib
4651                 fi
4652             else
4653                 gnome_prefix=`eval echo \`echo $libdir\``
4654             fi
4655
4656             if test "$no_gnome_config" = "yes"; then
4657               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4658 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4659               if test -f $gnome_prefix/gnomeConf.sh; then
4660                 echo "$as_me:$LINENO: result: found" >&5
4661 echo "${ECHO_T}found" >&6
4662                 echo "loading gnome configuration from" \
4663                      "$gnome_prefix/gnomeConf.sh"
4664                 . $gnome_prefix/gnomeConf.sh
4665
4666               else
4667                 echo "$as_me:$LINENO: result: not found" >&5
4668 echo "${ECHO_T}not found" >&6
4669                 if test xfail = xfail; then
4670                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4671 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4672    { (exit 1); exit 1; }; }
4673                 fi
4674               fi
4675             fi
4676         fi
4677
4678         if test -n ""; then
4679           n=""
4680           for i in $n; do
4681             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4682 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4683             case $i in
4684               applets)
4685
4686                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4687                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4688 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4689               docklets)
4690
4691                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4692                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4693 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4694               capplet)
4695
4696                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4697                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4698 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4699               *)
4700                 echo "$as_me:$LINENO: result: unknown library" >&5
4701 echo "${ECHO_T}unknown library" >&6
4702             esac
4703             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4704             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4705           done
4706         fi
4707
4708
4709      GNOME_DIR=src/gnome-console
4710      gnome_version="Version 1.4"
4711   fi
4712 fi
4713
4714
4715
4716 # -------------------------------------------
4717 # wx-console (default off)
4718 # -------------------------------------------
4719 # Check whether --enable-wx-console or --disable-wx-console was given.
4720 if test "${enable_wx_console+set}" = set; then
4721   enableval="$enable_wx_console"
4722   if test x$enableval = xyes; then
4723     support_wx_console=yes
4724   fi
4725 fi;
4726
4727 WX_DIR=
4728 if test x$support_wx_console = xyes; then
4729   abc=`$WXCONFIG --cppflags`
4730   pkg=$?
4731   if test $pkg = 0; then
4732      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4733      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4734
4735
4736      WX_DIR=src/wx-console
4737   else
4738      echo " "
4739      echo "wx-config program not found. wx-console disabled."
4740      echo " "
4741      support_wx_console=no
4742   fi
4743 fi
4744
4745
4746
4747 # -------------------------------------------
4748 # tray-monitor (default off)
4749 # -------------------------------------------
4750 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4751 if test "${enable_tray_monitor+set}" = set; then
4752   enableval="$enable_tray_monitor"
4753   if test x$enableval = xyes; then
4754     support_tray_monitor=yes
4755   fi
4756 fi;
4757
4758 TRAY_MONITOR_DIR=
4759 if test x$support_tray_monitor = xyes; then
4760   abc=`$PKGCONFIG --exists gtk+-2.0`
4761   pkg=$?
4762   if test $pkg = 0; then
4763      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4764      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4765
4766
4767      TRAY_MONITOR_DIR=src/tray-monitor
4768      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4769      pkg=$?
4770      if test $pkg = 0; then
4771         cat >>confdefs.h <<\_ACEOF
4772 #define HAVE_GTK_2_4 1
4773 _ACEOF
4774
4775      fi
4776   fi
4777 fi
4778
4779
4780 # -------------------------------------------
4781 # smartalloc (default off)
4782 # -------------------------------------------
4783 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4784 if test "${enable_smartalloc+set}" = set; then
4785   enableval="$enable_smartalloc"
4786   if test x$enableval = xno; then
4787     support_smartalloc=no
4788   fi
4789 fi;
4790
4791 if test x$support_smartalloc = xyes; then
4792    cat >>confdefs.h <<\_ACEOF
4793 #define SMARTALLOC 1
4794 _ACEOF
4795
4796 fi
4797
4798 # -------------------------------------------
4799 # static-tools (default off)
4800 # -------------------------------------------
4801 # Check whether --enable-static-tools or --disable-static-tools was given.
4802 if test "${enable_static_tools+set}" = set; then
4803   enableval="$enable_static_tools"
4804   if test x$enableval = xyes; then
4805      support_static_tools=yes
4806    fi
4807 fi;
4808
4809 TTOOL_LDFLAGS=
4810 if test x$support_static_tools = xyes; then
4811    TTOOL_LDFLAGS="-static"
4812 fi
4813
4814
4815 # -------------------------------------------
4816 # static-fd    (default off)
4817 # -------------------------------------------
4818 # Check whether --enable-static-fd or --disable-static-fd was given.
4819 if test "${enable_static_fd+set}" = set; then
4820   enableval="$enable_static_fd"
4821   if test x$enableval = xyes; then
4822      support_static_fd=yes
4823    fi
4824 fi;
4825
4826 STATIC_FD=
4827 if test x$support_static_fd = xyes; then
4828    STATIC_FD="static-bacula-fd"
4829 fi
4830
4831
4832 # -------------------------------------------
4833 # static-sd    (default off)
4834 # -------------------------------------------
4835 # Check whether --enable-static-sd or --disable-static-sd was given.
4836 if test "${enable_static_sd+set}" = set; then
4837   enableval="$enable_static_sd"
4838   if test x$enableval = xyes; then
4839      support_static_sd=yes
4840    fi
4841 fi;
4842
4843 STATIC_SD=
4844 if test x$support_static_sd = xyes; then
4845    STATIC_SD="static-bacula-sd"
4846 fi
4847
4848
4849 # -------------------------------------------
4850 # static-dir   (default off)
4851 # -------------------------------------------
4852 # Check whether --enable-static-dir or --disable-static-dir was given.
4853 if test "${enable_static_dir+set}" = set; then
4854   enableval="$enable_static_dir"
4855   if test x$enableval = xyes; then
4856      support_static_dir=yes
4857    fi
4858 fi;
4859
4860 STATIC_DIR=
4861 if test x$support_static_dir = xyes; then
4862    STATIC_DIR="static-bacula-dir"
4863 fi
4864
4865
4866 # -------------------------------------------
4867 # static-cons  (default off)
4868 # -------------------------------------------
4869 # Check whether --enable-static-cons or --disable-static-cons was given.
4870 if test "${enable_static_cons+set}" = set; then
4871   enableval="$enable_static_cons"
4872   if test x$enableval = xyes; then
4873      support_static_cons=yes
4874    fi
4875 fi;
4876
4877 STATIC_CONS=
4878 STATIC_GNOME_CONS=
4879 STATIC_WX_CONS=
4880 if test x$support_static_cons = xyes; then
4881    STATIC_CONS="static-bconsole"
4882    STATIC_GNOME_CONS="static-gnome-console"
4883    STATIC_WX_CONS="static-wx-console"
4884 fi
4885
4886
4887
4888
4889 # -------------------------------------------
4890 # client_only  (default off)
4891 # -------------------------------------------
4892 # Check whether --enable-client-only or --disable-client-only was given.
4893 if test "${enable_client_only+set}" = set; then
4894   enableval="$enable_client_only"
4895   if test x$enableval = xyes; then
4896      build_client_only=yes
4897     db_name=None
4898     DB_NAME=none
4899    fi
4900 fi;
4901 if test x$build_client_only = xno; then
4902    ALL_DIRS="subdirs"
4903 else
4904    ALL_DIRS=""
4905 fi
4906
4907
4908 # ---------------------------------------------------
4909 # Check for conio (Bacula readline substitute)(
4910 # ---------------------------------------------------
4911 # this allows you to turn it completely off
4912 # Check whether --enable-conio or --disable-conio was given.
4913 if test "${enable_conio+set}" = set; then
4914   enableval="$enable_conio"
4915   if test x$enableval = xno; then
4916     support_conio=no
4917   fi
4918 fi;
4919
4920 got_conio="no"
4921 if test x$support_conio = xyes; then
4922    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4923 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4924 if test "${ac_cv_header_stdc+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   cat >conftest.$ac_ext <<_ACEOF
4928 #line $LINENO "configure"
4929 /* confdefs.h.  */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h.  */
4934 #include <stdlib.h>
4935 #include <stdarg.h>
4936 #include <string.h>
4937 #include <float.h>
4938
4939 int
4940 main ()
4941 {
4942
4943   ;
4944   return 0;
4945 }
4946 _ACEOF
4947 rm -f conftest.$ac_objext
4948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4949   (eval $ac_compile) 2>&5
4950   ac_status=$?
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); } &&
4953          { ac_try='test -s conftest.$ac_objext'
4954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955   (eval $ac_try) 2>&5
4956   ac_status=$?
4957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958   (exit $ac_status); }; }; then
4959   ac_cv_header_stdc=yes
4960 else
4961   echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964 ac_cv_header_stdc=no
4965 fi
4966 rm -f conftest.$ac_objext conftest.$ac_ext
4967
4968 if test $ac_cv_header_stdc = yes; then
4969   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4970   cat >conftest.$ac_ext <<_ACEOF
4971 #line $LINENO "configure"
4972 /* confdefs.h.  */
4973 _ACEOF
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h.  */
4977 #include <string.h>
4978
4979 _ACEOF
4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4981   $EGREP "memchr" >/dev/null 2>&1; then
4982   :
4983 else
4984   ac_cv_header_stdc=no
4985 fi
4986 rm -f conftest*
4987
4988 fi
4989
4990 if test $ac_cv_header_stdc = yes; then
4991   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4992   cat >conftest.$ac_ext <<_ACEOF
4993 #line $LINENO "configure"
4994 /* confdefs.h.  */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h.  */
4999 #include <stdlib.h>
5000
5001 _ACEOF
5002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5003   $EGREP "free" >/dev/null 2>&1; then
5004   :
5005 else
5006   ac_cv_header_stdc=no
5007 fi
5008 rm -f conftest*
5009
5010 fi
5011
5012 if test $ac_cv_header_stdc = yes; then
5013   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5014   if test "$cross_compiling" = yes; then
5015   :
5016 else
5017   cat >conftest.$ac_ext <<_ACEOF
5018 #line $LINENO "configure"
5019 /* confdefs.h.  */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h.  */
5024 #include <ctype.h>
5025 #if ((' ' & 0x0FF) == 0x020)
5026 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5027 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5028 #else
5029 # define ISLOWER(c) \
5030                    (('a' <= (c) && (c) <= 'i') \
5031                      || ('j' <= (c) && (c) <= 'r') \
5032                      || ('s' <= (c) && (c) <= 'z'))
5033 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5034 #endif
5035
5036 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5037 int
5038 main ()
5039 {
5040   int i;
5041   for (i = 0; i < 256; i++)
5042     if (XOR (islower (i), ISLOWER (i))
5043         || toupper (i) != TOUPPER (i))
5044       exit(2);
5045   exit (0);
5046 }
5047 _ACEOF
5048 rm -f conftest$ac_exeext
5049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5050   (eval $ac_link) 2>&5
5051   ac_status=$?
5052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5055   (eval $ac_try) 2>&5
5056   ac_status=$?
5057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058   (exit $ac_status); }; }; then
5059   :
5060 else
5061   echo "$as_me: program exited with status $ac_status" >&5
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 ( exit $ac_status )
5066 ac_cv_header_stdc=no
5067 fi
5068 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5069 fi
5070 fi
5071 fi
5072 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5073 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5074 if test $ac_cv_header_stdc = yes; then
5075
5076 cat >>confdefs.h <<\_ACEOF
5077 #define STDC_HEADERS 1
5078 _ACEOF
5079
5080 fi
5081
5082 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5093                   inttypes.h stdint.h unistd.h
5094 do
5095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096 echo "$as_me:$LINENO: checking for $ac_header" >&5
5097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5099   echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101   cat >conftest.$ac_ext <<_ACEOF
5102 #line $LINENO "configure"
5103 /* confdefs.h.  */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h.  */
5108 $ac_includes_default
5109
5110 #include <$ac_header>
5111 _ACEOF
5112 rm -f conftest.$ac_objext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5114   (eval $ac_compile) 2>&5
5115   ac_status=$?
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); } &&
5118          { ac_try='test -s conftest.$ac_objext'
5119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120   (eval $ac_try) 2>&5
5121   ac_status=$?
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); }; }; then
5124   eval "$as_ac_Header=yes"
5125 else
5126   echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 eval "$as_ac_Header=no"
5130 fi
5131 rm -f conftest.$ac_objext conftest.$ac_ext
5132 fi
5133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5136   cat >>confdefs.h <<_ACEOF
5137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5138 _ACEOF
5139
5140 fi
5141
5142 done
5143
5144
5145 if test "${ac_cv_header_termcap_h+set}" = set; then
5146   echo "$as_me:$LINENO: checking for termcap.h" >&5
5147 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5148 if test "${ac_cv_header_termcap_h+set}" = set; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 fi
5151 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5152 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5153 else
5154   # Is the header compilable?
5155 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5156 echo $ECHO_N "checking termcap.h usability... $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 $ac_includes_default
5165 #include <termcap.h>
5166 _ACEOF
5167 rm -f conftest.$ac_objext
5168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5169   (eval $ac_compile) 2>&5
5170   ac_status=$?
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); } &&
5173          { ac_try='test -s conftest.$ac_objext'
5174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175   (eval $ac_try) 2>&5
5176   ac_status=$?
5177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178   (exit $ac_status); }; }; then
5179   ac_header_compiler=yes
5180 else
5181   echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5183
5184 ac_header_compiler=no
5185 fi
5186 rm -f conftest.$ac_objext conftest.$ac_ext
5187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5188 echo "${ECHO_T}$ac_header_compiler" >&6
5189
5190 # Is the header present?
5191 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5192 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5193 cat >conftest.$ac_ext <<_ACEOF
5194 #line $LINENO "configure"
5195 /* confdefs.h.  */
5196 _ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h.  */
5200 #include <termcap.h>
5201 _ACEOF
5202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5203   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5204   ac_status=$?
5205   grep -v '^ *+' conftest.er1 >conftest.err
5206   rm -f conftest.er1
5207   cat conftest.err >&5
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); } >/dev/null; then
5210   if test -s conftest.err; then
5211     ac_cpp_err=$ac_c_preproc_warn_flag
5212   else
5213     ac_cpp_err=
5214   fi
5215 else
5216   ac_cpp_err=yes
5217 fi
5218 if test -z "$ac_cpp_err"; then
5219   ac_header_preproc=yes
5220 else
5221   echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224   ac_header_preproc=no
5225 fi
5226 rm -f conftest.err conftest.$ac_ext
5227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5228 echo "${ECHO_T}$ac_header_preproc" >&6
5229
5230 # So?  What about this header?
5231 case $ac_header_compiler:$ac_header_preproc in
5232   yes:no )
5233     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5234 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5235     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5236 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5237     (
5238       cat <<\_ASBOX
5239 ## ------------------------------------ ##
5240 ## Report this to bug-autoconf@gnu.org. ##
5241 ## ------------------------------------ ##
5242 _ASBOX
5243     ) |
5244       sed "s/^/$as_me: WARNING:     /" >&2
5245     ;;
5246   no:yes )
5247     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5248 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5249     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5250 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5251     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5252 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5253     (
5254       cat <<\_ASBOX
5255 ## ------------------------------------ ##
5256 ## Report this to bug-autoconf@gnu.org. ##
5257 ## ------------------------------------ ##
5258 _ASBOX
5259     ) |
5260       sed "s/^/$as_me: WARNING:     /" >&2
5261     ;;
5262 esac
5263 echo "$as_me:$LINENO: checking for termcap.h" >&5
5264 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5265 if test "${ac_cv_header_termcap_h+set}" = set; then
5266   echo $ECHO_N "(cached) $ECHO_C" >&6
5267 else
5268   ac_cv_header_termcap_h=$ac_header_preproc
5269 fi
5270 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5271 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5272
5273 fi
5274 if test $ac_cv_header_termcap_h = yes; then
5275    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5276 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5277 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5278   echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280   ac_check_lib_save_LIBS=$LIBS
5281 LIBS="-ltermcap  $LIBS"
5282 cat >conftest.$ac_ext <<_ACEOF
5283 #line $LINENO "configure"
5284 /* confdefs.h.  */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h.  */
5289
5290 /* Override any gcc2 internal prototype to avoid an error.  */
5291 #ifdef __cplusplus
5292 extern "C"
5293 #endif
5294 /* We use char because int might match the return type of a gcc2
5295    builtin and then its argument prototype would still apply.  */
5296 char tgetent ();
5297 int
5298 main ()
5299 {
5300 tgetent ();
5301   ;
5302   return 0;
5303 }
5304 _ACEOF
5305 rm -f conftest.$ac_objext conftest$ac_exeext
5306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5307   (eval $ac_link) 2>&5
5308   ac_status=$?
5309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310   (exit $ac_status); } &&
5311          { ac_try='test -s conftest$ac_exeext'
5312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313   (eval $ac_try) 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }; }; then
5317   ac_cv_lib_termcap_tgetent=yes
5318 else
5319   echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5321
5322 ac_cv_lib_termcap_tgetent=no
5323 fi
5324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5325 LIBS=$ac_check_lib_save_LIBS
5326 fi
5327 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5328 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5329 if test $ac_cv_lib_termcap_tgetent = yes; then
5330    CONS_LIBS="-ltermcap"
5331          CONS_OBJ="conio.o"
5332          CONS_SRC="conio.c"
5333          got_conio="yes"
5334          support_readline=no
5335
5336 cat >>confdefs.h <<\_ACEOF
5337 #define HAVE_CONIO 1
5338 _ACEOF
5339
5340
5341 else
5342    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5343 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5344 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5345   echo $ECHO_N "(cached) $ECHO_C" >&6
5346 else
5347   ac_check_lib_save_LIBS=$LIBS
5348 LIBS="-lncurses  $LIBS"
5349 cat >conftest.$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5351 /* confdefs.h.  */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h.  */
5356
5357 /* Override any gcc2 internal prototype to avoid an error.  */
5358 #ifdef __cplusplus
5359 extern "C"
5360 #endif
5361 /* We use char because int might match the return type of a gcc2
5362    builtin and then its argument prototype would still apply.  */
5363 char tgetent ();
5364 int
5365 main ()
5366 {
5367 tgetent ();
5368   ;
5369   return 0;
5370 }
5371 _ACEOF
5372 rm -f conftest.$ac_objext conftest$ac_exeext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5374   (eval $ac_link) 2>&5
5375   ac_status=$?
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); } &&
5378          { ac_try='test -s conftest$ac_exeext'
5379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380   (eval $ac_try) 2>&5
5381   ac_status=$?
5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383   (exit $ac_status); }; }; then
5384   ac_cv_lib_ncurses_tgetent=yes
5385 else
5386   echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5388
5389 ac_cv_lib_ncurses_tgetent=no
5390 fi
5391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5392 LIBS=$ac_check_lib_save_LIBS
5393 fi
5394 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5395 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5396 if test $ac_cv_lib_ncurses_tgetent = yes; then
5397    CONS_LIBS="-lncurses"
5398            CONS_OBJ="conio.o"
5399            CONS_SRC="conio.c"
5400            got_conio="yes"
5401            support_readline=no
5402
5403 cat >>confdefs.h <<\_ACEOF
5404 #define HAVE_CONIO 1
5405 _ACEOF
5406
5407
5408 else
5409    echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5410 fi
5411
5412
5413 fi
5414
5415
5416 else
5417   echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5418 fi
5419
5420
5421 fi
5422
5423
5424 # ---------------------------------------------------
5425 # Check for readline support/directory (default off)
5426 # ---------------------------------------------------
5427 # this allows you to turn it completely off
5428 # Check whether --enable-readline or --disable-readline was given.
5429 if test "${enable_readline+set}" = set; then
5430   enableval="$enable_readline"
5431   if test x$enableval = xno; then
5432     support_readline=no
5433   fi
5434 fi;
5435
5436 got_readline="no"
5437 READLINE_SRC=
5438 if test x$support_readline = xyes; then
5439
5440 # Check whether --with-readline or --without-readline was given.
5441 if test "${with_readline+set}" = set; then
5442   withval="$with_readline"
5443
5444         case "$with_readline" in
5445         no) : ;;
5446         yes|*)
5447           if test "$with_readline" != "yes"; then
5448             CONS_INC="-I${with_readline}"
5449             CONS_LDFLAGS="-L$with_readline"
5450           else
5451              with_readline="/usr/include/readline"
5452           fi
5453           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5455   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5456 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 fi
5460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5462 else
5463   # Is the header compilable?
5464 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5465 echo $ECHO_N "checking ${with_readline}/readline.h usability... $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 $ac_includes_default
5474 #include <${with_readline}/readline.h>
5475 _ACEOF
5476 rm -f conftest.$ac_objext
5477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5478   (eval $ac_compile) 2>&5
5479   ac_status=$?
5480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481   (exit $ac_status); } &&
5482          { ac_try='test -s conftest.$ac_objext'
5483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5484   (eval $ac_try) 2>&5
5485   ac_status=$?
5486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487   (exit $ac_status); }; }; then
5488   ac_header_compiler=yes
5489 else
5490   echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493 ac_header_compiler=no
5494 fi
5495 rm -f conftest.$ac_objext conftest.$ac_ext
5496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5497 echo "${ECHO_T}$ac_header_compiler" >&6
5498
5499 # Is the header present?
5500 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5501 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5502 cat >conftest.$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5504 /* confdefs.h.  */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h.  */
5509 #include <${with_readline}/readline.h>
5510 _ACEOF
5511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5512   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5513   ac_status=$?
5514   grep -v '^ *+' conftest.er1 >conftest.err
5515   rm -f conftest.er1
5516   cat conftest.err >&5
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); } >/dev/null; then
5519   if test -s conftest.err; then
5520     ac_cpp_err=$ac_c_preproc_warn_flag
5521   else
5522     ac_cpp_err=
5523   fi
5524 else
5525   ac_cpp_err=yes
5526 fi
5527 if test -z "$ac_cpp_err"; then
5528   ac_header_preproc=yes
5529 else
5530   echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533   ac_header_preproc=no
5534 fi
5535 rm -f conftest.err conftest.$ac_ext
5536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5537 echo "${ECHO_T}$ac_header_preproc" >&6
5538
5539 # So?  What about this header?
5540 case $ac_header_compiler:$ac_header_preproc in
5541   yes:no )
5542     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5543 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5544     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5545 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5546     (
5547       cat <<\_ASBOX
5548 ## ------------------------------------ ##
5549 ## Report this to bug-autoconf@gnu.org. ##
5550 ## ------------------------------------ ##
5551 _ASBOX
5552     ) |
5553       sed "s/^/$as_me: WARNING:     /" >&2
5554     ;;
5555   no:yes )
5556     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5557 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5558     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5559 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5560     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5561 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5562     (
5563       cat <<\_ASBOX
5564 ## ------------------------------------ ##
5565 ## Report this to bug-autoconf@gnu.org. ##
5566 ## ------------------------------------ ##
5567 _ASBOX
5568     ) |
5569       sed "s/^/$as_me: WARNING:     /" >&2
5570     ;;
5571 esac
5572 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5573 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5575   echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577   eval "$as_ac_Header=$ac_header_preproc"
5578 fi
5579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5581
5582 fi
5583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5584    cat >>confdefs.h <<\_ACEOF
5585 #define HAVE_READLINE 1
5586 _ACEOF
5587
5588                CONS_LIBS="-lreadline -ltermcap"
5589                got_readline="yes"
5590
5591 else
5592    echo " "
5593                echo "readline.h not found. readline turned off ..."
5594                echo " "
5595
5596
5597 fi
5598
5599
5600           ;;
5601         esac
5602
5603 else
5604
5605        # check for standard readline library
5606        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5607   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5608 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5609 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5610   echo $ECHO_N "(cached) $ECHO_C" >&6
5611 fi
5612 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5613 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5614 else
5615   # Is the header compilable?
5616 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5617 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $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 $ac_includes_default
5626 #include </usr/include/readline/readline.h>
5627 _ACEOF
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630   (eval $ac_compile) 2>&5
5631   ac_status=$?
5632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633   (exit $ac_status); } &&
5634          { ac_try='test -s conftest.$ac_objext'
5635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636   (eval $ac_try) 2>&5
5637   ac_status=$?
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }; }; then
5640   ac_header_compiler=yes
5641 else
5642   echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 ac_header_compiler=no
5646 fi
5647 rm -f conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649 echo "${ECHO_T}$ac_header_compiler" >&6
5650
5651 # Is the header present?
5652 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5653 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5654 cat >conftest.$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5656 /* confdefs.h.  */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h.  */
5661 #include </usr/include/readline/readline.h>
5662 _ACEOF
5663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5664   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5665   ac_status=$?
5666   grep -v '^ *+' conftest.er1 >conftest.err
5667   rm -f conftest.er1
5668   cat conftest.err >&5
5669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670   (exit $ac_status); } >/dev/null; then
5671   if test -s conftest.err; then
5672     ac_cpp_err=$ac_c_preproc_warn_flag
5673   else
5674     ac_cpp_err=
5675   fi
5676 else
5677   ac_cpp_err=yes
5678 fi
5679 if test -z "$ac_cpp_err"; then
5680   ac_header_preproc=yes
5681 else
5682   echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685   ac_header_preproc=no
5686 fi
5687 rm -f conftest.err conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689 echo "${ECHO_T}$ac_header_preproc" >&6
5690
5691 # So?  What about this header?
5692 case $ac_header_compiler:$ac_header_preproc in
5693   yes:no )
5694     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5695 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5697 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5698     (
5699       cat <<\_ASBOX
5700 ## ------------------------------------ ##
5701 ## Report this to bug-autoconf@gnu.org. ##
5702 ## ------------------------------------ ##
5703 _ASBOX
5704     ) |
5705       sed "s/^/$as_me: WARNING:     /" >&2
5706     ;;
5707   no:yes )
5708     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5709 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5710     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5711 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5712     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5713 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5714     (
5715       cat <<\_ASBOX
5716 ## ------------------------------------ ##
5717 ## Report this to bug-autoconf@gnu.org. ##
5718 ## ------------------------------------ ##
5719 _ASBOX
5720     ) |
5721       sed "s/^/$as_me: WARNING:     /" >&2
5722     ;;
5723 esac
5724 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5725 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5726 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5727   echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5730 fi
5731 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5732 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5733
5734 fi
5735 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5736    cat >>confdefs.h <<\_ACEOF
5737 #define HAVE_READLINE 1
5738 _ACEOF
5739
5740            got_readline="yes"
5741            CONS_INC="-I/usr/include/readline"
5742            CONS_LIBS="-lreadline -ltermcap"
5743
5744 else
5745
5746            # Did not find standard library, so try Bacula's default
5747             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5749   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5750 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 fi
5754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5756 else
5757   # Is the header compilable?
5758 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5759 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $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 $ac_includes_default
5768 #include <${TOP_DIR}/depkgs/readline/readline.h>
5769 _ACEOF
5770 rm -f conftest.$ac_objext
5771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772   (eval $ac_compile) 2>&5
5773   ac_status=$?
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); } &&
5776          { ac_try='test -s conftest.$ac_objext'
5777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778   (eval $ac_try) 2>&5
5779   ac_status=$?
5780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781   (exit $ac_status); }; }; then
5782   ac_header_compiler=yes
5783 else
5784   echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 ac_header_compiler=no
5788 fi
5789 rm -f conftest.$ac_objext conftest.$ac_ext
5790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5791 echo "${ECHO_T}$ac_header_compiler" >&6
5792
5793 # Is the header present?
5794 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5795 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5796 cat >conftest.$ac_ext <<_ACEOF
5797 #line $LINENO "configure"
5798 /* confdefs.h.  */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h.  */
5803 #include <${TOP_DIR}/depkgs/readline/readline.h>
5804 _ACEOF
5805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5806   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } >/dev/null; then
5813   if test -s conftest.err; then
5814     ac_cpp_err=$ac_c_preproc_warn_flag
5815   else
5816     ac_cpp_err=
5817   fi
5818 else
5819   ac_cpp_err=yes
5820 fi
5821 if test -z "$ac_cpp_err"; then
5822   ac_header_preproc=yes
5823 else
5824   echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5826
5827   ac_header_preproc=no
5828 fi
5829 rm -f conftest.err conftest.$ac_ext
5830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5831 echo "${ECHO_T}$ac_header_preproc" >&6
5832
5833 # So?  What about this header?
5834 case $ac_header_compiler:$ac_header_preproc in
5835   yes:no )
5836     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5837 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5838     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5839 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5840     (
5841       cat <<\_ASBOX
5842 ## ------------------------------------ ##
5843 ## Report this to bug-autoconf@gnu.org. ##
5844 ## ------------------------------------ ##
5845 _ASBOX
5846     ) |
5847       sed "s/^/$as_me: WARNING:     /" >&2
5848     ;;
5849   no:yes )
5850     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5851 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5852     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5853 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5854     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5855 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5856     (
5857       cat <<\_ASBOX
5858 ## ------------------------------------ ##
5859 ## Report this to bug-autoconf@gnu.org. ##
5860 ## ------------------------------------ ##
5861 _ASBOX
5862     ) |
5863       sed "s/^/$as_me: WARNING:     /" >&2
5864     ;;
5865 esac
5866 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5867 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5869   echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871   eval "$as_ac_Header=$ac_header_preproc"
5872 fi
5873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5875
5876 fi
5877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5878    cat >>confdefs.h <<\_ACEOF
5879 #define HAVE_READLINE 1
5880 _ACEOF
5881
5882                  got_readline="yes"
5883                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5884                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5885                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5886                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5887
5888 else
5889    echo " "
5890                 echo "readline.h not found. readline turned off ..."
5891                 echo " "
5892
5893
5894 fi
5895
5896
5897
5898
5899 fi
5900
5901
5902
5903
5904 fi;
5905 fi
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916 # Minimal stuff for readline Makefile configuration
5917 MAKE_SHELL=/bin/sh
5918
5919 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5920 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5921 if test "${ac_cv_header_stat_broken+set}" = set; then
5922   echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924   cat >conftest.$ac_ext <<_ACEOF
5925 #line $LINENO "configure"
5926 /* confdefs.h.  */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h.  */
5931 #include <sys/types.h>
5932 #include <sys/stat.h>
5933
5934 #if defined(S_ISBLK) && defined(S_IFDIR)
5935 # if S_ISBLK (S_IFDIR)
5936 You lose.
5937 # endif
5938 #endif
5939
5940 #if defined(S_ISBLK) && defined(S_IFCHR)
5941 # if S_ISBLK (S_IFCHR)
5942 You lose.
5943 # endif
5944 #endif
5945
5946 #if defined(S_ISLNK) && defined(S_IFREG)
5947 # if S_ISLNK (S_IFREG)
5948 You lose.
5949 # endif
5950 #endif
5951
5952 #if defined(S_ISSOCK) && defined(S_IFREG)
5953 # if S_ISSOCK (S_IFREG)
5954 You lose.
5955 # endif
5956 #endif
5957
5958 _ACEOF
5959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5960   $EGREP "You lose" >/dev/null 2>&1; then
5961   ac_cv_header_stat_broken=yes
5962 else
5963   ac_cv_header_stat_broken=no
5964 fi
5965 rm -f conftest*
5966
5967 fi
5968 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5969 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5970 if test $ac_cv_header_stat_broken = yes; then
5971
5972 cat >>confdefs.h <<\_ACEOF
5973 #define STAT_MACROS_BROKEN 1
5974 _ACEOF
5975
5976 fi
5977
5978
5979
5980
5981
5982
5983 ac_header_dirent=no
5984 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5985   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5986 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5987 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   cat >conftest.$ac_ext <<_ACEOF
5992 #line $LINENO "configure"
5993 /* confdefs.h.  */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h.  */
5998 #include <sys/types.h>
5999 #include <$ac_hdr>
6000
6001 int
6002 main ()
6003 {
6004 if ((DIR *) 0)
6005 return 0;
6006   ;
6007   return 0;
6008 }
6009 _ACEOF
6010 rm -f conftest.$ac_objext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012   (eval $ac_compile) 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); } &&
6016          { ac_try='test -s conftest.$ac_objext'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; }; then
6022   eval "$as_ac_Header=yes"
6023 else
6024   echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6026
6027 eval "$as_ac_Header=no"
6028 fi
6029 rm -f conftest.$ac_objext conftest.$ac_ext
6030 fi
6031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6034   cat >>confdefs.h <<_ACEOF
6035 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6036 _ACEOF
6037
6038 ac_header_dirent=$ac_hdr; break
6039 fi
6040
6041 done
6042 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6043 if test $ac_header_dirent = dirent.h; then
6044   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6045 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6046 if test "${ac_cv_search_opendir+set}" = set; then
6047   echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049   ac_func_search_save_LIBS=$LIBS
6050 ac_cv_search_opendir=no
6051 cat >conftest.$ac_ext <<_ACEOF
6052 #line $LINENO "configure"
6053 /* confdefs.h.  */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h.  */
6058
6059 /* Override any gcc2 internal prototype to avoid an error.  */
6060 #ifdef __cplusplus
6061 extern "C"
6062 #endif
6063 /* We use char because int might match the return type of a gcc2
6064    builtin and then its argument prototype would still apply.  */
6065 char opendir ();
6066 int
6067 main ()
6068 {
6069 opendir ();
6070   ;
6071   return 0;
6072 }
6073 _ACEOF
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6076   (eval $ac_link) 2>&5
6077   ac_status=$?
6078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079   (exit $ac_status); } &&
6080          { ac_try='test -s conftest$ac_exeext'
6081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082   (eval $ac_try) 2>&5
6083   ac_status=$?
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); }; }; then
6086   ac_cv_search_opendir="none required"
6087 else
6088   echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6090
6091 fi
6092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6093 if test "$ac_cv_search_opendir" = no; then
6094   for ac_lib in dir; do
6095     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6096     cat >conftest.$ac_ext <<_ACEOF
6097 #line $LINENO "configure"
6098 /* confdefs.h.  */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h.  */
6103
6104 /* Override any gcc2 internal prototype to avoid an error.  */
6105 #ifdef __cplusplus
6106 extern "C"
6107 #endif
6108 /* We use char because int might match the return type of a gcc2
6109    builtin and then its argument prototype would still apply.  */
6110 char opendir ();
6111 int
6112 main ()
6113 {
6114 opendir ();
6115   ;
6116   return 0;
6117 }
6118 _ACEOF
6119 rm -f conftest.$ac_objext conftest$ac_exeext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6121   (eval $ac_link) 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); } &&
6125          { ac_try='test -s conftest$ac_exeext'
6126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127   (eval $ac_try) 2>&5
6128   ac_status=$?
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); }; }; then
6131   ac_cv_search_opendir="-l$ac_lib"
6132 break
6133 else
6134   echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 fi
6138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6139   done
6140 fi
6141 LIBS=$ac_func_search_save_LIBS
6142 fi
6143 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6144 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6145 if test "$ac_cv_search_opendir" != no; then
6146   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6147
6148 fi
6149
6150 else
6151   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6152 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6153 if test "${ac_cv_search_opendir+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   ac_func_search_save_LIBS=$LIBS
6157 ac_cv_search_opendir=no
6158 cat >conftest.$ac_ext <<_ACEOF
6159 #line $LINENO "configure"
6160 /* confdefs.h.  */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h.  */
6165
6166 /* Override any gcc2 internal prototype to avoid an error.  */
6167 #ifdef __cplusplus
6168 extern "C"
6169 #endif
6170 /* We use char because int might match the return type of a gcc2
6171    builtin and then its argument prototype would still apply.  */
6172 char opendir ();
6173 int
6174 main ()
6175 {
6176 opendir ();
6177   ;
6178   return 0;
6179 }
6180 _ACEOF
6181 rm -f conftest.$ac_objext conftest$ac_exeext
6182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6183   (eval $ac_link) 2>&5
6184   ac_status=$?
6185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186   (exit $ac_status); } &&
6187          { ac_try='test -s conftest$ac_exeext'
6188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189   (eval $ac_try) 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }; }; then
6193   ac_cv_search_opendir="none required"
6194 else
6195   echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198 fi
6199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6200 if test "$ac_cv_search_opendir" = no; then
6201   for ac_lib in x; do
6202     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6203     cat >conftest.$ac_ext <<_ACEOF
6204 #line $LINENO "configure"
6205 /* confdefs.h.  */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h.  */
6210
6211 /* Override any gcc2 internal prototype to avoid an error.  */
6212 #ifdef __cplusplus
6213 extern "C"
6214 #endif
6215 /* We use char because int might match the return type of a gcc2
6216    builtin and then its argument prototype would still apply.  */
6217 char opendir ();
6218 int
6219 main ()
6220 {
6221 opendir ();
6222   ;
6223   return 0;
6224 }
6225 _ACEOF
6226 rm -f conftest.$ac_objext conftest$ac_exeext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228   (eval $ac_link) 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); } &&
6232          { ac_try='test -s conftest$ac_exeext'
6233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234   (eval $ac_try) 2>&5
6235   ac_status=$?
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); }; }; then
6238   ac_cv_search_opendir="-l$ac_lib"
6239 break
6240 else
6241   echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6243
6244 fi
6245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6246   done
6247 fi
6248 LIBS=$ac_func_search_save_LIBS
6249 fi
6250 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6251 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6252 if test "$ac_cv_search_opendir" != no; then
6253   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6254
6255 fi
6256
6257 fi
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6268 do
6269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6270 echo "$as_me:$LINENO: checking for $ac_func" >&5
6271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6272 if eval "test \"\${$as_ac_var+set}\" = set"; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275   cat >conftest.$ac_ext <<_ACEOF
6276 #line $LINENO "configure"
6277 /* confdefs.h.  */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h.  */
6282 /* System header to define __stub macros and hopefully few prototypes,
6283     which can conflict with char $ac_func (); below.
6284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6285     <limits.h> exists even on freestanding compilers.  */
6286 #ifdef __STDC__
6287 # include <limits.h>
6288 #else
6289 # include <assert.h>
6290 #endif
6291 /* Override any gcc2 internal prototype to avoid an error.  */
6292 #ifdef __cplusplus
6293 extern "C"
6294 {
6295 #endif
6296 /* We use char because int might match the return type of a gcc2
6297    builtin and then its argument prototype would still apply.  */
6298 char $ac_func ();
6299 /* The GNU C library defines this for functions which it implements
6300     to always fail with ENOSYS.  Some functions are actually named
6301     something starting with __ and the normal name is an alias.  */
6302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6303 choke me
6304 #else
6305 char (*f) () = $ac_func;
6306 #endif
6307 #ifdef __cplusplus
6308 }
6309 #endif
6310
6311 int
6312 main ()
6313 {
6314 return f != $ac_func;
6315   ;
6316   return 0;
6317 }
6318 _ACEOF
6319 rm -f conftest.$ac_objext conftest$ac_exeext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6321   (eval $ac_link) 2>&5
6322   ac_status=$?
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); } &&
6325          { ac_try='test -s conftest$ac_exeext'
6326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327   (eval $ac_try) 2>&5
6328   ac_status=$?
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); }; }; then
6331   eval "$as_ac_var=yes"
6332 else
6333   echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6335
6336 eval "$as_ac_var=no"
6337 fi
6338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6339 fi
6340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6342 if test `eval echo '${'$as_ac_var'}'` = yes; then
6343   cat >>confdefs.h <<_ACEOF
6344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6345 _ACEOF
6346
6347 fi
6348 done
6349
6350
6351
6352 for ac_func in nanosleep nl_langinfo
6353 do
6354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6355 echo "$as_me:$LINENO: checking for $ac_func" >&5
6356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6357 if eval "test \"\${$as_ac_var+set}\" = set"; then
6358   echo $ECHO_N "(cached) $ECHO_C" >&6
6359 else
6360   cat >conftest.$ac_ext <<_ACEOF
6361 #line $LINENO "configure"
6362 /* confdefs.h.  */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h.  */
6367 /* System header to define __stub macros and hopefully few prototypes,
6368     which can conflict with char $ac_func (); below.
6369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6370     <limits.h> exists even on freestanding compilers.  */
6371 #ifdef __STDC__
6372 # include <limits.h>
6373 #else
6374 # include <assert.h>
6375 #endif
6376 /* Override any gcc2 internal prototype to avoid an error.  */
6377 #ifdef __cplusplus
6378 extern "C"
6379 {
6380 #endif
6381 /* We use char because int might match the return type of a gcc2
6382    builtin and then its argument prototype would still apply.  */
6383 char $ac_func ();
6384 /* The GNU C library defines this for functions which it implements
6385     to always fail with ENOSYS.  Some functions are actually named
6386     something starting with __ and the normal name is an alias.  */
6387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6388 choke me
6389 #else
6390 char (*f) () = $ac_func;
6391 #endif
6392 #ifdef __cplusplus
6393 }
6394 #endif
6395
6396 int
6397 main ()
6398 {
6399 return f != $ac_func;
6400   ;
6401   return 0;
6402 }
6403 _ACEOF
6404 rm -f conftest.$ac_objext conftest$ac_exeext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6406   (eval $ac_link) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); } &&
6410          { ac_try='test -s conftest$ac_exeext'
6411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412   (eval $ac_try) 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); }; }; then
6416   eval "$as_ac_var=yes"
6417 else
6418   echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 eval "$as_ac_var=no"
6422 fi
6423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6424 fi
6425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6427 if test `eval echo '${'$as_ac_var'}'` = yes; then
6428   cat >>confdefs.h <<_ACEOF
6429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6430 _ACEOF
6431
6432 fi
6433 done
6434
6435
6436 for ac_header in varargs.h
6437 do
6438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6440   echo "$as_me:$LINENO: checking for $ac_header" >&5
6441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6443   echo $ECHO_N "(cached) $ECHO_C" >&6
6444 fi
6445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6447 else
6448   # Is the header compilable?
6449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6450 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
6459 #include <$ac_header>
6460 _ACEOF
6461 rm -f conftest.$ac_objext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463   (eval $ac_compile) 2>&5
6464   ac_status=$?
6465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466   (exit $ac_status); } &&
6467          { ac_try='test -s conftest.$ac_objext'
6468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469   (eval $ac_try) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); }; }; then
6473   ac_header_compiler=yes
6474 else
6475   echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6477
6478 ac_header_compiler=no
6479 fi
6480 rm -f conftest.$ac_objext conftest.$ac_ext
6481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6482 echo "${ECHO_T}$ac_header_compiler" >&6
6483
6484 # Is the header present?
6485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6487 cat >conftest.$ac_ext <<_ACEOF
6488 #line $LINENO "configure"
6489 /* confdefs.h.  */
6490 _ACEOF
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h.  */
6494 #include <$ac_header>
6495 _ACEOF
6496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6497   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6498   ac_status=$?
6499   grep -v '^ *+' conftest.er1 >conftest.err
6500   rm -f conftest.er1
6501   cat conftest.err >&5
6502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); } >/dev/null; then
6504   if test -s conftest.err; then
6505     ac_cpp_err=$ac_c_preproc_warn_flag
6506   else
6507     ac_cpp_err=
6508   fi
6509 else
6510   ac_cpp_err=yes
6511 fi
6512 if test -z "$ac_cpp_err"; then
6513   ac_header_preproc=yes
6514 else
6515   echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6517
6518   ac_header_preproc=no
6519 fi
6520 rm -f conftest.err conftest.$ac_ext
6521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6522 echo "${ECHO_T}$ac_header_preproc" >&6
6523
6524 # So?  What about this header?
6525 case $ac_header_compiler:$ac_header_preproc in
6526   yes:no )
6527     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6529     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6531     (
6532       cat <<\_ASBOX
6533 ## ------------------------------------ ##
6534 ## Report this to bug-autoconf@gnu.org. ##
6535 ## ------------------------------------ ##
6536 _ASBOX
6537     ) |
6538       sed "s/^/$as_me: WARNING:     /" >&2
6539     ;;
6540   no:yes )
6541     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6543     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6547     (
6548       cat <<\_ASBOX
6549 ## ------------------------------------ ##
6550 ## Report this to bug-autoconf@gnu.org. ##
6551 ## ------------------------------------ ##
6552 _ASBOX
6553     ) |
6554       sed "s/^/$as_me: WARNING:     /" >&2
6555     ;;
6556 esac
6557 echo "$as_me:$LINENO: checking for $ac_header" >&5
6558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562   eval "$as_ac_Header=$ac_header_preproc"
6563 fi
6564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6566
6567 fi
6568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6569   cat >>confdefs.h <<_ACEOF
6570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6571 _ACEOF
6572
6573 fi
6574
6575 done
6576
6577
6578 # End of readline/conio stuff
6579 # -----------------------------------------------------------------------
6580
6581
6582 # ---------------------------------------------------
6583 # Check for GMP support/directory
6584 # ---------------------------------------------------
6585 #GMP_SRC=
6586 #local_gmp="no"
6587 #AC_ARG_WITH(gmp,
6588 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6589 #  [
6590 #     case "$with_gmp" in
6591 #     no) : ;;
6592 #     yes|*)
6593 #       if test "$with_gmp" != "yes"; then
6594 #         GMP_INC="-I$with_gmp"
6595 #         GMP_LIBS="-lgmp"
6596 #         GMP_LDFLAGS="-L$with_gmp"
6597 #       else
6598 #          with_gmp="/usr/include"
6599 #       fi
6600 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6601 #          [ AC_MSG_RESULT(yes)
6602 #            AC_DEFINE(HAVE_GMP)
6603 #            GMP_LIBS="-lgmp"
6604 #            got_gmp="yes"
6605 #          ],
6606 #          [ AC_MSG_ERROR([*** gmp library missing])
6607 #          ]
6608 #       )
6609 #       ;;
6610 #     esac
6611 #  ],[
6612 #    # check for standard gmp library
6613 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6614 #    [ AC_MSG_RESULT(yes)
6615 #      AC_DEFINE(HAVE_GMP)
6616 #      got_gmp="yes"
6617 #      GMP_INC=
6618 #      GMP_LIBS="-lgmp"
6619 #    ], [
6620 #      # Did not find standard library, so use our own
6621 #      AC_MSG_RESULT(yes)
6622 #      AC_DEFINE(HAVE_GMP)
6623 #      got_gmp="yes"
6624 #      local_gmp="yes"
6625 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6626 #      GMP_LIBS="-lgmp"
6627 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6628 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6629 #    ])
6630 #  ]
6631 #)
6632 #AC_SUBST(GMP_INC)
6633 #AC_SUBST(GMP_LIBS)
6634 #AC_SUBST(GMP_LDFLAGS)
6635 #AC_SUBST(GMP_SRC)
6636
6637 # End of GMP stuff
6638 # -----------------------------------------------------------------------
6639
6640
6641 # ---------------------------------------------------
6642 # Check for CWEB support/directory
6643 # ---------------------------------------------------
6644 #CWEB_SRC=
6645 #CWEB=/bin
6646 #local_cweb="no"
6647 #AC_ARG_WITH(cweb,
6648 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6649 #  [
6650 #     case "$with_cweb" in
6651 #     no) : ;;
6652 #     yes|*)
6653 #       if test "$with_cweb" != "yes"; then
6654 #         CWEB_INC="-I$with_cweb"
6655 #         CWEB_LIBS="-lcweb"
6656 #         CWEB_LDFLAGS="-L$with_cweb"
6657 #       else
6658 #          with_cweb="/usr/include"
6659 #       fi
6660 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6661 #          [ AC_MSG_RESULT(yes)
6662 #            AC_DEFINE(HAVE_CWEB)
6663 #            CWEB_LIBS="-lcweb"
6664 #            got_cweb="yes"
6665 #          ],
6666 #          [ AC_MSG_ERROR([*** cweb library missing])
6667 #          ]
6668 #       )
6669 #       ;;
6670 #     esac
6671 #  ],[
6672 #    # check for standard cweb library
6673 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6674 #    [ AC_MSG_RESULT(yes)
6675 #      AC_DEFINE(HAVE_CWEB)
6676 #      got_cweb="yes"
6677 #      CWEB_INC=
6678 #      CWEB_LIBS="-lcweb"
6679 #    ], [
6680 #      # Did not find starndard library, so use our own
6681 #      AC_MSG_RESULT(yes)
6682 #      AC_DEFINE(HAVE_CWEB)
6683 #      got_cweb="yes"
6684 #      local_cweb="yes"
6685 #      CWEB=${TOP_DIR}/depkgs/cweb
6686 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6687 #      CWEB_LIBS="-lcweb"
6688 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6689 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6690 #    ])
6691 #  ]
6692 #)
6693 #AC_SUBST(CWEB)
6694 #AC_SUBST(CWEB_INC)
6695 #AC_SUBST(CWEB_LIBS)
6696 #AC_SUBST(CWEB_LDFLAGS)
6697 #AC_SUBST(CWEB_SRC)
6698
6699 # End of CWEB stuff
6700 # -----------------------------------------------------------------------
6701
6702
6703
6704 # -----------------------------------------------------------
6705 # Check whether user wants TCP wrappers support (default off)
6706 # -----------------------------------------------------------
6707 TCPW_MSG="no"
6708
6709 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6710 if test "${with_tcp_wrappers+set}" = set; then
6711   withval="$with_tcp_wrappers"
6712
6713     if test "x$withval" != "xno" ; then
6714        saved_LIBS="$LIBS"
6715        LIBS="$saved_LIBS -lwrap"
6716        echo "$as_me:$LINENO: checking for libwrap" >&5
6717 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6718        cat >conftest.$ac_ext <<_ACEOF
6719 #line $LINENO "configure"
6720 /* confdefs.h.  */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h.  */
6725  #include <tcpd.h>
6726              int deny_severity = 0;
6727              int allow_severity = 0;
6728              struct request_info *req;
6729 int
6730 main ()
6731 {
6732  hosts_access(req);
6733   ;
6734   return 0;
6735 }
6736 _ACEOF
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6739   (eval $ac_link) 2>&5
6740   ac_status=$?
6741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); } &&
6743          { ac_try='test -s conftest$ac_exeext'
6744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745   (eval $ac_try) 2>&5
6746   ac_status=$?
6747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748   (exit $ac_status); }; }; then
6749
6750             echo "$as_me:$LINENO: result: yes" >&5
6751 echo "${ECHO_T}yes" >&6
6752             cat >>confdefs.h <<\_ACEOF
6753 #define HAVE_LIBWRAP 1
6754 _ACEOF
6755
6756             TCPW_MSG="yes"
6757
6758 else
6759   echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762
6763             LIBS="$saved_LIBS -lwrap -lnsl"
6764             cat >conftest.$ac_ext <<_ACEOF
6765 #line $LINENO "configure"
6766 /* confdefs.h.  */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h.  */
6771  #include <tcpd.h>
6772                  int deny_severity = 0;
6773                  int allow_severity = 0;
6774                  struct request_info *req;
6775 int
6776 main ()
6777 {
6778  hosts_access(req);
6779   ;
6780   return 0;
6781 }
6782 _ACEOF
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785   (eval $ac_link) 2>&5
6786   ac_status=$?
6787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788   (exit $ac_status); } &&
6789          { ac_try='test -s conftest$ac_exeext'
6790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791   (eval $ac_try) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); }; }; then
6795
6796                  echo "$as_me:$LINENO: result: yes" >&5
6797 echo "${ECHO_T}yes" >&6
6798                  cat >>confdefs.h <<\_ACEOF
6799 #define HAVE_LIBWRAP 1
6800 _ACEOF
6801
6802                  TCPW_MSG="yes"
6803
6804 else
6805   echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6807
6808 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6809 echo "$as_me: error: *** libwrap missing" >&2;}
6810    { (exit 1); exit 1; }; }
6811
6812 fi
6813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6814
6815 fi
6816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6817     fi
6818
6819
6820 fi;
6821
6822 # ------------------------------------------
6823 # Where to place working dir
6824 # ------------------------------------------
6825 working_dir=`eval echo ${prefix}/var/bacula/working`
6826
6827 # Check whether --with-working-dir or --without-working-dir was given.
6828 if test "${with_working_dir+set}" = set; then
6829   withval="$with_working_dir"
6830
6831        if test "x$withval" != "xno" ; then
6832               working_dir=$withval
6833        fi
6834
6835
6836 fi;
6837
6838
6839
6840
6841 # ------------------------------------------
6842 # Where to place scriptdir (script files)
6843 # ------------------------------------------
6844 scriptdir=`eval echo ${sysconfdir}`
6845
6846 # Check whether --with-scriptdir or --without-scriptdir was given.
6847 if test "${with_scriptdir+set}" = set; then
6848   withval="$with_scriptdir"
6849
6850        if test "x$withval" != "xno" ; then
6851               scriptdir=$withval
6852        fi
6853
6854
6855 fi;
6856
6857
6858
6859
6860 # ------------------------------------------
6861 # Where to send dump email
6862 # ------------------------------------------
6863 dump_email=root@localhost
6864
6865 # Check whether --with-dump-email or --without-dump-email was given.
6866 if test "${with_dump_email+set}" = set; then
6867   withval="$with_dump_email"
6868
6869        if test "x$withval" != "xno" ; then
6870               dump_email=$withval
6871        fi
6872
6873
6874 fi;
6875
6876
6877
6878 # ------------------------------------------
6879 # Where to send job email
6880 # ------------------------------------------
6881 job_email=root@localhost
6882
6883 # Check whether --with-job-email or --without-job-email was given.
6884 if test "${with_job_email+set}" = set; then
6885   withval="$with_job_email"
6886
6887        if test "x$withval" != "xno" ; then
6888               job_email=$withval
6889        fi
6890
6891
6892 fi;
6893
6894
6895
6896 # ------------------------------------------
6897 # Where to find smtp host
6898 # ------------------------------------------
6899 smtp_host=localhost
6900
6901 # Check whether --with-smtp_host or --without-smtp_host was given.
6902 if test "${with_smtp_host+set}" = set; then
6903   withval="$with_smtp_host"
6904
6905        if test "x$withval" != "xno" ; then
6906               smtp_host=$withval
6907        fi
6908
6909
6910 fi;
6911
6912
6913
6914
6915 # ------------------------------------
6916 # Where to place pid files
6917 # ------------------------------------
6918 piddir=/var/run
6919
6920 # Check whether --with-pid-dir or --without-pid-dir was given.
6921 if test "${with_pid_dir+set}" = set; then
6922   withval="$with_pid_dir"
6923
6924         if test "x$withval" != "xno" ; then
6925             piddir=$withval
6926         fi
6927
6928
6929 fi;
6930
6931 cat >>confdefs.h <<_ACEOF
6932 #define _PATH_BACULA_PIDDIR "$piddir"
6933 _ACEOF
6934
6935
6936
6937
6938 # ------------------------------------
6939 # Where to place subsys "lock file"
6940 # ------------------------------------
6941 subsysdir=/var/run/subsys
6942
6943 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6944 if test "${with_subsys_dir+set}" = set; then
6945   withval="$with_subsys_dir"
6946
6947         if test "x$withval" != "xno" ; then
6948             subsysdir=$withval
6949         fi
6950
6951
6952 fi;
6953
6954
6955
6956
6957
6958 # ------------------------------------
6959 # Where to start assigning ports
6960 # ------------------------------------
6961 baseport=9101
6962
6963 # Check whether --with-baseport or --without-baseport was given.
6964 if test "${with_baseport+set}" = set; then
6965   withval="$with_baseport"
6966
6967         if test "x$withval" != "xno" ; then
6968              baseport=$withval
6969         fi
6970
6971
6972 fi;
6973
6974
6975 dir_port=`expr $baseport`
6976 fd_port=`expr $baseport + 1`
6977 sd_port=`expr $fd_port + 1`
6978
6979
6980
6981
6982
6983
6984 # ------------------------------------------
6985 # Generate passwords
6986 # ------------------------------------------
6987 dir_password=
6988
6989 # Check whether --with-dir-password or --without-dir-password was given.
6990 if test "${with_dir_password+set}" = set; then
6991   withval="$with_dir_password"
6992
6993        if test "x$withval" != "xno" ; then
6994            dir_password=$withval
6995        fi
6996
6997
6998 fi;
6999
7000 if test "x$dir_password" = "x" ; then
7001    if test "x$OPENSSL" = "xnone" ; then
7002 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7003       key=`autoconf/randpass 33`
7004    else
7005       key=`openssl rand -base64 33`
7006    fi
7007    dir_password=$key
7008 fi
7009
7010 fd_password=
7011
7012 # Check whether --with-fd-password or --without-fd-password was given.
7013 if test "${with_fd_password+set}" = set; then
7014   withval="$with_fd_password"
7015
7016        if test "x$withval" != "xno" ; then
7017            fd_password=$withval
7018        fi
7019
7020
7021 fi;
7022
7023 if test "x$fd_password" = "x" ; then
7024    if test "x$OPENSSL" = "xnone" ; then
7025 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7026       key=`autoconf/randpass 37`
7027    else
7028       key=`openssl rand -base64 33`
7029    fi
7030    fd_password=$key
7031 fi
7032
7033 sd_password=
7034
7035 # Check whether --with-sd-password or --without-sd-password was given.
7036 if test "${with_sd_password+set}" = set; then
7037   withval="$with_sd_password"
7038
7039        if test "x$withval" != "xno" ; then
7040            sd_password=$withval
7041        fi
7042
7043
7044 fi;
7045
7046 if test "x$sd_password" = "x" ; then
7047    if test "x$OPENSSL" = "xnone" ; then
7048 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7049       key=`autoconf/randpass 41`
7050    else
7051       key=`openssl rand -base64 33`
7052    fi
7053    sd_password=$key
7054 fi
7055
7056 mon_dir_password=
7057
7058 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7059 if test "${with_mon_dir_password+set}" = set; then
7060   withval="$with_mon_dir_password"
7061
7062        if test "x$withval" != "xno" ; then
7063            mon_dir_password=$withval
7064        fi
7065
7066
7067 fi;
7068
7069 if test "x$mon_dir_password" = "x" ; then
7070    if test "x$OPENSSL" = "xnone" ; then
7071 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7072       key=`autoconf/randpass 33`
7073    else
7074       key=`openssl rand -base64 33`
7075    fi
7076    mon_dir_password=$key
7077 fi
7078
7079 mon_fd_password=
7080
7081 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7082 if test "${with_mon_fd_password+set}" = set; then
7083   withval="$with_mon_fd_password"
7084
7085        if test "x$withval" != "xno" ; then
7086            mon_fd_password=$withval
7087        fi
7088
7089
7090 fi;
7091
7092 if test "x$mon_fd_password" = "x" ; then
7093    if test "x$OPENSSL" = "xnone" ; then
7094 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7095       key=`autoconf/randpass 37`
7096    else
7097       key=`openssl rand -base64 33`
7098    fi
7099    mon_fd_password=$key
7100 fi
7101
7102 mon_sd_password=
7103
7104 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7105 if test "${with_mon_sd_password+set}" = set; then
7106   withval="$with_mon_sd_password"
7107
7108        if test "x$withval" != "xno" ; then
7109            mon_sd_password=$withval
7110        fi
7111
7112
7113 fi;
7114
7115 if test "x$mon_sd_password" = "x" ; then
7116    if test "x$OPENSSL" = "xnone" ; then
7117 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7118       key=`autoconf/randpass 41`
7119    else
7120       key=`openssl rand -base64 33`
7121    fi
7122    mon_sd_password=$key
7123 fi
7124
7125
7126
7127
7128
7129
7130
7131
7132 #
7133 # Handle users and groups for each daemon
7134 #
7135 dir_user=
7136
7137 # Check whether --with-dir_user or --without-dir_user was given.
7138 if test "${with_dir_user+set}" = set; then
7139   withval="$with_dir_user"
7140
7141         if test "x$withval" != "x" ; then
7142              dir_user=$withval
7143         fi
7144
7145
7146 fi;
7147
7148 dir_group=
7149
7150 # Check whether --with-dir_group or --without-dir_group was given.
7151 if test "${with_dir_group+set}" = set; then
7152   withval="$with_dir_group"
7153
7154         if test "x$withval" != "x" ; then
7155              dir_group=$withval
7156         fi
7157
7158
7159 fi;
7160
7161 sd_user=
7162
7163 # Check whether --with-sd_user or --without-sd_user was given.
7164 if test "${with_sd_user+set}" = set; then
7165   withval="$with_sd_user"
7166
7167         if test "x$withval" != "x" ; then
7168              sd_user=$withval
7169         fi
7170
7171
7172 fi;
7173
7174 sd_group=
7175
7176 # Check whether --with-sd_group or --without-sd_group was given.
7177 if test "${with_sd_group+set}" = set; then
7178   withval="$with_sd_group"
7179
7180         if test "x$withval" != "x" ; then
7181              sd_group=$withval
7182         fi
7183
7184
7185 fi;
7186
7187 fd_user=
7188
7189 # Check whether --with-fd_user or --without-fd_user was given.
7190 if test "${with_fd_user+set}" = set; then
7191   withval="$with_fd_user"
7192
7193         if test "x$withval" != "x" ; then
7194              fd_user=$withval
7195         fi
7196
7197
7198 fi;
7199
7200 fd_group=
7201
7202 # Check whether --with-fd_group or --without-fd_group was given.
7203 if test "${with_fd_group+set}" = set; then
7204   withval="$with_fd_group"
7205
7206         if test "x$withval" != "x" ; then
7207              fd_group=$withval
7208         fi
7209
7210
7211 fi;
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223 #
7224 # allow setting default executable permissions
7225 #
7226 SBINPERM=0754
7227
7228 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7229 if test "${with_sbin_perm+set}" = set; then
7230   withval="$with_sbin_perm"
7231
7232         if test "x$withval" != "x" ; then
7233             SBINPERM=$withval
7234         fi
7235
7236
7237 fi;
7238
7239
7240
7241 # ------------------------------------------------
7242 # Bacula check for various SQL database engines
7243 # ------------------------------------------------
7244
7245 db_found=no
7246 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7247 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7248
7249 # Check whether --with-postgresql or --without-postgresql was given.
7250 if test "${with_postgresql+set}" = set; then
7251   withval="$with_postgresql"
7252
7253   if test "$withval" != "no"; then
7254       if test "$db_found" = "yes"; then
7255           echo "$as_me:$LINENO: result: error" >&5
7256 echo "${ECHO_T}error" >&6
7257           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7258 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7259    { (exit 1); exit 1; }; };
7260       fi
7261       if test "$withval" = "yes"; then
7262           if test -f /usr/local/include/libpq-fe.h; then
7263               POSTGRESQL_INCDIR=/usr/local/include
7264               POSTGRESQL_LIBDIR=/usr/local/lib
7265               POSTGRESQL_BINDIR=/usr/local/bin
7266           elif test -f /usr/include/libpq-fe.h; then
7267               POSTGRESQL_INCDIR=/usr/include
7268               POSTGRESQL_LIBDIR=/usr/lib
7269               POSTGRESQL_BINDIR=/usr/bin
7270           elif test -f /usr/include/pgsql/libpq-fe.h; then
7271               POSTGRESQL_INCDIR=/usr/include/pgsql
7272               POSTGRESQL_LIBDIR=/usr/lib/pgsql
7273               POSTGRESQL_BINDIR=/usr/bin
7274           elif test -f /usr/include/postgresql/libpq-fe.h; then
7275               POSTGRESQL_INCDIR=/usr/include/postgresql
7276               POSTGRESQL_LIBDIR=/usr/lib/postgresql
7277               POSTGRESQL_BINDIR=/usr/bin
7278           else
7279               echo "$as_me:$LINENO: result: no" >&5
7280 echo "${ECHO_T}no" >&6
7281               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7282 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7283    { (exit 1); exit 1; }; }
7284           fi
7285       elif test -f $withval/include/libpq-fe.h; then
7286           POSTGRESQL_INCDIR=$withval/include
7287           POSTGRESQL_LIBDIR=$withval/lib
7288           POSTGRESQL_BINDIR=$withval/bin
7289       else
7290           echo "$as_me:$LINENO: result: no" >&5
7291 echo "${ECHO_T}no" >&6
7292           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7293 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7294    { (exit 1); exit 1; }; }
7295       fi
7296       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7297       echo "$as_me:$LINENO: checking for crypt" >&5
7298 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7299 if test "${ac_cv_func_crypt+set}" = set; then
7300   echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302   cat >conftest.$ac_ext <<_ACEOF
7303 #line $LINENO "configure"
7304 /* confdefs.h.  */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h.  */
7309 /* System header to define __stub macros and hopefully few prototypes,
7310     which can conflict with char crypt (); below.
7311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7312     <limits.h> exists even on freestanding compilers.  */
7313 #ifdef __STDC__
7314 # include <limits.h>
7315 #else
7316 # include <assert.h>
7317 #endif
7318 /* Override any gcc2 internal prototype to avoid an error.  */
7319 #ifdef __cplusplus
7320 extern "C"
7321 {
7322 #endif
7323 /* We use char because int might match the return type of a gcc2
7324    builtin and then its argument prototype would still apply.  */
7325 char crypt ();
7326 /* The GNU C library defines this for functions which it implements
7327     to always fail with ENOSYS.  Some functions are actually named
7328     something starting with __ and the normal name is an alias.  */
7329 #if defined (__stub_crypt) || defined (__stub___crypt)
7330 choke me
7331 #else
7332 char (*f) () = crypt;
7333 #endif
7334 #ifdef __cplusplus
7335 }
7336 #endif
7337
7338 int
7339 main ()
7340 {
7341 return f != crypt;
7342   ;
7343   return 0;
7344 }
7345 _ACEOF
7346 rm -f conftest.$ac_objext conftest$ac_exeext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7348   (eval $ac_link) 2>&5
7349   ac_status=$?
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); } &&
7352          { ac_try='test -s conftest$ac_exeext'
7353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354   (eval $ac_try) 2>&5
7355   ac_status=$?
7356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357   (exit $ac_status); }; }; then
7358   ac_cv_func_crypt=yes
7359 else
7360   echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363 ac_cv_func_crypt=no
7364 fi
7365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7366 fi
7367 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7368 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7369 if test $ac_cv_func_crypt = yes; then
7370   :
7371 else
7372   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7373 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7374 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377   ac_check_lib_save_LIBS=$LIBS
7378 LIBS="-lcrypt  $LIBS"
7379 cat >conftest.$ac_ext <<_ACEOF
7380 #line $LINENO "configure"
7381 /* confdefs.h.  */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h.  */
7386
7387 /* Override any gcc2 internal prototype to avoid an error.  */
7388 #ifdef __cplusplus
7389 extern "C"
7390 #endif
7391 /* We use char because int might match the return type of a gcc2
7392    builtin and then its argument prototype would still apply.  */
7393 char crypt ();
7394 int
7395 main ()
7396 {
7397 crypt ();
7398   ;
7399   return 0;
7400 }
7401 _ACEOF
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7404   (eval $ac_link) 2>&5
7405   ac_status=$?
7406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407   (exit $ac_status); } &&
7408          { ac_try='test -s conftest$ac_exeext'
7409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410   (eval $ac_try) 2>&5
7411   ac_status=$?
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); }; }; then
7414   ac_cv_lib_crypt_crypt=yes
7415 else
7416   echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7418
7419 ac_cv_lib_crypt_crypt=no
7420 fi
7421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7422 LIBS=$ac_check_lib_save_LIBS
7423 fi
7424 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7425 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7426 if test $ac_cv_lib_crypt_crypt = yes; then
7427   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7428 fi
7429
7430 fi
7431
7432       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7433       SQL_LFLAGS=$POSTGRESQL_LFLAGS
7434       SQL_BINDIR=$POSTGRESQL_BINDIR
7435       cat >>confdefs.h <<\_ACEOF
7436 #define HAVE_POSTGRESQL 1
7437 _ACEOF
7438
7439       echo "$as_me:$LINENO: result: yes" >&5
7440 echo "${ECHO_T}yes" >&6
7441       db_found=yes
7442       support_postgresql=yes
7443       db_name=PostgreSQL
7444       DB_NAME=postgresql
7445   else
7446       echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6
7448   fi
7449
7450 else
7451
7452   echo "$as_me:$LINENO: result: no" >&5
7453 echo "${ECHO_T}no" >&6
7454
7455 fi;
7456
7457
7458
7459
7460
7461
7462
7463 db_found=no
7464 echo "$as_me:$LINENO: checking for MySQL support" >&5
7465 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7466
7467 # Check whether --with-mysql or --without-mysql was given.
7468 if test "${with_mysql+set}" = set; then
7469   withval="$with_mysql"
7470
7471   if test "$withval" != "no"; then
7472         if test "$withval" = "yes"; then
7473                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7474                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7475                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7476                         MYSQL_BINDIR=/usr/local/mysql/bin
7477                 elif test -f /usr/include/mysql/mysql.h; then
7478                         MYSQL_INCDIR=/usr/include/mysql
7479                         MYSQL_LIBDIR=/usr/lib/mysql
7480                         MYSQL_BINDIR=/usr/bin
7481                 elif test -f /usr/include/mysql.h; then
7482                         MYSQL_INCDIR=/usr/include
7483                         MYSQL_LIBDIR=/usr/lib
7484                         MYSQL_BINDIR=/usr/bin
7485                 elif test -f /usr/local/include/mysql/mysql.h; then
7486                         MYSQL_INCDIR=/usr/local/include/mysql
7487                         MYSQL_LIBDIR=/usr/local/lib/mysql
7488                         MYSQL_BINDIR=/usr/local/bin
7489                 elif test -f /usr/local/include/mysql.h; then
7490                         MYSQL_INCDIR=/usr/local/include
7491                         MYSQL_LIBDIR=/usr/local/lib
7492                         MYSQL_BINDIR=/usr/local/bin
7493                 else
7494                    echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7496                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7497 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7498    { (exit 1); exit 1; }; }
7499                 fi
7500         else
7501                 if test -f $withval/include/mysql/mysql.h; then
7502                         MYSQL_INCDIR=$withval/include/mysql
7503                         MYSQL_LIBDIR=$withval/lib/mysql
7504                         MYSQL_BINDIR=$withval/bin
7505                 elif test -f $withval/include/mysql.h; then
7506                         MYSQL_INCDIR=$withval/include
7507                         MYSQL_LIBDIR=$withval/lib
7508                         MYSQL_BINDIR=$withval/bin
7509                 else
7510                    echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6
7512                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7513 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7514    { (exit 1); exit 1; }; }
7515                 fi
7516         fi
7517     SQL_INCLUDE=-I$MYSQL_INCDIR
7518     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7519        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7520        cat >>confdefs.h <<\_ACEOF
7521 #define HAVE_THREAD_SAFE_MYSQL 1
7522 _ACEOF
7523
7524     else
7525        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7526     fi
7527     SQL_BINDIR=$MYSQL_BINDIR
7528
7529     cat >>confdefs.h <<\_ACEOF
7530 #define HAVE_MYSQL 1
7531 _ACEOF
7532
7533     echo "$as_me:$LINENO: result: yes" >&5
7534 echo "${ECHO_T}yes" >&6
7535     db_found=yes
7536     support_mysql=yes
7537     db_name=MySQL
7538     DB_NAME=mysql
7539
7540   else
7541         echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6
7543   fi
7544
7545
7546 fi;
7547
7548
7549 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7550 if test "${with_embedded_mysql+set}" = set; then
7551   withval="$with_embedded_mysql"
7552
7553   if test "$withval" != "no"; then
7554         if test "$withval" = "yes"; then
7555                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7556                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7557                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7558                         MYSQL_BINDIR=/usr/local/mysql/bin
7559                 elif test -f /usr/include/mysql/mysql.h; then
7560                         MYSQL_INCDIR=/usr/include/mysql
7561                         MYSQL_LIBDIR=/usr/lib/mysql
7562                         MYSQL_BINDIR=/usr/bin
7563                 elif test -f /usr/include/mysql.h; then
7564                         MYSQL_INCDIR=/usr/include
7565                         MYSQL_LIBDIR=/usr/lib
7566                         MYSQL_BINDIR=/usr/bin
7567                 elif test -f /usr/local/include/mysql/mysql.h; then
7568                         MYSQL_INCDIR=/usr/local/include/mysql
7569                         MYSQL_LIBDIR=/usr/local/lib/mysql
7570                         MYSQL_BINDIR=/usr/local/bin
7571                 elif test -f /usr/local/include/mysql.h; then
7572                         MYSQL_INCDIR=/usr/local/include
7573                         MYSQL_LIBDIR=/usr/local/lib
7574                         MYSQL_BINDIR=/usr/local/bin
7575                 else
7576                    echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6
7578                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7579 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7580    { (exit 1); exit 1; }; }
7581                 fi
7582         else
7583                 if test -f $withval/include/mysql/mysql.h; then
7584                         MYSQL_INCDIR=$withval/include/mysql
7585                         MYSQL_LIBDIR=$withval/lib/mysql
7586                         MYSQL_BINDIR=$withval/bin
7587                 elif test -f $withval/include/mysql.h; then
7588                         MYSQL_INCDIR=$withval/include
7589                         MYSQL_LIBDIR=$withval/lib
7590                         MYSQL_BINDIR=$withval/bin
7591                 else
7592                    echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6
7594                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7595 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7596    { (exit 1); exit 1; }; }
7597                 fi
7598         fi
7599     SQL_INCLUDE=-I$MYSQL_INCDIR
7600     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7601     SQL_BINDIR=$MYSQL_BINDIR
7602
7603     cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_MYSQL 1
7605 _ACEOF
7606
7607     cat >>confdefs.h <<\_ACEOF
7608 #define HAVE_EMBEDDED_MYSQL 1
7609 _ACEOF
7610
7611     echo "$as_me:$LINENO: result: yes" >&5
7612 echo "${ECHO_T}yes" >&6
7613     db_found=yes
7614     support_mysql=yes
7615     db_name=MySQL
7616     DB_NAME=mysql
7617
7618   else
7619         echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6
7621   fi
7622
7623
7624 fi;
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634 db_found=no
7635 echo "$as_me:$LINENO: checking for SQLite support" >&5
7636 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7637
7638 # Check whether --with-sqlite or --without-sqlite was given.
7639 if test "${with_sqlite+set}" = set; then
7640   withval="$with_sqlite"
7641
7642   if test "$withval" != "no"; then
7643      if test "$withval" = "yes"; then
7644         if test -f /usr/local/include/sqlite.h; then
7645            SQLITE_INCDIR=/usr/local/include
7646            SQLITE_LIBDIR=/usr/local/lib
7647            SQLITE_BINDIR=/usr/local/bin
7648         elif test -f /usr/include/sqlite.h; then
7649            SQLITE_INCDIR=/usr/include
7650            SQLITE_LIBDIR=/usr/lib
7651            SQLITE_BINDIR=/usr/bin
7652         elif test -f $prefix/include/sqlite.h; then
7653            SQLITE_INCDIR=$prefix/include
7654            SQLITE_LIBDIR=$prefix/lib
7655            SQLITE_BINDIR=$prefix/bin
7656         else
7657            echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6
7659            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7660 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7661    { (exit 1); exit 1; }; }
7662         fi
7663      else
7664         if test -f $withval/sqlite.h; then
7665            SQLITE_INCDIR=$withval
7666            SQLITE_LIBDIR=$withval
7667            SQLITE_BINDIR=$withval
7668         elif test -f $withval/include/sqlite.h; then
7669            SQLITE_INCDIR=$withval/include
7670            SQLITE_LIBDIR=$withval/lib
7671            SQLITE_BINDIR=$withval/bin
7672         else
7673            echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6
7675            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7676 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7677    { (exit 1); exit 1; }; }
7678         fi
7679      fi
7680      SQL_INCLUDE=-I$SQLITE_INCDIR
7681      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7682      SQL_BINDIR=$SQLITE_BINDIR
7683
7684      cat >>confdefs.h <<\_ACEOF
7685 #define HAVE_SQLITE 1
7686 _ACEOF
7687
7688      echo "$as_me:$LINENO: result: yes" >&5
7689 echo "${ECHO_T}yes" >&6
7690      db_found=yes
7691      support_sqlite=yes
7692      db_name=SQLite
7693      DB_NAME=sqlite
7694
7695   else
7696      echo "$as_me:$LINENO: result: no" >&5
7697 echo "${ECHO_T}no" >&6
7698   fi
7699
7700 else
7701
7702   echo "$as_me:$LINENO: result: no" >&5
7703 echo "${ECHO_T}no" >&6
7704
7705 fi;
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715 cat >>confdefs.h <<\_ACEOF
7716 #define PROTOTYPES 1
7717 _ACEOF
7718
7719
7720 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7721     if test -z "$CCOPTS"; then
7722         CCOPTS='-g -O2 -Wall'
7723     fi
7724     CFLAGS="$CCOPTS"
7725 fi
7726
7727
7728
7729
7730 largefile_support="no"
7731
7732    # Check whether --enable-largefile or --disable-largefile was given.
7733 if test "${enable_largefile+set}" = set; then
7734   enableval="$enable_largefile"
7735
7736 fi;
7737    if test "$enable_largefile" != no; then
7738      if test -n "$ac_tool_prefix"; then
7739   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7740 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7741 echo "$as_me:$LINENO: checking for $ac_word" >&5
7742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7743 if test "${ac_cv_prog_GETCONF+set}" = set; then
7744   echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746   if test -n "$GETCONF"; then
7747   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7748 else
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 for as_dir in $PATH
7751 do
7752   IFS=$as_save_IFS
7753   test -z "$as_dir" && as_dir=.
7754   for ac_exec_ext in '' $ac_executable_extensions; do
7755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7758     break 2
7759   fi
7760 done
7761 done
7762
7763 fi
7764 fi
7765 GETCONF=$ac_cv_prog_GETCONF
7766 if test -n "$GETCONF"; then
7767   echo "$as_me:$LINENO: result: $GETCONF" >&5
7768 echo "${ECHO_T}$GETCONF" >&6
7769 else
7770   echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6
7772 fi
7773
7774 fi
7775 if test -z "$ac_cv_prog_GETCONF"; then
7776   ac_ct_GETCONF=$GETCONF
7777   # Extract the first word of "getconf", so it can be a program name with args.
7778 set dummy getconf; ac_word=$2
7779 echo "$as_me:$LINENO: checking for $ac_word" >&5
7780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7782   echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784   if test -n "$ac_ct_GETCONF"; then
7785   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7786 else
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7789 do
7790   IFS=$as_save_IFS
7791   test -z "$as_dir" && as_dir=.
7792   for ac_exec_ext in '' $ac_executable_extensions; do
7793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794     ac_cv_prog_ac_ct_GETCONF="getconf"
7795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796     break 2
7797   fi
7798 done
7799 done
7800
7801 fi
7802 fi
7803 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7804 if test -n "$ac_ct_GETCONF"; then
7805   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7806 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7807 else
7808   echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6
7810 fi
7811
7812   GETCONF=$ac_ct_GETCONF
7813 else
7814   GETCONF="$ac_cv_prog_GETCONF"
7815 fi
7816
7817      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7818 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7819 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7820   echo $ECHO_N "(cached) $ECHO_C" >&6
7821 else
7822   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7823         ac_cv_sys_largefile_CFLAGS=no
7824         case "$host_os" in
7825            # IRIX 6.2 and later require cc -n32.
7826            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7827              if test "$GCC" != yes; then
7828                ac_cv_sys_largefile_CFLAGS=-n32
7829              fi
7830              ac_save_CC="$CC"
7831              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7832              cat >conftest.$ac_ext <<_ACEOF
7833 #line $LINENO "configure"
7834 /* confdefs.h.  */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h.  */
7839
7840 int
7841 main ()
7842 {
7843
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7850   (eval $ac_link) 2>&5
7851   ac_status=$?
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); } &&
7854          { ac_try='test -s conftest$ac_exeext'
7855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7856   (eval $ac_try) 2>&5
7857   ac_status=$?
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); }; }; then
7860   :
7861 else
7862   echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7864
7865 ac_cv_sys_largefile_CFLAGS=no
7866 fi
7867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7868              CC="$ac_save_CC"
7869            esac
7870       }
7871 fi
7872 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7873 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7874      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7875 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7876 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7877   echo $ECHO_N "(cached) $ECHO_C" >&6
7878 else
7879   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7880         ac_cv_sys_largefile_LDFLAGS=no
7881
7882       }
7883 fi
7884 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7885 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7886      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7887 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7888 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7889   echo $ECHO_N "(cached) $ECHO_C" >&6
7890 else
7891   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7892         ac_cv_sys_largefile_LIBS=no
7893
7894       }
7895 fi
7896 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7897 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7898
7899      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7900        case "$ac_flag" in
7901        no) ;;
7902        -D_FILE_OFFSET_BITS=*) ;;
7903        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7904        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7905        -D?* | -I?*)
7906          case "$ac_flag" in
7907    no) ;;
7908    ?*)
7909      case "$CPPFLAGS" in
7910      '') CPPFLAGS="$ac_flag" ;;
7911      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7912      esac ;;
7913    esac ;;
7914        *)
7915          case "$ac_flag" in
7916    no) ;;
7917    ?*)
7918      case "$CFLAGS" in
7919      '') CFLAGS="$ac_flag" ;;
7920      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7921      esac ;;
7922    esac ;;
7923        esac
7924      done
7925      case "$ac_cv_sys_largefile_LDFLAGS" in
7926    no) ;;
7927    ?*)
7928      case "$LDFLAGS" in
7929      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7930      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7931      esac ;;
7932    esac
7933      case "$ac_cv_sys_largefile_LIBS" in
7934    no) ;;
7935    ?*)
7936      case "$LIBS" in
7937      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7938      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7939      esac ;;
7940    esac
7941      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7942 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7943 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7944   echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946   ac_cv_sys_file_offset_bits=no
7947       case "$host_os" in
7948         # HP-UX 10.20 and later
7949         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7950           ac_cv_sys_file_offset_bits=64 ;;
7951         esac
7952       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7953         case "$ac_flag" in
7954         -D_FILE_OFFSET_BITS)
7955           ac_cv_sys_file_offset_bits=1 ;;
7956         -D_FILE_OFFSET_BITS=*)
7957           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7958         esac
7959       done
7960
7961 fi
7962 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7963 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7964    if test "$ac_cv_sys_file_offset_bits" != no; then
7965
7966 cat >>confdefs.h <<_ACEOF
7967 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7968 _ACEOF
7969
7970    fi
7971      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7972 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7973 if test "${ac_cv_sys_largefile_source+set}" = set; then
7974   echo $ECHO_N "(cached) $ECHO_C" >&6
7975 else
7976   ac_cv_sys_largefile_source=no
7977       case "$host_os" in
7978         # HP-UX 10.20 and later
7979         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7980           ac_cv_sys_largefile_source=1 ;;
7981         esac
7982       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7983         case "$ac_flag" in
7984         -D_LARGEFILE_SOURCE)
7985           ac_cv_sys_largefile_source=1 ;;
7986         -D_LARGEFILE_SOURCE=*)
7987           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7988         esac
7989       done
7990
7991 fi
7992 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7993 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7994    if test "$ac_cv_sys_largefile_source" != no; then
7995
7996 cat >>confdefs.h <<_ACEOF
7997 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7998 _ACEOF
7999
8000    fi
8001      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8002 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8003 if test "${ac_cv_sys_large_files+set}" = set; then
8004   echo $ECHO_N "(cached) $ECHO_C" >&6
8005 else
8006   ac_cv_sys_large_files=no
8007       case "$host_os" in
8008         # AIX 4.2 and later
8009         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8010           ac_cv_sys_large_files=1 ;;
8011         esac
8012       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8013         case "$ac_flag" in
8014         -D_LARGE_FILES)
8015           ac_cv_sys_large_files=1 ;;
8016         -D_LARGE_FILES=*)
8017           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8018         esac
8019       done
8020
8021 fi
8022 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8023 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8024    if test "$ac_cv_sys_large_files" != no; then
8025
8026 cat >>confdefs.h <<_ACEOF
8027 #define _LARGE_FILES $ac_cv_sys_large_files
8028 _ACEOF
8029
8030    fi
8031    fi
8032
8033
8034
8035 echo "$as_me:$LINENO: checking for X" >&5
8036 echo $ECHO_N "checking for X... $ECHO_C" >&6
8037
8038
8039 # Check whether --with-x or --without-x was given.
8040 if test "${with_x+set}" = set; then
8041   withval="$with_x"
8042
8043 fi;
8044 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8045 if test "x$with_x" = xno; then
8046   # The user explicitly disabled X.
8047   have_x=disabled
8048 else
8049   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8050     # Both variables are already set.
8051     have_x=yes
8052   else
8053     if test "${ac_cv_have_x+set}" = set; then
8054   echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056   # One or both of the vars are not set, and there is no cached value.
8057 ac_x_includes=no ac_x_libraries=no
8058 rm -fr conftest.dir
8059 if mkdir conftest.dir; then
8060   cd conftest.dir
8061   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8062   cat >Imakefile <<'_ACEOF'
8063 acfindx:
8064         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8065 _ACEOF
8066   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8067     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8068     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8069     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8070     for ac_extension in a so sl; do
8071       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8072          test -f $ac_im_libdir/libX11.$ac_extension; then
8073         ac_im_usrlibdir=$ac_im_libdir; break
8074       fi
8075     done
8076     # Screen out bogus values from the imake configuration.  They are
8077     # bogus both because they are the default anyway, and because
8078     # using them would break gcc on systems where it needs fixed includes.
8079     case $ac_im_incroot in
8080         /usr/include) ;;
8081         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8082     esac
8083     case $ac_im_usrlibdir in
8084         /usr/lib | /lib) ;;
8085         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8086     esac
8087   fi
8088   cd ..
8089   rm -fr conftest.dir
8090 fi
8091
8092 # Standard set of common directories for X headers.
8093 # Check X11 before X11Rn because it is often a symlink to the current release.
8094 ac_x_header_dirs='
8095 /usr/X11/include
8096 /usr/X11R6/include
8097 /usr/X11R5/include
8098 /usr/X11R4/include
8099
8100 /usr/include/X11
8101 /usr/include/X11R6
8102 /usr/include/X11R5
8103 /usr/include/X11R4
8104
8105 /usr/local/X11/include
8106 /usr/local/X11R6/include
8107 /usr/local/X11R5/include
8108 /usr/local/X11R4/include
8109
8110 /usr/local/include/X11
8111 /usr/local/include/X11R6
8112 /usr/local/include/X11R5
8113 /usr/local/include/X11R4
8114
8115 /usr/X386/include
8116 /usr/x386/include
8117 /usr/XFree86/include/X11
8118
8119 /usr/include
8120 /usr/local/include
8121 /usr/unsupported/include
8122 /usr/athena/include
8123 /usr/local/x11r5/include
8124 /usr/lpp/Xamples/include
8125
8126 /usr/openwin/include
8127 /usr/openwin/share/include'
8128
8129 if test "$ac_x_includes" = no; then
8130   # Guess where to find include files, by looking for Intrinsic.h.
8131   # First, try using that file with no special directory specified.
8132   cat >conftest.$ac_ext <<_ACEOF
8133 #line $LINENO "configure"
8134 /* confdefs.h.  */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h.  */
8139 #include <X11/Intrinsic.h>
8140 _ACEOF
8141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8142   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8143   ac_status=$?
8144   grep -v '^ *+' conftest.er1 >conftest.err
8145   rm -f conftest.er1
8146   cat conftest.err >&5
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); } >/dev/null; then
8149   if test -s conftest.err; then
8150     ac_cpp_err=$ac_c_preproc_warn_flag
8151   else
8152     ac_cpp_err=
8153   fi
8154 else
8155   ac_cpp_err=yes
8156 fi
8157 if test -z "$ac_cpp_err"; then
8158   # We can compile using X headers with no special include directory.
8159 ac_x_includes=
8160 else
8161   echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8163
8164   for ac_dir in $ac_x_header_dirs; do
8165   if test -r "$ac_dir/X11/Intrinsic.h"; then
8166     ac_x_includes=$ac_dir
8167     break
8168   fi
8169 done
8170 fi
8171 rm -f conftest.err conftest.$ac_ext
8172 fi # $ac_x_includes = no
8173
8174 if test "$ac_x_libraries" = no; then
8175   # Check for the libraries.
8176   # See if we find them without any special options.
8177   # Don't add to $LIBS permanently.
8178   ac_save_LIBS=$LIBS
8179   LIBS="-lXt $LIBS"
8180   cat >conftest.$ac_ext <<_ACEOF
8181 #line $LINENO "configure"
8182 /* confdefs.h.  */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h.  */
8187 #include <X11/Intrinsic.h>
8188 int
8189 main ()
8190 {
8191 XtMalloc (0)
8192   ;
8193   return 0;
8194 }
8195 _ACEOF
8196 rm -f conftest.$ac_objext conftest$ac_exeext
8197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8198   (eval $ac_link) 2>&5
8199   ac_status=$?
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); } &&
8202          { ac_try='test -s conftest$ac_exeext'
8203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204   (eval $ac_try) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); }; }; then
8208   LIBS=$ac_save_LIBS
8209 # We can link X programs with no special library path.
8210 ac_x_libraries=
8211 else
8212   echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8214
8215 LIBS=$ac_save_LIBS
8216 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8217 do
8218   # Don't even attempt the hair of trying to link an X program!
8219   for ac_extension in a so sl; do
8220     if test -r $ac_dir/libXt.$ac_extension; then
8221       ac_x_libraries=$ac_dir
8222       break 2
8223     fi
8224   done
8225 done
8226 fi
8227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8228 fi # $ac_x_libraries = no
8229
8230 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8231   # Didn't find X anywhere.  Cache the known absence of X.
8232   ac_cv_have_x="have_x=no"
8233 else
8234   # Record where we found X for the cache.
8235   ac_cv_have_x="have_x=yes \
8236                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8237 fi
8238 fi
8239
8240   fi
8241   eval "$ac_cv_have_x"
8242 fi # $with_x != no
8243
8244 if test "$have_x" != yes; then
8245   echo "$as_me:$LINENO: result: $have_x" >&5
8246 echo "${ECHO_T}$have_x" >&6
8247   no_x=yes
8248 else
8249   # If each of the values was on the command line, it overrides each guess.
8250   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8251   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8252   # Update the cache value to reflect the command line values.
8253   ac_cv_have_x="have_x=yes \
8254                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8255   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8256 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8257 fi
8258
8259 if test "$no_x" = yes; then
8260   # Not all programs may use this symbol, but it does not hurt to define it.
8261
8262 cat >>confdefs.h <<\_ACEOF
8263 #define X_DISPLAY_MISSING 1
8264 _ACEOF
8265
8266   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8267 else
8268   if test -n "$x_includes"; then
8269     X_CFLAGS="$X_CFLAGS -I$x_includes"
8270   fi
8271
8272   # It would also be nice to do this for all -L options, not just this one.
8273   if test -n "$x_libraries"; then
8274     X_LIBS="$X_LIBS -L$x_libraries"
8275     # For Solaris; some versions of Sun CC require a space after -R and
8276     # others require no space.  Words are not sufficient . . . .
8277     case `(uname -sr) 2>/dev/null` in
8278     "SunOS 5"*)
8279       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8280 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8281       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8282       cat >conftest.$ac_ext <<_ACEOF
8283 #line $LINENO "configure"
8284 /* confdefs.h.  */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h.  */
8289
8290 int
8291 main ()
8292 {
8293
8294   ;
8295   return 0;
8296 }
8297 _ACEOF
8298 rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8300   (eval $ac_link) 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); } &&
8304          { ac_try='test -s conftest$ac_exeext'
8305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8306   (eval $ac_try) 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); }; }; then
8310   ac_R_nospace=yes
8311 else
8312   echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8314
8315 ac_R_nospace=no
8316 fi
8317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8318       if test $ac_R_nospace = yes; then
8319         echo "$as_me:$LINENO: result: no" >&5
8320 echo "${ECHO_T}no" >&6
8321         X_LIBS="$X_LIBS -R$x_libraries"
8322       else
8323         LIBS="$ac_xsave_LIBS -R $x_libraries"
8324         cat >conftest.$ac_ext <<_ACEOF
8325 #line $LINENO "configure"
8326 /* confdefs.h.  */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h.  */
8331
8332 int
8333 main ()
8334 {
8335
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_R_space=yes
8353 else
8354   echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8356
8357 ac_R_space=no
8358 fi
8359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8360         if test $ac_R_space = yes; then
8361           echo "$as_me:$LINENO: result: yes" >&5
8362 echo "${ECHO_T}yes" >&6
8363           X_LIBS="$X_LIBS -R $x_libraries"
8364         else
8365           echo "$as_me:$LINENO: result: neither works" >&5
8366 echo "${ECHO_T}neither works" >&6
8367         fi
8368       fi
8369       LIBS=$ac_xsave_LIBS
8370     esac
8371   fi
8372
8373   # Check for system-dependent libraries X programs must link with.
8374   # Do this before checking for the system-independent R6 libraries
8375   # (-lICE), since we may need -lsocket or whatever for X linking.
8376
8377   if test "$ISC" = yes; then
8378     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8379   else
8380     # Martyn Johnson says this is needed for Ultrix, if the X
8381     # libraries were built with DECnet support.  And Karl Berry says
8382     # the Alpha needs dnet_stub (dnet does not exist).
8383     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8384     cat >conftest.$ac_ext <<_ACEOF
8385 #line $LINENO "configure"
8386 /* confdefs.h.  */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h.  */
8391
8392 /* Override any gcc2 internal prototype to avoid an error.  */
8393 #ifdef __cplusplus
8394 extern "C"
8395 #endif
8396 /* We use char because int might match the return type of a gcc2
8397    builtin and then its argument prototype would still apply.  */
8398 char XOpenDisplay ();
8399 int
8400 main ()
8401 {
8402 XOpenDisplay ();
8403   ;
8404   return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409   (eval $ac_link) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } &&
8413          { ac_try='test -s conftest$ac_exeext'
8414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8415   (eval $ac_try) 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); }; }; then
8419   :
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8425 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8426 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8427   echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429   ac_check_lib_save_LIBS=$LIBS
8430 LIBS="-ldnet  $LIBS"
8431 cat >conftest.$ac_ext <<_ACEOF
8432 #line $LINENO "configure"
8433 /* confdefs.h.  */
8434 _ACEOF
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h.  */
8438
8439 /* Override any gcc2 internal prototype to avoid an error.  */
8440 #ifdef __cplusplus
8441 extern "C"
8442 #endif
8443 /* We use char because int might match the return type of a gcc2
8444    builtin and then its argument prototype would still apply.  */
8445 char dnet_ntoa ();
8446 int
8447 main ()
8448 {
8449 dnet_ntoa ();
8450   ;
8451   return 0;
8452 }
8453 _ACEOF
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456   (eval $ac_link) 2>&5
8457   ac_status=$?
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); } &&
8460          { ac_try='test -s conftest$ac_exeext'
8461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462   (eval $ac_try) 2>&5
8463   ac_status=$?
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); }; }; then
8466   ac_cv_lib_dnet_dnet_ntoa=yes
8467 else
8468   echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8470
8471 ac_cv_lib_dnet_dnet_ntoa=no
8472 fi
8473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8474 LIBS=$ac_check_lib_save_LIBS
8475 fi
8476 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8477 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8478 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8479   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8480 fi
8481
8482     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8483       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8484 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8485 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8486   echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488   ac_check_lib_save_LIBS=$LIBS
8489 LIBS="-ldnet_stub  $LIBS"
8490 cat >conftest.$ac_ext <<_ACEOF
8491 #line $LINENO "configure"
8492 /* confdefs.h.  */
8493 _ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h.  */
8497
8498 /* Override any gcc2 internal prototype to avoid an error.  */
8499 #ifdef __cplusplus
8500 extern "C"
8501 #endif
8502 /* We use char because int might match the return type of a gcc2
8503    builtin and then its argument prototype would still apply.  */
8504 char dnet_ntoa ();
8505 int
8506 main ()
8507 {
8508 dnet_ntoa ();
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515   (eval $ac_link) 2>&5
8516   ac_status=$?
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); } &&
8519          { ac_try='test -s conftest$ac_exeext'
8520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521   (eval $ac_try) 2>&5
8522   ac_status=$?
8523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); }; }; then
8525   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8526 else
8527   echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8529
8530 ac_cv_lib_dnet_stub_dnet_ntoa=no
8531 fi
8532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8533 LIBS=$ac_check_lib_save_LIBS
8534 fi
8535 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8536 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8537 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8538   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8539 fi
8540
8541     fi
8542 fi
8543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8544     LIBS="$ac_xsave_LIBS"
8545
8546     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8547     # to get the SysV transport functions.
8548     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8549     # needs -lnsl.
8550     # The nsl library prevents programs from opening the X display
8551     # on Irix 5.2, according to T.E. Dickey.
8552     # The functions gethostbyname, getservbyname, and inet_addr are
8553     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8554     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8555 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8556 if test "${ac_cv_func_gethostbyname+set}" = set; then
8557   echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559   cat >conftest.$ac_ext <<_ACEOF
8560 #line $LINENO "configure"
8561 /* confdefs.h.  */
8562 _ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h.  */
8566 /* System header to define __stub macros and hopefully few prototypes,
8567     which can conflict with char gethostbyname (); below.
8568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8569     <limits.h> exists even on freestanding compilers.  */
8570 #ifdef __STDC__
8571 # include <limits.h>
8572 #else
8573 # include <assert.h>
8574 #endif
8575 /* Override any gcc2 internal prototype to avoid an error.  */
8576 #ifdef __cplusplus
8577 extern "C"
8578 {
8579 #endif
8580 /* We use char because int might match the return type of a gcc2
8581    builtin and then its argument prototype would still apply.  */
8582 char gethostbyname ();
8583 /* The GNU C library defines this for functions which it implements
8584     to always fail with ENOSYS.  Some functions are actually named
8585     something starting with __ and the normal name is an alias.  */
8586 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8587 choke me
8588 #else
8589 char (*f) () = gethostbyname;
8590 #endif
8591 #ifdef __cplusplus
8592 }
8593 #endif
8594
8595 int
8596 main ()
8597 {
8598 return f != 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_func_gethostbyname=yes
8616 else
8617   echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620 ac_cv_func_gethostbyname=no
8621 fi
8622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8623 fi
8624 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8625 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8626
8627     if test $ac_cv_func_gethostbyname = no; then
8628       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8629 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8630 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8631   echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633   ac_check_lib_save_LIBS=$LIBS
8634 LIBS="-lnsl  $LIBS"
8635 cat >conftest.$ac_ext <<_ACEOF
8636 #line $LINENO "configure"
8637 /* confdefs.h.  */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h.  */
8642
8643 /* Override any gcc2 internal prototype to avoid an error.  */
8644 #ifdef __cplusplus
8645 extern "C"
8646 #endif
8647 /* We use char because int might match the return type of a gcc2
8648    builtin and then its argument prototype would still apply.  */
8649 char gethostbyname ();
8650 int
8651 main ()
8652 {
8653 gethostbyname ();
8654   ;
8655   return 0;
8656 }
8657 _ACEOF
8658 rm -f conftest.$ac_objext conftest$ac_exeext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660   (eval $ac_link) 2>&5
8661   ac_status=$?
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } &&
8664          { ac_try='test -s conftest$ac_exeext'
8665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666   (eval $ac_try) 2>&5
8667   ac_status=$?
8668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669   (exit $ac_status); }; }; then
8670   ac_cv_lib_nsl_gethostbyname=yes
8671 else
8672   echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8674
8675 ac_cv_lib_nsl_gethostbyname=no
8676 fi
8677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8678 LIBS=$ac_check_lib_save_LIBS
8679 fi
8680 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8681 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8682 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8683   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8684 fi
8685
8686       if test $ac_cv_lib_nsl_gethostbyname = no; then
8687         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8688 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8689 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8690   echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692   ac_check_lib_save_LIBS=$LIBS
8693 LIBS="-lbsd  $LIBS"
8694 cat >conftest.$ac_ext <<_ACEOF
8695 #line $LINENO "configure"
8696 /* confdefs.h.  */
8697 _ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h.  */
8701
8702 /* Override any gcc2 internal prototype to avoid an error.  */
8703 #ifdef __cplusplus
8704 extern "C"
8705 #endif
8706 /* We use char because int might match the return type of a gcc2
8707    builtin and then its argument prototype would still apply.  */
8708 char gethostbyname ();
8709 int
8710 main ()
8711 {
8712 gethostbyname ();
8713   ;
8714   return 0;
8715 }
8716 _ACEOF
8717 rm -f conftest.$ac_objext conftest$ac_exeext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8719   (eval $ac_link) 2>&5
8720   ac_status=$?
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); } &&
8723          { ac_try='test -s conftest$ac_exeext'
8724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8725   (eval $ac_try) 2>&5
8726   ac_status=$?
8727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728   (exit $ac_status); }; }; then
8729   ac_cv_lib_bsd_gethostbyname=yes
8730 else
8731   echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8733
8734 ac_cv_lib_bsd_gethostbyname=no
8735 fi
8736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8737 LIBS=$ac_check_lib_save_LIBS
8738 fi
8739 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8740 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8741 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8742   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8743 fi
8744
8745       fi
8746     fi
8747
8748     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8749     # socket/setsockopt and other routines are undefined under SCO ODT
8750     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8751     # on later versions), says Simon Leinen: it contains gethostby*
8752     # variants that don't use the name server (or something).  -lsocket
8753     # must be given before -lnsl if both are needed.  We assume that
8754     # if connect needs -lnsl, so does gethostbyname.
8755     echo "$as_me:$LINENO: checking for connect" >&5
8756 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8757 if test "${ac_cv_func_connect+set}" = set; then
8758   echo $ECHO_N "(cached) $ECHO_C" >&6
8759 else
8760   cat >conftest.$ac_ext <<_ACEOF
8761 #line $LINENO "configure"
8762 /* confdefs.h.  */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h.  */
8767 /* System header to define __stub macros and hopefully few prototypes,
8768     which can conflict with char connect (); below.
8769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8770     <limits.h> exists even on freestanding compilers.  */
8771 #ifdef __STDC__
8772 # include <limits.h>
8773 #else
8774 # include <assert.h>
8775 #endif
8776 /* Override any gcc2 internal prototype to avoid an error.  */
8777 #ifdef __cplusplus
8778 extern "C"
8779 {
8780 #endif
8781 /* We use char because int might match the return type of a gcc2
8782    builtin and then its argument prototype would still apply.  */
8783 char connect ();
8784 /* The GNU C library defines this for functions which it implements
8785     to always fail with ENOSYS.  Some functions are actually named
8786     something starting with __ and the normal name is an alias.  */
8787 #if defined (__stub_connect) || defined (__stub___connect)
8788 choke me
8789 #else
8790 char (*f) () = connect;
8791 #endif
8792 #ifdef __cplusplus
8793 }
8794 #endif
8795
8796 int
8797 main ()
8798 {
8799 return f != connect;
8800   ;
8801   return 0;
8802 }
8803 _ACEOF
8804 rm -f conftest.$ac_objext conftest$ac_exeext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806   (eval $ac_link) 2>&5
8807   ac_status=$?
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); } &&
8810          { ac_try='test -s conftest$ac_exeext'
8811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8812   (eval $ac_try) 2>&5
8813   ac_status=$?
8814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815   (exit $ac_status); }; }; then
8816   ac_cv_func_connect=yes
8817 else
8818   echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8820
8821 ac_cv_func_connect=no
8822 fi
8823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8824 fi
8825 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8826 echo "${ECHO_T}$ac_cv_func_connect" >&6
8827
8828     if test $ac_cv_func_connect = no; then
8829       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8830 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8831 if test "${ac_cv_lib_socket_connect+set}" = set; then
8832   echo $ECHO_N "(cached) $ECHO_C" >&6
8833 else
8834   ac_check_lib_save_LIBS=$LIBS
8835 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8838 /* confdefs.h.  */
8839 _ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h.  */
8843
8844 /* Override any gcc2 internal prototype to avoid an error.  */
8845 #ifdef __cplusplus
8846 extern "C"
8847 #endif
8848 /* We use char because int might match the return type of a gcc2
8849    builtin and then its argument prototype would still apply.  */
8850 char connect ();
8851 int
8852 main ()
8853 {
8854 connect ();
8855   ;
8856   return 0;
8857 }
8858 _ACEOF
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861   (eval $ac_link) 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); } &&
8865          { ac_try='test -s conftest$ac_exeext'
8866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867   (eval $ac_try) 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; }; then
8871   ac_cv_lib_socket_connect=yes
8872 else
8873   echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876 ac_cv_lib_socket_connect=no
8877 fi
8878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8879 LIBS=$ac_check_lib_save_LIBS
8880 fi
8881 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8882 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8883 if test $ac_cv_lib_socket_connect = yes; then
8884   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8885 fi
8886
8887     fi
8888
8889     # Guillermo Gomez says -lposix is necessary on A/UX.
8890     echo "$as_me:$LINENO: checking for remove" >&5
8891 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8892 if test "${ac_cv_func_remove+set}" = set; then
8893   echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895   cat >conftest.$ac_ext <<_ACEOF
8896 #line $LINENO "configure"
8897 /* confdefs.h.  */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h.  */
8902 /* System header to define __stub macros and hopefully few prototypes,
8903     which can conflict with char remove (); below.
8904     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8905     <limits.h> exists even on freestanding compilers.  */
8906 #ifdef __STDC__
8907 # include <limits.h>
8908 #else
8909 # include <assert.h>
8910 #endif
8911 /* Override any gcc2 internal prototype to avoid an error.  */
8912 #ifdef __cplusplus
8913 extern "C"
8914 {
8915 #endif
8916 /* We use char because int might match the return type of a gcc2
8917    builtin and then its argument prototype would still apply.  */
8918 char remove ();
8919 /* The GNU C library defines this for functions which it implements
8920     to always fail with ENOSYS.  Some functions are actually named
8921     something starting with __ and the normal name is an alias.  */
8922 #if defined (__stub_remove) || defined (__stub___remove)
8923 choke me
8924 #else
8925 char (*f) () = remove;
8926 #endif
8927 #ifdef __cplusplus
8928 }
8929 #endif
8930
8931 int
8932 main ()
8933 {
8934 return f != remove;
8935   ;
8936   return 0;
8937 }
8938 _ACEOF
8939 rm -f conftest.$ac_objext conftest$ac_exeext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941   (eval $ac_link) 2>&5
8942   ac_status=$?
8943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); } &&
8945          { ac_try='test -s conftest$ac_exeext'
8946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947   (eval $ac_try) 2>&5
8948   ac_status=$?
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); }; }; then
8951   ac_cv_func_remove=yes
8952 else
8953   echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8955
8956 ac_cv_func_remove=no
8957 fi
8958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8959 fi
8960 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8961 echo "${ECHO_T}$ac_cv_func_remove" >&6
8962
8963     if test $ac_cv_func_remove = no; then
8964       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8965 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8966 if test "${ac_cv_lib_posix_remove+set}" = set; then
8967   echo $ECHO_N "(cached) $ECHO_C" >&6
8968 else
8969   ac_check_lib_save_LIBS=$LIBS
8970 LIBS="-lposix  $LIBS"
8971 cat >conftest.$ac_ext <<_ACEOF
8972 #line $LINENO "configure"
8973 /* confdefs.h.  */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h.  */
8978
8979 /* Override any gcc2 internal prototype to avoid an error.  */
8980 #ifdef __cplusplus
8981 extern "C"
8982 #endif
8983 /* We use char because int might match the return type of a gcc2
8984    builtin and then its argument prototype would still apply.  */
8985 char remove ();
8986 int
8987 main ()
8988 {
8989 remove ();
8990   ;
8991   return 0;
8992 }
8993 _ACEOF
8994 rm -f conftest.$ac_objext conftest$ac_exeext
8995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8996   (eval $ac_link) 2>&5
8997   ac_status=$?
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); } &&
9000          { ac_try='test -s conftest$ac_exeext'
9001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002   (eval $ac_try) 2>&5
9003   ac_status=$?
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); }; }; then
9006   ac_cv_lib_posix_remove=yes
9007 else
9008   echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011 ac_cv_lib_posix_remove=no
9012 fi
9013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9014 LIBS=$ac_check_lib_save_LIBS
9015 fi
9016 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9017 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9018 if test $ac_cv_lib_posix_remove = yes; then
9019   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9020 fi
9021
9022     fi
9023
9024     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9025     echo "$as_me:$LINENO: checking for shmat" >&5
9026 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9027 if test "${ac_cv_func_shmat+set}" = set; then
9028   echo $ECHO_N "(cached) $ECHO_C" >&6
9029 else
9030   cat >conftest.$ac_ext <<_ACEOF
9031 #line $LINENO "configure"
9032 /* confdefs.h.  */
9033 _ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h.  */
9037 /* System header to define __stub macros and hopefully few prototypes,
9038     which can conflict with char shmat (); below.
9039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9040     <limits.h> exists even on freestanding compilers.  */
9041 #ifdef __STDC__
9042 # include <limits.h>
9043 #else
9044 # include <assert.h>
9045 #endif
9046 /* Override any gcc2 internal prototype to avoid an error.  */
9047 #ifdef __cplusplus
9048 extern "C"
9049 {
9050 #endif
9051 /* We use char because int might match the return type of a gcc2
9052    builtin and then its argument prototype would still apply.  */
9053 char shmat ();
9054 /* The GNU C library defines this for functions which it implements
9055     to always fail with ENOSYS.  Some functions are actually named
9056     something starting with __ and the normal name is an alias.  */
9057 #if defined (__stub_shmat) || defined (__stub___shmat)
9058 choke me
9059 #else
9060 char (*f) () = shmat;
9061 #endif
9062 #ifdef __cplusplus
9063 }
9064 #endif
9065
9066 int
9067 main ()
9068 {
9069 return f != shmat;
9070   ;
9071   return 0;
9072 }
9073 _ACEOF
9074 rm -f conftest.$ac_objext conftest$ac_exeext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9076   (eval $ac_link) 2>&5
9077   ac_status=$?
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); } &&
9080          { ac_try='test -s conftest$ac_exeext'
9081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082   (eval $ac_try) 2>&5
9083   ac_status=$?
9084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); }; }; then
9086   ac_cv_func_shmat=yes
9087 else
9088   echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9090
9091 ac_cv_func_shmat=no
9092 fi
9093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9094 fi
9095 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9096 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9097
9098     if test $ac_cv_func_shmat = no; then
9099       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9100 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9101 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9102   echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104   ac_check_lib_save_LIBS=$LIBS
9105 LIBS="-lipc  $LIBS"
9106 cat >conftest.$ac_ext <<_ACEOF
9107 #line $LINENO "configure"
9108 /* confdefs.h.  */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h.  */
9113
9114 /* Override any gcc2 internal prototype to avoid an error.  */
9115 #ifdef __cplusplus
9116 extern "C"
9117 #endif
9118 /* We use char because int might match the return type of a gcc2
9119    builtin and then its argument prototype would still apply.  */
9120 char shmat ();
9121 int
9122 main ()
9123 {
9124 shmat ();
9125   ;
9126   return 0;
9127 }
9128 _ACEOF
9129 rm -f conftest.$ac_objext conftest$ac_exeext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9131   (eval $ac_link) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); } &&
9135          { ac_try='test -s conftest$ac_exeext'
9136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137   (eval $ac_try) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); }; }; then
9141   ac_cv_lib_ipc_shmat=yes
9142 else
9143   echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9145
9146 ac_cv_lib_ipc_shmat=no
9147 fi
9148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9149 LIBS=$ac_check_lib_save_LIBS
9150 fi
9151 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9152 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9153 if test $ac_cv_lib_ipc_shmat = yes; then
9154   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9155 fi
9156
9157     fi
9158   fi
9159
9160   # Check for libraries that X11R6 Xt/Xaw programs need.
9161   ac_save_LDFLAGS=$LDFLAGS
9162   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9163   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9164   # check for ICE first), but we must link in the order -lSM -lICE or
9165   # we get undefined symbols.  So assume we have SM if we have ICE.
9166   # These have to be linked with before -lX11, unlike the other
9167   # libraries we check for below, so use a different variable.
9168   # John Interrante, Karl Berry
9169   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9170 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9171 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9172   echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174   ac_check_lib_save_LIBS=$LIBS
9175 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9176 cat >conftest.$ac_ext <<_ACEOF
9177 #line $LINENO "configure"
9178 /* confdefs.h.  */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h.  */
9183
9184 /* Override any gcc2 internal prototype to avoid an error.  */
9185 #ifdef __cplusplus
9186 extern "C"
9187 #endif
9188 /* We use char because int might match the return type of a gcc2
9189    builtin and then its argument prototype would still apply.  */
9190 char IceConnectionNumber ();
9191 int
9192 main ()
9193 {
9194 IceConnectionNumber ();
9195   ;
9196   return 0;
9197 }
9198 _ACEOF
9199 rm -f conftest.$ac_objext conftest$ac_exeext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9201   (eval $ac_link) 2>&5
9202   ac_status=$?
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); } &&
9205          { ac_try='test -s conftest$ac_exeext'
9206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207   (eval $ac_try) 2>&5
9208   ac_status=$?
9209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210   (exit $ac_status); }; }; then
9211   ac_cv_lib_ICE_IceConnectionNumber=yes
9212 else
9213   echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9215
9216 ac_cv_lib_ICE_IceConnectionNumber=no
9217 fi
9218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9219 LIBS=$ac_check_lib_save_LIBS
9220 fi
9221 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9222 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9223 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9224   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9225 fi
9226
9227   LDFLAGS=$ac_save_LDFLAGS
9228
9229 fi
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258 for ac_header in \
9259         assert.h \
9260         fcntl.h \
9261         grp.h \
9262         pwd.h \
9263         libc.h \
9264         limits.h \
9265         stdarg.h \
9266         stdlib.h \
9267         stdint.h \
9268         string.h \
9269         termios.h \
9270         termcap.h \
9271         unistd.h \
9272         sys/bitypes.h \
9273         sys/byteorder.h \
9274         sys/ioctl.h \
9275         sys/select.h \
9276         sys/sockio.h \
9277         sys/time.h \
9278         sys/socket.h \
9279         arpa/nameser.h \
9280         resolv.h \
9281         mtio.h \
9282         sys/mtio.h \
9283         sys/tape.h \
9284         regex.h \
9285
9286 do
9287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289   echo "$as_me:$LINENO: checking for $ac_header" >&5
9290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9292   echo $ECHO_N "(cached) $ECHO_C" >&6
9293 fi
9294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9296 else
9297   # Is the header compilable?
9298 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9300 cat >conftest.$ac_ext <<_ACEOF
9301 #line $LINENO "configure"
9302 /* confdefs.h.  */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h.  */
9307 $ac_includes_default
9308 #include <$ac_header>
9309 _ACEOF
9310 rm -f conftest.$ac_objext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312   (eval $ac_compile) 2>&5
9313   ac_status=$?
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); } &&
9316          { ac_try='test -s conftest.$ac_objext'
9317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318   (eval $ac_try) 2>&5
9319   ac_status=$?
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); }; }; then
9322   ac_header_compiler=yes
9323 else
9324   echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327 ac_header_compiler=no
9328 fi
9329 rm -f conftest.$ac_objext conftest.$ac_ext
9330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9331 echo "${ECHO_T}$ac_header_compiler" >&6
9332
9333 # Is the header present?
9334 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9336 cat >conftest.$ac_ext <<_ACEOF
9337 #line $LINENO "configure"
9338 /* confdefs.h.  */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h.  */
9343 #include <$ac_header>
9344 _ACEOF
9345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9346   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9347   ac_status=$?
9348   grep -v '^ *+' conftest.er1 >conftest.err
9349   rm -f conftest.er1
9350   cat conftest.err >&5
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); } >/dev/null; then
9353   if test -s conftest.err; then
9354     ac_cpp_err=$ac_c_preproc_warn_flag
9355   else
9356     ac_cpp_err=
9357   fi
9358 else
9359   ac_cpp_err=yes
9360 fi
9361 if test -z "$ac_cpp_err"; then
9362   ac_header_preproc=yes
9363 else
9364   echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367   ac_header_preproc=no
9368 fi
9369 rm -f conftest.err conftest.$ac_ext
9370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9371 echo "${ECHO_T}$ac_header_preproc" >&6
9372
9373 # So?  What about this header?
9374 case $ac_header_compiler:$ac_header_preproc in
9375   yes:no )
9376     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9380     (
9381       cat <<\_ASBOX
9382 ## ------------------------------------ ##
9383 ## Report this to bug-autoconf@gnu.org. ##
9384 ## ------------------------------------ ##
9385 _ASBOX
9386     ) |
9387       sed "s/^/$as_me: WARNING:     /" >&2
9388     ;;
9389   no:yes )
9390     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9392     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9396     (
9397       cat <<\_ASBOX
9398 ## ------------------------------------ ##
9399 ## Report this to bug-autoconf@gnu.org. ##
9400 ## ------------------------------------ ##
9401 _ASBOX
9402     ) |
9403       sed "s/^/$as_me: WARNING:     /" >&2
9404     ;;
9405 esac
9406 echo "$as_me:$LINENO: checking for $ac_header" >&5
9407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9409   echo $ECHO_N "(cached) $ECHO_C" >&6
9410 else
9411   eval "$as_ac_Header=$ac_header_preproc"
9412 fi
9413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9415
9416 fi
9417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9418   cat >>confdefs.h <<_ACEOF
9419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9420 _ACEOF
9421
9422 fi
9423
9424 done
9425
9426 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9427 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9428 if test "${ac_cv_header_stdc+set}" = set; then
9429   echo $ECHO_N "(cached) $ECHO_C" >&6
9430 else
9431   cat >conftest.$ac_ext <<_ACEOF
9432 #line $LINENO "configure"
9433 /* confdefs.h.  */
9434 _ACEOF
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h.  */
9438 #include <stdlib.h>
9439 #include <stdarg.h>
9440 #include <string.h>
9441 #include <float.h>
9442
9443 int
9444 main ()
9445 {
9446
9447   ;
9448   return 0;
9449 }
9450 _ACEOF
9451 rm -f conftest.$ac_objext
9452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9453   (eval $ac_compile) 2>&5
9454   ac_status=$?
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); } &&
9457          { ac_try='test -s conftest.$ac_objext'
9458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459   (eval $ac_try) 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); }; }; then
9463   ac_cv_header_stdc=yes
9464 else
9465   echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9467
9468 ac_cv_header_stdc=no
9469 fi
9470 rm -f conftest.$ac_objext conftest.$ac_ext
9471
9472 if test $ac_cv_header_stdc = yes; then
9473   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9474   cat >conftest.$ac_ext <<_ACEOF
9475 #line $LINENO "configure"
9476 /* confdefs.h.  */
9477 _ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h.  */
9481 #include <string.h>
9482
9483 _ACEOF
9484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9485   $EGREP "memchr" >/dev/null 2>&1; then
9486   :
9487 else
9488   ac_cv_header_stdc=no
9489 fi
9490 rm -f conftest*
9491
9492 fi
9493
9494 if test $ac_cv_header_stdc = yes; then
9495   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9496   cat >conftest.$ac_ext <<_ACEOF
9497 #line $LINENO "configure"
9498 /* confdefs.h.  */
9499 _ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h.  */
9503 #include <stdlib.h>
9504
9505 _ACEOF
9506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9507   $EGREP "free" >/dev/null 2>&1; then
9508   :
9509 else
9510   ac_cv_header_stdc=no
9511 fi
9512 rm -f conftest*
9513
9514 fi
9515
9516 if test $ac_cv_header_stdc = yes; then
9517   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9518   if test "$cross_compiling" = yes; then
9519   :
9520 else
9521   cat >conftest.$ac_ext <<_ACEOF
9522 #line $LINENO "configure"
9523 /* confdefs.h.  */
9524 _ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h.  */
9528 #include <ctype.h>
9529 #if ((' ' & 0x0FF) == 0x020)
9530 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9531 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9532 #else
9533 # define ISLOWER(c) \
9534                    (('a' <= (c) && (c) <= 'i') \
9535                      || ('j' <= (c) && (c) <= 'r') \
9536                      || ('s' <= (c) && (c) <= 'z'))
9537 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9538 #endif
9539
9540 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9541 int
9542 main ()
9543 {
9544   int i;
9545   for (i = 0; i < 256; i++)
9546     if (XOR (islower (i), ISLOWER (i))
9547         || toupper (i) != TOUPPER (i))
9548       exit(2);
9549   exit (0);
9550 }
9551 _ACEOF
9552 rm -f conftest$ac_exeext
9553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9554   (eval $ac_link) 2>&5
9555   ac_status=$?
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559   (eval $ac_try) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; }; then
9563   :
9564 else
9565   echo "$as_me: program exited with status $ac_status" >&5
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9568
9569 ( exit $ac_status )
9570 ac_cv_header_stdc=no
9571 fi
9572 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9573 fi
9574 fi
9575 fi
9576 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9577 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9578 if test $ac_cv_header_stdc = yes; then
9579
9580 cat >>confdefs.h <<\_ACEOF
9581 #define STDC_HEADERS 1
9582 _ACEOF
9583
9584 fi
9585
9586 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9587 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9588 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9589   echo $ECHO_N "(cached) $ECHO_C" >&6
9590 else
9591   cat >conftest.$ac_ext <<_ACEOF
9592 #line $LINENO "configure"
9593 /* confdefs.h.  */
9594 _ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h.  */
9598 #include <sys/types.h>
9599 int
9600 main ()
9601 {
9602 return makedev(0, 0);
9603   ;
9604   return 0;
9605 }
9606 _ACEOF
9607 rm -f conftest.$ac_objext conftest$ac_exeext
9608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609   (eval $ac_link) 2>&5
9610   ac_status=$?
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); } &&
9613          { ac_try='test -s conftest$ac_exeext'
9614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615   (eval $ac_try) 2>&5
9616   ac_status=$?
9617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618   (exit $ac_status); }; }; then
9619   ac_cv_header_sys_types_h_makedev=yes
9620 else
9621   echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9623
9624 ac_cv_header_sys_types_h_makedev=no
9625 fi
9626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9627
9628 fi
9629 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9630 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9631
9632 if test $ac_cv_header_sys_types_h_makedev = no; then
9633 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9634   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9635 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9636 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9637   echo $ECHO_N "(cached) $ECHO_C" >&6
9638 fi
9639 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9640 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9641 else
9642   # Is the header compilable?
9643 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9644 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9645 cat >conftest.$ac_ext <<_ACEOF
9646 #line $LINENO "configure"
9647 /* confdefs.h.  */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h.  */
9652 $ac_includes_default
9653 #include <sys/mkdev.h>
9654 _ACEOF
9655 rm -f conftest.$ac_objext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9657   (eval $ac_compile) 2>&5
9658   ac_status=$?
9659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); } &&
9661          { ac_try='test -s conftest.$ac_objext'
9662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663   (eval $ac_try) 2>&5
9664   ac_status=$?
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); }; }; then
9667   ac_header_compiler=yes
9668 else
9669   echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9671
9672 ac_header_compiler=no
9673 fi
9674 rm -f conftest.$ac_objext conftest.$ac_ext
9675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9676 echo "${ECHO_T}$ac_header_compiler" >&6
9677
9678 # Is the header present?
9679 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9680 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9681 cat >conftest.$ac_ext <<_ACEOF
9682 #line $LINENO "configure"
9683 /* confdefs.h.  */
9684 _ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h.  */
9688 #include <sys/mkdev.h>
9689 _ACEOF
9690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9691   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9692   ac_status=$?
9693   grep -v '^ *+' conftest.er1 >conftest.err
9694   rm -f conftest.er1
9695   cat conftest.err >&5
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); } >/dev/null; then
9698   if test -s conftest.err; then
9699     ac_cpp_err=$ac_c_preproc_warn_flag
9700   else
9701     ac_cpp_err=
9702   fi
9703 else
9704   ac_cpp_err=yes
9705 fi
9706 if test -z "$ac_cpp_err"; then
9707   ac_header_preproc=yes
9708 else
9709   echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9711
9712   ac_header_preproc=no
9713 fi
9714 rm -f conftest.err conftest.$ac_ext
9715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9716 echo "${ECHO_T}$ac_header_preproc" >&6
9717
9718 # So?  What about this header?
9719 case $ac_header_compiler:$ac_header_preproc in
9720   yes:no )
9721     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9722 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9723     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9724 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9725     (
9726       cat <<\_ASBOX
9727 ## ------------------------------------ ##
9728 ## Report this to bug-autoconf@gnu.org. ##
9729 ## ------------------------------------ ##
9730 _ASBOX
9731     ) |
9732       sed "s/^/$as_me: WARNING:     /" >&2
9733     ;;
9734   no:yes )
9735     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9736 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9737     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9738 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9739     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9740 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9741     (
9742       cat <<\_ASBOX
9743 ## ------------------------------------ ##
9744 ## Report this to bug-autoconf@gnu.org. ##
9745 ## ------------------------------------ ##
9746 _ASBOX
9747     ) |
9748       sed "s/^/$as_me: WARNING:     /" >&2
9749     ;;
9750 esac
9751 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9752 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9753 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9754   echo $ECHO_N "(cached) $ECHO_C" >&6
9755 else
9756   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9757 fi
9758 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9759 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9760
9761 fi
9762 if test $ac_cv_header_sys_mkdev_h = yes; then
9763
9764 cat >>confdefs.h <<\_ACEOF
9765 #define MAJOR_IN_MKDEV 1
9766 _ACEOF
9767
9768 fi
9769
9770
9771
9772   if test $ac_cv_header_sys_mkdev_h = no; then
9773     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9774   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9775 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9776 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9777   echo $ECHO_N "(cached) $ECHO_C" >&6
9778 fi
9779 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9780 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9781 else
9782   # Is the header compilable?
9783 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9784 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9785 cat >conftest.$ac_ext <<_ACEOF
9786 #line $LINENO "configure"
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 $ac_includes_default
9793 #include <sys/sysmacros.h>
9794 _ACEOF
9795 rm -f conftest.$ac_objext
9796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9797   (eval $ac_compile) 2>&5
9798   ac_status=$?
9799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); } &&
9801          { ac_try='test -s conftest.$ac_objext'
9802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803   (eval $ac_try) 2>&5
9804   ac_status=$?
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); }; }; then
9807   ac_header_compiler=yes
9808 else
9809   echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9811
9812 ac_header_compiler=no
9813 fi
9814 rm -f conftest.$ac_objext conftest.$ac_ext
9815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9816 echo "${ECHO_T}$ac_header_compiler" >&6
9817
9818 # Is the header present?
9819 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9820 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9821 cat >conftest.$ac_ext <<_ACEOF
9822 #line $LINENO "configure"
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828 #include <sys/sysmacros.h>
9829 _ACEOF
9830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9832   ac_status=$?
9833   grep -v '^ *+' conftest.er1 >conftest.err
9834   rm -f conftest.er1
9835   cat conftest.err >&5
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); } >/dev/null; then
9838   if test -s conftest.err; then
9839     ac_cpp_err=$ac_c_preproc_warn_flag
9840   else
9841     ac_cpp_err=
9842   fi
9843 else
9844   ac_cpp_err=yes
9845 fi
9846 if test -z "$ac_cpp_err"; then
9847   ac_header_preproc=yes
9848 else
9849   echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852   ac_header_preproc=no
9853 fi
9854 rm -f conftest.err conftest.$ac_ext
9855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9856 echo "${ECHO_T}$ac_header_preproc" >&6
9857
9858 # So?  What about this header?
9859 case $ac_header_compiler:$ac_header_preproc in
9860   yes:no )
9861     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9862 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9863     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9864 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9865     (
9866       cat <<\_ASBOX
9867 ## ------------------------------------ ##
9868 ## Report this to bug-autoconf@gnu.org. ##
9869 ## ------------------------------------ ##
9870 _ASBOX
9871     ) |
9872       sed "s/^/$as_me: WARNING:     /" >&2
9873     ;;
9874   no:yes )
9875     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9876 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9877     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9878 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9879     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9880 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9881     (
9882       cat <<\_ASBOX
9883 ## ------------------------------------ ##
9884 ## Report this to bug-autoconf@gnu.org. ##
9885 ## ------------------------------------ ##
9886 _ASBOX
9887     ) |
9888       sed "s/^/$as_me: WARNING:     /" >&2
9889     ;;
9890 esac
9891 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9892 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9893 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9894   echo $ECHO_N "(cached) $ECHO_C" >&6
9895 else
9896   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9897 fi
9898 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9899 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9900
9901 fi
9902 if test $ac_cv_header_sys_sysmacros_h = yes; then
9903
9904 cat >>confdefs.h <<\_ACEOF
9905 #define MAJOR_IN_SYSMACROS 1
9906 _ACEOF
9907
9908 fi
9909
9910
9911   fi
9912 fi
9913
9914
9915
9916
9917
9918
9919 ac_header_dirent=no
9920 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9921   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9922 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9923 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9925   echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927   cat >conftest.$ac_ext <<_ACEOF
9928 #line $LINENO "configure"
9929 /* confdefs.h.  */
9930 _ACEOF
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h.  */
9934 #include <sys/types.h>
9935 #include <$ac_hdr>
9936
9937 int
9938 main ()
9939 {
9940 if ((DIR *) 0)
9941 return 0;
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9948   (eval $ac_compile) 2>&5
9949   ac_status=$?
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); } &&
9952          { ac_try='test -s conftest.$ac_objext'
9953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954   (eval $ac_try) 2>&5
9955   ac_status=$?
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); }; }; then
9958   eval "$as_ac_Header=yes"
9959 else
9960   echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9962
9963 eval "$as_ac_Header=no"
9964 fi
9965 rm -f conftest.$ac_objext conftest.$ac_ext
9966 fi
9967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9970   cat >>confdefs.h <<_ACEOF
9971 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9972 _ACEOF
9973
9974 ac_header_dirent=$ac_hdr; break
9975 fi
9976
9977 done
9978 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9979 if test $ac_header_dirent = dirent.h; then
9980   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9981 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9982 if test "${ac_cv_search_opendir+set}" = set; then
9983   echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985   ac_func_search_save_LIBS=$LIBS
9986 ac_cv_search_opendir=no
9987 cat >conftest.$ac_ext <<_ACEOF
9988 #line $LINENO "configure"
9989 /* confdefs.h.  */
9990 _ACEOF
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h.  */
9994
9995 /* Override any gcc2 internal prototype to avoid an error.  */
9996 #ifdef __cplusplus
9997 extern "C"
9998 #endif
9999 /* We use char because int might match the return type of a gcc2
10000    builtin and then its argument prototype would still apply.  */
10001 char opendir ();
10002 int
10003 main ()
10004 {
10005 opendir ();
10006   ;
10007   return 0;
10008 }
10009 _ACEOF
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012   (eval $ac_link) 2>&5
10013   ac_status=$?
10014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015   (exit $ac_status); } &&
10016          { ac_try='test -s conftest$ac_exeext'
10017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018   (eval $ac_try) 2>&5
10019   ac_status=$?
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); }; }; then
10022   ac_cv_search_opendir="none required"
10023 else
10024   echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10026
10027 fi
10028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10029 if test "$ac_cv_search_opendir" = no; then
10030   for ac_lib in dir; do
10031     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10032     cat >conftest.$ac_ext <<_ACEOF
10033 #line $LINENO "configure"
10034 /* confdefs.h.  */
10035 _ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h.  */
10039
10040 /* Override any gcc2 internal prototype to avoid an error.  */
10041 #ifdef __cplusplus
10042 extern "C"
10043 #endif
10044 /* We use char because int might match the return type of a gcc2
10045    builtin and then its argument prototype would still apply.  */
10046 char opendir ();
10047 int
10048 main ()
10049 {
10050 opendir ();
10051   ;
10052   return 0;
10053 }
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057   (eval $ac_link) 2>&5
10058   ac_status=$?
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); } &&
10061          { ac_try='test -s conftest$ac_exeext'
10062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063   (eval $ac_try) 2>&5
10064   ac_status=$?
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); }; }; then
10067   ac_cv_search_opendir="-l$ac_lib"
10068 break
10069 else
10070   echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10072
10073 fi
10074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10075   done
10076 fi
10077 LIBS=$ac_func_search_save_LIBS
10078 fi
10079 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10080 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10081 if test "$ac_cv_search_opendir" != no; then
10082   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10083
10084 fi
10085
10086 else
10087   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10088 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10089 if test "${ac_cv_search_opendir+set}" = set; then
10090   echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092   ac_func_search_save_LIBS=$LIBS
10093 ac_cv_search_opendir=no
10094 cat >conftest.$ac_ext <<_ACEOF
10095 #line $LINENO "configure"
10096 /* confdefs.h.  */
10097 _ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h.  */
10101
10102 /* Override any gcc2 internal prototype to avoid an error.  */
10103 #ifdef __cplusplus
10104 extern "C"
10105 #endif
10106 /* We use char because int might match the return type of a gcc2
10107    builtin and then its argument prototype would still apply.  */
10108 char opendir ();
10109 int
10110 main ()
10111 {
10112 opendir ();
10113   ;
10114   return 0;
10115 }
10116 _ACEOF
10117 rm -f conftest.$ac_objext conftest$ac_exeext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119   (eval $ac_link) 2>&5
10120   ac_status=$?
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); } &&
10123          { ac_try='test -s conftest$ac_exeext'
10124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125   (eval $ac_try) 2>&5
10126   ac_status=$?
10127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128   (exit $ac_status); }; }; then
10129   ac_cv_search_opendir="none required"
10130 else
10131   echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10133
10134 fi
10135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10136 if test "$ac_cv_search_opendir" = no; then
10137   for ac_lib in x; do
10138     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
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
10147 /* Override any gcc2 internal prototype to avoid an error.  */
10148 #ifdef __cplusplus
10149 extern "C"
10150 #endif
10151 /* We use char because int might match the return type of a gcc2
10152    builtin and then its argument prototype would still apply.  */
10153 char opendir ();
10154 int
10155 main ()
10156 {
10157 opendir ();
10158   ;
10159   return 0;
10160 }
10161 _ACEOF
10162 rm -f conftest.$ac_objext conftest$ac_exeext
10163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10164   (eval $ac_link) 2>&5
10165   ac_status=$?
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); } &&
10168          { ac_try='test -s conftest$ac_exeext'
10169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170   (eval $ac_try) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); }; }; then
10174   ac_cv_search_opendir="-l$ac_lib"
10175 break
10176 else
10177   echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10179
10180 fi
10181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10182   done
10183 fi
10184 LIBS=$ac_func_search_save_LIBS
10185 fi
10186 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10187 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10188 if test "$ac_cv_search_opendir" != no; then
10189   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10190
10191 fi
10192
10193 fi
10194
10195 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10196 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10197 if test "${ac_cv_header_stat_broken+set}" = set; then
10198   echo $ECHO_N "(cached) $ECHO_C" >&6
10199 else
10200   cat >conftest.$ac_ext <<_ACEOF
10201 #line $LINENO "configure"
10202 /* confdefs.h.  */
10203 _ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h.  */
10207 #include <sys/types.h>
10208 #include <sys/stat.h>
10209
10210 #if defined(S_ISBLK) && defined(S_IFDIR)
10211 # if S_ISBLK (S_IFDIR)
10212 You lose.
10213 # endif
10214 #endif
10215
10216 #if defined(S_ISBLK) && defined(S_IFCHR)
10217 # if S_ISBLK (S_IFCHR)
10218 You lose.
10219 # endif
10220 #endif
10221
10222 #if defined(S_ISLNK) && defined(S_IFREG)
10223 # if S_ISLNK (S_IFREG)
10224 You lose.
10225 # endif
10226 #endif
10227
10228 #if defined(S_ISSOCK) && defined(S_IFREG)
10229 # if S_ISSOCK (S_IFREG)
10230 You lose.
10231 # endif
10232 #endif
10233
10234 _ACEOF
10235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10236   $EGREP "You lose" >/dev/null 2>&1; then
10237   ac_cv_header_stat_broken=yes
10238 else
10239   ac_cv_header_stat_broken=no
10240 fi
10241 rm -f conftest*
10242
10243 fi
10244 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10245 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10246 if test $ac_cv_header_stat_broken = yes; then
10247
10248 cat >>confdefs.h <<\_ACEOF
10249 #define STAT_MACROS_BROKEN 1
10250 _ACEOF
10251
10252 fi
10253
10254 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10255 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10256 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10257   echo $ECHO_N "(cached) $ECHO_C" >&6
10258 else
10259   cat >conftest.$ac_ext <<_ACEOF
10260 #line $LINENO "configure"
10261 /* confdefs.h.  */
10262 _ACEOF
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h.  */
10266 #include <sys/types.h>
10267 #include <sys/wait.h>
10268 #ifndef WEXITSTATUS
10269 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10270 #endif
10271 #ifndef WIFEXITED
10272 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10273 #endif
10274
10275 int
10276 main ()
10277 {
10278   int s;
10279   wait (&s);
10280   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10281   ;
10282   return 0;
10283 }
10284 _ACEOF
10285 rm -f conftest.$ac_objext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10287   (eval $ac_compile) 2>&5
10288   ac_status=$?
10289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290   (exit $ac_status); } &&
10291          { ac_try='test -s conftest.$ac_objext'
10292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293   (eval $ac_try) 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); }; }; then
10297   ac_cv_header_sys_wait_h=yes
10298 else
10299   echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10301
10302 ac_cv_header_sys_wait_h=no
10303 fi
10304 rm -f conftest.$ac_objext conftest.$ac_ext
10305 fi
10306 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10307 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10308 if test $ac_cv_header_sys_wait_h = yes; then
10309
10310 cat >>confdefs.h <<\_ACEOF
10311 #define HAVE_SYS_WAIT_H 1
10312 _ACEOF
10313
10314 fi
10315
10316 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10317 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10318 if test "${ac_cv_header_time+set}" = set; then
10319   echo $ECHO_N "(cached) $ECHO_C" >&6
10320 else
10321   cat >conftest.$ac_ext <<_ACEOF
10322 #line $LINENO "configure"
10323 /* confdefs.h.  */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h.  */
10328 #include <sys/types.h>
10329 #include <sys/time.h>
10330 #include <time.h>
10331
10332 int
10333 main ()
10334 {
10335 if ((struct tm *) 0)
10336 return 0;
10337   ;
10338   return 0;
10339 }
10340 _ACEOF
10341 rm -f conftest.$ac_objext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10343   (eval $ac_compile) 2>&5
10344   ac_status=$?
10345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346   (exit $ac_status); } &&
10347          { ac_try='test -s conftest.$ac_objext'
10348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349   (eval $ac_try) 2>&5
10350   ac_status=$?
10351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352   (exit $ac_status); }; }; then
10353   ac_cv_header_time=yes
10354 else
10355   echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10357
10358 ac_cv_header_time=no
10359 fi
10360 rm -f conftest.$ac_objext conftest.$ac_ext
10361 fi
10362 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10363 echo "${ECHO_T}$ac_cv_header_time" >&6
10364 if test $ac_cv_header_time = yes; then
10365
10366 cat >>confdefs.h <<\_ACEOF
10367 #define TIME_WITH_SYS_TIME 1
10368 _ACEOF
10369
10370 fi
10371
10372
10373 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10374 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10375 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10376   echo $ECHO_N "(cached) $ECHO_C" >&6
10377 else
10378   cat >conftest.$ac_ext <<_ACEOF
10379 #line $LINENO "configure"
10380 /* confdefs.h.  */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h.  */
10385 $ac_includes_default
10386 int
10387 main ()
10388 {
10389 static struct stat ac_aggr;
10390 if (ac_aggr.st_blksize)
10391 return 0;
10392   ;
10393   return 0;
10394 }
10395 _ACEOF
10396 rm -f conftest.$ac_objext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10398   (eval $ac_compile) 2>&5
10399   ac_status=$?
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); } &&
10402          { ac_try='test -s conftest.$ac_objext'
10403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404   (eval $ac_try) 2>&5
10405   ac_status=$?
10406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); }; }; then
10408   ac_cv_member_struct_stat_st_blksize=yes
10409 else
10410   echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10412
10413 cat >conftest.$ac_ext <<_ACEOF
10414 #line $LINENO "configure"
10415 /* confdefs.h.  */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h.  */
10420 $ac_includes_default
10421 int
10422 main ()
10423 {
10424 static struct stat ac_aggr;
10425 if (sizeof ac_aggr.st_blksize)
10426 return 0;
10427   ;
10428   return 0;
10429 }
10430 _ACEOF
10431 rm -f conftest.$ac_objext
10432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10433   (eval $ac_compile) 2>&5
10434   ac_status=$?
10435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); } &&
10437          { ac_try='test -s conftest.$ac_objext'
10438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439   (eval $ac_try) 2>&5
10440   ac_status=$?
10441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442   (exit $ac_status); }; }; then
10443   ac_cv_member_struct_stat_st_blksize=yes
10444 else
10445   echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10447
10448 ac_cv_member_struct_stat_st_blksize=no
10449 fi
10450 rm -f conftest.$ac_objext conftest.$ac_ext
10451 fi
10452 rm -f conftest.$ac_objext conftest.$ac_ext
10453 fi
10454 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10455 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10456 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10457
10458 cat >>confdefs.h <<_ACEOF
10459 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10460 _ACEOF
10461
10462
10463 cat >>confdefs.h <<\_ACEOF
10464 #define HAVE_ST_BLKSIZE 1
10465 _ACEOF
10466
10467 fi
10468
10469
10470 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10471 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10472 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10473   echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475   cat >conftest.$ac_ext <<_ACEOF
10476 #line $LINENO "configure"
10477 /* confdefs.h.  */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h.  */
10482 $ac_includes_default
10483 int
10484 main ()
10485 {
10486 static struct stat ac_aggr;
10487 if (ac_aggr.st_blocks)
10488 return 0;
10489   ;
10490   return 0;
10491 }
10492 _ACEOF
10493 rm -f conftest.$ac_objext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495   (eval $ac_compile) 2>&5
10496   ac_status=$?
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); } &&
10499          { ac_try='test -s conftest.$ac_objext'
10500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501   (eval $ac_try) 2>&5
10502   ac_status=$?
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); }; }; then
10505   ac_cv_member_struct_stat_st_blocks=yes
10506 else
10507   echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10509
10510 cat >conftest.$ac_ext <<_ACEOF
10511 #line $LINENO "configure"
10512 /* confdefs.h.  */
10513 _ACEOF
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h.  */
10517 $ac_includes_default
10518 int
10519 main ()
10520 {
10521 static struct stat ac_aggr;
10522 if (sizeof ac_aggr.st_blocks)
10523 return 0;
10524   ;
10525   return 0;
10526 }
10527 _ACEOF
10528 rm -f conftest.$ac_objext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10530   (eval $ac_compile) 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); } &&
10534          { ac_try='test -s conftest.$ac_objext'
10535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536   (eval $ac_try) 2>&5
10537   ac_status=$?
10538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539   (exit $ac_status); }; }; then
10540   ac_cv_member_struct_stat_st_blocks=yes
10541 else
10542   echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10544
10545 ac_cv_member_struct_stat_st_blocks=no
10546 fi
10547 rm -f conftest.$ac_objext conftest.$ac_ext
10548 fi
10549 rm -f conftest.$ac_objext conftest.$ac_ext
10550 fi
10551 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10552 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10553 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10554
10555 cat >>confdefs.h <<_ACEOF
10556 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10557 _ACEOF
10558
10559
10560 cat >>confdefs.h <<\_ACEOF
10561 #define HAVE_ST_BLOCKS 1
10562 _ACEOF
10563
10564 else
10565   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10566 fi
10567
10568
10569 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10570 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10571 if test "${ac_cv_struct_tm+set}" = set; then
10572   echo $ECHO_N "(cached) $ECHO_C" >&6
10573 else
10574   cat >conftest.$ac_ext <<_ACEOF
10575 #line $LINENO "configure"
10576 /* confdefs.h.  */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h.  */
10581 #include <sys/types.h>
10582 #include <time.h>
10583
10584 int
10585 main ()
10586 {
10587 struct tm *tp; tp->tm_sec;
10588   ;
10589   return 0;
10590 }
10591 _ACEOF
10592 rm -f conftest.$ac_objext
10593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10594   (eval $ac_compile) 2>&5
10595   ac_status=$?
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); } &&
10598          { ac_try='test -s conftest.$ac_objext'
10599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600   (eval $ac_try) 2>&5
10601   ac_status=$?
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); }; }; then
10604   ac_cv_struct_tm=time.h
10605 else
10606   echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10608
10609 ac_cv_struct_tm=sys/time.h
10610 fi
10611 rm -f conftest.$ac_objext conftest.$ac_ext
10612 fi
10613 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10614 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10615 if test $ac_cv_struct_tm = sys/time.h; then
10616
10617 cat >>confdefs.h <<\_ACEOF
10618 #define TM_IN_SYS_TIME 1
10619 _ACEOF
10620
10621 fi
10622
10623 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10624 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10625 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10626   echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628   cat >conftest.$ac_ext <<_ACEOF
10629 #line $LINENO "configure"
10630 /* confdefs.h.  */
10631 _ACEOF
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h.  */
10635 #include <sys/types.h>
10636 #include <$ac_cv_struct_tm>
10637
10638
10639 int
10640 main ()
10641 {
10642 static struct tm ac_aggr;
10643 if (ac_aggr.tm_zone)
10644 return 0;
10645   ;
10646   return 0;
10647 }
10648 _ACEOF
10649 rm -f conftest.$ac_objext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10651   (eval $ac_compile) 2>&5
10652   ac_status=$?
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); } &&
10655          { ac_try='test -s conftest.$ac_objext'
10656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657   (eval $ac_try) 2>&5
10658   ac_status=$?
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); }; }; then
10661   ac_cv_member_struct_tm_tm_zone=yes
10662 else
10663   echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10665
10666 cat >conftest.$ac_ext <<_ACEOF
10667 #line $LINENO "configure"
10668 /* confdefs.h.  */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h.  */
10673 #include <sys/types.h>
10674 #include <$ac_cv_struct_tm>
10675
10676
10677 int
10678 main ()
10679 {
10680 static struct tm ac_aggr;
10681 if (sizeof ac_aggr.tm_zone)
10682 return 0;
10683   ;
10684   return 0;
10685 }
10686 _ACEOF
10687 rm -f conftest.$ac_objext
10688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10689   (eval $ac_compile) 2>&5
10690   ac_status=$?
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); } &&
10693          { ac_try='test -s conftest.$ac_objext'
10694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695   (eval $ac_try) 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); }; }; then
10699   ac_cv_member_struct_tm_tm_zone=yes
10700 else
10701   echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10703
10704 ac_cv_member_struct_tm_tm_zone=no
10705 fi
10706 rm -f conftest.$ac_objext conftest.$ac_ext
10707 fi
10708 rm -f conftest.$ac_objext conftest.$ac_ext
10709 fi
10710 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10711 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10712 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10713
10714 cat >>confdefs.h <<_ACEOF
10715 #define HAVE_STRUCT_TM_TM_ZONE 1
10716 _ACEOF
10717
10718
10719 fi
10720
10721 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10722
10723 cat >>confdefs.h <<\_ACEOF
10724 #define HAVE_TM_ZONE 1
10725 _ACEOF
10726
10727 else
10728   echo "$as_me:$LINENO: checking for tzname" >&5
10729 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10730 if test "${ac_cv_var_tzname+set}" = set; then
10731   echo $ECHO_N "(cached) $ECHO_C" >&6
10732 else
10733   cat >conftest.$ac_ext <<_ACEOF
10734 #line $LINENO "configure"
10735 /* confdefs.h.  */
10736 _ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h.  */
10740 #include <time.h>
10741 #ifndef tzname /* For SGI.  */
10742 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10743 #endif
10744
10745 int
10746 main ()
10747 {
10748 atoi(*tzname);
10749   ;
10750   return 0;
10751 }
10752 _ACEOF
10753 rm -f conftest.$ac_objext conftest$ac_exeext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10755   (eval $ac_link) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); } &&
10759          { ac_try='test -s conftest$ac_exeext'
10760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761   (eval $ac_try) 2>&5
10762   ac_status=$?
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); }; }; then
10765   ac_cv_var_tzname=yes
10766 else
10767   echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770 ac_cv_var_tzname=no
10771 fi
10772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10773 fi
10774 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10775 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10776   if test $ac_cv_var_tzname = yes; then
10777
10778 cat >>confdefs.h <<\_ACEOF
10779 #define HAVE_TZNAME 1
10780 _ACEOF
10781
10782   fi
10783 fi
10784
10785
10786 echo "$as_me:$LINENO: checking for utime.h" >&5
10787 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10788 if test "${ba_cv_header_utime_h+set}" = set; then
10789   echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791   cat >conftest.$ac_ext <<_ACEOF
10792 #line $LINENO "configure"
10793 /* confdefs.h.  */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h.  */
10798
10799 #include <sys/types.h>
10800 #include <utime.h>
10801 int
10802 main ()
10803 {
10804 struct utimbuf foo
10805   ;
10806   return 0;
10807 }
10808 _ACEOF
10809 rm -f conftest.$ac_objext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811   (eval $ac_compile) 2>&5
10812   ac_status=$?
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } &&
10815          { ac_try='test -s conftest.$ac_objext'
10816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817   (eval $ac_try) 2>&5
10818   ac_status=$?
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); }; }; then
10821   ba_cv_header_utime_h=yes
10822 else
10823   echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10825
10826 ba_cv_header_utime_h=no
10827 fi
10828 rm -f conftest.$ac_objext conftest.$ac_ext
10829 fi
10830 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10831 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10832 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10833 #define HAVE_UTIME_H 1
10834 _ACEOF
10835
10836
10837 echo "$as_me:$LINENO: checking for socklen_t" >&5
10838 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10839 if test "${ba_cv_header_socklen_t+set}" = set; then
10840   echo $ECHO_N "(cached) $ECHO_C" >&6
10841 else
10842   cat >conftest.$ac_ext <<_ACEOF
10843 #line $LINENO "configure"
10844 /* confdefs.h.  */
10845 _ACEOF
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h.  */
10849
10850 #include <sys/types.h>
10851 #include <sys/socket.h>
10852 int
10853 main ()
10854 {
10855 socklen_t x
10856   ;
10857   return 0;
10858 }
10859 _ACEOF
10860 rm -f conftest.$ac_objext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10862   (eval $ac_compile) 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); } &&
10866          { ac_try='test -s conftest.$ac_objext'
10867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868   (eval $ac_try) 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); }; }; then
10872   ba_cv_header_socklen_t=yes
10873 else
10874   echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10876
10877 ba_cv_header_socklen_t=no
10878 fi
10879 rm -f conftest.$ac_objext conftest.$ac_ext
10880 fi
10881 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10882 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10883 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10884 #define HAVE_SOCKLEN_T 1
10885 _ACEOF
10886
10887
10888 echo "$as_me:$LINENO: checking for bigendian" >&5
10889 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10890 if test "${ba_cv_bigendian+set}" = set; then
10891   echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893   if test "$cross_compiling" = yes; then
10894   ba_cv_bigendian=no
10895 else
10896   cat >conftest.$ac_ext <<_ACEOF
10897 #line $LINENO "configure"
10898 /* confdefs.h.  */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h.  */
10903 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10904 _ACEOF
10905 rm -f conftest$ac_exeext
10906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10907   (eval $ac_link) 2>&5
10908   ac_status=$?
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912   (eval $ac_try) 2>&5
10913   ac_status=$?
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); }; }; then
10916   ba_cv_bigendian=yes
10917 else
10918   echo "$as_me: program exited with status $ac_status" >&5
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10921
10922 ( exit $ac_status )
10923 ba_cv_bigendian=no
10924 fi
10925 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10926 fi
10927 fi
10928 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10929 echo "${ECHO_T}$ba_cv_bigendian" >&6
10930 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10931 #define HAVE_BIGENDIAN 1
10932 _ACEOF
10933
10934
10935
10936 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10937 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10938 if test "${ac_cv_c_const+set}" = set; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941   cat >conftest.$ac_ext <<_ACEOF
10942 #line $LINENO "configure"
10943 /* confdefs.h.  */
10944 _ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h.  */
10948
10949 int
10950 main ()
10951 {
10952 /* FIXME: Include the comments suggested by Paul. */
10953 #ifndef __cplusplus
10954   /* Ultrix mips cc rejects this.  */
10955   typedef int charset[2];
10956   const charset x;
10957   /* SunOS 4.1.1 cc rejects this.  */
10958   char const *const *ccp;
10959   char **p;
10960   /* NEC SVR4.0.2 mips cc rejects this.  */
10961   struct point {int x, y;};
10962   static struct point const zero = {0,0};
10963   /* AIX XL C 1.02.0.0 rejects this.
10964      It does not let you subtract one const X* pointer from another in
10965      an arm of an if-expression whose if-part is not a constant
10966      expression */
10967   const char *g = "string";
10968   ccp = &g + (g ? g-g : 0);
10969   /* HPUX 7.0 cc rejects these. */
10970   ++ccp;
10971   p = (char**) ccp;
10972   ccp = (char const *const *) p;
10973   { /* SCO 3.2v4 cc rejects this.  */
10974     char *t;
10975     char const *s = 0 ? (char *) 0 : (char const *) 0;
10976
10977     *t++ = 0;
10978   }
10979   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10980     int x[] = {25, 17};
10981     const int *foo = &x[0];
10982     ++foo;
10983   }
10984   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10985     typedef const int *iptr;
10986     iptr p = 0;
10987     ++p;
10988   }
10989   { /* AIX XL C 1.02.0.0 rejects this saying
10990        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10991     struct s { int j; const int *ap[3]; };
10992     struct s *b; b->j = 5;
10993   }
10994   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10995     const int foo = 10;
10996   }
10997 #endif
10998
10999   ;
11000   return 0;
11001 }
11002 _ACEOF
11003 rm -f conftest.$ac_objext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005   (eval $ac_compile) 2>&5
11006   ac_status=$?
11007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008   (exit $ac_status); } &&
11009          { ac_try='test -s conftest.$ac_objext'
11010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011   (eval $ac_try) 2>&5
11012   ac_status=$?
11013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014   (exit $ac_status); }; }; then
11015   ac_cv_c_const=yes
11016 else
11017   echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11019
11020 ac_cv_c_const=no
11021 fi
11022 rm -f conftest.$ac_objext conftest.$ac_ext
11023 fi
11024 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11025 echo "${ECHO_T}$ac_cv_c_const" >&6
11026 if test $ac_cv_c_const = no; then
11027
11028 cat >>confdefs.h <<\_ACEOF
11029 #define const
11030 _ACEOF
11031
11032 fi
11033
11034
11035
11036 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11037 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11038 fstype=no
11039 # The order of these tests is important.
11040 cat >conftest.$ac_ext <<_ACEOF
11041 #line $LINENO "configure"
11042 /* confdefs.h.  */
11043 _ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h.  */
11047 #include <sys/statvfs.h>
11048 #include <sys/fstyp.h>
11049 _ACEOF
11050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11051   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11052   ac_status=$?
11053   grep -v '^ *+' conftest.er1 >conftest.err
11054   rm -f conftest.er1
11055   cat conftest.err >&5
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); } >/dev/null; then
11058   if test -s conftest.err; then
11059     ac_cpp_err=$ac_c_preproc_warn_flag
11060   else
11061     ac_cpp_err=
11062   fi
11063 else
11064   ac_cpp_err=yes
11065 fi
11066 if test -z "$ac_cpp_err"; then
11067   cat >>confdefs.h <<\_ACEOF
11068 #define FSTYPE_STATVFS 1
11069 _ACEOF
11070  fstype=SVR4
11071 else
11072   echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11074
11075
11076 fi
11077 rm -f conftest.err conftest.$ac_ext
11078 if test $fstype = no; then
11079 cat >conftest.$ac_ext <<_ACEOF
11080 #line $LINENO "configure"
11081 /* confdefs.h.  */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h.  */
11086 #include <sys/statfs.h>
11087 #include <sys/fstyp.h>
11088 _ACEOF
11089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11090   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11091   ac_status=$?
11092   grep -v '^ *+' conftest.er1 >conftest.err
11093   rm -f conftest.er1
11094   cat conftest.err >&5
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); } >/dev/null; then
11097   if test -s conftest.err; then
11098     ac_cpp_err=$ac_c_preproc_warn_flag
11099   else
11100     ac_cpp_err=
11101   fi
11102 else
11103   ac_cpp_err=yes
11104 fi
11105 if test -z "$ac_cpp_err"; then
11106   cat >>confdefs.h <<\_ACEOF
11107 #define FSTYPE_USG_STATFS 1
11108 _ACEOF
11109  fstype=SVR3
11110 else
11111   echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11113
11114
11115 fi
11116 rm -f conftest.err conftest.$ac_ext
11117 fi
11118 if test $fstype = no; then
11119 cat >conftest.$ac_ext <<_ACEOF
11120 #line $LINENO "configure"
11121 /* confdefs.h.  */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h.  */
11126 #include <sys/statfs.h>
11127 #include <sys/vmount.h>
11128 _ACEOF
11129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11131   ac_status=$?
11132   grep -v '^ *+' conftest.er1 >conftest.err
11133   rm -f conftest.er1
11134   cat conftest.err >&5
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); } >/dev/null; then
11137   if test -s conftest.err; then
11138     ac_cpp_err=$ac_c_preproc_warn_flag
11139   else
11140     ac_cpp_err=
11141   fi
11142 else
11143   ac_cpp_err=yes
11144 fi
11145 if test -z "$ac_cpp_err"; then
11146   cat >>confdefs.h <<\_ACEOF
11147 #define FSTYPE_AIX_STATFS 1
11148 _ACEOF
11149  fstype=AIX
11150 else
11151   echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11153
11154
11155 fi
11156 rm -f conftest.err conftest.$ac_ext
11157 fi
11158 if test $fstype = no; then
11159 cat >conftest.$ac_ext <<_ACEOF
11160 #line $LINENO "configure"
11161 /* confdefs.h.  */
11162 _ACEOF
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h.  */
11166 #include <mntent.h>
11167 _ACEOF
11168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11169   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11170   ac_status=$?
11171   grep -v '^ *+' conftest.er1 >conftest.err
11172   rm -f conftest.er1
11173   cat conftest.err >&5
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); } >/dev/null; then
11176   if test -s conftest.err; then
11177     ac_cpp_err=$ac_c_preproc_warn_flag
11178   else
11179     ac_cpp_err=
11180   fi
11181 else
11182   ac_cpp_err=yes
11183 fi
11184 if test -z "$ac_cpp_err"; then
11185   cat >>confdefs.h <<\_ACEOF
11186 #define FSTYPE_MNTENT 1
11187 _ACEOF
11188  fstype=4.3BSD
11189 else
11190   echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11192
11193
11194 fi
11195 rm -f conftest.err conftest.$ac_ext
11196 fi
11197 if test $fstype = no; then
11198 cat >conftest.$ac_ext <<_ACEOF
11199 #line $LINENO "configure"
11200 /* confdefs.h.  */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h.  */
11205 #include <sys/mount.h>
11206
11207 _ACEOF
11208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11209   $EGREP "f_type;" >/dev/null 2>&1; then
11210   cat >>confdefs.h <<\_ACEOF
11211 #define FSTYPE_STATFS 1
11212 _ACEOF
11213  fstype=4.4BSD/OSF1
11214 fi
11215 rm -f conftest*
11216
11217 fi
11218 if test $fstype = no; then
11219 cat >conftest.$ac_ext <<_ACEOF
11220 #line $LINENO "configure"
11221 /* confdefs.h.  */
11222 _ACEOF
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h.  */
11226 #include <sys/mount.h>
11227 #include <sys/fs_types.h>
11228 _ACEOF
11229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11230   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11231   ac_status=$?
11232   grep -v '^ *+' conftest.er1 >conftest.err
11233   rm -f conftest.er1
11234   cat conftest.err >&5
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); } >/dev/null; then
11237   if test -s conftest.err; then
11238     ac_cpp_err=$ac_c_preproc_warn_flag
11239   else
11240     ac_cpp_err=
11241   fi
11242 else
11243   ac_cpp_err=yes
11244 fi
11245 if test -z "$ac_cpp_err"; then
11246   cat >>confdefs.h <<\_ACEOF
11247 #define FSTYPE_GETMNT 1
11248 _ACEOF
11249  fstype=Ultrix
11250 else
11251   echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11253
11254
11255 fi
11256 rm -f conftest.err conftest.$ac_ext
11257 fi
11258 echo "$as_me:$LINENO: result: $fstype" >&5
11259 echo "${ECHO_T}$fstype" >&6
11260
11261 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11262 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11263 if test "${ac_cv_type_signal+set}" = set; then
11264   echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266   cat >conftest.$ac_ext <<_ACEOF
11267 #line $LINENO "configure"
11268 /* confdefs.h.  */
11269 _ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h.  */
11273 #include <sys/types.h>
11274 #include <signal.h>
11275 #ifdef signal
11276 # undef signal
11277 #endif
11278 #ifdef __cplusplus
11279 extern "C" void (*signal (int, void (*)(int)))(int);
11280 #else
11281 void (*signal ()) ();
11282 #endif
11283
11284 int
11285 main ()
11286 {
11287 int i;
11288   ;
11289   return 0;
11290 }
11291 _ACEOF
11292 rm -f conftest.$ac_objext
11293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11294   (eval $ac_compile) 2>&5
11295   ac_status=$?
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } &&
11298          { ac_try='test -s conftest.$ac_objext'
11299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300   (eval $ac_try) 2>&5
11301   ac_status=$?
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); }; }; then
11304   ac_cv_type_signal=void
11305 else
11306   echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11308
11309 ac_cv_type_signal=int
11310 fi
11311 rm -f conftest.$ac_objext conftest.$ac_ext
11312 fi
11313 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11314 echo "${ECHO_T}$ac_cv_type_signal" >&6
11315
11316 cat >>confdefs.h <<_ACEOF
11317 #define RETSIGTYPE $ac_cv_type_signal
11318 _ACEOF
11319
11320
11321
11322 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11323 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11324 if test "${bash_cv_signal_vintage+set}" = set; then
11325   echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327
11328   cat >conftest.$ac_ext <<_ACEOF
11329 #line $LINENO "configure"
11330 /* confdefs.h.  */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h.  */
11335 #include <signal.h>
11336 int
11337 main ()
11338 {
11339
11340     sigset_t ss;
11341     struct sigaction sa;
11342     sigemptyset(&ss); sigsuspend(&ss);
11343     sigaction(SIGINT, &sa, (struct sigaction *) 0);
11344     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11345
11346   ;
11347   return 0;
11348 }
11349 _ACEOF
11350 rm -f conftest.$ac_objext conftest$ac_exeext
11351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11352   (eval $ac_link) 2>&5
11353   ac_status=$?
11354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355   (exit $ac_status); } &&
11356          { ac_try='test -s conftest$ac_exeext'
11357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358   (eval $ac_try) 2>&5
11359   ac_status=$?
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); }; }; then
11362   bash_cv_signal_vintage=posix
11363 else
11364   echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11366
11367
11368     cat >conftest.$ac_ext <<_ACEOF
11369 #line $LINENO "configure"
11370 /* confdefs.h.  */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h.  */
11375 #include <signal.h>
11376 int
11377 main ()
11378 {
11379
11380         int mask = sigmask(SIGINT);
11381         sigsetmask(mask); sigblock(mask); sigpause(mask);
11382
11383   ;
11384   return 0;
11385 }
11386 _ACEOF
11387 rm -f conftest.$ac_objext conftest$ac_exeext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11389   (eval $ac_link) 2>&5
11390   ac_status=$?
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); } &&
11393          { ac_try='test -s conftest$ac_exeext'
11394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395   (eval $ac_try) 2>&5
11396   ac_status=$?
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); }; }; then
11399   bash_cv_signal_vintage=4.2bsd
11400 else
11401   echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11403
11404
11405       cat >conftest.$ac_ext <<_ACEOF
11406 #line $LINENO "configure"
11407 /* confdefs.h.  */
11408 _ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h.  */
11412
11413         #include <signal.h>
11414         RETSIGTYPE foo() { }
11415 int
11416 main ()
11417 {
11418
11419                 int mask = sigmask(SIGINT);
11420                 sigset(SIGINT, foo); sigrelse(SIGINT);
11421                 sighold(SIGINT); sigpause(SIGINT);
11422
11423   ;
11424   return 0;
11425 }
11426 _ACEOF
11427 rm -f conftest.$ac_objext conftest$ac_exeext
11428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11429   (eval $ac_link) 2>&5
11430   ac_status=$?
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); } &&
11433          { ac_try='test -s conftest$ac_exeext'
11434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435   (eval $ac_try) 2>&5
11436   ac_status=$?
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); }; }; then
11439   bash_cv_signal_vintage=svr3
11440 else
11441   echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11443
11444 bash_cv_signal_vintage=v7
11445
11446 fi
11447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11448
11449 fi
11450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11451
11452 fi
11453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11454
11455 fi
11456
11457 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11458 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11459 if test "$bash_cv_signal_vintage" = posix; then
11460 cat >>confdefs.h <<\_ACEOF
11461 #define HAVE_POSIX_SIGNALS 1
11462 _ACEOF
11463
11464 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11465 cat >>confdefs.h <<\_ACEOF
11466 #define HAVE_BSD_SIGNALS 1
11467 _ACEOF
11468
11469 elif test "$bash_cv_signal_vintage" = svr3; then
11470 cat >>confdefs.h <<\_ACEOF
11471 #define HAVE_USG_SIGHOLD 1
11472 _ACEOF
11473
11474 fi
11475
11476 echo "$as_me:$LINENO: checking for mode_t" >&5
11477 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11478 if test "${ac_cv_type_mode_t+set}" = set; then
11479   echo $ECHO_N "(cached) $ECHO_C" >&6
11480 else
11481   cat >conftest.$ac_ext <<_ACEOF
11482 #line $LINENO "configure"
11483 /* confdefs.h.  */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h.  */
11488 $ac_includes_default
11489 int
11490 main ()
11491 {
11492 if ((mode_t *) 0)
11493   return 0;
11494 if (sizeof (mode_t))
11495   return 0;
11496   ;
11497   return 0;
11498 }
11499 _ACEOF
11500 rm -f conftest.$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502   (eval $ac_compile) 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); } &&
11506          { ac_try='test -s conftest.$ac_objext'
11507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508   (eval $ac_try) 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); }; }; then
11512   ac_cv_type_mode_t=yes
11513 else
11514   echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517 ac_cv_type_mode_t=no
11518 fi
11519 rm -f conftest.$ac_objext conftest.$ac_ext
11520 fi
11521 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11522 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11523 if test $ac_cv_type_mode_t = yes; then
11524   :
11525 else
11526
11527 cat >>confdefs.h <<_ACEOF
11528 #define mode_t int
11529 _ACEOF
11530
11531 fi
11532
11533 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11534 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11535 if test "${ac_cv_type_uid_t+set}" = set; then
11536   echo $ECHO_N "(cached) $ECHO_C" >&6
11537 else
11538   cat >conftest.$ac_ext <<_ACEOF
11539 #line $LINENO "configure"
11540 /* confdefs.h.  */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h.  */
11545 #include <sys/types.h>
11546
11547 _ACEOF
11548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11549   $EGREP "uid_t" >/dev/null 2>&1; then
11550   ac_cv_type_uid_t=yes
11551 else
11552   ac_cv_type_uid_t=no
11553 fi
11554 rm -f conftest*
11555
11556 fi
11557 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11558 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11559 if test $ac_cv_type_uid_t = no; then
11560
11561 cat >>confdefs.h <<\_ACEOF
11562 #define uid_t int
11563 _ACEOF
11564
11565
11566 cat >>confdefs.h <<\_ACEOF
11567 #define gid_t int
11568 _ACEOF
11569
11570 fi
11571
11572 echo "$as_me:$LINENO: checking for size_t" >&5
11573 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11574 if test "${ac_cv_type_size_t+set}" = set; then
11575   echo $ECHO_N "(cached) $ECHO_C" >&6
11576 else
11577   cat >conftest.$ac_ext <<_ACEOF
11578 #line $LINENO "configure"
11579 /* confdefs.h.  */
11580 _ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h.  */
11584 $ac_includes_default
11585 int
11586 main ()
11587 {
11588 if ((size_t *) 0)
11589   return 0;
11590 if (sizeof (size_t))
11591   return 0;
11592   ;
11593   return 0;
11594 }
11595 _ACEOF
11596 rm -f conftest.$ac_objext
11597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11598   (eval $ac_compile) 2>&5
11599   ac_status=$?
11600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); } &&
11602          { ac_try='test -s conftest.$ac_objext'
11603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604   (eval $ac_try) 2>&5
11605   ac_status=$?
11606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607   (exit $ac_status); }; }; then
11608   ac_cv_type_size_t=yes
11609 else
11610   echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.$ac_ext >&5
11612
11613 ac_cv_type_size_t=no
11614 fi
11615 rm -f conftest.$ac_objext conftest.$ac_ext
11616 fi
11617 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11618 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11619 if test $ac_cv_type_size_t = yes; then
11620   :
11621 else
11622
11623 cat >>confdefs.h <<_ACEOF
11624 #define size_t unsigned
11625 _ACEOF
11626
11627 fi
11628
11629 echo "$as_me:$LINENO: checking for pid_t" >&5
11630 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11631 if test "${ac_cv_type_pid_t+set}" = set; then
11632   echo $ECHO_N "(cached) $ECHO_C" >&6
11633 else
11634   cat >conftest.$ac_ext <<_ACEOF
11635 #line $LINENO "configure"
11636 /* confdefs.h.  */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h.  */
11641 $ac_includes_default
11642 int
11643 main ()
11644 {
11645 if ((pid_t *) 0)
11646   return 0;
11647 if (sizeof (pid_t))
11648   return 0;
11649   ;
11650   return 0;
11651 }
11652 _ACEOF
11653 rm -f conftest.$ac_objext
11654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11655   (eval $ac_compile) 2>&5
11656   ac_status=$?
11657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); } &&
11659          { ac_try='test -s conftest.$ac_objext'
11660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661   (eval $ac_try) 2>&5
11662   ac_status=$?
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); }; }; then
11665   ac_cv_type_pid_t=yes
11666 else
11667   echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11669
11670 ac_cv_type_pid_t=no
11671 fi
11672 rm -f conftest.$ac_objext conftest.$ac_ext
11673 fi
11674 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11675 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11676 if test $ac_cv_type_pid_t = yes; then
11677   :
11678 else
11679
11680 cat >>confdefs.h <<_ACEOF
11681 #define pid_t int
11682 _ACEOF
11683
11684 fi
11685
11686 echo "$as_me:$LINENO: checking for off_t" >&5
11687 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11688 if test "${ac_cv_type_off_t+set}" = set; then
11689   echo $ECHO_N "(cached) $ECHO_C" >&6
11690 else
11691   cat >conftest.$ac_ext <<_ACEOF
11692 #line $LINENO "configure"
11693 /* confdefs.h.  */
11694 _ACEOF
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h.  */
11698 $ac_includes_default
11699 int
11700 main ()
11701 {
11702 if ((off_t *) 0)
11703   return 0;
11704 if (sizeof (off_t))
11705   return 0;
11706   ;
11707   return 0;
11708 }
11709 _ACEOF
11710 rm -f conftest.$ac_objext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11712   (eval $ac_compile) 2>&5
11713   ac_status=$?
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); } &&
11716          { ac_try='test -s conftest.$ac_objext'
11717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718   (eval $ac_try) 2>&5
11719   ac_status=$?
11720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721   (exit $ac_status); }; }; then
11722   ac_cv_type_off_t=yes
11723 else
11724   echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727 ac_cv_type_off_t=no
11728 fi
11729 rm -f conftest.$ac_objext conftest.$ac_ext
11730 fi
11731 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11732 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11733 if test $ac_cv_type_off_t = yes; then
11734   :
11735 else
11736
11737 cat >>confdefs.h <<_ACEOF
11738 #define off_t long
11739 _ACEOF
11740
11741 fi
11742
11743 echo "$as_me:$LINENO: checking for ino_t" >&5
11744 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11745 if test "${ac_cv_type_ino_t+set}" = set; then
11746   echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748   cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11750 /* confdefs.h.  */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h.  */
11755 $ac_includes_default
11756 int
11757 main ()
11758 {
11759 if ((ino_t *) 0)
11760   return 0;
11761 if (sizeof (ino_t))
11762   return 0;
11763   ;
11764   return 0;
11765 }
11766 _ACEOF
11767 rm -f conftest.$ac_objext
11768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11769   (eval $ac_compile) 2>&5
11770   ac_status=$?
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); } &&
11773          { ac_try='test -s conftest.$ac_objext'
11774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775   (eval $ac_try) 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); }; }; then
11779   ac_cv_type_ino_t=yes
11780 else
11781   echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11783
11784 ac_cv_type_ino_t=no
11785 fi
11786 rm -f conftest.$ac_objext conftest.$ac_ext
11787 fi
11788 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11789 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11790 if test $ac_cv_type_ino_t = yes; then
11791   :
11792 else
11793
11794 cat >>confdefs.h <<_ACEOF
11795 #define ino_t unsigned long
11796 _ACEOF
11797
11798 fi
11799
11800 echo "$as_me:$LINENO: checking for dev_t" >&5
11801 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11802 if test "${ac_cv_type_dev_t+set}" = set; then
11803   echo $ECHO_N "(cached) $ECHO_C" >&6
11804 else
11805   cat >conftest.$ac_ext <<_ACEOF
11806 #line $LINENO "configure"
11807 /* confdefs.h.  */
11808 _ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h.  */
11812 $ac_includes_default
11813 int
11814 main ()
11815 {
11816 if ((dev_t *) 0)
11817   return 0;
11818 if (sizeof (dev_t))
11819   return 0;
11820   ;
11821   return 0;
11822 }
11823 _ACEOF
11824 rm -f conftest.$ac_objext
11825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11826   (eval $ac_compile) 2>&5
11827   ac_status=$?
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); } &&
11830          { ac_try='test -s conftest.$ac_objext'
11831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832   (eval $ac_try) 2>&5
11833   ac_status=$?
11834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835   (exit $ac_status); }; }; then
11836   ac_cv_type_dev_t=yes
11837 else
11838   echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11840
11841 ac_cv_type_dev_t=no
11842 fi
11843 rm -f conftest.$ac_objext conftest.$ac_ext
11844 fi
11845 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11846 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11847 if test $ac_cv_type_dev_t = yes; then
11848   :
11849 else
11850
11851 cat >>confdefs.h <<_ACEOF
11852 #define dev_t unsigned long
11853 _ACEOF
11854
11855 fi
11856
11857 echo "$as_me:$LINENO: checking for daddr_t" >&5
11858 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11859 if test "${ac_cv_type_daddr_t+set}" = set; then
11860   echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862   cat >conftest.$ac_ext <<_ACEOF
11863 #line $LINENO "configure"
11864 /* confdefs.h.  */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h.  */
11869 $ac_includes_default
11870 int
11871 main ()
11872 {
11873 if ((daddr_t *) 0)
11874   return 0;
11875 if (sizeof (daddr_t))
11876   return 0;
11877   ;
11878   return 0;
11879 }
11880 _ACEOF
11881 rm -f conftest.$ac_objext
11882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11883   (eval $ac_compile) 2>&5
11884   ac_status=$?
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); } &&
11887          { ac_try='test -s conftest.$ac_objext'
11888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889   (eval $ac_try) 2>&5
11890   ac_status=$?
11891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892   (exit $ac_status); }; }; then
11893   ac_cv_type_daddr_t=yes
11894 else
11895   echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11897
11898 ac_cv_type_daddr_t=no
11899 fi
11900 rm -f conftest.$ac_objext conftest.$ac_ext
11901 fi
11902 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11903 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11904 if test $ac_cv_type_daddr_t = yes; then
11905   :
11906 else
11907
11908 cat >>confdefs.h <<_ACEOF
11909 #define daddr_t long
11910 _ACEOF
11911
11912 fi
11913
11914 echo "$as_me:$LINENO: checking for major_t" >&5
11915 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11916 if test "${ac_cv_type_major_t+set}" = set; then
11917   echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919   cat >conftest.$ac_ext <<_ACEOF
11920 #line $LINENO "configure"
11921 /* confdefs.h.  */
11922 _ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h.  */
11926 $ac_includes_default
11927 int
11928 main ()
11929 {
11930 if ((major_t *) 0)
11931   return 0;
11932 if (sizeof (major_t))
11933   return 0;
11934   ;
11935   return 0;
11936 }
11937 _ACEOF
11938 rm -f conftest.$ac_objext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940   (eval $ac_compile) 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); } &&
11944          { ac_try='test -s conftest.$ac_objext'
11945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946   (eval $ac_try) 2>&5
11947   ac_status=$?
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); }; }; then
11950   ac_cv_type_major_t=yes
11951 else
11952   echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11954
11955 ac_cv_type_major_t=no
11956 fi
11957 rm -f conftest.$ac_objext conftest.$ac_ext
11958 fi
11959 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11960 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11961 if test $ac_cv_type_major_t = yes; then
11962   :
11963 else
11964
11965 cat >>confdefs.h <<_ACEOF
11966 #define major_t int
11967 _ACEOF
11968
11969 fi
11970
11971 echo "$as_me:$LINENO: checking for minor_t" >&5
11972 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11973 if test "${ac_cv_type_minor_t+set}" = set; then
11974   echo $ECHO_N "(cached) $ECHO_C" >&6
11975 else
11976   cat >conftest.$ac_ext <<_ACEOF
11977 #line $LINENO "configure"
11978 /* confdefs.h.  */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h.  */
11983 $ac_includes_default
11984 int
11985 main ()
11986 {
11987 if ((minor_t *) 0)
11988   return 0;
11989 if (sizeof (minor_t))
11990   return 0;
11991   ;
11992   return 0;
11993 }
11994 _ACEOF
11995 rm -f conftest.$ac_objext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11997   (eval $ac_compile) 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } &&
12001          { ac_try='test -s conftest.$ac_objext'
12002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003   (eval $ac_try) 2>&5
12004   ac_status=$?
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); }; }; then
12007   ac_cv_type_minor_t=yes
12008 else
12009   echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12011
12012 ac_cv_type_minor_t=no
12013 fi
12014 rm -f conftest.$ac_objext conftest.$ac_ext
12015 fi
12016 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12017 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12018 if test $ac_cv_type_minor_t = yes; then
12019   :
12020 else
12021
12022 cat >>confdefs.h <<_ACEOF
12023 #define minor_t int
12024 _ACEOF
12025
12026 fi
12027
12028 echo "$as_me:$LINENO: checking for ssize_t" >&5
12029 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12030 if test "${ac_cv_type_ssize_t+set}" = set; then
12031   echo $ECHO_N "(cached) $ECHO_C" >&6
12032 else
12033   cat >conftest.$ac_ext <<_ACEOF
12034 #line $LINENO "configure"
12035 /* confdefs.h.  */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h.  */
12040 $ac_includes_default
12041 int
12042 main ()
12043 {
12044 if ((ssize_t *) 0)
12045   return 0;
12046 if (sizeof (ssize_t))
12047   return 0;
12048   ;
12049   return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054   (eval $ac_compile) 2>&5
12055   ac_status=$?
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); } &&
12058          { ac_try='test -s conftest.$ac_objext'
12059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060   (eval $ac_try) 2>&5
12061   ac_status=$?
12062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063   (exit $ac_status); }; }; then
12064   ac_cv_type_ssize_t=yes
12065 else
12066   echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12068
12069 ac_cv_type_ssize_t=no
12070 fi
12071 rm -f conftest.$ac_objext conftest.$ac_ext
12072 fi
12073 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12074 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12075 if test $ac_cv_type_ssize_t = yes; then
12076   :
12077 else
12078
12079 cat >>confdefs.h <<_ACEOF
12080 #define ssize_t int
12081 _ACEOF
12082
12083 fi
12084
12085 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12086 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12087 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12088   echo $ECHO_N "(cached) $ECHO_C" >&6
12089 else
12090   cat >conftest.$ac_ext <<_ACEOF
12091 #line $LINENO "configure"
12092 /* confdefs.h.  */
12093 _ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h.  */
12097 $ac_includes_default
12098 int
12099 main ()
12100 {
12101 static struct stat ac_aggr;
12102 if (ac_aggr.st_blocks)
12103 return 0;
12104   ;
12105   return 0;
12106 }
12107 _ACEOF
12108 rm -f conftest.$ac_objext
12109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12110   (eval $ac_compile) 2>&5
12111   ac_status=$?
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); } &&
12114          { ac_try='test -s conftest.$ac_objext'
12115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116   (eval $ac_try) 2>&5
12117   ac_status=$?
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); }; }; then
12120   ac_cv_member_struct_stat_st_blocks=yes
12121 else
12122   echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12124
12125 cat >conftest.$ac_ext <<_ACEOF
12126 #line $LINENO "configure"
12127 /* confdefs.h.  */
12128 _ACEOF
12129 cat confdefs.h >>conftest.$ac_ext
12130 cat >>conftest.$ac_ext <<_ACEOF
12131 /* end confdefs.h.  */
12132 $ac_includes_default
12133 int
12134 main ()
12135 {
12136 static struct stat ac_aggr;
12137 if (sizeof ac_aggr.st_blocks)
12138 return 0;
12139   ;
12140   return 0;
12141 }
12142 _ACEOF
12143 rm -f conftest.$ac_objext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12145   (eval $ac_compile) 2>&5
12146   ac_status=$?
12147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148   (exit $ac_status); } &&
12149          { ac_try='test -s conftest.$ac_objext'
12150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151   (eval $ac_try) 2>&5
12152   ac_status=$?
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); }; }; then
12155   ac_cv_member_struct_stat_st_blocks=yes
12156 else
12157   echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12159
12160 ac_cv_member_struct_stat_st_blocks=no
12161 fi
12162 rm -f conftest.$ac_objext conftest.$ac_ext
12163 fi
12164 rm -f conftest.$ac_objext conftest.$ac_ext
12165 fi
12166 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12167 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12168 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12169
12170 cat >>confdefs.h <<_ACEOF
12171 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12172 _ACEOF
12173
12174
12175 cat >>confdefs.h <<\_ACEOF
12176 #define HAVE_ST_BLOCKS 1
12177 _ACEOF
12178
12179 else
12180   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12181 fi
12182
12183
12184
12185 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12186 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12187 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12188   echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190   cat >conftest.$ac_ext <<_ACEOF
12191 #line $LINENO "configure"
12192 /* confdefs.h.  */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h.  */
12197 $ac_includes_default
12198 int
12199 main ()
12200 {
12201 static struct stat ac_aggr;
12202 if (ac_aggr.st_rdev)
12203 return 0;
12204   ;
12205   return 0;
12206 }
12207 _ACEOF
12208 rm -f conftest.$ac_objext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12210   (eval $ac_compile) 2>&5
12211   ac_status=$?
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); } &&
12214          { ac_try='test -s conftest.$ac_objext'
12215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216   (eval $ac_try) 2>&5
12217   ac_status=$?
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); }; }; then
12220   ac_cv_member_struct_stat_st_rdev=yes
12221 else
12222   echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12224
12225 cat >conftest.$ac_ext <<_ACEOF
12226 #line $LINENO "configure"
12227 /* confdefs.h.  */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h.  */
12232 $ac_includes_default
12233 int
12234 main ()
12235 {
12236 static struct stat ac_aggr;
12237 if (sizeof ac_aggr.st_rdev)
12238 return 0;
12239   ;
12240   return 0;
12241 }
12242 _ACEOF
12243 rm -f conftest.$ac_objext
12244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12245   (eval $ac_compile) 2>&5
12246   ac_status=$?
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); } &&
12249          { ac_try='test -s conftest.$ac_objext'
12250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251   (eval $ac_try) 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); }; }; then
12255   ac_cv_member_struct_stat_st_rdev=yes
12256 else
12257   echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12259
12260 ac_cv_member_struct_stat_st_rdev=no
12261 fi
12262 rm -f conftest.$ac_objext conftest.$ac_ext
12263 fi
12264 rm -f conftest.$ac_objext conftest.$ac_ext
12265 fi
12266 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12267 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12268 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12269
12270 cat >>confdefs.h <<_ACEOF
12271 #define HAVE_STRUCT_STAT_ST_RDEV 1
12272 _ACEOF
12273
12274
12275 cat >>confdefs.h <<\_ACEOF
12276 #define HAVE_ST_RDEV 1
12277 _ACEOF
12278
12279 fi
12280
12281
12282 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12283 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12284 if test "${ac_cv_struct_tm+set}" = set; then
12285   echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287   cat >conftest.$ac_ext <<_ACEOF
12288 #line $LINENO "configure"
12289 /* confdefs.h.  */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h.  */
12294 #include <sys/types.h>
12295 #include <time.h>
12296
12297 int
12298 main ()
12299 {
12300 struct tm *tp; tp->tm_sec;
12301   ;
12302   return 0;
12303 }
12304 _ACEOF
12305 rm -f conftest.$ac_objext
12306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12307   (eval $ac_compile) 2>&5
12308   ac_status=$?
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); } &&
12311          { ac_try='test -s conftest.$ac_objext'
12312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313   (eval $ac_try) 2>&5
12314   ac_status=$?
12315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316   (exit $ac_status); }; }; then
12317   ac_cv_struct_tm=time.h
12318 else
12319   echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12321
12322 ac_cv_struct_tm=sys/time.h
12323 fi
12324 rm -f conftest.$ac_objext conftest.$ac_ext
12325 fi
12326 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12327 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12328 if test $ac_cv_struct_tm = sys/time.h; then
12329
12330 cat >>confdefs.h <<\_ACEOF
12331 #define TM_IN_SYS_TIME 1
12332 _ACEOF
12333
12334 fi
12335
12336 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12337 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12338 if test "${ac_cv_c_const+set}" = set; then
12339   echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341   cat >conftest.$ac_ext <<_ACEOF
12342 #line $LINENO "configure"
12343 /* confdefs.h.  */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h.  */
12348
12349 int
12350 main ()
12351 {
12352 /* FIXME: Include the comments suggested by Paul. */
12353 #ifndef __cplusplus
12354   /* Ultrix mips cc rejects this.  */
12355   typedef int charset[2];
12356   const charset x;
12357   /* SunOS 4.1.1 cc rejects this.  */
12358   char const *const *ccp;
12359   char **p;
12360   /* NEC SVR4.0.2 mips cc rejects this.  */
12361   struct point {int x, y;};
12362   static struct point const zero = {0,0};
12363   /* AIX XL C 1.02.0.0 rejects this.
12364      It does not let you subtract one const X* pointer from another in
12365      an arm of an if-expression whose if-part is not a constant
12366      expression */
12367   const char *g = "string";
12368   ccp = &g + (g ? g-g : 0);
12369   /* HPUX 7.0 cc rejects these. */
12370   ++ccp;
12371   p = (char**) ccp;
12372   ccp = (char const *const *) p;
12373   { /* SCO 3.2v4 cc rejects this.  */
12374     char *t;
12375     char const *s = 0 ? (char *) 0 : (char const *) 0;
12376
12377     *t++ = 0;
12378   }
12379   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12380     int x[] = {25, 17};
12381     const int *foo = &x[0];
12382     ++foo;
12383   }
12384   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12385     typedef const int *iptr;
12386     iptr p = 0;
12387     ++p;
12388   }
12389   { /* AIX XL C 1.02.0.0 rejects this saying
12390        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12391     struct s { int j; const int *ap[3]; };
12392     struct s *b; b->j = 5;
12393   }
12394   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12395     const int foo = 10;
12396   }
12397 #endif
12398
12399   ;
12400   return 0;
12401 }
12402 _ACEOF
12403 rm -f conftest.$ac_objext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12405   (eval $ac_compile) 2>&5
12406   ac_status=$?
12407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408   (exit $ac_status); } &&
12409          { ac_try='test -s conftest.$ac_objext'
12410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411   (eval $ac_try) 2>&5
12412   ac_status=$?
12413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414   (exit $ac_status); }; }; then
12415   ac_cv_c_const=yes
12416 else
12417   echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12419
12420 ac_cv_c_const=no
12421 fi
12422 rm -f conftest.$ac_objext conftest.$ac_ext
12423 fi
12424 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12425 echo "${ECHO_T}$ac_cv_c_const" >&6
12426 if test $ac_cv_c_const = no; then
12427
12428 cat >>confdefs.h <<\_ACEOF
12429 #define const
12430 _ACEOF
12431
12432 fi
12433
12434
12435
12436 echo "$as_me:$LINENO: checking for char" >&5
12437 echo $ECHO_N "checking for char... $ECHO_C" >&6
12438 if test "${ac_cv_type_char+set}" = set; then
12439   echo $ECHO_N "(cached) $ECHO_C" >&6
12440 else
12441   cat >conftest.$ac_ext <<_ACEOF
12442 #line $LINENO "configure"
12443 /* confdefs.h.  */
12444 _ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h.  */
12448 $ac_includes_default
12449 int
12450 main ()
12451 {
12452 if ((char *) 0)
12453   return 0;
12454 if (sizeof (char))
12455   return 0;
12456   ;
12457   return 0;
12458 }
12459 _ACEOF
12460 rm -f conftest.$ac_objext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462   (eval $ac_compile) 2>&5
12463   ac_status=$?
12464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465   (exit $ac_status); } &&
12466          { ac_try='test -s conftest.$ac_objext'
12467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468   (eval $ac_try) 2>&5
12469   ac_status=$?
12470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471   (exit $ac_status); }; }; then
12472   ac_cv_type_char=yes
12473 else
12474   echo "$as_me: failed program was:" >&5
12475 sed 's/^/| /' conftest.$ac_ext >&5
12476
12477 ac_cv_type_char=no
12478 fi
12479 rm -f conftest.$ac_objext conftest.$ac_ext
12480 fi
12481 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12482 echo "${ECHO_T}$ac_cv_type_char" >&6
12483
12484 echo "$as_me:$LINENO: checking size of char" >&5
12485 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12486 if test "${ac_cv_sizeof_char+set}" = set; then
12487   echo $ECHO_N "(cached) $ECHO_C" >&6
12488 else
12489   if test "$ac_cv_type_char" = yes; then
12490   # The cast to unsigned long works around a bug in the HP C Compiler
12491   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12492   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12493   # This bug is HP SR number 8606223364.
12494   if test "$cross_compiling" = yes; then
12495   # Depending upon the size, compute the lo and hi bounds.
12496 cat >conftest.$ac_ext <<_ACEOF
12497 #line $LINENO "configure"
12498 /* confdefs.h.  */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h.  */
12503 $ac_includes_default
12504 int
12505 main ()
12506 {
12507 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12508 test_array [0] = 0
12509
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516   (eval $ac_compile) 2>&5
12517   ac_status=$?
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); } &&
12520          { ac_try='test -s conftest.$ac_objext'
12521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522   (eval $ac_try) 2>&5
12523   ac_status=$?
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); }; }; then
12526   ac_lo=0 ac_mid=0
12527   while :; do
12528     cat >conftest.$ac_ext <<_ACEOF
12529 #line $LINENO "configure"
12530 /* confdefs.h.  */
12531 _ACEOF
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h.  */
12535 $ac_includes_default
12536 int
12537 main ()
12538 {
12539 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12540 test_array [0] = 0
12541
12542   ;
12543   return 0;
12544 }
12545 _ACEOF
12546 rm -f conftest.$ac_objext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12548   (eval $ac_compile) 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); } &&
12552          { ac_try='test -s conftest.$ac_objext'
12553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554   (eval $ac_try) 2>&5
12555   ac_status=$?
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); }; }; then
12558   ac_hi=$ac_mid; break
12559 else
12560   echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12562
12563 ac_lo=`expr $ac_mid + 1`
12564                     if test $ac_lo -le $ac_mid; then
12565                       ac_lo= ac_hi=
12566                       break
12567                     fi
12568                     ac_mid=`expr 2 '*' $ac_mid + 1`
12569 fi
12570 rm -f conftest.$ac_objext conftest.$ac_ext
12571   done
12572 else
12573   echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12575
12576 cat >conftest.$ac_ext <<_ACEOF
12577 #line $LINENO "configure"
12578 /* confdefs.h.  */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h.  */
12583 $ac_includes_default
12584 int
12585 main ()
12586 {
12587 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12588 test_array [0] = 0
12589
12590   ;
12591   return 0;
12592 }
12593 _ACEOF
12594 rm -f conftest.$ac_objext
12595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12596   (eval $ac_compile) 2>&5
12597   ac_status=$?
12598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); } &&
12600          { ac_try='test -s conftest.$ac_objext'
12601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602   (eval $ac_try) 2>&5
12603   ac_status=$?
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); }; }; then
12606   ac_hi=-1 ac_mid=-1
12607   while :; do
12608     cat >conftest.$ac_ext <<_ACEOF
12609 #line $LINENO "configure"
12610 /* confdefs.h.  */
12611 _ACEOF
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h.  */
12615 $ac_includes_default
12616 int
12617 main ()
12618 {
12619 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12620 test_array [0] = 0
12621
12622   ;
12623   return 0;
12624 }
12625 _ACEOF
12626 rm -f conftest.$ac_objext
12627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12628   (eval $ac_compile) 2>&5
12629   ac_status=$?
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); } &&
12632          { ac_try='test -s conftest.$ac_objext'
12633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634   (eval $ac_try) 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); }; }; then
12638   ac_lo=$ac_mid; break
12639 else
12640   echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12642
12643 ac_hi=`expr '(' $ac_mid ')' - 1`
12644                        if test $ac_mid -le $ac_hi; then
12645                          ac_lo= ac_hi=
12646                          break
12647                        fi
12648                        ac_mid=`expr 2 '*' $ac_mid`
12649 fi
12650 rm -f conftest.$ac_objext conftest.$ac_ext
12651   done
12652 else
12653   echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12655
12656 ac_lo= ac_hi=
12657 fi
12658 rm -f conftest.$ac_objext conftest.$ac_ext
12659 fi
12660 rm -f conftest.$ac_objext conftest.$ac_ext
12661 # Binary search between lo and hi bounds.
12662 while test "x$ac_lo" != "x$ac_hi"; do
12663   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12664   cat >conftest.$ac_ext <<_ACEOF
12665 #line $LINENO "configure"
12666 /* confdefs.h.  */
12667 _ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h.  */
12671 $ac_includes_default
12672 int
12673 main ()
12674 {
12675 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12676 test_array [0] = 0
12677
12678   ;
12679   return 0;
12680 }
12681 _ACEOF
12682 rm -f conftest.$ac_objext
12683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12684   (eval $ac_compile) 2>&5
12685   ac_status=$?
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); } &&
12688          { ac_try='test -s conftest.$ac_objext'
12689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690   (eval $ac_try) 2>&5
12691   ac_status=$?
12692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693   (exit $ac_status); }; }; then
12694   ac_hi=$ac_mid
12695 else
12696   echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12698
12699 ac_lo=`expr '(' $ac_mid ')' + 1`
12700 fi
12701 rm -f conftest.$ac_objext conftest.$ac_ext
12702 done
12703 case $ac_lo in
12704 ?*) ac_cv_sizeof_char=$ac_lo;;
12705 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12706 See \`config.log' for more details." >&5
12707 echo "$as_me: error: cannot compute sizeof (char), 77
12708 See \`config.log' for more details." >&2;}
12709    { (exit 1); exit 1; }; } ;;
12710 esac
12711 else
12712   if test "$cross_compiling" = yes; then
12713   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12714 See \`config.log' for more details." >&5
12715 echo "$as_me: error: cannot run test program while cross compiling
12716 See \`config.log' for more details." >&2;}
12717    { (exit 1); exit 1; }; }
12718 else
12719   cat >conftest.$ac_ext <<_ACEOF
12720 #line $LINENO "configure"
12721 /* confdefs.h.  */
12722 _ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h.  */
12726 $ac_includes_default
12727 long longval () { return (long) (sizeof (char)); }
12728 unsigned long ulongval () { return (long) (sizeof (char)); }
12729 #include <stdio.h>
12730 #include <stdlib.h>
12731 int
12732 main ()
12733 {
12734
12735   FILE *f = fopen ("conftest.val", "w");
12736   if (! f)
12737     exit (1);
12738   if (((long) (sizeof (char))) < 0)
12739     {
12740       long i = longval ();
12741       if (i != ((long) (sizeof (char))))
12742         exit (1);
12743       fprintf (f, "%ld\n", i);
12744     }
12745   else
12746     {
12747       unsigned long i = ulongval ();
12748       if (i != ((long) (sizeof (char))))
12749         exit (1);
12750       fprintf (f, "%lu\n", i);
12751     }
12752   exit (ferror (f) || fclose (f) != 0);
12753
12754   ;
12755   return 0;
12756 }
12757 _ACEOF
12758 rm -f conftest$ac_exeext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12760   (eval $ac_link) 2>&5
12761   ac_status=$?
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765   (eval $ac_try) 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); }; }; then
12769   ac_cv_sizeof_char=`cat conftest.val`
12770 else
12771   echo "$as_me: program exited with status $ac_status" >&5
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12774
12775 ( exit $ac_status )
12776 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12777 See \`config.log' for more details." >&5
12778 echo "$as_me: error: cannot compute sizeof (char), 77
12779 See \`config.log' for more details." >&2;}
12780    { (exit 1); exit 1; }; }
12781 fi
12782 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12783 fi
12784 fi
12785 rm -f conftest.val
12786 else
12787   ac_cv_sizeof_char=0
12788 fi
12789 fi
12790 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12791 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12792 cat >>confdefs.h <<_ACEOF
12793 #define SIZEOF_CHAR $ac_cv_sizeof_char
12794 _ACEOF
12795
12796
12797 echo "$as_me:$LINENO: checking for short int" >&5
12798 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12799 if test "${ac_cv_type_short_int+set}" = set; then
12800   echo $ECHO_N "(cached) $ECHO_C" >&6
12801 else
12802   cat >conftest.$ac_ext <<_ACEOF
12803 #line $LINENO "configure"
12804 /* confdefs.h.  */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h.  */
12809 $ac_includes_default
12810 int
12811 main ()
12812 {
12813 if ((short int *) 0)
12814   return 0;
12815 if (sizeof (short int))
12816   return 0;
12817   ;
12818   return 0;
12819 }
12820 _ACEOF
12821 rm -f conftest.$ac_objext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823   (eval $ac_compile) 2>&5
12824   ac_status=$?
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); } &&
12827          { ac_try='test -s conftest.$ac_objext'
12828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829   (eval $ac_try) 2>&5
12830   ac_status=$?
12831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832   (exit $ac_status); }; }; then
12833   ac_cv_type_short_int=yes
12834 else
12835   echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12837
12838 ac_cv_type_short_int=no
12839 fi
12840 rm -f conftest.$ac_objext conftest.$ac_ext
12841 fi
12842 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12843 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12844
12845 echo "$as_me:$LINENO: checking size of short int" >&5
12846 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12847 if test "${ac_cv_sizeof_short_int+set}" = set; then
12848   echo $ECHO_N "(cached) $ECHO_C" >&6
12849 else
12850   if test "$ac_cv_type_short_int" = yes; then
12851   # The cast to unsigned long works around a bug in the HP C Compiler
12852   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12853   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12854   # This bug is HP SR number 8606223364.
12855   if test "$cross_compiling" = yes; then
12856   # Depending upon the size, compute the lo and hi bounds.
12857 cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12859 /* confdefs.h.  */
12860 _ACEOF
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h.  */
12864 $ac_includes_default
12865 int
12866 main ()
12867 {
12868 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12869 test_array [0] = 0
12870
12871   ;
12872   return 0;
12873 }
12874 _ACEOF
12875 rm -f conftest.$ac_objext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12877   (eval $ac_compile) 2>&5
12878   ac_status=$?
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } &&
12881          { ac_try='test -s conftest.$ac_objext'
12882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883   (eval $ac_try) 2>&5
12884   ac_status=$?
12885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886   (exit $ac_status); }; }; then
12887   ac_lo=0 ac_mid=0
12888   while :; do
12889     cat >conftest.$ac_ext <<_ACEOF
12890 #line $LINENO "configure"
12891 /* confdefs.h.  */
12892 _ACEOF
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h.  */
12896 $ac_includes_default
12897 int
12898 main ()
12899 {
12900 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12901 test_array [0] = 0
12902
12903   ;
12904   return 0;
12905 }
12906 _ACEOF
12907 rm -f conftest.$ac_objext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909   (eval $ac_compile) 2>&5
12910   ac_status=$?
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); } &&
12913          { ac_try='test -s conftest.$ac_objext'
12914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915   (eval $ac_try) 2>&5
12916   ac_status=$?
12917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918   (exit $ac_status); }; }; then
12919   ac_hi=$ac_mid; break
12920 else
12921   echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12923
12924 ac_lo=`expr $ac_mid + 1`
12925                     if test $ac_lo -le $ac_mid; then
12926                       ac_lo= ac_hi=
12927                       break
12928                     fi
12929                     ac_mid=`expr 2 '*' $ac_mid + 1`
12930 fi
12931 rm -f conftest.$ac_objext conftest.$ac_ext
12932   done
12933 else
12934   echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12936
12937 cat >conftest.$ac_ext <<_ACEOF
12938 #line $LINENO "configure"
12939 /* confdefs.h.  */
12940 _ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h.  */
12944 $ac_includes_default
12945 int
12946 main ()
12947 {
12948 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12949 test_array [0] = 0
12950
12951   ;
12952   return 0;
12953 }
12954 _ACEOF
12955 rm -f conftest.$ac_objext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957   (eval $ac_compile) 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); } &&
12961          { ac_try='test -s conftest.$ac_objext'
12962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963   (eval $ac_try) 2>&5
12964   ac_status=$?
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; }; then
12967   ac_hi=-1 ac_mid=-1
12968   while :; do
12969     cat >conftest.$ac_ext <<_ACEOF
12970 #line $LINENO "configure"
12971 /* confdefs.h.  */
12972 _ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h.  */
12976 $ac_includes_default
12977 int
12978 main ()
12979 {
12980 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12981 test_array [0] = 0
12982
12983   ;
12984   return 0;
12985 }
12986 _ACEOF
12987 rm -f conftest.$ac_objext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12989   (eval $ac_compile) 2>&5
12990   ac_status=$?
12991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992   (exit $ac_status); } &&
12993          { ac_try='test -s conftest.$ac_objext'
12994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995   (eval $ac_try) 2>&5
12996   ac_status=$?
12997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998   (exit $ac_status); }; }; then
12999   ac_lo=$ac_mid; break
13000 else
13001   echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13003
13004 ac_hi=`expr '(' $ac_mid ')' - 1`
13005                        if test $ac_mid -le $ac_hi; then
13006                          ac_lo= ac_hi=
13007                          break
13008                        fi
13009                        ac_mid=`expr 2 '*' $ac_mid`
13010 fi
13011 rm -f conftest.$ac_objext conftest.$ac_ext
13012   done
13013 else
13014   echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13016
13017 ac_lo= ac_hi=
13018 fi
13019 rm -f conftest.$ac_objext conftest.$ac_ext
13020 fi
13021 rm -f conftest.$ac_objext conftest.$ac_ext
13022 # Binary search between lo and hi bounds.
13023 while test "x$ac_lo" != "x$ac_hi"; do
13024   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13025   cat >conftest.$ac_ext <<_ACEOF
13026 #line $LINENO "configure"
13027 /* confdefs.h.  */
13028 _ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h.  */
13032 $ac_includes_default
13033 int
13034 main ()
13035 {
13036 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13037 test_array [0] = 0
13038
13039   ;
13040   return 0;
13041 }
13042 _ACEOF
13043 rm -f conftest.$ac_objext
13044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13045   (eval $ac_compile) 2>&5
13046   ac_status=$?
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); } &&
13049          { ac_try='test -s conftest.$ac_objext'
13050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051   (eval $ac_try) 2>&5
13052   ac_status=$?
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); }; }; then
13055   ac_hi=$ac_mid
13056 else
13057   echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13059
13060 ac_lo=`expr '(' $ac_mid ')' + 1`
13061 fi
13062 rm -f conftest.$ac_objext conftest.$ac_ext
13063 done
13064 case $ac_lo in
13065 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13066 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13067 See \`config.log' for more details." >&5
13068 echo "$as_me: error: cannot compute sizeof (short int), 77
13069 See \`config.log' for more details." >&2;}
13070    { (exit 1); exit 1; }; } ;;
13071 esac
13072 else
13073   if test "$cross_compiling" = yes; then
13074   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13075 See \`config.log' for more details." >&5
13076 echo "$as_me: error: cannot run test program while cross compiling
13077 See \`config.log' for more details." >&2;}
13078    { (exit 1); exit 1; }; }
13079 else
13080   cat >conftest.$ac_ext <<_ACEOF
13081 #line $LINENO "configure"
13082 /* confdefs.h.  */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h.  */
13087 $ac_includes_default
13088 long longval () { return (long) (sizeof (short int)); }
13089 unsigned long ulongval () { return (long) (sizeof (short int)); }
13090 #include <stdio.h>
13091 #include <stdlib.h>
13092 int
13093 main ()
13094 {
13095
13096   FILE *f = fopen ("conftest.val", "w");
13097   if (! f)
13098     exit (1);
13099   if (((long) (sizeof (short int))) < 0)
13100     {
13101       long i = longval ();
13102       if (i != ((long) (sizeof (short int))))
13103         exit (1);
13104       fprintf (f, "%ld\n", i);
13105     }
13106   else
13107     {
13108       unsigned long i = ulongval ();
13109       if (i != ((long) (sizeof (short int))))
13110         exit (1);
13111       fprintf (f, "%lu\n", i);
13112     }
13113   exit (ferror (f) || fclose (f) != 0);
13114
13115   ;
13116   return 0;
13117 }
13118 _ACEOF
13119 rm -f conftest$ac_exeext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121   (eval $ac_link) 2>&5
13122   ac_status=$?
13123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126   (eval $ac_try) 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); }; }; then
13130   ac_cv_sizeof_short_int=`cat conftest.val`
13131 else
13132   echo "$as_me: program exited with status $ac_status" >&5
13133 echo "$as_me: failed program was:" >&5
13134 sed 's/^/| /' conftest.$ac_ext >&5
13135
13136 ( exit $ac_status )
13137 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13138 See \`config.log' for more details." >&5
13139 echo "$as_me: error: cannot compute sizeof (short int), 77
13140 See \`config.log' for more details." >&2;}
13141    { (exit 1); exit 1; }; }
13142 fi
13143 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13144 fi
13145 fi
13146 rm -f conftest.val
13147 else
13148   ac_cv_sizeof_short_int=0
13149 fi
13150 fi
13151 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13152 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13153 cat >>confdefs.h <<_ACEOF
13154 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13155 _ACEOF
13156
13157
13158 echo "$as_me:$LINENO: checking for int" >&5
13159 echo $ECHO_N "checking for int... $ECHO_C" >&6
13160 if test "${ac_cv_type_int+set}" = set; then
13161   echo $ECHO_N "(cached) $ECHO_C" >&6
13162 else
13163   cat >conftest.$ac_ext <<_ACEOF
13164 #line $LINENO "configure"
13165 /* confdefs.h.  */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h.  */
13170 $ac_includes_default
13171 int
13172 main ()
13173 {
13174 if ((int *) 0)
13175   return 0;
13176 if (sizeof (int))
13177   return 0;
13178   ;
13179   return 0;
13180 }
13181 _ACEOF
13182 rm -f conftest.$ac_objext
13183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184   (eval $ac_compile) 2>&5
13185   ac_status=$?
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); } &&
13188          { ac_try='test -s conftest.$ac_objext'
13189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190   (eval $ac_try) 2>&5
13191   ac_status=$?
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); }; }; then
13194   ac_cv_type_int=yes
13195 else
13196   echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13198
13199 ac_cv_type_int=no
13200 fi
13201 rm -f conftest.$ac_objext conftest.$ac_ext
13202 fi
13203 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13204 echo "${ECHO_T}$ac_cv_type_int" >&6
13205
13206 echo "$as_me:$LINENO: checking size of int" >&5
13207 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13208 if test "${ac_cv_sizeof_int+set}" = set; then
13209   echo $ECHO_N "(cached) $ECHO_C" >&6
13210 else
13211   if test "$ac_cv_type_int" = yes; then
13212   # The cast to unsigned long works around a bug in the HP C Compiler
13213   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13214   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13215   # This bug is HP SR number 8606223364.
13216   if test "$cross_compiling" = yes; then
13217   # Depending upon the size, compute the lo and hi bounds.
13218 cat >conftest.$ac_ext <<_ACEOF
13219 #line $LINENO "configure"
13220 /* confdefs.h.  */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h.  */
13225 $ac_includes_default
13226 int
13227 main ()
13228 {
13229 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13230 test_array [0] = 0
13231
13232   ;
13233   return 0;
13234 }
13235 _ACEOF
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238   (eval $ac_compile) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); } &&
13242          { ac_try='test -s conftest.$ac_objext'
13243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244   (eval $ac_try) 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); }; }; then
13248   ac_lo=0 ac_mid=0
13249   while :; do
13250     cat >conftest.$ac_ext <<_ACEOF
13251 #line $LINENO "configure"
13252 /* confdefs.h.  */
13253 _ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h.  */
13257 $ac_includes_default
13258 int
13259 main ()
13260 {
13261 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13262 test_array [0] = 0
13263
13264   ;
13265   return 0;
13266 }
13267 _ACEOF
13268 rm -f conftest.$ac_objext
13269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13270   (eval $ac_compile) 2>&5
13271   ac_status=$?
13272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273   (exit $ac_status); } &&
13274          { ac_try='test -s conftest.$ac_objext'
13275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276   (eval $ac_try) 2>&5
13277   ac_status=$?
13278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279   (exit $ac_status); }; }; then
13280   ac_hi=$ac_mid; break
13281 else
13282   echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13284
13285 ac_lo=`expr $ac_mid + 1`
13286                     if test $ac_lo -le $ac_mid; then
13287                       ac_lo= ac_hi=
13288                       break
13289                     fi
13290                     ac_mid=`expr 2 '*' $ac_mid + 1`
13291 fi
13292 rm -f conftest.$ac_objext conftest.$ac_ext
13293   done
13294 else
13295   echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13297
13298 cat >conftest.$ac_ext <<_ACEOF
13299 #line $LINENO "configure"
13300 /* confdefs.h.  */
13301 _ACEOF
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h.  */
13305 $ac_includes_default
13306 int
13307 main ()
13308 {
13309 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13310 test_array [0] = 0
13311
13312   ;
13313   return 0;
13314 }
13315 _ACEOF
13316 rm -f conftest.$ac_objext
13317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13318   (eval $ac_compile) 2>&5
13319   ac_status=$?
13320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321   (exit $ac_status); } &&
13322          { ac_try='test -s conftest.$ac_objext'
13323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324   (eval $ac_try) 2>&5
13325   ac_status=$?
13326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327   (exit $ac_status); }; }; then
13328   ac_hi=-1 ac_mid=-1
13329   while :; do
13330     cat >conftest.$ac_ext <<_ACEOF
13331 #line $LINENO "configure"
13332 /* confdefs.h.  */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h.  */
13337 $ac_includes_default
13338 int
13339 main ()
13340 {
13341 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13342 test_array [0] = 0
13343
13344   ;
13345   return 0;
13346 }
13347 _ACEOF
13348 rm -f conftest.$ac_objext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13350   (eval $ac_compile) 2>&5
13351   ac_status=$?
13352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353   (exit $ac_status); } &&
13354          { ac_try='test -s conftest.$ac_objext'
13355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356   (eval $ac_try) 2>&5
13357   ac_status=$?
13358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359   (exit $ac_status); }; }; then
13360   ac_lo=$ac_mid; break
13361 else
13362   echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13364
13365 ac_hi=`expr '(' $ac_mid ')' - 1`
13366                        if test $ac_mid -le $ac_hi; then
13367                          ac_lo= ac_hi=
13368                          break
13369                        fi
13370                        ac_mid=`expr 2 '*' $ac_mid`
13371 fi
13372 rm -f conftest.$ac_objext conftest.$ac_ext
13373   done
13374 else
13375   echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13377
13378 ac_lo= ac_hi=
13379 fi
13380 rm -f conftest.$ac_objext conftest.$ac_ext
13381 fi
13382 rm -f conftest.$ac_objext conftest.$ac_ext
13383 # Binary search between lo and hi bounds.
13384 while test "x$ac_lo" != "x$ac_hi"; do
13385   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13386   cat >conftest.$ac_ext <<_ACEOF
13387 #line $LINENO "configure"
13388 /* confdefs.h.  */
13389 _ACEOF
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h.  */
13393 $ac_includes_default
13394 int
13395 main ()
13396 {
13397 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13398 test_array [0] = 0
13399
13400   ;
13401   return 0;
13402 }
13403 _ACEOF
13404 rm -f conftest.$ac_objext
13405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13406   (eval $ac_compile) 2>&5
13407   ac_status=$?
13408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409   (exit $ac_status); } &&
13410          { ac_try='test -s conftest.$ac_objext'
13411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412   (eval $ac_try) 2>&5
13413   ac_status=$?
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); }; }; then
13416   ac_hi=$ac_mid
13417 else
13418   echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13420
13421 ac_lo=`expr '(' $ac_mid ')' + 1`
13422 fi
13423 rm -f conftest.$ac_objext conftest.$ac_ext
13424 done
13425 case $ac_lo in
13426 ?*) ac_cv_sizeof_int=$ac_lo;;
13427 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13428 See \`config.log' for more details." >&5
13429 echo "$as_me: error: cannot compute sizeof (int), 77
13430 See \`config.log' for more details." >&2;}
13431    { (exit 1); exit 1; }; } ;;
13432 esac
13433 else
13434   if test "$cross_compiling" = yes; then
13435   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13436 See \`config.log' for more details." >&5
13437 echo "$as_me: error: cannot run test program while cross compiling
13438 See \`config.log' for more details." >&2;}
13439    { (exit 1); exit 1; }; }
13440 else
13441   cat >conftest.$ac_ext <<_ACEOF
13442 #line $LINENO "configure"
13443 /* confdefs.h.  */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h.  */
13448 $ac_includes_default
13449 long longval () { return (long) (sizeof (int)); }
13450 unsigned long ulongval () { return (long) (sizeof (int)); }
13451 #include <stdio.h>
13452 #include <stdlib.h>
13453 int
13454 main ()
13455 {
13456
13457   FILE *f = fopen ("conftest.val", "w");
13458   if (! f)
13459     exit (1);
13460   if (((long) (sizeof (int))) < 0)
13461     {
13462       long i = longval ();
13463       if (i != ((long) (sizeof (int))))
13464         exit (1);
13465       fprintf (f, "%ld\n", i);
13466     }
13467   else
13468     {
13469       unsigned long i = ulongval ();
13470       if (i != ((long) (sizeof (int))))
13471         exit (1);
13472       fprintf (f, "%lu\n", i);
13473     }
13474   exit (ferror (f) || fclose (f) != 0);
13475
13476   ;
13477   return 0;
13478 }
13479 _ACEOF
13480 rm -f conftest$ac_exeext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482   (eval $ac_link) 2>&5
13483   ac_status=$?
13484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487   (eval $ac_try) 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); }; }; then
13491   ac_cv_sizeof_int=`cat conftest.val`
13492 else
13493   echo "$as_me: program exited with status $ac_status" >&5
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 ( exit $ac_status )
13498 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13499 See \`config.log' for more details." >&5
13500 echo "$as_me: error: cannot compute sizeof (int), 77
13501 See \`config.log' for more details." >&2;}
13502    { (exit 1); exit 1; }; }
13503 fi
13504 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13505 fi
13506 fi
13507 rm -f conftest.val
13508 else
13509   ac_cv_sizeof_int=0
13510 fi
13511 fi
13512 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13513 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13514 cat >>confdefs.h <<_ACEOF
13515 #define SIZEOF_INT $ac_cv_sizeof_int
13516 _ACEOF
13517
13518
13519 echo "$as_me:$LINENO: checking for long int" >&5
13520 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13521 if test "${ac_cv_type_long_int+set}" = set; then
13522   echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524   cat >conftest.$ac_ext <<_ACEOF
13525 #line $LINENO "configure"
13526 /* confdefs.h.  */
13527 _ACEOF
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h.  */
13531 $ac_includes_default
13532 int
13533 main ()
13534 {
13535 if ((long int *) 0)
13536   return 0;
13537 if (sizeof (long int))
13538   return 0;
13539   ;
13540   return 0;
13541 }
13542 _ACEOF
13543 rm -f conftest.$ac_objext
13544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13545   (eval $ac_compile) 2>&5
13546   ac_status=$?
13547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548   (exit $ac_status); } &&
13549          { ac_try='test -s conftest.$ac_objext'
13550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551   (eval $ac_try) 2>&5
13552   ac_status=$?
13553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554   (exit $ac_status); }; }; then
13555   ac_cv_type_long_int=yes
13556 else
13557   echo "$as_me: failed program was:" >&5
13558 sed 's/^/| /' conftest.$ac_ext >&5
13559
13560 ac_cv_type_long_int=no
13561 fi
13562 rm -f conftest.$ac_objext conftest.$ac_ext
13563 fi
13564 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13565 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13566
13567 echo "$as_me:$LINENO: checking size of long int" >&5
13568 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13569 if test "${ac_cv_sizeof_long_int+set}" = set; then
13570   echo $ECHO_N "(cached) $ECHO_C" >&6
13571 else
13572   if test "$ac_cv_type_long_int" = yes; then
13573   # The cast to unsigned long works around a bug in the HP C Compiler
13574   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13575   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13576   # This bug is HP SR number 8606223364.
13577   if test "$cross_compiling" = yes; then
13578   # Depending upon the size, compute the lo and hi bounds.
13579 cat >conftest.$ac_ext <<_ACEOF
13580 #line $LINENO "configure"
13581 /* confdefs.h.  */
13582 _ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h.  */
13586 $ac_includes_default
13587 int
13588 main ()
13589 {
13590 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13591 test_array [0] = 0
13592
13593   ;
13594   return 0;
13595 }
13596 _ACEOF
13597 rm -f conftest.$ac_objext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13599   (eval $ac_compile) 2>&5
13600   ac_status=$?
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); } &&
13603          { ac_try='test -s conftest.$ac_objext'
13604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605   (eval $ac_try) 2>&5
13606   ac_status=$?
13607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608   (exit $ac_status); }; }; then
13609   ac_lo=0 ac_mid=0
13610   while :; do
13611     cat >conftest.$ac_ext <<_ACEOF
13612 #line $LINENO "configure"
13613 /* confdefs.h.  */
13614 _ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h.  */
13618 $ac_includes_default
13619 int
13620 main ()
13621 {
13622 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13623 test_array [0] = 0
13624
13625   ;
13626   return 0;
13627 }
13628 _ACEOF
13629 rm -f conftest.$ac_objext
13630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13631   (eval $ac_compile) 2>&5
13632   ac_status=$?
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); } &&
13635          { ac_try='test -s conftest.$ac_objext'
13636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637   (eval $ac_try) 2>&5
13638   ac_status=$?
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); }; }; then
13641   ac_hi=$ac_mid; break
13642 else
13643   echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13645
13646 ac_lo=`expr $ac_mid + 1`
13647                     if test $ac_lo -le $ac_mid; then
13648                       ac_lo= ac_hi=
13649                       break
13650                     fi
13651                     ac_mid=`expr 2 '*' $ac_mid + 1`
13652 fi
13653 rm -f conftest.$ac_objext conftest.$ac_ext
13654   done
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659 cat >conftest.$ac_ext <<_ACEOF
13660 #line $LINENO "configure"
13661 /* confdefs.h.  */
13662 _ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h.  */
13666 $ac_includes_default
13667 int
13668 main ()
13669 {
13670 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13671 test_array [0] = 0
13672
13673   ;
13674   return 0;
13675 }
13676 _ACEOF
13677 rm -f conftest.$ac_objext
13678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13679   (eval $ac_compile) 2>&5
13680   ac_status=$?
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); } &&
13683          { ac_try='test -s conftest.$ac_objext'
13684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685   (eval $ac_try) 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; }; then
13689   ac_hi=-1 ac_mid=-1
13690   while :; do
13691     cat >conftest.$ac_ext <<_ACEOF
13692 #line $LINENO "configure"
13693 /* confdefs.h.  */
13694 _ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h.  */
13698 $ac_includes_default
13699 int
13700 main ()
13701 {
13702 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13703 test_array [0] = 0
13704
13705   ;
13706   return 0;
13707 }
13708 _ACEOF
13709 rm -f conftest.$ac_objext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13711   (eval $ac_compile) 2>&5
13712   ac_status=$?
13713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714   (exit $ac_status); } &&
13715          { ac_try='test -s conftest.$ac_objext'
13716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717   (eval $ac_try) 2>&5
13718   ac_status=$?
13719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720   (exit $ac_status); }; }; then
13721   ac_lo=$ac_mid; break
13722 else
13723   echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13725
13726 ac_hi=`expr '(' $ac_mid ')' - 1`
13727                        if test $ac_mid -le $ac_hi; then
13728                          ac_lo= ac_hi=
13729                          break
13730                        fi
13731                        ac_mid=`expr 2 '*' $ac_mid`
13732 fi
13733 rm -f conftest.$ac_objext conftest.$ac_ext
13734   done
13735 else
13736   echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13738
13739 ac_lo= ac_hi=
13740 fi
13741 rm -f conftest.$ac_objext conftest.$ac_ext
13742 fi
13743 rm -f conftest.$ac_objext conftest.$ac_ext
13744 # Binary search between lo and hi bounds.
13745 while test "x$ac_lo" != "x$ac_hi"; do
13746   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13747   cat >conftest.$ac_ext <<_ACEOF
13748 #line $LINENO "configure"
13749 /* confdefs.h.  */
13750 _ACEOF
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h.  */
13754 $ac_includes_default
13755 int
13756 main ()
13757 {
13758 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13759 test_array [0] = 0
13760
13761   ;
13762   return 0;
13763 }
13764 _ACEOF
13765 rm -f conftest.$ac_objext
13766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13767   (eval $ac_compile) 2>&5
13768   ac_status=$?
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); } &&
13771          { ac_try='test -s conftest.$ac_objext'
13772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773   (eval $ac_try) 2>&5
13774   ac_status=$?
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); }; }; then
13777   ac_hi=$ac_mid
13778 else
13779   echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13781
13782 ac_lo=`expr '(' $ac_mid ')' + 1`
13783 fi
13784 rm -f conftest.$ac_objext conftest.$ac_ext
13785 done
13786 case $ac_lo in
13787 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13788 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13789 See \`config.log' for more details." >&5
13790 echo "$as_me: error: cannot compute sizeof (long int), 77
13791 See \`config.log' for more details." >&2;}
13792    { (exit 1); exit 1; }; } ;;
13793 esac
13794 else
13795   if test "$cross_compiling" = yes; then
13796   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13797 See \`config.log' for more details." >&5
13798 echo "$as_me: error: cannot run test program while cross compiling
13799 See \`config.log' for more details." >&2;}
13800    { (exit 1); exit 1; }; }
13801 else
13802   cat >conftest.$ac_ext <<_ACEOF
13803 #line $LINENO "configure"
13804 /* confdefs.h.  */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h.  */
13809 $ac_includes_default
13810 long longval () { return (long) (sizeof (long int)); }
13811 unsigned long ulongval () { return (long) (sizeof (long int)); }
13812 #include <stdio.h>
13813 #include <stdlib.h>
13814 int
13815 main ()
13816 {
13817
13818   FILE *f = fopen ("conftest.val", "w");
13819   if (! f)
13820     exit (1);
13821   if (((long) (sizeof (long int))) < 0)
13822     {
13823       long i = longval ();
13824       if (i != ((long) (sizeof (long int))))
13825         exit (1);
13826       fprintf (f, "%ld\n", i);
13827     }
13828   else
13829     {
13830       unsigned long i = ulongval ();
13831       if (i != ((long) (sizeof (long int))))
13832         exit (1);
13833       fprintf (f, "%lu\n", i);
13834     }
13835   exit (ferror (f) || fclose (f) != 0);
13836
13837   ;
13838   return 0;
13839 }
13840 _ACEOF
13841 rm -f conftest$ac_exeext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13843   (eval $ac_link) 2>&5
13844   ac_status=$?
13845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848   (eval $ac_try) 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); }; }; then
13852   ac_cv_sizeof_long_int=`cat conftest.val`
13853 else
13854   echo "$as_me: program exited with status $ac_status" >&5
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13857
13858 ( exit $ac_status )
13859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13860 See \`config.log' for more details." >&5
13861 echo "$as_me: error: cannot compute sizeof (long int), 77
13862 See \`config.log' for more details." >&2;}
13863    { (exit 1); exit 1; }; }
13864 fi
13865 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13866 fi
13867 fi
13868 rm -f conftest.val
13869 else
13870   ac_cv_sizeof_long_int=0
13871 fi
13872 fi
13873 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13874 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13875 cat >>confdefs.h <<_ACEOF
13876 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13877 _ACEOF
13878
13879
13880 echo "$as_me:$LINENO: checking for long long int" >&5
13881 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13882 if test "${ac_cv_type_long_long_int+set}" = set; then
13883   echo $ECHO_N "(cached) $ECHO_C" >&6
13884 else
13885   cat >conftest.$ac_ext <<_ACEOF
13886 #line $LINENO "configure"
13887 /* confdefs.h.  */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h.  */
13892 $ac_includes_default
13893 int
13894 main ()
13895 {
13896 if ((long long int *) 0)
13897   return 0;
13898 if (sizeof (long long int))
13899   return 0;
13900   ;
13901   return 0;
13902 }
13903 _ACEOF
13904 rm -f conftest.$ac_objext
13905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13906   (eval $ac_compile) 2>&5
13907   ac_status=$?
13908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   (exit $ac_status); } &&
13910          { ac_try='test -s conftest.$ac_objext'
13911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912   (eval $ac_try) 2>&5
13913   ac_status=$?
13914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915   (exit $ac_status); }; }; then
13916   ac_cv_type_long_long_int=yes
13917 else
13918   echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13920
13921 ac_cv_type_long_long_int=no
13922 fi
13923 rm -f conftest.$ac_objext conftest.$ac_ext
13924 fi
13925 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13926 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13927
13928 echo "$as_me:$LINENO: checking size of long long int" >&5
13929 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13930 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13931   echo $ECHO_N "(cached) $ECHO_C" >&6
13932 else
13933   if test "$ac_cv_type_long_long_int" = yes; then
13934   # The cast to unsigned long works around a bug in the HP C Compiler
13935   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13936   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13937   # This bug is HP SR number 8606223364.
13938   if test "$cross_compiling" = yes; then
13939   # Depending upon the size, compute the lo and hi bounds.
13940 cat >conftest.$ac_ext <<_ACEOF
13941 #line $LINENO "configure"
13942 /* confdefs.h.  */
13943 _ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h.  */
13947 $ac_includes_default
13948 int
13949 main ()
13950 {
13951 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13952 test_array [0] = 0
13953
13954   ;
13955   return 0;
13956 }
13957 _ACEOF
13958 rm -f conftest.$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960   (eval $ac_compile) 2>&5
13961   ac_status=$?
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); } &&
13964          { ac_try='test -s conftest.$ac_objext'
13965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966   (eval $ac_try) 2>&5
13967   ac_status=$?
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); }; }; then
13970   ac_lo=0 ac_mid=0
13971   while :; do
13972     cat >conftest.$ac_ext <<_ACEOF
13973 #line $LINENO "configure"
13974 /* confdefs.h.  */
13975 _ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h.  */
13979 $ac_includes_default
13980 int
13981 main ()
13982 {
13983 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13984 test_array [0] = 0
13985
13986   ;
13987   return 0;
13988 }
13989 _ACEOF
13990 rm -f conftest.$ac_objext
13991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13992   (eval $ac_compile) 2>&5
13993   ac_status=$?
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); } &&
13996          { ac_try='test -s conftest.$ac_objext'
13997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998   (eval $ac_try) 2>&5
13999   ac_status=$?
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); }; }; then
14002   ac_hi=$ac_mid; break
14003 else
14004   echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14006
14007 ac_lo=`expr $ac_mid + 1`
14008                     if test $ac_lo -le $ac_mid; then
14009                       ac_lo= ac_hi=
14010                       break
14011                     fi
14012                     ac_mid=`expr 2 '*' $ac_mid + 1`
14013 fi
14014 rm -f conftest.$ac_objext conftest.$ac_ext
14015   done
14016 else
14017   echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14019
14020 cat >conftest.$ac_ext <<_ACEOF
14021 #line $LINENO "configure"
14022 /* confdefs.h.  */
14023 _ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h.  */
14027 $ac_includes_default
14028 int
14029 main ()
14030 {
14031 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14032 test_array [0] = 0
14033
14034   ;
14035   return 0;
14036 }
14037 _ACEOF
14038 rm -f conftest.$ac_objext
14039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14040   (eval $ac_compile) 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); } &&
14044          { ac_try='test -s conftest.$ac_objext'
14045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046   (eval $ac_try) 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; }; then
14050   ac_hi=-1 ac_mid=-1
14051   while :; do
14052     cat >conftest.$ac_ext <<_ACEOF
14053 #line $LINENO "configure"
14054 /* confdefs.h.  */
14055 _ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h.  */
14059 $ac_includes_default
14060 int
14061 main ()
14062 {
14063 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14064 test_array [0] = 0
14065
14066   ;
14067   return 0;
14068 }
14069 _ACEOF
14070 rm -f conftest.$ac_objext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072   (eval $ac_compile) 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); } &&
14076          { ac_try='test -s conftest.$ac_objext'
14077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078   (eval $ac_try) 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; }; then
14082   ac_lo=$ac_mid; break
14083 else
14084   echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14086
14087 ac_hi=`expr '(' $ac_mid ')' - 1`
14088                        if test $ac_mid -le $ac_hi; then
14089                          ac_lo= ac_hi=
14090                          break
14091                        fi
14092                        ac_mid=`expr 2 '*' $ac_mid`
14093 fi
14094 rm -f conftest.$ac_objext conftest.$ac_ext
14095   done
14096 else
14097   echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100 ac_lo= ac_hi=
14101 fi
14102 rm -f conftest.$ac_objext conftest.$ac_ext
14103 fi
14104 rm -f conftest.$ac_objext conftest.$ac_ext
14105 # Binary search between lo and hi bounds.
14106 while test "x$ac_lo" != "x$ac_hi"; do
14107   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14108   cat >conftest.$ac_ext <<_ACEOF
14109 #line $LINENO "configure"
14110 /* confdefs.h.  */
14111 _ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h.  */
14115 $ac_includes_default
14116 int
14117 main ()
14118 {
14119 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14120 test_array [0] = 0
14121
14122   ;
14123   return 0;
14124 }
14125 _ACEOF
14126 rm -f conftest.$ac_objext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14128   (eval $ac_compile) 2>&5
14129   ac_status=$?
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); } &&
14132          { ac_try='test -s conftest.$ac_objext'
14133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134   (eval $ac_try) 2>&5
14135   ac_status=$?
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); }; }; then
14138   ac_hi=$ac_mid
14139 else
14140   echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14142
14143 ac_lo=`expr '(' $ac_mid ')' + 1`
14144 fi
14145 rm -f conftest.$ac_objext conftest.$ac_ext
14146 done
14147 case $ac_lo in
14148 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14149 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14150 See \`config.log' for more details." >&5
14151 echo "$as_me: error: cannot compute sizeof (long long int), 77
14152 See \`config.log' for more details." >&2;}
14153    { (exit 1); exit 1; }; } ;;
14154 esac
14155 else
14156   if test "$cross_compiling" = yes; then
14157   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14158 See \`config.log' for more details." >&5
14159 echo "$as_me: error: cannot run test program while cross compiling
14160 See \`config.log' for more details." >&2;}
14161    { (exit 1); exit 1; }; }
14162 else
14163   cat >conftest.$ac_ext <<_ACEOF
14164 #line $LINENO "configure"
14165 /* confdefs.h.  */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h.  */
14170 $ac_includes_default
14171 long longval () { return (long) (sizeof (long long int)); }
14172 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14173 #include <stdio.h>
14174 #include <stdlib.h>
14175 int
14176 main ()
14177 {
14178
14179   FILE *f = fopen ("conftest.val", "w");
14180   if (! f)
14181     exit (1);
14182   if (((long) (sizeof (long long int))) < 0)
14183     {
14184       long i = longval ();
14185       if (i != ((long) (sizeof (long long int))))
14186         exit (1);
14187       fprintf (f, "%ld\n", i);
14188     }
14189   else
14190     {
14191       unsigned long i = ulongval ();
14192       if (i != ((long) (sizeof (long long int))))
14193         exit (1);
14194       fprintf (f, "%lu\n", i);
14195     }
14196   exit (ferror (f) || fclose (f) != 0);
14197
14198   ;
14199   return 0;
14200 }
14201 _ACEOF
14202 rm -f conftest$ac_exeext
14203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14204   (eval $ac_link) 2>&5
14205   ac_status=$?
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209   (eval $ac_try) 2>&5
14210   ac_status=$?
14211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212   (exit $ac_status); }; }; then
14213   ac_cv_sizeof_long_long_int=`cat conftest.val`
14214 else
14215   echo "$as_me: program exited with status $ac_status" >&5
14216 echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.$ac_ext >&5
14218
14219 ( exit $ac_status )
14220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14221 See \`config.log' for more details." >&5
14222 echo "$as_me: error: cannot compute sizeof (long long int), 77
14223 See \`config.log' for more details." >&2;}
14224    { (exit 1); exit 1; }; }
14225 fi
14226 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14227 fi
14228 fi
14229 rm -f conftest.val
14230 else
14231   ac_cv_sizeof_long_long_int=0
14232 fi
14233 fi
14234 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14235 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14236 cat >>confdefs.h <<_ACEOF
14237 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14238 _ACEOF
14239
14240
14241 echo "$as_me:$LINENO: checking for int *" >&5
14242 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14243 if test "${ac_cv_type_int_p+set}" = set; then
14244   echo $ECHO_N "(cached) $ECHO_C" >&6
14245 else
14246   cat >conftest.$ac_ext <<_ACEOF
14247 #line $LINENO "configure"
14248 /* confdefs.h.  */
14249 _ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h.  */
14253 $ac_includes_default
14254 int
14255 main ()
14256 {
14257 if ((int * *) 0)
14258   return 0;
14259 if (sizeof (int *))
14260   return 0;
14261   ;
14262   return 0;
14263 }
14264 _ACEOF
14265 rm -f conftest.$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267   (eval $ac_compile) 2>&5
14268   ac_status=$?
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); } &&
14271          { ac_try='test -s conftest.$ac_objext'
14272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273   (eval $ac_try) 2>&5
14274   ac_status=$?
14275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); }; }; then
14277   ac_cv_type_int_p=yes
14278 else
14279   echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14281
14282 ac_cv_type_int_p=no
14283 fi
14284 rm -f conftest.$ac_objext conftest.$ac_ext
14285 fi
14286 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14287 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14288
14289 echo "$as_me:$LINENO: checking size of int *" >&5
14290 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14291 if test "${ac_cv_sizeof_int_p+set}" = set; then
14292   echo $ECHO_N "(cached) $ECHO_C" >&6
14293 else
14294   if test "$ac_cv_type_int_p" = yes; then
14295   # The cast to unsigned long works around a bug in the HP C Compiler
14296   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14297   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14298   # This bug is HP SR number 8606223364.
14299   if test "$cross_compiling" = yes; then
14300   # Depending upon the size, compute the lo and hi bounds.
14301 cat >conftest.$ac_ext <<_ACEOF
14302 #line $LINENO "configure"
14303 /* confdefs.h.  */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h.  */
14308 $ac_includes_default
14309 int
14310 main ()
14311 {
14312 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14313 test_array [0] = 0
14314
14315   ;
14316   return 0;
14317 }
14318 _ACEOF
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321   (eval $ac_compile) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); } &&
14325          { ac_try='test -s conftest.$ac_objext'
14326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327   (eval $ac_try) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; }; then
14331   ac_lo=0 ac_mid=0
14332   while :; do
14333     cat >conftest.$ac_ext <<_ACEOF
14334 #line $LINENO "configure"
14335 /* confdefs.h.  */
14336 _ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h.  */
14340 $ac_includes_default
14341 int
14342 main ()
14343 {
14344 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14345 test_array [0] = 0
14346
14347   ;
14348   return 0;
14349 }
14350 _ACEOF
14351 rm -f conftest.$ac_objext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14353   (eval $ac_compile) 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); } &&
14357          { ac_try='test -s conftest.$ac_objext'
14358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359   (eval $ac_try) 2>&5
14360   ac_status=$?
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); }; }; then
14363   ac_hi=$ac_mid; break
14364 else
14365   echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14367
14368 ac_lo=`expr $ac_mid + 1`
14369                     if test $ac_lo -le $ac_mid; then
14370                       ac_lo= ac_hi=
14371                       break
14372                     fi
14373                     ac_mid=`expr 2 '*' $ac_mid + 1`
14374 fi
14375 rm -f conftest.$ac_objext conftest.$ac_ext
14376   done
14377 else
14378   echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14380
14381 cat >conftest.$ac_ext <<_ACEOF
14382 #line $LINENO "configure"
14383 /* confdefs.h.  */
14384 _ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h.  */
14388 $ac_includes_default
14389 int
14390 main ()
14391 {
14392 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14393 test_array [0] = 0
14394
14395   ;
14396   return 0;
14397 }
14398 _ACEOF
14399 rm -f conftest.$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401   (eval $ac_compile) 2>&5
14402   ac_status=$?
14403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404   (exit $ac_status); } &&
14405          { ac_try='test -s conftest.$ac_objext'
14406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14407   (eval $ac_try) 2>&5
14408   ac_status=$?
14409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410   (exit $ac_status); }; }; then
14411   ac_hi=-1 ac_mid=-1
14412   while :; do
14413     cat >conftest.$ac_ext <<_ACEOF
14414 #line $LINENO "configure"
14415 /* confdefs.h.  */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h.  */
14420 $ac_includes_default
14421 int
14422 main ()
14423 {
14424 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14425 test_array [0] = 0
14426
14427   ;
14428   return 0;
14429 }
14430 _ACEOF
14431 rm -f conftest.$ac_objext
14432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14433   (eval $ac_compile) 2>&5
14434   ac_status=$?
14435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436   (exit $ac_status); } &&
14437          { ac_try='test -s conftest.$ac_objext'
14438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439   (eval $ac_try) 2>&5
14440   ac_status=$?
14441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442   (exit $ac_status); }; }; then
14443   ac_lo=$ac_mid; break
14444 else
14445   echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14447
14448 ac_hi=`expr '(' $ac_mid ')' - 1`
14449                        if test $ac_mid -le $ac_hi; then
14450                          ac_lo= ac_hi=
14451                          break
14452                        fi
14453                        ac_mid=`expr 2 '*' $ac_mid`
14454 fi
14455 rm -f conftest.$ac_objext conftest.$ac_ext
14456   done
14457 else
14458   echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14460
14461 ac_lo= ac_hi=
14462 fi
14463 rm -f conftest.$ac_objext conftest.$ac_ext
14464 fi
14465 rm -f conftest.$ac_objext conftest.$ac_ext
14466 # Binary search between lo and hi bounds.
14467 while test "x$ac_lo" != "x$ac_hi"; do
14468   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14469   cat >conftest.$ac_ext <<_ACEOF
14470 #line $LINENO "configure"
14471 /* confdefs.h.  */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h.  */
14476 $ac_includes_default
14477 int
14478 main ()
14479 {
14480 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14481 test_array [0] = 0
14482
14483   ;
14484   return 0;
14485 }
14486 _ACEOF
14487 rm -f conftest.$ac_objext
14488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14489   (eval $ac_compile) 2>&5
14490   ac_status=$?
14491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492   (exit $ac_status); } &&
14493          { ac_try='test -s conftest.$ac_objext'
14494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495   (eval $ac_try) 2>&5
14496   ac_status=$?
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); }; }; then
14499   ac_hi=$ac_mid
14500 else
14501   echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504 ac_lo=`expr '(' $ac_mid ')' + 1`
14505 fi
14506 rm -f conftest.$ac_objext conftest.$ac_ext
14507 done
14508 case $ac_lo in
14509 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14510 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14511 See \`config.log' for more details." >&5
14512 echo "$as_me: error: cannot compute sizeof (int *), 77
14513 See \`config.log' for more details." >&2;}
14514    { (exit 1); exit 1; }; } ;;
14515 esac
14516 else
14517   if test "$cross_compiling" = yes; then
14518   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14519 See \`config.log' for more details." >&5
14520 echo "$as_me: error: cannot run test program while cross compiling
14521 See \`config.log' for more details." >&2;}
14522    { (exit 1); exit 1; }; }
14523 else
14524   cat >conftest.$ac_ext <<_ACEOF
14525 #line $LINENO "configure"
14526 /* confdefs.h.  */
14527 _ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h.  */
14531 $ac_includes_default
14532 long longval () { return (long) (sizeof (int *)); }
14533 unsigned long ulongval () { return (long) (sizeof (int *)); }
14534 #include <stdio.h>
14535 #include <stdlib.h>
14536 int
14537 main ()
14538 {
14539
14540   FILE *f = fopen ("conftest.val", "w");
14541   if (! f)
14542     exit (1);
14543   if (((long) (sizeof (int *))) < 0)
14544     {
14545       long i = longval ();
14546       if (i != ((long) (sizeof (int *))))
14547         exit (1);
14548       fprintf (f, "%ld\n", i);
14549     }
14550   else
14551     {
14552       unsigned long i = ulongval ();
14553       if (i != ((long) (sizeof (int *))))
14554         exit (1);
14555       fprintf (f, "%lu\n", i);
14556     }
14557   exit (ferror (f) || fclose (f) != 0);
14558
14559   ;
14560   return 0;
14561 }
14562 _ACEOF
14563 rm -f conftest$ac_exeext
14564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14565   (eval $ac_link) 2>&5
14566   ac_status=$?
14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570   (eval $ac_try) 2>&5
14571   ac_status=$?
14572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573   (exit $ac_status); }; }; then
14574   ac_cv_sizeof_int_p=`cat conftest.val`
14575 else
14576   echo "$as_me: program exited with status $ac_status" >&5
14577 echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14579
14580 ( exit $ac_status )
14581 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14582 See \`config.log' for more details." >&5
14583 echo "$as_me: error: cannot compute sizeof (int *), 77
14584 See \`config.log' for more details." >&2;}
14585    { (exit 1); exit 1; }; }
14586 fi
14587 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14588 fi
14589 fi
14590 rm -f conftest.val
14591 else
14592   ac_cv_sizeof_int_p=0
14593 fi
14594 fi
14595 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14596 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14597 cat >>confdefs.h <<_ACEOF
14598 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14599 _ACEOF
14600
14601
14602
14603 # Check for sys/types.h types
14604 echo "$as_me:$LINENO: checking for u_int type" >&5
14605 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14606 if test "${ac_cv_have_u_int+set}" = set; then
14607   echo $ECHO_N "(cached) $ECHO_C" >&6
14608 else
14609
14610     cat >conftest.$ac_ext <<_ACEOF
14611 #line $LINENO "configure"
14612 /* confdefs.h.  */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h.  */
14617  #include <sys/types.h>
14618 int
14619 main ()
14620 {
14621  u_int a; a = 1;
14622   ;
14623   return 0;
14624 }
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14628   (eval $ac_compile) 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); } &&
14632          { ac_try='test -s conftest.$ac_objext'
14633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634   (eval $ac_try) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; }; then
14638    ac_cv_have_u_int="yes"
14639 else
14640   echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14642
14643  ac_cv_have_u_int="no"
14644
14645 fi
14646 rm -f conftest.$ac_objext conftest.$ac_ext
14647
14648 fi
14649 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14650 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14651 if test "x$ac_cv_have_u_int" = "xyes" ; then
14652    cat >>confdefs.h <<\_ACEOF
14653 #define HAVE_U_INT 1
14654 _ACEOF
14655
14656    have_u_int=1
14657 fi
14658
14659 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14660 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14661 if test "${ac_cv_have_intmax_t+set}" = set; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664
14665    cat >conftest.$ac_ext <<_ACEOF
14666 #line $LINENO "configure"
14667 /* confdefs.h.  */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h.  */
14672  #include <sys/types.h>
14673 int
14674 main ()
14675 {
14676  intmax_t a; a = 1;
14677   ;
14678   return 0;
14679 }
14680 _ACEOF
14681 rm -f conftest.$ac_objext
14682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14683   (eval $ac_compile) 2>&5
14684   ac_status=$?
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); } &&
14687          { ac_try='test -s conftest.$ac_objext'
14688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689   (eval $ac_try) 2>&5
14690   ac_status=$?
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); }; }; then
14693    ac_cv_have_intmax_t="yes"
14694 else
14695   echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14697
14698
14699          cat >conftest.$ac_ext <<_ACEOF
14700 #line $LINENO "configure"
14701 /* confdefs.h.  */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h.  */
14706  #include <stdint.h>
14707 int
14708 main ()
14709 {
14710  intmax_t a; a = 1;
14711   ;
14712   return 0;
14713 }
14714 _ACEOF
14715 rm -f conftest.$ac_objext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717   (eval $ac_compile) 2>&5
14718   ac_status=$?
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); } &&
14721          { ac_try='test -s conftest.$ac_objext'
14722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723   (eval $ac_try) 2>&5
14724   ac_status=$?
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); }; }; then
14727    ac_cv_have_intmax_t="yes"
14728 else
14729   echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14731
14732  ac_cv_have_intmax_t="no"
14733
14734 fi
14735 rm -f conftest.$ac_objext conftest.$ac_ext
14736
14737
14738 fi
14739 rm -f conftest.$ac_objext conftest.$ac_ext
14740
14741
14742 fi
14743 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14744 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14745 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14746    cat >>confdefs.h <<\_ACEOF
14747 #define HAVE_INTMAX_T 1
14748 _ACEOF
14749
14750    have_intmax_t=1
14751 fi
14752
14753
14754 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14755 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14756 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14757   echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759
14760    cat >conftest.$ac_ext <<_ACEOF
14761 #line $LINENO "configure"
14762 /* confdefs.h.  */
14763 _ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h.  */
14767  #include <sys/types.h>
14768 int
14769 main ()
14770 {
14771  u_intmax_t a; a = 1;
14772   ;
14773   return 0;
14774 }
14775 _ACEOF
14776 rm -f conftest.$ac_objext
14777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14778   (eval $ac_compile) 2>&5
14779   ac_status=$?
14780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781   (exit $ac_status); } &&
14782          { ac_try='test -s conftest.$ac_objext'
14783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784   (eval $ac_try) 2>&5
14785   ac_status=$?
14786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787   (exit $ac_status); }; }; then
14788    ac_cv_have_u_intmax_t="yes"
14789 else
14790   echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793
14794          cat >conftest.$ac_ext <<_ACEOF
14795 #line $LINENO "configure"
14796 /* confdefs.h.  */
14797 _ACEOF
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h.  */
14801  #include <stdint.h>
14802 int
14803 main ()
14804 {
14805  u_intmax_t a; a = 1;
14806   ;
14807   return 0;
14808 }
14809 _ACEOF
14810 rm -f conftest.$ac_objext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812   (eval $ac_compile) 2>&5
14813   ac_status=$?
14814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815   (exit $ac_status); } &&
14816          { ac_try='test -s conftest.$ac_objext'
14817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818   (eval $ac_try) 2>&5
14819   ac_status=$?
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); }; }; then
14822    ac_cv_have_u_intmax_t="yes"
14823 else
14824   echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14826
14827  ac_cv_have_u_intmax_t="no"
14828
14829 fi
14830 rm -f conftest.$ac_objext conftest.$ac_ext
14831
14832
14833 fi
14834 rm -f conftest.$ac_objext conftest.$ac_ext
14835
14836 fi
14837 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14838 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14839 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14840    cat >>confdefs.h <<\_ACEOF
14841 #define HAVE_U_INTMAX_T 1
14842 _ACEOF
14843
14844    have_u_intmax_t=1
14845 fi
14846
14847
14848 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14849 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14850 if test "${ac_cv_have_intxx_t+set}" = set; then
14851   echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853
14854    cat >conftest.$ac_ext <<_ACEOF
14855 #line $LINENO "configure"
14856 /* confdefs.h.  */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h.  */
14861  #include <sys/types.h>
14862 int
14863 main ()
14864 {
14865  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14866   ;
14867   return 0;
14868 }
14869 _ACEOF
14870 rm -f conftest.$ac_objext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14872   (eval $ac_compile) 2>&5
14873   ac_status=$?
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); } &&
14876          { ac_try='test -s conftest.$ac_objext'
14877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878   (eval $ac_try) 2>&5
14879   ac_status=$?
14880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881   (exit $ac_status); }; }; then
14882    ac_cv_have_intxx_t="yes"
14883 else
14884   echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14886
14887  ac_cv_have_intxx_t="no"
14888
14889 fi
14890 rm -f conftest.$ac_objext conftest.$ac_ext
14891
14892 fi
14893 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14894 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14895 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14896    cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_INTXX_T 1
14898 _ACEOF
14899
14900    have_intxx_t=1
14901 fi
14902
14903 echo "$as_me:$LINENO: checking for int64_t type" >&5
14904 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14905 if test "${ac_cv_have_int64_t+set}" = set; then
14906   echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908
14909    cat >conftest.$ac_ext <<_ACEOF
14910 #line $LINENO "configure"
14911 /* confdefs.h.  */
14912 _ACEOF
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h.  */
14916  #include <sys/types.h>
14917 int
14918 main ()
14919 {
14920  int64_t a; a = 1;
14921   ;
14922   return 0;
14923 }
14924 _ACEOF
14925 rm -f conftest.$ac_objext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14927   (eval $ac_compile) 2>&5
14928   ac_status=$?
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); } &&
14931          { ac_try='test -s conftest.$ac_objext'
14932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933   (eval $ac_try) 2>&5
14934   ac_status=$?
14935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936   (exit $ac_status); }; }; then
14937    ac_cv_have_int64_t="yes"
14938 else
14939   echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14941
14942  ac_cv_have_int64_t="no"
14943
14944 fi
14945 rm -f conftest.$ac_objext conftest.$ac_ext
14946
14947 fi
14948 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14949 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14950 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14951    cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_INT64_T 1
14953 _ACEOF
14954
14955    have_int64_t=1
14956 fi
14957
14958 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14959 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14960 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14961   echo $ECHO_N "(cached) $ECHO_C" >&6
14962 else
14963
14964    cat >conftest.$ac_ext <<_ACEOF
14965 #line $LINENO "configure"
14966 /* confdefs.h.  */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h.  */
14971  #include <sys/types.h>
14972 int
14973 main ()
14974 {
14975  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14976   ;
14977   return 0;
14978 }
14979 _ACEOF
14980 rm -f conftest.$ac_objext
14981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14982   (eval $ac_compile) 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); } &&
14986          { ac_try='test -s conftest.$ac_objext'
14987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988   (eval $ac_try) 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; }; then
14992    ac_cv_have_u_intxx_t="yes"
14993 else
14994   echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997  ac_cv_have_u_intxx_t="no"
14998
14999 fi
15000 rm -f conftest.$ac_objext conftest.$ac_ext
15001
15002 fi
15003 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15004 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15005 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15006    cat >>confdefs.h <<\_ACEOF
15007 #define HAVE_U_INTXX_T 1
15008 _ACEOF
15009
15010    have_u_intxx_t=1
15011 fi
15012
15013 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15014 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15015 if test "${ac_cv_have_u_int64_t+set}" = set; then
15016   echo $ECHO_N "(cached) $ECHO_C" >&6
15017 else
15018
15019    cat >conftest.$ac_ext <<_ACEOF
15020 #line $LINENO "configure"
15021 /* confdefs.h.  */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h.  */
15026  #include <sys/types.h>
15027 int
15028 main ()
15029 {
15030  u_int64_t a; a = 1;
15031   ;
15032   return 0;
15033 }
15034 _ACEOF
15035 rm -f conftest.$ac_objext
15036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15037   (eval $ac_compile) 2>&5
15038   ac_status=$?
15039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040   (exit $ac_status); } &&
15041          { ac_try='test -s conftest.$ac_objext'
15042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043   (eval $ac_try) 2>&5
15044   ac_status=$?
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); }; }; then
15047    ac_cv_have_u_int64_t="yes"
15048 else
15049   echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15051
15052  ac_cv_have_u_int64_t="no"
15053
15054 fi
15055 rm -f conftest.$ac_objext conftest.$ac_ext
15056
15057 fi
15058 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15059 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15060 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15061    cat >>confdefs.h <<\_ACEOF
15062 #define HAVE_U_INT64_T 1
15063 _ACEOF
15064
15065    have_u_int64_t=1
15066 fi
15067
15068 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15069            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15070 then
15071    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15072 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15073    cat >conftest.$ac_ext <<_ACEOF
15074 #line $LINENO "configure"
15075 /* confdefs.h.  */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h.  */
15080  #include <sys/bitypes.h>
15081 int
15082 main ()
15083 {
15084  int8_t a; int16_t b; int32_t c;
15085         u_int8_t e; u_int16_t f; u_int32_t g;
15086         a = b = c = e = f = g = 1;
15087   ;
15088   return 0;
15089 }
15090 _ACEOF
15091 rm -f conftest.$ac_objext
15092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15093   (eval $ac_compile) 2>&5
15094   ac_status=$?
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); } &&
15097          { ac_try='test -s conftest.$ac_objext'
15098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099   (eval $ac_try) 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); }; }; then
15103    cat >>confdefs.h <<\_ACEOF
15104 #define HAVE_U_INTXX_T 1
15105 _ACEOF
15106
15107         cat >>confdefs.h <<\_ACEOF
15108 #define HAVE_INTXX_T 1
15109 _ACEOF
15110
15111         cat >>confdefs.h <<\_ACEOF
15112 #define HAVE_SYS_BITYPES_H 1
15113 _ACEOF
15114
15115         echo "$as_me:$LINENO: result: yes" >&5
15116 echo "${ECHO_T}yes" >&6
15117 else
15118   echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15120
15121  echo "$as_me:$LINENO: result: no" >&5
15122 echo "${ECHO_T}no" >&6
15123
15124 fi
15125 rm -f conftest.$ac_objext conftest.$ac_ext
15126 fi
15127
15128 if test -z "$have_u_intxx_t" ; then
15129    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15130 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15131 if test "${ac_cv_have_uintxx_t+set}" = set; then
15132   echo $ECHO_N "(cached) $ECHO_C" >&6
15133 else
15134
15135       cat >conftest.$ac_ext <<_ACEOF
15136 #line $LINENO "configure"
15137 /* confdefs.h.  */
15138 _ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h.  */
15142  #include <sys/types.h>
15143 int
15144 main ()
15145 {
15146  uint8_t a; uint16_t b;
15147            uint32_t c; a = b = c = 1;
15148   ;
15149   return 0;
15150 }
15151 _ACEOF
15152 rm -f conftest.$ac_objext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15154   (eval $ac_compile) 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); } &&
15158          { ac_try='test -s conftest.$ac_objext'
15159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160   (eval $ac_try) 2>&5
15161   ac_status=$?
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   (exit $ac_status); }; }; then
15164    ac_cv_have_uintxx_t="yes"
15165 else
15166   echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15168
15169  ac_cv_have_uintxx_t="no"
15170
15171 fi
15172 rm -f conftest.$ac_objext conftest.$ac_ext
15173
15174 fi
15175 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15176 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15177    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15178       cat >>confdefs.h <<\_ACEOF
15179 #define HAVE_UINTXX_T 1
15180 _ACEOF
15181
15182    fi
15183 fi
15184
15185 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15186           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15187 then
15188    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15189 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15190    cat >conftest.$ac_ext <<_ACEOF
15191 #line $LINENO "configure"
15192 /* confdefs.h.  */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h.  */
15197  #include <sys/bitypes.h>
15198 int
15199 main ()
15200 {
15201  int64_t a; u_int64_t b;
15202        a = b = 1;
15203   ;
15204   return 0;
15205 }
15206 _ACEOF
15207 rm -f conftest.$ac_objext
15208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15209   (eval $ac_compile) 2>&5
15210   ac_status=$?
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); } &&
15213          { ac_try='test -s conftest.$ac_objext'
15214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215   (eval $ac_try) 2>&5
15216   ac_status=$?
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); }; }; then
15219    cat >>confdefs.h <<\_ACEOF
15220 #define HAVE_U_INT64_T 1
15221 _ACEOF
15222
15223        cat >>confdefs.h <<\_ACEOF
15224 #define HAVE_INT64_T 1
15225 _ACEOF
15226
15227        echo "$as_me:$LINENO: result: yes" >&5
15228 echo "${ECHO_T}yes" >&6
15229 else
15230   echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15232
15233  echo "$as_me:$LINENO: result: no" >&5
15234 echo "${ECHO_T}no" >&6
15235
15236 fi
15237 rm -f conftest.$ac_objext conftest.$ac_ext
15238 fi
15239
15240 if (test -z "$have_uintxx_t" && \
15241           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15242 then
15243    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15244 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15245    cat >conftest.$ac_ext <<_ACEOF
15246 #line $LINENO "configure"
15247 /* confdefs.h.  */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h.  */
15252  #include <sys/bitypes.h>
15253 int
15254 main ()
15255 {
15256  uint8_t a; uint16_t b;
15257           uint32_t c; a = b = c = 1;
15258   ;
15259   return 0;
15260 }
15261 _ACEOF
15262 rm -f conftest.$ac_objext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15264   (eval $ac_compile) 2>&5
15265   ac_status=$?
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); } &&
15268          { ac_try='test -s conftest.$ac_objext'
15269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270   (eval $ac_try) 2>&5
15271   ac_status=$?
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); }; }; then
15274    cat >>confdefs.h <<\_ACEOF
15275 #define HAVE_UINTXX_T 1
15276 _ACEOF
15277
15278        echo "$as_me:$LINENO: result: yes" >&5
15279 echo "${ECHO_T}yes" >&6
15280 else
15281   echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15283
15284  echo "$as_me:$LINENO: result: no" >&5
15285 echo "${ECHO_T}no" >&6
15286
15287 fi
15288 rm -f conftest.$ac_objext conftest.$ac_ext
15289
15290 fi
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308 for ac_func in \
15309         fork \
15310         getcwd \
15311         gethostname \
15312         getpid \
15313         gettimeofday \
15314         setpgid \
15315         setpgrp \
15316         setsid \
15317         signal \
15318         strerror \
15319         strncmp \
15320         strncpy \
15321         vfprintf \
15322
15323 do
15324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15325 echo "$as_me:$LINENO: checking for $ac_func" >&5
15326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15327 if eval "test \"\${$as_ac_var+set}\" = set"; then
15328   echo $ECHO_N "(cached) $ECHO_C" >&6
15329 else
15330   cat >conftest.$ac_ext <<_ACEOF
15331 #line $LINENO "configure"
15332 /* confdefs.h.  */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h.  */
15337 /* System header to define __stub macros and hopefully few prototypes,
15338     which can conflict with char $ac_func (); below.
15339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15340     <limits.h> exists even on freestanding compilers.  */
15341 #ifdef __STDC__
15342 # include <limits.h>
15343 #else
15344 # include <assert.h>
15345 #endif
15346 /* Override any gcc2 internal prototype to avoid an error.  */
15347 #ifdef __cplusplus
15348 extern "C"
15349 {
15350 #endif
15351 /* We use char because int might match the return type of a gcc2
15352    builtin and then its argument prototype would still apply.  */
15353 char $ac_func ();
15354 /* The GNU C library defines this for functions which it implements
15355     to always fail with ENOSYS.  Some functions are actually named
15356     something starting with __ and the normal name is an alias.  */
15357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15358 choke me
15359 #else
15360 char (*f) () = $ac_func;
15361 #endif
15362 #ifdef __cplusplus
15363 }
15364 #endif
15365
15366 int
15367 main ()
15368 {
15369 return f != $ac_func;
15370   ;
15371   return 0;
15372 }
15373 _ACEOF
15374 rm -f conftest.$ac_objext conftest$ac_exeext
15375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15376   (eval $ac_link) 2>&5
15377   ac_status=$?
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); } &&
15380          { ac_try='test -s conftest$ac_exeext'
15381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382   (eval $ac_try) 2>&5
15383   ac_status=$?
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); }; }; then
15386   eval "$as_ac_var=yes"
15387 else
15388   echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15390
15391 eval "$as_ac_var=no"
15392 fi
15393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15394 fi
15395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15397 if test `eval echo '${'$as_ac_var'}'` = yes; then
15398   cat >>confdefs.h <<_ACEOF
15399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15400 _ACEOF
15401
15402 else
15403   echo 'configure: cannot find needed function.'; exit 1
15404
15405 fi
15406 done
15407
15408
15409
15410 for ac_func in fchdir
15411 do
15412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15413 echo "$as_me:$LINENO: checking for $ac_func" >&5
15414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15415 if eval "test \"\${$as_ac_var+set}\" = set"; then
15416   echo $ECHO_N "(cached) $ECHO_C" >&6
15417 else
15418   cat >conftest.$ac_ext <<_ACEOF
15419 #line $LINENO "configure"
15420 /* confdefs.h.  */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h.  */
15425 /* System header to define __stub macros and hopefully few prototypes,
15426     which can conflict with char $ac_func (); below.
15427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15428     <limits.h> exists even on freestanding compilers.  */
15429 #ifdef __STDC__
15430 # include <limits.h>
15431 #else
15432 # include <assert.h>
15433 #endif
15434 /* Override any gcc2 internal prototype to avoid an error.  */
15435 #ifdef __cplusplus
15436 extern "C"
15437 {
15438 #endif
15439 /* We use char because int might match the return type of a gcc2
15440    builtin and then its argument prototype would still apply.  */
15441 char $ac_func ();
15442 /* The GNU C library defines this for functions which it implements
15443     to always fail with ENOSYS.  Some functions are actually named
15444     something starting with __ and the normal name is an alias.  */
15445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15446 choke me
15447 #else
15448 char (*f) () = $ac_func;
15449 #endif
15450 #ifdef __cplusplus
15451 }
15452 #endif
15453
15454 int
15455 main ()
15456 {
15457 return f != $ac_func;
15458   ;
15459   return 0;
15460 }
15461 _ACEOF
15462 rm -f conftest.$ac_objext conftest$ac_exeext
15463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15464   (eval $ac_link) 2>&5
15465   ac_status=$?
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); } &&
15468          { ac_try='test -s conftest$ac_exeext'
15469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470   (eval $ac_try) 2>&5
15471   ac_status=$?
15472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473   (exit $ac_status); }; }; then
15474   eval "$as_ac_var=yes"
15475 else
15476   echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15478
15479 eval "$as_ac_var=no"
15480 fi
15481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15482 fi
15483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15485 if test `eval echo '${'$as_ac_var'}'` = yes; then
15486   cat >>confdefs.h <<_ACEOF
15487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15488 _ACEOF
15489  cat >>confdefs.h <<\_ACEOF
15490 #define HAVE_FCHDIR 1
15491 _ACEOF
15492
15493 fi
15494 done
15495
15496
15497 for ac_func in strtoll
15498 do
15499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15500 echo "$as_me:$LINENO: checking for $ac_func" >&5
15501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15502 if eval "test \"\${$as_ac_var+set}\" = set"; then
15503   echo $ECHO_N "(cached) $ECHO_C" >&6
15504 else
15505   cat >conftest.$ac_ext <<_ACEOF
15506 #line $LINENO "configure"
15507 /* confdefs.h.  */
15508 _ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h.  */
15512 /* System header to define __stub macros and hopefully few prototypes,
15513     which can conflict with char $ac_func (); below.
15514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15515     <limits.h> exists even on freestanding compilers.  */
15516 #ifdef __STDC__
15517 # include <limits.h>
15518 #else
15519 # include <assert.h>
15520 #endif
15521 /* Override any gcc2 internal prototype to avoid an error.  */
15522 #ifdef __cplusplus
15523 extern "C"
15524 {
15525 #endif
15526 /* We use char because int might match the return type of a gcc2
15527    builtin and then its argument prototype would still apply.  */
15528 char $ac_func ();
15529 /* The GNU C library defines this for functions which it implements
15530     to always fail with ENOSYS.  Some functions are actually named
15531     something starting with __ and the normal name is an alias.  */
15532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15533 choke me
15534 #else
15535 char (*f) () = $ac_func;
15536 #endif
15537 #ifdef __cplusplus
15538 }
15539 #endif
15540
15541 int
15542 main ()
15543 {
15544 return f != $ac_func;
15545   ;
15546   return 0;
15547 }
15548 _ACEOF
15549 rm -f conftest.$ac_objext conftest$ac_exeext
15550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15551   (eval $ac_link) 2>&5
15552   ac_status=$?
15553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554   (exit $ac_status); } &&
15555          { ac_try='test -s conftest$ac_exeext'
15556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557   (eval $ac_try) 2>&5
15558   ac_status=$?
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); }; }; then
15561   eval "$as_ac_var=yes"
15562 else
15563   echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15565
15566 eval "$as_ac_var=no"
15567 fi
15568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15569 fi
15570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15572 if test `eval echo '${'$as_ac_var'}'` = yes; then
15573   cat >>confdefs.h <<_ACEOF
15574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15575 _ACEOF
15576  cat >>confdefs.h <<\_ACEOF
15577 #define HAVE_STRTOLL 1
15578 _ACEOF
15579
15580 fi
15581 done
15582
15583
15584
15585 for ac_func in chflags
15586 do
15587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15588 echo "$as_me:$LINENO: checking for $ac_func" >&5
15589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15590 if eval "test \"\${$as_ac_var+set}\" = set"; then
15591   echo $ECHO_N "(cached) $ECHO_C" >&6
15592 else
15593   cat >conftest.$ac_ext <<_ACEOF
15594 #line $LINENO "configure"
15595 /* confdefs.h.  */
15596 _ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h.  */
15600 /* System header to define __stub macros and hopefully few prototypes,
15601     which can conflict with char $ac_func (); below.
15602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15603     <limits.h> exists even on freestanding compilers.  */
15604 #ifdef __STDC__
15605 # include <limits.h>
15606 #else
15607 # include <assert.h>
15608 #endif
15609 /* Override any gcc2 internal prototype to avoid an error.  */
15610 #ifdef __cplusplus
15611 extern "C"
15612 {
15613 #endif
15614 /* We use char because int might match the return type of a gcc2
15615    builtin and then its argument prototype would still apply.  */
15616 char $ac_func ();
15617 /* The GNU C library defines this for functions which it implements
15618     to always fail with ENOSYS.  Some functions are actually named
15619     something starting with __ and the normal name is an alias.  */
15620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15621 choke me
15622 #else
15623 char (*f) () = $ac_func;
15624 #endif
15625 #ifdef __cplusplus
15626 }
15627 #endif
15628
15629 int
15630 main ()
15631 {
15632 return f != $ac_func;
15633   ;
15634   return 0;
15635 }
15636 _ACEOF
15637 rm -f conftest.$ac_objext conftest$ac_exeext
15638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15639   (eval $ac_link) 2>&5
15640   ac_status=$?
15641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642   (exit $ac_status); } &&
15643          { ac_try='test -s conftest$ac_exeext'
15644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645   (eval $ac_try) 2>&5
15646   ac_status=$?
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); }; }; then
15649   eval "$as_ac_var=yes"
15650 else
15651   echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15653
15654 eval "$as_ac_var=no"
15655 fi
15656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15657 fi
15658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15660 if test `eval echo '${'$as_ac_var'}'` = yes; then
15661   cat >>confdefs.h <<_ACEOF
15662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15663 _ACEOF
15664
15665 fi
15666 done
15667
15668
15669
15670
15671
15672
15673 for ac_func in snprintf vsnprintf gethostid getdomainname
15674 do
15675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15676 echo "$as_me:$LINENO: checking for $ac_func" >&5
15677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15678 if eval "test \"\${$as_ac_var+set}\" = set"; then
15679   echo $ECHO_N "(cached) $ECHO_C" >&6
15680 else
15681   cat >conftest.$ac_ext <<_ACEOF
15682 #line $LINENO "configure"
15683 /* confdefs.h.  */
15684 _ACEOF
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h.  */
15688 /* System header to define __stub macros and hopefully few prototypes,
15689     which can conflict with char $ac_func (); below.
15690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15691     <limits.h> exists even on freestanding compilers.  */
15692 #ifdef __STDC__
15693 # include <limits.h>
15694 #else
15695 # include <assert.h>
15696 #endif
15697 /* Override any gcc2 internal prototype to avoid an error.  */
15698 #ifdef __cplusplus
15699 extern "C"
15700 {
15701 #endif
15702 /* We use char because int might match the return type of a gcc2
15703    builtin and then its argument prototype would still apply.  */
15704 char $ac_func ();
15705 /* The GNU C library defines this for functions which it implements
15706     to always fail with ENOSYS.  Some functions are actually named
15707     something starting with __ and the normal name is an alias.  */
15708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15709 choke me
15710 #else
15711 char (*f) () = $ac_func;
15712 #endif
15713 #ifdef __cplusplus
15714 }
15715 #endif
15716
15717 int
15718 main ()
15719 {
15720 return f != $ac_func;
15721   ;
15722   return 0;
15723 }
15724 _ACEOF
15725 rm -f conftest.$ac_objext conftest$ac_exeext
15726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15727   (eval $ac_link) 2>&5
15728   ac_status=$?
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); } &&
15731          { ac_try='test -s conftest$ac_exeext'
15732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733   (eval $ac_try) 2>&5
15734   ac_status=$?
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); }; }; then
15737   eval "$as_ac_var=yes"
15738 else
15739   echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15741
15742 eval "$as_ac_var=no"
15743 fi
15744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15745 fi
15746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15748 if test `eval echo '${'$as_ac_var'}'` = yes; then
15749   cat >>confdefs.h <<_ACEOF
15750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15751 _ACEOF
15752
15753 fi
15754 done
15755
15756
15757
15758
15759
15760
15761 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15762 do
15763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15764 echo "$as_me:$LINENO: checking for $ac_func" >&5
15765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15766 if eval "test \"\${$as_ac_var+set}\" = set"; then
15767   echo $ECHO_N "(cached) $ECHO_C" >&6
15768 else
15769   cat >conftest.$ac_ext <<_ACEOF
15770 #line $LINENO "configure"
15771 /* confdefs.h.  */
15772 _ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h.  */
15776 /* System header to define __stub macros and hopefully few prototypes,
15777     which can conflict with char $ac_func (); below.
15778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15779     <limits.h> exists even on freestanding compilers.  */
15780 #ifdef __STDC__
15781 # include <limits.h>
15782 #else
15783 # include <assert.h>
15784 #endif
15785 /* Override any gcc2 internal prototype to avoid an error.  */
15786 #ifdef __cplusplus
15787 extern "C"
15788 {
15789 #endif
15790 /* We use char because int might match the return type of a gcc2
15791    builtin and then its argument prototype would still apply.  */
15792 char $ac_func ();
15793 /* The GNU C library defines this for functions which it implements
15794     to always fail with ENOSYS.  Some functions are actually named
15795     something starting with __ and the normal name is an alias.  */
15796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15797 choke me
15798 #else
15799 char (*f) () = $ac_func;
15800 #endif
15801 #ifdef __cplusplus
15802 }
15803 #endif
15804
15805 int
15806 main ()
15807 {
15808 return f != $ac_func;
15809   ;
15810   return 0;
15811 }
15812 _ACEOF
15813 rm -f conftest.$ac_objext conftest$ac_exeext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15815   (eval $ac_link) 2>&5
15816   ac_status=$?
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); } &&
15819          { ac_try='test -s conftest$ac_exeext'
15820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821   (eval $ac_try) 2>&5
15822   ac_status=$?
15823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824   (exit $ac_status); }; }; then
15825   eval "$as_ac_var=yes"
15826 else
15827   echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15829
15830 eval "$as_ac_var=no"
15831 fi
15832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15833 fi
15834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15836 if test `eval echo '${'$as_ac_var'}'` = yes; then
15837   cat >>confdefs.h <<_ACEOF
15838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15839 _ACEOF
15840
15841 fi
15842 done
15843
15844
15845 # If resolver functions are not in libc check for -lnsl or -lresolv.
15846 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15847 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15848 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15849   echo $ECHO_N "(cached) $ECHO_C" >&6
15850 else
15851   cat >conftest.$ac_ext <<_ACEOF
15852 #line $LINENO "configure"
15853 /* confdefs.h.  */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h.  */
15858 /* System header to define __stub macros and hopefully few prototypes,
15859     which can conflict with char gethostbyname_r (); below.
15860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15861     <limits.h> exists even on freestanding compilers.  */
15862 #ifdef __STDC__
15863 # include <limits.h>
15864 #else
15865 # include <assert.h>
15866 #endif
15867 /* Override any gcc2 internal prototype to avoid an error.  */
15868 #ifdef __cplusplus
15869 extern "C"
15870 {
15871 #endif
15872 /* We use char because int might match the return type of a gcc2
15873    builtin and then its argument prototype would still apply.  */
15874 char gethostbyname_r ();
15875 /* The GNU C library defines this for functions which it implements
15876     to always fail with ENOSYS.  Some functions are actually named
15877     something starting with __ and the normal name is an alias.  */
15878 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15879 choke me
15880 #else
15881 char (*f) () = gethostbyname_r;
15882 #endif
15883 #ifdef __cplusplus
15884 }
15885 #endif
15886
15887 int
15888 main ()
15889 {
15890 return f != gethostbyname_r;
15891   ;
15892   return 0;
15893 }
15894 _ACEOF
15895 rm -f conftest.$ac_objext conftest$ac_exeext
15896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15897   (eval $ac_link) 2>&5
15898   ac_status=$?
15899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900   (exit $ac_status); } &&
15901          { ac_try='test -s conftest$ac_exeext'
15902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903   (eval $ac_try) 2>&5
15904   ac_status=$?
15905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906   (exit $ac_status); }; }; then
15907   ac_cv_func_gethostbyname_r=yes
15908 else
15909   echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15911
15912 ac_cv_func_gethostbyname_r=no
15913 fi
15914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15915 fi
15916 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15917 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15918 if test $ac_cv_func_gethostbyname_r = yes; then
15919   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15920 echo "${ECHO_T}using libc's resolver" >&6
15921 else
15922
15923 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15924 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15925 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15926   echo $ECHO_N "(cached) $ECHO_C" >&6
15927 else
15928   ac_check_lib_save_LIBS=$LIBS
15929 LIBS="-lnsl  $LIBS"
15930 cat >conftest.$ac_ext <<_ACEOF
15931 #line $LINENO "configure"
15932 /* confdefs.h.  */
15933 _ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h.  */
15937
15938 /* Override any gcc2 internal prototype to avoid an error.  */
15939 #ifdef __cplusplus
15940 extern "C"
15941 #endif
15942 /* We use char because int might match the return type of a gcc2
15943    builtin and then its argument prototype would still apply.  */
15944 char gethostbyname_r ();
15945 int
15946 main ()
15947 {
15948 gethostbyname_r ();
15949   ;
15950   return 0;
15951 }
15952 _ACEOF
15953 rm -f conftest.$ac_objext conftest$ac_exeext
15954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15955   (eval $ac_link) 2>&5
15956   ac_status=$?
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); } &&
15959          { ac_try='test -s conftest$ac_exeext'
15960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961   (eval $ac_try) 2>&5
15962   ac_status=$?
15963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964   (exit $ac_status); }; }; then
15965   ac_cv_lib_nsl_gethostbyname_r=yes
15966 else
15967   echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15969
15970 ac_cv_lib_nsl_gethostbyname_r=no
15971 fi
15972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15973 LIBS=$ac_check_lib_save_LIBS
15974 fi
15975 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15976 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15977 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15978   cat >>confdefs.h <<_ACEOF
15979 #define HAVE_LIBNSL 1
15980 _ACEOF
15981
15982   LIBS="-lnsl $LIBS"
15983
15984 fi
15985
15986
15987 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15988 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15989 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15990   echo $ECHO_N "(cached) $ECHO_C" >&6
15991 else
15992   ac_check_lib_save_LIBS=$LIBS
15993 LIBS="-lresolv  $LIBS"
15994 cat >conftest.$ac_ext <<_ACEOF
15995 #line $LINENO "configure"
15996 /* confdefs.h.  */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h.  */
16001
16002 /* Override any gcc2 internal prototype to avoid an error.  */
16003 #ifdef __cplusplus
16004 extern "C"
16005 #endif
16006 /* We use char because int might match the return type of a gcc2
16007    builtin and then its argument prototype would still apply.  */
16008 char gethostbyname_r ();
16009 int
16010 main ()
16011 {
16012 gethostbyname_r ();
16013   ;
16014   return 0;
16015 }
16016 _ACEOF
16017 rm -f conftest.$ac_objext conftest$ac_exeext
16018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16019   (eval $ac_link) 2>&5
16020   ac_status=$?
16021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022   (exit $ac_status); } &&
16023          { ac_try='test -s conftest$ac_exeext'
16024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025   (eval $ac_try) 2>&5
16026   ac_status=$?
16027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028   (exit $ac_status); }; }; then
16029   ac_cv_lib_resolv_gethostbyname_r=yes
16030 else
16031   echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16033
16034 ac_cv_lib_resolv_gethostbyname_r=no
16035 fi
16036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16037 LIBS=$ac_check_lib_save_LIBS
16038 fi
16039 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16040 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16041 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16042   cat >>confdefs.h <<_ACEOF
16043 #define HAVE_LIBRESOLV 1
16044 _ACEOF
16045
16046   LIBS="-lresolv $LIBS"
16047
16048 fi
16049
16050 fi
16051
16052
16053
16054 # Find where sockets are (especially for Solaris)
16055 echo "$as_me:$LINENO: checking for socket" >&5
16056 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16057 if test "${ac_cv_func_socket+set}" = set; then
16058   echo $ECHO_N "(cached) $ECHO_C" >&6
16059 else
16060   cat >conftest.$ac_ext <<_ACEOF
16061 #line $LINENO "configure"
16062 /* confdefs.h.  */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h.  */
16067 /* System header to define __stub macros and hopefully few prototypes,
16068     which can conflict with char socket (); below.
16069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16070     <limits.h> exists even on freestanding compilers.  */
16071 #ifdef __STDC__
16072 # include <limits.h>
16073 #else
16074 # include <assert.h>
16075 #endif
16076 /* Override any gcc2 internal prototype to avoid an error.  */
16077 #ifdef __cplusplus
16078 extern "C"
16079 {
16080 #endif
16081 /* We use char because int might match the return type of a gcc2
16082    builtin and then its argument prototype would still apply.  */
16083 char socket ();
16084 /* The GNU C library defines this for functions which it implements
16085     to always fail with ENOSYS.  Some functions are actually named
16086     something starting with __ and the normal name is an alias.  */
16087 #if defined (__stub_socket) || defined (__stub___socket)
16088 choke me
16089 #else
16090 char (*f) () = socket;
16091 #endif
16092 #ifdef __cplusplus
16093 }
16094 #endif
16095
16096 int
16097 main ()
16098 {
16099 return f != socket;
16100   ;
16101   return 0;
16102 }
16103 _ACEOF
16104 rm -f conftest.$ac_objext conftest$ac_exeext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106   (eval $ac_link) 2>&5
16107   ac_status=$?
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); } &&
16110          { ac_try='test -s conftest$ac_exeext'
16111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112   (eval $ac_try) 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); }; }; then
16116   ac_cv_func_socket=yes
16117 else
16118   echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16120
16121 ac_cv_func_socket=no
16122 fi
16123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16124 fi
16125 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16126 echo "${ECHO_T}$ac_cv_func_socket" >&6
16127 if test $ac_cv_func_socket = yes; then
16128   echo "$as_me:$LINENO: result: using libc's socket" >&5
16129 echo "${ECHO_T}using libc's socket" >&6
16130 else
16131
16132 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16133 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16134 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16135   echo $ECHO_N "(cached) $ECHO_C" >&6
16136 else
16137   ac_check_lib_save_LIBS=$LIBS
16138 LIBS="-lxnet  $LIBS"
16139 cat >conftest.$ac_ext <<_ACEOF
16140 #line $LINENO "configure"
16141 /* confdefs.h.  */
16142 _ACEOF
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h.  */
16146
16147 /* Override any gcc2 internal prototype to avoid an error.  */
16148 #ifdef __cplusplus
16149 extern "C"
16150 #endif
16151 /* We use char because int might match the return type of a gcc2
16152    builtin and then its argument prototype would still apply.  */
16153 char socket ();
16154 int
16155 main ()
16156 {
16157 socket ();
16158   ;
16159   return 0;
16160 }
16161 _ACEOF
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16164   (eval $ac_link) 2>&5
16165   ac_status=$?
16166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167   (exit $ac_status); } &&
16168          { ac_try='test -s conftest$ac_exeext'
16169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16170   (eval $ac_try) 2>&5
16171   ac_status=$?
16172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173   (exit $ac_status); }; }; then
16174   ac_cv_lib_xnet_socket=yes
16175 else
16176   echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16178
16179 ac_cv_lib_xnet_socket=no
16180 fi
16181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16182 LIBS=$ac_check_lib_save_LIBS
16183 fi
16184 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16185 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16186 if test $ac_cv_lib_xnet_socket = yes; then
16187   cat >>confdefs.h <<_ACEOF
16188 #define HAVE_LIBXNET 1
16189 _ACEOF
16190
16191   LIBS="-lxnet $LIBS"
16192
16193 fi
16194
16195
16196 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16197 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16198 if test "${ac_cv_lib_socket_socket+set}" = set; then
16199   echo $ECHO_N "(cached) $ECHO_C" >&6
16200 else
16201   ac_check_lib_save_LIBS=$LIBS
16202 LIBS="-lsocket  $LIBS"
16203 cat >conftest.$ac_ext <<_ACEOF
16204 #line $LINENO "configure"
16205 /* confdefs.h.  */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h.  */
16210
16211 /* Override any gcc2 internal prototype to avoid an error.  */
16212 #ifdef __cplusplus
16213 extern "C"
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 socket ();
16218 int
16219 main ()
16220 {
16221 socket ();
16222   ;
16223   return 0;
16224 }
16225 _ACEOF
16226 rm -f conftest.$ac_objext conftest$ac_exeext
16227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16228   (eval $ac_link) 2>&5
16229   ac_status=$?
16230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231   (exit $ac_status); } &&
16232          { ac_try='test -s conftest$ac_exeext'
16233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234   (eval $ac_try) 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); }; }; then
16238   ac_cv_lib_socket_socket=yes
16239 else
16240   echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16242
16243 ac_cv_lib_socket_socket=no
16244 fi
16245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16246 LIBS=$ac_check_lib_save_LIBS
16247 fi
16248 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16249 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16250 if test $ac_cv_lib_socket_socket = yes; then
16251   cat >>confdefs.h <<_ACEOF
16252 #define HAVE_LIBSOCKET 1
16253 _ACEOF
16254
16255   LIBS="-lsocket $LIBS"
16256
16257 fi
16258
16259
16260 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16261 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16262 if test "${ac_cv_lib_inet_socket+set}" = set; then
16263   echo $ECHO_N "(cached) $ECHO_C" >&6
16264 else
16265   ac_check_lib_save_LIBS=$LIBS
16266 LIBS="-linet  $LIBS"
16267 cat >conftest.$ac_ext <<_ACEOF
16268 #line $LINENO "configure"
16269 /* confdefs.h.  */
16270 _ACEOF
16271 cat confdefs.h >>conftest.$ac_ext
16272 cat >>conftest.$ac_ext <<_ACEOF
16273 /* end confdefs.h.  */
16274
16275 /* Override any gcc2 internal prototype to avoid an error.  */
16276 #ifdef __cplusplus
16277 extern "C"
16278 #endif
16279 /* We use char because int might match the return type of a gcc2
16280    builtin and then its argument prototype would still apply.  */
16281 char socket ();
16282 int
16283 main ()
16284 {
16285 socket ();
16286   ;
16287   return 0;
16288 }
16289 _ACEOF
16290 rm -f conftest.$ac_objext conftest$ac_exeext
16291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16292   (eval $ac_link) 2>&5
16293   ac_status=$?
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); } &&
16296          { ac_try='test -s conftest$ac_exeext'
16297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298   (eval $ac_try) 2>&5
16299   ac_status=$?
16300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301   (exit $ac_status); }; }; then
16302   ac_cv_lib_inet_socket=yes
16303 else
16304   echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16306
16307 ac_cv_lib_inet_socket=no
16308 fi
16309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16310 LIBS=$ac_check_lib_save_LIBS
16311 fi
16312 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16313 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16314 if test $ac_cv_lib_inet_socket = yes; then
16315   cat >>confdefs.h <<_ACEOF
16316 #define HAVE_LIBINET 1
16317 _ACEOF
16318
16319   LIBS="-linet $LIBS"
16320
16321 fi
16322
16323 fi
16324
16325
16326
16327 for ac_func in inet_pton
16328 do
16329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16330 echo "$as_me:$LINENO: checking for $ac_func" >&5
16331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16332 if eval "test \"\${$as_ac_var+set}\" = set"; then
16333   echo $ECHO_N "(cached) $ECHO_C" >&6
16334 else
16335   cat >conftest.$ac_ext <<_ACEOF
16336 #line $LINENO "configure"
16337 /* confdefs.h.  */
16338 _ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h.  */
16342 /* System header to define __stub macros and hopefully few prototypes,
16343     which can conflict with char $ac_func (); below.
16344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16345     <limits.h> exists even on freestanding compilers.  */
16346 #ifdef __STDC__
16347 # include <limits.h>
16348 #else
16349 # include <assert.h>
16350 #endif
16351 /* Override any gcc2 internal prototype to avoid an error.  */
16352 #ifdef __cplusplus
16353 extern "C"
16354 {
16355 #endif
16356 /* We use char because int might match the return type of a gcc2
16357    builtin and then its argument prototype would still apply.  */
16358 char $ac_func ();
16359 /* The GNU C library defines this for functions which it implements
16360     to always fail with ENOSYS.  Some functions are actually named
16361     something starting with __ and the normal name is an alias.  */
16362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16363 choke me
16364 #else
16365 char (*f) () = $ac_func;
16366 #endif
16367 #ifdef __cplusplus
16368 }
16369 #endif
16370
16371 int
16372 main ()
16373 {
16374 return f != $ac_func;
16375   ;
16376   return 0;
16377 }
16378 _ACEOF
16379 rm -f conftest.$ac_objext conftest$ac_exeext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16381   (eval $ac_link) 2>&5
16382   ac_status=$?
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); } &&
16385          { ac_try='test -s conftest$ac_exeext'
16386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387   (eval $ac_try) 2>&5
16388   ac_status=$?
16389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); }; }; then
16391   eval "$as_ac_var=yes"
16392 else
16393   echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16395
16396 eval "$as_ac_var=no"
16397 fi
16398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16399 fi
16400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16402 if test `eval echo '${'$as_ac_var'}'` = yes; then
16403   cat >>confdefs.h <<_ACEOF
16404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16405 _ACEOF
16406  cat >>confdefs.h <<\_ACEOF
16407 #define HAVE_INET_PTON 1
16408 _ACEOF
16409
16410 fi
16411 done
16412
16413
16414 for ac_func in inet_ntop
16415 do
16416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16417 echo "$as_me:$LINENO: checking for $ac_func" >&5
16418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16419 if eval "test \"\${$as_ac_var+set}\" = set"; then
16420   echo $ECHO_N "(cached) $ECHO_C" >&6
16421 else
16422   cat >conftest.$ac_ext <<_ACEOF
16423 #line $LINENO "configure"
16424 /* confdefs.h.  */
16425 _ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h.  */
16429 /* System header to define __stub macros and hopefully few prototypes,
16430     which can conflict with char $ac_func (); below.
16431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16432     <limits.h> exists even on freestanding compilers.  */
16433 #ifdef __STDC__
16434 # include <limits.h>
16435 #else
16436 # include <assert.h>
16437 #endif
16438 /* Override any gcc2 internal prototype to avoid an error.  */
16439 #ifdef __cplusplus
16440 extern "C"
16441 {
16442 #endif
16443 /* We use char because int might match the return type of a gcc2
16444    builtin and then its argument prototype would still apply.  */
16445 char $ac_func ();
16446 /* The GNU C library defines this for functions which it implements
16447     to always fail with ENOSYS.  Some functions are actually named
16448     something starting with __ and the normal name is an alias.  */
16449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16450 choke me
16451 #else
16452 char (*f) () = $ac_func;
16453 #endif
16454 #ifdef __cplusplus
16455 }
16456 #endif
16457
16458 int
16459 main ()
16460 {
16461 return f != $ac_func;
16462   ;
16463   return 0;
16464 }
16465 _ACEOF
16466 rm -f conftest.$ac_objext conftest$ac_exeext
16467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16468   (eval $ac_link) 2>&5
16469   ac_status=$?
16470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471   (exit $ac_status); } &&
16472          { ac_try='test -s conftest$ac_exeext'
16473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474   (eval $ac_try) 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); }; }; then
16478   eval "$as_ac_var=yes"
16479 else
16480   echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16482
16483 eval "$as_ac_var=no"
16484 fi
16485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16486 fi
16487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16489 if test `eval echo '${'$as_ac_var'}'` = yes; then
16490   cat >>confdefs.h <<_ACEOF
16491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16492 _ACEOF
16493  cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_INET_NTOP 1
16495 _ACEOF
16496
16497 fi
16498 done
16499
16500
16501 for ac_func in gethostbyname2
16502 do
16503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16504 echo "$as_me:$LINENO: checking for $ac_func" >&5
16505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16506 if eval "test \"\${$as_ac_var+set}\" = set"; then
16507   echo $ECHO_N "(cached) $ECHO_C" >&6
16508 else
16509   cat >conftest.$ac_ext <<_ACEOF
16510 #line $LINENO "configure"
16511 /* confdefs.h.  */
16512 _ACEOF
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h.  */
16516 /* System header to define __stub macros and hopefully few prototypes,
16517     which can conflict with char $ac_func (); below.
16518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16519     <limits.h> exists even on freestanding compilers.  */
16520 #ifdef __STDC__
16521 # include <limits.h>
16522 #else
16523 # include <assert.h>
16524 #endif
16525 /* Override any gcc2 internal prototype to avoid an error.  */
16526 #ifdef __cplusplus
16527 extern "C"
16528 {
16529 #endif
16530 /* We use char because int might match the return type of a gcc2
16531    builtin and then its argument prototype would still apply.  */
16532 char $ac_func ();
16533 /* The GNU C library defines this for functions which it implements
16534     to always fail with ENOSYS.  Some functions are actually named
16535     something starting with __ and the normal name is an alias.  */
16536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16537 choke me
16538 #else
16539 char (*f) () = $ac_func;
16540 #endif
16541 #ifdef __cplusplus
16542 }
16543 #endif
16544
16545 int
16546 main ()
16547 {
16548 return f != $ac_func;
16549   ;
16550   return 0;
16551 }
16552 _ACEOF
16553 rm -f conftest.$ac_objext conftest$ac_exeext
16554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16555   (eval $ac_link) 2>&5
16556   ac_status=$?
16557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); } &&
16559          { ac_try='test -s conftest$ac_exeext'
16560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561   (eval $ac_try) 2>&5
16562   ac_status=$?
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); }; }; then
16565   eval "$as_ac_var=yes"
16566 else
16567   echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16569
16570 eval "$as_ac_var=no"
16571 fi
16572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16573 fi
16574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16576 if test `eval echo '${'$as_ac_var'}'` = yes; then
16577   cat >>confdefs.h <<_ACEOF
16578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16579 _ACEOF
16580  cat >>confdefs.h <<\_ACEOF
16581 #define HAVE_GETHOSTBYNAME2 1
16582 _ACEOF
16583
16584 fi
16585 done
16586
16587
16588 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16589 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16590 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16591   echo $ECHO_N "(cached) $ECHO_C" >&6
16592 else
16593   cat >conftest.$ac_ext <<_ACEOF
16594 #line $LINENO "configure"
16595 /* confdefs.h.  */
16596 _ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h.  */
16600 #include <sys/socket.h>
16601 int
16602 main ()
16603 {
16604 struct sockaddr s; s.sa_len;
16605   ;
16606   return 0;
16607 }
16608 _ACEOF
16609 rm -f conftest.$ac_objext
16610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16611   (eval $ac_compile) 2>&5
16612   ac_status=$?
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); } &&
16615          { ac_try='test -s conftest.$ac_objext'
16616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617   (eval $ac_try) 2>&5
16618   ac_status=$?
16619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620   (exit $ac_status); }; }; then
16621   ac_cv_struct_sockaddr_sa_len=yes
16622 else
16623   echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16625
16626 ac_cv_struct_sockaddr_sa_len=no
16627 fi
16628 rm -f conftest.$ac_objext conftest.$ac_ext
16629 fi
16630 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16631 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16632
16633  if test $ac_cv_struct_sockaddr_sa_len = yes; then
16634
16635 cat >>confdefs.h <<\_ACEOF
16636 #define HAVE_SA_LEN 1
16637 _ACEOF
16638
16639  fi
16640
16641
16642 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16643 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16644 if test "${ac_cv_ipv6_support+set}" = set; then
16645   echo $ECHO_N "(cached) $ECHO_C" >&6
16646 else
16647   cat >conftest.$ac_ext <<_ACEOF
16648 #line $LINENO "configure"
16649 /* confdefs.h.  */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h.  */
16654  #include <sys/types.h>
16655 #include <sys/socket.h>
16656 #include <netinet/in.h>
16657 int
16658 main ()
16659 {
16660 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16661  0;
16662   ;
16663   return 0;
16664 }
16665 _ACEOF
16666 rm -f conftest.$ac_objext conftest$ac_exeext
16667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16668   (eval $ac_link) 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); } &&
16672          { ac_try='test -s conftest$ac_exeext'
16673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674   (eval $ac_try) 2>&5
16675   ac_status=$?
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); }; }; then
16678   ac_cv_ipv6_support=yes
16679 else
16680   echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16682
16683 ac_cv_ipv6_support=no
16684 fi
16685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16686 fi
16687 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16688 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16689
16690 if test "$ac_cv_ipv6_support" = yes; then
16691
16692 cat >>confdefs.h <<\_ACEOF
16693 #define HAVE_IPV6 1
16694 _ACEOF
16695
16696 fi
16697
16698
16699
16700
16701 for ac_func in strftime
16702 do
16703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16704 echo "$as_me:$LINENO: checking for $ac_func" >&5
16705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16706 if eval "test \"\${$as_ac_var+set}\" = set"; then
16707   echo $ECHO_N "(cached) $ECHO_C" >&6
16708 else
16709   cat >conftest.$ac_ext <<_ACEOF
16710 #line $LINENO "configure"
16711 /* confdefs.h.  */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h.  */
16716 /* System header to define __stub macros and hopefully few prototypes,
16717     which can conflict with char $ac_func (); below.
16718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16719     <limits.h> exists even on freestanding compilers.  */
16720 #ifdef __STDC__
16721 # include <limits.h>
16722 #else
16723 # include <assert.h>
16724 #endif
16725 /* Override any gcc2 internal prototype to avoid an error.  */
16726 #ifdef __cplusplus
16727 extern "C"
16728 {
16729 #endif
16730 /* We use char because int might match the return type of a gcc2
16731    builtin and then its argument prototype would still apply.  */
16732 char $ac_func ();
16733 /* The GNU C library defines this for functions which it implements
16734     to always fail with ENOSYS.  Some functions are actually named
16735     something starting with __ and the normal name is an alias.  */
16736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16737 choke me
16738 #else
16739 char (*f) () = $ac_func;
16740 #endif
16741 #ifdef __cplusplus
16742 }
16743 #endif
16744
16745 int
16746 main ()
16747 {
16748 return f != $ac_func;
16749   ;
16750   return 0;
16751 }
16752 _ACEOF
16753 rm -f conftest.$ac_objext conftest$ac_exeext
16754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16755   (eval $ac_link) 2>&5
16756   ac_status=$?
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); } &&
16759          { ac_try='test -s conftest$ac_exeext'
16760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761   (eval $ac_try) 2>&5
16762   ac_status=$?
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); }; }; then
16765   eval "$as_ac_var=yes"
16766 else
16767   echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16769
16770 eval "$as_ac_var=no"
16771 fi
16772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16773 fi
16774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16776 if test `eval echo '${'$as_ac_var'}'` = yes; then
16777   cat >>confdefs.h <<_ACEOF
16778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16779 _ACEOF
16780
16781 else
16782   # strftime is in -lintl on SCO UNIX.
16783 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16784 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16785 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16786   echo $ECHO_N "(cached) $ECHO_C" >&6
16787 else
16788   ac_check_lib_save_LIBS=$LIBS
16789 LIBS="-lintl  $LIBS"
16790 cat >conftest.$ac_ext <<_ACEOF
16791 #line $LINENO "configure"
16792 /* confdefs.h.  */
16793 _ACEOF
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h.  */
16797
16798 /* Override any gcc2 internal prototype to avoid an error.  */
16799 #ifdef __cplusplus
16800 extern "C"
16801 #endif
16802 /* We use char because int might match the return type of a gcc2
16803    builtin and then its argument prototype would still apply.  */
16804 char strftime ();
16805 int
16806 main ()
16807 {
16808 strftime ();
16809   ;
16810   return 0;
16811 }
16812 _ACEOF
16813 rm -f conftest.$ac_objext conftest$ac_exeext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16815   (eval $ac_link) 2>&5
16816   ac_status=$?
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); } &&
16819          { ac_try='test -s conftest$ac_exeext'
16820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821   (eval $ac_try) 2>&5
16822   ac_status=$?
16823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824   (exit $ac_status); }; }; then
16825   ac_cv_lib_intl_strftime=yes
16826 else
16827   echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16829
16830 ac_cv_lib_intl_strftime=no
16831 fi
16832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16833 LIBS=$ac_check_lib_save_LIBS
16834 fi
16835 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16836 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16837 if test $ac_cv_lib_intl_strftime = yes; then
16838   cat >>confdefs.h <<\_ACEOF
16839 #define HAVE_STRFTIME 1
16840 _ACEOF
16841
16842 LIBS="-lintl $LIBS"
16843 fi
16844
16845 fi
16846 done
16847
16848
16849 for ac_func in vprintf
16850 do
16851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16852 echo "$as_me:$LINENO: checking for $ac_func" >&5
16853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16854 if eval "test \"\${$as_ac_var+set}\" = set"; then
16855   echo $ECHO_N "(cached) $ECHO_C" >&6
16856 else
16857   cat >conftest.$ac_ext <<_ACEOF
16858 #line $LINENO "configure"
16859 /* confdefs.h.  */
16860 _ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h.  */
16864 /* System header to define __stub macros and hopefully few prototypes,
16865     which can conflict with char $ac_func (); below.
16866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16867     <limits.h> exists even on freestanding compilers.  */
16868 #ifdef __STDC__
16869 # include <limits.h>
16870 #else
16871 # include <assert.h>
16872 #endif
16873 /* Override any gcc2 internal prototype to avoid an error.  */
16874 #ifdef __cplusplus
16875 extern "C"
16876 {
16877 #endif
16878 /* We use char because int might match the return type of a gcc2
16879    builtin and then its argument prototype would still apply.  */
16880 char $ac_func ();
16881 /* The GNU C library defines this for functions which it implements
16882     to always fail with ENOSYS.  Some functions are actually named
16883     something starting with __ and the normal name is an alias.  */
16884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16885 choke me
16886 #else
16887 char (*f) () = $ac_func;
16888 #endif
16889 #ifdef __cplusplus
16890 }
16891 #endif
16892
16893 int
16894 main ()
16895 {
16896 return f != $ac_func;
16897   ;
16898   return 0;
16899 }
16900 _ACEOF
16901 rm -f conftest.$ac_objext conftest$ac_exeext
16902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16903   (eval $ac_link) 2>&5
16904   ac_status=$?
16905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906   (exit $ac_status); } &&
16907          { ac_try='test -s conftest$ac_exeext'
16908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909   (eval $ac_try) 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; }; then
16913   eval "$as_ac_var=yes"
16914 else
16915   echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16917
16918 eval "$as_ac_var=no"
16919 fi
16920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16921 fi
16922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16924 if test `eval echo '${'$as_ac_var'}'` = yes; then
16925   cat >>confdefs.h <<_ACEOF
16926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16927 _ACEOF
16928
16929 echo "$as_me:$LINENO: checking for _doprnt" >&5
16930 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16931 if test "${ac_cv_func__doprnt+set}" = set; then
16932   echo $ECHO_N "(cached) $ECHO_C" >&6
16933 else
16934   cat >conftest.$ac_ext <<_ACEOF
16935 #line $LINENO "configure"
16936 /* confdefs.h.  */
16937 _ACEOF
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h.  */
16941 /* System header to define __stub macros and hopefully few prototypes,
16942     which can conflict with char _doprnt (); below.
16943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16944     <limits.h> exists even on freestanding compilers.  */
16945 #ifdef __STDC__
16946 # include <limits.h>
16947 #else
16948 # include <assert.h>
16949 #endif
16950 /* Override any gcc2 internal prototype to avoid an error.  */
16951 #ifdef __cplusplus
16952 extern "C"
16953 {
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 _doprnt ();
16958 /* The GNU C library defines this for functions which it implements
16959     to always fail with ENOSYS.  Some functions are actually named
16960     something starting with __ and the normal name is an alias.  */
16961 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16962 choke me
16963 #else
16964 char (*f) () = _doprnt;
16965 #endif
16966 #ifdef __cplusplus
16967 }
16968 #endif
16969
16970 int
16971 main ()
16972 {
16973 return f != _doprnt;
16974   ;
16975   return 0;
16976 }
16977 _ACEOF
16978 rm -f conftest.$ac_objext conftest$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980   (eval $ac_link) 2>&5
16981   ac_status=$?
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); } &&
16984          { ac_try='test -s conftest$ac_exeext'
16985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986   (eval $ac_try) 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); }; }; then
16990   ac_cv_func__doprnt=yes
16991 else
16992   echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16994
16995 ac_cv_func__doprnt=no
16996 fi
16997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16998 fi
16999 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17000 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17001 if test $ac_cv_func__doprnt = yes; then
17002
17003 cat >>confdefs.h <<\_ACEOF
17004 #define HAVE_DOPRNT 1
17005 _ACEOF
17006
17007 fi
17008
17009 fi
17010 done
17011
17012
17013 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17014 # for constant arguments.  Useless!
17015 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17016 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17017 if test "${ac_cv_working_alloca_h+set}" = set; then
17018   echo $ECHO_N "(cached) $ECHO_C" >&6
17019 else
17020   cat >conftest.$ac_ext <<_ACEOF
17021 #line $LINENO "configure"
17022 /* confdefs.h.  */
17023 _ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h.  */
17027 #include <alloca.h>
17028 int
17029 main ()
17030 {
17031 char *p = (char *) alloca (2 * sizeof (int));
17032   ;
17033   return 0;
17034 }
17035 _ACEOF
17036 rm -f conftest.$ac_objext conftest$ac_exeext
17037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17038   (eval $ac_link) 2>&5
17039   ac_status=$?
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); } &&
17042          { ac_try='test -s conftest$ac_exeext'
17043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044   (eval $ac_try) 2>&5
17045   ac_status=$?
17046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047   (exit $ac_status); }; }; then
17048   ac_cv_working_alloca_h=yes
17049 else
17050   echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17052
17053 ac_cv_working_alloca_h=no
17054 fi
17055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17056 fi
17057 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17058 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17059 if test $ac_cv_working_alloca_h = yes; then
17060
17061 cat >>confdefs.h <<\_ACEOF
17062 #define HAVE_ALLOCA_H 1
17063 _ACEOF
17064
17065 fi
17066
17067 echo "$as_me:$LINENO: checking for alloca" >&5
17068 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17069 if test "${ac_cv_func_alloca_works+set}" = set; then
17070   echo $ECHO_N "(cached) $ECHO_C" >&6
17071 else
17072   cat >conftest.$ac_ext <<_ACEOF
17073 #line $LINENO "configure"
17074 /* confdefs.h.  */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h.  */
17079 #ifdef __GNUC__
17080 # define alloca __builtin_alloca
17081 #else
17082 # ifdef _MSC_VER
17083 #  include <malloc.h>
17084 #  define alloca _alloca
17085 # else
17086 #  if HAVE_ALLOCA_H
17087 #   include <alloca.h>
17088 #  else
17089 #   ifdef _AIX
17090  #pragma alloca
17091 #   else
17092 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17093 char *alloca ();
17094 #    endif
17095 #   endif
17096 #  endif
17097 # endif
17098 #endif
17099
17100 int
17101 main ()
17102 {
17103 char *p = (char *) alloca (1);
17104   ;
17105   return 0;
17106 }
17107 _ACEOF
17108 rm -f conftest.$ac_objext conftest$ac_exeext
17109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17110   (eval $ac_link) 2>&5
17111   ac_status=$?
17112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113   (exit $ac_status); } &&
17114          { ac_try='test -s conftest$ac_exeext'
17115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116   (eval $ac_try) 2>&5
17117   ac_status=$?
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); }; }; then
17120   ac_cv_func_alloca_works=yes
17121 else
17122   echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17124
17125 ac_cv_func_alloca_works=no
17126 fi
17127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17128 fi
17129 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17130 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17131
17132 if test $ac_cv_func_alloca_works = yes; then
17133
17134 cat >>confdefs.h <<\_ACEOF
17135 #define HAVE_ALLOCA 1
17136 _ACEOF
17137
17138 else
17139   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17140 # that cause trouble.  Some versions do not even contain alloca or
17141 # contain a buggy version.  If you still want to use their alloca,
17142 # use ar to extract alloca.o from them instead of compiling alloca.c.
17143
17144 ALLOCA=alloca.$ac_objext
17145
17146 cat >>confdefs.h <<\_ACEOF
17147 #define C_ALLOCA 1
17148 _ACEOF
17149
17150
17151 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17152 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17153 if test "${ac_cv_os_cray+set}" = set; then
17154   echo $ECHO_N "(cached) $ECHO_C" >&6
17155 else
17156   cat >conftest.$ac_ext <<_ACEOF
17157 #line $LINENO "configure"
17158 /* confdefs.h.  */
17159 _ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h.  */
17163 #if defined(CRAY) && ! defined(CRAY2)
17164 webecray
17165 #else
17166 wenotbecray
17167 #endif
17168
17169 _ACEOF
17170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17171   $EGREP "webecray" >/dev/null 2>&1; then
17172   ac_cv_os_cray=yes
17173 else
17174   ac_cv_os_cray=no
17175 fi
17176 rm -f conftest*
17177
17178 fi
17179 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17180 echo "${ECHO_T}$ac_cv_os_cray" >&6
17181 if test $ac_cv_os_cray = yes; then
17182   for ac_func in _getb67 GETB67 getb67; do
17183     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17184 echo "$as_me:$LINENO: checking for $ac_func" >&5
17185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17186 if eval "test \"\${$as_ac_var+set}\" = set"; then
17187   echo $ECHO_N "(cached) $ECHO_C" >&6
17188 else
17189   cat >conftest.$ac_ext <<_ACEOF
17190 #line $LINENO "configure"
17191 /* confdefs.h.  */
17192 _ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h.  */
17196 /* System header to define __stub macros and hopefully few prototypes,
17197     which can conflict with char $ac_func (); below.
17198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17199     <limits.h> exists even on freestanding compilers.  */
17200 #ifdef __STDC__
17201 # include <limits.h>
17202 #else
17203 # include <assert.h>
17204 #endif
17205 /* Override any gcc2 internal prototype to avoid an error.  */
17206 #ifdef __cplusplus
17207 extern "C"
17208 {
17209 #endif
17210 /* We use char because int might match the return type of a gcc2
17211    builtin and then its argument prototype would still apply.  */
17212 char $ac_func ();
17213 /* The GNU C library defines this for functions which it implements
17214     to always fail with ENOSYS.  Some functions are actually named
17215     something starting with __ and the normal name is an alias.  */
17216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17217 choke me
17218 #else
17219 char (*f) () = $ac_func;
17220 #endif
17221 #ifdef __cplusplus
17222 }
17223 #endif
17224
17225 int
17226 main ()
17227 {
17228 return f != $ac_func;
17229   ;
17230   return 0;
17231 }
17232 _ACEOF
17233 rm -f conftest.$ac_objext conftest$ac_exeext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17235   (eval $ac_link) 2>&5
17236   ac_status=$?
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); } &&
17239          { ac_try='test -s conftest$ac_exeext'
17240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241   (eval $ac_try) 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; }; then
17245   eval "$as_ac_var=yes"
17246 else
17247   echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17249
17250 eval "$as_ac_var=no"
17251 fi
17252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17253 fi
17254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17256 if test `eval echo '${'$as_ac_var'}'` = yes; then
17257
17258 cat >>confdefs.h <<_ACEOF
17259 #define CRAY_STACKSEG_END $ac_func
17260 _ACEOF
17261
17262     break
17263 fi
17264
17265   done
17266 fi
17267
17268 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17269 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17270 if test "${ac_cv_c_stack_direction+set}" = set; then
17271   echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273   if test "$cross_compiling" = yes; then
17274   ac_cv_c_stack_direction=0
17275 else
17276   cat >conftest.$ac_ext <<_ACEOF
17277 #line $LINENO "configure"
17278 /* confdefs.h.  */
17279 _ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h.  */
17283 int
17284 find_stack_direction ()
17285 {
17286   static char *addr = 0;
17287   auto char dummy;
17288   if (addr == 0)
17289     {
17290       addr = &dummy;
17291       return find_stack_direction ();
17292     }
17293   else
17294     return (&dummy > addr) ? 1 : -1;
17295 }
17296
17297 int
17298 main ()
17299 {
17300   exit (find_stack_direction () < 0);
17301 }
17302 _ACEOF
17303 rm -f conftest$ac_exeext
17304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17305   (eval $ac_link) 2>&5
17306   ac_status=$?
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310   (eval $ac_try) 2>&5
17311   ac_status=$?
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); }; }; then
17314   ac_cv_c_stack_direction=1
17315 else
17316   echo "$as_me: program exited with status $ac_status" >&5
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17319
17320 ( exit $ac_status )
17321 ac_cv_c_stack_direction=-1
17322 fi
17323 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17324 fi
17325 fi
17326 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17327 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17328
17329 cat >>confdefs.h <<_ACEOF
17330 #define STACK_DIRECTION $ac_cv_c_stack_direction
17331 _ACEOF
17332
17333
17334 fi
17335
17336 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17337 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17338 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17339 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17340   echo $ECHO_N "(cached) $ECHO_C" >&6
17341 else
17342   ac_check_lib_save_LIBS=$LIBS
17343 LIBS="-lsun  $LIBS"
17344 cat >conftest.$ac_ext <<_ACEOF
17345 #line $LINENO "configure"
17346 /* confdefs.h.  */
17347 _ACEOF
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h.  */
17351
17352 /* Override any gcc2 internal prototype to avoid an error.  */
17353 #ifdef __cplusplus
17354 extern "C"
17355 #endif
17356 /* We use char because int might match the return type of a gcc2
17357    builtin and then its argument prototype would still apply.  */
17358 char getmntent ();
17359 int
17360 main ()
17361 {
17362 getmntent ();
17363   ;
17364   return 0;
17365 }
17366 _ACEOF
17367 rm -f conftest.$ac_objext conftest$ac_exeext
17368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17369   (eval $ac_link) 2>&5
17370   ac_status=$?
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } &&
17373          { ac_try='test -s conftest$ac_exeext'
17374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375   (eval $ac_try) 2>&5
17376   ac_status=$?
17377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378   (exit $ac_status); }; }; then
17379   ac_cv_lib_sun_getmntent=yes
17380 else
17381   echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17383
17384 ac_cv_lib_sun_getmntent=no
17385 fi
17386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17387 LIBS=$ac_check_lib_save_LIBS
17388 fi
17389 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17390 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17391 if test $ac_cv_lib_sun_getmntent = yes; then
17392   LIBS="-lsun $LIBS"
17393 else
17394   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17395 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17396 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17397   echo $ECHO_N "(cached) $ECHO_C" >&6
17398 else
17399   ac_check_lib_save_LIBS=$LIBS
17400 LIBS="-lseq  $LIBS"
17401 cat >conftest.$ac_ext <<_ACEOF
17402 #line $LINENO "configure"
17403 /* confdefs.h.  */
17404 _ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h.  */
17408
17409 /* Override any gcc2 internal prototype to avoid an error.  */
17410 #ifdef __cplusplus
17411 extern "C"
17412 #endif
17413 /* We use char because int might match the return type of a gcc2
17414    builtin and then its argument prototype would still apply.  */
17415 char getmntent ();
17416 int
17417 main ()
17418 {
17419 getmntent ();
17420   ;
17421   return 0;
17422 }
17423 _ACEOF
17424 rm -f conftest.$ac_objext conftest$ac_exeext
17425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17426   (eval $ac_link) 2>&5
17427   ac_status=$?
17428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429   (exit $ac_status); } &&
17430          { ac_try='test -s conftest$ac_exeext'
17431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432   (eval $ac_try) 2>&5
17433   ac_status=$?
17434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435   (exit $ac_status); }; }; then
17436   ac_cv_lib_seq_getmntent=yes
17437 else
17438   echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17440
17441 ac_cv_lib_seq_getmntent=no
17442 fi
17443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17444 LIBS=$ac_check_lib_save_LIBS
17445 fi
17446 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17447 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17448 if test $ac_cv_lib_seq_getmntent = yes; then
17449   LIBS="-lseq $LIBS"
17450 else
17451   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17452 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17453 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17454   echo $ECHO_N "(cached) $ECHO_C" >&6
17455 else
17456   ac_check_lib_save_LIBS=$LIBS
17457 LIBS="-lgen  $LIBS"
17458 cat >conftest.$ac_ext <<_ACEOF
17459 #line $LINENO "configure"
17460 /* confdefs.h.  */
17461 _ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h.  */
17465
17466 /* Override any gcc2 internal prototype to avoid an error.  */
17467 #ifdef __cplusplus
17468 extern "C"
17469 #endif
17470 /* We use char because int might match the return type of a gcc2
17471    builtin and then its argument prototype would still apply.  */
17472 char getmntent ();
17473 int
17474 main ()
17475 {
17476 getmntent ();
17477   ;
17478   return 0;
17479 }
17480 _ACEOF
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483   (eval $ac_link) 2>&5
17484   ac_status=$?
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); } &&
17487          { ac_try='test -s conftest$ac_exeext'
17488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489   (eval $ac_try) 2>&5
17490   ac_status=$?
17491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492   (exit $ac_status); }; }; then
17493   ac_cv_lib_gen_getmntent=yes
17494 else
17495   echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17497
17498 ac_cv_lib_gen_getmntent=no
17499 fi
17500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17501 LIBS=$ac_check_lib_save_LIBS
17502 fi
17503 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17504 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17505 if test $ac_cv_lib_gen_getmntent = yes; then
17506   LIBS="-lgen $LIBS"
17507 fi
17508
17509 fi
17510
17511 fi
17512
17513
17514 for ac_func in getmntent
17515 do
17516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17517 echo "$as_me:$LINENO: checking for $ac_func" >&5
17518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17519 if eval "test \"\${$as_ac_var+set}\" = set"; then
17520   echo $ECHO_N "(cached) $ECHO_C" >&6
17521 else
17522   cat >conftest.$ac_ext <<_ACEOF
17523 #line $LINENO "configure"
17524 /* confdefs.h.  */
17525 _ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h.  */
17529 /* System header to define __stub macros and hopefully few prototypes,
17530     which can conflict with char $ac_func (); below.
17531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17532     <limits.h> exists even on freestanding compilers.  */
17533 #ifdef __STDC__
17534 # include <limits.h>
17535 #else
17536 # include <assert.h>
17537 #endif
17538 /* Override any gcc2 internal prototype to avoid an error.  */
17539 #ifdef __cplusplus
17540 extern "C"
17541 {
17542 #endif
17543 /* We use char because int might match the return type of a gcc2
17544    builtin and then its argument prototype would still apply.  */
17545 char $ac_func ();
17546 /* The GNU C library defines this for functions which it implements
17547     to always fail with ENOSYS.  Some functions are actually named
17548     something starting with __ and the normal name is an alias.  */
17549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17550 choke me
17551 #else
17552 char (*f) () = $ac_func;
17553 #endif
17554 #ifdef __cplusplus
17555 }
17556 #endif
17557
17558 int
17559 main ()
17560 {
17561 return f != $ac_func;
17562   ;
17563   return 0;
17564 }
17565 _ACEOF
17566 rm -f conftest.$ac_objext conftest$ac_exeext
17567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568   (eval $ac_link) 2>&5
17569   ac_status=$?
17570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571   (exit $ac_status); } &&
17572          { ac_try='test -s conftest$ac_exeext'
17573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574   (eval $ac_try) 2>&5
17575   ac_status=$?
17576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577   (exit $ac_status); }; }; then
17578   eval "$as_ac_var=yes"
17579 else
17580   echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17582
17583 eval "$as_ac_var=no"
17584 fi
17585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17586 fi
17587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17589 if test `eval echo '${'$as_ac_var'}'` = yes; then
17590   cat >>confdefs.h <<_ACEOF
17591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17592 _ACEOF
17593
17594 fi
17595 done
17596
17597
17598 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17599 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17600 if test "${ac_cv_func_closedir_void+set}" = set; then
17601   echo $ECHO_N "(cached) $ECHO_C" >&6
17602 else
17603   if test "$cross_compiling" = yes; then
17604   ac_cv_func_closedir_void=yes
17605 else
17606   cat >conftest.$ac_ext <<_ACEOF
17607 #line $LINENO "configure"
17608 /* confdefs.h.  */
17609 _ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h.  */
17613 $ac_includes_default
17614 #include <$ac_header_dirent>
17615 #ifndef __cplusplus
17616 int closedir ();
17617 #endif
17618
17619 int
17620 main ()
17621 {
17622 exit (closedir (opendir (".")) != 0);
17623   ;
17624   return 0;
17625 }
17626 _ACEOF
17627 rm -f conftest$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629   (eval $ac_link) 2>&5
17630   ac_status=$?
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634   (eval $ac_try) 2>&5
17635   ac_status=$?
17636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637   (exit $ac_status); }; }; then
17638   ac_cv_func_closedir_void=no
17639 else
17640   echo "$as_me: program exited with status $ac_status" >&5
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 ( exit $ac_status )
17645 ac_cv_func_closedir_void=yes
17646 fi
17647 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17648 fi
17649 fi
17650 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17651 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17652 if test $ac_cv_func_closedir_void = yes; then
17653
17654 cat >>confdefs.h <<\_ACEOF
17655 #define CLOSEDIR_VOID 1
17656 _ACEOF
17657
17658 fi
17659
17660 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17661 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17662 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17663   echo $ECHO_N "(cached) $ECHO_C" >&6
17664 else
17665   if test "$cross_compiling" = yes; then
17666   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17667 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17668    { (exit 1); exit 1; }; }
17669 else
17670   cat >conftest.$ac_ext <<_ACEOF
17671 #line $LINENO "configure"
17672 /* confdefs.h.  */
17673 _ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h.  */
17677 #if HAVE_UNISTD_H
17678 # include <unistd.h>
17679 #endif
17680
17681 int
17682 main ()
17683 {
17684 /* If this system has a BSD-style setpgrp which takes arguments,
17685   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17686   exit successfully. */
17687   exit (setpgrp (1,1) == -1 ? 0 : 1);
17688   ;
17689   return 0;
17690 }
17691 _ACEOF
17692 rm -f conftest$ac_exeext
17693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17694   (eval $ac_link) 2>&5
17695   ac_status=$?
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699   (eval $ac_try) 2>&5
17700   ac_status=$?
17701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702   (exit $ac_status); }; }; then
17703   ac_cv_func_setpgrp_void=no
17704 else
17705   echo "$as_me: program exited with status $ac_status" >&5
17706 echo "$as_me: failed program was:" >&5
17707 sed 's/^/| /' conftest.$ac_ext >&5
17708
17709 ( exit $ac_status )
17710 ac_cv_func_setpgrp_void=yes
17711 fi
17712 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17713 fi
17714 fi
17715 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17716 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17717 if test $ac_cv_func_setpgrp_void = yes; then
17718
17719 cat >>confdefs.h <<\_ACEOF
17720 #define SETPGRP_VOID 1
17721 _ACEOF
17722
17723 fi
17724                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17725 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17726 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17727   echo $ECHO_N "(cached) $ECHO_C" >&6
17728 else
17729   # Some versions of Solaris, SCO, and the GNU C Library
17730    # have a broken or incompatible fnmatch.
17731    # So we run a test program.  If we are cross-compiling, take no chance.
17732    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17733    if test "$cross_compiling" = yes; then
17734   ac_cv_func_fnmatch_works=cross
17735 else
17736   cat >conftest.$ac_ext <<_ACEOF
17737 #line $LINENO "configure"
17738 /* confdefs.h.  */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h.  */
17743 #include <fnmatch.h>
17744 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
17745 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17746
17747 int
17748 main ()
17749 {
17750 exit
17751            (!(y ("a*", "abc", 0)
17752               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17753               && y ("a\\\\bc", "abc", 0)
17754               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17755               && y ("*x", ".x", 0)
17756               && n ("*x", ".x", FNM_PERIOD)
17757               && 1));
17758   ;
17759   return 0;
17760 }
17761 _ACEOF
17762 rm -f conftest$ac_exeext
17763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17764   (eval $ac_link) 2>&5
17765   ac_status=$?
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769   (eval $ac_try) 2>&5
17770   ac_status=$?
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); }; }; then
17773   ac_cv_func_fnmatch_works=yes
17774 else
17775   echo "$as_me: program exited with status $ac_status" >&5
17776 echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17778
17779 ( exit $ac_status )
17780 ac_cv_func_fnmatch_works=no
17781 fi
17782 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17783 fi
17784 fi
17785 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17786 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17787 if test $ac_cv_func_fnmatch_works = yes; then
17788
17789 cat >>confdefs.h <<\_ACEOF
17790 #define HAVE_FNMATCH 1
17791 _ACEOF
17792
17793 fi
17794
17795
17796
17797
17798
17799 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17800 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17801 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17802   echo $ECHO_N "(cached) $ECHO_C" >&6
17803 else
17804   ac_check_lib_save_LIBS=$LIBS
17805 LIBS="-lxpg4  $LIBS"
17806 cat >conftest.$ac_ext <<_ACEOF
17807 #line $LINENO "configure"
17808 /* confdefs.h.  */
17809 _ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h.  */
17813
17814 /* Override any gcc2 internal prototype to avoid an error.  */
17815 #ifdef __cplusplus
17816 extern "C"
17817 #endif
17818 /* We use char because int might match the return type of a gcc2
17819    builtin and then its argument prototype would still apply.  */
17820 char setlocale ();
17821 int
17822 main ()
17823 {
17824 setlocale ();
17825   ;
17826   return 0;
17827 }
17828 _ACEOF
17829 rm -f conftest.$ac_objext conftest$ac_exeext
17830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17831   (eval $ac_link) 2>&5
17832   ac_status=$?
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); } &&
17835          { ac_try='test -s conftest$ac_exeext'
17836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837   (eval $ac_try) 2>&5
17838   ac_status=$?
17839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); }; }; then
17841   ac_cv_lib_xpg4_setlocale=yes
17842 else
17843   echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846 ac_cv_lib_xpg4_setlocale=no
17847 fi
17848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17849 LIBS=$ac_check_lib_save_LIBS
17850 fi
17851 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17852 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17853 if test $ac_cv_lib_xpg4_setlocale = yes; then
17854   LIBS="$LIBS -lxpg4"
17855 fi
17856
17857
17858
17859
17860 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17861 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17862 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17863   echo $ECHO_N "(cached) $ECHO_C" >&6
17864 else
17865   ac_check_lib_save_LIBS=$LIBS
17866 LIBS="-lsun  $LIBS"
17867 cat >conftest.$ac_ext <<_ACEOF
17868 #line $LINENO "configure"
17869 /* confdefs.h.  */
17870 _ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h.  */
17874
17875 /* Override any gcc2 internal prototype to avoid an error.  */
17876 #ifdef __cplusplus
17877 extern "C"
17878 #endif
17879 /* We use char because int might match the return type of a gcc2
17880    builtin and then its argument prototype would still apply.  */
17881 char getpwnam ();
17882 int
17883 main ()
17884 {
17885 getpwnam ();
17886   ;
17887   return 0;
17888 }
17889 _ACEOF
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17892   (eval $ac_link) 2>&5
17893   ac_status=$?
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); } &&
17896          { ac_try='test -s conftest$ac_exeext'
17897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898   (eval $ac_try) 2>&5
17899   ac_status=$?
17900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); }; }; then
17902   ac_cv_lib_sun_getpwnam=yes
17903 else
17904   echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17906
17907 ac_cv_lib_sun_getpwnam=no
17908 fi
17909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17910 LIBS=$ac_check_lib_save_LIBS
17911 fi
17912 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17913 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17914 if test $ac_cv_lib_sun_getpwnam = yes; then
17915   cat >>confdefs.h <<_ACEOF
17916 #define HAVE_LIBSUN 1
17917 _ACEOF
17918
17919   LIBS="-lsun $LIBS"
17920
17921 fi
17922
17923
17924
17925 for ac_header in zlib.h
17926 do
17927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17929   echo "$as_me:$LINENO: checking for $ac_header" >&5
17930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17932   echo $ECHO_N "(cached) $ECHO_C" >&6
17933 fi
17934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17936 else
17937   # Is the header compilable?
17938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17940 cat >conftest.$ac_ext <<_ACEOF
17941 #line $LINENO "configure"
17942 /* confdefs.h.  */
17943 _ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h.  */
17947 $ac_includes_default
17948 #include <$ac_header>
17949 _ACEOF
17950 rm -f conftest.$ac_objext
17951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17952   (eval $ac_compile) 2>&5
17953   ac_status=$?
17954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955   (exit $ac_status); } &&
17956          { ac_try='test -s conftest.$ac_objext'
17957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958   (eval $ac_try) 2>&5
17959   ac_status=$?
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); }; }; then
17962   ac_header_compiler=yes
17963 else
17964   echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.$ac_ext >&5
17966
17967 ac_header_compiler=no
17968 fi
17969 rm -f conftest.$ac_objext conftest.$ac_ext
17970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17971 echo "${ECHO_T}$ac_header_compiler" >&6
17972
17973 # Is the header present?
17974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17976 cat >conftest.$ac_ext <<_ACEOF
17977 #line $LINENO "configure"
17978 /* confdefs.h.  */
17979 _ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h.  */
17983 #include <$ac_header>
17984 _ACEOF
17985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17987   ac_status=$?
17988   grep -v '^ *+' conftest.er1 >conftest.err
17989   rm -f conftest.er1
17990   cat conftest.err >&5
17991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992   (exit $ac_status); } >/dev/null; then
17993   if test -s conftest.err; then
17994     ac_cpp_err=$ac_c_preproc_warn_flag
17995   else
17996     ac_cpp_err=
17997   fi
17998 else
17999   ac_cpp_err=yes
18000 fi
18001 if test -z "$ac_cpp_err"; then
18002   ac_header_preproc=yes
18003 else
18004   echo "$as_me: failed program was:" >&5
18005 sed 's/^/| /' conftest.$ac_ext >&5
18006
18007   ac_header_preproc=no
18008 fi
18009 rm -f conftest.err conftest.$ac_ext
18010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18011 echo "${ECHO_T}$ac_header_preproc" >&6
18012
18013 # So?  What about this header?
18014 case $ac_header_compiler:$ac_header_preproc in
18015   yes:no )
18016     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18018     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18020     (
18021       cat <<\_ASBOX
18022 ## ------------------------------------ ##
18023 ## Report this to bug-autoconf@gnu.org. ##
18024 ## ------------------------------------ ##
18025 _ASBOX
18026     ) |
18027       sed "s/^/$as_me: WARNING:     /" >&2
18028     ;;
18029   no:yes )
18030     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18032     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18034     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18036     (
18037       cat <<\_ASBOX
18038 ## ------------------------------------ ##
18039 ## Report this to bug-autoconf@gnu.org. ##
18040 ## ------------------------------------ ##
18041 _ASBOX
18042     ) |
18043       sed "s/^/$as_me: WARNING:     /" >&2
18044     ;;
18045 esac
18046 echo "$as_me:$LINENO: checking for $ac_header" >&5
18047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18049   echo $ECHO_N "(cached) $ECHO_C" >&6
18050 else
18051   eval "$as_ac_Header=$ac_header_preproc"
18052 fi
18053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18055
18056 fi
18057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18058   cat >>confdefs.h <<_ACEOF
18059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18060 _ACEOF
18061
18062 fi
18063
18064 done
18065
18066 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18067 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18068 if test "${ac_cv_lib_z_deflate+set}" = set; then
18069   echo $ECHO_N "(cached) $ECHO_C" >&6
18070 else
18071   ac_check_lib_save_LIBS=$LIBS
18072 LIBS="-lz  $LIBS"
18073 cat >conftest.$ac_ext <<_ACEOF
18074 #line $LINENO "configure"
18075 /* confdefs.h.  */
18076 _ACEOF
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h.  */
18080
18081 /* Override any gcc2 internal prototype to avoid an error.  */
18082 #ifdef __cplusplus
18083 extern "C"
18084 #endif
18085 /* We use char because int might match the return type of a gcc2
18086    builtin and then its argument prototype would still apply.  */
18087 char deflate ();
18088 int
18089 main ()
18090 {
18091 deflate ();
18092   ;
18093   return 0;
18094 }
18095 _ACEOF
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18098   (eval $ac_link) 2>&5
18099   ac_status=$?
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); } &&
18102          { ac_try='test -s conftest$ac_exeext'
18103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104   (eval $ac_try) 2>&5
18105   ac_status=$?
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); }; }; then
18108   ac_cv_lib_z_deflate=yes
18109 else
18110   echo "$as_me: failed program was:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18112
18113 ac_cv_lib_z_deflate=no
18114 fi
18115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18116 LIBS=$ac_check_lib_save_LIBS
18117 fi
18118 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18119 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18120 if test $ac_cv_lib_z_deflate = yes; then
18121   FDLIBS="-lz"
18122 fi
18123
18124 have_zlib=no
18125 if test x$FDLIBS = x-lz; then
18126   cat >>confdefs.h <<\_ACEOF
18127 #define HAVE_LIBZ 1
18128 _ACEOF
18129
18130   have_zlib=yes
18131 fi
18132
18133 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18134   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18135 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18136 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18137   echo $ECHO_N "(cached) $ECHO_C" >&6
18138 fi
18139 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18140 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18141 else
18142   # Is the header compilable?
18143 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18144 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18145 cat >conftest.$ac_ext <<_ACEOF
18146 #line $LINENO "configure"
18147 /* confdefs.h.  */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h.  */
18152 $ac_includes_default
18153 #include <sys/acl.h>
18154 _ACEOF
18155 rm -f conftest.$ac_objext
18156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18157   (eval $ac_compile) 2>&5
18158   ac_status=$?
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); } &&
18161          { ac_try='test -s conftest.$ac_objext'
18162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163   (eval $ac_try) 2>&5
18164   ac_status=$?
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); }; }; then
18167   ac_header_compiler=yes
18168 else
18169   echo "$as_me: failed program was:" >&5
18170 sed 's/^/| /' conftest.$ac_ext >&5
18171
18172 ac_header_compiler=no
18173 fi
18174 rm -f conftest.$ac_objext conftest.$ac_ext
18175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18176 echo "${ECHO_T}$ac_header_compiler" >&6
18177
18178 # Is the header present?
18179 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18180 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18181 cat >conftest.$ac_ext <<_ACEOF
18182 #line $LINENO "configure"
18183 /* confdefs.h.  */
18184 _ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h.  */
18188 #include <sys/acl.h>
18189 _ACEOF
18190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18191   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18192   ac_status=$?
18193   grep -v '^ *+' conftest.er1 >conftest.err
18194   rm -f conftest.er1
18195   cat conftest.err >&5
18196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197   (exit $ac_status); } >/dev/null; then
18198   if test -s conftest.err; then
18199     ac_cpp_err=$ac_c_preproc_warn_flag
18200   else
18201     ac_cpp_err=
18202   fi
18203 else
18204   ac_cpp_err=yes
18205 fi
18206 if test -z "$ac_cpp_err"; then
18207   ac_header_preproc=yes
18208 else
18209   echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18211
18212   ac_header_preproc=no
18213 fi
18214 rm -f conftest.err conftest.$ac_ext
18215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18216 echo "${ECHO_T}$ac_header_preproc" >&6
18217
18218 # So?  What about this header?
18219 case $ac_header_compiler:$ac_header_preproc in
18220   yes:no )
18221     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18222 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18223     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18224 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18225     (
18226       cat <<\_ASBOX
18227 ## ------------------------------------ ##
18228 ## Report this to bug-autoconf@gnu.org. ##
18229 ## ------------------------------------ ##
18230 _ASBOX
18231     ) |
18232       sed "s/^/$as_me: WARNING:     /" >&2
18233     ;;
18234   no:yes )
18235     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18236 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18237     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18238 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18239     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18240 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18241     (
18242       cat <<\_ASBOX
18243 ## ------------------------------------ ##
18244 ## Report this to bug-autoconf@gnu.org. ##
18245 ## ------------------------------------ ##
18246 _ASBOX
18247     ) |
18248       sed "s/^/$as_me: WARNING:     /" >&2
18249     ;;
18250 esac
18251 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18252 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18253 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18254   echo $ECHO_N "(cached) $ECHO_C" >&6
18255 else
18256   ac_cv_header_sys_acl_h=$ac_header_preproc
18257 fi
18258 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18259 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18260
18261 fi
18262
18263
18264 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18265 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18266 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18267   echo $ECHO_N "(cached) $ECHO_C" >&6
18268 else
18269   ac_check_lib_save_LIBS=$LIBS
18270 LIBS="-lacl  $LIBS"
18271 cat >conftest.$ac_ext <<_ACEOF
18272 #line $LINENO "configure"
18273 /* confdefs.h.  */
18274 _ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h.  */
18278
18279 /* Override any gcc2 internal prototype to avoid an error.  */
18280 #ifdef __cplusplus
18281 extern "C"
18282 #endif
18283 /* We use char because int might match the return type of a gcc2
18284    builtin and then its argument prototype would still apply.  */
18285 char acl_get_file ();
18286 int
18287 main ()
18288 {
18289 acl_get_file ();
18290   ;
18291   return 0;
18292 }
18293 _ACEOF
18294 rm -f conftest.$ac_objext conftest$ac_exeext
18295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18296   (eval $ac_link) 2>&5
18297   ac_status=$?
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); } &&
18300          { ac_try='test -s conftest$ac_exeext'
18301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302   (eval $ac_try) 2>&5
18303   ac_status=$?
18304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305   (exit $ac_status); }; }; then
18306   ac_cv_lib_acl_acl_get_file=yes
18307 else
18308   echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18310
18311 ac_cv_lib_acl_acl_get_file=no
18312 fi
18313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18314 LIBS=$ac_check_lib_save_LIBS
18315 fi
18316 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18317 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18318 if test $ac_cv_lib_acl_acl_get_file = yes; then
18319   FDLIBS="-lacl $FDLIBS"
18320 fi
18321
18322 have_acl=no
18323 if test $ac_cv_lib_acl_acl_get_file = yes; then
18324    cat >>confdefs.h <<\_ACEOF
18325 #define HAVE_ACL 1
18326 _ACEOF
18327
18328    have_acl=yes
18329 fi
18330
18331 PTHREAD_LIB=""
18332 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18333 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18334 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18335   echo $ECHO_N "(cached) $ECHO_C" >&6
18336 else
18337   ac_check_lib_save_LIBS=$LIBS
18338 LIBS="-lpthread  $LIBS"
18339 cat >conftest.$ac_ext <<_ACEOF
18340 #line $LINENO "configure"
18341 /* confdefs.h.  */
18342 _ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h.  */
18346
18347 /* Override any gcc2 internal prototype to avoid an error.  */
18348 #ifdef __cplusplus
18349 extern "C"
18350 #endif
18351 /* We use char because int might match the return type of a gcc2
18352    builtin and then its argument prototype would still apply.  */
18353 char pthread_create ();
18354 int
18355 main ()
18356 {
18357 pthread_create ();
18358   ;
18359   return 0;
18360 }
18361 _ACEOF
18362 rm -f conftest.$ac_objext conftest$ac_exeext
18363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18364   (eval $ac_link) 2>&5
18365   ac_status=$?
18366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367   (exit $ac_status); } &&
18368          { ac_try='test -s conftest$ac_exeext'
18369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370   (eval $ac_try) 2>&5
18371   ac_status=$?
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); }; }; then
18374   ac_cv_lib_pthread_pthread_create=yes
18375 else
18376   echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18378
18379 ac_cv_lib_pthread_pthread_create=no
18380 fi
18381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18382 LIBS=$ac_check_lib_save_LIBS
18383 fi
18384 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18385 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18386 if test $ac_cv_lib_pthread_pthread_create = yes; then
18387   PTHREAD_LIB="-lpthread"
18388 else
18389   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18390 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18391 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18392   echo $ECHO_N "(cached) $ECHO_C" >&6
18393 else
18394   ac_check_lib_save_LIBS=$LIBS
18395 LIBS="-lpthreads  $LIBS"
18396 cat >conftest.$ac_ext <<_ACEOF
18397 #line $LINENO "configure"
18398 /* confdefs.h.  */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h.  */
18403
18404 /* Override any gcc2 internal prototype to avoid an error.  */
18405 #ifdef __cplusplus
18406 extern "C"
18407 #endif
18408 /* We use char because int might match the return type of a gcc2
18409    builtin and then its argument prototype would still apply.  */
18410 char pthread_create ();
18411 int
18412 main ()
18413 {
18414 pthread_create ();
18415   ;
18416   return 0;
18417 }
18418 _ACEOF
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18421   (eval $ac_link) 2>&5
18422   ac_status=$?
18423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424   (exit $ac_status); } &&
18425          { ac_try='test -s conftest$ac_exeext'
18426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427   (eval $ac_try) 2>&5
18428   ac_status=$?
18429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430   (exit $ac_status); }; }; then
18431   ac_cv_lib_pthreads_pthread_create=yes
18432 else
18433   echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18435
18436 ac_cv_lib_pthreads_pthread_create=no
18437 fi
18438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18439 LIBS=$ac_check_lib_save_LIBS
18440 fi
18441 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18442 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18443 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18444   PTHREAD_LIB="-lpthreads"
18445 else
18446   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18447 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18448 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18449   echo $ECHO_N "(cached) $ECHO_C" >&6
18450 else
18451   ac_check_lib_save_LIBS=$LIBS
18452 LIBS="-lc_r  $LIBS"
18453 cat >conftest.$ac_ext <<_ACEOF
18454 #line $LINENO "configure"
18455 /* confdefs.h.  */
18456 _ACEOF
18457 cat confdefs.h >>conftest.$ac_ext
18458 cat >>conftest.$ac_ext <<_ACEOF
18459 /* end confdefs.h.  */
18460
18461 /* Override any gcc2 internal prototype to avoid an error.  */
18462 #ifdef __cplusplus
18463 extern "C"
18464 #endif
18465 /* We use char because int might match the return type of a gcc2
18466    builtin and then its argument prototype would still apply.  */
18467 char pthread_create ();
18468 int
18469 main ()
18470 {
18471 pthread_create ();
18472   ;
18473   return 0;
18474 }
18475 _ACEOF
18476 rm -f conftest.$ac_objext conftest$ac_exeext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18478   (eval $ac_link) 2>&5
18479   ac_status=$?
18480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481   (exit $ac_status); } &&
18482          { ac_try='test -s conftest$ac_exeext'
18483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484   (eval $ac_try) 2>&5
18485   ac_status=$?
18486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487   (exit $ac_status); }; }; then
18488   ac_cv_lib_c_r_pthread_create=yes
18489 else
18490   echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18492
18493 ac_cv_lib_c_r_pthread_create=no
18494 fi
18495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18496 LIBS=$ac_check_lib_save_LIBS
18497 fi
18498 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18499 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18500 if test $ac_cv_lib_c_r_pthread_create = yes; then
18501   PTHREAD_LIB="-lc_r"
18502 else
18503   echo "$as_me:$LINENO: checking for pthread_create" >&5
18504 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18505 if test "${ac_cv_func_pthread_create+set}" = set; then
18506   echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508   cat >conftest.$ac_ext <<_ACEOF
18509 #line $LINENO "configure"
18510 /* confdefs.h.  */
18511 _ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h.  */
18515 /* System header to define __stub macros and hopefully few prototypes,
18516     which can conflict with char pthread_create (); below.
18517     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18518     <limits.h> exists even on freestanding compilers.  */
18519 #ifdef __STDC__
18520 # include <limits.h>
18521 #else
18522 # include <assert.h>
18523 #endif
18524 /* Override any gcc2 internal prototype to avoid an error.  */
18525 #ifdef __cplusplus
18526 extern "C"
18527 {
18528 #endif
18529 /* We use char because int might match the return type of a gcc2
18530    builtin and then its argument prototype would still apply.  */
18531 char pthread_create ();
18532 /* The GNU C library defines this for functions which it implements
18533     to always fail with ENOSYS.  Some functions are actually named
18534     something starting with __ and the normal name is an alias.  */
18535 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18536 choke me
18537 #else
18538 char (*f) () = pthread_create;
18539 #endif
18540 #ifdef __cplusplus
18541 }
18542 #endif
18543
18544 int
18545 main ()
18546 {
18547 return f != pthread_create;
18548   ;
18549   return 0;
18550 }
18551 _ACEOF
18552 rm -f conftest.$ac_objext conftest$ac_exeext
18553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18554   (eval $ac_link) 2>&5
18555   ac_status=$?
18556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557   (exit $ac_status); } &&
18558          { ac_try='test -s conftest$ac_exeext'
18559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560   (eval $ac_try) 2>&5
18561   ac_status=$?
18562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563   (exit $ac_status); }; }; then
18564   ac_cv_func_pthread_create=yes
18565 else
18566   echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18568
18569 ac_cv_func_pthread_create=no
18570 fi
18571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18572 fi
18573 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18574 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18575
18576
18577 fi
18578
18579
18580 fi
18581
18582
18583 fi
18584
18585
18586
18587 cat >>confdefs.h <<\_ACEOF
18588 #define FDLIBS 1
18589 _ACEOF
18590
18591
18592
18593 CFLAGS=${CFLAGS--O}
18594 LDFLAGS=${LDFLAGS--O}
18595 DB_LIBS="${SQL_LFLAGS}"
18596
18597 CPPFLAGS="$CPPFLAGS"
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612 OBJLIST=
18613
18614
18615 lld="lld"
18616 llu="llu"
18617
18618 WCFLAGS=
18619 WLDFLAGS=
18620
18621 #
18622 # Finally we set appropriate distribution specific
18623 #  variables and defaults
18624 #
18625 # PFILES are platform specific files
18626 PFILES="platforms/Makefile"
18627 PSCMD="ps -e"
18628 WIN32=
18629 MACOSX=
18630 hostname=`uname -n | cut -d '.' -f 1`
18631 case "$DISTNAME" in
18632 aix)
18633         DISTVER=`uname -r`
18634         PSCMD="ps -e -o pid,comm"
18635         PFILES="${PFILES} \
18636            platforms/aix/Makefile"
18637         TAPEDRIVE="/dev/rmt0.1"
18638   ;;
18639 alpha)
18640         DISTVER=`uname -r`
18641         PTHREAD_LIB="-lpthread -lexc"
18642         if test "${CC}" = "gcc" ; then
18643            lld="lld"
18644            llu="llu"
18645         else
18646            lld="ld"
18647            llu="lu"
18648         fi
18649         TAPEDRIVE="/dev/nrmt0"
18650   ;;
18651 bsdi)
18652         DISTVER=`uname -a |awk '{print $3}'`
18653         TAPEDRIVE="/dev/nrmt0"
18654         PTHREAD_LIB="-pthread"
18655         CFLAGS="${CFLAGS} -pthread"
18656         PSCMD="ps -x -o pid,command"
18657         lld="qd"
18658         llu="qu"
18659         PFILES="${PFILES} \
18660             platforms/bsdi/Makefile \
18661             platforms/bsdi/bacula-fd \
18662             platforms/bsdi/bacula-sd \
18663             platforms/bsdi/bacula-dir"
18664         largefile_support="yes"
18665   ;;
18666 cygwin)
18667         DISTVER=`uname -a |awk '{print $3}'`
18668         TAPEDRIVE="/dev/nrst0"
18669         WIN32=win32
18670         WCFLAGS="-mwindows"
18671         WLDFLAGS="-mwindows"
18672   ;;
18673 darwin)
18674         DISTVER=`uname -r`
18675         TAPEDRIVE="/dev/nst0"
18676         PSCMD="ps -e -o pid,command"
18677         MACOSX=macosx
18678         PFILES="${PFILES} \
18679            platforms/darwin/Makefile"
18680   ;;
18681 debian)
18682         DISTVER=`cat /etc/debian_version`
18683         TAPEDRIVE="/dev/nrst0"
18684         PSCMD="ps -e -o pid,command"
18685   ;;
18686 freebsd)
18687         DISTVER=`uname -a |awk '{print $3}'`
18688         VER=`echo $DISTVER | cut -c 1`
18689         if test x$VER = x4 ; then
18690            PTHREAD_LIB="-pthread"
18691            CFLAGS="${CFLAGS} -pthread"
18692         fi
18693         lld="qd"
18694         llu="qu"
18695         TAPEDRIVE="/dev/nrsa0"
18696         PSCMD="ps -x -o pid,command"
18697         PFILES="${PFILES} \
18698             platforms/freebsd/Makefile \
18699             platforms/freebsd/bacula-fd \
18700             platforms/freebsd/bacula-sd \
18701             platforms/freebsd/bacula-dir"
18702         largefile_support="yes"
18703   ;;
18704 hpux)
18705         PSCMD="UNIX95=1 ps -e -o pid,comm"
18706         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18707         DISTVER=`uname -r`
18708         TAPEDRIVE="/dev/rmt/0hnb"
18709   ;;
18710 irix)
18711         DISTVER=`uname -r`
18712         TAPEDRIVE="/dev/rmt/0cbn"
18713         PSCMD="ps -e -o pid,comm"
18714         PFILES="${PFILES} \
18715             platforms/irix/Makefile \
18716             platforms/irix/bacula-fd \
18717             platforms/irix/bacula-sd \
18718             platforms/irix/bacula-dir"
18719   ;;
18720 netbsd)
18721         DISTVER=`uname -a |awk '{print $3}'`
18722         lld="qd"
18723         llu="qu"
18724         TAPEDRIVE="/dev/nrst0"
18725         PSCMD="ps -a -o pid,command"
18726         PTHREAD_LIB="-pthread"
18727         CFLAGS="${CFLAGS} -pthread"
18728   ;;
18729 openbsd)
18730         DISTVER=`uname -a |awk '{print $3}'`
18731         lld="qd"
18732         llu="qu"
18733         TAPEDRIVE="/dev/nrst0"
18734         PSCMD="ps -a -o pid,command"
18735         PTHREAD_LIB="-pthread"
18736         CFLAGS="${CFLAGS} -pthread"
18737         PFILES="${PFILES} \
18738             platforms/openbsd/Makefile \
18739             platforms/openbsd/bacula-fd \
18740             platforms/openbsd/bacula-sd \
18741             platforms/openbsd/bacula-dir"
18742   ;;
18743 redhat)
18744         if test -f /etc/whitebox-release ; then
18745            f=/etc/whitebox-release
18746         else
18747            f=/etc/redhat-release
18748         fi
18749         if test `cat $f | grep release |\
18750                    cut -f 3 -d ' '`x = "Enterprise"x ; then
18751            DISTVER="Enterprise "`cat $f | grep release |\
18752                     cut -f 6 -d ' '`
18753         else
18754             DISTVER=`cat /etc/redhat-release | grep release |\
18755                      cut -f 5 -d ' '`
18756         fi
18757         TAPEDRIVE="/dev/nst0"
18758         PSCMD="ps -e -o pid,command"
18759         PFILES="${PFILES} \
18760             platforms/redhat/Makefile \
18761             platforms/redhat/bacula-fd \
18762             platforms/redhat/bacula-sd \
18763             platforms/redhat/bacula-dir \
18764             platforms/redhat/bacula.spec \
18765             "
18766         hostname=`hostname -s`
18767   ;;
18768 mandrake)
18769         DISTVER=`cat /etc/mandrake-release | grep release |\
18770            cut -f 5 -d ' '`
18771         TAPEDRIVE="/dev/nst0"
18772         PSCMD="ps -e -o pid,command"
18773         PFILES="${PFILES} \
18774             platforms/mandrake/Makefile \
18775             platforms/mandrake/bacula-fd \
18776             platforms/mandrake/bacula-sd \
18777             platforms/mandrake/bacula-dir \
18778             platforms/mandrake/bacula.spec \
18779             "
18780   ;;
18781 gentoo)
18782         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18783         TAPEDRIVE="/dev/nst0"
18784         PSCMD="ps -e -o pid,command"
18785         PFILES="${PFILES} \
18786             platforms/gentoo/Makefile \
18787             platforms/gentoo/bacula-fd \
18788             platforms/gentoo/bacula-sd \
18789             platforms/gentoo/bacula-dir"
18790   ;;
18791 slackware)
18792         DISTVER=`cat /etc/slackware-version`
18793         TAPEDRIVE="/dev/nst0"
18794         PSCMD="ps -e -o pid,command"
18795         PFILES="${PFILES} \
18796             platforms/slackware/Makefile \
18797             platforms/slackware/rc.bacula-fd \
18798             platforms/slackware/rc.bacula-sd \
18799             platforms/slackware/rc.bacula-dir\
18800             platforms/slackware/functions.bacula"
18801   ;;
18802 solaris)
18803         DISTVER=`uname -r`
18804         TAPEDRIVE="/dev/rmt/0cbn"
18805         PSCMD="ps -e -o pid,comm"
18806         PFILES="${PFILES} \
18807             platforms/solaris/Makefile \
18808             platforms/solaris/bacula-fd \
18809             platforms/solaris/bacula-sd \
18810             platforms/solaris/bacula-dir"
18811         if test x$DISTVER = x5.6 ; then
18812             cat >>confdefs.h <<\_ACEOF
18813 #define HAVE_OLD_SOCKOPT 1
18814 _ACEOF
18815
18816         fi
18817   ;;
18818 suse)
18819         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18820             cut -f 3 -d ' '`
18821         TAPEDRIVE="/dev/nst0"
18822         PSCMD="ps -e -o pid,command"
18823         PFILES="${PFILES} \
18824             platforms/suse/Makefile \
18825             platforms/suse/bacula-fd \
18826             platforms/suse/bacula-sd \
18827             platforms/suse/bacula-dir \
18828             platforms/suse/bacula \
18829             platforms/suse/bacula.spec"
18830   ;;
18831 suse5)
18832         DISTNAME=suse
18833         DISTVER=5.x
18834         TAPEDRIVE="/dev/nst0"
18835         PSCMD="ps -e -o pid,command"
18836         PFILES="${PFILES} \
18837             platforms/suse/Makefile \
18838             platforms/suse/bacula-fd \
18839             platforms/suse/bacula-sd \
18840             platforms/suse/bacula-dir"
18841   ;;
18842 unknown)
18843         DISTVER=unknown
18844         TAPEDRIVE="/dev/nst0"
18845   ;;
18846 *)
18847   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18848   ;;
18849 esac
18850
18851
18852
18853 LIBS="$PTHREAD_LIB $LIBS"
18854
18855 cat >>confdefs.h <<_ACEOF
18856 #define lld "$lld"
18857 _ACEOF
18858
18859 cat >>confdefs.h <<_ACEOF
18860 #define llu "$llu"
18861 _ACEOF
18862
18863
18864
18865
18866
18867
18868
18869
18870 MCOMMON=./autoconf/Make.common
18871
18872
18873 if test "x${subsysdir}" = "x${sbindir}" ; then
18874    echo " "
18875    echo " "
18876    echo "You have set both --sbindir and --with-subsys-dir"
18877    echo "  equal to: ${subsysdir} "
18878    echo "This is not permitted. Please reconfigure."
18879    echo " "
18880    echo "Aborting configuration ..."
18881    echo " "
18882    echo " "
18883    exit 1
18884 fi
18885
18886                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18887           ac_config_commands="$ac_config_commands default"
18888 cat >confcache <<\_ACEOF
18889 # This file is a shell script that caches the results of configure
18890 # tests run on this system so they can be shared between configure
18891 # scripts and configure runs, see configure's option --config-cache.
18892 # It is not useful on other systems.  If it contains results you don't
18893 # want to keep, you may remove or edit it.
18894 #
18895 # config.status only pays attention to the cache file if you give it
18896 # the --recheck option to rerun configure.
18897 #
18898 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18899 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18900 # following values.
18901
18902 _ACEOF
18903
18904 # The following way of writing the cache mishandles newlines in values,
18905 # but we know of no workaround that is simple, portable, and efficient.
18906 # So, don't put newlines in cache variables' values.
18907 # Ultrix sh set writes to stderr and can't be redirected directly,
18908 # and sets the high bit in the cache file unless we assign to the vars.
18909 {
18910   (set) 2>&1 |
18911     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18912     *ac_space=\ *)
18913       # `set' does not quote correctly, so add quotes (double-quote
18914       # substitution turns \\\\ into \\, and sed turns \\ into \).
18915       sed -n \
18916         "s/'/'\\\\''/g;
18917           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18918       ;;
18919     *)
18920       # `set' quotes correctly as required by POSIX, so do not add quotes.
18921       sed -n \
18922         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18923       ;;
18924     esac;
18925 } |
18926   sed '
18927      t clear
18928      : clear
18929      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18930      t end
18931      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18932      : end' >>confcache
18933 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18934   if test -w $cache_file; then
18935     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18936     cat confcache >$cache_file
18937   else
18938     echo "not updating unwritable cache $cache_file"
18939   fi
18940 fi
18941 rm -f confcache
18942
18943 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18944 # Let make expand exec_prefix.
18945 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18946
18947 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18948 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18949 # trailing colons and then remove the whole line if VPATH becomes empty
18950 # (actually we leave an empty line to preserve line numbers).
18951 if test "x$srcdir" = x.; then
18952   ac_vpsub='/^[         ]*VPATH[        ]*=/{
18953 s/:*\$(srcdir):*/:/;
18954 s/:*\${srcdir}:*/:/;
18955 s/:*@srcdir@:*/:/;
18956 s/^\([^=]*=[    ]*\):*/\1/;
18957 s/:*$//;
18958 s/^[^=]*=[      ]*$//;
18959 }'
18960 fi
18961
18962 DEFS=-DHAVE_CONFIG_H
18963
18964 ac_libobjs=
18965 ac_ltlibobjs=
18966 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18967   # 1. Remove the extension, and $U if already installed.
18968   ac_i=`echo "$ac_i" |
18969          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18970   # 2. Add them.
18971   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18972   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18973 done
18974 LIBOBJS=$ac_libobjs
18975
18976 LTLIBOBJS=$ac_ltlibobjs
18977
18978
18979
18980 : ${CONFIG_STATUS=./config.status}
18981 ac_clean_files_save=$ac_clean_files
18982 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18983 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18984 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18985 cat >$CONFIG_STATUS <<_ACEOF
18986 #! $SHELL
18987 # Generated by $as_me.
18988 # Run this file to recreate the current configuration.
18989 # Compiler output produced by configure, useful for debugging
18990 # configure, is in config.log if it exists.
18991
18992 debug=false
18993 ac_cs_recheck=false
18994 ac_cs_silent=false
18995 SHELL=\${CONFIG_SHELL-$SHELL}
18996 _ACEOF
18997
18998 cat >>$CONFIG_STATUS <<\_ACEOF
18999 ## --------------------- ##
19000 ## M4sh Initialization.  ##
19001 ## --------------------- ##
19002
19003 # Be Bourne compatible
19004 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19005   emulate sh
19006   NULLCMD=:
19007   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19008   # is contrary to our usage.  Disable this feature.
19009   alias -g '${1+"$@"}'='"$@"'
19010 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19011   set -o posix
19012 fi
19013
19014 # Support unset when possible.
19015 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19016   as_unset=unset
19017 else
19018   as_unset=false
19019 fi
19020
19021
19022 # Work around bugs in pre-3.0 UWIN ksh.
19023 $as_unset ENV MAIL MAILPATH
19024 PS1='$ '
19025 PS2='> '
19026 PS4='+ '
19027
19028 # NLS nuisances.
19029 for as_var in \
19030   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19031   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19032   LC_TELEPHONE LC_TIME
19033 do
19034   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19035     eval $as_var=C; export $as_var
19036   else
19037     $as_unset $as_var
19038   fi
19039 done
19040
19041 # Required to use basename.
19042 if expr a : '\(a\)' >/dev/null 2>&1; then
19043   as_expr=expr
19044 else
19045   as_expr=false
19046 fi
19047
19048 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19049   as_basename=basename
19050 else
19051   as_basename=false
19052 fi
19053
19054
19055 # Name of the executable.
19056 as_me=`$as_basename "$0" ||
19057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19058          X"$0" : 'X\(//\)$' \| \
19059          X"$0" : 'X\(/\)$' \| \
19060          .     : '\(.\)' 2>/dev/null ||
19061 echo X/"$0" |
19062     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19063           /^X\/\(\/\/\)$/{ s//\1/; q; }
19064           /^X\/\(\/\).*/{ s//\1/; q; }
19065           s/.*/./; q'`
19066
19067
19068 # PATH needs CR, and LINENO needs CR and PATH.
19069 # Avoid depending upon Character Ranges.
19070 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19071 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19072 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19073 as_cr_digits='0123456789'
19074 as_cr_alnum=$as_cr_Letters$as_cr_digits
19075
19076 # The user is always right.
19077 if test "${PATH_SEPARATOR+set}" != set; then
19078   echo "#! /bin/sh" >conf$$.sh
19079   echo  "exit 0"   >>conf$$.sh
19080   chmod +x conf$$.sh
19081   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19082     PATH_SEPARATOR=';'
19083   else
19084     PATH_SEPARATOR=:
19085   fi
19086   rm -f conf$$.sh
19087 fi
19088
19089
19090   as_lineno_1=$LINENO
19091   as_lineno_2=$LINENO
19092   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19093   test "x$as_lineno_1" != "x$as_lineno_2" &&
19094   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19095   # Find who we are.  Look in the path if we contain no path at all
19096   # relative or not.
19097   case $0 in
19098     *[\\/]* ) as_myself=$0 ;;
19099     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19100 for as_dir in $PATH
19101 do
19102   IFS=$as_save_IFS
19103   test -z "$as_dir" && as_dir=.
19104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19105 done
19106
19107        ;;
19108   esac
19109   # We did not find ourselves, most probably we were run as `sh COMMAND'
19110   # in which case we are not to be found in the path.
19111   if test "x$as_myself" = x; then
19112     as_myself=$0
19113   fi
19114   if test ! -f "$as_myself"; then
19115     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19116 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19117    { (exit 1); exit 1; }; }
19118   fi
19119   case $CONFIG_SHELL in
19120   '')
19121     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19122 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19123 do
19124   IFS=$as_save_IFS
19125   test -z "$as_dir" && as_dir=.
19126   for as_base in sh bash ksh sh5; do
19127          case $as_dir in
19128          /*)
19129            if ("$as_dir/$as_base" -c '
19130   as_lineno_1=$LINENO
19131   as_lineno_2=$LINENO
19132   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19133   test "x$as_lineno_1" != "x$as_lineno_2" &&
19134   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19135              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19136              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19137              CONFIG_SHELL=$as_dir/$as_base
19138              export CONFIG_SHELL
19139              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19140            fi;;
19141          esac
19142        done
19143 done
19144 ;;
19145   esac
19146
19147   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19148   # uniformly replaced by the line number.  The first 'sed' inserts a
19149   # line-number line before each line; the second 'sed' does the real
19150   # work.  The second script uses 'N' to pair each line-number line
19151   # with the numbered line, and appends trailing '-' during
19152   # substitution so that $LINENO is not a special case at line end.
19153   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19154   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19155   sed '=' <$as_myself |
19156     sed '
19157       N
19158       s,$,-,
19159       : loop
19160       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19161       t loop
19162       s,-$,,
19163       s,^['$as_cr_digits']*\n,,
19164     ' >$as_me.lineno &&
19165   chmod +x $as_me.lineno ||
19166     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19167 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19168    { (exit 1); exit 1; }; }
19169
19170   # Don't try to exec as it changes $[0], causing all sort of problems
19171   # (the dirname of $[0] is not the place where we might find the
19172   # original and so on.  Autoconf is especially sensible to this).
19173   . ./$as_me.lineno
19174   # Exit status is that of the last command.
19175   exit
19176 }
19177
19178
19179 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19180   *c*,-n*) ECHO_N= ECHO_C='
19181 ' ECHO_T='      ' ;;
19182   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19183   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19184 esac
19185
19186 if expr a : '\(a\)' >/dev/null 2>&1; then
19187   as_expr=expr
19188 else
19189   as_expr=false
19190 fi
19191
19192 rm -f conf$$ conf$$.exe conf$$.file
19193 echo >conf$$.file
19194 if ln -s conf$$.file conf$$ 2>/dev/null; then
19195   # We could just check for DJGPP; but this test a) works b) is more generic
19196   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19197   if test -f conf$$.exe; then
19198     # Don't use ln at all; we don't have any links
19199     as_ln_s='cp -p'
19200   else
19201     as_ln_s='ln -s'
19202   fi
19203 elif ln conf$$.file conf$$ 2>/dev/null; then
19204   as_ln_s=ln
19205 else
19206   as_ln_s='cp -p'
19207 fi
19208 rm -f conf$$ conf$$.exe conf$$.file
19209
19210 if mkdir -p . 2>/dev/null; then
19211   as_mkdir_p=:
19212 else
19213   as_mkdir_p=false
19214 fi
19215
19216 as_executable_p="test -f"
19217
19218 # Sed expression to map a string onto a valid CPP name.
19219 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19220
19221 # Sed expression to map a string onto a valid variable name.
19222 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19223
19224
19225 # IFS
19226 # We need space, tab and new line, in precisely that order.
19227 as_nl='
19228 '
19229 IFS="   $as_nl"
19230
19231 # CDPATH.
19232 $as_unset CDPATH
19233
19234 exec 6>&1
19235
19236 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19237 # report actual input values of CONFIG_FILES etc. instead of their
19238 # values after options handling.  Logging --version etc. is OK.
19239 exec 5>>config.log
19240 {
19241   echo
19242   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19243 ## Running $as_me. ##
19244 _ASBOX
19245 } >&5
19246 cat >&5 <<_CSEOF
19247
19248 This file was extended by $as_me, which was
19249 generated by GNU Autoconf 2.57.  Invocation command line was
19250
19251   CONFIG_FILES    = $CONFIG_FILES
19252   CONFIG_HEADERS  = $CONFIG_HEADERS
19253   CONFIG_LINKS    = $CONFIG_LINKS
19254   CONFIG_COMMANDS = $CONFIG_COMMANDS
19255   $ $0 $@
19256
19257 _CSEOF
19258 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19259 echo >&5
19260 _ACEOF
19261
19262 # Files that config.status was made for.
19263 if test -n "$ac_config_files"; then
19264   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19265 fi
19266
19267 if test -n "$ac_config_headers"; then
19268   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19269 fi
19270
19271 if test -n "$ac_config_links"; then
19272   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19273 fi
19274
19275 if test -n "$ac_config_commands"; then
19276   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19277 fi
19278
19279 cat >>$CONFIG_STATUS <<\_ACEOF
19280
19281 ac_cs_usage="\
19282 \`$as_me' instantiates files from templates according to the
19283 current configuration.
19284
19285 Usage: $0 [OPTIONS] [FILE]...
19286
19287   -h, --help       print this help, then exit
19288   -V, --version    print version number, then exit
19289   -q, --quiet      do not print progress messages
19290   -d, --debug      don't remove temporary files
19291       --recheck    update $as_me by reconfiguring in the same conditions
19292   --file=FILE[:TEMPLATE]
19293                    instantiate the configuration file FILE
19294   --header=FILE[:TEMPLATE]
19295                    instantiate the configuration header FILE
19296
19297 Configuration files:
19298 $config_files
19299
19300 Configuration headers:
19301 $config_headers
19302
19303 Configuration commands:
19304 $config_commands
19305
19306 Report bugs to <bug-autoconf@gnu.org>."
19307 _ACEOF
19308
19309 cat >>$CONFIG_STATUS <<_ACEOF
19310 ac_cs_version="\\
19311 config.status
19312 configured by $0, generated by GNU Autoconf 2.57,
19313   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19314
19315 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19316 Free Software Foundation, Inc.
19317 This config.status script is free software; the Free Software Foundation
19318 gives unlimited permission to copy, distribute and modify it."
19319 srcdir=$srcdir
19320 INSTALL="$INSTALL"
19321 _ACEOF
19322
19323 cat >>$CONFIG_STATUS <<\_ACEOF
19324 # If no file are specified by the user, then we need to provide default
19325 # value.  By we need to know if files were specified by the user.
19326 ac_need_defaults=:
19327 while test $# != 0
19328 do
19329   case $1 in
19330   --*=*)
19331     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19332     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19333     ac_shift=:
19334     ;;
19335   -*)
19336     ac_option=$1
19337     ac_optarg=$2
19338     ac_shift=shift
19339     ;;
19340   *) # This is not an option, so the user has probably given explicit
19341      # arguments.
19342      ac_option=$1
19343      ac_need_defaults=false;;
19344   esac
19345
19346   case $ac_option in
19347   # Handling of the options.
19348 _ACEOF
19349 cat >>$CONFIG_STATUS <<\_ACEOF
19350   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19351     ac_cs_recheck=: ;;
19352   --version | --vers* | -V )
19353     echo "$ac_cs_version"; exit 0 ;;
19354   --he | --h)
19355     # Conflict between --help and --header
19356     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19357 Try \`$0 --help' for more information." >&5
19358 echo "$as_me: error: ambiguous option: $1
19359 Try \`$0 --help' for more information." >&2;}
19360    { (exit 1); exit 1; }; };;
19361   --help | --hel | -h )
19362     echo "$ac_cs_usage"; exit 0 ;;
19363   --debug | --d* | -d )
19364     debug=: ;;
19365   --file | --fil | --fi | --f )
19366     $ac_shift
19367     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19368     ac_need_defaults=false;;
19369   --header | --heade | --head | --hea )
19370     $ac_shift
19371     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19372     ac_need_defaults=false;;
19373   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19374   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19375     ac_cs_silent=: ;;
19376
19377   # This is an error.
19378   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19379 Try \`$0 --help' for more information." >&5
19380 echo "$as_me: error: unrecognized option: $1
19381 Try \`$0 --help' for more information." >&2;}
19382    { (exit 1); exit 1; }; } ;;
19383
19384   *) ac_config_targets="$ac_config_targets $1" ;;
19385
19386   esac
19387   shift
19388 done
19389
19390 ac_configure_extra_args=
19391
19392 if $ac_cs_silent; then
19393   exec 6>/dev/null
19394   ac_configure_extra_args="$ac_configure_extra_args --silent"
19395 fi
19396
19397 _ACEOF
19398 cat >>$CONFIG_STATUS <<_ACEOF
19399 if \$ac_cs_recheck; then
19400   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19401   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19402 fi
19403
19404 _ACEOF
19405
19406
19407
19408
19409
19410 cat >>$CONFIG_STATUS <<\_ACEOF
19411 for ac_config_target in $ac_config_targets
19412 do
19413   case "$ac_config_target" in
19414   # Handling of arguments.
19415   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19416   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19417   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19418   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19419   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19420   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19421   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19422   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19423   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19424   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19425   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19426   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19427   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19428   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19429   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19430   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19431   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19432   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19433   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19434   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19435   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19436   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19437   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19438   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19439   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19440   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19441   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19442   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19443   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19444   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19445   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19446   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19447   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19448   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19449   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19450   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19451   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19452   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19453   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19454   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19455   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19456   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19457   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19458   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19459   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19460   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19461   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19462   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19463   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19464   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19465   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19466   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19467   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19468   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19469   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19470   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19471   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19472   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19473   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19474   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19475   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19476   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19477   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19478   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19479   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19480   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19481   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19482   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19483   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19484   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19485   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19486   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19487   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19488   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19489   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19490   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19491   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19492   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19493   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19494   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19495   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19496   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19497   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19498   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19499   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19500   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19501   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19502   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19503   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19504   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19505   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19506   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19507   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19508   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19509 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19510    { (exit 1); exit 1; }; };;
19511   esac
19512 done
19513
19514 # If the user did not use the arguments to specify the items to instantiate,
19515 # then the envvar interface is used.  Set only those that are not.
19516 # We use the long form for the default assignment because of an extremely
19517 # bizarre bug on SunOS 4.1.3.
19518 if $ac_need_defaults; then
19519   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19520   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19521   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19522 fi
19523
19524 # Have a temporary directory for convenience.  Make it in the build tree
19525 # simply because there is no reason to put it here, and in addition,
19526 # creating and moving files from /tmp can sometimes cause problems.
19527 # Create a temporary directory, and hook for its removal unless debugging.
19528 $debug ||
19529 {
19530   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19531   trap '{ (exit 1); exit 1; }' 1 2 13 15
19532 }
19533
19534 # Create a (secure) tmp directory for tmp files.
19535
19536 {
19537   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19538   test -n "$tmp" && test -d "$tmp"
19539 }  ||
19540 {
19541   tmp=./confstat$$-$RANDOM
19542   (umask 077 && mkdir $tmp)
19543 } ||
19544 {
19545    echo "$me: cannot create a temporary directory in ." >&2
19546    { (exit 1); exit 1; }
19547 }
19548
19549 _ACEOF
19550
19551 cat >>$CONFIG_STATUS <<_ACEOF
19552
19553 #
19554 # CONFIG_FILES section.
19555 #
19556
19557 # No need to generate the scripts if there are no CONFIG_FILES.
19558 # This happens for instance when ./config.status config.h
19559 if test -n "\$CONFIG_FILES"; then
19560   # Protect against being on the right side of a sed subst in config.status.
19561   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19562    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19563 s,@SHELL@,$SHELL,;t t
19564 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19565 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19566 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19567 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19568 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19569 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19570 s,@exec_prefix@,$exec_prefix,;t t
19571 s,@prefix@,$prefix,;t t
19572 s,@program_transform_name@,$program_transform_name,;t t
19573 s,@bindir@,$bindir,;t t
19574 s,@sbindir@,$sbindir,;t t
19575 s,@libexecdir@,$libexecdir,;t t
19576 s,@datadir@,$datadir,;t t
19577 s,@sysconfdir@,$sysconfdir,;t t
19578 s,@sharedstatedir@,$sharedstatedir,;t t
19579 s,@localstatedir@,$localstatedir,;t t
19580 s,@libdir@,$libdir,;t t
19581 s,@includedir@,$includedir,;t t
19582 s,@oldincludedir@,$oldincludedir,;t t
19583 s,@infodir@,$infodir,;t t
19584 s,@mandir@,$mandir,;t t
19585 s,@build_alias@,$build_alias,;t t
19586 s,@host_alias@,$host_alias,;t t
19587 s,@target_alias@,$target_alias,;t t
19588 s,@DEFS@,$DEFS,;t t
19589 s,@ECHO_C@,$ECHO_C,;t t
19590 s,@ECHO_N@,$ECHO_N,;t t
19591 s,@ECHO_T@,$ECHO_T,;t t
19592 s,@LIBS@,$LIBS,;t t
19593 s,@BUILD_DIR@,$BUILD_DIR,;t t
19594 s,@TRUEPRG@,$TRUEPRG,;t t
19595 s,@FALSEPRG@,$FALSEPRG,;t t
19596 s,@VERSION@,$VERSION,;t t
19597 s,@DATE@,$DATE,;t t
19598 s,@LSMDATE@,$LSMDATE,;t t
19599 s,@CC@,$CC,;t t
19600 s,@CFLAGS@,$CFLAGS,;t t
19601 s,@LDFLAGS@,$LDFLAGS,;t t
19602 s,@CPPFLAGS@,$CPPFLAGS,;t t
19603 s,@ac_ct_CC@,$ac_ct_CC,;t t
19604 s,@EXEEXT@,$EXEEXT,;t t
19605 s,@OBJEXT@,$OBJEXT,;t t
19606 s,@CXX@,$CXX,;t t
19607 s,@CXXFLAGS@,$CXXFLAGS,;t t
19608 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19609 s,@CPP@,$CPP,;t t
19610 s,@EGREP@,$EGREP,;t t
19611 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19612 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19613 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19614 s,@RANLIB@,$RANLIB,;t t
19615 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19616 s,@MV@,$MV,;t t
19617 s,@RM@,$RM,;t t
19618 s,@CP@,$CP,;t t
19619 s,@SED@,$SED,;t t
19620 s,@AWK@,$AWK,;t t
19621 s,@ECHO@,$ECHO,;t t
19622 s,@CMP@,$CMP,;t t
19623 s,@TBL@,$TBL,;t t
19624 s,@AR@,$AR,;t t
19625 s,@OPENSSL@,$OPENSSL,;t t
19626 s,@MTX@,$MTX,;t t
19627 s,@PKGCONFIG@,$PKGCONFIG,;t t
19628 s,@WXCONFIG@,$WXCONFIG,;t t
19629 s,@ARFLAGS@,$ARFLAGS,;t t
19630 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19631 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19632 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19633 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19634 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19635 s,@build@,$build,;t t
19636 s,@build_cpu@,$build_cpu,;t t
19637 s,@build_vendor@,$build_vendor,;t t
19638 s,@build_os@,$build_os,;t t
19639 s,@host@,$host,;t t
19640 s,@host_cpu@,$host_cpu,;t t
19641 s,@host_vendor@,$host_vendor,;t t
19642 s,@host_os@,$host_os,;t t
19643 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19644 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19645 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19646 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19647 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19648 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19649 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19650 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19651 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19652 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19653 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19654 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19655 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19656 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19657 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19658 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19659 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19660 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19661 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19662 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19663 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19664 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19665 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19666 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19667 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19668 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19669 s,@MSGFMT@,$MSGFMT,;t t
19670 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19671 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19672 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19673 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19674 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19675 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19676 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19677 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19678 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19679 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19680 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19681 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19682 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19683 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19684 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19685 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19686 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19687 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19688 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19689 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19690 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19691 s,@GNOME_DIR@,$GNOME_DIR,;t t
19692 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19693 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19694 s,@WX_DIR@,$WX_DIR,;t t
19695 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
19696 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
19697 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
19698 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19699 s,@STATIC_FD@,$STATIC_FD,;t t
19700 s,@STATIC_SD@,$STATIC_SD,;t t
19701 s,@STATIC_DIR@,$STATIC_DIR,;t t
19702 s,@STATIC_CONS@,$STATIC_CONS,;t t
19703 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19704 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19705 s,@ALL_DIRS@,$ALL_DIRS,;t t
19706 s,@CONS_INC@,$CONS_INC,;t t
19707 s,@CONS_OBJ@,$CONS_OBJ,;t t
19708 s,@CONS_SRC@,$CONS_SRC,;t t
19709 s,@CONS_LIBS@,$CONS_LIBS,;t t
19710 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19711 s,@READLINE_SRC@,$READLINE_SRC,;t t
19712 s,@working_dir@,$working_dir,;t t
19713 s,@scriptdir@,$scriptdir,;t t
19714 s,@dump_email@,$dump_email,;t t
19715 s,@job_email@,$job_email,;t t
19716 s,@smtp_host@,$smtp_host,;t t
19717 s,@piddir@,$piddir,;t t
19718 s,@subsysdir@,$subsysdir,;t t
19719 s,@baseport@,$baseport,;t t
19720 s,@dir_port@,$dir_port,;t t
19721 s,@fd_port@,$fd_port,;t t
19722 s,@sd_port@,$sd_port,;t t
19723 s,@dir_password@,$dir_password,;t t
19724 s,@fd_password@,$fd_password,;t t
19725 s,@sd_password@,$sd_password,;t t
19726 s,@mon_dir_password@,$mon_dir_password,;t t
19727 s,@mon_fd_password@,$mon_fd_password,;t t
19728 s,@mon_sd_password@,$mon_sd_password,;t t
19729 s,@dir_user@,$dir_user,;t t
19730 s,@dir_group@,$dir_group,;t t
19731 s,@sd_user@,$sd_user,;t t
19732 s,@sd_group@,$sd_group,;t t
19733 s,@fd_user@,$fd_user,;t t
19734 s,@fd_group@,$fd_group,;t t
19735 s,@SBINPERM@,$SBINPERM,;t t
19736 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19737 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19738 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19739 s,@cats@,$cats,;t t
19740 s,@DB_NAME@,$DB_NAME,;t t
19741 s,@GETCONF@,$GETCONF,;t t
19742 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19743 s,@X_CFLAGS@,$X_CFLAGS,;t t
19744 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19745 s,@X_LIBS@,$X_LIBS,;t t
19746 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19747 s,@LIBOBJS@,$LIBOBJS,;t t
19748 s,@ALLOCA@,$ALLOCA,;t t
19749 s,@FDLIBS@,$FDLIBS,;t t
19750 s,@DEBUG@,$DEBUG,;t t
19751 s,@DINCLUDE@,$DINCLUDE,;t t
19752 s,@DLIB@,$DLIB,;t t
19753 s,@DB_LIBS@,$DB_LIBS,;t t
19754 s,@WCFLAGS@,$WCFLAGS,;t t
19755 s,@WLDFLAGS@,$WLDFLAGS,;t t
19756 s,@OBJLIST@,$OBJLIST,;t t
19757 s,@hostname@,$hostname,;t t
19758 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19759 s,@PSCMD@,$PSCMD,;t t
19760 s,@WIN32@,$WIN32,;t t
19761 s,@MACOSX@,$MACOSX,;t t
19762 s,@DISTNAME@,$DISTNAME,;t t
19763 s,@DISTVER@,$DISTVER,;t t
19764 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19765 /@MCOMMON@/r $MCOMMON
19766 s,@MCOMMON@,,;t t
19767 CEOF
19768
19769 _ACEOF
19770
19771   cat >>$CONFIG_STATUS <<\_ACEOF
19772   # Split the substitutions into bite-sized pieces for seds with
19773   # small command number limits, like on Digital OSF/1 and HP-UX.
19774   ac_max_sed_lines=48
19775   ac_sed_frag=1 # Number of current file.
19776   ac_beg=1 # First line for current file.
19777   ac_end=$ac_max_sed_lines # Line after last line for current file.
19778   ac_more_lines=:
19779   ac_sed_cmds=
19780   while $ac_more_lines; do
19781     if test $ac_beg -gt 1; then
19782       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19783     else
19784       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19785     fi
19786     if test ! -s $tmp/subs.frag; then
19787       ac_more_lines=false
19788     else
19789       # The purpose of the label and of the branching condition is to
19790       # speed up the sed processing (if there are no `@' at all, there
19791       # is no need to browse any of the substitutions).
19792       # These are the two extra sed commands mentioned above.
19793       (echo ':t
19794   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19795       if test -z "$ac_sed_cmds"; then
19796         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19797       else
19798         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19799       fi
19800       ac_sed_frag=`expr $ac_sed_frag + 1`
19801       ac_beg=$ac_end
19802       ac_end=`expr $ac_end + $ac_max_sed_lines`
19803     fi
19804   done
19805   if test -z "$ac_sed_cmds"; then
19806     ac_sed_cmds=cat
19807   fi
19808 fi # test -n "$CONFIG_FILES"
19809
19810 _ACEOF
19811 cat >>$CONFIG_STATUS <<\_ACEOF
19812 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19813   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19814   case $ac_file in
19815   - | *:- | *:-:* ) # input from stdin
19816         cat >$tmp/stdin
19817         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19818         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19819   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19820         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19821   * )   ac_file_in=$ac_file.in ;;
19822   esac
19823
19824   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19825   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19827          X"$ac_file" : 'X\(//\)[^/]' \| \
19828          X"$ac_file" : 'X\(//\)$' \| \
19829          X"$ac_file" : 'X\(/\)' \| \
19830          .     : '\(.\)' 2>/dev/null ||
19831 echo X"$ac_file" |
19832     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19833           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19834           /^X\(\/\/\)$/{ s//\1/; q; }
19835           /^X\(\/\).*/{ s//\1/; q; }
19836           s/.*/./; q'`
19837   { if $as_mkdir_p; then
19838     mkdir -p "$ac_dir"
19839   else
19840     as_dir="$ac_dir"
19841     as_dirs=
19842     while test ! -d "$as_dir"; do
19843       as_dirs="$as_dir $as_dirs"
19844       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19845 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19846          X"$as_dir" : 'X\(//\)[^/]' \| \
19847          X"$as_dir" : 'X\(//\)$' \| \
19848          X"$as_dir" : 'X\(/\)' \| \
19849          .     : '\(.\)' 2>/dev/null ||
19850 echo X"$as_dir" |
19851     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19852           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19853           /^X\(\/\/\)$/{ s//\1/; q; }
19854           /^X\(\/\).*/{ s//\1/; q; }
19855           s/.*/./; q'`
19856     done
19857     test ! -n "$as_dirs" || mkdir $as_dirs
19858   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19859 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19860    { (exit 1); exit 1; }; }; }
19861
19862   ac_builddir=.
19863
19864 if test "$ac_dir" != .; then
19865   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19866   # A "../" for each directory in $ac_dir_suffix.
19867   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19868 else
19869   ac_dir_suffix= ac_top_builddir=
19870 fi
19871
19872 case $srcdir in
19873   .)  # No --srcdir option.  We are building in place.
19874     ac_srcdir=.
19875     if test -z "$ac_top_builddir"; then
19876        ac_top_srcdir=.
19877     else
19878        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19879     fi ;;
19880   [\\/]* | ?:[\\/]* )  # Absolute path.
19881     ac_srcdir=$srcdir$ac_dir_suffix;
19882     ac_top_srcdir=$srcdir ;;
19883   *) # Relative path.
19884     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19885     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19886 esac
19887 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19888 # absolute.
19889 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19890 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19891 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19892 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19893
19894
19895   case $INSTALL in
19896   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19897   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19898   esac
19899
19900   if test x"$ac_file" != x-; then
19901     { echo "$as_me:$LINENO: creating $ac_file" >&5
19902 echo "$as_me: creating $ac_file" >&6;}
19903     rm -f "$ac_file"
19904   fi
19905   # Let's still pretend it is `configure' which instantiates (i.e., don't
19906   # use $as_me), people would be surprised to read:
19907   #    /* config.h.  Generated by config.status.  */
19908   if test x"$ac_file" = x-; then
19909     configure_input=
19910   else
19911     configure_input="$ac_file.  "
19912   fi
19913   configure_input=$configure_input"Generated from `echo $ac_file_in |
19914                                      sed 's,.*/,,'` by configure."
19915
19916   # First look for the input files in the build tree, otherwise in the
19917   # src tree.
19918   ac_file_inputs=`IFS=:
19919     for f in $ac_file_in; do
19920       case $f in
19921       -) echo $tmp/stdin ;;
19922       [\\/$]*)
19923          # Absolute (can't be DOS-style, as IFS=:)
19924          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19925 echo "$as_me: error: cannot find input file: $f" >&2;}
19926    { (exit 1); exit 1; }; }
19927          echo $f;;
19928       *) # Relative
19929          if test -f "$f"; then
19930            # Build tree
19931            echo $f
19932          elif test -f "$srcdir/$f"; then
19933            # Source tree
19934            echo $srcdir/$f
19935          else
19936            # /dev/null tree
19937            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19938 echo "$as_me: error: cannot find input file: $f" >&2;}
19939    { (exit 1); exit 1; }; }
19940          fi;;
19941       esac
19942     done` || { (exit 1); exit 1; }
19943 _ACEOF
19944 cat >>$CONFIG_STATUS <<_ACEOF
19945   sed "$ac_vpsub
19946 $extrasub
19947 _ACEOF
19948 cat >>$CONFIG_STATUS <<\_ACEOF
19949 :t
19950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19951 s,@configure_input@,$configure_input,;t t
19952 s,@srcdir@,$ac_srcdir,;t t
19953 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19954 s,@top_srcdir@,$ac_top_srcdir,;t t
19955 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19956 s,@builddir@,$ac_builddir,;t t
19957 s,@abs_builddir@,$ac_abs_builddir,;t t
19958 s,@top_builddir@,$ac_top_builddir,;t t
19959 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19960 s,@INSTALL@,$ac_INSTALL,;t t
19961 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19962   rm -f $tmp/stdin
19963   if test x"$ac_file" != x-; then
19964     mv $tmp/out $ac_file
19965   else
19966     cat $tmp/out
19967     rm -f $tmp/out
19968   fi
19969
19970 done
19971 _ACEOF
19972 cat >>$CONFIG_STATUS <<\_ACEOF
19973
19974 #
19975 # CONFIG_HEADER section.
19976 #
19977
19978 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19979 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19980 #
19981 # ac_d sets the value in "#define NAME VALUE" lines.
19982 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
19983 ac_dB='[        ].*$,\1#\2'
19984 ac_dC=' '
19985 ac_dD=',;t'
19986 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19987 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
19988 ac_uB='$,\1#\2define\3'
19989 ac_uC=' '
19990 ac_uD=',;t'
19991
19992 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19993   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19994   case $ac_file in
19995   - | *:- | *:-:* ) # input from stdin
19996         cat >$tmp/stdin
19997         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19998         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19999   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20000         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20001   * )   ac_file_in=$ac_file.in ;;
20002   esac
20003
20004   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20005 echo "$as_me: creating $ac_file" >&6;}
20006
20007   # First look for the input files in the build tree, otherwise in the
20008   # src tree.
20009   ac_file_inputs=`IFS=:
20010     for f in $ac_file_in; do
20011       case $f in
20012       -) echo $tmp/stdin ;;
20013       [\\/$]*)
20014          # Absolute (can't be DOS-style, as IFS=:)
20015          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20016 echo "$as_me: error: cannot find input file: $f" >&2;}
20017    { (exit 1); exit 1; }; }
20018          echo $f;;
20019       *) # Relative
20020          if test -f "$f"; then
20021            # Build tree
20022            echo $f
20023          elif test -f "$srcdir/$f"; then
20024            # Source tree
20025            echo $srcdir/$f
20026          else
20027            # /dev/null tree
20028            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20029 echo "$as_me: error: cannot find input file: $f" >&2;}
20030    { (exit 1); exit 1; }; }
20031          fi;;
20032       esac
20033     done` || { (exit 1); exit 1; }
20034   # Remove the trailing spaces.
20035   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20036
20037 _ACEOF
20038
20039 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20040 # `conftest.undefs', that substitutes the proper values into
20041 # config.h.in to produce config.h.  The first handles `#define'
20042 # templates, and the second `#undef' templates.
20043 # And first: Protect against being on the right side of a sed subst in
20044 # config.status.  Protect against being in an unquoted here document
20045 # in config.status.
20046 rm -f conftest.defines conftest.undefs
20047 # Using a here document instead of a string reduces the quoting nightmare.
20048 # Putting comments in sed scripts is not portable.
20049 #
20050 # `end' is used to avoid that the second main sed command (meant for
20051 # 0-ary CPP macros) applies to n-ary macro definitions.
20052 # See the Autoconf documentation for `clear'.
20053 cat >confdef2sed.sed <<\_ACEOF
20054 s/[\\&,]/\\&/g
20055 s,[\\$`],\\&,g
20056 t clear
20057 : clear
20058 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20059 t end
20060 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20061 : end
20062 _ACEOF
20063 # If some macros were called several times there might be several times
20064 # the same #defines, which is useless.  Nevertheless, we may not want to
20065 # sort them, since we want the *last* AC-DEFINE to be honored.
20066 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20067 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20068 rm -f confdef2sed.sed
20069
20070 # This sed command replaces #undef with comments.  This is necessary, for
20071 # example, in the case of _POSIX_SOURCE, which is predefined and required
20072 # on some systems where configure will not decide to define it.
20073 cat >>conftest.undefs <<\_ACEOF
20074 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20075 _ACEOF
20076
20077 # Break up conftest.defines because some shells have a limit on the size
20078 # of here documents, and old seds have small limits too (100 cmds).
20079 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20080 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20081 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20082 echo '  :' >>$CONFIG_STATUS
20083 rm -f conftest.tail
20084 while grep . conftest.defines >/dev/null
20085 do
20086   # Write a limited-size here document to $tmp/defines.sed.
20087   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20088   # Speed up: don't consider the non `#define' lines.
20089   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20090   # Work around the forget-to-reset-the-flag bug.
20091   echo 't clr' >>$CONFIG_STATUS
20092   echo ': clr' >>$CONFIG_STATUS
20093   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20094   echo 'CEOF
20095   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20096   rm -f $tmp/in
20097   mv $tmp/out $tmp/in
20098 ' >>$CONFIG_STATUS
20099   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20100   rm -f conftest.defines
20101   mv conftest.tail conftest.defines
20102 done
20103 rm -f conftest.defines
20104 echo '  fi # grep' >>$CONFIG_STATUS
20105 echo >>$CONFIG_STATUS
20106
20107 # Break up conftest.undefs because some shells have a limit on the size
20108 # of here documents, and old seds have small limits too (100 cmds).
20109 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20110 rm -f conftest.tail
20111 while grep . conftest.undefs >/dev/null
20112 do
20113   # Write a limited-size here document to $tmp/undefs.sed.
20114   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20115   # Speed up: don't consider the non `#undef'
20116   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20117   # Work around the forget-to-reset-the-flag bug.
20118   echo 't clr' >>$CONFIG_STATUS
20119   echo ': clr' >>$CONFIG_STATUS
20120   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20121   echo 'CEOF
20122   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20123   rm -f $tmp/in
20124   mv $tmp/out $tmp/in
20125 ' >>$CONFIG_STATUS
20126   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20127   rm -f conftest.undefs
20128   mv conftest.tail conftest.undefs
20129 done
20130 rm -f conftest.undefs
20131
20132 cat >>$CONFIG_STATUS <<\_ACEOF
20133   # Let's still pretend it is `configure' which instantiates (i.e., don't
20134   # use $as_me), people would be surprised to read:
20135   #    /* config.h.  Generated by config.status.  */
20136   if test x"$ac_file" = x-; then
20137     echo "/* Generated by configure.  */" >$tmp/config.h
20138   else
20139     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20140   fi
20141   cat $tmp/in >>$tmp/config.h
20142   rm -f $tmp/in
20143   if test x"$ac_file" != x-; then
20144     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20145       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20146 echo "$as_me: $ac_file is unchanged" >&6;}
20147     else
20148       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20150          X"$ac_file" : 'X\(//\)[^/]' \| \
20151          X"$ac_file" : 'X\(//\)$' \| \
20152          X"$ac_file" : 'X\(/\)' \| \
20153          .     : '\(.\)' 2>/dev/null ||
20154 echo X"$ac_file" |
20155     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20156           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20157           /^X\(\/\/\)$/{ s//\1/; q; }
20158           /^X\(\/\).*/{ s//\1/; q; }
20159           s/.*/./; q'`
20160       { if $as_mkdir_p; then
20161     mkdir -p "$ac_dir"
20162   else
20163     as_dir="$ac_dir"
20164     as_dirs=
20165     while test ! -d "$as_dir"; do
20166       as_dirs="$as_dir $as_dirs"
20167       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20169          X"$as_dir" : 'X\(//\)[^/]' \| \
20170          X"$as_dir" : 'X\(//\)$' \| \
20171          X"$as_dir" : 'X\(/\)' \| \
20172          .     : '\(.\)' 2>/dev/null ||
20173 echo X"$as_dir" |
20174     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20175           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20176           /^X\(\/\/\)$/{ s//\1/; q; }
20177           /^X\(\/\).*/{ s//\1/; q; }
20178           s/.*/./; q'`
20179     done
20180     test ! -n "$as_dirs" || mkdir $as_dirs
20181   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20182 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20183    { (exit 1); exit 1; }; }; }
20184
20185       rm -f $ac_file
20186       mv $tmp/config.h $ac_file
20187     fi
20188   else
20189     cat $tmp/config.h
20190     rm -f $tmp/config.h
20191   fi
20192 done
20193 _ACEOF
20194 cat >>$CONFIG_STATUS <<\_ACEOF
20195
20196 #
20197 # CONFIG_COMMANDS section.
20198 #
20199 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20200   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20201   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20202   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20203 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20204          X"$ac_dest" : 'X\(//\)[^/]' \| \
20205          X"$ac_dest" : 'X\(//\)$' \| \
20206          X"$ac_dest" : 'X\(/\)' \| \
20207          .     : '\(.\)' 2>/dev/null ||
20208 echo X"$ac_dest" |
20209     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20210           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20211           /^X\(\/\/\)$/{ s//\1/; q; }
20212           /^X\(\/\).*/{ s//\1/; q; }
20213           s/.*/./; q'`
20214   ac_builddir=.
20215
20216 if test "$ac_dir" != .; then
20217   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20218   # A "../" for each directory in $ac_dir_suffix.
20219   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20220 else
20221   ac_dir_suffix= ac_top_builddir=
20222 fi
20223
20224 case $srcdir in
20225   .)  # No --srcdir option.  We are building in place.
20226     ac_srcdir=.
20227     if test -z "$ac_top_builddir"; then
20228        ac_top_srcdir=.
20229     else
20230        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20231     fi ;;
20232   [\\/]* | ?:[\\/]* )  # Absolute path.
20233     ac_srcdir=$srcdir$ac_dir_suffix;
20234     ac_top_srcdir=$srcdir ;;
20235   *) # Relative path.
20236     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20237     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20238 esac
20239 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20240 # absolute.
20241 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20242 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20243 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20244 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20245
20246
20247   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20248 echo "$as_me: executing $ac_dest commands" >&6;}
20249   case $ac_dest in
20250     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20251  ;;
20252   esac
20253 done
20254 _ACEOF
20255
20256 cat >>$CONFIG_STATUS <<\_ACEOF
20257
20258 { (exit 0); exit 0; }
20259 _ACEOF
20260 chmod +x $CONFIG_STATUS
20261 ac_clean_files=$ac_clean_files_save
20262
20263
20264 # configure is writing to config.log, and then calls config.status.
20265 # config.status does its own redirection, appending to config.log.
20266 # Unfortunately, on DOS this fails, as config.log is still kept open
20267 # by configure, so config.status won't be able to write to it; its
20268 # output is simply discarded.  So we exec the FD to /dev/null,
20269 # effectively closing config.log, so it can be properly (re)opened and
20270 # appended to by config.status.  When coming back to configure, we
20271 # need to make the FD available again.
20272 if test "$no_create" != yes; then
20273   ac_cs_success=:
20274   ac_config_status_args=
20275   test "$silent" = yes &&
20276     ac_config_status_args="$ac_config_status_args --quiet"
20277   exec 5>/dev/null
20278   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20279   exec 5>>config.log
20280   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20281   # would make configure fail if this is the last instruction.
20282   $ac_cs_success || { (exit 1); exit 1; }
20283 fi
20284
20285
20286 cd scripts
20287 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20288 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20289 cd ..
20290
20291 c=src/cats
20292
20293 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20294 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20295
20296 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20297 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20298
20299 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20300 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20301
20302 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20303 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20304
20305 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20306 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20307
20308 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20309 chmod 755 $c/sqlite
20310 chmod 755 $c/mysql
20311
20312 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20313    largefile_support="yes"
20314 fi
20315
20316 #
20317 # A whole lot of hand springs to get the compiler version.
20318 #  This is because gcc changed the output in version 3.0
20319 #
20320 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20321 if test "x${CCVERSION}" = "x" ; then
20322   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20323 fi
20324 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20325 if test x"${CXXVERSION}" = x ; then
20326   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20327 fi
20328
20329 if test "x${subsysdir}" = "x${sbindir}" ; then
20330    echo " "
20331    echo " "
20332    echo "You have set --sbindir and --with-subsys-dir"
20333    echo "  both equal to: ${subsysdir} "
20334    echo "  This is not permitted. Please reconfigure."
20335    echo " "
20336    echo "Aborting configuration ..."
20337    echo " "
20338    echo " "
20339    exit 1
20340 fi
20341
20342 if test "x${db_name}" = "xInternal" ; then
20343    echo " "
20344    echo " "
20345    echo "You have not specified either --enable-client-only or one of the"
20346    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20347    echo "  This is not permitted. Please reconfigure."
20348    echo " "
20349    echo "Aborting the configuration ..."
20350    echo " "
20351    echo " "
20352    exit 1
20353 fi
20354
20355 echo "
20356 Configuration on `date`:
20357
20358   Host:                       $host -- ${DISTNAME} ${DISTVER}
20359   Bacula version:             ${VERSION} (${DATE})
20360   Source code location:       ${srcdir}
20361   Install binaries:           ${sbindir}
20362   Install config files:       ${sysconfdir}
20363   Scripts directory:          ${scriptdir}
20364   Working directory:          ${working_dir}
20365   PID directory:              ${piddir}
20366   Subsys directory:           ${subsysdir}
20367   C Compiler:                 ${CC} ${CCVERSION}
20368   C++ Compiler:               ${CXX} ${CXXVERSION}
20369   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20370   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20371   Libraries:                  ${LIBS}
20372   Statically Linked Tools:    ${support_static_tools}
20373   Statically Linked FD:       ${support_static_fd}
20374   Statically Linked SD:       ${support_static_sd}
20375   Statically Linked DIR:      ${support_static_dir}
20376   Statically Linked CONS:     ${support_static_cons}
20377   Database type:              ${db_name}
20378   Database lib:               ${DB_LIBS}
20379
20380   Job Output Email:           ${job_email}
20381   Traceback Email:            ${dump_email}
20382   SMTP Host Address:          ${smtp_host}
20383
20384   Director Port:              ${dir_port}
20385   File daemon Port:           ${fd_port}
20386   Storage daemon Port:        ${sd_port}
20387
20388   Director User:              ${dir_user}
20389   Director Group:             ${dir_group}
20390   Storage Daemon User:        ${sd_user}
20391   Storage DaemonGroup:        ${sd_group}
20392   File Daemon User:           ${fd_user}
20393   File Daemon Group:          ${fd_group}
20394
20395   SQL binaries Directory      ${SQL_BINDIR}
20396
20397   Large file support:         $largefile_support
20398   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20399   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20400   TCP Wrappers support:       ${TCPW_MSG}
20401   ZLIB support:               ${have_zlib}
20402   enable-smartalloc:          ${support_smartalloc}
20403   enable-gnome:               ${support_gnome} ${gnome_version}
20404   enable-wx-console:          ${support_wx_console}
20405   enable-tray-monitor:        ${support_tray_monitor}
20406   client-only:                ${build_client_only}
20407   ACL support:                ${have_acl}
20408
20409   " > config.out
20410
20411 cat config.out
20412
20413 # old stuff
20414 # cweb support:               ${got_cweb} ${CWEB_SRC}
20415   # gmp support:                      ${got_gmp} ${GMP_SRC}