]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Remove FNMATCH test in configure.in and always use
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG CDRECORD PIDOF 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 PYTHON_LIBS PYTHON_INCDIR CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup 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
882   --with-python=DIR       Include Python support.  DIR is the Python base
883                           install directory, default is to search through
884                           a number of common places for the Python files.
885   --with-tcp-wrappers=DIR        enable tcpwrappers support
886   --with-working-dir=PATH        specify path of Bacula working directory
887   --with-scriptdir=PATH    specify path of Bacula scripts directory
888   --with-dump-email=EMAIL        dump email address
889   --with-job-email=EMAIL         job output email address
890   --with-smtp-host=HOST          SMTP mail host address
891   --with-pid-dir=PATH            specify location of Bacula pid files
892   --with-subsys-dir=PATH         specify location of Bacula subsys file
893   --with-baseport=PORT           specify base port address for daemons
894   --with-dir-password=PASSWORD   specify Director's password
895   --with-fd-password=PASSWORD    specify Client's password
896   --with-sd-password=PASSWORD    specify Storage daemon's password
897   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
898   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
899   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
900   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
901   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
902   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
903   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
904   --with-bimagemgr-dataowner=USER       specify bimagemgr data file owner
905   --with-bimagemgr-datagroup=USER       specify bimagemgr data file group
906   --with-dir-user=USER           specify user for Director daemon
907   --with-dir-group=GROUP                 specify group for Director daemon
908   --with-sd-user=USER            specify user for Storage daemon
909   --with-sd-group=GROUP          specify group for Storage daemon
910   --with-fd-user=USER            specify user for File daemon
911   --with-fd-group=GROUP          specify group for File daemon
912   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
913   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
914                           base install directory, defaults to /usr/local/pgsql
915
916   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
917                           install directory, default is to search through
918                           a number of common places for the MySQL files.
919
920   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
921                           install directory, default is to search through
922                           a number of common places for the MySQL files.
923
924   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
925                           install directory, default is to search through
926                           a number of common places for the SQLite files.
927   --with-x                use the X Window System
928
929 Some influential environment variables:
930   CC          C compiler command
931   CFLAGS      C compiler flags
932   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
933               nonstandard directory <lib dir>
934   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
935               headers in a nonstandard directory <include dir>
936   CXX         C++ compiler command
937   CXXFLAGS    C++ compiler flags
938   CPP         C preprocessor
939
940 Use these variables to override the choices made by `configure' or to help
941 it to find libraries and programs with nonstandard names/locations.
942
943 _ACEOF
944 fi
945
946 if test "$ac_init_help" = "recursive"; then
947   # If there are subdirs, report their specific --help.
948   ac_popdir=`pwd`
949   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
950     test -d $ac_dir || continue
951     ac_builddir=.
952
953 if test "$ac_dir" != .; then
954   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
955   # A "../" for each directory in $ac_dir_suffix.
956   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
957 else
958   ac_dir_suffix= ac_top_builddir=
959 fi
960
961 case $srcdir in
962   .)  # No --srcdir option.  We are building in place.
963     ac_srcdir=.
964     if test -z "$ac_top_builddir"; then
965        ac_top_srcdir=.
966     else
967        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
968     fi ;;
969   [\\/]* | ?:[\\/]* )  # Absolute path.
970     ac_srcdir=$srcdir$ac_dir_suffix;
971     ac_top_srcdir=$srcdir ;;
972   *) # Relative path.
973     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
974     ac_top_srcdir=$ac_top_builddir$srcdir ;;
975 esac
976 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
977 # absolute.
978 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
979 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
980 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
981 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
982
983     cd $ac_dir
984     # Check for guested configure; otherwise get Cygnus style configure.
985     if test -f $ac_srcdir/configure.gnu; then
986       echo
987       $SHELL $ac_srcdir/configure.gnu  --help=recursive
988     elif test -f $ac_srcdir/configure; then
989       echo
990       $SHELL $ac_srcdir/configure  --help=recursive
991     elif test -f $ac_srcdir/configure.ac ||
992            test -f $ac_srcdir/configure.in; then
993       echo
994       $ac_configure --help
995     else
996       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
997     fi
998     cd $ac_popdir
999   done
1000 fi
1001
1002 test -n "$ac_init_help" && exit 0
1003 if $ac_init_version; then
1004   cat <<\_ACEOF
1005
1006 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1007 Free Software Foundation, Inc.
1008 This configure script is free software; the Free Software Foundation
1009 gives unlimited permission to copy, distribute and modify it.
1010 _ACEOF
1011   exit 0
1012 fi
1013 exec 5>config.log
1014 cat >&5 <<_ACEOF
1015 This file contains any messages produced by compilers while
1016 running configure, to aid debugging if configure makes a mistake.
1017
1018 It was created by $as_me, which was
1019 generated by GNU Autoconf 2.57.  Invocation command line was
1020
1021   $ $0 $@
1022
1023 _ACEOF
1024 {
1025 cat <<_ASUNAME
1026 ## --------- ##
1027 ## Platform. ##
1028 ## --------- ##
1029
1030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1035
1036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1038
1039 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1040 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1043 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1044 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1045 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1046
1047 _ASUNAME
1048
1049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1050 for as_dir in $PATH
1051 do
1052   IFS=$as_save_IFS
1053   test -z "$as_dir" && as_dir=.
1054   echo "PATH: $as_dir"
1055 done
1056
1057 } >&5
1058
1059 cat >&5 <<_ACEOF
1060
1061
1062 ## ----------- ##
1063 ## Core tests. ##
1064 ## ----------- ##
1065
1066 _ACEOF
1067
1068
1069 # Keep a trace of the command line.
1070 # Strip out --no-create and --no-recursion so they do not pile up.
1071 # Strip out --silent because we don't want to record it for future runs.
1072 # Also quote any args containing shell meta-characters.
1073 # Make two passes to allow for proper duplicate-argument suppression.
1074 ac_configure_args=
1075 ac_configure_args0=
1076 ac_configure_args1=
1077 ac_sep=
1078 ac_must_keep_next=false
1079 for ac_pass in 1 2
1080 do
1081   for ac_arg
1082   do
1083     case $ac_arg in
1084     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086     | -silent | --silent | --silen | --sile | --sil)
1087       continue ;;
1088     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1090     esac
1091     case $ac_pass in
1092     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1093     2)
1094       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095       if test $ac_must_keep_next = true; then
1096         ac_must_keep_next=false # Got value, back to normal.
1097       else
1098         case $ac_arg in
1099           *=* | --config-cache | -C | -disable-* | --disable-* \
1100           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102           | -with-* | --with-* | -without-* | --without-* | --x)
1103             case "$ac_configure_args0 " in
1104               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1105             esac
1106             ;;
1107           -* ) ac_must_keep_next=true ;;
1108         esac
1109       fi
1110       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111       # Get rid of the leading space.
1112       ac_sep=" "
1113       ;;
1114     esac
1115   done
1116 done
1117 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1119
1120 # When interrupted or exit'd, cleanup temporary files, and complete
1121 # config.log.  We remove comments because anyway the quotes in there
1122 # would cause problems or look ugly.
1123 # WARNING: Be sure not to use single quotes in there, as some shells,
1124 # such as our DU 5.0 friend, will then `close' the trap.
1125 trap 'exit_status=$?
1126   # Save into config.log some information that might help in debugging.
1127   {
1128     echo
1129
1130     cat <<\_ASBOX
1131 ## ---------------- ##
1132 ## Cache variables. ##
1133 ## ---------------- ##
1134 _ASBOX
1135     echo
1136     # The following way of writing the cache mishandles newlines in values,
1137 {
1138   (set) 2>&1 |
1139     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1140     *ac_space=\ *)
1141       sed -n \
1142         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1144       ;;
1145     *)
1146       sed -n \
1147         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1148       ;;
1149     esac;
1150 }
1151     echo
1152
1153     cat <<\_ASBOX
1154 ## ----------------- ##
1155 ## Output variables. ##
1156 ## ----------------- ##
1157 _ASBOX
1158     echo
1159     for ac_var in $ac_subst_vars
1160     do
1161       eval ac_val=$`echo $ac_var`
1162       echo "$ac_var='"'"'$ac_val'"'"'"
1163     done | sort
1164     echo
1165
1166     if test -n "$ac_subst_files"; then
1167       cat <<\_ASBOX
1168 ## ------------- ##
1169 ## Output files. ##
1170 ## ------------- ##
1171 _ASBOX
1172       echo
1173       for ac_var in $ac_subst_files
1174       do
1175         eval ac_val=$`echo $ac_var`
1176         echo "$ac_var='"'"'$ac_val'"'"'"
1177       done | sort
1178       echo
1179     fi
1180
1181     if test -s confdefs.h; then
1182       cat <<\_ASBOX
1183 ## ----------- ##
1184 ## confdefs.h. ##
1185 ## ----------- ##
1186 _ASBOX
1187       echo
1188       sed "/^$/d" confdefs.h | sort
1189       echo
1190     fi
1191     test "$ac_signal" != 0 &&
1192       echo "$as_me: caught signal $ac_signal"
1193     echo "$as_me: exit $exit_status"
1194   } >&5
1195   rm -f core core.* *.core &&
1196   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1197     exit $exit_status
1198      ' 0
1199 for ac_signal in 1 2 13 15; do
1200   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1201 done
1202 ac_signal=0
1203
1204 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1205 rm -rf conftest* confdefs.h
1206 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1207 echo >confdefs.h
1208
1209 # Predefined preprocessor variables.
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_NAME "$PACKAGE_NAME"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_STRING "$PACKAGE_STRING"
1228 _ACEOF
1229
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1233 _ACEOF
1234
1235
1236 # Let the site file select an alternate cache file if it wants to.
1237 # Prefer explicitly selected file to automatically selected ones.
1238 if test -z "$CONFIG_SITE"; then
1239   if test "x$prefix" != xNONE; then
1240     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1241   else
1242     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1243   fi
1244 fi
1245 for ac_site_file in $CONFIG_SITE; do
1246   if test -r "$ac_site_file"; then
1247     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248 echo "$as_me: loading site script $ac_site_file" >&6;}
1249     sed 's/^/| /' "$ac_site_file" >&5
1250     . "$ac_site_file"
1251   fi
1252 done
1253
1254 if test -r "$cache_file"; then
1255   # Some versions of bash will fail to source /dev/null (special
1256   # files actually), so we avoid doing that.
1257   if test -f "$cache_file"; then
1258     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259 echo "$as_me: loading cache $cache_file" >&6;}
1260     case $cache_file in
1261       [\\/]* | ?:[\\/]* ) . $cache_file;;
1262       *)                      . ./$cache_file;;
1263     esac
1264   fi
1265 else
1266   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267 echo "$as_me: creating cache $cache_file" >&6;}
1268   >$cache_file
1269 fi
1270
1271 # Check that the precious variables saved in the cache have kept the same
1272 # value.
1273 ac_cache_corrupted=false
1274 for ac_var in `(set) 2>&1 |
1275                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277   eval ac_new_set=\$ac_env_${ac_var}_set
1278   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279   eval ac_new_val="\$ac_env_${ac_var}_value"
1280   case $ac_old_set,$ac_new_set in
1281     set,)
1282       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284       ac_cache_corrupted=: ;;
1285     ,set)
1286       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288       ac_cache_corrupted=: ;;
1289     ,);;
1290     *)
1291       if test "x$ac_old_val" != "x$ac_new_val"; then
1292         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1295 echo "$as_me:   former value:  $ac_old_val" >&2;}
1296         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1297 echo "$as_me:   current value: $ac_new_val" >&2;}
1298         ac_cache_corrupted=:
1299       fi;;
1300   esac
1301   # Pass precious variables to config.status.
1302   if test "$ac_new_set" = set; then
1303     case $ac_new_val in
1304     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306     *) ac_arg=$ac_var=$ac_new_val ;;
1307     esac
1308     case " $ac_configure_args " in
1309       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1310       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1311     esac
1312   fi
1313 done
1314 if $ac_cache_corrupted; then
1315   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319    { (exit 1); exit 1; }; }
1320 fi
1321
1322 ac_ext=c
1323 ac_cpp='$CPP $CPPFLAGS'
1324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346 BUILD_DIR=`pwd`
1347 cd ..
1348 TOP_DIR=`pwd`
1349 cd ${BUILD_DIR}
1350
1351 ac_aux_dir=
1352 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1353   if test -f $ac_dir/install-sh; then
1354     ac_aux_dir=$ac_dir
1355     ac_install_sh="$ac_aux_dir/install-sh -c"
1356     break
1357   elif test -f $ac_dir/install.sh; then
1358     ac_aux_dir=$ac_dir
1359     ac_install_sh="$ac_aux_dir/install.sh -c"
1360     break
1361   elif test -f $ac_dir/shtool; then
1362     ac_aux_dir=$ac_dir
1363     ac_install_sh="$ac_aux_dir/shtool install -c"
1364     break
1365   fi
1366 done
1367 if test -z "$ac_aux_dir"; then
1368   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1369 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1370    { (exit 1); exit 1; }; }
1371 fi
1372 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1373 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1374 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1375
1376           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1377
1378
1379
1380
1381
1382 for ac_prog in true
1383 do
1384   # Extract the first word of "$ac_prog", so it can be a program name with args.
1385 set dummy $ac_prog; ac_word=$2
1386 echo "$as_me:$LINENO: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1389   echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391   case $TRUEPRG in
1392   [\\/]* | ?:[\\/]*)
1393   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1394   ;;
1395   *)
1396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 for as_dir in $PATH
1398 do
1399   IFS=$as_save_IFS
1400   test -z "$as_dir" && as_dir=.
1401   for ac_exec_ext in '' $ac_executable_extensions; do
1402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1405     break 2
1406   fi
1407 done
1408 done
1409
1410   ;;
1411 esac
1412 fi
1413 TRUEPRG=$ac_cv_path_TRUEPRG
1414
1415 if test -n "$TRUEPRG"; then
1416   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1417 echo "${ECHO_T}$TRUEPRG" >&6
1418 else
1419   echo "$as_me:$LINENO: result: no" >&5
1420 echo "${ECHO_T}no" >&6
1421 fi
1422
1423   test -n "$TRUEPRG" && break
1424 done
1425 test -n "$TRUEPRG" || TRUEPRG=":"
1426
1427 for ac_prog in false
1428 do
1429   # Extract the first word of "$ac_prog", so it can be a program name with args.
1430 set dummy $ac_prog; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1434   echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436   case $FALSEPRG in
1437   [\\/]* | ?:[\\/]*)
1438   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1439   ;;
1440   *)
1441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 for as_dir in $PATH
1443 do
1444   IFS=$as_save_IFS
1445   test -z "$as_dir" && as_dir=.
1446   for ac_exec_ext in '' $ac_executable_extensions; do
1447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450     break 2
1451   fi
1452 done
1453 done
1454
1455   ;;
1456 esac
1457 fi
1458 FALSEPRG=$ac_cv_path_FALSEPRG
1459
1460 if test -n "$FALSEPRG"; then
1461   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1462 echo "${ECHO_T}$FALSEPRG" >&6
1463 else
1464   echo "$as_me:$LINENO: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1466 fi
1467
1468   test -n "$FALSEPRG" && break
1469 done
1470 test -n "$FALSEPRG" || FALSEPRG=":"
1471
1472
1473 #AC_CANONICAL_HOST
1474
1475 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1476 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1477 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1478 echo "configuring for bacula $VERSION ($DATE)"
1479
1480
1481
1482 ac_ext=c
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 if test -n "$ac_tool_prefix"; then
1488   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_CC+set}" = set; then
1493   echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495   if test -n "$CC"; then
1496   ac_cv_prog_CC="$CC" # Let the user override the test.
1497 else
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499 for as_dir in $PATH
1500 do
1501   IFS=$as_save_IFS
1502   test -z "$as_dir" && as_dir=.
1503   for ac_exec_ext in '' $ac_executable_extensions; do
1504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507     break 2
1508   fi
1509 done
1510 done
1511
1512 fi
1513 fi
1514 CC=$ac_cv_prog_CC
1515 if test -n "$CC"; then
1516   echo "$as_me:$LINENO: result: $CC" >&5
1517 echo "${ECHO_T}$CC" >&6
1518 else
1519   echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1521 fi
1522
1523 fi
1524 if test -z "$ac_cv_prog_CC"; then
1525   ac_ct_CC=$CC
1526   # Extract the first word of "gcc", so it can be a program name with args.
1527 set dummy gcc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1531   echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533   if test -n "$ac_ct_CC"; then
1534   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1535 else
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1538 do
1539   IFS=$as_save_IFS
1540   test -z "$as_dir" && as_dir=.
1541   for ac_exec_ext in '' $ac_executable_extensions; do
1542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543     ac_cv_prog_ac_ct_CC="gcc"
1544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545     break 2
1546   fi
1547 done
1548 done
1549
1550 fi
1551 fi
1552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1553 if test -n "$ac_ct_CC"; then
1554   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1555 echo "${ECHO_T}$ac_ct_CC" >&6
1556 else
1557   echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1559 fi
1560
1561   CC=$ac_ct_CC
1562 else
1563   CC="$ac_cv_prog_CC"
1564 fi
1565
1566 if test -z "$CC"; then
1567   if test -n "$ac_tool_prefix"; then
1568   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1569 set dummy ${ac_tool_prefix}cc; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_CC+set}" = set; then
1573   echo $ECHO_N "(cached) $ECHO_C" >&6
1574 else
1575   if test -n "$CC"; then
1576   ac_cv_prog_CC="$CC" # Let the user override the test.
1577 else
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 for as_dir in $PATH
1580 do
1581   IFS=$as_save_IFS
1582   test -z "$as_dir" && as_dir=.
1583   for ac_exec_ext in '' $ac_executable_extensions; do
1584   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585     ac_cv_prog_CC="${ac_tool_prefix}cc"
1586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587     break 2
1588   fi
1589 done
1590 done
1591
1592 fi
1593 fi
1594 CC=$ac_cv_prog_CC
1595 if test -n "$CC"; then
1596   echo "$as_me:$LINENO: result: $CC" >&5
1597 echo "${ECHO_T}$CC" >&6
1598 else
1599   echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1601 fi
1602
1603 fi
1604 if test -z "$ac_cv_prog_CC"; then
1605   ac_ct_CC=$CC
1606   # Extract the first word of "cc", so it can be a program name with args.
1607 set dummy cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1611   echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613   if test -n "$ac_ct_CC"; then
1614   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1615 else
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619   IFS=$as_save_IFS
1620   test -z "$as_dir" && as_dir=.
1621   for ac_exec_ext in '' $ac_executable_extensions; do
1622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623     ac_cv_prog_ac_ct_CC="cc"
1624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625     break 2
1626   fi
1627 done
1628 done
1629
1630 fi
1631 fi
1632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1633 if test -n "$ac_ct_CC"; then
1634   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1635 echo "${ECHO_T}$ac_ct_CC" >&6
1636 else
1637   echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1639 fi
1640
1641   CC=$ac_ct_CC
1642 else
1643   CC="$ac_cv_prog_CC"
1644 fi
1645
1646 fi
1647 if test -z "$CC"; then
1648   # Extract the first word of "cc", so it can be a program name with args.
1649 set dummy cc; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653   echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655   if test -n "$CC"; then
1656   ac_cv_prog_CC="$CC" # Let the user override the test.
1657 else
1658   ac_prog_rejected=no
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 for as_dir in $PATH
1661 do
1662   IFS=$as_save_IFS
1663   test -z "$as_dir" && as_dir=.
1664   for ac_exec_ext in '' $ac_executable_extensions; do
1665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1667        ac_prog_rejected=yes
1668        continue
1669      fi
1670     ac_cv_prog_CC="cc"
1671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672     break 2
1673   fi
1674 done
1675 done
1676
1677 if test $ac_prog_rejected = yes; then
1678   # We found a bogon in the path, so make sure we never use it.
1679   set dummy $ac_cv_prog_CC
1680   shift
1681   if test $# != 0; then
1682     # We chose a different compiler from the bogus one.
1683     # However, it has the same basename, so the bogon will be chosen
1684     # first if we set CC to just the basename; use the full file name.
1685     shift
1686     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1687   fi
1688 fi
1689 fi
1690 fi
1691 CC=$ac_cv_prog_CC
1692 if test -n "$CC"; then
1693   echo "$as_me:$LINENO: result: $CC" >&5
1694 echo "${ECHO_T}$CC" >&6
1695 else
1696   echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1698 fi
1699
1700 fi
1701 if test -z "$CC"; then
1702   if test -n "$ac_tool_prefix"; then
1703   for ac_prog in cl
1704   do
1705     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_CC+set}" = set; then
1710   echo $ECHO_N "(cached) $ECHO_C" >&6
1711 else
1712   if test -n "$CC"; then
1713   ac_cv_prog_CC="$CC" # Let the user override the test.
1714 else
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 for as_dir in $PATH
1717 do
1718   IFS=$as_save_IFS
1719   test -z "$as_dir" && as_dir=.
1720   for ac_exec_ext in '' $ac_executable_extensions; do
1721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724     break 2
1725   fi
1726 done
1727 done
1728
1729 fi
1730 fi
1731 CC=$ac_cv_prog_CC
1732 if test -n "$CC"; then
1733   echo "$as_me:$LINENO: result: $CC" >&5
1734 echo "${ECHO_T}$CC" >&6
1735 else
1736   echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1738 fi
1739
1740     test -n "$CC" && break
1741   done
1742 fi
1743 if test -z "$CC"; then
1744   ac_ct_CC=$CC
1745   for ac_prog in cl
1746 do
1747   # Extract the first word of "$ac_prog", so it can be a program name with args.
1748 set dummy $ac_prog; ac_word=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1752   echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754   if test -n "$ac_ct_CC"; then
1755   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1756 else
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1759 do
1760   IFS=$as_save_IFS
1761   test -z "$as_dir" && as_dir=.
1762   for ac_exec_ext in '' $ac_executable_extensions; do
1763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764     ac_cv_prog_ac_ct_CC="$ac_prog"
1765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766     break 2
1767   fi
1768 done
1769 done
1770
1771 fi
1772 fi
1773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1774 if test -n "$ac_ct_CC"; then
1775   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1776 echo "${ECHO_T}$ac_ct_CC" >&6
1777 else
1778   echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1780 fi
1781
1782   test -n "$ac_ct_CC" && break
1783 done
1784
1785   CC=$ac_ct_CC
1786 fi
1787
1788 fi
1789
1790
1791 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1792 See \`config.log' for more details." >&5
1793 echo "$as_me: error: no acceptable C compiler found in \$PATH
1794 See \`config.log' for more details." >&2;}
1795    { (exit 1); exit 1; }; }
1796
1797 # Provide some information about the compiler.
1798 echo "$as_me:$LINENO:" \
1799      "checking for C compiler version" >&5
1800 ac_compiler=`set X $ac_compile; echo $2`
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1802   (eval $ac_compiler --version </dev/null >&5) 2>&5
1803   ac_status=$?
1804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805   (exit $ac_status); }
1806 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1807   (eval $ac_compiler -v </dev/null >&5) 2>&5
1808   ac_status=$?
1809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810   (exit $ac_status); }
1811 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1812   (eval $ac_compiler -V </dev/null >&5) 2>&5
1813   ac_status=$?
1814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815   (exit $ac_status); }
1816
1817 cat >conftest.$ac_ext <<_ACEOF
1818 #line $LINENO "configure"
1819 /* confdefs.h.  */
1820 _ACEOF
1821 cat confdefs.h >>conftest.$ac_ext
1822 cat >>conftest.$ac_ext <<_ACEOF
1823 /* end confdefs.h.  */
1824
1825 int
1826 main ()
1827 {
1828
1829   ;
1830   return 0;
1831 }
1832 _ACEOF
1833 ac_clean_files_save=$ac_clean_files
1834 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1835 # Try to create an executable without -o first, disregard a.out.
1836 # It will help us diagnose broken compilers, and finding out an intuition
1837 # of exeext.
1838 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1839 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1840 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1841 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1842   (eval $ac_link_default) 2>&5
1843   ac_status=$?
1844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845   (exit $ac_status); }; then
1846   # Find the output, starting from the most likely.  This scheme is
1847 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1848 # resort.
1849
1850 # Be careful to initialize this variable, since it used to be cached.
1851 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1852 ac_cv_exeext=
1853 # b.out is created by i960 compilers.
1854 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1855 do
1856   test -f "$ac_file" || continue
1857   case $ac_file in
1858     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1859         ;;
1860     conftest.$ac_ext )
1861         # This is the source file.
1862         ;;
1863     [ab].out )
1864         # We found the default executable, but exeext='' is most
1865         # certainly right.
1866         break;;
1867     *.* )
1868         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1869         # FIXME: I believe we export ac_cv_exeext for Libtool,
1870         # but it would be cool to find out if it's true.  Does anybody
1871         # maintain Libtool? --akim.
1872         export ac_cv_exeext
1873         break;;
1874     * )
1875         break;;
1876   esac
1877 done
1878 else
1879   echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1881
1882 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1883 See \`config.log' for more details." >&5
1884 echo "$as_me: error: C compiler cannot create executables
1885 See \`config.log' for more details." >&2;}
1886    { (exit 77); exit 77; }; }
1887 fi
1888
1889 ac_exeext=$ac_cv_exeext
1890 echo "$as_me:$LINENO: result: $ac_file" >&5
1891 echo "${ECHO_T}$ac_file" >&6
1892
1893 # Check the compiler produces executables we can run.  If not, either
1894 # the compiler is broken, or we cross compile.
1895 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1896 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1897 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1898 # If not cross compiling, check that we can run a simple program.
1899 if test "$cross_compiling" != yes; then
1900   if { ac_try='./$ac_file'
1901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1902   (eval $ac_try) 2>&5
1903   ac_status=$?
1904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905   (exit $ac_status); }; }; then
1906     cross_compiling=no
1907   else
1908     if test "$cross_compiling" = maybe; then
1909         cross_compiling=yes
1910     else
1911         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1912 If you meant to cross compile, use \`--host'.
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: cannot run C compiled programs.
1915 If you meant to cross compile, use \`--host'.
1916 See \`config.log' for more details." >&2;}
1917    { (exit 1); exit 1; }; }
1918     fi
1919   fi
1920 fi
1921 echo "$as_me:$LINENO: result: yes" >&5
1922 echo "${ECHO_T}yes" >&6
1923
1924 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1925 ac_clean_files=$ac_clean_files_save
1926 # Check the compiler produces executables we can run.  If not, either
1927 # the compiler is broken, or we cross compile.
1928 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1929 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1930 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1931 echo "${ECHO_T}$cross_compiling" >&6
1932
1933 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1934 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1936   (eval $ac_link) 2>&5
1937   ac_status=$?
1938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939   (exit $ac_status); }; then
1940   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1941 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1942 # work properly (i.e., refer to `conftest.exe'), while it won't with
1943 # `rm'.
1944 for ac_file in conftest.exe conftest conftest.*; do
1945   test -f "$ac_file" || continue
1946   case $ac_file in
1947     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1948     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1949           export ac_cv_exeext
1950           break;;
1951     * ) break;;
1952   esac
1953 done
1954 else
1955   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1956 See \`config.log' for more details." >&5
1957 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1958 See \`config.log' for more details." >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962 rm -f conftest$ac_cv_exeext
1963 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1964 echo "${ECHO_T}$ac_cv_exeext" >&6
1965
1966 rm -f conftest.$ac_ext
1967 EXEEXT=$ac_cv_exeext
1968 ac_exeext=$EXEEXT
1969 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1970 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1971 if test "${ac_cv_objext+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   cat >conftest.$ac_ext <<_ACEOF
1975 #line $LINENO "configure"
1976 /* confdefs.h.  */
1977 _ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h.  */
1981
1982 int
1983 main ()
1984 {
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 rm -f conftest.o conftest.obj
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992   (eval $ac_compile) 2>&5
1993   ac_status=$?
1994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995   (exit $ac_status); }; then
1996   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1997   case $ac_file in
1998     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1999     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2000        break;;
2001   esac
2002 done
2003 else
2004   echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2006
2007 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2008 See \`config.log' for more details." >&5
2009 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2010 See \`config.log' for more details." >&2;}
2011    { (exit 1); exit 1; }; }
2012 fi
2013
2014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2015 fi
2016 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2017 echo "${ECHO_T}$ac_cv_objext" >&6
2018 OBJEXT=$ac_cv_objext
2019 ac_objext=$OBJEXT
2020 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2021 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2022 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2023   echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025   cat >conftest.$ac_ext <<_ACEOF
2026 #line $LINENO "configure"
2027 /* confdefs.h.  */
2028 _ACEOF
2029 cat confdefs.h >>conftest.$ac_ext
2030 cat >>conftest.$ac_ext <<_ACEOF
2031 /* end confdefs.h.  */
2032
2033 int
2034 main ()
2035 {
2036 #ifndef __GNUC__
2037        choke me
2038 #endif
2039
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046   (eval $ac_compile) 2>&5
2047   ac_status=$?
2048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049   (exit $ac_status); } &&
2050          { ac_try='test -s conftest.$ac_objext'
2051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052   (eval $ac_try) 2>&5
2053   ac_status=$?
2054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055   (exit $ac_status); }; }; then
2056   ac_compiler_gnu=yes
2057 else
2058   echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2060
2061 ac_compiler_gnu=no
2062 fi
2063 rm -f conftest.$ac_objext conftest.$ac_ext
2064 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2065
2066 fi
2067 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2068 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2069 GCC=`test $ac_compiler_gnu = yes && echo yes`
2070 ac_test_CFLAGS=${CFLAGS+set}
2071 ac_save_CFLAGS=$CFLAGS
2072 CFLAGS="-g"
2073 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2074 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_g+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   cat >conftest.$ac_ext <<_ACEOF
2079 #line $LINENO "configure"
2080 /* confdefs.h.  */
2081 _ACEOF
2082 cat confdefs.h >>conftest.$ac_ext
2083 cat >>conftest.$ac_ext <<_ACEOF
2084 /* end confdefs.h.  */
2085
2086 int
2087 main ()
2088 {
2089
2090   ;
2091   return 0;
2092 }
2093 _ACEOF
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096   (eval $ac_compile) 2>&5
2097   ac_status=$?
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); } &&
2100          { ac_try='test -s conftest.$ac_objext'
2101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102   (eval $ac_try) 2>&5
2103   ac_status=$?
2104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105   (exit $ac_status); }; }; then
2106   ac_cv_prog_cc_g=yes
2107 else
2108   echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2110
2111 ac_cv_prog_cc_g=no
2112 fi
2113 rm -f conftest.$ac_objext conftest.$ac_ext
2114 fi
2115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2116 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2117 if test "$ac_test_CFLAGS" = set; then
2118   CFLAGS=$ac_save_CFLAGS
2119 elif test $ac_cv_prog_cc_g = yes; then
2120   if test "$GCC" = yes; then
2121     CFLAGS="-g -O2"
2122   else
2123     CFLAGS="-g"
2124   fi
2125 else
2126   if test "$GCC" = yes; then
2127     CFLAGS="-O2"
2128   else
2129     CFLAGS=
2130   fi
2131 fi
2132 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2133 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   ac_cv_prog_cc_stdc=no
2138 ac_save_CC=$CC
2139 cat >conftest.$ac_ext <<_ACEOF
2140 #line $LINENO "configure"
2141 /* confdefs.h.  */
2142 _ACEOF
2143 cat confdefs.h >>conftest.$ac_ext
2144 cat >>conftest.$ac_ext <<_ACEOF
2145 /* end confdefs.h.  */
2146 #include <stdarg.h>
2147 #include <stdio.h>
2148 #include <sys/types.h>
2149 #include <sys/stat.h>
2150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2151 struct buf { int x; };
2152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2153 static char *e (p, i)
2154      char **p;
2155      int i;
2156 {
2157   return p[i];
2158 }
2159 static char *f (char * (*g) (char **, int), char **p, ...)
2160 {
2161   char *s;
2162   va_list v;
2163   va_start (v,p);
2164   s = g (p, va_arg (v,int));
2165   va_end (v);
2166   return s;
2167 }
2168 int test (int i, double x);
2169 struct s1 {int (*f) (int a);};
2170 struct s2 {int (*f) (double a);};
2171 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2172 int argc;
2173 char **argv;
2174 int
2175 main ()
2176 {
2177 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2178   ;
2179   return 0;
2180 }
2181 _ACEOF
2182 # Don't try gcc -ansi; that turns off useful extensions and
2183 # breaks some systems' header files.
2184 # AIX                   -qlanglvl=ansi
2185 # Ultrix and OSF/1      -std1
2186 # HP-UX 10.20 and later -Ae
2187 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2188 # SVR4                  -Xc -D__EXTENSIONS__
2189 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2190 do
2191   CC="$ac_save_CC $ac_arg"
2192   rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194   (eval $ac_compile) 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); } &&
2198          { ac_try='test -s conftest.$ac_objext'
2199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200   (eval $ac_try) 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }; }; then
2204   ac_cv_prog_cc_stdc=$ac_arg
2205 break
2206 else
2207   echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2209
2210 fi
2211 rm -f conftest.$ac_objext
2212 done
2213 rm -f conftest.$ac_ext conftest.$ac_objext
2214 CC=$ac_save_CC
2215
2216 fi
2217
2218 case "x$ac_cv_prog_cc_stdc" in
2219   x|xno)
2220     echo "$as_me:$LINENO: result: none needed" >&5
2221 echo "${ECHO_T}none needed" >&6 ;;
2222   *)
2223     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2224 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2225     CC="$CC $ac_cv_prog_cc_stdc" ;;
2226 esac
2227
2228 # Some people use a C++ compiler to compile C.  Since we use `exit',
2229 # in C++ we need to declare it.  In case someone uses the same compiler
2230 # for both compiling C and C++ we need to have the C++ compiler decide
2231 # the declaration of exit, since it's the most demanding environment.
2232 cat >conftest.$ac_ext <<_ACEOF
2233 #ifndef __cplusplus
2234   choke me
2235 #endif
2236 _ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239   (eval $ac_compile) 2>&5
2240   ac_status=$?
2241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242   (exit $ac_status); } &&
2243          { ac_try='test -s conftest.$ac_objext'
2244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245   (eval $ac_try) 2>&5
2246   ac_status=$?
2247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248   (exit $ac_status); }; }; then
2249   for ac_declaration in \
2250    ''\
2251    '#include <stdlib.h>' \
2252    'extern "C" void std::exit (int) throw (); using std::exit;' \
2253    'extern "C" void std::exit (int); using std::exit;' \
2254    'extern "C" void exit (int) throw ();' \
2255    'extern "C" void exit (int);' \
2256    'void exit (int);'
2257 do
2258   cat >conftest.$ac_ext <<_ACEOF
2259 #line $LINENO "configure"
2260 /* confdefs.h.  */
2261 _ACEOF
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h.  */
2265 #include <stdlib.h>
2266 $ac_declaration
2267 int
2268 main ()
2269 {
2270 exit (42);
2271   ;
2272   return 0;
2273 }
2274 _ACEOF
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277   (eval $ac_compile) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); } &&
2281          { ac_try='test -s conftest.$ac_objext'
2282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283   (eval $ac_try) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; }; then
2287   :
2288 else
2289   echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2291
2292 continue
2293 fi
2294 rm -f conftest.$ac_objext conftest.$ac_ext
2295   cat >conftest.$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2297 /* confdefs.h.  */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h.  */
2302 $ac_declaration
2303 int
2304 main ()
2305 {
2306 exit (42);
2307   ;
2308   return 0;
2309 }
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313   (eval $ac_compile) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); } &&
2317          { ac_try='test -s conftest.$ac_objext'
2318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319   (eval $ac_try) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; }; then
2323   break
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 fi
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2330 done
2331 rm -f conftest*
2332 if test -n "$ac_declaration"; then
2333   echo '#ifdef __cplusplus' >>confdefs.h
2334   echo $ac_declaration      >>confdefs.h
2335   echo '#endif'             >>confdefs.h
2336 fi
2337
2338 else
2339   echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2341
2342 fi
2343 rm -f conftest.$ac_objext conftest.$ac_ext
2344 ac_ext=c
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349
2350 ac_ext=cc
2351 ac_cpp='$CXXCPP $CPPFLAGS'
2352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2355 if test -n "$ac_tool_prefix"; then
2356   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2357   do
2358     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CXX+set}" = set; then
2363   echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365   if test -n "$CXX"; then
2366   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2367 else
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371   IFS=$as_save_IFS
2372   test -z "$as_dir" && as_dir=.
2373   for ac_exec_ext in '' $ac_executable_extensions; do
2374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377     break 2
2378   fi
2379 done
2380 done
2381
2382 fi
2383 fi
2384 CXX=$ac_cv_prog_CXX
2385 if test -n "$CXX"; then
2386   echo "$as_me:$LINENO: result: $CXX" >&5
2387 echo "${ECHO_T}$CXX" >&6
2388 else
2389   echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2391 fi
2392
2393     test -n "$CXX" && break
2394   done
2395 fi
2396 if test -z "$CXX"; then
2397   ac_ct_CXX=$CXX
2398   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2399 do
2400   # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy $ac_prog; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   if test -n "$ac_ct_CXX"; then
2408   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2409 else
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 for as_dir in $PATH
2412 do
2413   IFS=$as_save_IFS
2414   test -z "$as_dir" && as_dir=.
2415   for ac_exec_ext in '' $ac_executable_extensions; do
2416   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417     ac_cv_prog_ac_ct_CXX="$ac_prog"
2418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419     break 2
2420   fi
2421 done
2422 done
2423
2424 fi
2425 fi
2426 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2427 if test -n "$ac_ct_CXX"; then
2428   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2429 echo "${ECHO_T}$ac_ct_CXX" >&6
2430 else
2431   echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2433 fi
2434
2435   test -n "$ac_ct_CXX" && break
2436 done
2437 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2438
2439   CXX=$ac_ct_CXX
2440 fi
2441
2442
2443 # Provide some information about the compiler.
2444 echo "$as_me:$LINENO:" \
2445      "checking for C++ compiler version" >&5
2446 ac_compiler=`set X $ac_compile; echo $2`
2447 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2448   (eval $ac_compiler --version </dev/null >&5) 2>&5
2449   ac_status=$?
2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451   (exit $ac_status); }
2452 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2453   (eval $ac_compiler -v </dev/null >&5) 2>&5
2454   ac_status=$?
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); }
2457 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2458   (eval $ac_compiler -V </dev/null >&5) 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }
2462
2463 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2464 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2465 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2466   echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468   cat >conftest.$ac_ext <<_ACEOF
2469 #line $LINENO "configure"
2470 /* confdefs.h.  */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h.  */
2475
2476 int
2477 main ()
2478 {
2479 #ifndef __GNUC__
2480        choke me
2481 #endif
2482
2483   ;
2484   return 0;
2485 }
2486 _ACEOF
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489   (eval $ac_compile) 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); } &&
2493          { ac_try='test -s conftest.$ac_objext'
2494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495   (eval $ac_try) 2>&5
2496   ac_status=$?
2497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498   (exit $ac_status); }; }; then
2499   ac_compiler_gnu=yes
2500 else
2501   echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2503
2504 ac_compiler_gnu=no
2505 fi
2506 rm -f conftest.$ac_objext conftest.$ac_ext
2507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2508
2509 fi
2510 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2511 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2512 GXX=`test $ac_compiler_gnu = yes && echo yes`
2513 ac_test_CXXFLAGS=${CXXFLAGS+set}
2514 ac_save_CXXFLAGS=$CXXFLAGS
2515 CXXFLAGS="-g"
2516 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2517 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2518 if test "${ac_cv_prog_cxx_g+set}" = set; then
2519   echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521   cat >conftest.$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528
2529 int
2530 main ()
2531 {
2532
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539   (eval $ac_compile) 2>&5
2540   ac_status=$?
2541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542   (exit $ac_status); } &&
2543          { ac_try='test -s conftest.$ac_objext'
2544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545   (eval $ac_try) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; }; then
2549   ac_cv_prog_cxx_g=yes
2550 else
2551   echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553
2554 ac_cv_prog_cxx_g=no
2555 fi
2556 rm -f conftest.$ac_objext conftest.$ac_ext
2557 fi
2558 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2559 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2560 if test "$ac_test_CXXFLAGS" = set; then
2561   CXXFLAGS=$ac_save_CXXFLAGS
2562 elif test $ac_cv_prog_cxx_g = yes; then
2563   if test "$GXX" = yes; then
2564     CXXFLAGS="-g -O2"
2565   else
2566     CXXFLAGS="-g"
2567   fi
2568 else
2569   if test "$GXX" = yes; then
2570     CXXFLAGS="-O2"
2571   else
2572     CXXFLAGS=
2573   fi
2574 fi
2575 for ac_declaration in \
2576    ''\
2577    '#include <stdlib.h>' \
2578    'extern "C" void std::exit (int) throw (); using std::exit;' \
2579    'extern "C" void std::exit (int); using std::exit;' \
2580    'extern "C" void exit (int) throw ();' \
2581    'extern "C" void exit (int);' \
2582    'void exit (int);'
2583 do
2584   cat >conftest.$ac_ext <<_ACEOF
2585 #line $LINENO "configure"
2586 /* confdefs.h.  */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h.  */
2591 #include <stdlib.h>
2592 $ac_declaration
2593 int
2594 main ()
2595 {
2596 exit (42);
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603   (eval $ac_compile) 2>&5
2604   ac_status=$?
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -s conftest.$ac_objext'
2608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609   (eval $ac_try) 2>&5
2610   ac_status=$?
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); }; }; then
2613   :
2614 else
2615   echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2617
2618 continue
2619 fi
2620 rm -f conftest.$ac_objext conftest.$ac_ext
2621   cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2623 /* confdefs.h.  */
2624 _ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h.  */
2628 $ac_declaration
2629 int
2630 main ()
2631 {
2632 exit (42);
2633   ;
2634   return 0;
2635 }
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639   (eval $ac_compile) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); } &&
2643          { ac_try='test -s conftest.$ac_objext'
2644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645   (eval $ac_try) 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; }; then
2649   break
2650 else
2651   echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2653
2654 fi
2655 rm -f conftest.$ac_objext conftest.$ac_ext
2656 done
2657 rm -f conftest*
2658 if test -n "$ac_declaration"; then
2659   echo '#ifdef __cplusplus' >>confdefs.h
2660   echo $ac_declaration      >>confdefs.h
2661   echo '#endif'             >>confdefs.h
2662 fi
2663
2664 ac_ext=c
2665 ac_cpp='$CPP $CPPFLAGS'
2666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669
2670 if test "x$CC" != xcc; then
2671   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2672 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2673 else
2674   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2675 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2676 fi
2677 set dummy $CC; ac_cc=`echo $2 |
2678                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2679 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2680   echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682   cat >conftest.$ac_ext <<_ACEOF
2683 #line $LINENO "configure"
2684 /* confdefs.h.  */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h.  */
2689
2690 int
2691 main ()
2692 {
2693
2694   ;
2695   return 0;
2696 }
2697 _ACEOF
2698 # Make sure it works both with $CC and with simple cc.
2699 # We do the test twice because some compilers refuse to overwrite an
2700 # existing .o file with -o, though they will create one.
2701 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2702 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703   (eval $ac_try) 2>&5
2704   ac_status=$?
2705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706   (exit $ac_status); } &&
2707    test -f conftest.$ac_objext && { (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); };
2712 then
2713   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2714   if test "x$CC" != xcc; then
2715     # Test first that cc exists at all.
2716     if { ac_try='cc -c conftest.$ac_ext >&5'
2717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718   (eval $ac_try) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); }; }; then
2722       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2723       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); } &&
2728          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729   (eval $ac_try) 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); };
2733       then
2734         # cc works too.
2735         :
2736       else
2737         # cc exists but doesn't like -o.
2738         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2739       fi
2740     fi
2741   fi
2742 else
2743   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2744 fi
2745 rm -f conftest*
2746
2747 fi
2748 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2749   echo "$as_me:$LINENO: result: yes" >&5
2750 echo "${ECHO_T}yes" >&6
2751 else
2752   echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6
2754
2755 cat >>confdefs.h <<\_ACEOF
2756 #define NO_MINUS_C_MINUS_O 1
2757 _ACEOF
2758
2759 fi
2760
2761 ac_ext=c
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2767 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2768 # On Suns, sometimes $CPP names a directory.
2769 if test -n "$CPP" && test -d "$CPP"; then
2770   CPP=
2771 fi
2772 if test -z "$CPP"; then
2773   if test "${ac_cv_prog_CPP+set}" = set; then
2774   echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776       # Double quotes because CPP needs to be expanded
2777     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2778     do
2779       ac_preproc_ok=false
2780 for ac_c_preproc_warn_flag in '' yes
2781 do
2782   # Use a header file that comes with gcc, so configuring glibc
2783   # with a fresh cross-compiler works.
2784   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2785   # <limits.h> exists even on freestanding compilers.
2786   # On the NeXT, cc -E runs the code through the compiler's parser,
2787   # not just through cpp. "Syntax error" is here to catch this case.
2788   cat >conftest.$ac_ext <<_ACEOF
2789 #line $LINENO "configure"
2790 /* confdefs.h.  */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h.  */
2795 #ifdef __STDC__
2796 # include <limits.h>
2797 #else
2798 # include <assert.h>
2799 #endif
2800                      Syntax error
2801 _ACEOF
2802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2803   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2804   ac_status=$?
2805   grep -v '^ *+' conftest.er1 >conftest.err
2806   rm -f conftest.er1
2807   cat conftest.err >&5
2808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809   (exit $ac_status); } >/dev/null; then
2810   if test -s conftest.err; then
2811     ac_cpp_err=$ac_c_preproc_warn_flag
2812   else
2813     ac_cpp_err=
2814   fi
2815 else
2816   ac_cpp_err=yes
2817 fi
2818 if test -z "$ac_cpp_err"; then
2819   :
2820 else
2821   echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824   # Broken: fails on valid input.
2825 continue
2826 fi
2827 rm -f conftest.err conftest.$ac_ext
2828
2829   # OK, works on sane cases.  Now check whether non-existent headers
2830   # can be detected and how.
2831   cat >conftest.$ac_ext <<_ACEOF
2832 #line $LINENO "configure"
2833 /* confdefs.h.  */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h.  */
2838 #include <ac_nonexistent.h>
2839 _ACEOF
2840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2842   ac_status=$?
2843   grep -v '^ *+' conftest.er1 >conftest.err
2844   rm -f conftest.er1
2845   cat conftest.err >&5
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); } >/dev/null; then
2848   if test -s conftest.err; then
2849     ac_cpp_err=$ac_c_preproc_warn_flag
2850   else
2851     ac_cpp_err=
2852   fi
2853 else
2854   ac_cpp_err=yes
2855 fi
2856 if test -z "$ac_cpp_err"; then
2857   # Broken: success on invalid input.
2858 continue
2859 else
2860   echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863   # Passes both tests.
2864 ac_preproc_ok=:
2865 break
2866 fi
2867 rm -f conftest.err conftest.$ac_ext
2868
2869 done
2870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2871 rm -f conftest.err conftest.$ac_ext
2872 if $ac_preproc_ok; then
2873   break
2874 fi
2875
2876     done
2877     ac_cv_prog_CPP=$CPP
2878
2879 fi
2880   CPP=$ac_cv_prog_CPP
2881 else
2882   ac_cv_prog_CPP=$CPP
2883 fi
2884 echo "$as_me:$LINENO: result: $CPP" >&5
2885 echo "${ECHO_T}$CPP" >&6
2886 ac_preproc_ok=false
2887 for ac_c_preproc_warn_flag in '' yes
2888 do
2889   # Use a header file that comes with gcc, so configuring glibc
2890   # with a fresh cross-compiler works.
2891   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2892   # <limits.h> exists even on freestanding compilers.
2893   # On the NeXT, cc -E runs the code through the compiler's parser,
2894   # not just through cpp. "Syntax error" is here to catch this case.
2895   cat >conftest.$ac_ext <<_ACEOF
2896 #line $LINENO "configure"
2897 /* confdefs.h.  */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h.  */
2902 #ifdef __STDC__
2903 # include <limits.h>
2904 #else
2905 # include <assert.h>
2906 #endif
2907                      Syntax error
2908 _ACEOF
2909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2910   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2911   ac_status=$?
2912   grep -v '^ *+' conftest.er1 >conftest.err
2913   rm -f conftest.er1
2914   cat conftest.err >&5
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); } >/dev/null; then
2917   if test -s conftest.err; then
2918     ac_cpp_err=$ac_c_preproc_warn_flag
2919   else
2920     ac_cpp_err=
2921   fi
2922 else
2923   ac_cpp_err=yes
2924 fi
2925 if test -z "$ac_cpp_err"; then
2926   :
2927 else
2928   echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2930
2931   # Broken: fails on valid input.
2932 continue
2933 fi
2934 rm -f conftest.err conftest.$ac_ext
2935
2936   # OK, works on sane cases.  Now check whether non-existent headers
2937   # can be detected and how.
2938   cat >conftest.$ac_ext <<_ACEOF
2939 #line $LINENO "configure"
2940 /* confdefs.h.  */
2941 _ACEOF
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h.  */
2945 #include <ac_nonexistent.h>
2946 _ACEOF
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949   ac_status=$?
2950   grep -v '^ *+' conftest.er1 >conftest.err
2951   rm -f conftest.er1
2952   cat conftest.err >&5
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } >/dev/null; then
2955   if test -s conftest.err; then
2956     ac_cpp_err=$ac_c_preproc_warn_flag
2957   else
2958     ac_cpp_err=
2959   fi
2960 else
2961   ac_cpp_err=yes
2962 fi
2963 if test -z "$ac_cpp_err"; then
2964   # Broken: success on invalid input.
2965 continue
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970   # Passes both tests.
2971 ac_preproc_ok=:
2972 break
2973 fi
2974 rm -f conftest.err conftest.$ac_ext
2975
2976 done
2977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2978 rm -f conftest.err conftest.$ac_ext
2979 if $ac_preproc_ok; then
2980   :
2981 else
2982   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2983 See \`config.log' for more details." >&5
2984 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2985 See \`config.log' for more details." >&2;}
2986    { (exit 1); exit 1; }; }
2987 fi
2988
2989 ac_ext=c
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994
2995
2996 echo "$as_me:$LINENO: checking for egrep" >&5
2997 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2998 if test "${ac_cv_prog_egrep+set}" = set; then
2999   echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3002     then ac_cv_prog_egrep='grep -E'
3003     else ac_cv_prog_egrep='egrep'
3004     fi
3005 fi
3006 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3007 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3008  EGREP=$ac_cv_prog_egrep
3009
3010
3011 if test $ac_cv_c_compiler_gnu = yes; then
3012     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3013 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3014 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3015   echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017     ac_pattern="Autoconf.*'x'"
3018   cat >conftest.$ac_ext <<_ACEOF
3019 #line $LINENO "configure"
3020 /* confdefs.h.  */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h.  */
3025 #include <sgtty.h>
3026 Autoconf TIOCGETP
3027 _ACEOF
3028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3029   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3030   ac_cv_prog_gcc_traditional=yes
3031 else
3032   ac_cv_prog_gcc_traditional=no
3033 fi
3034 rm -f conftest*
3035
3036
3037   if test $ac_cv_prog_gcc_traditional = no; then
3038     cat >conftest.$ac_ext <<_ACEOF
3039 #line $LINENO "configure"
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3045 #include <termio.h>
3046 Autoconf TCGETA
3047 _ACEOF
3048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3049   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3050   ac_cv_prog_gcc_traditional=yes
3051 fi
3052 rm -f conftest*
3053
3054   fi
3055 fi
3056 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3057 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3058   if test $ac_cv_prog_gcc_traditional = yes; then
3059     CC="$CC -traditional"
3060   fi
3061 fi
3062
3063 if test "x$CC" = xgcc
3064 then
3065    cat >>confdefs.h <<\_ACEOF
3066 #define HAVE_GCC 1
3067 _ACEOF
3068
3069 fi
3070
3071 # Find a good install program.  We prefer a C program (faster),
3072 # so one script is as good as another.  But avoid the broken or
3073 # incompatible versions:
3074 # SysV /etc/install, /usr/sbin/install
3075 # SunOS /usr/etc/install
3076 # IRIX /sbin/install
3077 # AIX /bin/install
3078 # AmigaOS /C/install, which installs bootblocks on floppy discs
3079 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3080 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3081 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3082 # ./install, which can be erroneously created by make from ./install.sh.
3083 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3084 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3085 if test -z "$INSTALL"; then
3086 if test "${ac_cv_path_install+set}" = set; then
3087   echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092   IFS=$as_save_IFS
3093   test -z "$as_dir" && as_dir=.
3094   # Account for people who put trailing slashes in PATH elements.
3095 case $as_dir/ in
3096   ./ | .// | /cC/* | \
3097   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3098   /usr/ucb/* ) ;;
3099   *)
3100     # OSF1 and SCO ODT 3.0 have their own names for install.
3101     # Don't use installbsd from OSF since it installs stuff as root
3102     # by default.
3103     for ac_prog in ginstall scoinst install; do
3104       for ac_exec_ext in '' $ac_executable_extensions; do
3105         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3106           if test $ac_prog = install &&
3107             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3108             # AIX install.  It has an incompatible calling convention.
3109             :
3110           elif test $ac_prog = install &&
3111             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3112             # program-specific install script used by HP pwplus--don't use.
3113             :
3114           else
3115             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3116             break 3
3117           fi
3118         fi
3119       done
3120     done
3121     ;;
3122 esac
3123 done
3124
3125
3126 fi
3127   if test "${ac_cv_path_install+set}" = set; then
3128     INSTALL=$ac_cv_path_install
3129   else
3130     # As a last resort, use the slow shell script.  We don't cache a
3131     # path for INSTALL within a source directory, because that will
3132     # break other packages using the cache if that directory is
3133     # removed, or if the path is relative.
3134     INSTALL=$ac_install_sh
3135   fi
3136 fi
3137 echo "$as_me:$LINENO: result: $INSTALL" >&5
3138 echo "${ECHO_T}$INSTALL" >&6
3139
3140 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3141 # It thinks the first close brace ends the variable substitution.
3142 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3143
3144 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3145
3146 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3147
3148 if test -n "$ac_tool_prefix"; then
3149   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3151 echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153 if test "${ac_cv_prog_RANLIB+set}" = set; then
3154   echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156   if test -n "$RANLIB"; then
3157   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162   IFS=$as_save_IFS
3163   test -z "$as_dir" && as_dir=.
3164   for ac_exec_ext in '' $ac_executable_extensions; do
3165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168     break 2
3169   fi
3170 done
3171 done
3172
3173 fi
3174 fi
3175 RANLIB=$ac_cv_prog_RANLIB
3176 if test -n "$RANLIB"; then
3177   echo "$as_me:$LINENO: result: $RANLIB" >&5
3178 echo "${ECHO_T}$RANLIB" >&6
3179 else
3180   echo "$as_me:$LINENO: result: no" >&5
3181 echo "${ECHO_T}no" >&6
3182 fi
3183
3184 fi
3185 if test -z "$ac_cv_prog_RANLIB"; then
3186   ac_ct_RANLIB=$RANLIB
3187   # Extract the first word of "ranlib", so it can be a program name with args.
3188 set dummy ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3192   echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194   if test -n "$ac_ct_RANLIB"; then
3195   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200   IFS=$as_save_IFS
3201   test -z "$as_dir" && as_dir=.
3202   for ac_exec_ext in '' $ac_executable_extensions; do
3203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204     ac_cv_prog_ac_ct_RANLIB="ranlib"
3205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206     break 2
3207   fi
3208 done
3209 done
3210
3211   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3212 fi
3213 fi
3214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3215 if test -n "$ac_ct_RANLIB"; then
3216   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3217 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3218 else
3219   echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3221 fi
3222
3223   RANLIB=$ac_ct_RANLIB
3224 else
3225   RANLIB="$ac_cv_prog_RANLIB"
3226 fi
3227
3228 # Extract the first word of "mv", so it can be a program name with args.
3229 set dummy mv; ac_word=$2
3230 echo "$as_me:$LINENO: checking for $ac_word" >&5
3231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232 if test "${ac_cv_path_MV+set}" = set; then
3233   echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235   case $MV in
3236   [\\/]* | ?:[\\/]*)
3237   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3238   ;;
3239   *)
3240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243   IFS=$as_save_IFS
3244   test -z "$as_dir" && as_dir=.
3245   for ac_exec_ext in '' $ac_executable_extensions; do
3246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3249     break 2
3250   fi
3251 done
3252 done
3253
3254   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3255   ;;
3256 esac
3257 fi
3258 MV=$ac_cv_path_MV
3259
3260 if test -n "$MV"; then
3261   echo "$as_me:$LINENO: result: $MV" >&5
3262 echo "${ECHO_T}$MV" >&6
3263 else
3264   echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3266 fi
3267
3268 # Extract the first word of "rm", so it can be a program name with args.
3269 set dummy rm; ac_word=$2
3270 echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272 if test "${ac_cv_path_RM+set}" = set; then
3273   echo $ECHO_N "(cached) $ECHO_C" >&6
3274 else
3275   case $RM in
3276   [\\/]* | ?:[\\/]*)
3277   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3278   ;;
3279   *)
3280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283   IFS=$as_save_IFS
3284   test -z "$as_dir" && as_dir=.
3285   for ac_exec_ext in '' $ac_executable_extensions; do
3286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289     break 2
3290   fi
3291 done
3292 done
3293
3294   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3295   ;;
3296 esac
3297 fi
3298 RM=$ac_cv_path_RM
3299
3300 if test -n "$RM"; then
3301   echo "$as_me:$LINENO: result: $RM" >&5
3302 echo "${ECHO_T}$RM" >&6
3303 else
3304   echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3306 fi
3307
3308 # Extract the first word of "cp", so it can be a program name with args.
3309 set dummy cp; ac_word=$2
3310 echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312 if test "${ac_cv_path_CP+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315   case $CP in
3316   [\\/]* | ?:[\\/]*)
3317   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3318   ;;
3319   *)
3320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323   IFS=$as_save_IFS
3324   test -z "$as_dir" && as_dir=.
3325   for ac_exec_ext in '' $ac_executable_extensions; do
3326   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3329     break 2
3330   fi
3331 done
3332 done
3333
3334   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3335   ;;
3336 esac
3337 fi
3338 CP=$ac_cv_path_CP
3339
3340 if test -n "$CP"; then
3341   echo "$as_me:$LINENO: result: $CP" >&5
3342 echo "${ECHO_T}$CP" >&6
3343 else
3344   echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3346 fi
3347
3348 # Extract the first word of "sed", so it can be a program name with args.
3349 set dummy sed; ac_word=$2
3350 echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_path_SED+set}" = set; then
3353   echo $ECHO_N "(cached) $ECHO_C" >&6
3354 else
3355   case $SED in
3356   [\\/]* | ?:[\\/]*)
3357   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3358   ;;
3359   *)
3360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363   IFS=$as_save_IFS
3364   test -z "$as_dir" && as_dir=.
3365   for ac_exec_ext in '' $ac_executable_extensions; do
3366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369     break 2
3370   fi
3371 done
3372 done
3373
3374   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3375   ;;
3376 esac
3377 fi
3378 SED=$ac_cv_path_SED
3379
3380 if test -n "$SED"; then
3381   echo "$as_me:$LINENO: result: $SED" >&5
3382 echo "${ECHO_T}$SED" >&6
3383 else
3384   echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3386 fi
3387
3388 # Extract the first word of "awk", so it can be a program name with args.
3389 set dummy awk; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_path_AWK+set}" = set; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395   case $AWK in
3396   [\\/]* | ?:[\\/]*)
3397   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3398   ;;
3399   *)
3400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403   IFS=$as_save_IFS
3404   test -z "$as_dir" && as_dir=.
3405   for ac_exec_ext in '' $ac_executable_extensions; do
3406   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409     break 2
3410   fi
3411 done
3412 done
3413
3414   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3415   ;;
3416 esac
3417 fi
3418 AWK=$ac_cv_path_AWK
3419
3420 if test -n "$AWK"; then
3421   echo "$as_me:$LINENO: result: $AWK" >&5
3422 echo "${ECHO_T}$AWK" >&6
3423 else
3424   echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3426 fi
3427
3428 # Extract the first word of "echo", so it can be a program name with args.
3429 set dummy echo; ac_word=$2
3430 echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3432 if test "${ac_cv_path_ECHO+set}" = set; then
3433   echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435   case $ECHO in
3436   [\\/]* | ?:[\\/]*)
3437   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3438   ;;
3439   *)
3440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443   IFS=$as_save_IFS
3444   test -z "$as_dir" && as_dir=.
3445   for ac_exec_ext in '' $ac_executable_extensions; do
3446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449     break 2
3450   fi
3451 done
3452 done
3453
3454   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3455   ;;
3456 esac
3457 fi
3458 ECHO=$ac_cv_path_ECHO
3459
3460 if test -n "$ECHO"; then
3461   echo "$as_me:$LINENO: result: $ECHO" >&5
3462 echo "${ECHO_T}$ECHO" >&6
3463 else
3464   echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3466 fi
3467
3468 # Extract the first word of "cmp", so it can be a program name with args.
3469 set dummy cmp; ac_word=$2
3470 echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472 if test "${ac_cv_path_CMP+set}" = set; then
3473   echo $ECHO_N "(cached) $ECHO_C" >&6
3474 else
3475   case $CMP in
3476   [\\/]* | ?:[\\/]*)
3477   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3478   ;;
3479   *)
3480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485   for ac_exec_ext in '' $ac_executable_extensions; do
3486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3489     break 2
3490   fi
3491 done
3492 done
3493
3494   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3495   ;;
3496 esac
3497 fi
3498 CMP=$ac_cv_path_CMP
3499
3500 if test -n "$CMP"; then
3501   echo "$as_me:$LINENO: result: $CMP" >&5
3502 echo "${ECHO_T}$CMP" >&6
3503 else
3504   echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3506 fi
3507
3508 # Extract the first word of "tbl", so it can be a program name with args.
3509 set dummy tbl; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_path_TBL+set}" = set; then
3513   echo $ECHO_N "(cached) $ECHO_C" >&6
3514 else
3515   case $TBL in
3516   [\\/]* | ?:[\\/]*)
3517   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3518   ;;
3519   *)
3520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3522 do
3523   IFS=$as_save_IFS
3524   test -z "$as_dir" && as_dir=.
3525   for ac_exec_ext in '' $ac_executable_extensions; do
3526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529     break 2
3530   fi
3531 done
3532 done
3533
3534   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3535   ;;
3536 esac
3537 fi
3538 TBL=$ac_cv_path_TBL
3539
3540 if test -n "$TBL"; then
3541   echo "$as_me:$LINENO: result: $TBL" >&5
3542 echo "${ECHO_T}$TBL" >&6
3543 else
3544   echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3546 fi
3547
3548 # Extract the first word of "ar", so it can be a program name with args.
3549 set dummy ar; ac_word=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_path_AR+set}" = set; then
3553   echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555   case $AR in
3556   [\\/]* | ?:[\\/]*)
3557   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3558   ;;
3559   *)
3560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563   IFS=$as_save_IFS
3564   test -z "$as_dir" && as_dir=.
3565   for ac_exec_ext in '' $ac_executable_extensions; do
3566   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569     break 2
3570   fi
3571 done
3572 done
3573
3574   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3575   ;;
3576 esac
3577 fi
3578 AR=$ac_cv_path_AR
3579
3580 if test -n "$AR"; then
3581   echo "$as_me:$LINENO: result: $AR" >&5
3582 echo "${ECHO_T}$AR" >&6
3583 else
3584   echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3586 fi
3587
3588 # Extract the first word of "openssl", so it can be a program name with args.
3589 set dummy openssl; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_path_OPENSSL+set}" = set; then
3593   echo $ECHO_N "(cached) $ECHO_C" >&6
3594 else
3595   case $OPENSSL in
3596   [\\/]* | ?:[\\/]*)
3597   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3598   ;;
3599   *)
3600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 for as_dir in $PATH
3602 do
3603   IFS=$as_save_IFS
3604   test -z "$as_dir" && as_dir=.
3605   for ac_exec_ext in '' $ac_executable_extensions; do
3606   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3609     break 2
3610   fi
3611 done
3612 done
3613
3614   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3615   ;;
3616 esac
3617 fi
3618 OPENSSL=$ac_cv_path_OPENSSL
3619
3620 if test -n "$OPENSSL"; then
3621   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3622 echo "${ECHO_T}$OPENSSL" >&6
3623 else
3624   echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6
3626 fi
3627
3628 # Extract the first word of "mtx", so it can be a program name with args.
3629 set dummy mtx; ac_word=$2
3630 echo "$as_me:$LINENO: checking for $ac_word" >&5
3631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3632 if test "${ac_cv_path_MTX+set}" = set; then
3633   echo $ECHO_N "(cached) $ECHO_C" >&6
3634 else
3635   case $MTX in
3636   [\\/]* | ?:[\\/]*)
3637   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3638   ;;
3639   *)
3640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3642 do
3643   IFS=$as_save_IFS
3644   test -z "$as_dir" && as_dir=.
3645   for ac_exec_ext in '' $ac_executable_extensions; do
3646   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3649     break 2
3650   fi
3651 done
3652 done
3653
3654   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3655   ;;
3656 esac
3657 fi
3658 MTX=$ac_cv_path_MTX
3659
3660 if test -n "$MTX"; then
3661   echo "$as_me:$LINENO: result: $MTX" >&5
3662 echo "${ECHO_T}$MTX" >&6
3663 else
3664   echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3666 fi
3667
3668 # Extract the first word of "pkg-config", so it can be a program name with args.
3669 set dummy pkg-config; ac_word=$2
3670 echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3672 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3673   echo $ECHO_N "(cached) $ECHO_C" >&6
3674 else
3675   case $PKGCONFIG in
3676   [\\/]* | ?:[\\/]*)
3677   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3678   ;;
3679   *)
3680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685   for ac_exec_ext in '' $ac_executable_extensions; do
3686   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3689     break 2
3690   fi
3691 done
3692 done
3693
3694   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3695   ;;
3696 esac
3697 fi
3698 PKGCONFIG=$ac_cv_path_PKGCONFIG
3699
3700 if test -n "$PKGCONFIG"; then
3701   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3702 echo "${ECHO_T}$PKGCONFIG" >&6
3703 else
3704   echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6
3706 fi
3707
3708 # Extract the first word of "wx-config", so it can be a program name with args.
3709 set dummy wx-config; ac_word=$2
3710 echo "$as_me:$LINENO: checking for $ac_word" >&5
3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3713   echo $ECHO_N "(cached) $ECHO_C" >&6
3714 else
3715   case $WXCONFIG in
3716   [\\/]* | ?:[\\/]*)
3717   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3718   ;;
3719   *)
3720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 for as_dir in $PATH
3722 do
3723   IFS=$as_save_IFS
3724   test -z "$as_dir" && as_dir=.
3725   for ac_exec_ext in '' $ac_executable_extensions; do
3726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3729     break 2
3730   fi
3731 done
3732 done
3733
3734   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3735   ;;
3736 esac
3737 fi
3738 WXCONFIG=$ac_cv_path_WXCONFIG
3739
3740 if test -n "$WXCONFIG"; then
3741   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3742 echo "${ECHO_T}$WXCONFIG" >&6
3743 else
3744   echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3746 fi
3747
3748 # Extract the first word of "cdrecord", so it can be a program name with args.
3749 set dummy cdrecord; ac_word=$2
3750 echo "$as_me:$LINENO: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752 if test "${ac_cv_path_CDRECORD+set}" = set; then
3753   echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755   case $CDRECORD in
3756   [\\/]* | ?:[\\/]*)
3757   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3758   ;;
3759   *)
3760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763   IFS=$as_save_IFS
3764   test -z "$as_dir" && as_dir=.
3765   for ac_exec_ext in '' $ac_executable_extensions; do
3766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3769     break 2
3770   fi
3771 done
3772 done
3773
3774   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
3775   ;;
3776 esac
3777 fi
3778 CDRECORD=$ac_cv_path_CDRECORD
3779
3780 if test -n "$CDRECORD"; then
3781   echo "$as_me:$LINENO: result: $CDRECORD" >&5
3782 echo "${ECHO_T}$CDRECORD" >&6
3783 else
3784   echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3786 fi
3787
3788 # Extract the first word of "pidof", so it can be a program name with args.
3789 set dummy pidof; ac_word=$2
3790 echo "$as_me:$LINENO: checking for $ac_word" >&5
3791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3792 if test "${ac_cv_path_PIDOF+set}" = set; then
3793   echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795   case $PIDOF in
3796   [\\/]* | ?:[\\/]*)
3797   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
3798   ;;
3799   *)
3800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3802 do
3803   IFS=$as_save_IFS
3804   test -z "$as_dir" && as_dir=.
3805   for ac_exec_ext in '' $ac_executable_extensions; do
3806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
3808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3809     break 2
3810   fi
3811 done
3812 done
3813
3814   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
3815   ;;
3816 esac
3817 fi
3818 PIDOF=$ac_cv_path_PIDOF
3819
3820 if test -n "$PIDOF"; then
3821   echo "$as_me:$LINENO: result: $PIDOF" >&5
3822 echo "${ECHO_T}$PIDOF" >&6
3823 else
3824   echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6
3826 fi
3827
3828
3829 test -n "$ARFLAG" || ARFLAGS="cr"
3830
3831
3832 MAKE_SHELL=/bin/sh
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842 # Make sure we can run config.sub.
3843 $ac_config_sub sun4 >/dev/null 2>&1 ||
3844   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3845 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3846    { (exit 1); exit 1; }; }
3847
3848 echo "$as_me:$LINENO: checking build system type" >&5
3849 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3850 if test "${ac_cv_build+set}" = set; then
3851   echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853   ac_cv_build_alias=$build_alias
3854 test -z "$ac_cv_build_alias" &&
3855   ac_cv_build_alias=`$ac_config_guess`
3856 test -z "$ac_cv_build_alias" &&
3857   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3858 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3859    { (exit 1); exit 1; }; }
3860 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3861   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3862 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3863    { (exit 1); exit 1; }; }
3864
3865 fi
3866 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3867 echo "${ECHO_T}$ac_cv_build" >&6
3868 build=$ac_cv_build
3869 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3870 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3871 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3872
3873
3874
3875 echo "$as_me:$LINENO: checking host system type" >&5
3876 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3877 if test "${ac_cv_host+set}" = set; then
3878   echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880   ac_cv_host_alias=$host_alias
3881 test -z "$ac_cv_host_alias" &&
3882   ac_cv_host_alias=$ac_cv_build_alias
3883 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3884   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3885 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3886    { (exit 1); exit 1; }; }
3887
3888 fi
3889 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3890 echo "${ECHO_T}$ac_cv_host" >&6
3891 host=$ac_cv_host
3892 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3893 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3894 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3895
3896
3897 case $host_os in
3898   *cygwin* ) CYGWIN=yes;;
3899          * ) CYGWIN=no;;
3900 esac
3901
3902 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3903 then
3904
3905
3906 if $TRUEPRG; then
3907   HAVE_SUN_OS_TRUE=
3908   HAVE_SUN_OS_FALSE='#'
3909 else
3910   HAVE_SUN_OS_TRUE='#'
3911   HAVE_SUN_OS_FALSE=
3912 fi
3913         cat >>confdefs.h <<\_ACEOF
3914 #define HAVE_SUN_OS 1
3915 _ACEOF
3916
3917 else
3918
3919
3920 if $FALSEPRG; then
3921   HAVE_SUN_OS_TRUE=
3922   HAVE_SUN_OS_FALSE='#'
3923 else
3924   HAVE_SUN_OS_TRUE='#'
3925   HAVE_SUN_OS_FALSE=
3926 fi
3927 fi
3928
3929 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3930 then
3931
3932
3933 if $TRUEPRG; then
3934   HAVE_OSF1_OS_TRUE=
3935   HAVE_OSF1_OS_FALSE='#'
3936 else
3937   HAVE_OSF1_OS_TRUE='#'
3938   HAVE_OSF1_OS_FALSE=
3939 fi
3940         cat >>confdefs.h <<\_ACEOF
3941 #define HAVE_OSF1_OS 1
3942 _ACEOF
3943
3944 else
3945
3946
3947 if $FALSEPRG; then
3948   HAVE_OSF1_OS_TRUE=
3949   HAVE_OSF1_OS_FALSE='#'
3950 else
3951   HAVE_OSF1_OS_TRUE='#'
3952   HAVE_OSF1_OS_FALSE=
3953 fi
3954 fi
3955
3956 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3957 then
3958
3959
3960 if $TRUEPRG; then
3961   HAVE_AIX_OS_TRUE=
3962   HAVE_AIX_OS_FALSE='#'
3963 else
3964   HAVE_AIX_OS_TRUE='#'
3965   HAVE_AIX_OS_FALSE=
3966 fi
3967         cat >>confdefs.h <<\_ACEOF
3968 #define HAVE_AIX_OS 1
3969 _ACEOF
3970
3971 else
3972
3973
3974 if $FALSEPRG; then
3975   HAVE_AIX_OS_TRUE=
3976   HAVE_AIX_OS_FALSE='#'
3977 else
3978   HAVE_AIX_OS_TRUE='#'
3979   HAVE_AIX_OS_FALSE=
3980 fi
3981 fi
3982
3983 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3984 then
3985
3986
3987 if $TRUEPRG; then
3988   HAVE_HPUX_OS_TRUE=
3989   HAVE_HPUX_OS_FALSE='#'
3990 else
3991   HAVE_HPUX_OS_TRUE='#'
3992   HAVE_HPUX_OS_FALSE=
3993 fi
3994         cat >>confdefs.h <<\_ACEOF
3995 #define HAVE_HPUX_OS 1
3996 _ACEOF
3997
3998 else
3999
4000
4001 if $FALSEPRG; then
4002   HAVE_HPUX_OS_TRUE=
4003   HAVE_HPUX_OS_FALSE='#'
4004 else
4005   HAVE_HPUX_OS_TRUE='#'
4006   HAVE_HPUX_OS_FALSE=
4007 fi
4008 fi
4009
4010 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4011 then
4012
4013
4014 if $TRUEPRG; then
4015   HAVE_LINUX_OS_TRUE=
4016   HAVE_LINUX_OS_FALSE='#'
4017 else
4018   HAVE_LINUX_OS_TRUE='#'
4019   HAVE_LINUX_OS_FALSE=
4020 fi
4021         cat >>confdefs.h <<\_ACEOF
4022 #define HAVE_LINUX_OS 1
4023 _ACEOF
4024
4025 else
4026
4027
4028 if $FALSEPRG; then
4029   HAVE_LINUX_OS_TRUE=
4030   HAVE_LINUX_OS_FALSE='#'
4031 else
4032   HAVE_LINUX_OS_TRUE='#'
4033   HAVE_LINUX_OS_FALSE=
4034 fi
4035 fi
4036
4037 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4038 then
4039
4040
4041 if $TRUEPRG; then
4042   HAVE_FREEBSD_OS_TRUE=
4043   HAVE_FREEBSD_OS_FALSE='#'
4044 else
4045   HAVE_FREEBSD_OS_TRUE='#'
4046   HAVE_FREEBSD_OS_FALSE=
4047 fi
4048         cat >>confdefs.h <<\_ACEOF
4049 #define HAVE_FREEBSD_OS 1
4050 _ACEOF
4051
4052 else
4053
4054
4055 if $FALSEPRG; then
4056   HAVE_FREEBSD_OS_TRUE=
4057   HAVE_FREEBSD_OS_FALSE='#'
4058 else
4059   HAVE_FREEBSD_OS_TRUE='#'
4060   HAVE_FREEBSD_OS_FALSE=
4061 fi
4062 fi
4063
4064 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4065 then
4066
4067
4068 if $TRUEPRG; then
4069   HAVE_NETBSD_OS_TRUE=
4070   HAVE_NETBSD_OS_FALSE='#'
4071 else
4072   HAVE_NETBSD_OS_TRUE='#'
4073   HAVE_NETBSD_OS_FALSE=
4074 fi
4075         cat >>confdefs.h <<\_ACEOF
4076 #define HAVE_NETBSD_OS 1
4077 _ACEOF
4078
4079 else
4080
4081
4082 if $FALSEPRG; then
4083   HAVE_NETBSD_OS_TRUE=
4084   HAVE_NETBSD_OS_FALSE='#'
4085 else
4086   HAVE_NETBSD_OS_TRUE='#'
4087   HAVE_NETBSD_OS_FALSE=
4088 fi
4089 fi
4090
4091 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4092 then
4093
4094
4095 if $TRUEPRG; then
4096   HAVE_OPENBSD_OS_TRUE=
4097   HAVE_OPENBSD_OS_FALSE='#'
4098 else
4099   HAVE_OPENBSD_OS_TRUE='#'
4100   HAVE_OPENBSD_OS_FALSE=
4101 fi
4102         cat >>confdefs.h <<\_ACEOF
4103 #define HAVE_OPENBSD_OS 1
4104 _ACEOF
4105
4106 else
4107
4108
4109 if $FALSEPRG; then
4110   HAVE_OPENBSD_OS_TRUE=
4111   HAVE_OPENBSD_OS_FALSE='#'
4112 else
4113   HAVE_OPENBSD_OS_TRUE='#'
4114   HAVE_OPENBSD_OS_FALSE=
4115 fi
4116 fi
4117
4118 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4119 then
4120
4121
4122 if $TRUEPRG; then
4123   HAVE_BSDI_OS_TRUE=
4124   HAVE_BSDI_OS_FALSE='#'
4125 else
4126   HAVE_BSDI_OS_TRUE='#'
4127   HAVE_BSDI_OS_FALSE=
4128 fi
4129         cat >>confdefs.h <<\_ACEOF
4130 #define HAVE_BSDI_OS 1
4131 _ACEOF
4132
4133 else
4134
4135
4136 if $FALSEPRG; then
4137   HAVE_BSDI_OS_TRUE=
4138   HAVE_BSDI_OS_FALSE='#'
4139 else
4140   HAVE_BSDI_OS_TRUE='#'
4141   HAVE_BSDI_OS_FALSE=
4142 fi
4143 fi
4144
4145 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4146 then
4147
4148
4149 if $TRUEPRG; then
4150   HAVE_SGI_OS_TRUE=
4151   HAVE_SGI_OS_FALSE='#'
4152 else
4153   HAVE_SGI_OS_TRUE='#'
4154   HAVE_SGI_OS_FALSE=
4155 fi
4156         cat >>confdefs.h <<\_ACEOF
4157 #define HAVE_SGI_OS 1
4158 _ACEOF
4159
4160 else
4161
4162
4163 if $FALSEPRG; then
4164   HAVE_SGI_OS_TRUE=
4165   HAVE_SGI_OS_FALSE='#'
4166 else
4167   HAVE_SGI_OS_TRUE='#'
4168   HAVE_SGI_OS_FALSE=
4169 fi
4170 fi
4171
4172 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4173 then
4174
4175
4176 if $TRUEPRG; then
4177   HAVE_IRIX_OS_TRUE=
4178   HAVE_IRIX_OS_FALSE='#'
4179 else
4180   HAVE_IRIX_OS_TRUE='#'
4181   HAVE_IRIX_OS_FALSE=
4182 fi
4183         cat >>confdefs.h <<\_ACEOF
4184 #define HAVE_IRIX_OS 1
4185 _ACEOF
4186
4187 else
4188
4189
4190 if $FALSEPRG; then
4191   HAVE_IRIX_OS_TRUE=
4192   HAVE_IRIX_OS_FALSE='#'
4193 else
4194   HAVE_IRIX_OS_TRUE='#'
4195   HAVE_IRIX_OS_FALSE=
4196 fi
4197 fi
4198
4199 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4200 then
4201
4202
4203 if $TRUEPRG; then
4204   HAVE_DARWIN_OS_TRUE=
4205   HAVE_DARWIN_OS_FALSE='#'
4206 else
4207   HAVE_DARWIN_OS_TRUE='#'
4208   HAVE_DARWIN_OS_FALSE=
4209 fi
4210     cat >>confdefs.h <<\_ACEOF
4211 #define HAVE_DARWIN_OS 1
4212 _ACEOF
4213
4214 else
4215
4216
4217 if $FALSEPRG; then
4218   HAVE_DARWIN_OS_TRUE=
4219   HAVE_DARWIN_OS_FALSE='#'
4220 else
4221   HAVE_DARWIN_OS_TRUE='#'
4222   HAVE_DARWIN_OS_FALSE=
4223 fi
4224 fi
4225
4226
4227 # -----------------------------------------------------------
4228 # ----------------------------------------------------------
4229 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4230 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4231 if test "x$DISTNAME" != "x"
4232 then
4233         echo "distname set to $DISTNAME"
4234 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4235 then
4236         DISTNAME=alpha
4237 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4238 then
4239         DISTNAME=aix
4240 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4241 then
4242         DISTNAME=hpux
4243 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4244 then
4245         DISTNAME=solaris
4246 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4247 then
4248         DISTNAME=freebsd
4249 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4250 then
4251         DISTNAME=netbsd
4252 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4253 then
4254         DISTNAME=openbsd
4255 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4256 then
4257         DISTNAME=irix
4258 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4259 then
4260         DISTNAME=bsdi
4261 elif test -f /etc/SuSE-release
4262 then
4263         DISTNAME=suse
4264 elif test -d /etc/SuSEconfig
4265 then
4266         DISTNAME=suse5
4267 elif test -f /etc/mandrake-release
4268 then
4269         DISTNAME=mandrake
4270 elif test -f /etc/whitebox-release
4271 then
4272        DISTNAME=redhat
4273 elif test -f /etc/redhat-release
4274 then
4275         DISTNAME=redhat
4276 elif test -f /etc/gentoo-release
4277 then
4278         DISTNAME=gentoo
4279 elif test -f /etc/debian_version
4280 then
4281         DISTNAME=debian
4282 elif test -f /etc/slackware-version
4283 then
4284         DISTNAME=slackware
4285 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4286 then
4287     DISTNAME=darwin
4288 elif test -f /etc/engarde-version
4289 then
4290         DISTNAME=engarde
4291 elif test "$CYGWIN" = yes
4292 then
4293         DISTNAME=cygwin
4294         cat >>confdefs.h <<\_ACEOF
4295 #define HAVE_CYGWIN 1
4296 _ACEOF
4297
4298 else
4299         DISTNAME=unknown
4300 fi
4301 echo "$as_me:$LINENO: result: done" >&5
4302 echo "${ECHO_T}done" >&6
4303
4304
4305 # -----------------------------------------------------------
4306 # ----------------------------------------------------------
4307
4308
4309
4310 if false; then
4311   INSIDE_GNOME_COMMON_TRUE=
4312   INSIDE_GNOME_COMMON_FALSE='#'
4313 else
4314   INSIDE_GNOME_COMMON_TRUE='#'
4315   INSIDE_GNOME_COMMON_FALSE=
4316 fi
4317
4318         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4319
4320         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4321
4322
4323 # ------------------------------------------------------------------
4324 #  If the user has not set --prefix, we set our default to nothing.
4325 #  In this case, if the user has not set --sysconfdir, we set it
4326 #  to the package default of /etc/bacula.  If either --prefix or
4327 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4328 # ------------------------------------------------------------------
4329 if test x${prefix} = xNONE ; then
4330     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4331         sysconfdir=/etc/bacula
4332     fi
4333     prefix=
4334 fi
4335 sysconfdir=`eval echo ${sysconfdir}`
4336
4337 # -------------------------------------------------------------------------
4338 #  If the user has not set --exec-prefix, we default to ${prefix}
4339 # -------------------------------------------------------------------------
4340 if test x${exec_prefix} = xNONE ; then
4341     exec_prefix=${prefix}
4342 fi
4343
4344 # ------------------------------------------------------------------
4345 # If the user has not set --sbindir, we set our default as /sbin
4346 # ------------------------------------------------------------------
4347 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4348     sbindir=${exec_prefix}/sbin
4349 fi
4350 sbindir=`eval echo ${sbindir}`
4351
4352 # ------------------------------------------------------------------
4353 # All list of languages for which a translation exist. Each
4354 #  language is separated by a space.
4355 # ------------------------------------------------------------------
4356 ALL_LINGUAS=""
4357
4358 for ac_prog in msgfmt
4359 do
4360   # Extract the first word of "$ac_prog", so it can be a program name with args.
4361 set dummy $ac_prog; ac_word=$2
4362 echo "$as_me:$LINENO: checking for $ac_word" >&5
4363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4364 if test "${ac_cv_path_MSGFMT+set}" = set; then
4365   echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367   case $MSGFMT in
4368   [\\/]* | ?:[\\/]*)
4369   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4370   ;;
4371   *)
4372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4374 do
4375   IFS=$as_save_IFS
4376   test -z "$as_dir" && as_dir=.
4377   for ac_exec_ext in '' $ac_executable_extensions; do
4378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4379     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4381     break 2
4382   fi
4383 done
4384 done
4385
4386   ;;
4387 esac
4388 fi
4389 MSGFMT=$ac_cv_path_MSGFMT
4390
4391 if test -n "$MSGFMT"; then
4392   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4393 echo "${ECHO_T}$MSGFMT" >&6
4394 else
4395   echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6
4397 fi
4398
4399   test -n "$MSGFMT" && break
4400 done
4401 test -n "$MSGFMT" || MSGFMT="no"
4402
4403 if test "$MSGFMT" = "no"
4404 then
4405    echo 'msgfmt program not found, disabling NLS !'
4406    USE_NLS=no
4407    USE_INCLUDED_LIBINTL=no
4408 #else
4409 #   AM_GNU_GETTEXT
4410 fi
4411
4412
4413 support_mysql=no
4414 support_sqlite=no
4415 support_postgresql=no
4416 support_smartalloc=yes
4417 support_readline=yes
4418 support_conio=yes
4419 support_gnome=no
4420 support_wx_console=no
4421 gnome_version=
4422 support_static_tools=no
4423 support_static_fd=no
4424 support_static_sd=no
4425 support_static_dir=no
4426 support_static_cons=no
4427 support_python=no
4428 build_client_only=no
4429 cats=
4430 db_name=Internal
4431 DB_NAME=bdb
4432
4433
4434 # -------------------------------------------
4435 # gnome (default off)
4436 # -------------------------------------------
4437 # Check whether --enable-gnome or --disable-gnome was given.
4438 if test "${enable_gnome+set}" = set; then
4439   enableval="$enable_gnome"
4440   if test x$enableval = xyes; then
4441     support_gnome=yes
4442   fi
4443 fi;
4444
4445 GNOME_DIR=
4446 if test x$support_gnome = xyes; then
4447   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4448   pkg=$?
4449   if test $pkg = 0; then
4450      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4451      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4452      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4453      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4454
4455
4456
4457
4458      GNOME_DIR=src/gnome2-console
4459      gnome_version="Version 2.x"
4460   else
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4473 if test "${with_gnome_includes+set}" = set; then
4474   withval="$with_gnome_includes"
4475
4476         CFLAGS="$CFLAGS -I$withval"
4477
4478 fi;
4479
4480
4481 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4482 if test "${with_gnome_libs+set}" = set; then
4483   withval="$with_gnome_libs"
4484
4485         LDFLAGS="$LDFLAGS -L$withval"
4486         gnome_prefix=$withval
4487
4488 fi;
4489
4490
4491 # Check whether --with-gnome or --without-gnome was given.
4492 if test "${with_gnome+set}" = set; then
4493   withval="$with_gnome"
4494   if test x$withval = xyes; then
4495                         want_gnome=yes
4496                                                                         :
4497                 else
4498                         if test "x$withval" = xno; then
4499                                 want_gnome=no
4500                         else
4501                                 want_gnome=yes
4502                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4503                                 CFLAGS="$CFLAGS -I$withval/include"
4504                                 gnome_prefix=$withval/lib
4505                         fi
4506                 fi
4507 else
4508   want_gnome=yes
4509 fi;
4510
4511         if test "x$want_gnome" = xyes; then
4512
4513             # Extract the first word of "gnome-config", so it can be a program name with args.
4514 set dummy gnome-config; ac_word=$2
4515 echo "$as_me:$LINENO: checking for $ac_word" >&5
4516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4517 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4518   echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520   case $GNOME_CONFIG in
4521   [\\/]* | ?:[\\/]*)
4522   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4523   ;;
4524   *)
4525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530   for ac_exec_ext in '' $ac_executable_extensions; do
4531   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534     break 2
4535   fi
4536 done
4537 done
4538
4539   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4540   ;;
4541 esac
4542 fi
4543 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4544
4545 if test -n "$GNOME_CONFIG"; then
4546   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4547 echo "${ECHO_T}$GNOME_CONFIG" >&6
4548 else
4549   echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4551 fi
4552
4553             if test "$GNOME_CONFIG" = "no"; then
4554               no_gnome_config="yes"
4555             else
4556               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4557 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4558               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4559                 echo "$as_me:$LINENO: result: yes" >&5
4560 echo "${ECHO_T}yes" >&6
4561
4562
4563         # Extract the first word of "orbit-config", so it can be a program name with args.
4564 set dummy orbit-config; ac_word=$2
4565 echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4567 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4568   echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570   case $ORBIT_CONFIG in
4571   [\\/]* | ?:[\\/]*)
4572   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4573   ;;
4574   *)
4575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578   IFS=$as_save_IFS
4579   test -z "$as_dir" && as_dir=.
4580   for ac_exec_ext in '' $ac_executable_extensions; do
4581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584     break 2
4585   fi
4586 done
4587 done
4588
4589   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4590   ;;
4591 esac
4592 fi
4593 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4594
4595 if test -n "$ORBIT_CONFIG"; then
4596   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4597 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4598 else
4599   echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6
4601 fi
4602
4603         # Extract the first word of "orbit-idl", so it can be a program name with args.
4604 set dummy orbit-idl; ac_word=$2
4605 echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4607 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4608   echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610   case $ORBIT_IDL in
4611   [\\/]* | ?:[\\/]*)
4612   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4613   ;;
4614   *)
4615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618   IFS=$as_save_IFS
4619   test -z "$as_dir" && as_dir=.
4620   for ac_exec_ext in '' $ac_executable_extensions; do
4621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624     break 2
4625   fi
4626 done
4627 done
4628
4629   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4630   ;;
4631 esac
4632 fi
4633 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4634
4635 if test -n "$ORBIT_IDL"; then
4636   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4637 echo "${ECHO_T}$ORBIT_IDL" >&6
4638 else
4639   echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6
4641 fi
4642
4643         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4644 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4645 if test "${gnome_cv_orbit_found+set}" = set; then
4646   echo $ECHO_N "(cached) $ECHO_C" >&6
4647 else
4648
4649                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4650                         gnome_cv_orbit_found=no
4651                 else
4652                         gnome_cv_orbit_found=yes
4653                 fi
4654
4655 fi
4656 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4657 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4658
4659
4660 if test x$gnome_cv_orbit_found = xyes; then
4661   HAVE_ORBIT_TRUE=
4662   HAVE_ORBIT_FALSE='#'
4663 else
4664   HAVE_ORBIT_TRUE='#'
4665   HAVE_ORBIT_FALSE=
4666 fi
4667         if test x$gnome_cv_orbit_found = xyes; then
4668
4669                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4670                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4671
4672
4673         else
4674                 if test xfail = xfailure; then
4675                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4676 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4677    { (exit 1); exit 1; }; }
4678                 fi
4679         fi
4680
4681         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4682 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4683 if test "${gnome_cv_gnorba_found+set}" = set; then
4684   echo $ECHO_N "(cached) $ECHO_C" >&6
4685 else
4686
4687                 gnome_cv_gnorba_found=no
4688                 if test x$gnome_cv_orbit_found = xyes; then
4689                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4690                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4691                         if test -n "$GNORBA_LIBS"; then
4692                                 gnome_cv_gnorba_found=yes
4693                         fi
4694                 fi
4695
4696 fi
4697 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4698 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4699
4700
4701 if test x$gnome_cv_gnorba_found = xyes; then
4702   HAVE_GNORBA_TRUE=
4703   HAVE_GNORBA_FALSE='#'
4704 else
4705   HAVE_GNORBA_TRUE='#'
4706   HAVE_GNORBA_FALSE=
4707 fi
4708         if test x$gnome_cv_orbit_found = xyes; then
4709
4710                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4711                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4712
4713
4714         else
4715                 if test xfail = xfailure; then
4716                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4717 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4718    { (exit 1); exit 1; }; }
4719                 fi
4720         fi
4721
4722                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4723                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4724                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4725                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4726                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4727                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4728                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4729
4730               else
4731                 echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6
4733                 no_gnome_config="yes"
4734               fi
4735             fi
4736
4737             if test x$exec_prefix = xNONE; then
4738                 if test x$prefix = xNONE; then
4739                     gnome_prefix=$ac_default_prefix/lib
4740                 else
4741                     gnome_prefix=$prefix/lib
4742                 fi
4743             else
4744                 gnome_prefix=`eval echo \`echo $libdir\``
4745             fi
4746
4747             if test "$no_gnome_config" = "yes"; then
4748               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4749 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4750               if test -f $gnome_prefix/gnomeConf.sh; then
4751                 echo "$as_me:$LINENO: result: found" >&5
4752 echo "${ECHO_T}found" >&6
4753                 echo "loading gnome configuration from" \
4754                      "$gnome_prefix/gnomeConf.sh"
4755                 . $gnome_prefix/gnomeConf.sh
4756
4757               else
4758                 echo "$as_me:$LINENO: result: not found" >&5
4759 echo "${ECHO_T}not found" >&6
4760                 if test xfail = xfail; then
4761                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4762 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4763    { (exit 1); exit 1; }; }
4764                 fi
4765               fi
4766             fi
4767         fi
4768
4769         if test -n ""; then
4770           n=""
4771           for i in $n; do
4772             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4773 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4774             case $i in
4775               applets)
4776
4777                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4778                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4779 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4780               docklets)
4781
4782                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4783                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4784 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4785               capplet)
4786
4787                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4788                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4789 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4790               *)
4791                 echo "$as_me:$LINENO: result: unknown library" >&5
4792 echo "${ECHO_T}unknown library" >&6
4793             esac
4794             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4795             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4796           done
4797         fi
4798
4799
4800      GNOME_DIR=src/gnome-console
4801      gnome_version="Version 1.4"
4802   fi
4803 fi
4804
4805
4806
4807 # -------------------------------------------
4808 # wx-console (default off)
4809 # -------------------------------------------
4810 # Check whether --enable-wx-console or --disable-wx-console was given.
4811 if test "${enable_wx_console+set}" = set; then
4812   enableval="$enable_wx_console"
4813   if test x$enableval = xyes; then
4814     support_wx_console=yes
4815   fi
4816 fi;
4817
4818 WX_DIR=
4819 if test x$support_wx_console = xyes; then
4820   abc=`$WXCONFIG --cppflags`
4821   pkg=$?
4822   if test $pkg = 0; then
4823      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4824      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4825
4826
4827      WX_DIR=src/wx-console
4828   else
4829      echo " "
4830      echo "wx-config program not found. wx-console disabled."
4831      echo " "
4832      support_wx_console=no
4833   fi
4834 fi
4835
4836
4837
4838 # -------------------------------------------
4839 # tray-monitor (default off)
4840 # -------------------------------------------
4841 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4842 if test "${enable_tray_monitor+set}" = set; then
4843   enableval="$enable_tray_monitor"
4844   if test x$enableval = xyes; then
4845     support_tray_monitor=yes
4846   fi
4847 fi;
4848
4849 TRAY_MONITOR_DIR=
4850 if test x$support_tray_monitor = xyes; then
4851   abc=`$PKGCONFIG --exists gtk+-2.0`
4852   pkg=$?
4853   if test $pkg = 0; then
4854      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4855      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4856
4857
4858      TRAY_MONITOR_DIR=src/tray-monitor
4859      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4860      pkg=$?
4861      if test $pkg = 0; then
4862         cat >>confdefs.h <<\_ACEOF
4863 #define HAVE_GTK_2_4 1
4864 _ACEOF
4865
4866      fi
4867   fi
4868 fi
4869
4870
4871 # -------------------------------------------
4872 # smartalloc (default off)
4873 # -------------------------------------------
4874 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4875 if test "${enable_smartalloc+set}" = set; then
4876   enableval="$enable_smartalloc"
4877   if test x$enableval = xno; then
4878     support_smartalloc=no
4879   fi
4880 fi;
4881
4882 if test x$support_smartalloc = xyes; then
4883    cat >>confdefs.h <<\_ACEOF
4884 #define SMARTALLOC 1
4885 _ACEOF
4886
4887 fi
4888
4889 # -------------------------------------------
4890 # static-tools (default off)
4891 # -------------------------------------------
4892 # Check whether --enable-static-tools or --disable-static-tools was given.
4893 if test "${enable_static_tools+set}" = set; then
4894   enableval="$enable_static_tools"
4895   if test x$enableval = xyes; then
4896      support_static_tools=yes
4897    fi
4898 fi;
4899
4900 TTOOL_LDFLAGS=
4901 if test x$support_static_tools = xyes; then
4902    TTOOL_LDFLAGS="-static"
4903 fi
4904
4905
4906 # -------------------------------------------
4907 # static-fd    (default off)
4908 # -------------------------------------------
4909 # Check whether --enable-static-fd or --disable-static-fd was given.
4910 if test "${enable_static_fd+set}" = set; then
4911   enableval="$enable_static_fd"
4912   if test x$enableval = xyes; then
4913      support_static_fd=yes
4914    fi
4915 fi;
4916
4917 STATIC_FD=
4918 if test x$support_static_fd = xyes; then
4919    STATIC_FD="static-bacula-fd"
4920 fi
4921
4922
4923 # -------------------------------------------
4924 # static-sd    (default off)
4925 # -------------------------------------------
4926 # Check whether --enable-static-sd or --disable-static-sd was given.
4927 if test "${enable_static_sd+set}" = set; then
4928   enableval="$enable_static_sd"
4929   if test x$enableval = xyes; then
4930      support_static_sd=yes
4931    fi
4932 fi;
4933
4934 STATIC_SD=
4935 if test x$support_static_sd = xyes; then
4936    STATIC_SD="static-bacula-sd"
4937 fi
4938
4939
4940 # -------------------------------------------
4941 # static-dir   (default off)
4942 # -------------------------------------------
4943 # Check whether --enable-static-dir or --disable-static-dir was given.
4944 if test "${enable_static_dir+set}" = set; then
4945   enableval="$enable_static_dir"
4946   if test x$enableval = xyes; then
4947      support_static_dir=yes
4948    fi
4949 fi;
4950
4951 STATIC_DIR=
4952 if test x$support_static_dir = xyes; then
4953    STATIC_DIR="static-bacula-dir"
4954 fi
4955
4956
4957 # -------------------------------------------
4958 # static-cons  (default off)
4959 # -------------------------------------------
4960 # Check whether --enable-static-cons or --disable-static-cons was given.
4961 if test "${enable_static_cons+set}" = set; then
4962   enableval="$enable_static_cons"
4963   if test x$enableval = xyes; then
4964      support_static_cons=yes
4965    fi
4966 fi;
4967
4968 STATIC_CONS=
4969 STATIC_GNOME_CONS=
4970 STATIC_WX_CONS=
4971 if test x$support_static_cons = xyes; then
4972    STATIC_CONS="static-bconsole"
4973    STATIC_GNOME_CONS="static-gnome-console"
4974    STATIC_WX_CONS="static-wx-console"
4975 fi
4976
4977
4978
4979
4980 # -------------------------------------------
4981 # client_only  (default off)
4982 # -------------------------------------------
4983 # Check whether --enable-client-only or --disable-client-only was given.
4984 if test "${enable_client_only+set}" = set; then
4985   enableval="$enable_client_only"
4986   if test x$enableval = xyes; then
4987      build_client_only=yes
4988     db_name=None
4989     DB_NAME=none
4990    fi
4991 fi;
4992 if test x$build_client_only = xno; then
4993    ALL_DIRS="subdirs"
4994 else
4995    ALL_DIRS=""
4996 fi
4997
4998
4999 # ---------------------------------------------------
5000 # Check for conio (Bacula readline substitute)(
5001 # ---------------------------------------------------
5002 # this allows you to turn it completely off
5003 # Check whether --enable-conio or --disable-conio was given.
5004 if test "${enable_conio+set}" = set; then
5005   enableval="$enable_conio"
5006   if test x$enableval = xno; then
5007     support_conio=no
5008   fi
5009 fi;
5010
5011 got_conio="no"
5012 if test x$support_conio = xyes; then
5013    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5014 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5015 if test "${ac_cv_header_stdc+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5020 /* confdefs.h.  */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h.  */
5025 #include <stdlib.h>
5026 #include <stdarg.h>
5027 #include <string.h>
5028 #include <float.h>
5029
5030 int
5031 main ()
5032 {
5033
5034   ;
5035   return 0;
5036 }
5037 _ACEOF
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040   (eval $ac_compile) 2>&5
5041   ac_status=$?
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); } &&
5044          { ac_try='test -s conftest.$ac_objext'
5045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046   (eval $ac_try) 2>&5
5047   ac_status=$?
5048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); }; }; then
5050   ac_cv_header_stdc=yes
5051 else
5052   echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5054
5055 ac_cv_header_stdc=no
5056 fi
5057 rm -f conftest.$ac_objext conftest.$ac_ext
5058
5059 if test $ac_cv_header_stdc = yes; then
5060   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5061   cat >conftest.$ac_ext <<_ACEOF
5062 #line $LINENO "configure"
5063 /* confdefs.h.  */
5064 _ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h.  */
5068 #include <string.h>
5069
5070 _ACEOF
5071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5072   $EGREP "memchr" >/dev/null 2>&1; then
5073   :
5074 else
5075   ac_cv_header_stdc=no
5076 fi
5077 rm -f conftest*
5078
5079 fi
5080
5081 if test $ac_cv_header_stdc = yes; then
5082   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5083   cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5085 /* confdefs.h.  */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h.  */
5090 #include <stdlib.h>
5091
5092 _ACEOF
5093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5094   $EGREP "free" >/dev/null 2>&1; then
5095   :
5096 else
5097   ac_cv_header_stdc=no
5098 fi
5099 rm -f conftest*
5100
5101 fi
5102
5103 if test $ac_cv_header_stdc = yes; then
5104   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5105   if test "$cross_compiling" = yes; then
5106   :
5107 else
5108   cat >conftest.$ac_ext <<_ACEOF
5109 #line $LINENO "configure"
5110 /* confdefs.h.  */
5111 _ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h.  */
5115 #include <ctype.h>
5116 #if ((' ' & 0x0FF) == 0x020)
5117 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5118 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5119 #else
5120 # define ISLOWER(c) \
5121                    (('a' <= (c) && (c) <= 'i') \
5122                      || ('j' <= (c) && (c) <= 'r') \
5123                      || ('s' <= (c) && (c) <= 'z'))
5124 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5125 #endif
5126
5127 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5128 int
5129 main ()
5130 {
5131   int i;
5132   for (i = 0; i < 256; i++)
5133     if (XOR (islower (i), ISLOWER (i))
5134         || toupper (i) != TOUPPER (i))
5135       exit(2);
5136   exit (0);
5137 }
5138 _ACEOF
5139 rm -f conftest$ac_exeext
5140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5141   (eval $ac_link) 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146   (eval $ac_try) 2>&5
5147   ac_status=$?
5148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149   (exit $ac_status); }; }; then
5150   :
5151 else
5152   echo "$as_me: program exited with status $ac_status" >&5
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5155
5156 ( exit $ac_status )
5157 ac_cv_header_stdc=no
5158 fi
5159 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5160 fi
5161 fi
5162 fi
5163 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5164 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5165 if test $ac_cv_header_stdc = yes; then
5166
5167 cat >>confdefs.h <<\_ACEOF
5168 #define STDC_HEADERS 1
5169 _ACEOF
5170
5171 fi
5172
5173 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5184                   inttypes.h stdint.h unistd.h
5185 do
5186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5187 echo "$as_me:$LINENO: checking for $ac_header" >&5
5188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5190   echo $ECHO_N "(cached) $ECHO_C" >&6
5191 else
5192   cat >conftest.$ac_ext <<_ACEOF
5193 #line $LINENO "configure"
5194 /* confdefs.h.  */
5195 _ACEOF
5196 cat confdefs.h >>conftest.$ac_ext
5197 cat >>conftest.$ac_ext <<_ACEOF
5198 /* end confdefs.h.  */
5199 $ac_includes_default
5200
5201 #include <$ac_header>
5202 _ACEOF
5203 rm -f conftest.$ac_objext
5204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5205   (eval $ac_compile) 2>&5
5206   ac_status=$?
5207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208   (exit $ac_status); } &&
5209          { ac_try='test -s conftest.$ac_objext'
5210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211   (eval $ac_try) 2>&5
5212   ac_status=$?
5213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214   (exit $ac_status); }; }; then
5215   eval "$as_ac_Header=yes"
5216 else
5217   echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5219
5220 eval "$as_ac_Header=no"
5221 fi
5222 rm -f conftest.$ac_objext conftest.$ac_ext
5223 fi
5224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5227   cat >>confdefs.h <<_ACEOF
5228 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5229 _ACEOF
5230
5231 fi
5232
5233 done
5234
5235
5236 if test "${ac_cv_header_termcap_h+set}" = set; then
5237   echo "$as_me:$LINENO: checking for termcap.h" >&5
5238 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5239 if test "${ac_cv_header_termcap_h+set}" = set; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 fi
5242 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5243 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5244 else
5245   # Is the header compilable?
5246 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5247 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5248 cat >conftest.$ac_ext <<_ACEOF
5249 #line $LINENO "configure"
5250 /* confdefs.h.  */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h.  */
5255 $ac_includes_default
5256 #include <termcap.h>
5257 _ACEOF
5258 rm -f conftest.$ac_objext
5259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5260   (eval $ac_compile) 2>&5
5261   ac_status=$?
5262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263   (exit $ac_status); } &&
5264          { ac_try='test -s conftest.$ac_objext'
5265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266   (eval $ac_try) 2>&5
5267   ac_status=$?
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); }; }; then
5270   ac_header_compiler=yes
5271 else
5272   echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5274
5275 ac_header_compiler=no
5276 fi
5277 rm -f conftest.$ac_objext conftest.$ac_ext
5278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5279 echo "${ECHO_T}$ac_header_compiler" >&6
5280
5281 # Is the header present?
5282 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5283 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5284 cat >conftest.$ac_ext <<_ACEOF
5285 #line $LINENO "configure"
5286 /* confdefs.h.  */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h.  */
5291 #include <termcap.h>
5292 _ACEOF
5293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5294   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5295   ac_status=$?
5296   grep -v '^ *+' conftest.er1 >conftest.err
5297   rm -f conftest.er1
5298   cat conftest.err >&5
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); } >/dev/null; then
5301   if test -s conftest.err; then
5302     ac_cpp_err=$ac_c_preproc_warn_flag
5303   else
5304     ac_cpp_err=
5305   fi
5306 else
5307   ac_cpp_err=yes
5308 fi
5309 if test -z "$ac_cpp_err"; then
5310   ac_header_preproc=yes
5311 else
5312   echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5314
5315   ac_header_preproc=no
5316 fi
5317 rm -f conftest.err conftest.$ac_ext
5318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5319 echo "${ECHO_T}$ac_header_preproc" >&6
5320
5321 # So?  What about this header?
5322 case $ac_header_compiler:$ac_header_preproc in
5323   yes:no )
5324     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5325 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5326     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5327 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5328     (
5329       cat <<\_ASBOX
5330 ## ------------------------------------ ##
5331 ## Report this to bug-autoconf@gnu.org. ##
5332 ## ------------------------------------ ##
5333 _ASBOX
5334     ) |
5335       sed "s/^/$as_me: WARNING:     /" >&2
5336     ;;
5337   no:yes )
5338     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5339 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5340     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5341 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5342     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5343 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5344     (
5345       cat <<\_ASBOX
5346 ## ------------------------------------ ##
5347 ## Report this to bug-autoconf@gnu.org. ##
5348 ## ------------------------------------ ##
5349 _ASBOX
5350     ) |
5351       sed "s/^/$as_me: WARNING:     /" >&2
5352     ;;
5353 esac
5354 echo "$as_me:$LINENO: checking for termcap.h" >&5
5355 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5356 if test "${ac_cv_header_termcap_h+set}" = set; then
5357   echo $ECHO_N "(cached) $ECHO_C" >&6
5358 else
5359   ac_cv_header_termcap_h=$ac_header_preproc
5360 fi
5361 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5362 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5363
5364 fi
5365 if test $ac_cv_header_termcap_h = yes; then
5366    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5367 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5368 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371   ac_check_lib_save_LIBS=$LIBS
5372 LIBS="-ltermcap  $LIBS"
5373 cat >conftest.$ac_ext <<_ACEOF
5374 #line $LINENO "configure"
5375 /* confdefs.h.  */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h.  */
5380
5381 /* Override any gcc2 internal prototype to avoid an error.  */
5382 #ifdef __cplusplus
5383 extern "C"
5384 #endif
5385 /* We use char because int might match the return type of a gcc2
5386    builtin and then its argument prototype would still apply.  */
5387 char tgetent ();
5388 int
5389 main ()
5390 {
5391 tgetent ();
5392   ;
5393   return 0;
5394 }
5395 _ACEOF
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398   (eval $ac_link) 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } &&
5402          { ac_try='test -s conftest$ac_exeext'
5403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404   (eval $ac_try) 2>&5
5405   ac_status=$?
5406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407   (exit $ac_status); }; }; then
5408   ac_cv_lib_termcap_tgetent=yes
5409 else
5410   echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5412
5413 ac_cv_lib_termcap_tgetent=no
5414 fi
5415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5416 LIBS=$ac_check_lib_save_LIBS
5417 fi
5418 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5419 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5420 if test $ac_cv_lib_termcap_tgetent = yes; then
5421    CONS_LIBS="-ltermcap"
5422          CONS_OBJ="conio.o"
5423          CONS_SRC="conio.c"
5424          got_conio="yes"
5425          support_readline=no
5426
5427 cat >>confdefs.h <<\_ACEOF
5428 #define HAVE_CONIO 1
5429 _ACEOF
5430
5431
5432 else
5433    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5434 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5435 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5436   echo $ECHO_N "(cached) $ECHO_C" >&6
5437 else
5438   ac_check_lib_save_LIBS=$LIBS
5439 LIBS="-lncurses  $LIBS"
5440 cat >conftest.$ac_ext <<_ACEOF
5441 #line $LINENO "configure"
5442 /* confdefs.h.  */
5443 _ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h.  */
5447
5448 /* Override any gcc2 internal prototype to avoid an error.  */
5449 #ifdef __cplusplus
5450 extern "C"
5451 #endif
5452 /* We use char because int might match the return type of a gcc2
5453    builtin and then its argument prototype would still apply.  */
5454 char tgetent ();
5455 int
5456 main ()
5457 {
5458 tgetent ();
5459   ;
5460   return 0;
5461 }
5462 _ACEOF
5463 rm -f conftest.$ac_objext conftest$ac_exeext
5464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5465   (eval $ac_link) 2>&5
5466   ac_status=$?
5467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468   (exit $ac_status); } &&
5469          { ac_try='test -s conftest$ac_exeext'
5470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471   (eval $ac_try) 2>&5
5472   ac_status=$?
5473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474   (exit $ac_status); }; }; then
5475   ac_cv_lib_ncurses_tgetent=yes
5476 else
5477   echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5479
5480 ac_cv_lib_ncurses_tgetent=no
5481 fi
5482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5483 LIBS=$ac_check_lib_save_LIBS
5484 fi
5485 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5486 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5487 if test $ac_cv_lib_ncurses_tgetent = yes; then
5488    CONS_LIBS="-lncurses"
5489            CONS_OBJ="conio.o"
5490            CONS_SRC="conio.c"
5491            got_conio="yes"
5492            support_readline=no
5493
5494 cat >>confdefs.h <<\_ACEOF
5495 #define HAVE_CONIO 1
5496 _ACEOF
5497
5498
5499 fi
5500
5501
5502 fi
5503
5504
5505 else
5506
5507
5508 for ac_header in curses.h
5509 do
5510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5512   echo "$as_me:$LINENO: checking for $ac_header" >&5
5513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5515   echo $ECHO_N "(cached) $ECHO_C" >&6
5516 fi
5517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5519 else
5520   # Is the header compilable?
5521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5523 cat >conftest.$ac_ext <<_ACEOF
5524 #line $LINENO "configure"
5525 /* confdefs.h.  */
5526 _ACEOF
5527 cat confdefs.h >>conftest.$ac_ext
5528 cat >>conftest.$ac_ext <<_ACEOF
5529 /* end confdefs.h.  */
5530 $ac_includes_default
5531 #include <$ac_header>
5532 _ACEOF
5533 rm -f conftest.$ac_objext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535   (eval $ac_compile) 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } &&
5539          { ac_try='test -s conftest.$ac_objext'
5540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541   (eval $ac_try) 2>&5
5542   ac_status=$?
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); }; }; then
5545   ac_header_compiler=yes
5546 else
5547   echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5549
5550 ac_header_compiler=no
5551 fi
5552 rm -f conftest.$ac_objext conftest.$ac_ext
5553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5554 echo "${ECHO_T}$ac_header_compiler" >&6
5555
5556 # Is the header present?
5557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5559 cat >conftest.$ac_ext <<_ACEOF
5560 #line $LINENO "configure"
5561 /* confdefs.h.  */
5562 _ACEOF
5563 cat confdefs.h >>conftest.$ac_ext
5564 cat >>conftest.$ac_ext <<_ACEOF
5565 /* end confdefs.h.  */
5566 #include <$ac_header>
5567 _ACEOF
5568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5569   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5570   ac_status=$?
5571   grep -v '^ *+' conftest.er1 >conftest.err
5572   rm -f conftest.er1
5573   cat conftest.err >&5
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); } >/dev/null; then
5576   if test -s conftest.err; then
5577     ac_cpp_err=$ac_c_preproc_warn_flag
5578   else
5579     ac_cpp_err=
5580   fi
5581 else
5582   ac_cpp_err=yes
5583 fi
5584 if test -z "$ac_cpp_err"; then
5585   ac_header_preproc=yes
5586 else
5587   echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5589
5590   ac_header_preproc=no
5591 fi
5592 rm -f conftest.err conftest.$ac_ext
5593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5594 echo "${ECHO_T}$ac_header_preproc" >&6
5595
5596 # So?  What about this header?
5597 case $ac_header_compiler:$ac_header_preproc in
5598   yes:no )
5599     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5601     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5603     (
5604       cat <<\_ASBOX
5605 ## ------------------------------------ ##
5606 ## Report this to bug-autoconf@gnu.org. ##
5607 ## ------------------------------------ ##
5608 _ASBOX
5609     ) |
5610       sed "s/^/$as_me: WARNING:     /" >&2
5611     ;;
5612   no:yes )
5613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5615     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5616 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5619     (
5620       cat <<\_ASBOX
5621 ## ------------------------------------ ##
5622 ## Report this to bug-autoconf@gnu.org. ##
5623 ## ------------------------------------ ##
5624 _ASBOX
5625     ) |
5626       sed "s/^/$as_me: WARNING:     /" >&2
5627     ;;
5628 esac
5629 echo "$as_me:$LINENO: checking for $ac_header" >&5
5630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5632   echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634   eval "$as_ac_Header=$ac_header_preproc"
5635 fi
5636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5638
5639 fi
5640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5641   cat >>confdefs.h <<_ACEOF
5642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5643 _ACEOF
5644
5645 fi
5646
5647 done
5648
5649          echo "$as_me:$LINENO: checking for term.h" >&5
5650 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5651 if test "${ac_cv_header_term_h+set}" = set; then
5652   echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
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 #if HAVE_CURSES_H
5662 #include <curses.h>
5663 #endif
5664
5665
5666 #include <term.h>
5667 _ACEOF
5668 rm -f conftest.$ac_objext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5670   (eval $ac_compile) 2>&5
5671   ac_status=$?
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } &&
5674          { ac_try='test -s conftest.$ac_objext'
5675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676   (eval $ac_try) 2>&5
5677   ac_status=$?
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); }; }; then
5680   ac_cv_header_term_h=yes
5681 else
5682   echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685 ac_cv_header_term_h=no
5686 fi
5687 rm -f conftest.$ac_objext conftest.$ac_ext
5688 fi
5689 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5690 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5691 if test $ac_cv_header_term_h = yes; then
5692    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5693 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5694 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   ac_check_lib_save_LIBS=$LIBS
5698 LIBS="-lcurses  $LIBS"
5699 cat >conftest.$ac_ext <<_ACEOF
5700 #line $LINENO "configure"
5701 /* confdefs.h.  */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h.  */
5706
5707 /* Override any gcc2 internal prototype to avoid an error.  */
5708 #ifdef __cplusplus
5709 extern "C"
5710 #endif
5711 /* We use char because int might match the return type of a gcc2
5712    builtin and then its argument prototype would still apply.  */
5713 char tgetent ();
5714 int
5715 main ()
5716 {
5717 tgetent ();
5718   ;
5719   return 0;
5720 }
5721 _ACEOF
5722 rm -f conftest.$ac_objext conftest$ac_exeext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5724   (eval $ac_link) 2>&5
5725   ac_status=$?
5726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727   (exit $ac_status); } &&
5728          { ac_try='test -s conftest$ac_exeext'
5729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730   (eval $ac_try) 2>&5
5731   ac_status=$?
5732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733   (exit $ac_status); }; }; then
5734   ac_cv_lib_curses_tgetent=yes
5735 else
5736   echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5738
5739 ac_cv_lib_curses_tgetent=no
5740 fi
5741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5742 LIBS=$ac_check_lib_save_LIBS
5743 fi
5744 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5745 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5746 if test $ac_cv_lib_curses_tgetent = yes; then
5747    CONS_LIBS="-lcurses"
5748                    CONS_OBJ="conio.o"
5749                    CONS_SRC="conio.c"
5750                    got_conio="yes"
5751                    support_readline=no
5752
5753 cat >>confdefs.h <<\_ACEOF
5754 #define HAVE_CONIO 1
5755 _ACEOF
5756
5757
5758 fi
5759
5760
5761 else
5762    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5763 fi
5764
5765
5766
5767 fi
5768
5769
5770 fi
5771
5772
5773 # ---------------------------------------------------
5774 # Check for readline support/directory (default off)
5775 # ---------------------------------------------------
5776 # this allows you to turn it completely off
5777 # Check whether --enable-readline or --disable-readline was given.
5778 if test "${enable_readline+set}" = set; then
5779   enableval="$enable_readline"
5780   if test x$enableval = xno; then
5781     support_readline=no
5782   fi
5783 fi;
5784
5785 got_readline="no"
5786 READLINE_SRC=
5787 if test x$support_readline = xyes; then
5788
5789 # Check whether --with-readline or --without-readline was given.
5790 if test "${with_readline+set}" = set; then
5791   withval="$with_readline"
5792
5793         case "$with_readline" in
5794         no) : ;;
5795         yes|*)
5796           if test "$with_readline" != "yes"; then
5797             CONS_INC="-I${with_readline}"
5798             CONS_LDFLAGS="-L$with_readline"
5799           else
5800              with_readline="/usr/include/readline"
5801           fi
5802           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5804   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5805 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5807   echo $ECHO_N "(cached) $ECHO_C" >&6
5808 fi
5809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5811 else
5812   # Is the header compilable?
5813 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5814 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5815 cat >conftest.$ac_ext <<_ACEOF
5816 #line $LINENO "configure"
5817 /* confdefs.h.  */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h.  */
5822 $ac_includes_default
5823 #include <${with_readline}/readline.h>
5824 _ACEOF
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827   (eval $ac_compile) 2>&5
5828   ac_status=$?
5829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830   (exit $ac_status); } &&
5831          { ac_try='test -s conftest.$ac_objext'
5832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833   (eval $ac_try) 2>&5
5834   ac_status=$?
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); }; }; then
5837   ac_header_compiler=yes
5838 else
5839   echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 ac_header_compiler=no
5843 fi
5844 rm -f conftest.$ac_objext conftest.$ac_ext
5845 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5846 echo "${ECHO_T}$ac_header_compiler" >&6
5847
5848 # Is the header present?
5849 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5850 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5851 cat >conftest.$ac_ext <<_ACEOF
5852 #line $LINENO "configure"
5853 /* confdefs.h.  */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h.  */
5858 #include <${with_readline}/readline.h>
5859 _ACEOF
5860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5861   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5862   ac_status=$?
5863   grep -v '^ *+' conftest.er1 >conftest.err
5864   rm -f conftest.er1
5865   cat conftest.err >&5
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } >/dev/null; then
5868   if test -s conftest.err; then
5869     ac_cpp_err=$ac_c_preproc_warn_flag
5870   else
5871     ac_cpp_err=
5872   fi
5873 else
5874   ac_cpp_err=yes
5875 fi
5876 if test -z "$ac_cpp_err"; then
5877   ac_header_preproc=yes
5878 else
5879   echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.$ac_ext >&5
5881
5882   ac_header_preproc=no
5883 fi
5884 rm -f conftest.err conftest.$ac_ext
5885 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5886 echo "${ECHO_T}$ac_header_preproc" >&6
5887
5888 # So?  What about this header?
5889 case $ac_header_compiler:$ac_header_preproc in
5890   yes:no )
5891     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5892 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5893     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5894 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5895     (
5896       cat <<\_ASBOX
5897 ## ------------------------------------ ##
5898 ## Report this to bug-autoconf@gnu.org. ##
5899 ## ------------------------------------ ##
5900 _ASBOX
5901     ) |
5902       sed "s/^/$as_me: WARNING:     /" >&2
5903     ;;
5904   no:yes )
5905     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5906 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5907     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5908 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5909     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5910 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5911     (
5912       cat <<\_ASBOX
5913 ## ------------------------------------ ##
5914 ## Report this to bug-autoconf@gnu.org. ##
5915 ## ------------------------------------ ##
5916 _ASBOX
5917     ) |
5918       sed "s/^/$as_me: WARNING:     /" >&2
5919     ;;
5920 esac
5921 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5922 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5924   echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926   eval "$as_ac_Header=$ac_header_preproc"
5927 fi
5928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5930
5931 fi
5932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5933    cat >>confdefs.h <<\_ACEOF
5934 #define HAVE_READLINE 1
5935 _ACEOF
5936
5937                CONS_LIBS="-lreadline -ltermcap"
5938                got_readline="yes"
5939
5940 else
5941    echo " "
5942                echo "readline.h not found. readline turned off ..."
5943                echo " "
5944
5945
5946 fi
5947
5948
5949           ;;
5950         esac
5951
5952 else
5953
5954        # check for standard readline library
5955        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5956   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5957 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5958 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5959   echo $ECHO_N "(cached) $ECHO_C" >&6
5960 fi
5961 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5962 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5963 else
5964   # Is the header compilable?
5965 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5966 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5967 cat >conftest.$ac_ext <<_ACEOF
5968 #line $LINENO "configure"
5969 /* confdefs.h.  */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h.  */
5974 $ac_includes_default
5975 #include </usr/include/readline/readline.h>
5976 _ACEOF
5977 rm -f conftest.$ac_objext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5979   (eval $ac_compile) 2>&5
5980   ac_status=$?
5981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); } &&
5983          { ac_try='test -s conftest.$ac_objext'
5984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985   (eval $ac_try) 2>&5
5986   ac_status=$?
5987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988   (exit $ac_status); }; }; then
5989   ac_header_compiler=yes
5990 else
5991   echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5993
5994 ac_header_compiler=no
5995 fi
5996 rm -f conftest.$ac_objext conftest.$ac_ext
5997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5998 echo "${ECHO_T}$ac_header_compiler" >&6
5999
6000 # Is the header present?
6001 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6002 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6003 cat >conftest.$ac_ext <<_ACEOF
6004 #line $LINENO "configure"
6005 /* confdefs.h.  */
6006 _ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h.  */
6010 #include </usr/include/readline/readline.h>
6011 _ACEOF
6012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6013   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6014   ac_status=$?
6015   grep -v '^ *+' conftest.er1 >conftest.err
6016   rm -f conftest.er1
6017   cat conftest.err >&5
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); } >/dev/null; then
6020   if test -s conftest.err; then
6021     ac_cpp_err=$ac_c_preproc_warn_flag
6022   else
6023     ac_cpp_err=
6024   fi
6025 else
6026   ac_cpp_err=yes
6027 fi
6028 if test -z "$ac_cpp_err"; then
6029   ac_header_preproc=yes
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034   ac_header_preproc=no
6035 fi
6036 rm -f conftest.err conftest.$ac_ext
6037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6038 echo "${ECHO_T}$ac_header_preproc" >&6
6039
6040 # So?  What about this header?
6041 case $ac_header_compiler:$ac_header_preproc in
6042   yes:no )
6043     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6044 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6045     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6046 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6047     (
6048       cat <<\_ASBOX
6049 ## ------------------------------------ ##
6050 ## Report this to bug-autoconf@gnu.org. ##
6051 ## ------------------------------------ ##
6052 _ASBOX
6053     ) |
6054       sed "s/^/$as_me: WARNING:     /" >&2
6055     ;;
6056   no:yes )
6057     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6058 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6059     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6060 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6061     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6062 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6063     (
6064       cat <<\_ASBOX
6065 ## ------------------------------------ ##
6066 ## Report this to bug-autoconf@gnu.org. ##
6067 ## ------------------------------------ ##
6068 _ASBOX
6069     ) |
6070       sed "s/^/$as_me: WARNING:     /" >&2
6071     ;;
6072 esac
6073 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6074 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6075 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6076   echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6079 fi
6080 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6081 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6082
6083 fi
6084 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6085    cat >>confdefs.h <<\_ACEOF
6086 #define HAVE_READLINE 1
6087 _ACEOF
6088
6089            got_readline="yes"
6090            CONS_INC="-I/usr/include/readline"
6091            CONS_LIBS="-lreadline -ltermcap"
6092
6093 else
6094
6095            # Did not find standard library, so try Bacula's default
6096             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6098   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6099 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6101   echo $ECHO_N "(cached) $ECHO_C" >&6
6102 fi
6103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6105 else
6106   # Is the header compilable?
6107 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6108 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6109 cat >conftest.$ac_ext <<_ACEOF
6110 #line $LINENO "configure"
6111 /* confdefs.h.  */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h.  */
6116 $ac_includes_default
6117 #include <${TOP_DIR}/depkgs/readline/readline.h>
6118 _ACEOF
6119 rm -f conftest.$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121   (eval $ac_compile) 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); } &&
6125          { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
6132 else
6133   echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6135
6136 ac_header_compiler=no
6137 fi
6138 rm -f conftest.$ac_objext conftest.$ac_ext
6139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6140 echo "${ECHO_T}$ac_header_compiler" >&6
6141
6142 # Is the header present?
6143 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6144 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6145 cat >conftest.$ac_ext <<_ACEOF
6146 #line $LINENO "configure"
6147 /* confdefs.h.  */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h.  */
6152 #include <${TOP_DIR}/depkgs/readline/readline.h>
6153 _ACEOF
6154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6155   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6156   ac_status=$?
6157   grep -v '^ *+' conftest.er1 >conftest.err
6158   rm -f conftest.er1
6159   cat conftest.err >&5
6160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161   (exit $ac_status); } >/dev/null; then
6162   if test -s conftest.err; then
6163     ac_cpp_err=$ac_c_preproc_warn_flag
6164   else
6165     ac_cpp_err=
6166   fi
6167 else
6168   ac_cpp_err=yes
6169 fi
6170 if test -z "$ac_cpp_err"; then
6171   ac_header_preproc=yes
6172 else
6173   echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6175
6176   ac_header_preproc=no
6177 fi
6178 rm -f conftest.err conftest.$ac_ext
6179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6180 echo "${ECHO_T}$ac_header_preproc" >&6
6181
6182 # So?  What about this header?
6183 case $ac_header_compiler:$ac_header_preproc in
6184   yes:no )
6185     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6186 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6187     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6188 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6189     (
6190       cat <<\_ASBOX
6191 ## ------------------------------------ ##
6192 ## Report this to bug-autoconf@gnu.org. ##
6193 ## ------------------------------------ ##
6194 _ASBOX
6195     ) |
6196       sed "s/^/$as_me: WARNING:     /" >&2
6197     ;;
6198   no:yes )
6199     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6200 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6201     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6202 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6203     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6204 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6205     (
6206       cat <<\_ASBOX
6207 ## ------------------------------------ ##
6208 ## Report this to bug-autoconf@gnu.org. ##
6209 ## ------------------------------------ ##
6210 _ASBOX
6211     ) |
6212       sed "s/^/$as_me: WARNING:     /" >&2
6213     ;;
6214 esac
6215 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6216 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6218   echo $ECHO_N "(cached) $ECHO_C" >&6
6219 else
6220   eval "$as_ac_Header=$ac_header_preproc"
6221 fi
6222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6224
6225 fi
6226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6227    cat >>confdefs.h <<\_ACEOF
6228 #define HAVE_READLINE 1
6229 _ACEOF
6230
6231                  got_readline="yes"
6232                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6233                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6234                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6235                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6236
6237 else
6238    echo " "
6239                 echo "readline.h not found. readline turned off ..."
6240                 echo " "
6241
6242
6243 fi
6244
6245
6246
6247
6248 fi
6249
6250
6251
6252
6253 fi;
6254 fi
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265 # Minimal stuff for readline Makefile configuration
6266 MAKE_SHELL=/bin/sh
6267
6268 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6269 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6270 if test "${ac_cv_header_stat_broken+set}" = set; then
6271   echo $ECHO_N "(cached) $ECHO_C" >&6
6272 else
6273   cat >conftest.$ac_ext <<_ACEOF
6274 #line $LINENO "configure"
6275 /* confdefs.h.  */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h.  */
6280 #include <sys/types.h>
6281 #include <sys/stat.h>
6282
6283 #if defined(S_ISBLK) && defined(S_IFDIR)
6284 # if S_ISBLK (S_IFDIR)
6285 You lose.
6286 # endif
6287 #endif
6288
6289 #if defined(S_ISBLK) && defined(S_IFCHR)
6290 # if S_ISBLK (S_IFCHR)
6291 You lose.
6292 # endif
6293 #endif
6294
6295 #if defined(S_ISLNK) && defined(S_IFREG)
6296 # if S_ISLNK (S_IFREG)
6297 You lose.
6298 # endif
6299 #endif
6300
6301 #if defined(S_ISSOCK) && defined(S_IFREG)
6302 # if S_ISSOCK (S_IFREG)
6303 You lose.
6304 # endif
6305 #endif
6306
6307 _ACEOF
6308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6309   $EGREP "You lose" >/dev/null 2>&1; then
6310   ac_cv_header_stat_broken=yes
6311 else
6312   ac_cv_header_stat_broken=no
6313 fi
6314 rm -f conftest*
6315
6316 fi
6317 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6318 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6319 if test $ac_cv_header_stat_broken = yes; then
6320
6321 cat >>confdefs.h <<\_ACEOF
6322 #define STAT_MACROS_BROKEN 1
6323 _ACEOF
6324
6325 fi
6326
6327
6328
6329
6330
6331
6332 ac_header_dirent=no
6333 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6334   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6335 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6336 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6338   echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340   cat >conftest.$ac_ext <<_ACEOF
6341 #line $LINENO "configure"
6342 /* confdefs.h.  */
6343 _ACEOF
6344 cat confdefs.h >>conftest.$ac_ext
6345 cat >>conftest.$ac_ext <<_ACEOF
6346 /* end confdefs.h.  */
6347 #include <sys/types.h>
6348 #include <$ac_hdr>
6349
6350 int
6351 main ()
6352 {
6353 if ((DIR *) 0)
6354 return 0;
6355   ;
6356   return 0;
6357 }
6358 _ACEOF
6359 rm -f conftest.$ac_objext
6360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361   (eval $ac_compile) 2>&5
6362   ac_status=$?
6363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364   (exit $ac_status); } &&
6365          { ac_try='test -s conftest.$ac_objext'
6366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367   (eval $ac_try) 2>&5
6368   ac_status=$?
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); }; }; then
6371   eval "$as_ac_Header=yes"
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376 eval "$as_ac_Header=no"
6377 fi
6378 rm -f conftest.$ac_objext conftest.$ac_ext
6379 fi
6380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6383   cat >>confdefs.h <<_ACEOF
6384 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6385 _ACEOF
6386
6387 ac_header_dirent=$ac_hdr; break
6388 fi
6389
6390 done
6391 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6392 if test $ac_header_dirent = dirent.h; then
6393   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6394 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6395 if test "${ac_cv_search_opendir+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   ac_func_search_save_LIBS=$LIBS
6399 ac_cv_search_opendir=no
6400 cat >conftest.$ac_ext <<_ACEOF
6401 #line $LINENO "configure"
6402 /* confdefs.h.  */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h.  */
6407
6408 /* Override any gcc2 internal prototype to avoid an error.  */
6409 #ifdef __cplusplus
6410 extern "C"
6411 #endif
6412 /* We use char because int might match the return type of a gcc2
6413    builtin and then its argument prototype would still apply.  */
6414 char opendir ();
6415 int
6416 main ()
6417 {
6418 opendir ();
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 rm -f conftest.$ac_objext conftest$ac_exeext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6425   (eval $ac_link) 2>&5
6426   ac_status=$?
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); } &&
6429          { ac_try='test -s conftest$ac_exeext'
6430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431   (eval $ac_try) 2>&5
6432   ac_status=$?
6433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434   (exit $ac_status); }; }; then
6435   ac_cv_search_opendir="none required"
6436 else
6437   echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6439
6440 fi
6441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6442 if test "$ac_cv_search_opendir" = no; then
6443   for ac_lib in dir; do
6444     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6445     cat >conftest.$ac_ext <<_ACEOF
6446 #line $LINENO "configure"
6447 /* confdefs.h.  */
6448 _ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h.  */
6452
6453 /* Override any gcc2 internal prototype to avoid an error.  */
6454 #ifdef __cplusplus
6455 extern "C"
6456 #endif
6457 /* We use char because int might match the return type of a gcc2
6458    builtin and then its argument prototype would still apply.  */
6459 char opendir ();
6460 int
6461 main ()
6462 {
6463 opendir ();
6464   ;
6465   return 0;
6466 }
6467 _ACEOF
6468 rm -f conftest.$ac_objext conftest$ac_exeext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470   (eval $ac_link) 2>&5
6471   ac_status=$?
6472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473   (exit $ac_status); } &&
6474          { ac_try='test -s conftest$ac_exeext'
6475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6476   (eval $ac_try) 2>&5
6477   ac_status=$?
6478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479   (exit $ac_status); }; }; then
6480   ac_cv_search_opendir="-l$ac_lib"
6481 break
6482 else
6483   echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486 fi
6487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6488   done
6489 fi
6490 LIBS=$ac_func_search_save_LIBS
6491 fi
6492 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6493 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6494 if test "$ac_cv_search_opendir" != no; then
6495   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6496
6497 fi
6498
6499 else
6500   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6501 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6502 if test "${ac_cv_search_opendir+set}" = set; then
6503   echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505   ac_func_search_save_LIBS=$LIBS
6506 ac_cv_search_opendir=no
6507 cat >conftest.$ac_ext <<_ACEOF
6508 #line $LINENO "configure"
6509 /* confdefs.h.  */
6510 _ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h.  */
6514
6515 /* Override any gcc2 internal prototype to avoid an error.  */
6516 #ifdef __cplusplus
6517 extern "C"
6518 #endif
6519 /* We use char because int might match the return type of a gcc2
6520    builtin and then its argument prototype would still apply.  */
6521 char opendir ();
6522 int
6523 main ()
6524 {
6525 opendir ();
6526   ;
6527   return 0;
6528 }
6529 _ACEOF
6530 rm -f conftest.$ac_objext conftest$ac_exeext
6531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6532   (eval $ac_link) 2>&5
6533   ac_status=$?
6534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); } &&
6536          { ac_try='test -s conftest$ac_exeext'
6537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538   (eval $ac_try) 2>&5
6539   ac_status=$?
6540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541   (exit $ac_status); }; }; then
6542   ac_cv_search_opendir="none required"
6543 else
6544   echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6546
6547 fi
6548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6549 if test "$ac_cv_search_opendir" = no; then
6550   for ac_lib in x; do
6551     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6552     cat >conftest.$ac_ext <<_ACEOF
6553 #line $LINENO "configure"
6554 /* confdefs.h.  */
6555 _ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h.  */
6559
6560 /* Override any gcc2 internal prototype to avoid an error.  */
6561 #ifdef __cplusplus
6562 extern "C"
6563 #endif
6564 /* We use char because int might match the return type of a gcc2
6565    builtin and then its argument prototype would still apply.  */
6566 char opendir ();
6567 int
6568 main ()
6569 {
6570 opendir ();
6571   ;
6572   return 0;
6573 }
6574 _ACEOF
6575 rm -f conftest.$ac_objext conftest$ac_exeext
6576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6577   (eval $ac_link) 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); } &&
6581          { ac_try='test -s conftest$ac_exeext'
6582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583   (eval $ac_try) 2>&5
6584   ac_status=$?
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); }; }; then
6587   ac_cv_search_opendir="-l$ac_lib"
6588 break
6589 else
6590   echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 fi
6594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6595   done
6596 fi
6597 LIBS=$ac_func_search_save_LIBS
6598 fi
6599 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6600 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6601 if test "$ac_cv_search_opendir" != no; then
6602   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6603
6604 fi
6605
6606 fi
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6617 do
6618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6619 echo "$as_me:$LINENO: checking for $ac_func" >&5
6620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6621 if eval "test \"\${$as_ac_var+set}\" = set"; then
6622   echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624   cat >conftest.$ac_ext <<_ACEOF
6625 #line $LINENO "configure"
6626 /* confdefs.h.  */
6627 _ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h.  */
6631 /* System header to define __stub macros and hopefully few prototypes,
6632     which can conflict with char $ac_func (); below.
6633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6634     <limits.h> exists even on freestanding compilers.  */
6635 #ifdef __STDC__
6636 # include <limits.h>
6637 #else
6638 # include <assert.h>
6639 #endif
6640 /* Override any gcc2 internal prototype to avoid an error.  */
6641 #ifdef __cplusplus
6642 extern "C"
6643 {
6644 #endif
6645 /* We use char because int might match the return type of a gcc2
6646    builtin and then its argument prototype would still apply.  */
6647 char $ac_func ();
6648 /* The GNU C library defines this for functions which it implements
6649     to always fail with ENOSYS.  Some functions are actually named
6650     something starting with __ and the normal name is an alias.  */
6651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6652 choke me
6653 #else
6654 char (*f) () = $ac_func;
6655 #endif
6656 #ifdef __cplusplus
6657 }
6658 #endif
6659
6660 int
6661 main ()
6662 {
6663 return f != $ac_func;
6664   ;
6665   return 0;
6666 }
6667 _ACEOF
6668 rm -f conftest.$ac_objext conftest$ac_exeext
6669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6670   (eval $ac_link) 2>&5
6671   ac_status=$?
6672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673   (exit $ac_status); } &&
6674          { ac_try='test -s conftest$ac_exeext'
6675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676   (eval $ac_try) 2>&5
6677   ac_status=$?
6678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679   (exit $ac_status); }; }; then
6680   eval "$as_ac_var=yes"
6681 else
6682   echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6684
6685 eval "$as_ac_var=no"
6686 fi
6687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6688 fi
6689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6691 if test `eval echo '${'$as_ac_var'}'` = yes; then
6692   cat >>confdefs.h <<_ACEOF
6693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6694 _ACEOF
6695
6696 fi
6697 done
6698
6699
6700
6701 for ac_func in nanosleep nl_langinfo
6702 do
6703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6704 echo "$as_me:$LINENO: checking for $ac_func" >&5
6705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6706 if eval "test \"\${$as_ac_var+set}\" = set"; then
6707   echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709   cat >conftest.$ac_ext <<_ACEOF
6710 #line $LINENO "configure"
6711 /* confdefs.h.  */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h.  */
6716 /* System header to define __stub macros and hopefully few prototypes,
6717     which can conflict with char $ac_func (); below.
6718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6719     <limits.h> exists even on freestanding compilers.  */
6720 #ifdef __STDC__
6721 # include <limits.h>
6722 #else
6723 # include <assert.h>
6724 #endif
6725 /* Override any gcc2 internal prototype to avoid an error.  */
6726 #ifdef __cplusplus
6727 extern "C"
6728 {
6729 #endif
6730 /* We use char because int might match the return type of a gcc2
6731    builtin and then its argument prototype would still apply.  */
6732 char $ac_func ();
6733 /* The GNU C library defines this for functions which it implements
6734     to always fail with ENOSYS.  Some functions are actually named
6735     something starting with __ and the normal name is an alias.  */
6736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6737 choke me
6738 #else
6739 char (*f) () = $ac_func;
6740 #endif
6741 #ifdef __cplusplus
6742 }
6743 #endif
6744
6745 int
6746 main ()
6747 {
6748 return f != $ac_func;
6749   ;
6750   return 0;
6751 }
6752 _ACEOF
6753 rm -f conftest.$ac_objext conftest$ac_exeext
6754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6755   (eval $ac_link) 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); } &&
6759          { ac_try='test -s conftest$ac_exeext'
6760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761   (eval $ac_try) 2>&5
6762   ac_status=$?
6763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764   (exit $ac_status); }; }; then
6765   eval "$as_ac_var=yes"
6766 else
6767   echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6769
6770 eval "$as_ac_var=no"
6771 fi
6772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6773 fi
6774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6776 if test `eval echo '${'$as_ac_var'}'` = yes; then
6777   cat >>confdefs.h <<_ACEOF
6778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6779 _ACEOF
6780
6781 fi
6782 done
6783
6784
6785 for ac_header in varargs.h
6786 do
6787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6789   echo "$as_me:$LINENO: checking for $ac_header" >&5
6790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 fi
6794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6796 else
6797   # Is the header compilable?
6798 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6800 cat >conftest.$ac_ext <<_ACEOF
6801 #line $LINENO "configure"
6802 /* confdefs.h.  */
6803 _ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h.  */
6807 $ac_includes_default
6808 #include <$ac_header>
6809 _ACEOF
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812   (eval $ac_compile) 2>&5
6813   ac_status=$?
6814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815   (exit $ac_status); } &&
6816          { ac_try='test -s conftest.$ac_objext'
6817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818   (eval $ac_try) 2>&5
6819   ac_status=$?
6820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); }; }; then
6822   ac_header_compiler=yes
6823 else
6824   echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6826
6827 ac_header_compiler=no
6828 fi
6829 rm -f conftest.$ac_objext conftest.$ac_ext
6830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6831 echo "${ECHO_T}$ac_header_compiler" >&6
6832
6833 # Is the header present?
6834 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6836 cat >conftest.$ac_ext <<_ACEOF
6837 #line $LINENO "configure"
6838 /* confdefs.h.  */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h.  */
6843 #include <$ac_header>
6844 _ACEOF
6845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6847   ac_status=$?
6848   grep -v '^ *+' conftest.er1 >conftest.err
6849   rm -f conftest.er1
6850   cat conftest.err >&5
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); } >/dev/null; then
6853   if test -s conftest.err; then
6854     ac_cpp_err=$ac_c_preproc_warn_flag
6855   else
6856     ac_cpp_err=
6857   fi
6858 else
6859   ac_cpp_err=yes
6860 fi
6861 if test -z "$ac_cpp_err"; then
6862   ac_header_preproc=yes
6863 else
6864   echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6866
6867   ac_header_preproc=no
6868 fi
6869 rm -f conftest.err conftest.$ac_ext
6870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6871 echo "${ECHO_T}$ac_header_preproc" >&6
6872
6873 # So?  What about this header?
6874 case $ac_header_compiler:$ac_header_preproc in
6875   yes:no )
6876     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6880     (
6881       cat <<\_ASBOX
6882 ## ------------------------------------ ##
6883 ## Report this to bug-autoconf@gnu.org. ##
6884 ## ------------------------------------ ##
6885 _ASBOX
6886     ) |
6887       sed "s/^/$as_me: WARNING:     /" >&2
6888     ;;
6889   no:yes )
6890     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6892     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6896     (
6897       cat <<\_ASBOX
6898 ## ------------------------------------ ##
6899 ## Report this to bug-autoconf@gnu.org. ##
6900 ## ------------------------------------ ##
6901 _ASBOX
6902     ) |
6903       sed "s/^/$as_me: WARNING:     /" >&2
6904     ;;
6905 esac
6906 echo "$as_me:$LINENO: checking for $ac_header" >&5
6907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6909   echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911   eval "$as_ac_Header=$ac_header_preproc"
6912 fi
6913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6915
6916 fi
6917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6918   cat >>confdefs.h <<_ACEOF
6919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6920 _ACEOF
6921
6922 fi
6923
6924 done
6925
6926
6927 # End of readline/conio stuff
6928 # -----------------------------------------------------------------------
6929
6930 # -----------------------------------------------------------------------
6931 #  Check for Python support
6932 #
6933 echo "$as_me:$LINENO: checking for Python support" >&5
6934 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
6935
6936 # Check whether --with-python or --without-python was given.
6937 if test "${with_python+set}" = set; then
6938   withval="$with_python"
6939
6940   PYTHON_INCDIR=
6941   PYTHON_LIBS=
6942   if test "$withval" != "no"; then
6943      if test "$withval" = "yes"; then
6944         if test -f /usr/include/python2.2/Python.h; then
6945            PYTHON_INCDIR=-I/usr/include/python2.2
6946            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
6947         elif test -f /usr/include/python2.3/Python.h; then
6948            PYTHON_INCDIR=-I/usr/include/python2.3
6949            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
6950         elif test -f $prefix/include/Python.h; then
6951            PYTHON_INCDIR=-I$prefix/include
6952            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
6953         else
6954            echo "$as_me:$LINENO: result: no" >&5
6955 echo "${ECHO_T}no" >&6
6956            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
6957 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
6958    { (exit 1); exit 1; }; }
6959         fi
6960      else
6961         if test -f $withval/Python.h; then
6962            PYTHON_INCDIR=-I$withval
6963            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
6964         elif test -f $withval/include/Python.h; then
6965            PYTHON_INCDIR=-I$withval/include
6966            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
6967         else
6968            echo "$as_me:$LINENO: result: no" >&5
6969 echo "${ECHO_T}no" >&6
6970            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
6971 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
6972    { (exit 1); exit 1; }; }
6973         fi
6974      fi
6975      cat >>confdefs.h <<\_ACEOF
6976 #define HAVE_PYTHON 1
6977 _ACEOF
6978
6979      echo "$as_me:$LINENO: result: yes" >&5
6980 echo "${ECHO_T}yes" >&6
6981      support_python=yes
6982
6983   else
6984      echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6
6986   fi
6987
6988 else
6989
6990   echo "$as_me:$LINENO: result: no" >&5
6991 echo "${ECHO_T}no" >&6
6992
6993 fi;
6994
6995
6996
6997
6998 # -------------------------------------------
6999 # check for cdrecord writer location
7000 # get scsibus,target,lun
7001 # -------------------------------------------
7002 CDSTL="3,0,0"
7003 if test ! x$CDRECORD = x ; then
7004    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
7005    if test x${CDSTL} = x ; then
7006       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
7007    fi
7008    if test x${CDSTL} = x ; then
7009       CDSTL="3,0,0"
7010    fi
7011 fi
7012
7013
7014
7015 # ---------------------------------------------------
7016 # Check for GMP support/directory
7017 # ---------------------------------------------------
7018 #GMP_SRC=
7019 #local_gmp="no"
7020 #AC_ARG_WITH(gmp,
7021 #  [  --with-gmp[=DIR]   Specify gmp library directory],
7022 #  [
7023 #     case "$with_gmp" in
7024 #     no) : ;;
7025 #     yes|*)
7026 #       if test "$with_gmp" != "yes"; then
7027 #         GMP_INC="-I$with_gmp"
7028 #         GMP_LIBS="-lgmp"
7029 #         GMP_LDFLAGS="-L$with_gmp"
7030 #       else
7031 #          with_gmp="/usr/include"
7032 #       fi
7033 #       AC_CHECK_HEADER($with_gmp/gmp.h,
7034 #          [ AC_MSG_RESULT(yes)
7035 #            AC_DEFINE(HAVE_GMP)
7036 #            GMP_LIBS="-lgmp"
7037 #            got_gmp="yes"
7038 #          ],
7039 #          [ AC_MSG_ERROR([*** gmp library missing])
7040 #          ]
7041 #       )
7042 #       ;;
7043 #     esac
7044 #  ],[
7045 #    # check for standard gmp library
7046 #    AC_CHECK_HEADER(/usr/include/gmp.h,
7047 #    [ AC_MSG_RESULT(yes)
7048 #      AC_DEFINE(HAVE_GMP)
7049 #      got_gmp="yes"
7050 #      GMP_INC=
7051 #      GMP_LIBS="-lgmp"
7052 #    ], [
7053 #      # Did not find standard library, so use our own
7054 #      AC_MSG_RESULT(yes)
7055 #      AC_DEFINE(HAVE_GMP)
7056 #      got_gmp="yes"
7057 #      local_gmp="yes"
7058 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7059 #      GMP_LIBS="-lgmp"
7060 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7061 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
7062 #    ])
7063 #  ]
7064 #)
7065 #AC_SUBST(GMP_INC)
7066 #AC_SUBST(GMP_LIBS)
7067 #AC_SUBST(GMP_LDFLAGS)
7068 #AC_SUBST(GMP_SRC)
7069
7070 # End of GMP stuff
7071 # -----------------------------------------------------------------------
7072
7073
7074 # ---------------------------------------------------
7075 # Check for CWEB support/directory
7076 # ---------------------------------------------------
7077 #CWEB_SRC=
7078 #CWEB=/bin
7079 #local_cweb="no"
7080 #AC_ARG_WITH(cweb,
7081 #  [  --with-cweb[=DIR]   Specify cweb library directory],
7082 #  [
7083 #     case "$with_cweb" in
7084 #     no) : ;;
7085 #     yes|*)
7086 #       if test "$with_cweb" != "yes"; then
7087 #         CWEB_INC="-I$with_cweb"
7088 #         CWEB_LIBS="-lcweb"
7089 #         CWEB_LDFLAGS="-L$with_cweb"
7090 #       else
7091 #          with_cweb="/usr/include"
7092 #       fi
7093 #       AC_CHECK_HEADER($with_cweb/cweb.h,
7094 #          [ AC_MSG_RESULT(yes)
7095 #            AC_DEFINE(HAVE_CWEB)
7096 #            CWEB_LIBS="-lcweb"
7097 #            got_cweb="yes"
7098 #          ],
7099 #          [ AC_MSG_ERROR([*** cweb library missing])
7100 #          ]
7101 #       )
7102 #       ;;
7103 #     esac
7104 #  ],[
7105 #    # check for standard cweb library
7106 #    AC_CHECK_HEADER(/usr/include/cweb.h,
7107 #    [ AC_MSG_RESULT(yes)
7108 #      AC_DEFINE(HAVE_CWEB)
7109 #      got_cweb="yes"
7110 #      CWEB_INC=
7111 #      CWEB_LIBS="-lcweb"
7112 #    ], [
7113 #      # Did not find starndard library, so use our own
7114 #      AC_MSG_RESULT(yes)
7115 #      AC_DEFINE(HAVE_CWEB)
7116 #      got_cweb="yes"
7117 #      local_cweb="yes"
7118 #      CWEB=${TOP_DIR}/depkgs/cweb
7119 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7120 #      CWEB_LIBS="-lcweb"
7121 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7122 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7123 #    ])
7124 #  ]
7125 #)
7126 #AC_SUBST(CWEB)
7127 #AC_SUBST(CWEB_INC)
7128 #AC_SUBST(CWEB_LIBS)
7129 #AC_SUBST(CWEB_LDFLAGS)
7130 #AC_SUBST(CWEB_SRC)
7131
7132 # End of CWEB stuff
7133 # -----------------------------------------------------------------------
7134
7135 #
7136 # Find where sockets are (especially for Solaris)
7137 # Do this before the TCP Wrappers test since tcp wrappers
7138 # uses the socket library and some linkers are stupid.
7139 #
7140 echo "$as_me:$LINENO: checking for socket" >&5
7141 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7142 if test "${ac_cv_func_socket+set}" = set; then
7143   echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145   cat >conftest.$ac_ext <<_ACEOF
7146 #line $LINENO "configure"
7147 /* confdefs.h.  */
7148 _ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h.  */
7152 /* System header to define __stub macros and hopefully few prototypes,
7153     which can conflict with char socket (); below.
7154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7155     <limits.h> exists even on freestanding compilers.  */
7156 #ifdef __STDC__
7157 # include <limits.h>
7158 #else
7159 # include <assert.h>
7160 #endif
7161 /* Override any gcc2 internal prototype to avoid an error.  */
7162 #ifdef __cplusplus
7163 extern "C"
7164 {
7165 #endif
7166 /* We use char because int might match the return type of a gcc2
7167    builtin and then its argument prototype would still apply.  */
7168 char socket ();
7169 /* The GNU C library defines this for functions which it implements
7170     to always fail with ENOSYS.  Some functions are actually named
7171     something starting with __ and the normal name is an alias.  */
7172 #if defined (__stub_socket) || defined (__stub___socket)
7173 choke me
7174 #else
7175 char (*f) () = socket;
7176 #endif
7177 #ifdef __cplusplus
7178 }
7179 #endif
7180
7181 int
7182 main ()
7183 {
7184 return f != socket;
7185   ;
7186   return 0;
7187 }
7188 _ACEOF
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191   (eval $ac_link) 2>&5
7192   ac_status=$?
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); } &&
7195          { ac_try='test -s conftest$ac_exeext'
7196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197   (eval $ac_try) 2>&5
7198   ac_status=$?
7199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200   (exit $ac_status); }; }; then
7201   ac_cv_func_socket=yes
7202 else
7203   echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7205
7206 ac_cv_func_socket=no
7207 fi
7208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7209 fi
7210 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7211 echo "${ECHO_T}$ac_cv_func_socket" >&6
7212 if test $ac_cv_func_socket = yes; then
7213   echo "$as_me:$LINENO: result: using libc's socket" >&5
7214 echo "${ECHO_T}using libc's socket" >&6
7215 else
7216
7217 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7218 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7219 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7220   echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222   ac_check_lib_save_LIBS=$LIBS
7223 LIBS="-lxnet  $LIBS"
7224 cat >conftest.$ac_ext <<_ACEOF
7225 #line $LINENO "configure"
7226 /* confdefs.h.  */
7227 _ACEOF
7228 cat confdefs.h >>conftest.$ac_ext
7229 cat >>conftest.$ac_ext <<_ACEOF
7230 /* end confdefs.h.  */
7231
7232 /* Override any gcc2 internal prototype to avoid an error.  */
7233 #ifdef __cplusplus
7234 extern "C"
7235 #endif
7236 /* We use char because int might match the return type of a gcc2
7237    builtin and then its argument prototype would still apply.  */
7238 char socket ();
7239 int
7240 main ()
7241 {
7242 socket ();
7243   ;
7244   return 0;
7245 }
7246 _ACEOF
7247 rm -f conftest.$ac_objext conftest$ac_exeext
7248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7249   (eval $ac_link) 2>&5
7250   ac_status=$?
7251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252   (exit $ac_status); } &&
7253          { ac_try='test -s conftest$ac_exeext'
7254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255   (eval $ac_try) 2>&5
7256   ac_status=$?
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); }; }; then
7259   ac_cv_lib_xnet_socket=yes
7260 else
7261   echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7263
7264 ac_cv_lib_xnet_socket=no
7265 fi
7266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7267 LIBS=$ac_check_lib_save_LIBS
7268 fi
7269 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7270 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7271 if test $ac_cv_lib_xnet_socket = yes; then
7272   cat >>confdefs.h <<_ACEOF
7273 #define HAVE_LIBXNET 1
7274 _ACEOF
7275
7276   LIBS="-lxnet $LIBS"
7277
7278 fi
7279
7280
7281 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7282 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7283 if test "${ac_cv_lib_socket_socket+set}" = set; then
7284   echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286   ac_check_lib_save_LIBS=$LIBS
7287 LIBS="-lsocket  $LIBS"
7288 cat >conftest.$ac_ext <<_ACEOF
7289 #line $LINENO "configure"
7290 /* confdefs.h.  */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h.  */
7295
7296 /* Override any gcc2 internal prototype to avoid an error.  */
7297 #ifdef __cplusplus
7298 extern "C"
7299 #endif
7300 /* We use char because int might match the return type of a gcc2
7301    builtin and then its argument prototype would still apply.  */
7302 char socket ();
7303 int
7304 main ()
7305 {
7306 socket ();
7307   ;
7308   return 0;
7309 }
7310 _ACEOF
7311 rm -f conftest.$ac_objext conftest$ac_exeext
7312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7313   (eval $ac_link) 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); } &&
7317          { ac_try='test -s conftest$ac_exeext'
7318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319   (eval $ac_try) 2>&5
7320   ac_status=$?
7321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); }; }; then
7323   ac_cv_lib_socket_socket=yes
7324 else
7325   echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7327
7328 ac_cv_lib_socket_socket=no
7329 fi
7330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7331 LIBS=$ac_check_lib_save_LIBS
7332 fi
7333 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7334 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7335 if test $ac_cv_lib_socket_socket = yes; then
7336   cat >>confdefs.h <<_ACEOF
7337 #define HAVE_LIBSOCKET 1
7338 _ACEOF
7339
7340   LIBS="-lsocket $LIBS"
7341
7342 fi
7343
7344
7345 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7346 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7347 if test "${ac_cv_lib_inet_socket+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   ac_check_lib_save_LIBS=$LIBS
7351 LIBS="-linet  $LIBS"
7352 cat >conftest.$ac_ext <<_ACEOF
7353 #line $LINENO "configure"
7354 /* confdefs.h.  */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h.  */
7359
7360 /* Override any gcc2 internal prototype to avoid an error.  */
7361 #ifdef __cplusplus
7362 extern "C"
7363 #endif
7364 /* We use char because int might match the return type of a gcc2
7365    builtin and then its argument prototype would still apply.  */
7366 char socket ();
7367 int
7368 main ()
7369 {
7370 socket ();
7371   ;
7372   return 0;
7373 }
7374 _ACEOF
7375 rm -f conftest.$ac_objext conftest$ac_exeext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7377   (eval $ac_link) 2>&5
7378   ac_status=$?
7379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380   (exit $ac_status); } &&
7381          { ac_try='test -s conftest$ac_exeext'
7382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383   (eval $ac_try) 2>&5
7384   ac_status=$?
7385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); }; }; then
7387   ac_cv_lib_inet_socket=yes
7388 else
7389   echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7391
7392 ac_cv_lib_inet_socket=no
7393 fi
7394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7395 LIBS=$ac_check_lib_save_LIBS
7396 fi
7397 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7398 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7399 if test $ac_cv_lib_inet_socket = yes; then
7400   cat >>confdefs.h <<_ACEOF
7401 #define HAVE_LIBINET 1
7402 _ACEOF
7403
7404   LIBS="-linet $LIBS"
7405
7406 fi
7407
7408 fi
7409
7410
7411
7412 # -----------------------------------------------------------
7413 # Check whether user wants TCP wrappers support (default off)
7414 # -----------------------------------------------------------
7415 TCPW_MSG="no"
7416
7417 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7418 if test "${with_tcp_wrappers+set}" = set; then
7419   withval="$with_tcp_wrappers"
7420
7421     if test "x$withval" != "xno" ; then
7422        saved_LIBS="$LIBS"
7423        LIBS="$saved_LIBS -lwrap"
7424        echo "$as_me:$LINENO: checking for libwrap" >&5
7425 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7426        cat >conftest.$ac_ext <<_ACEOF
7427 #line $LINENO "configure"
7428 /* confdefs.h.  */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h.  */
7433  #include <tcpd.h>
7434              int deny_severity = 0;
7435              int allow_severity = 0;
7436              struct request_info *req;
7437 int
7438 main ()
7439 {
7440  hosts_access(req);
7441   ;
7442   return 0;
7443 }
7444 _ACEOF
7445 rm -f conftest.$ac_objext conftest$ac_exeext
7446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7447   (eval $ac_link) 2>&5
7448   ac_status=$?
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } &&
7451          { ac_try='test -s conftest$ac_exeext'
7452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453   (eval $ac_try) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); }; }; then
7457
7458             echo "$as_me:$LINENO: result: yes" >&5
7459 echo "${ECHO_T}yes" >&6
7460             cat >>confdefs.h <<\_ACEOF
7461 #define HAVE_LIBWRAP 1
7462 _ACEOF
7463
7464             TCPW_MSG="yes"
7465
7466 else
7467   echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7469
7470
7471             LIBS="$saved_LIBS -lwrap -lnsl"
7472             cat >conftest.$ac_ext <<_ACEOF
7473 #line $LINENO "configure"
7474 /* confdefs.h.  */
7475 _ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h.  */
7479  #include <tcpd.h>
7480                  int deny_severity = 0;
7481                  int allow_severity = 0;
7482                  struct request_info *req;
7483 int
7484 main ()
7485 {
7486  hosts_access(req);
7487   ;
7488   return 0;
7489 }
7490 _ACEOF
7491 rm -f conftest.$ac_objext conftest$ac_exeext
7492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7493   (eval $ac_link) 2>&5
7494   ac_status=$?
7495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496   (exit $ac_status); } &&
7497          { ac_try='test -s conftest$ac_exeext'
7498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499   (eval $ac_try) 2>&5
7500   ac_status=$?
7501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); }; }; then
7503
7504                  echo "$as_me:$LINENO: result: yes" >&5
7505 echo "${ECHO_T}yes" >&6
7506                  cat >>confdefs.h <<\_ACEOF
7507 #define HAVE_LIBWRAP 1
7508 _ACEOF
7509
7510                  TCPW_MSG="yes"
7511
7512 else
7513   echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7515
7516 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7517 echo "$as_me: error: *** libwrap missing" >&2;}
7518    { (exit 1); exit 1; }; }
7519
7520 fi
7521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7522
7523 fi
7524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7525     fi
7526
7527
7528 fi;
7529
7530 # ------------------------------------------
7531 # Where to place working dir
7532 # ------------------------------------------
7533 working_dir=`eval echo ${prefix}/var/bacula/working`
7534
7535 # Check whether --with-working-dir or --without-working-dir was given.
7536 if test "${with_working_dir+set}" = set; then
7537   withval="$with_working_dir"
7538
7539        if test "x$withval" != "xno" ; then
7540               working_dir=$withval
7541        fi
7542
7543
7544 fi;
7545
7546
7547
7548
7549 # ------------------------------------------
7550 # Where to place scriptdir (script files)
7551 # ------------------------------------------
7552 scriptdir=`eval echo ${sysconfdir}`
7553
7554 # Check whether --with-scriptdir or --without-scriptdir was given.
7555 if test "${with_scriptdir+set}" = set; then
7556   withval="$with_scriptdir"
7557
7558        if test "x$withval" != "xno" ; then
7559               scriptdir=$withval
7560        fi
7561
7562
7563 fi;
7564
7565
7566
7567
7568 # ------------------------------------------
7569 # Where to send dump email
7570 # ------------------------------------------
7571 dump_email=root@localhost
7572
7573 # Check whether --with-dump-email or --without-dump-email was given.
7574 if test "${with_dump_email+set}" = set; then
7575   withval="$with_dump_email"
7576
7577        if test "x$withval" != "xno" ; then
7578               dump_email=$withval
7579        fi
7580
7581
7582 fi;
7583
7584
7585
7586 # ------------------------------------------
7587 # Where to send job email
7588 # ------------------------------------------
7589 job_email=root@localhost
7590
7591 # Check whether --with-job-email or --without-job-email was given.
7592 if test "${with_job_email+set}" = set; then
7593   withval="$with_job_email"
7594
7595        if test "x$withval" != "xno" ; then
7596               job_email=$withval
7597        fi
7598
7599
7600 fi;
7601
7602
7603
7604 # ------------------------------------------
7605 # Where to find smtp host
7606 # ------------------------------------------
7607 smtp_host=localhost
7608
7609 # Check whether --with-smtp_host or --without-smtp_host was given.
7610 if test "${with_smtp_host+set}" = set; then
7611   withval="$with_smtp_host"
7612
7613        if test "x$withval" != "xno" ; then
7614               smtp_host=$withval
7615        fi
7616
7617
7618 fi;
7619
7620
7621
7622
7623 # ------------------------------------
7624 # Where to place pid files
7625 # ------------------------------------
7626 piddir=/var/run
7627
7628 # Check whether --with-pid-dir or --without-pid-dir was given.
7629 if test "${with_pid_dir+set}" = set; then
7630   withval="$with_pid_dir"
7631
7632         if test "x$withval" != "xno" ; then
7633             piddir=$withval
7634         fi
7635
7636
7637 fi;
7638
7639 cat >>confdefs.h <<_ACEOF
7640 #define _PATH_BACULA_PIDDIR "$piddir"
7641 _ACEOF
7642
7643
7644
7645
7646 # ------------------------------------
7647 # Where to place subsys "lock file"
7648 # ------------------------------------
7649 subsysdir=/var/run/subsys
7650
7651 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7652 if test "${with_subsys_dir+set}" = set; then
7653   withval="$with_subsys_dir"
7654
7655         if test "x$withval" != "xno" ; then
7656             subsysdir=$withval
7657         fi
7658
7659
7660 fi;
7661
7662
7663
7664
7665
7666 # ------------------------------------
7667 # Where to start assigning ports
7668 # ------------------------------------
7669 baseport=9101
7670
7671 # Check whether --with-baseport or --without-baseport was given.
7672 if test "${with_baseport+set}" = set; then
7673   withval="$with_baseport"
7674
7675         if test "x$withval" != "xno" ; then
7676              baseport=$withval
7677         fi
7678
7679
7680 fi;
7681
7682
7683 dir_port=`expr $baseport`
7684 fd_port=`expr $baseport + 1`
7685 sd_port=`expr $fd_port + 1`
7686
7687
7688
7689
7690
7691
7692 # ------------------------------------------
7693 # Generate passwords
7694 # ------------------------------------------
7695 dir_password=
7696
7697 # Check whether --with-dir-password or --without-dir-password was given.
7698 if test "${with_dir_password+set}" = set; then
7699   withval="$with_dir_password"
7700
7701        if test "x$withval" != "xno" ; then
7702            dir_password=$withval
7703        fi
7704
7705
7706 fi;
7707
7708 if test "x$dir_password" = "x" ; then
7709    if test "x$OPENSSL" = "xnone" ; then
7710 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7711       key=`autoconf/randpass 33`
7712    else
7713       key=`openssl rand -base64 33`
7714    fi
7715    dir_password=$key
7716 fi
7717
7718 fd_password=
7719
7720 # Check whether --with-fd-password or --without-fd-password was given.
7721 if test "${with_fd_password+set}" = set; then
7722   withval="$with_fd_password"
7723
7724        if test "x$withval" != "xno" ; then
7725            fd_password=$withval
7726        fi
7727
7728
7729 fi;
7730
7731 if test "x$fd_password" = "x" ; then
7732    if test "x$OPENSSL" = "xnone" ; then
7733 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7734       key=`autoconf/randpass 37`
7735    else
7736       key=`openssl rand -base64 33`
7737    fi
7738    fd_password=$key
7739 fi
7740
7741 sd_password=
7742
7743 # Check whether --with-sd-password or --without-sd-password was given.
7744 if test "${with_sd_password+set}" = set; then
7745   withval="$with_sd_password"
7746
7747        if test "x$withval" != "xno" ; then
7748            sd_password=$withval
7749        fi
7750
7751
7752 fi;
7753
7754 if test "x$sd_password" = "x" ; then
7755    if test "x$OPENSSL" = "xnone" ; then
7756 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7757       key=`autoconf/randpass 41`
7758    else
7759       key=`openssl rand -base64 33`
7760    fi
7761    sd_password=$key
7762 fi
7763
7764 mon_dir_password=
7765
7766 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7767 if test "${with_mon_dir_password+set}" = set; then
7768   withval="$with_mon_dir_password"
7769
7770        if test "x$withval" != "xno" ; then
7771            mon_dir_password=$withval
7772        fi
7773
7774
7775 fi;
7776
7777 if test "x$mon_dir_password" = "x" ; then
7778    if test "x$OPENSSL" = "xnone" ; then
7779 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7780       key=`autoconf/randpass 33`
7781    else
7782       key=`openssl rand -base64 33`
7783    fi
7784    mon_dir_password=$key
7785 fi
7786
7787 mon_fd_password=
7788
7789 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7790 if test "${with_mon_fd_password+set}" = set; then
7791   withval="$with_mon_fd_password"
7792
7793        if test "x$withval" != "xno" ; then
7794            mon_fd_password=$withval
7795        fi
7796
7797
7798 fi;
7799
7800 if test "x$mon_fd_password" = "x" ; then
7801    if test "x$OPENSSL" = "xnone" ; then
7802 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7803       key=`autoconf/randpass 37`
7804    else
7805       key=`openssl rand -base64 33`
7806    fi
7807    mon_fd_password=$key
7808 fi
7809
7810 mon_sd_password=
7811
7812 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7813 if test "${with_mon_sd_password+set}" = set; then
7814   withval="$with_mon_sd_password"
7815
7816        if test "x$withval" != "xno" ; then
7817            mon_sd_password=$withval
7818        fi
7819
7820
7821 fi;
7822
7823 if test "x$mon_sd_password" = "x" ; then
7824    if test "x$OPENSSL" = "xnone" ; then
7825 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7826       key=`autoconf/randpass 41`
7827    else
7828       key=`openssl rand -base64 33`
7829    fi
7830    mon_sd_password=$key
7831 fi
7832
7833
7834
7835
7836
7837
7838
7839
7840 # -------------------------------------------------------------------------
7841 #  Set variables for bimagemgr installation
7842 # -------------------------------------------------------------------------
7843 bimagemgr_cgidir=/var/www/cgi-bin
7844
7845 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
7846 if test "${with_bimagemgr_cgidir+set}" = set; then
7847   withval="$with_bimagemgr_cgidir"
7848
7849        if test "x$withval" != "xno" ; then
7850            bimagemgr_cgidir=$withval
7851        fi
7852
7853
7854 fi;
7855
7856 bimagemgr_docdir=/var/www/html
7857
7858 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
7859 if test "${with_bimagemgr_docdir+set}" = set; then
7860   withval="$with_bimagemgr_docdir"
7861
7862        if test "x$withval" != "xno" ; then
7863            bimagemgr_docdir=$withval
7864        fi
7865
7866
7867 fi;
7868
7869 bimagemgr_binowner=root
7870
7871 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
7872 if test "${with_bimagemgr_binowner+set}" = set; then
7873   withval="$with_bimagemgr_binowner"
7874
7875        if test "x$withval" != "xno" ; then
7876            bimagemgr_binowner=$withval
7877        fi
7878
7879
7880 fi;
7881
7882 bimagemgr_bingroup=root
7883
7884 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
7885 if test "${with_bimagemgr_bingroup+set}" = set; then
7886   withval="$with_bimagemgr_bingroup"
7887
7888        if test "x$withval" != "xno" ; then
7889            bimagemgr_bingroup=$withval
7890        fi
7891
7892
7893 fi;
7894
7895 bimagemgr_dataowner=apache
7896
7897 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
7898 if test "${with_bimagemgr_dataowner+set}" = set; then
7899   withval="$with_bimagemgr_dataowner"
7900
7901        if test "x$withval" != "xno" ; then
7902            bimagemgr_dataowner=$withval
7903        fi
7904
7905
7906 fi;
7907
7908 bimagemgr_datagroup=apache
7909
7910 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
7911 if test "${with_bimagemgr_datagroup+set}" = set; then
7912   withval="$with_bimagemgr_datagroup"
7913
7914        if test "x$withval" != "xno" ; then
7915            bimagemgr_datagroup=$withval
7916        fi
7917
7918
7919 fi;
7920
7921
7922
7923
7924
7925
7926
7927
7928 #
7929 # Handle users and groups for each daemon
7930 #
7931 dir_user=
7932
7933 # Check whether --with-dir_user or --without-dir_user was given.
7934 if test "${with_dir_user+set}" = set; then
7935   withval="$with_dir_user"
7936
7937         if test "x$withval" != "x" ; then
7938              dir_user=$withval
7939         fi
7940
7941
7942 fi;
7943
7944 dir_group=
7945
7946 # Check whether --with-dir_group or --without-dir_group was given.
7947 if test "${with_dir_group+set}" = set; then
7948   withval="$with_dir_group"
7949
7950         if test "x$withval" != "x" ; then
7951              dir_group=$withval
7952         fi
7953
7954
7955 fi;
7956
7957 sd_user=
7958
7959 # Check whether --with-sd_user or --without-sd_user was given.
7960 if test "${with_sd_user+set}" = set; then
7961   withval="$with_sd_user"
7962
7963         if test "x$withval" != "x" ; then
7964              sd_user=$withval
7965         fi
7966
7967
7968 fi;
7969
7970 sd_group=
7971
7972 # Check whether --with-sd_group or --without-sd_group was given.
7973 if test "${with_sd_group+set}" = set; then
7974   withval="$with_sd_group"
7975
7976         if test "x$withval" != "x" ; then
7977              sd_group=$withval
7978         fi
7979
7980
7981 fi;
7982
7983 fd_user=
7984
7985 # Check whether --with-fd_user or --without-fd_user was given.
7986 if test "${with_fd_user+set}" = set; then
7987   withval="$with_fd_user"
7988
7989         if test "x$withval" != "x" ; then
7990              fd_user=$withval
7991         fi
7992
7993
7994 fi;
7995
7996 fd_group=
7997
7998 # Check whether --with-fd_group or --without-fd_group was given.
7999 if test "${with_fd_group+set}" = set; then
8000   withval="$with_fd_group"
8001
8002         if test "x$withval" != "x" ; then
8003              fd_group=$withval
8004         fi
8005
8006
8007 fi;
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019 #
8020 # allow setting default executable permissions
8021 #
8022 SBINPERM=0754
8023
8024 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8025 if test "${with_sbin_perm+set}" = set; then
8026   withval="$with_sbin_perm"
8027
8028         if test "x$withval" != "x" ; then
8029             SBINPERM=$withval
8030         fi
8031
8032
8033 fi;
8034
8035
8036
8037 # ------------------------------------------------
8038 # Bacula check for various SQL database engines
8039 # ------------------------------------------------
8040
8041 db_found=no
8042 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8043 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8044
8045 # Check whether --with-postgresql or --without-postgresql was given.
8046 if test "${with_postgresql+set}" = set; then
8047   withval="$with_postgresql"
8048
8049   if test "$withval" != "no"; then
8050       if test "$db_found" = "yes"; then
8051           echo "$as_me:$LINENO: result: error" >&5
8052 echo "${ECHO_T}error" >&6
8053           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8054 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8055    { (exit 1); exit 1; }; };
8056       fi
8057       if test "$withval" = "yes"; then
8058           if test -f /usr/local/include/libpq-fe.h; then
8059               POSTGRESQL_INCDIR=/usr/local/include
8060               POSTGRESQL_LIBDIR=/usr/local/lib
8061               POSTGRESQL_BINDIR=/usr/local/bin
8062           elif test -f /usr/include/libpq-fe.h; then
8063               POSTGRESQL_INCDIR=/usr/include
8064               POSTGRESQL_LIBDIR=/usr/lib
8065               POSTGRESQL_BINDIR=/usr/bin
8066           elif test -f /usr/include/pgsql/libpq-fe.h; then
8067               POSTGRESQL_INCDIR=/usr/include/pgsql
8068               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8069               POSTGRESQL_BINDIR=/usr/bin
8070           elif test -f /usr/include/postgresql/libpq-fe.h; then
8071               POSTGRESQL_INCDIR=/usr/include/postgresql
8072               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8073               POSTGRESQL_BINDIR=/usr/bin
8074           else
8075               echo "$as_me:$LINENO: result: no" >&5
8076 echo "${ECHO_T}no" >&6
8077               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8078 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8079    { (exit 1); exit 1; }; }
8080           fi
8081       elif test -f $withval/include/libpq-fe.h; then
8082           POSTGRESQL_INCDIR=$withval/include
8083           POSTGRESQL_LIBDIR=$withval/lib
8084           POSTGRESQL_BINDIR=$withval/bin
8085       elif test -f $withval/include/postgresql/libpq-fe.h; then
8086           POSTGRESQL_INCDIR=$withval/include/postgresql
8087           POSTGRESQL_LIBDIR=$withval/lib
8088           POSTGRESQL_BINDIR=$withval/bin
8089       else
8090           echo "$as_me:$LINENO: result: no" >&5
8091 echo "${ECHO_T}no" >&6
8092           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8093 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8094    { (exit 1); exit 1; }; }
8095       fi
8096       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8097       echo "$as_me:$LINENO: checking for crypt" >&5
8098 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8099 if test "${ac_cv_func_crypt+set}" = set; then
8100   echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102   cat >conftest.$ac_ext <<_ACEOF
8103 #line $LINENO "configure"
8104 /* confdefs.h.  */
8105 _ACEOF
8106 cat confdefs.h >>conftest.$ac_ext
8107 cat >>conftest.$ac_ext <<_ACEOF
8108 /* end confdefs.h.  */
8109 /* System header to define __stub macros and hopefully few prototypes,
8110     which can conflict with char crypt (); below.
8111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8112     <limits.h> exists even on freestanding compilers.  */
8113 #ifdef __STDC__
8114 # include <limits.h>
8115 #else
8116 # include <assert.h>
8117 #endif
8118 /* Override any gcc2 internal prototype to avoid an error.  */
8119 #ifdef __cplusplus
8120 extern "C"
8121 {
8122 #endif
8123 /* We use char because int might match the return type of a gcc2
8124    builtin and then its argument prototype would still apply.  */
8125 char crypt ();
8126 /* The GNU C library defines this for functions which it implements
8127     to always fail with ENOSYS.  Some functions are actually named
8128     something starting with __ and the normal name is an alias.  */
8129 #if defined (__stub_crypt) || defined (__stub___crypt)
8130 choke me
8131 #else
8132 char (*f) () = crypt;
8133 #endif
8134 #ifdef __cplusplus
8135 }
8136 #endif
8137
8138 int
8139 main ()
8140 {
8141 return f != crypt;
8142   ;
8143   return 0;
8144 }
8145 _ACEOF
8146 rm -f conftest.$ac_objext conftest$ac_exeext
8147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8148   (eval $ac_link) 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); } &&
8152          { ac_try='test -s conftest$ac_exeext'
8153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154   (eval $ac_try) 2>&5
8155   ac_status=$?
8156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157   (exit $ac_status); }; }; then
8158   ac_cv_func_crypt=yes
8159 else
8160   echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.$ac_ext >&5
8162
8163 ac_cv_func_crypt=no
8164 fi
8165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8166 fi
8167 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8168 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8169 if test $ac_cv_func_crypt = yes; then
8170   :
8171 else
8172   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8173 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8174 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8175   echo $ECHO_N "(cached) $ECHO_C" >&6
8176 else
8177   ac_check_lib_save_LIBS=$LIBS
8178 LIBS="-lcrypt  $LIBS"
8179 cat >conftest.$ac_ext <<_ACEOF
8180 #line $LINENO "configure"
8181 /* confdefs.h.  */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h.  */
8186
8187 /* Override any gcc2 internal prototype to avoid an error.  */
8188 #ifdef __cplusplus
8189 extern "C"
8190 #endif
8191 /* We use char because int might match the return type of a gcc2
8192    builtin and then its argument prototype would still apply.  */
8193 char crypt ();
8194 int
8195 main ()
8196 {
8197 crypt ();
8198   ;
8199   return 0;
8200 }
8201 _ACEOF
8202 rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8204   (eval $ac_link) 2>&5
8205   ac_status=$?
8206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207   (exit $ac_status); } &&
8208          { ac_try='test -s conftest$ac_exeext'
8209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8210   (eval $ac_try) 2>&5
8211   ac_status=$?
8212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213   (exit $ac_status); }; }; then
8214   ac_cv_lib_crypt_crypt=yes
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219 ac_cv_lib_crypt_crypt=no
8220 fi
8221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8222 LIBS=$ac_check_lib_save_LIBS
8223 fi
8224 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8225 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8226 if test $ac_cv_lib_crypt_crypt = yes; then
8227   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8228 fi
8229
8230 fi
8231
8232       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8233       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8234       SQL_BINDIR=$POSTGRESQL_BINDIR
8235       cat >>confdefs.h <<\_ACEOF
8236 #define HAVE_POSTGRESQL 1
8237 _ACEOF
8238
8239       echo "$as_me:$LINENO: result: yes" >&5
8240 echo "${ECHO_T}yes" >&6
8241       db_found=yes
8242       support_postgresql=yes
8243       db_name=PostgreSQL
8244       DB_NAME=postgresql
8245   else
8246       echo "$as_me:$LINENO: result: no" >&5
8247 echo "${ECHO_T}no" >&6
8248   fi
8249
8250 else
8251
8252   echo "$as_me:$LINENO: result: no" >&5
8253 echo "${ECHO_T}no" >&6
8254
8255 fi;
8256
8257
8258
8259
8260
8261
8262
8263 db_found=no
8264 echo "$as_me:$LINENO: checking for MySQL support" >&5
8265 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8266
8267 # Check whether --with-mysql or --without-mysql was given.
8268 if test "${with_mysql+set}" = set; then
8269   withval="$with_mysql"
8270
8271   if test "$withval" != "no"; then
8272         if test "$withval" = "yes"; then
8273                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8274                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8275                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8276                         MYSQL_BINDIR=/usr/local/mysql/bin
8277                 elif test -f /usr/include/mysql/mysql.h; then
8278                         MYSQL_INCDIR=/usr/include/mysql
8279                         MYSQL_LIBDIR=/usr/lib/mysql
8280                         MYSQL_BINDIR=/usr/bin
8281                 elif test -f /usr/include/mysql.h; then
8282                         MYSQL_INCDIR=/usr/include
8283                         MYSQL_LIBDIR=/usr/lib
8284                         MYSQL_BINDIR=/usr/bin
8285                 elif test -f /usr/local/include/mysql/mysql.h; then
8286                         MYSQL_INCDIR=/usr/local/include/mysql
8287                         MYSQL_LIBDIR=/usr/local/lib/mysql
8288                         MYSQL_BINDIR=/usr/local/bin
8289                 elif test -f /usr/local/include/mysql.h; then
8290                         MYSQL_INCDIR=/usr/local/include
8291                         MYSQL_LIBDIR=/usr/local/lib
8292                         MYSQL_BINDIR=/usr/local/bin
8293                 else
8294                    echo "$as_me:$LINENO: result: no" >&5
8295 echo "${ECHO_T}no" >&6
8296                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8297 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8298    { (exit 1); exit 1; }; }
8299                 fi
8300         else
8301                 if test -f $withval/include/mysql/mysql.h; then
8302                         MYSQL_INCDIR=$withval/include/mysql
8303                         MYSQL_LIBDIR=$withval/lib/mysql
8304                         MYSQL_BINDIR=$withval/bin
8305                 elif test -f $withval/include/mysql.h; then
8306                         MYSQL_INCDIR=$withval/include
8307                         MYSQL_LIBDIR=$withval/lib
8308                         MYSQL_BINDIR=$withval/bin
8309                 else
8310                    echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8312                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8313 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8314    { (exit 1); exit 1; }; }
8315                 fi
8316         fi
8317     SQL_INCLUDE=-I$MYSQL_INCDIR
8318     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8319        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8320        cat >>confdefs.h <<\_ACEOF
8321 #define HAVE_THREAD_SAFE_MYSQL 1
8322 _ACEOF
8323
8324     else
8325        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8326     fi
8327     SQL_BINDIR=$MYSQL_BINDIR
8328
8329     cat >>confdefs.h <<\_ACEOF
8330 #define HAVE_MYSQL 1
8331 _ACEOF
8332
8333     echo "$as_me:$LINENO: result: yes" >&5
8334 echo "${ECHO_T}yes" >&6
8335     db_found=yes
8336     support_mysql=yes
8337     db_name=MySQL
8338     DB_NAME=mysql
8339
8340   else
8341         echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6
8343   fi
8344
8345
8346 fi;
8347
8348
8349 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8350 if test "${with_embedded_mysql+set}" = set; then
8351   withval="$with_embedded_mysql"
8352
8353   if test "$withval" != "no"; then
8354         if test "$withval" = "yes"; then
8355                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8356                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8357                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8358                         MYSQL_BINDIR=/usr/local/mysql/bin
8359                 elif test -f /usr/include/mysql/mysql.h; then
8360                         MYSQL_INCDIR=/usr/include/mysql
8361                         MYSQL_LIBDIR=/usr/lib/mysql
8362                         MYSQL_BINDIR=/usr/bin
8363                 elif test -f /usr/include/mysql.h; then
8364                         MYSQL_INCDIR=/usr/include
8365                         MYSQL_LIBDIR=/usr/lib
8366                         MYSQL_BINDIR=/usr/bin
8367                 elif test -f /usr/local/include/mysql/mysql.h; then
8368                         MYSQL_INCDIR=/usr/local/include/mysql
8369                         MYSQL_LIBDIR=/usr/local/lib/mysql
8370                         MYSQL_BINDIR=/usr/local/bin
8371                 elif test -f /usr/local/include/mysql.h; then
8372                         MYSQL_INCDIR=/usr/local/include
8373                         MYSQL_LIBDIR=/usr/local/lib
8374                         MYSQL_BINDIR=/usr/local/bin
8375                 else
8376                    echo "$as_me:$LINENO: result: no" >&5
8377 echo "${ECHO_T}no" >&6
8378                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8379 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8380    { (exit 1); exit 1; }; }
8381                 fi
8382         else
8383                 if test -f $withval/include/mysql/mysql.h; then
8384                         MYSQL_INCDIR=$withval/include/mysql
8385                         MYSQL_LIBDIR=$withval/lib/mysql
8386                         MYSQL_BINDIR=$withval/bin
8387                 elif test -f $withval/include/mysql.h; then
8388                         MYSQL_INCDIR=$withval/include
8389                         MYSQL_LIBDIR=$withval/lib
8390                         MYSQL_BINDIR=$withval/bin
8391                 else
8392                    echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6
8394                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8395 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8396    { (exit 1); exit 1; }; }
8397                 fi
8398         fi
8399     SQL_INCLUDE=-I$MYSQL_INCDIR
8400     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8401     SQL_BINDIR=$MYSQL_BINDIR
8402
8403     cat >>confdefs.h <<\_ACEOF
8404 #define HAVE_MYSQL 1
8405 _ACEOF
8406
8407     cat >>confdefs.h <<\_ACEOF
8408 #define HAVE_EMBEDDED_MYSQL 1
8409 _ACEOF
8410
8411     echo "$as_me:$LINENO: result: yes" >&5
8412 echo "${ECHO_T}yes" >&6
8413     db_found=yes
8414     support_mysql=yes
8415     db_name=MySQL
8416     DB_NAME=mysql
8417
8418   else
8419         echo "$as_me:$LINENO: result: no" >&5
8420 echo "${ECHO_T}no" >&6
8421   fi
8422
8423
8424 fi;
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434 db_found=no
8435 echo "$as_me:$LINENO: checking for SQLite support" >&5
8436 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8437
8438 # Check whether --with-sqlite or --without-sqlite was given.
8439 if test "${with_sqlite+set}" = set; then
8440   withval="$with_sqlite"
8441
8442   if test "$withval" != "no"; then
8443      if test "$withval" = "yes"; then
8444         if test -f /usr/local/include/sqlite.h; then
8445            SQLITE_INCDIR=/usr/local/include
8446            SQLITE_LIBDIR=/usr/local/lib
8447            SQLITE_BINDIR=/usr/local/bin
8448         elif test -f /usr/include/sqlite.h; then
8449            SQLITE_INCDIR=/usr/include
8450            SQLITE_LIBDIR=/usr/lib
8451            SQLITE_BINDIR=/usr/bin
8452         elif test -f $prefix/include/sqlite.h; then
8453            SQLITE_INCDIR=$prefix/include
8454            SQLITE_LIBDIR=$prefix/lib
8455            SQLITE_BINDIR=$prefix/bin
8456         else
8457            echo "$as_me:$LINENO: result: no" >&5
8458 echo "${ECHO_T}no" >&6
8459            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8460 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8461    { (exit 1); exit 1; }; }
8462         fi
8463      else
8464         if test -f $withval/sqlite.h; then
8465            SQLITE_INCDIR=$withval
8466            SQLITE_LIBDIR=$withval
8467            SQLITE_BINDIR=$withval
8468         elif test -f $withval/include/sqlite.h; then
8469            SQLITE_INCDIR=$withval/include
8470            SQLITE_LIBDIR=$withval/lib
8471            SQLITE_BINDIR=$withval/bin
8472         else
8473            echo "$as_me:$LINENO: result: no" >&5
8474 echo "${ECHO_T}no" >&6
8475            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8476 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8477    { (exit 1); exit 1; }; }
8478         fi
8479      fi
8480      SQL_INCLUDE=-I$SQLITE_INCDIR
8481      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8482      SQL_BINDIR=$SQLITE_BINDIR
8483
8484      cat >>confdefs.h <<\_ACEOF
8485 #define HAVE_SQLITE 1
8486 _ACEOF
8487
8488      echo "$as_me:$LINENO: result: yes" >&5
8489 echo "${ECHO_T}yes" >&6
8490      db_found=yes
8491      support_sqlite=yes
8492      db_name=SQLite
8493      DB_NAME=sqlite
8494
8495   else
8496      echo "$as_me:$LINENO: result: no" >&5
8497 echo "${ECHO_T}no" >&6
8498   fi
8499
8500 else
8501
8502   echo "$as_me:$LINENO: result: no" >&5
8503 echo "${ECHO_T}no" >&6
8504
8505 fi;
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515 cat >>confdefs.h <<\_ACEOF
8516 #define PROTOTYPES 1
8517 _ACEOF
8518
8519
8520 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8521     if test -z "$CCOPTS"; then
8522         CCOPTS='-g -O2 -Wall'
8523     fi
8524     CFLAGS="$CCOPTS"
8525 fi
8526
8527
8528
8529
8530 largefile_support="no"
8531
8532    # Check whether --enable-largefile or --disable-largefile was given.
8533 if test "${enable_largefile+set}" = set; then
8534   enableval="$enable_largefile"
8535
8536 fi;
8537    if test "$enable_largefile" != no; then
8538      if test -n "$ac_tool_prefix"; then
8539   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8540 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8541 echo "$as_me:$LINENO: checking for $ac_word" >&5
8542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8543 if test "${ac_cv_prog_GETCONF+set}" = set; then
8544   echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546   if test -n "$GETCONF"; then
8547   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8548 else
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH
8551 do
8552   IFS=$as_save_IFS
8553   test -z "$as_dir" && as_dir=.
8554   for ac_exec_ext in '' $ac_executable_extensions; do
8555   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8556     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8558     break 2
8559   fi
8560 done
8561 done
8562
8563 fi
8564 fi
8565 GETCONF=$ac_cv_prog_GETCONF
8566 if test -n "$GETCONF"; then
8567   echo "$as_me:$LINENO: result: $GETCONF" >&5
8568 echo "${ECHO_T}$GETCONF" >&6
8569 else
8570   echo "$as_me:$LINENO: result: no" >&5
8571 echo "${ECHO_T}no" >&6
8572 fi
8573
8574 fi
8575 if test -z "$ac_cv_prog_GETCONF"; then
8576   ac_ct_GETCONF=$GETCONF
8577   # Extract the first word of "getconf", so it can be a program name with args.
8578 set dummy getconf; ac_word=$2
8579 echo "$as_me:$LINENO: checking for $ac_word" >&5
8580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8581 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8582   echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584   if test -n "$ac_ct_GETCONF"; then
8585   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8586 else
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8589 do
8590   IFS=$as_save_IFS
8591   test -z "$as_dir" && as_dir=.
8592   for ac_exec_ext in '' $ac_executable_extensions; do
8593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8594     ac_cv_prog_ac_ct_GETCONF="getconf"
8595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8596     break 2
8597   fi
8598 done
8599 done
8600
8601 fi
8602 fi
8603 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8604 if test -n "$ac_ct_GETCONF"; then
8605   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8606 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8607 else
8608   echo "$as_me:$LINENO: result: no" >&5
8609 echo "${ECHO_T}no" >&6
8610 fi
8611
8612   GETCONF=$ac_ct_GETCONF
8613 else
8614   GETCONF="$ac_cv_prog_GETCONF"
8615 fi
8616
8617      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8618 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8619 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8620   echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8623         ac_cv_sys_largefile_CFLAGS=no
8624         case "$host_os" in
8625            # IRIX 6.2 and later require cc -n32.
8626            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8627              if test "$GCC" != yes; then
8628                ac_cv_sys_largefile_CFLAGS=-n32
8629              fi
8630              ac_save_CC="$CC"
8631              CC="$CC $ac_cv_sys_largefile_CFLAGS"
8632              cat >conftest.$ac_ext <<_ACEOF
8633 #line $LINENO "configure"
8634 /* confdefs.h.  */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h.  */
8639
8640 int
8641 main ()
8642 {
8643
8644   ;
8645   return 0;
8646 }
8647 _ACEOF
8648 rm -f conftest.$ac_objext conftest$ac_exeext
8649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8650   (eval $ac_link) 2>&5
8651   ac_status=$?
8652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653   (exit $ac_status); } &&
8654          { ac_try='test -s conftest$ac_exeext'
8655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656   (eval $ac_try) 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; }; then
8660   :
8661 else
8662   echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8664
8665 ac_cv_sys_largefile_CFLAGS=no
8666 fi
8667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8668              CC="$ac_save_CC"
8669            esac
8670       }
8671 fi
8672 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8673 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8674      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8675 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8676 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8677   echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8680         ac_cv_sys_largefile_LDFLAGS=no
8681
8682       }
8683 fi
8684 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8685 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8686      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8687 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8688 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8689   echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
8691   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8692         ac_cv_sys_largefile_LIBS=no
8693
8694       }
8695 fi
8696 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8697 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8698
8699      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8700        case "$ac_flag" in
8701        no) ;;
8702        -D_FILE_OFFSET_BITS=*) ;;
8703        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8704        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8705        -D?* | -I?*)
8706          case "$ac_flag" in
8707    no) ;;
8708    ?*)
8709      case "$CPPFLAGS" in
8710      '') CPPFLAGS="$ac_flag" ;;
8711      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8712      esac ;;
8713    esac ;;
8714        *)
8715          case "$ac_flag" in
8716    no) ;;
8717    ?*)
8718      case "$CFLAGS" in
8719      '') CFLAGS="$ac_flag" ;;
8720      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8721      esac ;;
8722    esac ;;
8723        esac
8724      done
8725      case "$ac_cv_sys_largefile_LDFLAGS" in
8726    no) ;;
8727    ?*)
8728      case "$LDFLAGS" in
8729      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8730      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8731      esac ;;
8732    esac
8733      case "$ac_cv_sys_largefile_LIBS" in
8734    no) ;;
8735    ?*)
8736      case "$LIBS" in
8737      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8738      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8739      esac ;;
8740    esac
8741      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8742 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8743 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8744   echo $ECHO_N "(cached) $ECHO_C" >&6
8745 else
8746   ac_cv_sys_file_offset_bits=no
8747       ac_cv_sys_file_offset_bits=64
8748       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8749         case "$ac_flag" in
8750         -D_FILE_OFFSET_BITS)
8751           ac_cv_sys_file_offset_bits=1 ;;
8752         -D_FILE_OFFSET_BITS=*)
8753           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8754         esac
8755       done
8756
8757 fi
8758 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8759 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8760    if test "$ac_cv_sys_file_offset_bits" != no; then
8761
8762 cat >>confdefs.h <<_ACEOF
8763 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8764 _ACEOF
8765
8766    fi
8767      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8768 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8769 if test "${ac_cv_sys_largefile_source+set}" = set; then
8770   echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
8772   ac_cv_sys_largefile_source=no
8773       ac_cv_sys_largefile_source=1
8774       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8775         case "$ac_flag" in
8776         -D_LARGEFILE_SOURCE)
8777           ac_cv_sys_largefile_source=1 ;;
8778         -D_LARGEFILE_SOURCE=*)
8779           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8780         esac
8781       done
8782
8783 fi
8784 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8785 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8786    if test "$ac_cv_sys_largefile_source" != no; then
8787
8788 cat >>confdefs.h <<_ACEOF
8789 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8790 _ACEOF
8791
8792    fi
8793      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8794 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8795 if test "${ac_cv_sys_large_files+set}" = set; then
8796   echo $ECHO_N "(cached) $ECHO_C" >&6
8797 else
8798   ac_cv_sys_large_files=no
8799       ac_cv_sys_large_files=1
8800       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8801         case "$ac_flag" in
8802         -D_LARGE_FILES)
8803           ac_cv_sys_large_files=1 ;;
8804         -D_LARGE_FILES=*)
8805           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8806         esac
8807       done
8808
8809 fi
8810 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8811 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8812    if test "$ac_cv_sys_large_files" != no; then
8813
8814 cat >>confdefs.h <<_ACEOF
8815 #define _LARGE_FILES $ac_cv_sys_large_files
8816 _ACEOF
8817
8818    fi
8819    fi
8820
8821
8822
8823 echo "$as_me:$LINENO: checking for X" >&5
8824 echo $ECHO_N "checking for X... $ECHO_C" >&6
8825
8826
8827 # Check whether --with-x or --without-x was given.
8828 if test "${with_x+set}" = set; then
8829   withval="$with_x"
8830
8831 fi;
8832 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8833 if test "x$with_x" = xno; then
8834   # The user explicitly disabled X.
8835   have_x=disabled
8836 else
8837   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8838     # Both variables are already set.
8839     have_x=yes
8840   else
8841     if test "${ac_cv_have_x+set}" = set; then
8842   echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844   # One or both of the vars are not set, and there is no cached value.
8845 ac_x_includes=no ac_x_libraries=no
8846 rm -fr conftest.dir
8847 if mkdir conftest.dir; then
8848   cd conftest.dir
8849   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8850   cat >Imakefile <<'_ACEOF'
8851 acfindx:
8852         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8853 _ACEOF
8854   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8855     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8856     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8857     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8858     for ac_extension in a so sl; do
8859       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8860          test -f $ac_im_libdir/libX11.$ac_extension; then
8861         ac_im_usrlibdir=$ac_im_libdir; break
8862       fi
8863     done
8864     # Screen out bogus values from the imake configuration.  They are
8865     # bogus both because they are the default anyway, and because
8866     # using them would break gcc on systems where it needs fixed includes.
8867     case $ac_im_incroot in
8868         /usr/include) ;;
8869         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8870     esac
8871     case $ac_im_usrlibdir in
8872         /usr/lib | /lib) ;;
8873         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8874     esac
8875   fi
8876   cd ..
8877   rm -fr conftest.dir
8878 fi
8879
8880 # Standard set of common directories for X headers.
8881 # Check X11 before X11Rn because it is often a symlink to the current release.
8882 ac_x_header_dirs='
8883 /usr/X11/include
8884 /usr/X11R6/include
8885 /usr/X11R5/include
8886 /usr/X11R4/include
8887
8888 /usr/include/X11
8889 /usr/include/X11R6
8890 /usr/include/X11R5
8891 /usr/include/X11R4
8892
8893 /usr/local/X11/include
8894 /usr/local/X11R6/include
8895 /usr/local/X11R5/include
8896 /usr/local/X11R4/include
8897
8898 /usr/local/include/X11
8899 /usr/local/include/X11R6
8900 /usr/local/include/X11R5
8901 /usr/local/include/X11R4
8902
8903 /usr/X386/include
8904 /usr/x386/include
8905 /usr/XFree86/include/X11
8906
8907 /usr/include
8908 /usr/local/include
8909 /usr/unsupported/include
8910 /usr/athena/include
8911 /usr/local/x11r5/include
8912 /usr/lpp/Xamples/include
8913
8914 /usr/openwin/include
8915 /usr/openwin/share/include'
8916
8917 if test "$ac_x_includes" = no; then
8918   # Guess where to find include files, by looking for Intrinsic.h.
8919   # First, try using that file with no special directory specified.
8920   cat >conftest.$ac_ext <<_ACEOF
8921 #line $LINENO "configure"
8922 /* confdefs.h.  */
8923 _ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h.  */
8927 #include <X11/Intrinsic.h>
8928 _ACEOF
8929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8931   ac_status=$?
8932   grep -v '^ *+' conftest.er1 >conftest.err
8933   rm -f conftest.er1
8934   cat conftest.err >&5
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); } >/dev/null; then
8937   if test -s conftest.err; then
8938     ac_cpp_err=$ac_c_preproc_warn_flag
8939   else
8940     ac_cpp_err=
8941   fi
8942 else
8943   ac_cpp_err=yes
8944 fi
8945 if test -z "$ac_cpp_err"; then
8946   # We can compile using X headers with no special include directory.
8947 ac_x_includes=
8948 else
8949   echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8951
8952   for ac_dir in $ac_x_header_dirs; do
8953   if test -r "$ac_dir/X11/Intrinsic.h"; then
8954     ac_x_includes=$ac_dir
8955     break
8956   fi
8957 done
8958 fi
8959 rm -f conftest.err conftest.$ac_ext
8960 fi # $ac_x_includes = no
8961
8962 if test "$ac_x_libraries" = no; then
8963   # Check for the libraries.
8964   # See if we find them without any special options.
8965   # Don't add to $LIBS permanently.
8966   ac_save_LIBS=$LIBS
8967   LIBS="-lXt $LIBS"
8968   cat >conftest.$ac_ext <<_ACEOF
8969 #line $LINENO "configure"
8970 /* confdefs.h.  */
8971 _ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h.  */
8975 #include <X11/Intrinsic.h>
8976 int
8977 main ()
8978 {
8979 XtMalloc (0)
8980   ;
8981   return 0;
8982 }
8983 _ACEOF
8984 rm -f conftest.$ac_objext conftest$ac_exeext
8985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8986   (eval $ac_link) 2>&5
8987   ac_status=$?
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); } &&
8990          { ac_try='test -s conftest$ac_exeext'
8991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992   (eval $ac_try) 2>&5
8993   ac_status=$?
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); }; }; then
8996   LIBS=$ac_save_LIBS
8997 # We can link X programs with no special library path.
8998 ac_x_libraries=
8999 else
9000   echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9002
9003 LIBS=$ac_save_LIBS
9004 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9005 do
9006   # Don't even attempt the hair of trying to link an X program!
9007   for ac_extension in a so sl; do
9008     if test -r $ac_dir/libXt.$ac_extension; then
9009       ac_x_libraries=$ac_dir
9010       break 2
9011     fi
9012   done
9013 done
9014 fi
9015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9016 fi # $ac_x_libraries = no
9017
9018 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9019   # Didn't find X anywhere.  Cache the known absence of X.
9020   ac_cv_have_x="have_x=no"
9021 else
9022   # Record where we found X for the cache.
9023   ac_cv_have_x="have_x=yes \
9024                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9025 fi
9026 fi
9027
9028   fi
9029   eval "$ac_cv_have_x"
9030 fi # $with_x != no
9031
9032 if test "$have_x" != yes; then
9033   echo "$as_me:$LINENO: result: $have_x" >&5
9034 echo "${ECHO_T}$have_x" >&6
9035   no_x=yes
9036 else
9037   # If each of the values was on the command line, it overrides each guess.
9038   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9039   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9040   # Update the cache value to reflect the command line values.
9041   ac_cv_have_x="have_x=yes \
9042                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9043   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9044 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9045 fi
9046
9047 if test "$no_x" = yes; then
9048   # Not all programs may use this symbol, but it does not hurt to define it.
9049
9050 cat >>confdefs.h <<\_ACEOF
9051 #define X_DISPLAY_MISSING 1
9052 _ACEOF
9053
9054   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9055 else
9056   if test -n "$x_includes"; then
9057     X_CFLAGS="$X_CFLAGS -I$x_includes"
9058   fi
9059
9060   # It would also be nice to do this for all -L options, not just this one.
9061   if test -n "$x_libraries"; then
9062     X_LIBS="$X_LIBS -L$x_libraries"
9063     # For Solaris; some versions of Sun CC require a space after -R and
9064     # others require no space.  Words are not sufficient . . . .
9065     case `(uname -sr) 2>/dev/null` in
9066     "SunOS 5"*)
9067       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9068 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9069       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9070       cat >conftest.$ac_ext <<_ACEOF
9071 #line $LINENO "configure"
9072 /* confdefs.h.  */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h.  */
9077
9078 int
9079 main ()
9080 {
9081
9082   ;
9083   return 0;
9084 }
9085 _ACEOF
9086 rm -f conftest.$ac_objext conftest$ac_exeext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9088   (eval $ac_link) 2>&5
9089   ac_status=$?
9090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091   (exit $ac_status); } &&
9092          { ac_try='test -s conftest$ac_exeext'
9093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094   (eval $ac_try) 2>&5
9095   ac_status=$?
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); }; }; then
9098   ac_R_nospace=yes
9099 else
9100   echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9102
9103 ac_R_nospace=no
9104 fi
9105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9106       if test $ac_R_nospace = yes; then
9107         echo "$as_me:$LINENO: result: no" >&5
9108 echo "${ECHO_T}no" >&6
9109         X_LIBS="$X_LIBS -R$x_libraries"
9110       else
9111         LIBS="$ac_xsave_LIBS -R $x_libraries"
9112         cat >conftest.$ac_ext <<_ACEOF
9113 #line $LINENO "configure"
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119
9120 int
9121 main ()
9122 {
9123
9124   ;
9125   return 0;
9126 }
9127 _ACEOF
9128 rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9130   (eval $ac_link) 2>&5
9131   ac_status=$?
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); } &&
9134          { ac_try='test -s conftest$ac_exeext'
9135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136   (eval $ac_try) 2>&5
9137   ac_status=$?
9138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); }; }; then
9140   ac_R_space=yes
9141 else
9142   echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9144
9145 ac_R_space=no
9146 fi
9147 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9148         if test $ac_R_space = yes; then
9149           echo "$as_me:$LINENO: result: yes" >&5
9150 echo "${ECHO_T}yes" >&6
9151           X_LIBS="$X_LIBS -R $x_libraries"
9152         else
9153           echo "$as_me:$LINENO: result: neither works" >&5
9154 echo "${ECHO_T}neither works" >&6
9155         fi
9156       fi
9157       LIBS=$ac_xsave_LIBS
9158     esac
9159   fi
9160
9161   # Check for system-dependent libraries X programs must link with.
9162   # Do this before checking for the system-independent R6 libraries
9163   # (-lICE), since we may need -lsocket or whatever for X linking.
9164
9165   if test "$ISC" = yes; then
9166     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9167   else
9168     # Martyn Johnson says this is needed for Ultrix, if the X
9169     # libraries were built with DECnet support.  And Karl Berry says
9170     # the Alpha needs dnet_stub (dnet does not exist).
9171     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9172     cat >conftest.$ac_ext <<_ACEOF
9173 #line $LINENO "configure"
9174 /* confdefs.h.  */
9175 _ACEOF
9176 cat confdefs.h >>conftest.$ac_ext
9177 cat >>conftest.$ac_ext <<_ACEOF
9178 /* end confdefs.h.  */
9179
9180 /* Override any gcc2 internal prototype to avoid an error.  */
9181 #ifdef __cplusplus
9182 extern "C"
9183 #endif
9184 /* We use char because int might match the return type of a gcc2
9185    builtin and then its argument prototype would still apply.  */
9186 char XOpenDisplay ();
9187 int
9188 main ()
9189 {
9190 XOpenDisplay ();
9191   ;
9192   return 0;
9193 }
9194 _ACEOF
9195 rm -f conftest.$ac_objext conftest$ac_exeext
9196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9197   (eval $ac_link) 2>&5
9198   ac_status=$?
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); } &&
9201          { ac_try='test -s conftest$ac_exeext'
9202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203   (eval $ac_try) 2>&5
9204   ac_status=$?
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); }; }; then
9207   :
9208 else
9209   echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9211
9212 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9213 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9214 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217   ac_check_lib_save_LIBS=$LIBS
9218 LIBS="-ldnet  $LIBS"
9219 cat >conftest.$ac_ext <<_ACEOF
9220 #line $LINENO "configure"
9221 /* confdefs.h.  */
9222 _ACEOF
9223 cat confdefs.h >>conftest.$ac_ext
9224 cat >>conftest.$ac_ext <<_ACEOF
9225 /* end confdefs.h.  */
9226
9227 /* Override any gcc2 internal prototype to avoid an error.  */
9228 #ifdef __cplusplus
9229 extern "C"
9230 #endif
9231 /* We use char because int might match the return type of a gcc2
9232    builtin and then its argument prototype would still apply.  */
9233 char dnet_ntoa ();
9234 int
9235 main ()
9236 {
9237 dnet_ntoa ();
9238   ;
9239   return 0;
9240 }
9241 _ACEOF
9242 rm -f conftest.$ac_objext conftest$ac_exeext
9243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9244   (eval $ac_link) 2>&5
9245   ac_status=$?
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); } &&
9248          { ac_try='test -s conftest$ac_exeext'
9249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250   (eval $ac_try) 2>&5
9251   ac_status=$?
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); }; }; then
9254   ac_cv_lib_dnet_dnet_ntoa=yes
9255 else
9256   echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9258
9259 ac_cv_lib_dnet_dnet_ntoa=no
9260 fi
9261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9262 LIBS=$ac_check_lib_save_LIBS
9263 fi
9264 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9265 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9266 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9267   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9268 fi
9269
9270     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9271       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9272 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9273 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9274   echo $ECHO_N "(cached) $ECHO_C" >&6
9275 else
9276   ac_check_lib_save_LIBS=$LIBS
9277 LIBS="-ldnet_stub  $LIBS"
9278 cat >conftest.$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9280 /* confdefs.h.  */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h.  */
9285
9286 /* Override any gcc2 internal prototype to avoid an error.  */
9287 #ifdef __cplusplus
9288 extern "C"
9289 #endif
9290 /* We use char because int might match the return type of a gcc2
9291    builtin and then its argument prototype would still apply.  */
9292 char dnet_ntoa ();
9293 int
9294 main ()
9295 {
9296 dnet_ntoa ();
9297   ;
9298   return 0;
9299 }
9300 _ACEOF
9301 rm -f conftest.$ac_objext conftest$ac_exeext
9302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9303   (eval $ac_link) 2>&5
9304   ac_status=$?
9305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306   (exit $ac_status); } &&
9307          { ac_try='test -s conftest$ac_exeext'
9308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309   (eval $ac_try) 2>&5
9310   ac_status=$?
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); }; }; then
9313   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9314 else
9315   echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9317
9318 ac_cv_lib_dnet_stub_dnet_ntoa=no
9319 fi
9320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9321 LIBS=$ac_check_lib_save_LIBS
9322 fi
9323 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9324 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9325 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9326   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9327 fi
9328
9329     fi
9330 fi
9331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9332     LIBS="$ac_xsave_LIBS"
9333
9334     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9335     # to get the SysV transport functions.
9336     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9337     # needs -lnsl.
9338     # The nsl library prevents programs from opening the X display
9339     # on Irix 5.2, according to T.E. Dickey.
9340     # The functions gethostbyname, getservbyname, and inet_addr are
9341     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9342     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9343 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9344 if test "${ac_cv_func_gethostbyname+set}" = set; then
9345   echo $ECHO_N "(cached) $ECHO_C" >&6
9346 else
9347   cat >conftest.$ac_ext <<_ACEOF
9348 #line $LINENO "configure"
9349 /* confdefs.h.  */
9350 _ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h.  */
9354 /* System header to define __stub macros and hopefully few prototypes,
9355     which can conflict with char gethostbyname (); below.
9356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9357     <limits.h> exists even on freestanding compilers.  */
9358 #ifdef __STDC__
9359 # include <limits.h>
9360 #else
9361 # include <assert.h>
9362 #endif
9363 /* Override any gcc2 internal prototype to avoid an error.  */
9364 #ifdef __cplusplus
9365 extern "C"
9366 {
9367 #endif
9368 /* We use char because int might match the return type of a gcc2
9369    builtin and then its argument prototype would still apply.  */
9370 char gethostbyname ();
9371 /* The GNU C library defines this for functions which it implements
9372     to always fail with ENOSYS.  Some functions are actually named
9373     something starting with __ and the normal name is an alias.  */
9374 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9375 choke me
9376 #else
9377 char (*f) () = gethostbyname;
9378 #endif
9379 #ifdef __cplusplus
9380 }
9381 #endif
9382
9383 int
9384 main ()
9385 {
9386 return f != gethostbyname;
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393   (eval $ac_link) 2>&5
9394   ac_status=$?
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } &&
9397          { ac_try='test -s conftest$ac_exeext'
9398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9399   (eval $ac_try) 2>&5
9400   ac_status=$?
9401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402   (exit $ac_status); }; }; then
9403   ac_cv_func_gethostbyname=yes
9404 else
9405   echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408 ac_cv_func_gethostbyname=no
9409 fi
9410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9411 fi
9412 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9413 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9414
9415     if test $ac_cv_func_gethostbyname = no; then
9416       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9417 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9418 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9419   echo $ECHO_N "(cached) $ECHO_C" >&6
9420 else
9421   ac_check_lib_save_LIBS=$LIBS
9422 LIBS="-lnsl  $LIBS"
9423 cat >conftest.$ac_ext <<_ACEOF
9424 #line $LINENO "configure"
9425 /* confdefs.h.  */
9426 _ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h.  */
9430
9431 /* Override any gcc2 internal prototype to avoid an error.  */
9432 #ifdef __cplusplus
9433 extern "C"
9434 #endif
9435 /* We use char because int might match the return type of a gcc2
9436    builtin and then its argument prototype would still apply.  */
9437 char gethostbyname ();
9438 int
9439 main ()
9440 {
9441 gethostbyname ();
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9448   (eval $ac_link) 2>&5
9449   ac_status=$?
9450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451   (exit $ac_status); } &&
9452          { ac_try='test -s conftest$ac_exeext'
9453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454   (eval $ac_try) 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); }; }; then
9458   ac_cv_lib_nsl_gethostbyname=yes
9459 else
9460   echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9462
9463 ac_cv_lib_nsl_gethostbyname=no
9464 fi
9465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9466 LIBS=$ac_check_lib_save_LIBS
9467 fi
9468 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9469 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9470 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9471   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9472 fi
9473
9474       if test $ac_cv_lib_nsl_gethostbyname = no; then
9475         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9476 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9477 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9478   echo $ECHO_N "(cached) $ECHO_C" >&6
9479 else
9480   ac_check_lib_save_LIBS=$LIBS
9481 LIBS="-lbsd  $LIBS"
9482 cat >conftest.$ac_ext <<_ACEOF
9483 #line $LINENO "configure"
9484 /* confdefs.h.  */
9485 _ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h.  */
9489
9490 /* Override any gcc2 internal prototype to avoid an error.  */
9491 #ifdef __cplusplus
9492 extern "C"
9493 #endif
9494 /* We use char because int might match the return type of a gcc2
9495    builtin and then its argument prototype would still apply.  */
9496 char gethostbyname ();
9497 int
9498 main ()
9499 {
9500 gethostbyname ();
9501   ;
9502   return 0;
9503 }
9504 _ACEOF
9505 rm -f conftest.$ac_objext conftest$ac_exeext
9506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9507   (eval $ac_link) 2>&5
9508   ac_status=$?
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); } &&
9511          { ac_try='test -s conftest$ac_exeext'
9512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513   (eval $ac_try) 2>&5
9514   ac_status=$?
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); }; }; then
9517   ac_cv_lib_bsd_gethostbyname=yes
9518 else
9519   echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9521
9522 ac_cv_lib_bsd_gethostbyname=no
9523 fi
9524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9525 LIBS=$ac_check_lib_save_LIBS
9526 fi
9527 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9528 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9529 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9530   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9531 fi
9532
9533       fi
9534     fi
9535
9536     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9537     # socket/setsockopt and other routines are undefined under SCO ODT
9538     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9539     # on later versions), says Simon Leinen: it contains gethostby*
9540     # variants that don't use the name server (or something).  -lsocket
9541     # must be given before -lnsl if both are needed.  We assume that
9542     # if connect needs -lnsl, so does gethostbyname.
9543     echo "$as_me:$LINENO: checking for connect" >&5
9544 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9545 if test "${ac_cv_func_connect+set}" = set; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548   cat >conftest.$ac_ext <<_ACEOF
9549 #line $LINENO "configure"
9550 /* confdefs.h.  */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h.  */
9555 /* System header to define __stub macros and hopefully few prototypes,
9556     which can conflict with char connect (); below.
9557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9558     <limits.h> exists even on freestanding compilers.  */
9559 #ifdef __STDC__
9560 # include <limits.h>
9561 #else
9562 # include <assert.h>
9563 #endif
9564 /* Override any gcc2 internal prototype to avoid an error.  */
9565 #ifdef __cplusplus
9566 extern "C"
9567 {
9568 #endif
9569 /* We use char because int might match the return type of a gcc2
9570    builtin and then its argument prototype would still apply.  */
9571 char connect ();
9572 /* The GNU C library defines this for functions which it implements
9573     to always fail with ENOSYS.  Some functions are actually named
9574     something starting with __ and the normal name is an alias.  */
9575 #if defined (__stub_connect) || defined (__stub___connect)
9576 choke me
9577 #else
9578 char (*f) () = connect;
9579 #endif
9580 #ifdef __cplusplus
9581 }
9582 #endif
9583
9584 int
9585 main ()
9586 {
9587 return f != connect;
9588   ;
9589   return 0;
9590 }
9591 _ACEOF
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594   (eval $ac_link) 2>&5
9595   ac_status=$?
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); } &&
9598          { ac_try='test -s conftest$ac_exeext'
9599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600   (eval $ac_try) 2>&5
9601   ac_status=$?
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); }; }; then
9604   ac_cv_func_connect=yes
9605 else
9606   echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9608
9609 ac_cv_func_connect=no
9610 fi
9611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9612 fi
9613 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9614 echo "${ECHO_T}$ac_cv_func_connect" >&6
9615
9616     if test $ac_cv_func_connect = no; then
9617       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9618 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9619 if test "${ac_cv_lib_socket_connect+set}" = set; then
9620   echo $ECHO_N "(cached) $ECHO_C" >&6
9621 else
9622   ac_check_lib_save_LIBS=$LIBS
9623 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9624 cat >conftest.$ac_ext <<_ACEOF
9625 #line $LINENO "configure"
9626 /* confdefs.h.  */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h.  */
9631
9632 /* Override any gcc2 internal prototype to avoid an error.  */
9633 #ifdef __cplusplus
9634 extern "C"
9635 #endif
9636 /* We use char because int might match the return type of a gcc2
9637    builtin and then its argument prototype would still apply.  */
9638 char connect ();
9639 int
9640 main ()
9641 {
9642 connect ();
9643   ;
9644   return 0;
9645 }
9646 _ACEOF
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9649   (eval $ac_link) 2>&5
9650   ac_status=$?
9651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652   (exit $ac_status); } &&
9653          { ac_try='test -s conftest$ac_exeext'
9654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9655   (eval $ac_try) 2>&5
9656   ac_status=$?
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); }; }; then
9659   ac_cv_lib_socket_connect=yes
9660 else
9661   echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9663
9664 ac_cv_lib_socket_connect=no
9665 fi
9666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9667 LIBS=$ac_check_lib_save_LIBS
9668 fi
9669 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9670 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9671 if test $ac_cv_lib_socket_connect = yes; then
9672   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9673 fi
9674
9675     fi
9676
9677     # Guillermo Gomez says -lposix is necessary on A/UX.
9678     echo "$as_me:$LINENO: checking for remove" >&5
9679 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9680 if test "${ac_cv_func_remove+set}" = set; then
9681   echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683   cat >conftest.$ac_ext <<_ACEOF
9684 #line $LINENO "configure"
9685 /* confdefs.h.  */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h.  */
9690 /* System header to define __stub macros and hopefully few prototypes,
9691     which can conflict with char remove (); below.
9692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9693     <limits.h> exists even on freestanding compilers.  */
9694 #ifdef __STDC__
9695 # include <limits.h>
9696 #else
9697 # include <assert.h>
9698 #endif
9699 /* Override any gcc2 internal prototype to avoid an error.  */
9700 #ifdef __cplusplus
9701 extern "C"
9702 {
9703 #endif
9704 /* We use char because int might match the return type of a gcc2
9705    builtin and then its argument prototype would still apply.  */
9706 char remove ();
9707 /* The GNU C library defines this for functions which it implements
9708     to always fail with ENOSYS.  Some functions are actually named
9709     something starting with __ and the normal name is an alias.  */
9710 #if defined (__stub_remove) || defined (__stub___remove)
9711 choke me
9712 #else
9713 char (*f) () = remove;
9714 #endif
9715 #ifdef __cplusplus
9716 }
9717 #endif
9718
9719 int
9720 main ()
9721 {
9722 return f != remove;
9723   ;
9724   return 0;
9725 }
9726 _ACEOF
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729   (eval $ac_link) 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); } &&
9733          { ac_try='test -s conftest$ac_exeext'
9734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735   (eval $ac_try) 2>&5
9736   ac_status=$?
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); }; }; then
9739   ac_cv_func_remove=yes
9740 else
9741   echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9743
9744 ac_cv_func_remove=no
9745 fi
9746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9747 fi
9748 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9749 echo "${ECHO_T}$ac_cv_func_remove" >&6
9750
9751     if test $ac_cv_func_remove = no; then
9752       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9753 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9754 if test "${ac_cv_lib_posix_remove+set}" = set; then
9755   echo $ECHO_N "(cached) $ECHO_C" >&6
9756 else
9757   ac_check_lib_save_LIBS=$LIBS
9758 LIBS="-lposix  $LIBS"
9759 cat >conftest.$ac_ext <<_ACEOF
9760 #line $LINENO "configure"
9761 /* confdefs.h.  */
9762 _ACEOF
9763 cat confdefs.h >>conftest.$ac_ext
9764 cat >>conftest.$ac_ext <<_ACEOF
9765 /* end confdefs.h.  */
9766
9767 /* Override any gcc2 internal prototype to avoid an error.  */
9768 #ifdef __cplusplus
9769 extern "C"
9770 #endif
9771 /* We use char because int might match the return type of a gcc2
9772    builtin and then its argument prototype would still apply.  */
9773 char remove ();
9774 int
9775 main ()
9776 {
9777 remove ();
9778   ;
9779   return 0;
9780 }
9781 _ACEOF
9782 rm -f conftest.$ac_objext conftest$ac_exeext
9783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9784   (eval $ac_link) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); } &&
9788          { ac_try='test -s conftest$ac_exeext'
9789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790   (eval $ac_try) 2>&5
9791   ac_status=$?
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); }; }; then
9794   ac_cv_lib_posix_remove=yes
9795 else
9796   echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799 ac_cv_lib_posix_remove=no
9800 fi
9801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9802 LIBS=$ac_check_lib_save_LIBS
9803 fi
9804 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9805 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9806 if test $ac_cv_lib_posix_remove = yes; then
9807   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9808 fi
9809
9810     fi
9811
9812     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9813     echo "$as_me:$LINENO: checking for shmat" >&5
9814 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9815 if test "${ac_cv_func_shmat+set}" = set; then
9816   echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818   cat >conftest.$ac_ext <<_ACEOF
9819 #line $LINENO "configure"
9820 /* confdefs.h.  */
9821 _ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h.  */
9825 /* System header to define __stub macros and hopefully few prototypes,
9826     which can conflict with char shmat (); below.
9827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9828     <limits.h> exists even on freestanding compilers.  */
9829 #ifdef __STDC__
9830 # include <limits.h>
9831 #else
9832 # include <assert.h>
9833 #endif
9834 /* Override any gcc2 internal prototype to avoid an error.  */
9835 #ifdef __cplusplus
9836 extern "C"
9837 {
9838 #endif
9839 /* We use char because int might match the return type of a gcc2
9840    builtin and then its argument prototype would still apply.  */
9841 char shmat ();
9842 /* The GNU C library defines this for functions which it implements
9843     to always fail with ENOSYS.  Some functions are actually named
9844     something starting with __ and the normal name is an alias.  */
9845 #if defined (__stub_shmat) || defined (__stub___shmat)
9846 choke me
9847 #else
9848 char (*f) () = shmat;
9849 #endif
9850 #ifdef __cplusplus
9851 }
9852 #endif
9853
9854 int
9855 main ()
9856 {
9857 return f != shmat;
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9864   (eval $ac_link) 2>&5
9865   ac_status=$?
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); } &&
9868          { ac_try='test -s conftest$ac_exeext'
9869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870   (eval $ac_try) 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); }; }; then
9874   ac_cv_func_shmat=yes
9875 else
9876   echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9878
9879 ac_cv_func_shmat=no
9880 fi
9881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9882 fi
9883 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9884 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9885
9886     if test $ac_cv_func_shmat = no; then
9887       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9888 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9889 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892   ac_check_lib_save_LIBS=$LIBS
9893 LIBS="-lipc  $LIBS"
9894 cat >conftest.$ac_ext <<_ACEOF
9895 #line $LINENO "configure"
9896 /* confdefs.h.  */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h.  */
9901
9902 /* Override any gcc2 internal prototype to avoid an error.  */
9903 #ifdef __cplusplus
9904 extern "C"
9905 #endif
9906 /* We use char because int might match the return type of a gcc2
9907    builtin and then its argument prototype would still apply.  */
9908 char shmat ();
9909 int
9910 main ()
9911 {
9912 shmat ();
9913   ;
9914   return 0;
9915 }
9916 _ACEOF
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9919   (eval $ac_link) 2>&5
9920   ac_status=$?
9921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922   (exit $ac_status); } &&
9923          { ac_try='test -s conftest$ac_exeext'
9924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925   (eval $ac_try) 2>&5
9926   ac_status=$?
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); }; }; then
9929   ac_cv_lib_ipc_shmat=yes
9930 else
9931   echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9933
9934 ac_cv_lib_ipc_shmat=no
9935 fi
9936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9937 LIBS=$ac_check_lib_save_LIBS
9938 fi
9939 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9940 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9941 if test $ac_cv_lib_ipc_shmat = yes; then
9942   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9943 fi
9944
9945     fi
9946   fi
9947
9948   # Check for libraries that X11R6 Xt/Xaw programs need.
9949   ac_save_LDFLAGS=$LDFLAGS
9950   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9951   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9952   # check for ICE first), but we must link in the order -lSM -lICE or
9953   # we get undefined symbols.  So assume we have SM if we have ICE.
9954   # These have to be linked with before -lX11, unlike the other
9955   # libraries we check for below, so use a different variable.
9956   # John Interrante, Karl Berry
9957   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9958 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9959 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9960   echo $ECHO_N "(cached) $ECHO_C" >&6
9961 else
9962   ac_check_lib_save_LIBS=$LIBS
9963 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9964 cat >conftest.$ac_ext <<_ACEOF
9965 #line $LINENO "configure"
9966 /* confdefs.h.  */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h.  */
9971
9972 /* Override any gcc2 internal prototype to avoid an error.  */
9973 #ifdef __cplusplus
9974 extern "C"
9975 #endif
9976 /* We use char because int might match the return type of a gcc2
9977    builtin and then its argument prototype would still apply.  */
9978 char IceConnectionNumber ();
9979 int
9980 main ()
9981 {
9982 IceConnectionNumber ();
9983   ;
9984   return 0;
9985 }
9986 _ACEOF
9987 rm -f conftest.$ac_objext conftest$ac_exeext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9989   (eval $ac_link) 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); } &&
9993          { ac_try='test -s conftest$ac_exeext'
9994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995   (eval $ac_try) 2>&5
9996   ac_status=$?
9997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998   (exit $ac_status); }; }; then
9999   ac_cv_lib_ICE_IceConnectionNumber=yes
10000 else
10001   echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10003
10004 ac_cv_lib_ICE_IceConnectionNumber=no
10005 fi
10006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10007 LIBS=$ac_check_lib_save_LIBS
10008 fi
10009 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10010 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10011 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10012   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10013 fi
10014
10015   LDFLAGS=$ac_save_LDFLAGS
10016
10017 fi
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047 for ac_header in \
10048         assert.h \
10049         fcntl.h \
10050         grp.h \
10051         pwd.h \
10052         libc.h \
10053         limits.h \
10054         stdarg.h \
10055         stdlib.h \
10056         stdint.h \
10057         string.h \
10058         termios.h \
10059         termcap.h \
10060         term.h \
10061         unistd.h \
10062         sys/bitypes.h \
10063         sys/byteorder.h \
10064         sys/ioctl.h \
10065         sys/select.h \
10066         sys/sockio.h \
10067         sys/time.h \
10068         sys/socket.h \
10069         arpa/nameser.h \
10070         resolv.h \
10071         mtio.h \
10072         sys/mtio.h \
10073         sys/tape.h \
10074         regex.h \
10075
10076 do
10077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10079   echo "$as_me:$LINENO: checking for $ac_header" >&5
10080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 fi
10084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10086 else
10087   # Is the header compilable?
10088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10090 cat >conftest.$ac_ext <<_ACEOF
10091 #line $LINENO "configure"
10092 /* confdefs.h.  */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h.  */
10097 $ac_includes_default
10098 #include <$ac_header>
10099 _ACEOF
10100 rm -f conftest.$ac_objext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10102   (eval $ac_compile) 2>&5
10103   ac_status=$?
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); } &&
10106          { ac_try='test -s conftest.$ac_objext'
10107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108   (eval $ac_try) 2>&5
10109   ac_status=$?
10110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111   (exit $ac_status); }; }; then
10112   ac_header_compiler=yes
10113 else
10114   echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117 ac_header_compiler=no
10118 fi
10119 rm -f conftest.$ac_objext conftest.$ac_ext
10120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10121 echo "${ECHO_T}$ac_header_compiler" >&6
10122
10123 # Is the header present?
10124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10126 cat >conftest.$ac_ext <<_ACEOF
10127 #line $LINENO "configure"
10128 /* confdefs.h.  */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h.  */
10133 #include <$ac_header>
10134 _ACEOF
10135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10137   ac_status=$?
10138   grep -v '^ *+' conftest.er1 >conftest.err
10139   rm -f conftest.er1
10140   cat conftest.err >&5
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); } >/dev/null; then
10143   if test -s conftest.err; then
10144     ac_cpp_err=$ac_c_preproc_warn_flag
10145   else
10146     ac_cpp_err=
10147   fi
10148 else
10149   ac_cpp_err=yes
10150 fi
10151 if test -z "$ac_cpp_err"; then
10152   ac_header_preproc=yes
10153 else
10154   echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157   ac_header_preproc=no
10158 fi
10159 rm -f conftest.err conftest.$ac_ext
10160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10161 echo "${ECHO_T}$ac_header_preproc" >&6
10162
10163 # So?  What about this header?
10164 case $ac_header_compiler:$ac_header_preproc in
10165   yes:no )
10166     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10170     (
10171       cat <<\_ASBOX
10172 ## ------------------------------------ ##
10173 ## Report this to bug-autoconf@gnu.org. ##
10174 ## ------------------------------------ ##
10175 _ASBOX
10176     ) |
10177       sed "s/^/$as_me: WARNING:     /" >&2
10178     ;;
10179   no:yes )
10180     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10182     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10186     (
10187       cat <<\_ASBOX
10188 ## ------------------------------------ ##
10189 ## Report this to bug-autoconf@gnu.org. ##
10190 ## ------------------------------------ ##
10191 _ASBOX
10192     ) |
10193       sed "s/^/$as_me: WARNING:     /" >&2
10194     ;;
10195 esac
10196 echo "$as_me:$LINENO: checking for $ac_header" >&5
10197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10199   echo $ECHO_N "(cached) $ECHO_C" >&6
10200 else
10201   eval "$as_ac_Header=$ac_header_preproc"
10202 fi
10203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10205
10206 fi
10207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10208   cat >>confdefs.h <<_ACEOF
10209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10210 _ACEOF
10211
10212 fi
10213
10214 done
10215
10216 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10217 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10218 if test "${ac_cv_header_stdc+set}" = set; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221   cat >conftest.$ac_ext <<_ACEOF
10222 #line $LINENO "configure"
10223 /* confdefs.h.  */
10224 _ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h.  */
10228 #include <stdlib.h>
10229 #include <stdarg.h>
10230 #include <string.h>
10231 #include <float.h>
10232
10233 int
10234 main ()
10235 {
10236
10237   ;
10238   return 0;
10239 }
10240 _ACEOF
10241 rm -f conftest.$ac_objext
10242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10243   (eval $ac_compile) 2>&5
10244   ac_status=$?
10245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246   (exit $ac_status); } &&
10247          { ac_try='test -s conftest.$ac_objext'
10248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249   (eval $ac_try) 2>&5
10250   ac_status=$?
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); }; }; then
10253   ac_cv_header_stdc=yes
10254 else
10255   echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10257
10258 ac_cv_header_stdc=no
10259 fi
10260 rm -f conftest.$ac_objext conftest.$ac_ext
10261
10262 if test $ac_cv_header_stdc = yes; then
10263   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10264   cat >conftest.$ac_ext <<_ACEOF
10265 #line $LINENO "configure"
10266 /* confdefs.h.  */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h.  */
10271 #include <string.h>
10272
10273 _ACEOF
10274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10275   $EGREP "memchr" >/dev/null 2>&1; then
10276   :
10277 else
10278   ac_cv_header_stdc=no
10279 fi
10280 rm -f conftest*
10281
10282 fi
10283
10284 if test $ac_cv_header_stdc = yes; then
10285   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10286   cat >conftest.$ac_ext <<_ACEOF
10287 #line $LINENO "configure"
10288 /* confdefs.h.  */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h.  */
10293 #include <stdlib.h>
10294
10295 _ACEOF
10296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10297   $EGREP "free" >/dev/null 2>&1; then
10298   :
10299 else
10300   ac_cv_header_stdc=no
10301 fi
10302 rm -f conftest*
10303
10304 fi
10305
10306 if test $ac_cv_header_stdc = yes; then
10307   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10308   if test "$cross_compiling" = yes; then
10309   :
10310 else
10311   cat >conftest.$ac_ext <<_ACEOF
10312 #line $LINENO "configure"
10313 /* confdefs.h.  */
10314 _ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h.  */
10318 #include <ctype.h>
10319 #if ((' ' & 0x0FF) == 0x020)
10320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10322 #else
10323 # define ISLOWER(c) \
10324                    (('a' <= (c) && (c) <= 'i') \
10325                      || ('j' <= (c) && (c) <= 'r') \
10326                      || ('s' <= (c) && (c) <= 'z'))
10327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10328 #endif
10329
10330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10331 int
10332 main ()
10333 {
10334   int i;
10335   for (i = 0; i < 256; i++)
10336     if (XOR (islower (i), ISLOWER (i))
10337         || toupper (i) != TOUPPER (i))
10338       exit(2);
10339   exit (0);
10340 }
10341 _ACEOF
10342 rm -f conftest$ac_exeext
10343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344   (eval $ac_link) 2>&5
10345   ac_status=$?
10346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   :
10354 else
10355   echo "$as_me: program exited with status $ac_status" >&5
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359 ( exit $ac_status )
10360 ac_cv_header_stdc=no
10361 fi
10362 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10363 fi
10364 fi
10365 fi
10366 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10367 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10368 if test $ac_cv_header_stdc = yes; then
10369
10370 cat >>confdefs.h <<\_ACEOF
10371 #define STDC_HEADERS 1
10372 _ACEOF
10373
10374 fi
10375
10376 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10377 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10378 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10379   echo $ECHO_N "(cached) $ECHO_C" >&6
10380 else
10381   cat >conftest.$ac_ext <<_ACEOF
10382 #line $LINENO "configure"
10383 /* confdefs.h.  */
10384 _ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h.  */
10388 #include <sys/types.h>
10389 int
10390 main ()
10391 {
10392 return makedev(0, 0);
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399   (eval $ac_link) 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); } &&
10403          { ac_try='test -s conftest$ac_exeext'
10404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405   (eval $ac_try) 2>&5
10406   ac_status=$?
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); }; }; then
10409   ac_cv_header_sys_types_h_makedev=yes
10410 else
10411   echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10413
10414 ac_cv_header_sys_types_h_makedev=no
10415 fi
10416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10417
10418 fi
10419 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10420 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10421
10422 if test $ac_cv_header_sys_types_h_makedev = no; then
10423 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10424   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10425 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10426 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10427   echo $ECHO_N "(cached) $ECHO_C" >&6
10428 fi
10429 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10430 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10431 else
10432   # Is the header compilable?
10433 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10434 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10435 cat >conftest.$ac_ext <<_ACEOF
10436 #line $LINENO "configure"
10437 /* confdefs.h.  */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h.  */
10442 $ac_includes_default
10443 #include <sys/mkdev.h>
10444 _ACEOF
10445 rm -f conftest.$ac_objext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10447   (eval $ac_compile) 2>&5
10448   ac_status=$?
10449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450   (exit $ac_status); } &&
10451          { ac_try='test -s conftest.$ac_objext'
10452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453   (eval $ac_try) 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); }; }; then
10457   ac_header_compiler=yes
10458 else
10459   echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10461
10462 ac_header_compiler=no
10463 fi
10464 rm -f conftest.$ac_objext conftest.$ac_ext
10465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10466 echo "${ECHO_T}$ac_header_compiler" >&6
10467
10468 # Is the header present?
10469 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10470 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10471 cat >conftest.$ac_ext <<_ACEOF
10472 #line $LINENO "configure"
10473 /* confdefs.h.  */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h.  */
10478 #include <sys/mkdev.h>
10479 _ACEOF
10480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10481   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10482   ac_status=$?
10483   grep -v '^ *+' conftest.er1 >conftest.err
10484   rm -f conftest.er1
10485   cat conftest.err >&5
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); } >/dev/null; then
10488   if test -s conftest.err; then
10489     ac_cpp_err=$ac_c_preproc_warn_flag
10490   else
10491     ac_cpp_err=
10492   fi
10493 else
10494   ac_cpp_err=yes
10495 fi
10496 if test -z "$ac_cpp_err"; then
10497   ac_header_preproc=yes
10498 else
10499   echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10501
10502   ac_header_preproc=no
10503 fi
10504 rm -f conftest.err conftest.$ac_ext
10505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10506 echo "${ECHO_T}$ac_header_preproc" >&6
10507
10508 # So?  What about this header?
10509 case $ac_header_compiler:$ac_header_preproc in
10510   yes:no )
10511     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10512 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10513     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10514 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10515     (
10516       cat <<\_ASBOX
10517 ## ------------------------------------ ##
10518 ## Report this to bug-autoconf@gnu.org. ##
10519 ## ------------------------------------ ##
10520 _ASBOX
10521     ) |
10522       sed "s/^/$as_me: WARNING:     /" >&2
10523     ;;
10524   no:yes )
10525     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10526 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10527     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10528 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10529     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10530 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10531     (
10532       cat <<\_ASBOX
10533 ## ------------------------------------ ##
10534 ## Report this to bug-autoconf@gnu.org. ##
10535 ## ------------------------------------ ##
10536 _ASBOX
10537     ) |
10538       sed "s/^/$as_me: WARNING:     /" >&2
10539     ;;
10540 esac
10541 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10542 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10543 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10544   echo $ECHO_N "(cached) $ECHO_C" >&6
10545 else
10546   ac_cv_header_sys_mkdev_h=$ac_header_preproc
10547 fi
10548 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10549 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10550
10551 fi
10552 if test $ac_cv_header_sys_mkdev_h = yes; then
10553
10554 cat >>confdefs.h <<\_ACEOF
10555 #define MAJOR_IN_MKDEV 1
10556 _ACEOF
10557
10558 fi
10559
10560
10561
10562   if test $ac_cv_header_sys_mkdev_h = no; then
10563     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10564   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10565 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10566 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10567   echo $ECHO_N "(cached) $ECHO_C" >&6
10568 fi
10569 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10570 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10571 else
10572   # Is the header compilable?
10573 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10574 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10575 cat >conftest.$ac_ext <<_ACEOF
10576 #line $LINENO "configure"
10577 /* confdefs.h.  */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h.  */
10582 $ac_includes_default
10583 #include <sys/sysmacros.h>
10584 _ACEOF
10585 rm -f conftest.$ac_objext
10586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10587   (eval $ac_compile) 2>&5
10588   ac_status=$?
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); } &&
10591          { ac_try='test -s conftest.$ac_objext'
10592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593   (eval $ac_try) 2>&5
10594   ac_status=$?
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); }; }; then
10597   ac_header_compiler=yes
10598 else
10599   echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602 ac_header_compiler=no
10603 fi
10604 rm -f conftest.$ac_objext conftest.$ac_ext
10605 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10606 echo "${ECHO_T}$ac_header_compiler" >&6
10607
10608 # Is the header present?
10609 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10610 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10611 cat >conftest.$ac_ext <<_ACEOF
10612 #line $LINENO "configure"
10613 /* confdefs.h.  */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h.  */
10618 #include <sys/sysmacros.h>
10619 _ACEOF
10620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10621   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10622   ac_status=$?
10623   grep -v '^ *+' conftest.er1 >conftest.err
10624   rm -f conftest.er1
10625   cat conftest.err >&5
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); } >/dev/null; then
10628   if test -s conftest.err; then
10629     ac_cpp_err=$ac_c_preproc_warn_flag
10630   else
10631     ac_cpp_err=
10632   fi
10633 else
10634   ac_cpp_err=yes
10635 fi
10636 if test -z "$ac_cpp_err"; then
10637   ac_header_preproc=yes
10638 else
10639   echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10641
10642   ac_header_preproc=no
10643 fi
10644 rm -f conftest.err conftest.$ac_ext
10645 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10646 echo "${ECHO_T}$ac_header_preproc" >&6
10647
10648 # So?  What about this header?
10649 case $ac_header_compiler:$ac_header_preproc in
10650   yes:no )
10651     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10652 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10653     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10654 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10655     (
10656       cat <<\_ASBOX
10657 ## ------------------------------------ ##
10658 ## Report this to bug-autoconf@gnu.org. ##
10659 ## ------------------------------------ ##
10660 _ASBOX
10661     ) |
10662       sed "s/^/$as_me: WARNING:     /" >&2
10663     ;;
10664   no:yes )
10665     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10666 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10667     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10668 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10669     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10670 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10671     (
10672       cat <<\_ASBOX
10673 ## ------------------------------------ ##
10674 ## Report this to bug-autoconf@gnu.org. ##
10675 ## ------------------------------------ ##
10676 _ASBOX
10677     ) |
10678       sed "s/^/$as_me: WARNING:     /" >&2
10679     ;;
10680 esac
10681 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10682 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10683 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10684   echo $ECHO_N "(cached) $ECHO_C" >&6
10685 else
10686   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10687 fi
10688 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10689 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10690
10691 fi
10692 if test $ac_cv_header_sys_sysmacros_h = yes; then
10693
10694 cat >>confdefs.h <<\_ACEOF
10695 #define MAJOR_IN_SYSMACROS 1
10696 _ACEOF
10697
10698 fi
10699
10700
10701   fi
10702 fi
10703
10704
10705
10706
10707
10708
10709 ac_header_dirent=no
10710 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10711   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10712 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10713 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10715   echo $ECHO_N "(cached) $ECHO_C" >&6
10716 else
10717   cat >conftest.$ac_ext <<_ACEOF
10718 #line $LINENO "configure"
10719 /* confdefs.h.  */
10720 _ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h.  */
10724 #include <sys/types.h>
10725 #include <$ac_hdr>
10726
10727 int
10728 main ()
10729 {
10730 if ((DIR *) 0)
10731 return 0;
10732   ;
10733   return 0;
10734 }
10735 _ACEOF
10736 rm -f conftest.$ac_objext
10737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10738   (eval $ac_compile) 2>&5
10739   ac_status=$?
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); } &&
10742          { ac_try='test -s conftest.$ac_objext'
10743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744   (eval $ac_try) 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); }; }; then
10748   eval "$as_ac_Header=yes"
10749 else
10750   echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10752
10753 eval "$as_ac_Header=no"
10754 fi
10755 rm -f conftest.$ac_objext conftest.$ac_ext
10756 fi
10757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10760   cat >>confdefs.h <<_ACEOF
10761 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10762 _ACEOF
10763
10764 ac_header_dirent=$ac_hdr; break
10765 fi
10766
10767 done
10768 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10769 if test $ac_header_dirent = dirent.h; then
10770   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10771 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10772 if test "${ac_cv_search_opendir+set}" = set; then
10773   echo $ECHO_N "(cached) $ECHO_C" >&6
10774 else
10775   ac_func_search_save_LIBS=$LIBS
10776 ac_cv_search_opendir=no
10777 cat >conftest.$ac_ext <<_ACEOF
10778 #line $LINENO "configure"
10779 /* confdefs.h.  */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h.  */
10784
10785 /* Override any gcc2 internal prototype to avoid an error.  */
10786 #ifdef __cplusplus
10787 extern "C"
10788 #endif
10789 /* We use char because int might match the return type of a gcc2
10790    builtin and then its argument prototype would still apply.  */
10791 char opendir ();
10792 int
10793 main ()
10794 {
10795 opendir ();
10796   ;
10797   return 0;
10798 }
10799 _ACEOF
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10802   (eval $ac_link) 2>&5
10803   ac_status=$?
10804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805   (exit $ac_status); } &&
10806          { ac_try='test -s conftest$ac_exeext'
10807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808   (eval $ac_try) 2>&5
10809   ac_status=$?
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); }; }; then
10812   ac_cv_search_opendir="none required"
10813 else
10814   echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.$ac_ext >&5
10816
10817 fi
10818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10819 if test "$ac_cv_search_opendir" = no; then
10820   for ac_lib in dir; do
10821     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10822     cat >conftest.$ac_ext <<_ACEOF
10823 #line $LINENO "configure"
10824 /* confdefs.h.  */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h.  */
10829
10830 /* Override any gcc2 internal prototype to avoid an error.  */
10831 #ifdef __cplusplus
10832 extern "C"
10833 #endif
10834 /* We use char because int might match the return type of a gcc2
10835    builtin and then its argument prototype would still apply.  */
10836 char opendir ();
10837 int
10838 main ()
10839 {
10840 opendir ();
10841   ;
10842   return 0;
10843 }
10844 _ACEOF
10845 rm -f conftest.$ac_objext conftest$ac_exeext
10846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10847   (eval $ac_link) 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } &&
10851          { ac_try='test -s conftest$ac_exeext'
10852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853   (eval $ac_try) 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); }; }; then
10857   ac_cv_search_opendir="-l$ac_lib"
10858 break
10859 else
10860   echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10862
10863 fi
10864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10865   done
10866 fi
10867 LIBS=$ac_func_search_save_LIBS
10868 fi
10869 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10870 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10871 if test "$ac_cv_search_opendir" != no; then
10872   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10873
10874 fi
10875
10876 else
10877   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10878 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10879 if test "${ac_cv_search_opendir+set}" = set; then
10880   echo $ECHO_N "(cached) $ECHO_C" >&6
10881 else
10882   ac_func_search_save_LIBS=$LIBS
10883 ac_cv_search_opendir=no
10884 cat >conftest.$ac_ext <<_ACEOF
10885 #line $LINENO "configure"
10886 /* confdefs.h.  */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h.  */
10891
10892 /* Override any gcc2 internal prototype to avoid an error.  */
10893 #ifdef __cplusplus
10894 extern "C"
10895 #endif
10896 /* We use char because int might match the return type of a gcc2
10897    builtin and then its argument prototype would still apply.  */
10898 char opendir ();
10899 int
10900 main ()
10901 {
10902 opendir ();
10903   ;
10904   return 0;
10905 }
10906 _ACEOF
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909   (eval $ac_link) 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); } &&
10913          { ac_try='test -s conftest$ac_exeext'
10914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915   (eval $ac_try) 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); }; }; then
10919   ac_cv_search_opendir="none required"
10920 else
10921   echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10923
10924 fi
10925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10926 if test "$ac_cv_search_opendir" = no; then
10927   for ac_lib in x; do
10928     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10929     cat >conftest.$ac_ext <<_ACEOF
10930 #line $LINENO "configure"
10931 /* confdefs.h.  */
10932 _ACEOF
10933 cat confdefs.h >>conftest.$ac_ext
10934 cat >>conftest.$ac_ext <<_ACEOF
10935 /* end confdefs.h.  */
10936
10937 /* Override any gcc2 internal prototype to avoid an error.  */
10938 #ifdef __cplusplus
10939 extern "C"
10940 #endif
10941 /* We use char because int might match the return type of a gcc2
10942    builtin and then its argument prototype would still apply.  */
10943 char opendir ();
10944 int
10945 main ()
10946 {
10947 opendir ();
10948   ;
10949   return 0;
10950 }
10951 _ACEOF
10952 rm -f conftest.$ac_objext conftest$ac_exeext
10953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10954   (eval $ac_link) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); } &&
10958          { ac_try='test -s conftest$ac_exeext'
10959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960   (eval $ac_try) 2>&5
10961   ac_status=$?
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); }; }; then
10964   ac_cv_search_opendir="-l$ac_lib"
10965 break
10966 else
10967   echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10969
10970 fi
10971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10972   done
10973 fi
10974 LIBS=$ac_func_search_save_LIBS
10975 fi
10976 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10977 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10978 if test "$ac_cv_search_opendir" != no; then
10979   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10980
10981 fi
10982
10983 fi
10984
10985 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10986 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10987 if test "${ac_cv_header_stat_broken+set}" = set; then
10988   echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990   cat >conftest.$ac_ext <<_ACEOF
10991 #line $LINENO "configure"
10992 /* confdefs.h.  */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h.  */
10997 #include <sys/types.h>
10998 #include <sys/stat.h>
10999
11000 #if defined(S_ISBLK) && defined(S_IFDIR)
11001 # if S_ISBLK (S_IFDIR)
11002 You lose.
11003 # endif
11004 #endif
11005
11006 #if defined(S_ISBLK) && defined(S_IFCHR)
11007 # if S_ISBLK (S_IFCHR)
11008 You lose.
11009 # endif
11010 #endif
11011
11012 #if defined(S_ISLNK) && defined(S_IFREG)
11013 # if S_ISLNK (S_IFREG)
11014 You lose.
11015 # endif
11016 #endif
11017
11018 #if defined(S_ISSOCK) && defined(S_IFREG)
11019 # if S_ISSOCK (S_IFREG)
11020 You lose.
11021 # endif
11022 #endif
11023
11024 _ACEOF
11025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11026   $EGREP "You lose" >/dev/null 2>&1; then
11027   ac_cv_header_stat_broken=yes
11028 else
11029   ac_cv_header_stat_broken=no
11030 fi
11031 rm -f conftest*
11032
11033 fi
11034 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11035 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11036 if test $ac_cv_header_stat_broken = yes; then
11037
11038 cat >>confdefs.h <<\_ACEOF
11039 #define STAT_MACROS_BROKEN 1
11040 _ACEOF
11041
11042 fi
11043
11044 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11045 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11046 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11047   echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049   cat >conftest.$ac_ext <<_ACEOF
11050 #line $LINENO "configure"
11051 /* confdefs.h.  */
11052 _ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h.  */
11056 #include <sys/types.h>
11057 #include <sys/wait.h>
11058 #ifndef WEXITSTATUS
11059 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11060 #endif
11061 #ifndef WIFEXITED
11062 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11063 #endif
11064
11065 int
11066 main ()
11067 {
11068   int s;
11069   wait (&s);
11070   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11071   ;
11072   return 0;
11073 }
11074 _ACEOF
11075 rm -f conftest.$ac_objext
11076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11077   (eval $ac_compile) 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); } &&
11081          { ac_try='test -s conftest.$ac_objext'
11082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083   (eval $ac_try) 2>&5
11084   ac_status=$?
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); }; }; then
11087   ac_cv_header_sys_wait_h=yes
11088 else
11089   echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11091
11092 ac_cv_header_sys_wait_h=no
11093 fi
11094 rm -f conftest.$ac_objext conftest.$ac_ext
11095 fi
11096 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11097 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11098 if test $ac_cv_header_sys_wait_h = yes; then
11099
11100 cat >>confdefs.h <<\_ACEOF
11101 #define HAVE_SYS_WAIT_H 1
11102 _ACEOF
11103
11104 fi
11105
11106 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11107 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11108 if test "${ac_cv_header_time+set}" = set; then
11109   echo $ECHO_N "(cached) $ECHO_C" >&6
11110 else
11111   cat >conftest.$ac_ext <<_ACEOF
11112 #line $LINENO "configure"
11113 /* confdefs.h.  */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h.  */
11118 #include <sys/types.h>
11119 #include <sys/time.h>
11120 #include <time.h>
11121
11122 int
11123 main ()
11124 {
11125 if ((struct tm *) 0)
11126 return 0;
11127   ;
11128   return 0;
11129 }
11130 _ACEOF
11131 rm -f conftest.$ac_objext
11132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11133   (eval $ac_compile) 2>&5
11134   ac_status=$?
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); } &&
11137          { ac_try='test -s conftest.$ac_objext'
11138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139   (eval $ac_try) 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); }; }; then
11143   ac_cv_header_time=yes
11144 else
11145   echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11147
11148 ac_cv_header_time=no
11149 fi
11150 rm -f conftest.$ac_objext conftest.$ac_ext
11151 fi
11152 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11153 echo "${ECHO_T}$ac_cv_header_time" >&6
11154 if test $ac_cv_header_time = yes; then
11155
11156 cat >>confdefs.h <<\_ACEOF
11157 #define TIME_WITH_SYS_TIME 1
11158 _ACEOF
11159
11160 fi
11161
11162
11163 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11164 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11165 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11166   echo $ECHO_N "(cached) $ECHO_C" >&6
11167 else
11168   cat >conftest.$ac_ext <<_ACEOF
11169 #line $LINENO "configure"
11170 /* confdefs.h.  */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h.  */
11175 $ac_includes_default
11176 int
11177 main ()
11178 {
11179 static struct stat ac_aggr;
11180 if (ac_aggr.st_blksize)
11181 return 0;
11182   ;
11183   return 0;
11184 }
11185 _ACEOF
11186 rm -f conftest.$ac_objext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11188   (eval $ac_compile) 2>&5
11189   ac_status=$?
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); } &&
11192          { ac_try='test -s conftest.$ac_objext'
11193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11194   (eval $ac_try) 2>&5
11195   ac_status=$?
11196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197   (exit $ac_status); }; }; then
11198   ac_cv_member_struct_stat_st_blksize=yes
11199 else
11200   echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11202
11203 cat >conftest.$ac_ext <<_ACEOF
11204 #line $LINENO "configure"
11205 /* confdefs.h.  */
11206 _ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h.  */
11210 $ac_includes_default
11211 int
11212 main ()
11213 {
11214 static struct stat ac_aggr;
11215 if (sizeof ac_aggr.st_blksize)
11216 return 0;
11217   ;
11218   return 0;
11219 }
11220 _ACEOF
11221 rm -f conftest.$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223   (eval $ac_compile) 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } &&
11227          { ac_try='test -s conftest.$ac_objext'
11228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229   (eval $ac_try) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); }; }; then
11233   ac_cv_member_struct_stat_st_blksize=yes
11234 else
11235   echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11237
11238 ac_cv_member_struct_stat_st_blksize=no
11239 fi
11240 rm -f conftest.$ac_objext conftest.$ac_ext
11241 fi
11242 rm -f conftest.$ac_objext conftest.$ac_ext
11243 fi
11244 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11245 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11246 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11247
11248 cat >>confdefs.h <<_ACEOF
11249 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11250 _ACEOF
11251
11252
11253 cat >>confdefs.h <<\_ACEOF
11254 #define HAVE_ST_BLKSIZE 1
11255 _ACEOF
11256
11257 fi
11258
11259
11260 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11261 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11262 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11263   echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265   cat >conftest.$ac_ext <<_ACEOF
11266 #line $LINENO "configure"
11267 /* confdefs.h.  */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h.  */
11272 $ac_includes_default
11273 int
11274 main ()
11275 {
11276 static struct stat ac_aggr;
11277 if (ac_aggr.st_blocks)
11278 return 0;
11279   ;
11280   return 0;
11281 }
11282 _ACEOF
11283 rm -f conftest.$ac_objext
11284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11285   (eval $ac_compile) 2>&5
11286   ac_status=$?
11287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288   (exit $ac_status); } &&
11289          { ac_try='test -s conftest.$ac_objext'
11290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291   (eval $ac_try) 2>&5
11292   ac_status=$?
11293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294   (exit $ac_status); }; }; then
11295   ac_cv_member_struct_stat_st_blocks=yes
11296 else
11297   echo "$as_me: failed program was:" >&5
11298 sed 's/^/| /' conftest.$ac_ext >&5
11299
11300 cat >conftest.$ac_ext <<_ACEOF
11301 #line $LINENO "configure"
11302 /* confdefs.h.  */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h.  */
11307 $ac_includes_default
11308 int
11309 main ()
11310 {
11311 static struct stat ac_aggr;
11312 if (sizeof ac_aggr.st_blocks)
11313 return 0;
11314   ;
11315   return 0;
11316 }
11317 _ACEOF
11318 rm -f conftest.$ac_objext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11320   (eval $ac_compile) 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); } &&
11324          { ac_try='test -s conftest.$ac_objext'
11325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326   (eval $ac_try) 2>&5
11327   ac_status=$?
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); }; }; then
11330   ac_cv_member_struct_stat_st_blocks=yes
11331 else
11332   echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11334
11335 ac_cv_member_struct_stat_st_blocks=no
11336 fi
11337 rm -f conftest.$ac_objext conftest.$ac_ext
11338 fi
11339 rm -f conftest.$ac_objext conftest.$ac_ext
11340 fi
11341 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11342 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11343 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11344
11345 cat >>confdefs.h <<_ACEOF
11346 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11347 _ACEOF
11348
11349
11350 cat >>confdefs.h <<\_ACEOF
11351 #define HAVE_ST_BLOCKS 1
11352 _ACEOF
11353
11354 else
11355   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11356 fi
11357
11358
11359 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11360 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11361 if test "${ac_cv_struct_tm+set}" = set; then
11362   echo $ECHO_N "(cached) $ECHO_C" >&6
11363 else
11364   cat >conftest.$ac_ext <<_ACEOF
11365 #line $LINENO "configure"
11366 /* confdefs.h.  */
11367 _ACEOF
11368 cat confdefs.h >>conftest.$ac_ext
11369 cat >>conftest.$ac_ext <<_ACEOF
11370 /* end confdefs.h.  */
11371 #include <sys/types.h>
11372 #include <time.h>
11373
11374 int
11375 main ()
11376 {
11377 struct tm *tp; tp->tm_sec;
11378   ;
11379   return 0;
11380 }
11381 _ACEOF
11382 rm -f conftest.$ac_objext
11383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11384   (eval $ac_compile) 2>&5
11385   ac_status=$?
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); } &&
11388          { ac_try='test -s conftest.$ac_objext'
11389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390   (eval $ac_try) 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); }; }; then
11394   ac_cv_struct_tm=time.h
11395 else
11396   echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11398
11399 ac_cv_struct_tm=sys/time.h
11400 fi
11401 rm -f conftest.$ac_objext conftest.$ac_ext
11402 fi
11403 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11404 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11405 if test $ac_cv_struct_tm = sys/time.h; then
11406
11407 cat >>confdefs.h <<\_ACEOF
11408 #define TM_IN_SYS_TIME 1
11409 _ACEOF
11410
11411 fi
11412
11413 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11414 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11415 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11416   echo $ECHO_N "(cached) $ECHO_C" >&6
11417 else
11418   cat >conftest.$ac_ext <<_ACEOF
11419 #line $LINENO "configure"
11420 /* confdefs.h.  */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h.  */
11425 #include <sys/types.h>
11426 #include <$ac_cv_struct_tm>
11427
11428
11429 int
11430 main ()
11431 {
11432 static struct tm ac_aggr;
11433 if (ac_aggr.tm_zone)
11434 return 0;
11435   ;
11436   return 0;
11437 }
11438 _ACEOF
11439 rm -f conftest.$ac_objext
11440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11441   (eval $ac_compile) 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); } &&
11445          { ac_try='test -s conftest.$ac_objext'
11446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447   (eval $ac_try) 2>&5
11448   ac_status=$?
11449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450   (exit $ac_status); }; }; then
11451   ac_cv_member_struct_tm_tm_zone=yes
11452 else
11453   echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11455
11456 cat >conftest.$ac_ext <<_ACEOF
11457 #line $LINENO "configure"
11458 /* confdefs.h.  */
11459 _ACEOF
11460 cat confdefs.h >>conftest.$ac_ext
11461 cat >>conftest.$ac_ext <<_ACEOF
11462 /* end confdefs.h.  */
11463 #include <sys/types.h>
11464 #include <$ac_cv_struct_tm>
11465
11466
11467 int
11468 main ()
11469 {
11470 static struct tm ac_aggr;
11471 if (sizeof ac_aggr.tm_zone)
11472 return 0;
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext
11478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11479   (eval $ac_compile) 2>&5
11480   ac_status=$?
11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482   (exit $ac_status); } &&
11483          { ac_try='test -s conftest.$ac_objext'
11484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485   (eval $ac_try) 2>&5
11486   ac_status=$?
11487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488   (exit $ac_status); }; }; then
11489   ac_cv_member_struct_tm_tm_zone=yes
11490 else
11491   echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11493
11494 ac_cv_member_struct_tm_tm_zone=no
11495 fi
11496 rm -f conftest.$ac_objext conftest.$ac_ext
11497 fi
11498 rm -f conftest.$ac_objext conftest.$ac_ext
11499 fi
11500 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11501 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11502 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11503
11504 cat >>confdefs.h <<_ACEOF
11505 #define HAVE_STRUCT_TM_TM_ZONE 1
11506 _ACEOF
11507
11508
11509 fi
11510
11511 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11512
11513 cat >>confdefs.h <<\_ACEOF
11514 #define HAVE_TM_ZONE 1
11515 _ACEOF
11516
11517 else
11518   echo "$as_me:$LINENO: checking for tzname" >&5
11519 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11520 if test "${ac_cv_var_tzname+set}" = set; then
11521   echo $ECHO_N "(cached) $ECHO_C" >&6
11522 else
11523   cat >conftest.$ac_ext <<_ACEOF
11524 #line $LINENO "configure"
11525 /* confdefs.h.  */
11526 _ACEOF
11527 cat confdefs.h >>conftest.$ac_ext
11528 cat >>conftest.$ac_ext <<_ACEOF
11529 /* end confdefs.h.  */
11530 #include <time.h>
11531 #ifndef tzname /* For SGI.  */
11532 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11533 #endif
11534
11535 int
11536 main ()
11537 {
11538 atoi(*tzname);
11539   ;
11540   return 0;
11541 }
11542 _ACEOF
11543 rm -f conftest.$ac_objext conftest$ac_exeext
11544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11545   (eval $ac_link) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); } &&
11549          { ac_try='test -s conftest$ac_exeext'
11550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11551   (eval $ac_try) 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; }; then
11555   ac_cv_var_tzname=yes
11556 else
11557   echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 ac_cv_var_tzname=no
11561 fi
11562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11563 fi
11564 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11565 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11566   if test $ac_cv_var_tzname = yes; then
11567
11568 cat >>confdefs.h <<\_ACEOF
11569 #define HAVE_TZNAME 1
11570 _ACEOF
11571
11572   fi
11573 fi
11574
11575
11576 echo "$as_me:$LINENO: checking for utime.h" >&5
11577 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11578 if test "${ba_cv_header_utime_h+set}" = set; then
11579   echo $ECHO_N "(cached) $ECHO_C" >&6
11580 else
11581   cat >conftest.$ac_ext <<_ACEOF
11582 #line $LINENO "configure"
11583 /* confdefs.h.  */
11584 _ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h.  */
11588
11589 #include <sys/types.h>
11590 #include <utime.h>
11591 int
11592 main ()
11593 {
11594 struct utimbuf foo
11595   ;
11596   return 0;
11597 }
11598 _ACEOF
11599 rm -f conftest.$ac_objext
11600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11601   (eval $ac_compile) 2>&5
11602   ac_status=$?
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); } &&
11605          { ac_try='test -s conftest.$ac_objext'
11606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607   (eval $ac_try) 2>&5
11608   ac_status=$?
11609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610   (exit $ac_status); }; }; then
11611   ba_cv_header_utime_h=yes
11612 else
11613   echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11615
11616 ba_cv_header_utime_h=no
11617 fi
11618 rm -f conftest.$ac_objext conftest.$ac_ext
11619 fi
11620 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11621 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11622 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11623 #define HAVE_UTIME_H 1
11624 _ACEOF
11625
11626
11627 echo "$as_me:$LINENO: checking for socklen_t" >&5
11628 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11629 if test "${ba_cv_header_socklen_t+set}" = set; then
11630   echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632   cat >conftest.$ac_ext <<_ACEOF
11633 #line $LINENO "configure"
11634 /* confdefs.h.  */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h.  */
11639
11640 #include <sys/types.h>
11641 #include <sys/socket.h>
11642 int
11643 main ()
11644 {
11645 socklen_t x
11646   ;
11647   return 0;
11648 }
11649 _ACEOF
11650 rm -f conftest.$ac_objext
11651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11652   (eval $ac_compile) 2>&5
11653   ac_status=$?
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); } &&
11656          { ac_try='test -s conftest.$ac_objext'
11657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658   (eval $ac_try) 2>&5
11659   ac_status=$?
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); }; }; then
11662   ba_cv_header_socklen_t=yes
11663 else
11664   echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667 ba_cv_header_socklen_t=no
11668 fi
11669 rm -f conftest.$ac_objext conftest.$ac_ext
11670 fi
11671 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11672 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11673 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11674 #define HAVE_SOCKLEN_T 1
11675 _ACEOF
11676
11677
11678 echo "$as_me:$LINENO: checking for bigendian" >&5
11679 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11680 if test "${ba_cv_bigendian+set}" = set; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683   if test "$cross_compiling" = yes; then
11684   ba_cv_bigendian=no
11685 else
11686   cat >conftest.$ac_ext <<_ACEOF
11687 #line $LINENO "configure"
11688 /* confdefs.h.  */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h.  */
11693 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11694 _ACEOF
11695 rm -f conftest$ac_exeext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11697   (eval $ac_link) 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702   (eval $ac_try) 2>&5
11703   ac_status=$?
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); }; }; then
11706   ba_cv_bigendian=yes
11707 else
11708   echo "$as_me: program exited with status $ac_status" >&5
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 ( exit $ac_status )
11713 ba_cv_bigendian=no
11714 fi
11715 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11716 fi
11717 fi
11718 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11719 echo "${ECHO_T}$ba_cv_bigendian" >&6
11720 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11721 #define HAVE_BIGENDIAN 1
11722 _ACEOF
11723
11724
11725
11726 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11727 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11728 if test "${ac_cv_c_const+set}" = set; then
11729   echo $ECHO_N "(cached) $ECHO_C" >&6
11730 else
11731   cat >conftest.$ac_ext <<_ACEOF
11732 #line $LINENO "configure"
11733 /* confdefs.h.  */
11734 _ACEOF
11735 cat confdefs.h >>conftest.$ac_ext
11736 cat >>conftest.$ac_ext <<_ACEOF
11737 /* end confdefs.h.  */
11738
11739 int
11740 main ()
11741 {
11742 /* FIXME: Include the comments suggested by Paul. */
11743 #ifndef __cplusplus
11744   /* Ultrix mips cc rejects this.  */
11745   typedef int charset[2];
11746   const charset x;
11747   /* SunOS 4.1.1 cc rejects this.  */
11748   char const *const *ccp;
11749   char **p;
11750   /* NEC SVR4.0.2 mips cc rejects this.  */
11751   struct point {int x, y;};
11752   static struct point const zero = {0,0};
11753   /* AIX XL C 1.02.0.0 rejects this.
11754      It does not let you subtract one const X* pointer from another in
11755      an arm of an if-expression whose if-part is not a constant
11756      expression */
11757   const char *g = "string";
11758   ccp = &g + (g ? g-g : 0);
11759   /* HPUX 7.0 cc rejects these. */
11760   ++ccp;
11761   p = (char**) ccp;
11762   ccp = (char const *const *) p;
11763   { /* SCO 3.2v4 cc rejects this.  */
11764     char *t;
11765     char const *s = 0 ? (char *) 0 : (char const *) 0;
11766
11767     *t++ = 0;
11768   }
11769   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11770     int x[] = {25, 17};
11771     const int *foo = &x[0];
11772     ++foo;
11773   }
11774   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11775     typedef const int *iptr;
11776     iptr p = 0;
11777     ++p;
11778   }
11779   { /* AIX XL C 1.02.0.0 rejects this saying
11780        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11781     struct s { int j; const int *ap[3]; };
11782     struct s *b; b->j = 5;
11783   }
11784   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11785     const int foo = 10;
11786   }
11787 #endif
11788
11789   ;
11790   return 0;
11791 }
11792 _ACEOF
11793 rm -f conftest.$ac_objext
11794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11795   (eval $ac_compile) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); } &&
11799          { ac_try='test -s conftest.$ac_objext'
11800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801   (eval $ac_try) 2>&5
11802   ac_status=$?
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); }; }; then
11805   ac_cv_c_const=yes
11806 else
11807   echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11809
11810 ac_cv_c_const=no
11811 fi
11812 rm -f conftest.$ac_objext conftest.$ac_ext
11813 fi
11814 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11815 echo "${ECHO_T}$ac_cv_c_const" >&6
11816 if test $ac_cv_c_const = no; then
11817
11818 cat >>confdefs.h <<\_ACEOF
11819 #define const
11820 _ACEOF
11821
11822 fi
11823
11824
11825
11826 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11827 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11828 fstype=no
11829 # The order of these tests is important.
11830 cat >conftest.$ac_ext <<_ACEOF
11831 #line $LINENO "configure"
11832 /* confdefs.h.  */
11833 _ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h.  */
11837 #include <sys/statvfs.h>
11838 #include <sys/fstyp.h>
11839 _ACEOF
11840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11842   ac_status=$?
11843   grep -v '^ *+' conftest.er1 >conftest.err
11844   rm -f conftest.er1
11845   cat conftest.err >&5
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); } >/dev/null; then
11848   if test -s conftest.err; then
11849     ac_cpp_err=$ac_c_preproc_warn_flag
11850   else
11851     ac_cpp_err=
11852   fi
11853 else
11854   ac_cpp_err=yes
11855 fi
11856 if test -z "$ac_cpp_err"; then
11857   cat >>confdefs.h <<\_ACEOF
11858 #define FSTYPE_STATVFS 1
11859 _ACEOF
11860  fstype=SVR4
11861 else
11862   echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11864
11865
11866 fi
11867 rm -f conftest.err conftest.$ac_ext
11868 if test $fstype = no; then
11869 cat >conftest.$ac_ext <<_ACEOF
11870 #line $LINENO "configure"
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876 #include <sys/statfs.h>
11877 #include <sys/fstyp.h>
11878 _ACEOF
11879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11880   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11881   ac_status=$?
11882   grep -v '^ *+' conftest.er1 >conftest.err
11883   rm -f conftest.er1
11884   cat conftest.err >&5
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); } >/dev/null; then
11887   if test -s conftest.err; then
11888     ac_cpp_err=$ac_c_preproc_warn_flag
11889   else
11890     ac_cpp_err=
11891   fi
11892 else
11893   ac_cpp_err=yes
11894 fi
11895 if test -z "$ac_cpp_err"; then
11896   cat >>confdefs.h <<\_ACEOF
11897 #define FSTYPE_USG_STATFS 1
11898 _ACEOF
11899  fstype=SVR3
11900 else
11901   echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904
11905 fi
11906 rm -f conftest.err conftest.$ac_ext
11907 fi
11908 if test $fstype = no; then
11909 cat >conftest.$ac_ext <<_ACEOF
11910 #line $LINENO "configure"
11911 /* confdefs.h.  */
11912 _ACEOF
11913 cat confdefs.h >>conftest.$ac_ext
11914 cat >>conftest.$ac_ext <<_ACEOF
11915 /* end confdefs.h.  */
11916 #include <sys/statfs.h>
11917 #include <sys/vmount.h>
11918 _ACEOF
11919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11920   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11921   ac_status=$?
11922   grep -v '^ *+' conftest.er1 >conftest.err
11923   rm -f conftest.er1
11924   cat conftest.err >&5
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); } >/dev/null; then
11927   if test -s conftest.err; then
11928     ac_cpp_err=$ac_c_preproc_warn_flag
11929   else
11930     ac_cpp_err=
11931   fi
11932 else
11933   ac_cpp_err=yes
11934 fi
11935 if test -z "$ac_cpp_err"; then
11936   cat >>confdefs.h <<\_ACEOF
11937 #define FSTYPE_AIX_STATFS 1
11938 _ACEOF
11939  fstype=AIX
11940 else
11941   echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11943
11944
11945 fi
11946 rm -f conftest.err conftest.$ac_ext
11947 fi
11948 if test $fstype = no; then
11949 cat >conftest.$ac_ext <<_ACEOF
11950 #line $LINENO "configure"
11951 /* confdefs.h.  */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h.  */
11956 #include <mntent.h>
11957 _ACEOF
11958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11959   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11960   ac_status=$?
11961   grep -v '^ *+' conftest.er1 >conftest.err
11962   rm -f conftest.er1
11963   cat conftest.err >&5
11964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965   (exit $ac_status); } >/dev/null; then
11966   if test -s conftest.err; then
11967     ac_cpp_err=$ac_c_preproc_warn_flag
11968   else
11969     ac_cpp_err=
11970   fi
11971 else
11972   ac_cpp_err=yes
11973 fi
11974 if test -z "$ac_cpp_err"; then
11975   cat >>confdefs.h <<\_ACEOF
11976 #define FSTYPE_MNTENT 1
11977 _ACEOF
11978  fstype=4.3BSD
11979 else
11980   echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11982
11983
11984 fi
11985 rm -f conftest.err conftest.$ac_ext
11986 fi
11987 if test $fstype = no; then
11988 cat >conftest.$ac_ext <<_ACEOF
11989 #line $LINENO "configure"
11990 /* confdefs.h.  */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h.  */
11995 #include <sys/mount.h>
11996
11997 _ACEOF
11998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11999   $EGREP "f_type;" >/dev/null 2>&1; then
12000   cat >>confdefs.h <<\_ACEOF
12001 #define FSTYPE_STATFS 1
12002 _ACEOF
12003  fstype=4.4BSD/OSF1
12004 fi
12005 rm -f conftest*
12006
12007 fi
12008 if test $fstype = no; then
12009 cat >conftest.$ac_ext <<_ACEOF
12010 #line $LINENO "configure"
12011 /* confdefs.h.  */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h.  */
12016 #include <sys/mount.h>
12017 #include <sys/fs_types.h>
12018 _ACEOF
12019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12021   ac_status=$?
12022   grep -v '^ *+' conftest.er1 >conftest.err
12023   rm -f conftest.er1
12024   cat conftest.err >&5
12025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026   (exit $ac_status); } >/dev/null; then
12027   if test -s conftest.err; then
12028     ac_cpp_err=$ac_c_preproc_warn_flag
12029   else
12030     ac_cpp_err=
12031   fi
12032 else
12033   ac_cpp_err=yes
12034 fi
12035 if test -z "$ac_cpp_err"; then
12036   cat >>confdefs.h <<\_ACEOF
12037 #define FSTYPE_GETMNT 1
12038 _ACEOF
12039  fstype=Ultrix
12040 else
12041   echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12043
12044
12045 fi
12046 rm -f conftest.err conftest.$ac_ext
12047 fi
12048 echo "$as_me:$LINENO: result: $fstype" >&5
12049 echo "${ECHO_T}$fstype" >&6
12050
12051 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12052 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12053 if test "${ac_cv_type_signal+set}" = set; then
12054   echo $ECHO_N "(cached) $ECHO_C" >&6
12055 else
12056   cat >conftest.$ac_ext <<_ACEOF
12057 #line $LINENO "configure"
12058 /* confdefs.h.  */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h.  */
12063 #include <sys/types.h>
12064 #include <signal.h>
12065 #ifdef signal
12066 # undef signal
12067 #endif
12068 #ifdef __cplusplus
12069 extern "C" void (*signal (int, void (*)(int)))(int);
12070 #else
12071 void (*signal ()) ();
12072 #endif
12073
12074 int
12075 main ()
12076 {
12077 int i;
12078   ;
12079   return 0;
12080 }
12081 _ACEOF
12082 rm -f conftest.$ac_objext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084   (eval $ac_compile) 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); } &&
12088          { ac_try='test -s conftest.$ac_objext'
12089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090   (eval $ac_try) 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); }; }; then
12094   ac_cv_type_signal=void
12095 else
12096   echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12098
12099 ac_cv_type_signal=int
12100 fi
12101 rm -f conftest.$ac_objext conftest.$ac_ext
12102 fi
12103 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12104 echo "${ECHO_T}$ac_cv_type_signal" >&6
12105
12106 cat >>confdefs.h <<_ACEOF
12107 #define RETSIGTYPE $ac_cv_type_signal
12108 _ACEOF
12109
12110
12111
12112 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12113 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12114 if test "${bash_cv_signal_vintage+set}" = set; then
12115   echo $ECHO_N "(cached) $ECHO_C" >&6
12116 else
12117
12118   cat >conftest.$ac_ext <<_ACEOF
12119 #line $LINENO "configure"
12120 /* confdefs.h.  */
12121 _ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h.  */
12125 #include <signal.h>
12126 int
12127 main ()
12128 {
12129
12130     sigset_t ss;
12131     struct sigaction sa;
12132     sigemptyset(&ss); sigsuspend(&ss);
12133     sigaction(SIGINT, &sa, (struct sigaction *) 0);
12134     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12135
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 rm -f conftest.$ac_objext conftest$ac_exeext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12142   (eval $ac_link) 2>&5
12143   ac_status=$?
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); } &&
12146          { ac_try='test -s conftest$ac_exeext'
12147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148   (eval $ac_try) 2>&5
12149   ac_status=$?
12150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151   (exit $ac_status); }; }; then
12152   bash_cv_signal_vintage=posix
12153 else
12154   echo "$as_me: failed program was:" >&5
12155 sed 's/^/| /' conftest.$ac_ext >&5
12156
12157
12158     cat >conftest.$ac_ext <<_ACEOF
12159 #line $LINENO "configure"
12160 /* confdefs.h.  */
12161 _ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h.  */
12165 #include <signal.h>
12166 int
12167 main ()
12168 {
12169
12170         int mask = sigmask(SIGINT);
12171         sigsetmask(mask); sigblock(mask); sigpause(mask);
12172
12173   ;
12174   return 0;
12175 }
12176 _ACEOF
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179   (eval $ac_link) 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); } &&
12183          { ac_try='test -s conftest$ac_exeext'
12184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185   (eval $ac_try) 2>&5
12186   ac_status=$?
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); }; }; then
12189   bash_cv_signal_vintage=4.2bsd
12190 else
12191   echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12193
12194
12195       cat >conftest.$ac_ext <<_ACEOF
12196 #line $LINENO "configure"
12197 /* confdefs.h.  */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h.  */
12202
12203         #include <signal.h>
12204         RETSIGTYPE foo() { }
12205 int
12206 main ()
12207 {
12208
12209                 int mask = sigmask(SIGINT);
12210                 sigset(SIGINT, foo); sigrelse(SIGINT);
12211                 sighold(SIGINT); sigpause(SIGINT);
12212
12213   ;
12214   return 0;
12215 }
12216 _ACEOF
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12219   (eval $ac_link) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); } &&
12223          { ac_try='test -s conftest$ac_exeext'
12224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225   (eval $ac_try) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; }; then
12229   bash_cv_signal_vintage=svr3
12230 else
12231   echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234 bash_cv_signal_vintage=v7
12235
12236 fi
12237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12238
12239 fi
12240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12241
12242 fi
12243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12244
12245 fi
12246
12247 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12248 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12249 if test "$bash_cv_signal_vintage" = posix; then
12250 cat >>confdefs.h <<\_ACEOF
12251 #define HAVE_POSIX_SIGNALS 1
12252 _ACEOF
12253
12254 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12255 cat >>confdefs.h <<\_ACEOF
12256 #define HAVE_BSD_SIGNALS 1
12257 _ACEOF
12258
12259 elif test "$bash_cv_signal_vintage" = svr3; then
12260 cat >>confdefs.h <<\_ACEOF
12261 #define HAVE_USG_SIGHOLD 1
12262 _ACEOF
12263
12264 fi
12265
12266 echo "$as_me:$LINENO: checking for mode_t" >&5
12267 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12268 if test "${ac_cv_type_mode_t+set}" = set; then
12269   echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271   cat >conftest.$ac_ext <<_ACEOF
12272 #line $LINENO "configure"
12273 /* confdefs.h.  */
12274 _ACEOF
12275 cat confdefs.h >>conftest.$ac_ext
12276 cat >>conftest.$ac_ext <<_ACEOF
12277 /* end confdefs.h.  */
12278 $ac_includes_default
12279 int
12280 main ()
12281 {
12282 if ((mode_t *) 0)
12283   return 0;
12284 if (sizeof (mode_t))
12285   return 0;
12286   ;
12287   return 0;
12288 }
12289 _ACEOF
12290 rm -f conftest.$ac_objext
12291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12292   (eval $ac_compile) 2>&5
12293   ac_status=$?
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); } &&
12296          { ac_try='test -s conftest.$ac_objext'
12297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298   (eval $ac_try) 2>&5
12299   ac_status=$?
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); }; }; then
12302   ac_cv_type_mode_t=yes
12303 else
12304   echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12306
12307 ac_cv_type_mode_t=no
12308 fi
12309 rm -f conftest.$ac_objext conftest.$ac_ext
12310 fi
12311 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12312 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12313 if test $ac_cv_type_mode_t = yes; then
12314   :
12315 else
12316
12317 cat >>confdefs.h <<_ACEOF
12318 #define mode_t int
12319 _ACEOF
12320
12321 fi
12322
12323 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12324 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12325 if test "${ac_cv_type_uid_t+set}" = set; then
12326   echo $ECHO_N "(cached) $ECHO_C" >&6
12327 else
12328   cat >conftest.$ac_ext <<_ACEOF
12329 #line $LINENO "configure"
12330 /* confdefs.h.  */
12331 _ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h.  */
12335 #include <sys/types.h>
12336
12337 _ACEOF
12338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12339   $EGREP "uid_t" >/dev/null 2>&1; then
12340   ac_cv_type_uid_t=yes
12341 else
12342   ac_cv_type_uid_t=no
12343 fi
12344 rm -f conftest*
12345
12346 fi
12347 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12348 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12349 if test $ac_cv_type_uid_t = no; then
12350
12351 cat >>confdefs.h <<\_ACEOF
12352 #define uid_t int
12353 _ACEOF
12354
12355
12356 cat >>confdefs.h <<\_ACEOF
12357 #define gid_t int
12358 _ACEOF
12359
12360 fi
12361
12362 echo "$as_me:$LINENO: checking for size_t" >&5
12363 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12364 if test "${ac_cv_type_size_t+set}" = set; then
12365   echo $ECHO_N "(cached) $ECHO_C" >&6
12366 else
12367   cat >conftest.$ac_ext <<_ACEOF
12368 #line $LINENO "configure"
12369 /* confdefs.h.  */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h.  */
12374 $ac_includes_default
12375 int
12376 main ()
12377 {
12378 if ((size_t *) 0)
12379   return 0;
12380 if (sizeof (size_t))
12381   return 0;
12382   ;
12383   return 0;
12384 }
12385 _ACEOF
12386 rm -f conftest.$ac_objext
12387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12388   (eval $ac_compile) 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); } &&
12392          { ac_try='test -s conftest.$ac_objext'
12393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394   (eval $ac_try) 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); }; }; then
12398   ac_cv_type_size_t=yes
12399 else
12400   echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12402
12403 ac_cv_type_size_t=no
12404 fi
12405 rm -f conftest.$ac_objext conftest.$ac_ext
12406 fi
12407 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12408 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12409 if test $ac_cv_type_size_t = yes; then
12410   :
12411 else
12412
12413 cat >>confdefs.h <<_ACEOF
12414 #define size_t unsigned
12415 _ACEOF
12416
12417 fi
12418
12419 echo "$as_me:$LINENO: checking for pid_t" >&5
12420 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12421 if test "${ac_cv_type_pid_t+set}" = set; then
12422   echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424   cat >conftest.$ac_ext <<_ACEOF
12425 #line $LINENO "configure"
12426 /* confdefs.h.  */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h.  */
12431 $ac_includes_default
12432 int
12433 main ()
12434 {
12435 if ((pid_t *) 0)
12436   return 0;
12437 if (sizeof (pid_t))
12438   return 0;
12439   ;
12440   return 0;
12441 }
12442 _ACEOF
12443 rm -f conftest.$ac_objext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445   (eval $ac_compile) 2>&5
12446   ac_status=$?
12447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448   (exit $ac_status); } &&
12449          { ac_try='test -s conftest.$ac_objext'
12450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451   (eval $ac_try) 2>&5
12452   ac_status=$?
12453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454   (exit $ac_status); }; }; then
12455   ac_cv_type_pid_t=yes
12456 else
12457   echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12459
12460 ac_cv_type_pid_t=no
12461 fi
12462 rm -f conftest.$ac_objext conftest.$ac_ext
12463 fi
12464 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12465 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12466 if test $ac_cv_type_pid_t = yes; then
12467   :
12468 else
12469
12470 cat >>confdefs.h <<_ACEOF
12471 #define pid_t int
12472 _ACEOF
12473
12474 fi
12475
12476 echo "$as_me:$LINENO: checking for off_t" >&5
12477 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12478 if test "${ac_cv_type_off_t+set}" = set; then
12479   echo $ECHO_N "(cached) $ECHO_C" >&6
12480 else
12481   cat >conftest.$ac_ext <<_ACEOF
12482 #line $LINENO "configure"
12483 /* confdefs.h.  */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h.  */
12488 $ac_includes_default
12489 int
12490 main ()
12491 {
12492 if ((off_t *) 0)
12493   return 0;
12494 if (sizeof (off_t))
12495   return 0;
12496   ;
12497   return 0;
12498 }
12499 _ACEOF
12500 rm -f conftest.$ac_objext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502   (eval $ac_compile) 2>&5
12503   ac_status=$?
12504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505   (exit $ac_status); } &&
12506          { ac_try='test -s conftest.$ac_objext'
12507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12508   (eval $ac_try) 2>&5
12509   ac_status=$?
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); }; }; then
12512   ac_cv_type_off_t=yes
12513 else
12514   echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12516
12517 ac_cv_type_off_t=no
12518 fi
12519 rm -f conftest.$ac_objext conftest.$ac_ext
12520 fi
12521 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12522 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12523 if test $ac_cv_type_off_t = yes; then
12524   :
12525 else
12526
12527 cat >>confdefs.h <<_ACEOF
12528 #define off_t long
12529 _ACEOF
12530
12531 fi
12532
12533 echo "$as_me:$LINENO: checking for ino_t" >&5
12534 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12535 if test "${ac_cv_type_ino_t+set}" = set; then
12536   echo $ECHO_N "(cached) $ECHO_C" >&6
12537 else
12538   cat >conftest.$ac_ext <<_ACEOF
12539 #line $LINENO "configure"
12540 /* confdefs.h.  */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h.  */
12545 $ac_includes_default
12546 int
12547 main ()
12548 {
12549 if ((ino_t *) 0)
12550   return 0;
12551 if (sizeof (ino_t))
12552   return 0;
12553   ;
12554   return 0;
12555 }
12556 _ACEOF
12557 rm -f conftest.$ac_objext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12559   (eval $ac_compile) 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } &&
12563          { ac_try='test -s conftest.$ac_objext'
12564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565   (eval $ac_try) 2>&5
12566   ac_status=$?
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); }; }; then
12569   ac_cv_type_ino_t=yes
12570 else
12571   echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12573
12574 ac_cv_type_ino_t=no
12575 fi
12576 rm -f conftest.$ac_objext conftest.$ac_ext
12577 fi
12578 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12579 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12580 if test $ac_cv_type_ino_t = yes; then
12581   :
12582 else
12583
12584 cat >>confdefs.h <<_ACEOF
12585 #define ino_t unsigned long
12586 _ACEOF
12587
12588 fi
12589
12590 echo "$as_me:$LINENO: checking for dev_t" >&5
12591 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12592 if test "${ac_cv_type_dev_t+set}" = set; then
12593   echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595   cat >conftest.$ac_ext <<_ACEOF
12596 #line $LINENO "configure"
12597 /* confdefs.h.  */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h.  */
12602 $ac_includes_default
12603 int
12604 main ()
12605 {
12606 if ((dev_t *) 0)
12607   return 0;
12608 if (sizeof (dev_t))
12609   return 0;
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest.$ac_objext
12615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12616   (eval $ac_compile) 2>&5
12617   ac_status=$?
12618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619   (exit $ac_status); } &&
12620          { ac_try='test -s conftest.$ac_objext'
12621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12622   (eval $ac_try) 2>&5
12623   ac_status=$?
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); }; }; then
12626   ac_cv_type_dev_t=yes
12627 else
12628   echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12630
12631 ac_cv_type_dev_t=no
12632 fi
12633 rm -f conftest.$ac_objext conftest.$ac_ext
12634 fi
12635 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12636 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12637 if test $ac_cv_type_dev_t = yes; then
12638   :
12639 else
12640
12641 cat >>confdefs.h <<_ACEOF
12642 #define dev_t unsigned long
12643 _ACEOF
12644
12645 fi
12646
12647 echo "$as_me:$LINENO: checking for daddr_t" >&5
12648 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12649 if test "${ac_cv_type_daddr_t+set}" = set; then
12650   echo $ECHO_N "(cached) $ECHO_C" >&6
12651 else
12652   cat >conftest.$ac_ext <<_ACEOF
12653 #line $LINENO "configure"
12654 /* confdefs.h.  */
12655 _ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h.  */
12659 $ac_includes_default
12660 int
12661 main ()
12662 {
12663 if ((daddr_t *) 0)
12664   return 0;
12665 if (sizeof (daddr_t))
12666   return 0;
12667   ;
12668   return 0;
12669 }
12670 _ACEOF
12671 rm -f conftest.$ac_objext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12673   (eval $ac_compile) 2>&5
12674   ac_status=$?
12675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676   (exit $ac_status); } &&
12677          { ac_try='test -s conftest.$ac_objext'
12678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679   (eval $ac_try) 2>&5
12680   ac_status=$?
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); }; }; then
12683   ac_cv_type_daddr_t=yes
12684 else
12685   echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12687
12688 ac_cv_type_daddr_t=no
12689 fi
12690 rm -f conftest.$ac_objext conftest.$ac_ext
12691 fi
12692 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12693 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12694 if test $ac_cv_type_daddr_t = yes; then
12695   :
12696 else
12697
12698 cat >>confdefs.h <<_ACEOF
12699 #define daddr_t long
12700 _ACEOF
12701
12702 fi
12703
12704 echo "$as_me:$LINENO: checking for major_t" >&5
12705 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12706 if test "${ac_cv_type_major_t+set}" = set; then
12707   echo $ECHO_N "(cached) $ECHO_C" >&6
12708 else
12709   cat >conftest.$ac_ext <<_ACEOF
12710 #line $LINENO "configure"
12711 /* confdefs.h.  */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h.  */
12716 $ac_includes_default
12717 int
12718 main ()
12719 {
12720 if ((major_t *) 0)
12721   return 0;
12722 if (sizeof (major_t))
12723   return 0;
12724   ;
12725   return 0;
12726 }
12727 _ACEOF
12728 rm -f conftest.$ac_objext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730   (eval $ac_compile) 2>&5
12731   ac_status=$?
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); } &&
12734          { ac_try='test -s conftest.$ac_objext'
12735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736   (eval $ac_try) 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); }; }; then
12740   ac_cv_type_major_t=yes
12741 else
12742   echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12744
12745 ac_cv_type_major_t=no
12746 fi
12747 rm -f conftest.$ac_objext conftest.$ac_ext
12748 fi
12749 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12750 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12751 if test $ac_cv_type_major_t = yes; then
12752   :
12753 else
12754
12755 cat >>confdefs.h <<_ACEOF
12756 #define major_t int
12757 _ACEOF
12758
12759 fi
12760
12761 echo "$as_me:$LINENO: checking for minor_t" >&5
12762 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12763 if test "${ac_cv_type_minor_t+set}" = set; then
12764   echo $ECHO_N "(cached) $ECHO_C" >&6
12765 else
12766   cat >conftest.$ac_ext <<_ACEOF
12767 #line $LINENO "configure"
12768 /* confdefs.h.  */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h.  */
12773 $ac_includes_default
12774 int
12775 main ()
12776 {
12777 if ((minor_t *) 0)
12778   return 0;
12779 if (sizeof (minor_t))
12780   return 0;
12781   ;
12782   return 0;
12783 }
12784 _ACEOF
12785 rm -f conftest.$ac_objext
12786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12787   (eval $ac_compile) 2>&5
12788   ac_status=$?
12789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790   (exit $ac_status); } &&
12791          { ac_try='test -s conftest.$ac_objext'
12792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793   (eval $ac_try) 2>&5
12794   ac_status=$?
12795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796   (exit $ac_status); }; }; then
12797   ac_cv_type_minor_t=yes
12798 else
12799   echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802 ac_cv_type_minor_t=no
12803 fi
12804 rm -f conftest.$ac_objext conftest.$ac_ext
12805 fi
12806 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12807 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12808 if test $ac_cv_type_minor_t = yes; then
12809   :
12810 else
12811
12812 cat >>confdefs.h <<_ACEOF
12813 #define minor_t int
12814 _ACEOF
12815
12816 fi
12817
12818 echo "$as_me:$LINENO: checking for ssize_t" >&5
12819 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12820 if test "${ac_cv_type_ssize_t+set}" = set; then
12821   echo $ECHO_N "(cached) $ECHO_C" >&6
12822 else
12823   cat >conftest.$ac_ext <<_ACEOF
12824 #line $LINENO "configure"
12825 /* confdefs.h.  */
12826 _ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h.  */
12830 $ac_includes_default
12831 int
12832 main ()
12833 {
12834 if ((ssize_t *) 0)
12835   return 0;
12836 if (sizeof (ssize_t))
12837   return 0;
12838   ;
12839   return 0;
12840 }
12841 _ACEOF
12842 rm -f conftest.$ac_objext
12843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12844   (eval $ac_compile) 2>&5
12845   ac_status=$?
12846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847   (exit $ac_status); } &&
12848          { ac_try='test -s conftest.$ac_objext'
12849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12850   (eval $ac_try) 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); }; }; then
12854   ac_cv_type_ssize_t=yes
12855 else
12856   echo "$as_me: failed program was:" >&5
12857 sed 's/^/| /' conftest.$ac_ext >&5
12858
12859 ac_cv_type_ssize_t=no
12860 fi
12861 rm -f conftest.$ac_objext conftest.$ac_ext
12862 fi
12863 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12864 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12865 if test $ac_cv_type_ssize_t = yes; then
12866   :
12867 else
12868
12869 cat >>confdefs.h <<_ACEOF
12870 #define ssize_t int
12871 _ACEOF
12872
12873 fi
12874
12875 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12876 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12877 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12878   echo $ECHO_N "(cached) $ECHO_C" >&6
12879 else
12880   cat >conftest.$ac_ext <<_ACEOF
12881 #line $LINENO "configure"
12882 /* confdefs.h.  */
12883 _ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h.  */
12887 $ac_includes_default
12888 int
12889 main ()
12890 {
12891 static struct stat ac_aggr;
12892 if (ac_aggr.st_blocks)
12893 return 0;
12894   ;
12895   return 0;
12896 }
12897 _ACEOF
12898 rm -f conftest.$ac_objext
12899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12900   (eval $ac_compile) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); } &&
12904          { ac_try='test -s conftest.$ac_objext'
12905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906   (eval $ac_try) 2>&5
12907   ac_status=$?
12908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909   (exit $ac_status); }; }; then
12910   ac_cv_member_struct_stat_st_blocks=yes
12911 else
12912   echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12914
12915 cat >conftest.$ac_ext <<_ACEOF
12916 #line $LINENO "configure"
12917 /* confdefs.h.  */
12918 _ACEOF
12919 cat confdefs.h >>conftest.$ac_ext
12920 cat >>conftest.$ac_ext <<_ACEOF
12921 /* end confdefs.h.  */
12922 $ac_includes_default
12923 int
12924 main ()
12925 {
12926 static struct stat ac_aggr;
12927 if (sizeof ac_aggr.st_blocks)
12928 return 0;
12929   ;
12930   return 0;
12931 }
12932 _ACEOF
12933 rm -f conftest.$ac_objext
12934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12935   (eval $ac_compile) 2>&5
12936   ac_status=$?
12937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938   (exit $ac_status); } &&
12939          { ac_try='test -s conftest.$ac_objext'
12940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941   (eval $ac_try) 2>&5
12942   ac_status=$?
12943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944   (exit $ac_status); }; }; then
12945   ac_cv_member_struct_stat_st_blocks=yes
12946 else
12947   echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12949
12950 ac_cv_member_struct_stat_st_blocks=no
12951 fi
12952 rm -f conftest.$ac_objext conftest.$ac_ext
12953 fi
12954 rm -f conftest.$ac_objext conftest.$ac_ext
12955 fi
12956 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12957 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12958 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12959
12960 cat >>confdefs.h <<_ACEOF
12961 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12962 _ACEOF
12963
12964
12965 cat >>confdefs.h <<\_ACEOF
12966 #define HAVE_ST_BLOCKS 1
12967 _ACEOF
12968
12969 else
12970   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12971 fi
12972
12973
12974
12975 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12976 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12977 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12978   echo $ECHO_N "(cached) $ECHO_C" >&6
12979 else
12980   cat >conftest.$ac_ext <<_ACEOF
12981 #line $LINENO "configure"
12982 /* confdefs.h.  */
12983 _ACEOF
12984 cat confdefs.h >>conftest.$ac_ext
12985 cat >>conftest.$ac_ext <<_ACEOF
12986 /* end confdefs.h.  */
12987 $ac_includes_default
12988 int
12989 main ()
12990 {
12991 static struct stat ac_aggr;
12992 if (ac_aggr.st_rdev)
12993 return 0;
12994   ;
12995   return 0;
12996 }
12997 _ACEOF
12998 rm -f conftest.$ac_objext
12999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13000   (eval $ac_compile) 2>&5
13001   ac_status=$?
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); } &&
13004          { ac_try='test -s conftest.$ac_objext'
13005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006   (eval $ac_try) 2>&5
13007   ac_status=$?
13008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009   (exit $ac_status); }; }; then
13010   ac_cv_member_struct_stat_st_rdev=yes
13011 else
13012   echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13014
13015 cat >conftest.$ac_ext <<_ACEOF
13016 #line $LINENO "configure"
13017 /* confdefs.h.  */
13018 _ACEOF
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h.  */
13022 $ac_includes_default
13023 int
13024 main ()
13025 {
13026 static struct stat ac_aggr;
13027 if (sizeof ac_aggr.st_rdev)
13028 return 0;
13029   ;
13030   return 0;
13031 }
13032 _ACEOF
13033 rm -f conftest.$ac_objext
13034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13035   (eval $ac_compile) 2>&5
13036   ac_status=$?
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); } &&
13039          { ac_try='test -s conftest.$ac_objext'
13040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041   (eval $ac_try) 2>&5
13042   ac_status=$?
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); }; }; then
13045   ac_cv_member_struct_stat_st_rdev=yes
13046 else
13047   echo "$as_me: failed program was:" >&5
13048 sed 's/^/| /' conftest.$ac_ext >&5
13049
13050 ac_cv_member_struct_stat_st_rdev=no
13051 fi
13052 rm -f conftest.$ac_objext conftest.$ac_ext
13053 fi
13054 rm -f conftest.$ac_objext conftest.$ac_ext
13055 fi
13056 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13057 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13058 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13059
13060 cat >>confdefs.h <<_ACEOF
13061 #define HAVE_STRUCT_STAT_ST_RDEV 1
13062 _ACEOF
13063
13064
13065 cat >>confdefs.h <<\_ACEOF
13066 #define HAVE_ST_RDEV 1
13067 _ACEOF
13068
13069 fi
13070
13071
13072 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13073 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13074 if test "${ac_cv_struct_tm+set}" = set; then
13075   echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077   cat >conftest.$ac_ext <<_ACEOF
13078 #line $LINENO "configure"
13079 /* confdefs.h.  */
13080 _ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h.  */
13084 #include <sys/types.h>
13085 #include <time.h>
13086
13087 int
13088 main ()
13089 {
13090 struct tm *tp; tp->tm_sec;
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097   (eval $ac_compile) 2>&5
13098   ac_status=$?
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); } &&
13101          { ac_try='test -s conftest.$ac_objext'
13102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103   (eval $ac_try) 2>&5
13104   ac_status=$?
13105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106   (exit $ac_status); }; }; then
13107   ac_cv_struct_tm=time.h
13108 else
13109   echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13111
13112 ac_cv_struct_tm=sys/time.h
13113 fi
13114 rm -f conftest.$ac_objext conftest.$ac_ext
13115 fi
13116 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13117 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13118 if test $ac_cv_struct_tm = sys/time.h; then
13119
13120 cat >>confdefs.h <<\_ACEOF
13121 #define TM_IN_SYS_TIME 1
13122 _ACEOF
13123
13124 fi
13125
13126 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13127 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13128 if test "${ac_cv_c_const+set}" = set; then
13129   echo $ECHO_N "(cached) $ECHO_C" >&6
13130 else
13131   cat >conftest.$ac_ext <<_ACEOF
13132 #line $LINENO "configure"
13133 /* confdefs.h.  */
13134 _ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h.  */
13138
13139 int
13140 main ()
13141 {
13142 /* FIXME: Include the comments suggested by Paul. */
13143 #ifndef __cplusplus
13144   /* Ultrix mips cc rejects this.  */
13145   typedef int charset[2];
13146   const charset x;
13147   /* SunOS 4.1.1 cc rejects this.  */
13148   char const *const *ccp;
13149   char **p;
13150   /* NEC SVR4.0.2 mips cc rejects this.  */
13151   struct point {int x, y;};
13152   static struct point const zero = {0,0};
13153   /* AIX XL C 1.02.0.0 rejects this.
13154      It does not let you subtract one const X* pointer from another in
13155      an arm of an if-expression whose if-part is not a constant
13156      expression */
13157   const char *g = "string";
13158   ccp = &g + (g ? g-g : 0);
13159   /* HPUX 7.0 cc rejects these. */
13160   ++ccp;
13161   p = (char**) ccp;
13162   ccp = (char const *const *) p;
13163   { /* SCO 3.2v4 cc rejects this.  */
13164     char *t;
13165     char const *s = 0 ? (char *) 0 : (char const *) 0;
13166
13167     *t++ = 0;
13168   }
13169   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13170     int x[] = {25, 17};
13171     const int *foo = &x[0];
13172     ++foo;
13173   }
13174   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13175     typedef const int *iptr;
13176     iptr p = 0;
13177     ++p;
13178   }
13179   { /* AIX XL C 1.02.0.0 rejects this saying
13180        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13181     struct s { int j; const int *ap[3]; };
13182     struct s *b; b->j = 5;
13183   }
13184   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13185     const int foo = 10;
13186   }
13187 #endif
13188
13189   ;
13190   return 0;
13191 }
13192 _ACEOF
13193 rm -f conftest.$ac_objext
13194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13195   (eval $ac_compile) 2>&5
13196   ac_status=$?
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); } &&
13199          { ac_try='test -s conftest.$ac_objext'
13200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201   (eval $ac_try) 2>&5
13202   ac_status=$?
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); }; }; then
13205   ac_cv_c_const=yes
13206 else
13207   echo "$as_me: failed program was:" >&5
13208 sed 's/^/| /' conftest.$ac_ext >&5
13209
13210 ac_cv_c_const=no
13211 fi
13212 rm -f conftest.$ac_objext conftest.$ac_ext
13213 fi
13214 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13215 echo "${ECHO_T}$ac_cv_c_const" >&6
13216 if test $ac_cv_c_const = no; then
13217
13218 cat >>confdefs.h <<\_ACEOF
13219 #define const
13220 _ACEOF
13221
13222 fi
13223
13224
13225
13226 echo "$as_me:$LINENO: checking for char" >&5
13227 echo $ECHO_N "checking for char... $ECHO_C" >&6
13228 if test "${ac_cv_type_char+set}" = set; then
13229   echo $ECHO_N "(cached) $ECHO_C" >&6
13230 else
13231   cat >conftest.$ac_ext <<_ACEOF
13232 #line $LINENO "configure"
13233 /* confdefs.h.  */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h.  */
13238 $ac_includes_default
13239 int
13240 main ()
13241 {
13242 if ((char *) 0)
13243   return 0;
13244 if (sizeof (char))
13245   return 0;
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 rm -f conftest.$ac_objext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13252   (eval $ac_compile) 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); } &&
13256          { ac_try='test -s conftest.$ac_objext'
13257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258   (eval $ac_try) 2>&5
13259   ac_status=$?
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); }; }; then
13262   ac_cv_type_char=yes
13263 else
13264   echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13266
13267 ac_cv_type_char=no
13268 fi
13269 rm -f conftest.$ac_objext conftest.$ac_ext
13270 fi
13271 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13272 echo "${ECHO_T}$ac_cv_type_char" >&6
13273
13274 echo "$as_me:$LINENO: checking size of char" >&5
13275 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13276 if test "${ac_cv_sizeof_char+set}" = set; then
13277   echo $ECHO_N "(cached) $ECHO_C" >&6
13278 else
13279   if test "$ac_cv_type_char" = yes; then
13280   # The cast to unsigned long works around a bug in the HP C Compiler
13281   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13282   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13283   # This bug is HP SR number 8606223364.
13284   if test "$cross_compiling" = yes; then
13285   # Depending upon the size, compute the lo and hi bounds.
13286 cat >conftest.$ac_ext <<_ACEOF
13287 #line $LINENO "configure"
13288 /* confdefs.h.  */
13289 _ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h.  */
13293 $ac_includes_default
13294 int
13295 main ()
13296 {
13297 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13298 test_array [0] = 0
13299
13300   ;
13301   return 0;
13302 }
13303 _ACEOF
13304 rm -f conftest.$ac_objext
13305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13306   (eval $ac_compile) 2>&5
13307   ac_status=$?
13308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); } &&
13310          { ac_try='test -s conftest.$ac_objext'
13311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13312   (eval $ac_try) 2>&5
13313   ac_status=$?
13314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315   (exit $ac_status); }; }; then
13316   ac_lo=0 ac_mid=0
13317   while :; do
13318     cat >conftest.$ac_ext <<_ACEOF
13319 #line $LINENO "configure"
13320 /* confdefs.h.  */
13321 _ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h.  */
13325 $ac_includes_default
13326 int
13327 main ()
13328 {
13329 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13330 test_array [0] = 0
13331
13332   ;
13333   return 0;
13334 }
13335 _ACEOF
13336 rm -f conftest.$ac_objext
13337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13338   (eval $ac_compile) 2>&5
13339   ac_status=$?
13340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341   (exit $ac_status); } &&
13342          { ac_try='test -s conftest.$ac_objext'
13343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344   (eval $ac_try) 2>&5
13345   ac_status=$?
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); }; }; then
13348   ac_hi=$ac_mid; break
13349 else
13350   echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13352
13353 ac_lo=`expr $ac_mid + 1`
13354                     if test $ac_lo -le $ac_mid; then
13355                       ac_lo= ac_hi=
13356                       break
13357                     fi
13358                     ac_mid=`expr 2 '*' $ac_mid + 1`
13359 fi
13360 rm -f conftest.$ac_objext conftest.$ac_ext
13361   done
13362 else
13363   echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13365
13366 cat >conftest.$ac_ext <<_ACEOF
13367 #line $LINENO "configure"
13368 /* confdefs.h.  */
13369 _ACEOF
13370 cat confdefs.h >>conftest.$ac_ext
13371 cat >>conftest.$ac_ext <<_ACEOF
13372 /* end confdefs.h.  */
13373 $ac_includes_default
13374 int
13375 main ()
13376 {
13377 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13378 test_array [0] = 0
13379
13380   ;
13381   return 0;
13382 }
13383 _ACEOF
13384 rm -f conftest.$ac_objext
13385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13386   (eval $ac_compile) 2>&5
13387   ac_status=$?
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); } &&
13390          { ac_try='test -s conftest.$ac_objext'
13391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13392   (eval $ac_try) 2>&5
13393   ac_status=$?
13394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395   (exit $ac_status); }; }; then
13396   ac_hi=-1 ac_mid=-1
13397   while :; do
13398     cat >conftest.$ac_ext <<_ACEOF
13399 #line $LINENO "configure"
13400 /* confdefs.h.  */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h.  */
13405 $ac_includes_default
13406 int
13407 main ()
13408 {
13409 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13410 test_array [0] = 0
13411
13412   ;
13413   return 0;
13414 }
13415 _ACEOF
13416 rm -f conftest.$ac_objext
13417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13418   (eval $ac_compile) 2>&5
13419   ac_status=$?
13420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421   (exit $ac_status); } &&
13422          { ac_try='test -s conftest.$ac_objext'
13423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424   (eval $ac_try) 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); }; }; then
13428   ac_lo=$ac_mid; break
13429 else
13430   echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13432
13433 ac_hi=`expr '(' $ac_mid ')' - 1`
13434                        if test $ac_mid -le $ac_hi; then
13435                          ac_lo= ac_hi=
13436                          break
13437                        fi
13438                        ac_mid=`expr 2 '*' $ac_mid`
13439 fi
13440 rm -f conftest.$ac_objext conftest.$ac_ext
13441   done
13442 else
13443   echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13445
13446 ac_lo= ac_hi=
13447 fi
13448 rm -f conftest.$ac_objext conftest.$ac_ext
13449 fi
13450 rm -f conftest.$ac_objext conftest.$ac_ext
13451 # Binary search between lo and hi bounds.
13452 while test "x$ac_lo" != "x$ac_hi"; do
13453   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13454   cat >conftest.$ac_ext <<_ACEOF
13455 #line $LINENO "configure"
13456 /* confdefs.h.  */
13457 _ACEOF
13458 cat confdefs.h >>conftest.$ac_ext
13459 cat >>conftest.$ac_ext <<_ACEOF
13460 /* end confdefs.h.  */
13461 $ac_includes_default
13462 int
13463 main ()
13464 {
13465 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13466 test_array [0] = 0
13467
13468   ;
13469   return 0;
13470 }
13471 _ACEOF
13472 rm -f conftest.$ac_objext
13473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13474   (eval $ac_compile) 2>&5
13475   ac_status=$?
13476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477   (exit $ac_status); } &&
13478          { ac_try='test -s conftest.$ac_objext'
13479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480   (eval $ac_try) 2>&5
13481   ac_status=$?
13482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); }; }; then
13484   ac_hi=$ac_mid
13485 else
13486   echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13488
13489 ac_lo=`expr '(' $ac_mid ')' + 1`
13490 fi
13491 rm -f conftest.$ac_objext conftest.$ac_ext
13492 done
13493 case $ac_lo in
13494 ?*) ac_cv_sizeof_char=$ac_lo;;
13495 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13496 See \`config.log' for more details." >&5
13497 echo "$as_me: error: cannot compute sizeof (char), 77
13498 See \`config.log' for more details." >&2;}
13499    { (exit 1); exit 1; }; } ;;
13500 esac
13501 else
13502   if test "$cross_compiling" = yes; then
13503   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13504 See \`config.log' for more details." >&5
13505 echo "$as_me: error: cannot run test program while cross compiling
13506 See \`config.log' for more details." >&2;}
13507    { (exit 1); exit 1; }; }
13508 else
13509   cat >conftest.$ac_ext <<_ACEOF
13510 #line $LINENO "configure"
13511 /* confdefs.h.  */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h.  */
13516 $ac_includes_default
13517 long longval () { return (long) (sizeof (char)); }
13518 unsigned long ulongval () { return (long) (sizeof (char)); }
13519 #include <stdio.h>
13520 #include <stdlib.h>
13521 int
13522 main ()
13523 {
13524
13525   FILE *f = fopen ("conftest.val", "w");
13526   if (! f)
13527     exit (1);
13528   if (((long) (sizeof (char))) < 0)
13529     {
13530       long i = longval ();
13531       if (i != ((long) (sizeof (char))))
13532         exit (1);
13533       fprintf (f, "%ld\n", i);
13534     }
13535   else
13536     {
13537       unsigned long i = ulongval ();
13538       if (i != ((long) (sizeof (char))))
13539         exit (1);
13540       fprintf (f, "%lu\n", i);
13541     }
13542   exit (ferror (f) || fclose (f) != 0);
13543
13544   ;
13545   return 0;
13546 }
13547 _ACEOF
13548 rm -f conftest$ac_exeext
13549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13550   (eval $ac_link) 2>&5
13551   ac_status=$?
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555   (eval $ac_try) 2>&5
13556   ac_status=$?
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); }; }; then
13559   ac_cv_sizeof_char=`cat conftest.val`
13560 else
13561   echo "$as_me: program exited with status $ac_status" >&5
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13564
13565 ( exit $ac_status )
13566 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13567 See \`config.log' for more details." >&5
13568 echo "$as_me: error: cannot compute sizeof (char), 77
13569 See \`config.log' for more details." >&2;}
13570    { (exit 1); exit 1; }; }
13571 fi
13572 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13573 fi
13574 fi
13575 rm -f conftest.val
13576 else
13577   ac_cv_sizeof_char=0
13578 fi
13579 fi
13580 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13581 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13582 cat >>confdefs.h <<_ACEOF
13583 #define SIZEOF_CHAR $ac_cv_sizeof_char
13584 _ACEOF
13585
13586
13587 echo "$as_me:$LINENO: checking for short int" >&5
13588 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13589 if test "${ac_cv_type_short_int+set}" = set; then
13590   echo $ECHO_N "(cached) $ECHO_C" >&6
13591 else
13592   cat >conftest.$ac_ext <<_ACEOF
13593 #line $LINENO "configure"
13594 /* confdefs.h.  */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h.  */
13599 $ac_includes_default
13600 int
13601 main ()
13602 {
13603 if ((short int *) 0)
13604   return 0;
13605 if (sizeof (short int))
13606   return 0;
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 rm -f conftest.$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613   (eval $ac_compile) 2>&5
13614   ac_status=$?
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } &&
13617          { ac_try='test -s conftest.$ac_objext'
13618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619   (eval $ac_try) 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; }; then
13623   ac_cv_type_short_int=yes
13624 else
13625   echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628 ac_cv_type_short_int=no
13629 fi
13630 rm -f conftest.$ac_objext conftest.$ac_ext
13631 fi
13632 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13633 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13634
13635 echo "$as_me:$LINENO: checking size of short int" >&5
13636 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13637 if test "${ac_cv_sizeof_short_int+set}" = set; then
13638   echo $ECHO_N "(cached) $ECHO_C" >&6
13639 else
13640   if test "$ac_cv_type_short_int" = yes; then
13641   # The cast to unsigned long works around a bug in the HP C Compiler
13642   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13643   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13644   # This bug is HP SR number 8606223364.
13645   if test "$cross_compiling" = yes; then
13646   # Depending upon the size, compute the lo and hi bounds.
13647 cat >conftest.$ac_ext <<_ACEOF
13648 #line $LINENO "configure"
13649 /* confdefs.h.  */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h.  */
13654 $ac_includes_default
13655 int
13656 main ()
13657 {
13658 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13659 test_array [0] = 0
13660
13661   ;
13662   return 0;
13663 }
13664 _ACEOF
13665 rm -f conftest.$ac_objext
13666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13667   (eval $ac_compile) 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); } &&
13671          { ac_try='test -s conftest.$ac_objext'
13672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673   (eval $ac_try) 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; }; then
13677   ac_lo=0 ac_mid=0
13678   while :; do
13679     cat >conftest.$ac_ext <<_ACEOF
13680 #line $LINENO "configure"
13681 /* confdefs.h.  */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h.  */
13686 $ac_includes_default
13687 int
13688 main ()
13689 {
13690 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13691 test_array [0] = 0
13692
13693   ;
13694   return 0;
13695 }
13696 _ACEOF
13697 rm -f conftest.$ac_objext
13698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13699   (eval $ac_compile) 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); } &&
13703          { ac_try='test -s conftest.$ac_objext'
13704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705   (eval $ac_try) 2>&5
13706   ac_status=$?
13707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708   (exit $ac_status); }; }; then
13709   ac_hi=$ac_mid; break
13710 else
13711   echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13713
13714 ac_lo=`expr $ac_mid + 1`
13715                     if test $ac_lo -le $ac_mid; then
13716                       ac_lo= ac_hi=
13717                       break
13718                     fi
13719                     ac_mid=`expr 2 '*' $ac_mid + 1`
13720 fi
13721 rm -f conftest.$ac_objext conftest.$ac_ext
13722   done
13723 else
13724   echo "$as_me: failed program was:" >&5
13725 sed 's/^/| /' conftest.$ac_ext >&5
13726
13727 cat >conftest.$ac_ext <<_ACEOF
13728 #line $LINENO "configure"
13729 /* confdefs.h.  */
13730 _ACEOF
13731 cat confdefs.h >>conftest.$ac_ext
13732 cat >>conftest.$ac_ext <<_ACEOF
13733 /* end confdefs.h.  */
13734 $ac_includes_default
13735 int
13736 main ()
13737 {
13738 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13739 test_array [0] = 0
13740
13741   ;
13742   return 0;
13743 }
13744 _ACEOF
13745 rm -f conftest.$ac_objext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747   (eval $ac_compile) 2>&5
13748   ac_status=$?
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } &&
13751          { ac_try='test -s conftest.$ac_objext'
13752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753   (eval $ac_try) 2>&5
13754   ac_status=$?
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); }; }; then
13757   ac_hi=-1 ac_mid=-1
13758   while :; do
13759     cat >conftest.$ac_ext <<_ACEOF
13760 #line $LINENO "configure"
13761 /* confdefs.h.  */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h.  */
13766 $ac_includes_default
13767 int
13768 main ()
13769 {
13770 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13771 test_array [0] = 0
13772
13773   ;
13774   return 0;
13775 }
13776 _ACEOF
13777 rm -f conftest.$ac_objext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779   (eval $ac_compile) 2>&5
13780   ac_status=$?
13781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782   (exit $ac_status); } &&
13783          { ac_try='test -s conftest.$ac_objext'
13784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785   (eval $ac_try) 2>&5
13786   ac_status=$?
13787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788   (exit $ac_status); }; }; then
13789   ac_lo=$ac_mid; break
13790 else
13791   echo "$as_me: failed program was:" >&5
13792 sed 's/^/| /' conftest.$ac_ext >&5
13793
13794 ac_hi=`expr '(' $ac_mid ')' - 1`
13795                        if test $ac_mid -le $ac_hi; then
13796                          ac_lo= ac_hi=
13797                          break
13798                        fi
13799                        ac_mid=`expr 2 '*' $ac_mid`
13800 fi
13801 rm -f conftest.$ac_objext conftest.$ac_ext
13802   done
13803 else
13804   echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13806
13807 ac_lo= ac_hi=
13808 fi
13809 rm -f conftest.$ac_objext conftest.$ac_ext
13810 fi
13811 rm -f conftest.$ac_objext conftest.$ac_ext
13812 # Binary search between lo and hi bounds.
13813 while test "x$ac_lo" != "x$ac_hi"; do
13814   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13815   cat >conftest.$ac_ext <<_ACEOF
13816 #line $LINENO "configure"
13817 /* confdefs.h.  */
13818 _ACEOF
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h.  */
13822 $ac_includes_default
13823 int
13824 main ()
13825 {
13826 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13827 test_array [0] = 0
13828
13829   ;
13830   return 0;
13831 }
13832 _ACEOF
13833 rm -f conftest.$ac_objext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13835   (eval $ac_compile) 2>&5
13836   ac_status=$?
13837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838   (exit $ac_status); } &&
13839          { ac_try='test -s conftest.$ac_objext'
13840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841   (eval $ac_try) 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; }; then
13845   ac_hi=$ac_mid
13846 else
13847   echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13849
13850 ac_lo=`expr '(' $ac_mid ')' + 1`
13851 fi
13852 rm -f conftest.$ac_objext conftest.$ac_ext
13853 done
13854 case $ac_lo in
13855 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13856 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13857 See \`config.log' for more details." >&5
13858 echo "$as_me: error: cannot compute sizeof (short int), 77
13859 See \`config.log' for more details." >&2;}
13860    { (exit 1); exit 1; }; } ;;
13861 esac
13862 else
13863   if test "$cross_compiling" = yes; then
13864   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13865 See \`config.log' for more details." >&5
13866 echo "$as_me: error: cannot run test program while cross compiling
13867 See \`config.log' for more details." >&2;}
13868    { (exit 1); exit 1; }; }
13869 else
13870   cat >conftest.$ac_ext <<_ACEOF
13871 #line $LINENO "configure"
13872 /* confdefs.h.  */
13873 _ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h.  */
13877 $ac_includes_default
13878 long longval () { return (long) (sizeof (short int)); }
13879 unsigned long ulongval () { return (long) (sizeof (short int)); }
13880 #include <stdio.h>
13881 #include <stdlib.h>
13882 int
13883 main ()
13884 {
13885
13886   FILE *f = fopen ("conftest.val", "w");
13887   if (! f)
13888     exit (1);
13889   if (((long) (sizeof (short int))) < 0)
13890     {
13891       long i = longval ();
13892       if (i != ((long) (sizeof (short int))))
13893         exit (1);
13894       fprintf (f, "%ld\n", i);
13895     }
13896   else
13897     {
13898       unsigned long i = ulongval ();
13899       if (i != ((long) (sizeof (short int))))
13900         exit (1);
13901       fprintf (f, "%lu\n", i);
13902     }
13903   exit (ferror (f) || fclose (f) != 0);
13904
13905   ;
13906   return 0;
13907 }
13908 _ACEOF
13909 rm -f conftest$ac_exeext
13910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13911   (eval $ac_link) 2>&5
13912   ac_status=$?
13913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916   (eval $ac_try) 2>&5
13917   ac_status=$?
13918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919   (exit $ac_status); }; }; then
13920   ac_cv_sizeof_short_int=`cat conftest.val`
13921 else
13922   echo "$as_me: program exited with status $ac_status" >&5
13923 echo "$as_me: failed program was:" >&5
13924 sed 's/^/| /' conftest.$ac_ext >&5
13925
13926 ( exit $ac_status )
13927 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13928 See \`config.log' for more details." >&5
13929 echo "$as_me: error: cannot compute sizeof (short int), 77
13930 See \`config.log' for more details." >&2;}
13931    { (exit 1); exit 1; }; }
13932 fi
13933 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13934 fi
13935 fi
13936 rm -f conftest.val
13937 else
13938   ac_cv_sizeof_short_int=0
13939 fi
13940 fi
13941 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13942 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13943 cat >>confdefs.h <<_ACEOF
13944 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13945 _ACEOF
13946
13947
13948 echo "$as_me:$LINENO: checking for int" >&5
13949 echo $ECHO_N "checking for int... $ECHO_C" >&6
13950 if test "${ac_cv_type_int+set}" = set; then
13951   echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953   cat >conftest.$ac_ext <<_ACEOF
13954 #line $LINENO "configure"
13955 /* confdefs.h.  */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h.  */
13960 $ac_includes_default
13961 int
13962 main ()
13963 {
13964 if ((int *) 0)
13965   return 0;
13966 if (sizeof (int))
13967   return 0;
13968   ;
13969   return 0;
13970 }
13971 _ACEOF
13972 rm -f conftest.$ac_objext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974   (eval $ac_compile) 2>&5
13975   ac_status=$?
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); } &&
13978          { ac_try='test -s conftest.$ac_objext'
13979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980   (eval $ac_try) 2>&5
13981   ac_status=$?
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); }; }; then
13984   ac_cv_type_int=yes
13985 else
13986   echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13988
13989 ac_cv_type_int=no
13990 fi
13991 rm -f conftest.$ac_objext conftest.$ac_ext
13992 fi
13993 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13994 echo "${ECHO_T}$ac_cv_type_int" >&6
13995
13996 echo "$as_me:$LINENO: checking size of int" >&5
13997 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13998 if test "${ac_cv_sizeof_int+set}" = set; then
13999   echo $ECHO_N "(cached) $ECHO_C" >&6
14000 else
14001   if test "$ac_cv_type_int" = yes; then
14002   # The cast to unsigned long works around a bug in the HP C Compiler
14003   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14004   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14005   # This bug is HP SR number 8606223364.
14006   if test "$cross_compiling" = yes; then
14007   # Depending upon the size, compute the lo and hi bounds.
14008 cat >conftest.$ac_ext <<_ACEOF
14009 #line $LINENO "configure"
14010 /* confdefs.h.  */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h.  */
14015 $ac_includes_default
14016 int
14017 main ()
14018 {
14019 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14020 test_array [0] = 0
14021
14022   ;
14023   return 0;
14024 }
14025 _ACEOF
14026 rm -f conftest.$ac_objext
14027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028   (eval $ac_compile) 2>&5
14029   ac_status=$?
14030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031   (exit $ac_status); } &&
14032          { ac_try='test -s conftest.$ac_objext'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; }; then
14038   ac_lo=0 ac_mid=0
14039   while :; do
14040     cat >conftest.$ac_ext <<_ACEOF
14041 #line $LINENO "configure"
14042 /* confdefs.h.  */
14043 _ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h.  */
14047 $ac_includes_default
14048 int
14049 main ()
14050 {
14051 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14052 test_array [0] = 0
14053
14054   ;
14055   return 0;
14056 }
14057 _ACEOF
14058 rm -f conftest.$ac_objext
14059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14060   (eval $ac_compile) 2>&5
14061   ac_status=$?
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); } &&
14064          { ac_try='test -s conftest.$ac_objext'
14065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14066   (eval $ac_try) 2>&5
14067   ac_status=$?
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); }; }; then
14070   ac_hi=$ac_mid; break
14071 else
14072   echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14074
14075 ac_lo=`expr $ac_mid + 1`
14076                     if test $ac_lo -le $ac_mid; then
14077                       ac_lo= ac_hi=
14078                       break
14079                     fi
14080                     ac_mid=`expr 2 '*' $ac_mid + 1`
14081 fi
14082 rm -f conftest.$ac_objext conftest.$ac_ext
14083   done
14084 else
14085   echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.$ac_ext >&5
14087
14088 cat >conftest.$ac_ext <<_ACEOF
14089 #line $LINENO "configure"
14090 /* confdefs.h.  */
14091 _ACEOF
14092 cat confdefs.h >>conftest.$ac_ext
14093 cat >>conftest.$ac_ext <<_ACEOF
14094 /* end confdefs.h.  */
14095 $ac_includes_default
14096 int
14097 main ()
14098 {
14099 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14100 test_array [0] = 0
14101
14102   ;
14103   return 0;
14104 }
14105 _ACEOF
14106 rm -f conftest.$ac_objext
14107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14108   (eval $ac_compile) 2>&5
14109   ac_status=$?
14110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111   (exit $ac_status); } &&
14112          { ac_try='test -s conftest.$ac_objext'
14113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14114   (eval $ac_try) 2>&5
14115   ac_status=$?
14116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117   (exit $ac_status); }; }; then
14118   ac_hi=-1 ac_mid=-1
14119   while :; do
14120     cat >conftest.$ac_ext <<_ACEOF
14121 #line $LINENO "configure"
14122 /* confdefs.h.  */
14123 _ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h.  */
14127 $ac_includes_default
14128 int
14129 main ()
14130 {
14131 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14132 test_array [0] = 0
14133
14134   ;
14135   return 0;
14136 }
14137 _ACEOF
14138 rm -f conftest.$ac_objext
14139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14140   (eval $ac_compile) 2>&5
14141   ac_status=$?
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); } &&
14144          { ac_try='test -s conftest.$ac_objext'
14145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146   (eval $ac_try) 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); }; }; then
14150   ac_lo=$ac_mid; break
14151 else
14152   echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14154
14155 ac_hi=`expr '(' $ac_mid ')' - 1`
14156                        if test $ac_mid -le $ac_hi; then
14157                          ac_lo= ac_hi=
14158                          break
14159                        fi
14160                        ac_mid=`expr 2 '*' $ac_mid`
14161 fi
14162 rm -f conftest.$ac_objext conftest.$ac_ext
14163   done
14164 else
14165   echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14167
14168 ac_lo= ac_hi=
14169 fi
14170 rm -f conftest.$ac_objext conftest.$ac_ext
14171 fi
14172 rm -f conftest.$ac_objext conftest.$ac_ext
14173 # Binary search between lo and hi bounds.
14174 while test "x$ac_lo" != "x$ac_hi"; do
14175   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14176   cat >conftest.$ac_ext <<_ACEOF
14177 #line $LINENO "configure"
14178 /* confdefs.h.  */
14179 _ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h.  */
14183 $ac_includes_default
14184 int
14185 main ()
14186 {
14187 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14188 test_array [0] = 0
14189
14190   ;
14191   return 0;
14192 }
14193 _ACEOF
14194 rm -f conftest.$ac_objext
14195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14196   (eval $ac_compile) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); } &&
14200          { ac_try='test -s conftest.$ac_objext'
14201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202   (eval $ac_try) 2>&5
14203   ac_status=$?
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); }; }; then
14206   ac_hi=$ac_mid
14207 else
14208   echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14210
14211 ac_lo=`expr '(' $ac_mid ')' + 1`
14212 fi
14213 rm -f conftest.$ac_objext conftest.$ac_ext
14214 done
14215 case $ac_lo in
14216 ?*) ac_cv_sizeof_int=$ac_lo;;
14217 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14218 See \`config.log' for more details." >&5
14219 echo "$as_me: error: cannot compute sizeof (int), 77
14220 See \`config.log' for more details." >&2;}
14221    { (exit 1); exit 1; }; } ;;
14222 esac
14223 else
14224   if test "$cross_compiling" = yes; then
14225   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14226 See \`config.log' for more details." >&5
14227 echo "$as_me: error: cannot run test program while cross compiling
14228 See \`config.log' for more details." >&2;}
14229    { (exit 1); exit 1; }; }
14230 else
14231   cat >conftest.$ac_ext <<_ACEOF
14232 #line $LINENO "configure"
14233 /* confdefs.h.  */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h.  */
14238 $ac_includes_default
14239 long longval () { return (long) (sizeof (int)); }
14240 unsigned long ulongval () { return (long) (sizeof (int)); }
14241 #include <stdio.h>
14242 #include <stdlib.h>
14243 int
14244 main ()
14245 {
14246
14247   FILE *f = fopen ("conftest.val", "w");
14248   if (! f)
14249     exit (1);
14250   if (((long) (sizeof (int))) < 0)
14251     {
14252       long i = longval ();
14253       if (i != ((long) (sizeof (int))))
14254         exit (1);
14255       fprintf (f, "%ld\n", i);
14256     }
14257   else
14258     {
14259       unsigned long i = ulongval ();
14260       if (i != ((long) (sizeof (int))))
14261         exit (1);
14262       fprintf (f, "%lu\n", i);
14263     }
14264   exit (ferror (f) || fclose (f) != 0);
14265
14266   ;
14267   return 0;
14268 }
14269 _ACEOF
14270 rm -f conftest$ac_exeext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14272   (eval $ac_link) 2>&5
14273   ac_status=$?
14274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277   (eval $ac_try) 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; }; then
14281   ac_cv_sizeof_int=`cat conftest.val`
14282 else
14283   echo "$as_me: program exited with status $ac_status" >&5
14284 echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14286
14287 ( exit $ac_status )
14288 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14289 See \`config.log' for more details." >&5
14290 echo "$as_me: error: cannot compute sizeof (int), 77
14291 See \`config.log' for more details." >&2;}
14292    { (exit 1); exit 1; }; }
14293 fi
14294 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14295 fi
14296 fi
14297 rm -f conftest.val
14298 else
14299   ac_cv_sizeof_int=0
14300 fi
14301 fi
14302 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14303 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14304 cat >>confdefs.h <<_ACEOF
14305 #define SIZEOF_INT $ac_cv_sizeof_int
14306 _ACEOF
14307
14308
14309 echo "$as_me:$LINENO: checking for long int" >&5
14310 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14311 if test "${ac_cv_type_long_int+set}" = set; then
14312   echo $ECHO_N "(cached) $ECHO_C" >&6
14313 else
14314   cat >conftest.$ac_ext <<_ACEOF
14315 #line $LINENO "configure"
14316 /* confdefs.h.  */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h.  */
14321 $ac_includes_default
14322 int
14323 main ()
14324 {
14325 if ((long int *) 0)
14326   return 0;
14327 if (sizeof (long int))
14328   return 0;
14329   ;
14330   return 0;
14331 }
14332 _ACEOF
14333 rm -f conftest.$ac_objext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14335   (eval $ac_compile) 2>&5
14336   ac_status=$?
14337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338   (exit $ac_status); } &&
14339          { ac_try='test -s conftest.$ac_objext'
14340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341   (eval $ac_try) 2>&5
14342   ac_status=$?
14343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344   (exit $ac_status); }; }; then
14345   ac_cv_type_long_int=yes
14346 else
14347   echo "$as_me: failed program was:" >&5
14348 sed 's/^/| /' conftest.$ac_ext >&5
14349
14350 ac_cv_type_long_int=no
14351 fi
14352 rm -f conftest.$ac_objext conftest.$ac_ext
14353 fi
14354 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14355 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14356
14357 echo "$as_me:$LINENO: checking size of long int" >&5
14358 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14359 if test "${ac_cv_sizeof_long_int+set}" = set; then
14360   echo $ECHO_N "(cached) $ECHO_C" >&6
14361 else
14362   if test "$ac_cv_type_long_int" = yes; then
14363   # The cast to unsigned long works around a bug in the HP C Compiler
14364   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14365   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14366   # This bug is HP SR number 8606223364.
14367   if test "$cross_compiling" = yes; then
14368   # Depending upon the size, compute the lo and hi bounds.
14369 cat >conftest.$ac_ext <<_ACEOF
14370 #line $LINENO "configure"
14371 /* confdefs.h.  */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h.  */
14376 $ac_includes_default
14377 int
14378 main ()
14379 {
14380 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14381 test_array [0] = 0
14382
14383   ;
14384   return 0;
14385 }
14386 _ACEOF
14387 rm -f conftest.$ac_objext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389   (eval $ac_compile) 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } &&
14393          { ac_try='test -s conftest.$ac_objext'
14394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395   (eval $ac_try) 2>&5
14396   ac_status=$?
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); }; }; then
14399   ac_lo=0 ac_mid=0
14400   while :; do
14401     cat >conftest.$ac_ext <<_ACEOF
14402 #line $LINENO "configure"
14403 /* confdefs.h.  */
14404 _ACEOF
14405 cat confdefs.h >>conftest.$ac_ext
14406 cat >>conftest.$ac_ext <<_ACEOF
14407 /* end confdefs.h.  */
14408 $ac_includes_default
14409 int
14410 main ()
14411 {
14412 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14413 test_array [0] = 0
14414
14415   ;
14416   return 0;
14417 }
14418 _ACEOF
14419 rm -f conftest.$ac_objext
14420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14421   (eval $ac_compile) 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); } &&
14425          { ac_try='test -s conftest.$ac_objext'
14426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427   (eval $ac_try) 2>&5
14428   ac_status=$?
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); }; }; then
14431   ac_hi=$ac_mid; break
14432 else
14433   echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14435
14436 ac_lo=`expr $ac_mid + 1`
14437                     if test $ac_lo -le $ac_mid; then
14438                       ac_lo= ac_hi=
14439                       break
14440                     fi
14441                     ac_mid=`expr 2 '*' $ac_mid + 1`
14442 fi
14443 rm -f conftest.$ac_objext conftest.$ac_ext
14444   done
14445 else
14446   echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14448
14449 cat >conftest.$ac_ext <<_ACEOF
14450 #line $LINENO "configure"
14451 /* confdefs.h.  */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h.  */
14456 $ac_includes_default
14457 int
14458 main ()
14459 {
14460 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14461 test_array [0] = 0
14462
14463   ;
14464   return 0;
14465 }
14466 _ACEOF
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469   (eval $ac_compile) 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); } &&
14473          { ac_try='test -s conftest.$ac_objext'
14474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475   (eval $ac_try) 2>&5
14476   ac_status=$?
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); }; }; then
14479   ac_hi=-1 ac_mid=-1
14480   while :; do
14481     cat >conftest.$ac_ext <<_ACEOF
14482 #line $LINENO "configure"
14483 /* confdefs.h.  */
14484 _ACEOF
14485 cat confdefs.h >>conftest.$ac_ext
14486 cat >>conftest.$ac_ext <<_ACEOF
14487 /* end confdefs.h.  */
14488 $ac_includes_default
14489 int
14490 main ()
14491 {
14492 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14493 test_array [0] = 0
14494
14495   ;
14496   return 0;
14497 }
14498 _ACEOF
14499 rm -f conftest.$ac_objext
14500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14501   (eval $ac_compile) 2>&5
14502   ac_status=$?
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); } &&
14505          { ac_try='test -s conftest.$ac_objext'
14506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14507   (eval $ac_try) 2>&5
14508   ac_status=$?
14509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510   (exit $ac_status); }; }; then
14511   ac_lo=$ac_mid; break
14512 else
14513   echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14515
14516 ac_hi=`expr '(' $ac_mid ')' - 1`
14517                        if test $ac_mid -le $ac_hi; then
14518                          ac_lo= ac_hi=
14519                          break
14520                        fi
14521                        ac_mid=`expr 2 '*' $ac_mid`
14522 fi
14523 rm -f conftest.$ac_objext conftest.$ac_ext
14524   done
14525 else
14526   echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14528
14529 ac_lo= ac_hi=
14530 fi
14531 rm -f conftest.$ac_objext conftest.$ac_ext
14532 fi
14533 rm -f conftest.$ac_objext conftest.$ac_ext
14534 # Binary search between lo and hi bounds.
14535 while test "x$ac_lo" != "x$ac_hi"; do
14536   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14537   cat >conftest.$ac_ext <<_ACEOF
14538 #line $LINENO "configure"
14539 /* confdefs.h.  */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h.  */
14544 $ac_includes_default
14545 int
14546 main ()
14547 {
14548 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14549 test_array [0] = 0
14550
14551   ;
14552   return 0;
14553 }
14554 _ACEOF
14555 rm -f conftest.$ac_objext
14556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14557   (eval $ac_compile) 2>&5
14558   ac_status=$?
14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560   (exit $ac_status); } &&
14561          { ac_try='test -s conftest.$ac_objext'
14562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563   (eval $ac_try) 2>&5
14564   ac_status=$?
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); }; }; then
14567   ac_hi=$ac_mid
14568 else
14569   echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14571
14572 ac_lo=`expr '(' $ac_mid ')' + 1`
14573 fi
14574 rm -f conftest.$ac_objext conftest.$ac_ext
14575 done
14576 case $ac_lo in
14577 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14578 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14579 See \`config.log' for more details." >&5
14580 echo "$as_me: error: cannot compute sizeof (long int), 77
14581 See \`config.log' for more details." >&2;}
14582    { (exit 1); exit 1; }; } ;;
14583 esac
14584 else
14585   if test "$cross_compiling" = yes; then
14586   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14587 See \`config.log' for more details." >&5
14588 echo "$as_me: error: cannot run test program while cross compiling
14589 See \`config.log' for more details." >&2;}
14590    { (exit 1); exit 1; }; }
14591 else
14592   cat >conftest.$ac_ext <<_ACEOF
14593 #line $LINENO "configure"
14594 /* confdefs.h.  */
14595 _ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h.  */
14599 $ac_includes_default
14600 long longval () { return (long) (sizeof (long int)); }
14601 unsigned long ulongval () { return (long) (sizeof (long int)); }
14602 #include <stdio.h>
14603 #include <stdlib.h>
14604 int
14605 main ()
14606 {
14607
14608   FILE *f = fopen ("conftest.val", "w");
14609   if (! f)
14610     exit (1);
14611   if (((long) (sizeof (long int))) < 0)
14612     {
14613       long i = longval ();
14614       if (i != ((long) (sizeof (long int))))
14615         exit (1);
14616       fprintf (f, "%ld\n", i);
14617     }
14618   else
14619     {
14620       unsigned long i = ulongval ();
14621       if (i != ((long) (sizeof (long int))))
14622         exit (1);
14623       fprintf (f, "%lu\n", i);
14624     }
14625   exit (ferror (f) || fclose (f) != 0);
14626
14627   ;
14628   return 0;
14629 }
14630 _ACEOF
14631 rm -f conftest$ac_exeext
14632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14633   (eval $ac_link) 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638   (eval $ac_try) 2>&5
14639   ac_status=$?
14640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641   (exit $ac_status); }; }; then
14642   ac_cv_sizeof_long_int=`cat conftest.val`
14643 else
14644   echo "$as_me: program exited with status $ac_status" >&5
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14647
14648 ( exit $ac_status )
14649 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14650 See \`config.log' for more details." >&5
14651 echo "$as_me: error: cannot compute sizeof (long int), 77
14652 See \`config.log' for more details." >&2;}
14653    { (exit 1); exit 1; }; }
14654 fi
14655 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14656 fi
14657 fi
14658 rm -f conftest.val
14659 else
14660   ac_cv_sizeof_long_int=0
14661 fi
14662 fi
14663 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14664 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14665 cat >>confdefs.h <<_ACEOF
14666 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14667 _ACEOF
14668
14669
14670 echo "$as_me:$LINENO: checking for long long int" >&5
14671 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14672 if test "${ac_cv_type_long_long_int+set}" = set; then
14673   echo $ECHO_N "(cached) $ECHO_C" >&6
14674 else
14675   cat >conftest.$ac_ext <<_ACEOF
14676 #line $LINENO "configure"
14677 /* confdefs.h.  */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h.  */
14682 $ac_includes_default
14683 int
14684 main ()
14685 {
14686 if ((long long int *) 0)
14687   return 0;
14688 if (sizeof (long long int))
14689   return 0;
14690   ;
14691   return 0;
14692 }
14693 _ACEOF
14694 rm -f conftest.$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696   (eval $ac_compile) 2>&5
14697   ac_status=$?
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); } &&
14700          { ac_try='test -s conftest.$ac_objext'
14701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702   (eval $ac_try) 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); }; }; then
14706   ac_cv_type_long_long_int=yes
14707 else
14708   echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14710
14711 ac_cv_type_long_long_int=no
14712 fi
14713 rm -f conftest.$ac_objext conftest.$ac_ext
14714 fi
14715 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14716 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14717
14718 echo "$as_me:$LINENO: checking size of long long int" >&5
14719 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14720 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14721   echo $ECHO_N "(cached) $ECHO_C" >&6
14722 else
14723   if test "$ac_cv_type_long_long_int" = yes; then
14724   # The cast to unsigned long works around a bug in the HP C Compiler
14725   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14726   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14727   # This bug is HP SR number 8606223364.
14728   if test "$cross_compiling" = yes; then
14729   # Depending upon the size, compute the lo and hi bounds.
14730 cat >conftest.$ac_ext <<_ACEOF
14731 #line $LINENO "configure"
14732 /* confdefs.h.  */
14733 _ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h.  */
14737 $ac_includes_default
14738 int
14739 main ()
14740 {
14741 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14742 test_array [0] = 0
14743
14744   ;
14745   return 0;
14746 }
14747 _ACEOF
14748 rm -f conftest.$ac_objext
14749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14750   (eval $ac_compile) 2>&5
14751   ac_status=$?
14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); } &&
14754          { ac_try='test -s conftest.$ac_objext'
14755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14756   (eval $ac_try) 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; }; then
14760   ac_lo=0 ac_mid=0
14761   while :; do
14762     cat >conftest.$ac_ext <<_ACEOF
14763 #line $LINENO "configure"
14764 /* confdefs.h.  */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h.  */
14769 $ac_includes_default
14770 int
14771 main ()
14772 {
14773 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14774 test_array [0] = 0
14775
14776   ;
14777   return 0;
14778 }
14779 _ACEOF
14780 rm -f conftest.$ac_objext
14781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14782   (eval $ac_compile) 2>&5
14783   ac_status=$?
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   (exit $ac_status); } &&
14786          { ac_try='test -s conftest.$ac_objext'
14787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14788   (eval $ac_try) 2>&5
14789   ac_status=$?
14790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791   (exit $ac_status); }; }; then
14792   ac_hi=$ac_mid; break
14793 else
14794   echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14796
14797 ac_lo=`expr $ac_mid + 1`
14798                     if test $ac_lo -le $ac_mid; then
14799                       ac_lo= ac_hi=
14800                       break
14801                     fi
14802                     ac_mid=`expr 2 '*' $ac_mid + 1`
14803 fi
14804 rm -f conftest.$ac_objext conftest.$ac_ext
14805   done
14806 else
14807   echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14809
14810 cat >conftest.$ac_ext <<_ACEOF
14811 #line $LINENO "configure"
14812 /* confdefs.h.  */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h.  */
14817 $ac_includes_default
14818 int
14819 main ()
14820 {
14821 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14822 test_array [0] = 0
14823
14824   ;
14825   return 0;
14826 }
14827 _ACEOF
14828 rm -f conftest.$ac_objext
14829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14830   (eval $ac_compile) 2>&5
14831   ac_status=$?
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); } &&
14834          { ac_try='test -s conftest.$ac_objext'
14835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14836   (eval $ac_try) 2>&5
14837   ac_status=$?
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); }; }; then
14840   ac_hi=-1 ac_mid=-1
14841   while :; do
14842     cat >conftest.$ac_ext <<_ACEOF
14843 #line $LINENO "configure"
14844 /* confdefs.h.  */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h.  */
14849 $ac_includes_default
14850 int
14851 main ()
14852 {
14853 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14854 test_array [0] = 0
14855
14856   ;
14857   return 0;
14858 }
14859 _ACEOF
14860 rm -f conftest.$ac_objext
14861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14862   (eval $ac_compile) 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); } &&
14866          { ac_try='test -s conftest.$ac_objext'
14867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868   (eval $ac_try) 2>&5
14869   ac_status=$?
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); }; }; then
14872   ac_lo=$ac_mid; break
14873 else
14874   echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14876
14877 ac_hi=`expr '(' $ac_mid ')' - 1`
14878                        if test $ac_mid -le $ac_hi; then
14879                          ac_lo= ac_hi=
14880                          break
14881                        fi
14882                        ac_mid=`expr 2 '*' $ac_mid`
14883 fi
14884 rm -f conftest.$ac_objext conftest.$ac_ext
14885   done
14886 else
14887   echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14889
14890 ac_lo= ac_hi=
14891 fi
14892 rm -f conftest.$ac_objext conftest.$ac_ext
14893 fi
14894 rm -f conftest.$ac_objext conftest.$ac_ext
14895 # Binary search between lo and hi bounds.
14896 while test "x$ac_lo" != "x$ac_hi"; do
14897   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14898   cat >conftest.$ac_ext <<_ACEOF
14899 #line $LINENO "configure"
14900 /* confdefs.h.  */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h.  */
14905 $ac_includes_default
14906 int
14907 main ()
14908 {
14909 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14910 test_array [0] = 0
14911
14912   ;
14913   return 0;
14914 }
14915 _ACEOF
14916 rm -f conftest.$ac_objext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14918   (eval $ac_compile) 2>&5
14919   ac_status=$?
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); } &&
14922          { ac_try='test -s conftest.$ac_objext'
14923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924   (eval $ac_try) 2>&5
14925   ac_status=$?
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); }; }; then
14928   ac_hi=$ac_mid
14929 else
14930   echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14932
14933 ac_lo=`expr '(' $ac_mid ')' + 1`
14934 fi
14935 rm -f conftest.$ac_objext conftest.$ac_ext
14936 done
14937 case $ac_lo in
14938 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14939 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14940 See \`config.log' for more details." >&5
14941 echo "$as_me: error: cannot compute sizeof (long long int), 77
14942 See \`config.log' for more details." >&2;}
14943    { (exit 1); exit 1; }; } ;;
14944 esac
14945 else
14946   if test "$cross_compiling" = yes; then
14947   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14948 See \`config.log' for more details." >&5
14949 echo "$as_me: error: cannot run test program while cross compiling
14950 See \`config.log' for more details." >&2;}
14951    { (exit 1); exit 1; }; }
14952 else
14953   cat >conftest.$ac_ext <<_ACEOF
14954 #line $LINENO "configure"
14955 /* confdefs.h.  */
14956 _ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h.  */
14960 $ac_includes_default
14961 long longval () { return (long) (sizeof (long long int)); }
14962 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14963 #include <stdio.h>
14964 #include <stdlib.h>
14965 int
14966 main ()
14967 {
14968
14969   FILE *f = fopen ("conftest.val", "w");
14970   if (! f)
14971     exit (1);
14972   if (((long) (sizeof (long long int))) < 0)
14973     {
14974       long i = longval ();
14975       if (i != ((long) (sizeof (long long int))))
14976         exit (1);
14977       fprintf (f, "%ld\n", i);
14978     }
14979   else
14980     {
14981       unsigned long i = ulongval ();
14982       if (i != ((long) (sizeof (long long int))))
14983         exit (1);
14984       fprintf (f, "%lu\n", i);
14985     }
14986   exit (ferror (f) || fclose (f) != 0);
14987
14988   ;
14989   return 0;
14990 }
14991 _ACEOF
14992 rm -f conftest$ac_exeext
14993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14994   (eval $ac_link) 2>&5
14995   ac_status=$?
14996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999   (eval $ac_try) 2>&5
15000   ac_status=$?
15001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002   (exit $ac_status); }; }; then
15003   ac_cv_sizeof_long_long_int=`cat conftest.val`
15004 else
15005   echo "$as_me: program exited with status $ac_status" >&5
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15008
15009 ( exit $ac_status )
15010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
15011 See \`config.log' for more details." >&5
15012 echo "$as_me: error: cannot compute sizeof (long long int), 77
15013 See \`config.log' for more details." >&2;}
15014    { (exit 1); exit 1; }; }
15015 fi
15016 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15017 fi
15018 fi
15019 rm -f conftest.val
15020 else
15021   ac_cv_sizeof_long_long_int=0
15022 fi
15023 fi
15024 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
15025 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
15026 cat >>confdefs.h <<_ACEOF
15027 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
15028 _ACEOF
15029
15030
15031 echo "$as_me:$LINENO: checking for int *" >&5
15032 echo $ECHO_N "checking for int *... $ECHO_C" >&6
15033 if test "${ac_cv_type_int_p+set}" = set; then
15034   echo $ECHO_N "(cached) $ECHO_C" >&6
15035 else
15036   cat >conftest.$ac_ext <<_ACEOF
15037 #line $LINENO "configure"
15038 /* confdefs.h.  */
15039 _ACEOF
15040 cat confdefs.h >>conftest.$ac_ext
15041 cat >>conftest.$ac_ext <<_ACEOF
15042 /* end confdefs.h.  */
15043 $ac_includes_default
15044 int
15045 main ()
15046 {
15047 if ((int * *) 0)
15048   return 0;
15049 if (sizeof (int *))
15050   return 0;
15051   ;
15052   return 0;
15053 }
15054 _ACEOF
15055 rm -f conftest.$ac_objext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15057   (eval $ac_compile) 2>&5
15058   ac_status=$?
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); } &&
15061          { ac_try='test -s conftest.$ac_objext'
15062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063   (eval $ac_try) 2>&5
15064   ac_status=$?
15065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); }; }; then
15067   ac_cv_type_int_p=yes
15068 else
15069   echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15071
15072 ac_cv_type_int_p=no
15073 fi
15074 rm -f conftest.$ac_objext conftest.$ac_ext
15075 fi
15076 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
15077 echo "${ECHO_T}$ac_cv_type_int_p" >&6
15078
15079 echo "$as_me:$LINENO: checking size of int *" >&5
15080 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
15081 if test "${ac_cv_sizeof_int_p+set}" = set; then
15082   echo $ECHO_N "(cached) $ECHO_C" >&6
15083 else
15084   if test "$ac_cv_type_int_p" = yes; then
15085   # The cast to unsigned long works around a bug in the HP C Compiler
15086   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15087   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15088   # This bug is HP SR number 8606223364.
15089   if test "$cross_compiling" = yes; then
15090   # Depending upon the size, compute the lo and hi bounds.
15091 cat >conftest.$ac_ext <<_ACEOF
15092 #line $LINENO "configure"
15093 /* confdefs.h.  */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h.  */
15098 $ac_includes_default
15099 int
15100 main ()
15101 {
15102 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
15103 test_array [0] = 0
15104
15105   ;
15106   return 0;
15107 }
15108 _ACEOF
15109 rm -f conftest.$ac_objext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15111   (eval $ac_compile) 2>&5
15112   ac_status=$?
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); } &&
15115          { ac_try='test -s conftest.$ac_objext'
15116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117   (eval $ac_try) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; }; then
15121   ac_lo=0 ac_mid=0
15122   while :; do
15123     cat >conftest.$ac_ext <<_ACEOF
15124 #line $LINENO "configure"
15125 /* confdefs.h.  */
15126 _ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h.  */
15130 $ac_includes_default
15131 int
15132 main ()
15133 {
15134 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15135 test_array [0] = 0
15136
15137   ;
15138   return 0;
15139 }
15140 _ACEOF
15141 rm -f conftest.$ac_objext
15142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15143   (eval $ac_compile) 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); } &&
15147          { ac_try='test -s conftest.$ac_objext'
15148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149   (eval $ac_try) 2>&5
15150   ac_status=$?
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); }; }; then
15153   ac_hi=$ac_mid; break
15154 else
15155   echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15157
15158 ac_lo=`expr $ac_mid + 1`
15159                     if test $ac_lo -le $ac_mid; then
15160                       ac_lo= ac_hi=
15161                       break
15162                     fi
15163                     ac_mid=`expr 2 '*' $ac_mid + 1`
15164 fi
15165 rm -f conftest.$ac_objext conftest.$ac_ext
15166   done
15167 else
15168   echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15170
15171 cat >conftest.$ac_ext <<_ACEOF
15172 #line $LINENO "configure"
15173 /* confdefs.h.  */
15174 _ACEOF
15175 cat confdefs.h >>conftest.$ac_ext
15176 cat >>conftest.$ac_ext <<_ACEOF
15177 /* end confdefs.h.  */
15178 $ac_includes_default
15179 int
15180 main ()
15181 {
15182 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15183 test_array [0] = 0
15184
15185   ;
15186   return 0;
15187 }
15188 _ACEOF
15189 rm -f conftest.$ac_objext
15190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15191   (eval $ac_compile) 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); } &&
15195          { ac_try='test -s conftest.$ac_objext'
15196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197   (eval $ac_try) 2>&5
15198   ac_status=$?
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); }; }; then
15201   ac_hi=-1 ac_mid=-1
15202   while :; do
15203     cat >conftest.$ac_ext <<_ACEOF
15204 #line $LINENO "configure"
15205 /* confdefs.h.  */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h.  */
15210 $ac_includes_default
15211 int
15212 main ()
15213 {
15214 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15215 test_array [0] = 0
15216
15217   ;
15218   return 0;
15219 }
15220 _ACEOF
15221 rm -f conftest.$ac_objext
15222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15223   (eval $ac_compile) 2>&5
15224   ac_status=$?
15225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226   (exit $ac_status); } &&
15227          { ac_try='test -s conftest.$ac_objext'
15228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15229   (eval $ac_try) 2>&5
15230   ac_status=$?
15231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   (exit $ac_status); }; }; then
15233   ac_lo=$ac_mid; break
15234 else
15235   echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15237
15238 ac_hi=`expr '(' $ac_mid ')' - 1`
15239                        if test $ac_mid -le $ac_hi; then
15240                          ac_lo= ac_hi=
15241                          break
15242                        fi
15243                        ac_mid=`expr 2 '*' $ac_mid`
15244 fi
15245 rm -f conftest.$ac_objext conftest.$ac_ext
15246   done
15247 else
15248   echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15250
15251 ac_lo= ac_hi=
15252 fi
15253 rm -f conftest.$ac_objext conftest.$ac_ext
15254 fi
15255 rm -f conftest.$ac_objext conftest.$ac_ext
15256 # Binary search between lo and hi bounds.
15257 while test "x$ac_lo" != "x$ac_hi"; do
15258   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15259   cat >conftest.$ac_ext <<_ACEOF
15260 #line $LINENO "configure"
15261 /* confdefs.h.  */
15262 _ACEOF
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h.  */
15266 $ac_includes_default
15267 int
15268 main ()
15269 {
15270 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15271 test_array [0] = 0
15272
15273   ;
15274   return 0;
15275 }
15276 _ACEOF
15277 rm -f conftest.$ac_objext
15278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15279   (eval $ac_compile) 2>&5
15280   ac_status=$?
15281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282   (exit $ac_status); } &&
15283          { ac_try='test -s conftest.$ac_objext'
15284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285   (eval $ac_try) 2>&5
15286   ac_status=$?
15287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288   (exit $ac_status); }; }; then
15289   ac_hi=$ac_mid
15290 else
15291   echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15293
15294 ac_lo=`expr '(' $ac_mid ')' + 1`
15295 fi
15296 rm -f conftest.$ac_objext conftest.$ac_ext
15297 done
15298 case $ac_lo in
15299 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15300 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15301 See \`config.log' for more details." >&5
15302 echo "$as_me: error: cannot compute sizeof (int *), 77
15303 See \`config.log' for more details." >&2;}
15304    { (exit 1); exit 1; }; } ;;
15305 esac
15306 else
15307   if test "$cross_compiling" = yes; then
15308   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15309 See \`config.log' for more details." >&5
15310 echo "$as_me: error: cannot run test program while cross compiling
15311 See \`config.log' for more details." >&2;}
15312    { (exit 1); exit 1; }; }
15313 else
15314   cat >conftest.$ac_ext <<_ACEOF
15315 #line $LINENO "configure"
15316 /* confdefs.h.  */
15317 _ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h.  */
15321 $ac_includes_default
15322 long longval () { return (long) (sizeof (int *)); }
15323 unsigned long ulongval () { return (long) (sizeof (int *)); }
15324 #include <stdio.h>
15325 #include <stdlib.h>
15326 int
15327 main ()
15328 {
15329
15330   FILE *f = fopen ("conftest.val", "w");
15331   if (! f)
15332     exit (1);
15333   if (((long) (sizeof (int *))) < 0)
15334     {
15335       long i = longval ();
15336       if (i != ((long) (sizeof (int *))))
15337         exit (1);
15338       fprintf (f, "%ld\n", i);
15339     }
15340   else
15341     {
15342       unsigned long i = ulongval ();
15343       if (i != ((long) (sizeof (int *))))
15344         exit (1);
15345       fprintf (f, "%lu\n", i);
15346     }
15347   exit (ferror (f) || fclose (f) != 0);
15348
15349   ;
15350   return 0;
15351 }
15352 _ACEOF
15353 rm -f conftest$ac_exeext
15354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15355   (eval $ac_link) 2>&5
15356   ac_status=$?
15357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360   (eval $ac_try) 2>&5
15361   ac_status=$?
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); }; }; then
15364   ac_cv_sizeof_int_p=`cat conftest.val`
15365 else
15366   echo "$as_me: program exited with status $ac_status" >&5
15367 echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15369
15370 ( exit $ac_status )
15371 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15372 See \`config.log' for more details." >&5
15373 echo "$as_me: error: cannot compute sizeof (int *), 77
15374 See \`config.log' for more details." >&2;}
15375    { (exit 1); exit 1; }; }
15376 fi
15377 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15378 fi
15379 fi
15380 rm -f conftest.val
15381 else
15382   ac_cv_sizeof_int_p=0
15383 fi
15384 fi
15385 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15386 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15387 cat >>confdefs.h <<_ACEOF
15388 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15389 _ACEOF
15390
15391
15392
15393 # Check for sys/types.h types
15394 echo "$as_me:$LINENO: checking for u_int type" >&5
15395 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15396 if test "${ac_cv_have_u_int+set}" = set; then
15397   echo $ECHO_N "(cached) $ECHO_C" >&6
15398 else
15399
15400     cat >conftest.$ac_ext <<_ACEOF
15401 #line $LINENO "configure"
15402 /* confdefs.h.  */
15403 _ACEOF
15404 cat confdefs.h >>conftest.$ac_ext
15405 cat >>conftest.$ac_ext <<_ACEOF
15406 /* end confdefs.h.  */
15407  #include <sys/types.h>
15408 int
15409 main ()
15410 {
15411  u_int a; a = 1;
15412   ;
15413   return 0;
15414 }
15415 _ACEOF
15416 rm -f conftest.$ac_objext
15417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15418   (eval $ac_compile) 2>&5
15419   ac_status=$?
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } &&
15422          { ac_try='test -s conftest.$ac_objext'
15423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424   (eval $ac_try) 2>&5
15425   ac_status=$?
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); }; }; then
15428    ac_cv_have_u_int="yes"
15429 else
15430   echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15432
15433  ac_cv_have_u_int="no"
15434
15435 fi
15436 rm -f conftest.$ac_objext conftest.$ac_ext
15437
15438 fi
15439 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15440 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15441 if test "x$ac_cv_have_u_int" = "xyes" ; then
15442    cat >>confdefs.h <<\_ACEOF
15443 #define HAVE_U_INT 1
15444 _ACEOF
15445
15446    have_u_int=1
15447 fi
15448
15449 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15450 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15451 if test "${ac_cv_have_intmax_t+set}" = set; then
15452   echo $ECHO_N "(cached) $ECHO_C" >&6
15453 else
15454
15455    cat >conftest.$ac_ext <<_ACEOF
15456 #line $LINENO "configure"
15457 /* confdefs.h.  */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h.  */
15462  #include <sys/types.h>
15463 int
15464 main ()
15465 {
15466  intmax_t a; a = 1;
15467   ;
15468   return 0;
15469 }
15470 _ACEOF
15471 rm -f conftest.$ac_objext
15472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15473   (eval $ac_compile) 2>&5
15474   ac_status=$?
15475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476   (exit $ac_status); } &&
15477          { ac_try='test -s conftest.$ac_objext'
15478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479   (eval $ac_try) 2>&5
15480   ac_status=$?
15481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482   (exit $ac_status); }; }; then
15483    ac_cv_have_intmax_t="yes"
15484 else
15485   echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15487
15488
15489          cat >conftest.$ac_ext <<_ACEOF
15490 #line $LINENO "configure"
15491 /* confdefs.h.  */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h.  */
15496  #include <stdint.h>
15497 int
15498 main ()
15499 {
15500  intmax_t a; a = 1;
15501   ;
15502   return 0;
15503 }
15504 _ACEOF
15505 rm -f conftest.$ac_objext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15507   (eval $ac_compile) 2>&5
15508   ac_status=$?
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); } &&
15511          { ac_try='test -s conftest.$ac_objext'
15512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513   (eval $ac_try) 2>&5
15514   ac_status=$?
15515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); }; }; then
15517    ac_cv_have_intmax_t="yes"
15518 else
15519   echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15521
15522  ac_cv_have_intmax_t="no"
15523
15524 fi
15525 rm -f conftest.$ac_objext conftest.$ac_ext
15526
15527
15528 fi
15529 rm -f conftest.$ac_objext conftest.$ac_ext
15530
15531
15532 fi
15533 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15534 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15535 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15536    cat >>confdefs.h <<\_ACEOF
15537 #define HAVE_INTMAX_T 1
15538 _ACEOF
15539
15540    have_intmax_t=1
15541 fi
15542
15543
15544 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15545 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15546 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15547   echo $ECHO_N "(cached) $ECHO_C" >&6
15548 else
15549
15550    cat >conftest.$ac_ext <<_ACEOF
15551 #line $LINENO "configure"
15552 /* confdefs.h.  */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h.  */
15557  #include <sys/types.h>
15558 int
15559 main ()
15560 {
15561  u_intmax_t a; a = 1;
15562   ;
15563   return 0;
15564 }
15565 _ACEOF
15566 rm -f conftest.$ac_objext
15567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15568   (eval $ac_compile) 2>&5
15569   ac_status=$?
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); } &&
15572          { ac_try='test -s conftest.$ac_objext'
15573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574   (eval $ac_try) 2>&5
15575   ac_status=$?
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); }; }; then
15578    ac_cv_have_u_intmax_t="yes"
15579 else
15580   echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15582
15583
15584          cat >conftest.$ac_ext <<_ACEOF
15585 #line $LINENO "configure"
15586 /* confdefs.h.  */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h.  */
15591  #include <stdint.h>
15592 int
15593 main ()
15594 {
15595  u_intmax_t a; a = 1;
15596   ;
15597   return 0;
15598 }
15599 _ACEOF
15600 rm -f conftest.$ac_objext
15601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15602   (eval $ac_compile) 2>&5
15603   ac_status=$?
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); } &&
15606          { ac_try='test -s conftest.$ac_objext'
15607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15608   (eval $ac_try) 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); }; }; then
15612    ac_cv_have_u_intmax_t="yes"
15613 else
15614   echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15616
15617  ac_cv_have_u_intmax_t="no"
15618
15619 fi
15620 rm -f conftest.$ac_objext conftest.$ac_ext
15621
15622
15623 fi
15624 rm -f conftest.$ac_objext conftest.$ac_ext
15625
15626 fi
15627 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15628 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15629 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15630    cat >>confdefs.h <<\_ACEOF
15631 #define HAVE_U_INTMAX_T 1
15632 _ACEOF
15633
15634    have_u_intmax_t=1
15635 fi
15636
15637
15638 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15639 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15640 if test "${ac_cv_have_intxx_t+set}" = set; then
15641   echo $ECHO_N "(cached) $ECHO_C" >&6
15642 else
15643
15644    cat >conftest.$ac_ext <<_ACEOF
15645 #line $LINENO "configure"
15646 /* confdefs.h.  */
15647 _ACEOF
15648 cat confdefs.h >>conftest.$ac_ext
15649 cat >>conftest.$ac_ext <<_ACEOF
15650 /* end confdefs.h.  */
15651  #include <sys/types.h>
15652 int
15653 main ()
15654 {
15655  int8_t a; int16_t b; int32_t c; a = b = c = 1;
15656   ;
15657   return 0;
15658 }
15659 _ACEOF
15660 rm -f conftest.$ac_objext
15661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15662   (eval $ac_compile) 2>&5
15663   ac_status=$?
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); } &&
15666          { ac_try='test -s conftest.$ac_objext'
15667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668   (eval $ac_try) 2>&5
15669   ac_status=$?
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); }; }; then
15672    ac_cv_have_intxx_t="yes"
15673 else
15674   echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15676
15677  ac_cv_have_intxx_t="no"
15678
15679 fi
15680 rm -f conftest.$ac_objext conftest.$ac_ext
15681
15682 fi
15683 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15684 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15685 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15686    cat >>confdefs.h <<\_ACEOF
15687 #define HAVE_INTXX_T 1
15688 _ACEOF
15689
15690    have_intxx_t=1
15691 fi
15692
15693 echo "$as_me:$LINENO: checking for int64_t type" >&5
15694 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15695 if test "${ac_cv_have_int64_t+set}" = set; then
15696   echo $ECHO_N "(cached) $ECHO_C" >&6
15697 else
15698
15699    cat >conftest.$ac_ext <<_ACEOF
15700 #line $LINENO "configure"
15701 /* confdefs.h.  */
15702 _ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h.  */
15706  #include <sys/types.h>
15707 int
15708 main ()
15709 {
15710  int64_t a; a = 1;
15711   ;
15712   return 0;
15713 }
15714 _ACEOF
15715 rm -f conftest.$ac_objext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15717   (eval $ac_compile) 2>&5
15718   ac_status=$?
15719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); } &&
15721          { ac_try='test -s conftest.$ac_objext'
15722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15723   (eval $ac_try) 2>&5
15724   ac_status=$?
15725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726   (exit $ac_status); }; }; then
15727    ac_cv_have_int64_t="yes"
15728 else
15729   echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15731
15732  ac_cv_have_int64_t="no"
15733
15734 fi
15735 rm -f conftest.$ac_objext conftest.$ac_ext
15736
15737 fi
15738 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15739 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15740 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15741    cat >>confdefs.h <<\_ACEOF
15742 #define HAVE_INT64_T 1
15743 _ACEOF
15744
15745    have_int64_t=1
15746 fi
15747
15748 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15749 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15750 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15751   echo $ECHO_N "(cached) $ECHO_C" >&6
15752 else
15753
15754    cat >conftest.$ac_ext <<_ACEOF
15755 #line $LINENO "configure"
15756 /* confdefs.h.  */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h.  */
15761  #include <sys/types.h>
15762 int
15763 main ()
15764 {
15765  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15766   ;
15767   return 0;
15768 }
15769 _ACEOF
15770 rm -f conftest.$ac_objext
15771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15772   (eval $ac_compile) 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); } &&
15776          { ac_try='test -s conftest.$ac_objext'
15777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778   (eval $ac_try) 2>&5
15779   ac_status=$?
15780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); }; }; then
15782    ac_cv_have_u_intxx_t="yes"
15783 else
15784   echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15786
15787  ac_cv_have_u_intxx_t="no"
15788
15789 fi
15790 rm -f conftest.$ac_objext conftest.$ac_ext
15791
15792 fi
15793 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15794 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15795 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15796    cat >>confdefs.h <<\_ACEOF
15797 #define HAVE_U_INTXX_T 1
15798 _ACEOF
15799
15800    have_u_intxx_t=1
15801 fi
15802
15803 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15804 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15805 if test "${ac_cv_have_u_int64_t+set}" = set; then
15806   echo $ECHO_N "(cached) $ECHO_C" >&6
15807 else
15808
15809    cat >conftest.$ac_ext <<_ACEOF
15810 #line $LINENO "configure"
15811 /* confdefs.h.  */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h.  */
15816  #include <sys/types.h>
15817 int
15818 main ()
15819 {
15820  u_int64_t a; a = 1;
15821   ;
15822   return 0;
15823 }
15824 _ACEOF
15825 rm -f conftest.$ac_objext
15826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15827   (eval $ac_compile) 2>&5
15828   ac_status=$?
15829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830   (exit $ac_status); } &&
15831          { ac_try='test -s conftest.$ac_objext'
15832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833   (eval $ac_try) 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }; }; then
15837    ac_cv_have_u_int64_t="yes"
15838 else
15839   echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15841
15842  ac_cv_have_u_int64_t="no"
15843
15844 fi
15845 rm -f conftest.$ac_objext conftest.$ac_ext
15846
15847 fi
15848 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15849 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15850 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15851    cat >>confdefs.h <<\_ACEOF
15852 #define HAVE_U_INT64_T 1
15853 _ACEOF
15854
15855    have_u_int64_t=1
15856 fi
15857
15858 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15859            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15860 then
15861    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15862 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15863    cat >conftest.$ac_ext <<_ACEOF
15864 #line $LINENO "configure"
15865 /* confdefs.h.  */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h.  */
15870  #include <sys/bitypes.h>
15871 int
15872 main ()
15873 {
15874  int8_t a; int16_t b; int32_t c;
15875         u_int8_t e; u_int16_t f; u_int32_t g;
15876         a = b = c = e = f = g = 1;
15877   ;
15878   return 0;
15879 }
15880 _ACEOF
15881 rm -f conftest.$ac_objext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15883   (eval $ac_compile) 2>&5
15884   ac_status=$?
15885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886   (exit $ac_status); } &&
15887          { ac_try='test -s conftest.$ac_objext'
15888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889   (eval $ac_try) 2>&5
15890   ac_status=$?
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); }; }; then
15893    cat >>confdefs.h <<\_ACEOF
15894 #define HAVE_U_INTXX_T 1
15895 _ACEOF
15896
15897         cat >>confdefs.h <<\_ACEOF
15898 #define HAVE_INTXX_T 1
15899 _ACEOF
15900
15901         cat >>confdefs.h <<\_ACEOF
15902 #define HAVE_SYS_BITYPES_H 1
15903 _ACEOF
15904
15905         echo "$as_me:$LINENO: result: yes" >&5
15906 echo "${ECHO_T}yes" >&6
15907 else
15908   echo "$as_me: failed program was:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15910
15911  echo "$as_me:$LINENO: result: no" >&5
15912 echo "${ECHO_T}no" >&6
15913
15914 fi
15915 rm -f conftest.$ac_objext conftest.$ac_ext
15916 fi
15917
15918 if test -z "$have_u_intxx_t" ; then
15919    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15920 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15921 if test "${ac_cv_have_uintxx_t+set}" = set; then
15922   echo $ECHO_N "(cached) $ECHO_C" >&6
15923 else
15924
15925       cat >conftest.$ac_ext <<_ACEOF
15926 #line $LINENO "configure"
15927 /* confdefs.h.  */
15928 _ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h.  */
15932  #include <sys/types.h>
15933 int
15934 main ()
15935 {
15936  uint8_t a; uint16_t b;
15937            uint32_t c; a = b = c = 1;
15938   ;
15939   return 0;
15940 }
15941 _ACEOF
15942 rm -f conftest.$ac_objext
15943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15944   (eval $ac_compile) 2>&5
15945   ac_status=$?
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); } &&
15948          { ac_try='test -s conftest.$ac_objext'
15949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950   (eval $ac_try) 2>&5
15951   ac_status=$?
15952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953   (exit $ac_status); }; }; then
15954    ac_cv_have_uintxx_t="yes"
15955 else
15956   echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15958
15959  ac_cv_have_uintxx_t="no"
15960
15961 fi
15962 rm -f conftest.$ac_objext conftest.$ac_ext
15963
15964 fi
15965 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15966 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15967    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15968       cat >>confdefs.h <<\_ACEOF
15969 #define HAVE_UINTXX_T 1
15970 _ACEOF
15971
15972    fi
15973 fi
15974
15975 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15976           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15977 then
15978    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15979 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15980    cat >conftest.$ac_ext <<_ACEOF
15981 #line $LINENO "configure"
15982 /* confdefs.h.  */
15983 _ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h.  */
15987  #include <sys/bitypes.h>
15988 int
15989 main ()
15990 {
15991  int64_t a; u_int64_t b;
15992        a = b = 1;
15993   ;
15994   return 0;
15995 }
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15999   (eval $ac_compile) 2>&5
16000   ac_status=$?
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); } &&
16003          { ac_try='test -s conftest.$ac_objext'
16004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005   (eval $ac_try) 2>&5
16006   ac_status=$?
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); }; }; then
16009    cat >>confdefs.h <<\_ACEOF
16010 #define HAVE_U_INT64_T 1
16011 _ACEOF
16012
16013        cat >>confdefs.h <<\_ACEOF
16014 #define HAVE_INT64_T 1
16015 _ACEOF
16016
16017        echo "$as_me:$LINENO: result: yes" >&5
16018 echo "${ECHO_T}yes" >&6
16019 else
16020   echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16022
16023  echo "$as_me:$LINENO: result: no" >&5
16024 echo "${ECHO_T}no" >&6
16025
16026 fi
16027 rm -f conftest.$ac_objext conftest.$ac_ext
16028 fi
16029
16030 if (test -z "$have_uintxx_t" && \
16031           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
16032 then
16033    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
16034 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
16035    cat >conftest.$ac_ext <<_ACEOF
16036 #line $LINENO "configure"
16037 /* confdefs.h.  */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h.  */
16042  #include <sys/bitypes.h>
16043 int
16044 main ()
16045 {
16046  uint8_t a; uint16_t b;
16047           uint32_t c; a = b = c = 1;
16048   ;
16049   return 0;
16050 }
16051 _ACEOF
16052 rm -f conftest.$ac_objext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16054   (eval $ac_compile) 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); } &&
16058          { ac_try='test -s conftest.$ac_objext'
16059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060   (eval $ac_try) 2>&5
16061   ac_status=$?
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); }; }; then
16064    cat >>confdefs.h <<\_ACEOF
16065 #define HAVE_UINTXX_T 1
16066 _ACEOF
16067
16068        echo "$as_me:$LINENO: result: yes" >&5
16069 echo "${ECHO_T}yes" >&6
16070 else
16071   echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16073
16074  echo "$as_me:$LINENO: result: no" >&5
16075 echo "${ECHO_T}no" >&6
16076
16077 fi
16078 rm -f conftest.$ac_objext conftest.$ac_ext
16079
16080 fi
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098 for ac_func in \
16099         fork \
16100         getcwd \
16101         gethostname \
16102         getpid \
16103         gettimeofday \
16104         setpgid \
16105         setpgrp \
16106         setsid \
16107         signal \
16108         strerror \
16109         strncmp \
16110         strncpy \
16111         vfprintf \
16112
16113 do
16114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16115 echo "$as_me:$LINENO: checking for $ac_func" >&5
16116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16117 if eval "test \"\${$as_ac_var+set}\" = set"; then
16118   echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120   cat >conftest.$ac_ext <<_ACEOF
16121 #line $LINENO "configure"
16122 /* confdefs.h.  */
16123 _ACEOF
16124 cat confdefs.h >>conftest.$ac_ext
16125 cat >>conftest.$ac_ext <<_ACEOF
16126 /* end confdefs.h.  */
16127 /* System header to define __stub macros and hopefully few prototypes,
16128     which can conflict with char $ac_func (); below.
16129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16130     <limits.h> exists even on freestanding compilers.  */
16131 #ifdef __STDC__
16132 # include <limits.h>
16133 #else
16134 # include <assert.h>
16135 #endif
16136 /* Override any gcc2 internal prototype to avoid an error.  */
16137 #ifdef __cplusplus
16138 extern "C"
16139 {
16140 #endif
16141 /* We use char because int might match the return type of a gcc2
16142    builtin and then its argument prototype would still apply.  */
16143 char $ac_func ();
16144 /* The GNU C library defines this for functions which it implements
16145     to always fail with ENOSYS.  Some functions are actually named
16146     something starting with __ and the normal name is an alias.  */
16147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16148 choke me
16149 #else
16150 char (*f) () = $ac_func;
16151 #endif
16152 #ifdef __cplusplus
16153 }
16154 #endif
16155
16156 int
16157 main ()
16158 {
16159 return f != $ac_func;
16160   ;
16161   return 0;
16162 }
16163 _ACEOF
16164 rm -f conftest.$ac_objext conftest$ac_exeext
16165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16166   (eval $ac_link) 2>&5
16167   ac_status=$?
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); } &&
16170          { ac_try='test -s conftest$ac_exeext'
16171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16172   (eval $ac_try) 2>&5
16173   ac_status=$?
16174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175   (exit $ac_status); }; }; then
16176   eval "$as_ac_var=yes"
16177 else
16178   echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16180
16181 eval "$as_ac_var=no"
16182 fi
16183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16184 fi
16185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16187 if test `eval echo '${'$as_ac_var'}'` = yes; then
16188   cat >>confdefs.h <<_ACEOF
16189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16190 _ACEOF
16191
16192 else
16193   echo 'configure: cannot find needed function.'; exit 1
16194
16195 fi
16196 done
16197
16198
16199
16200 for ac_func in fchdir
16201 do
16202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16203 echo "$as_me:$LINENO: checking for $ac_func" >&5
16204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16205 if eval "test \"\${$as_ac_var+set}\" = set"; then
16206   echo $ECHO_N "(cached) $ECHO_C" >&6
16207 else
16208   cat >conftest.$ac_ext <<_ACEOF
16209 #line $LINENO "configure"
16210 /* confdefs.h.  */
16211 _ACEOF
16212 cat confdefs.h >>conftest.$ac_ext
16213 cat >>conftest.$ac_ext <<_ACEOF
16214 /* end confdefs.h.  */
16215 /* System header to define __stub macros and hopefully few prototypes,
16216     which can conflict with char $ac_func (); below.
16217     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16218     <limits.h> exists even on freestanding compilers.  */
16219 #ifdef __STDC__
16220 # include <limits.h>
16221 #else
16222 # include <assert.h>
16223 #endif
16224 /* Override any gcc2 internal prototype to avoid an error.  */
16225 #ifdef __cplusplus
16226 extern "C"
16227 {
16228 #endif
16229 /* We use char because int might match the return type of a gcc2
16230    builtin and then its argument prototype would still apply.  */
16231 char $ac_func ();
16232 /* The GNU C library defines this for functions which it implements
16233     to always fail with ENOSYS.  Some functions are actually named
16234     something starting with __ and the normal name is an alias.  */
16235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16236 choke me
16237 #else
16238 char (*f) () = $ac_func;
16239 #endif
16240 #ifdef __cplusplus
16241 }
16242 #endif
16243
16244 int
16245 main ()
16246 {
16247 return f != $ac_func;
16248   ;
16249   return 0;
16250 }
16251 _ACEOF
16252 rm -f conftest.$ac_objext conftest$ac_exeext
16253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16254   (eval $ac_link) 2>&5
16255   ac_status=$?
16256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257   (exit $ac_status); } &&
16258          { ac_try='test -s conftest$ac_exeext'
16259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260   (eval $ac_try) 2>&5
16261   ac_status=$?
16262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263   (exit $ac_status); }; }; then
16264   eval "$as_ac_var=yes"
16265 else
16266   echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16268
16269 eval "$as_ac_var=no"
16270 fi
16271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16272 fi
16273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16275 if test `eval echo '${'$as_ac_var'}'` = yes; then
16276   cat >>confdefs.h <<_ACEOF
16277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16278 _ACEOF
16279  cat >>confdefs.h <<\_ACEOF
16280 #define HAVE_FCHDIR 1
16281 _ACEOF
16282
16283 fi
16284 done
16285
16286
16287 for ac_func in strtoll
16288 do
16289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16290 echo "$as_me:$LINENO: checking for $ac_func" >&5
16291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16292 if eval "test \"\${$as_ac_var+set}\" = set"; then
16293   echo $ECHO_N "(cached) $ECHO_C" >&6
16294 else
16295   cat >conftest.$ac_ext <<_ACEOF
16296 #line $LINENO "configure"
16297 /* confdefs.h.  */
16298 _ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h.  */
16302 /* System header to define __stub macros and hopefully few prototypes,
16303     which can conflict with char $ac_func (); below.
16304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16305     <limits.h> exists even on freestanding compilers.  */
16306 #ifdef __STDC__
16307 # include <limits.h>
16308 #else
16309 # include <assert.h>
16310 #endif
16311 /* Override any gcc2 internal prototype to avoid an error.  */
16312 #ifdef __cplusplus
16313 extern "C"
16314 {
16315 #endif
16316 /* We use char because int might match the return type of a gcc2
16317    builtin and then its argument prototype would still apply.  */
16318 char $ac_func ();
16319 /* The GNU C library defines this for functions which it implements
16320     to always fail with ENOSYS.  Some functions are actually named
16321     something starting with __ and the normal name is an alias.  */
16322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16323 choke me
16324 #else
16325 char (*f) () = $ac_func;
16326 #endif
16327 #ifdef __cplusplus
16328 }
16329 #endif
16330
16331 int
16332 main ()
16333 {
16334 return f != $ac_func;
16335   ;
16336   return 0;
16337 }
16338 _ACEOF
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341   (eval $ac_link) 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); } &&
16345          { ac_try='test -s conftest$ac_exeext'
16346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347   (eval $ac_try) 2>&5
16348   ac_status=$?
16349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   (exit $ac_status); }; }; then
16351   eval "$as_ac_var=yes"
16352 else
16353   echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16355
16356 eval "$as_ac_var=no"
16357 fi
16358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16359 fi
16360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16361 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16362 if test `eval echo '${'$as_ac_var'}'` = yes; then
16363   cat >>confdefs.h <<_ACEOF
16364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16365 _ACEOF
16366  cat >>confdefs.h <<\_ACEOF
16367 #define HAVE_STRTOLL 1
16368 _ACEOF
16369
16370 fi
16371 done
16372
16373
16374
16375 for ac_func in chflags
16376 do
16377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16378 echo "$as_me:$LINENO: checking for $ac_func" >&5
16379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16380 if eval "test \"\${$as_ac_var+set}\" = set"; then
16381   echo $ECHO_N "(cached) $ECHO_C" >&6
16382 else
16383   cat >conftest.$ac_ext <<_ACEOF
16384 #line $LINENO "configure"
16385 /* confdefs.h.  */
16386 _ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h.  */
16390 /* System header to define __stub macros and hopefully few prototypes,
16391     which can conflict with char $ac_func (); below.
16392     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16393     <limits.h> exists even on freestanding compilers.  */
16394 #ifdef __STDC__
16395 # include <limits.h>
16396 #else
16397 # include <assert.h>
16398 #endif
16399 /* Override any gcc2 internal prototype to avoid an error.  */
16400 #ifdef __cplusplus
16401 extern "C"
16402 {
16403 #endif
16404 /* We use char because int might match the return type of a gcc2
16405    builtin and then its argument prototype would still apply.  */
16406 char $ac_func ();
16407 /* The GNU C library defines this for functions which it implements
16408     to always fail with ENOSYS.  Some functions are actually named
16409     something starting with __ and the normal name is an alias.  */
16410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16411 choke me
16412 #else
16413 char (*f) () = $ac_func;
16414 #endif
16415 #ifdef __cplusplus
16416 }
16417 #endif
16418
16419 int
16420 main ()
16421 {
16422 return f != $ac_func;
16423   ;
16424   return 0;
16425 }
16426 _ACEOF
16427 rm -f conftest.$ac_objext conftest$ac_exeext
16428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16429   (eval $ac_link) 2>&5
16430   ac_status=$?
16431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); } &&
16433          { ac_try='test -s conftest$ac_exeext'
16434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16435   (eval $ac_try) 2>&5
16436   ac_status=$?
16437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438   (exit $ac_status); }; }; then
16439   eval "$as_ac_var=yes"
16440 else
16441   echo "$as_me: failed program was:" >&5
16442 sed 's/^/| /' conftest.$ac_ext >&5
16443
16444 eval "$as_ac_var=no"
16445 fi
16446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16447 fi
16448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16450 if test `eval echo '${'$as_ac_var'}'` = yes; then
16451   cat >>confdefs.h <<_ACEOF
16452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16453 _ACEOF
16454
16455 fi
16456 done
16457
16458
16459
16460
16461
16462
16463 for ac_func in snprintf vsnprintf gethostid getdomainname
16464 do
16465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16466 echo "$as_me:$LINENO: checking for $ac_func" >&5
16467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16468 if eval "test \"\${$as_ac_var+set}\" = set"; then
16469   echo $ECHO_N "(cached) $ECHO_C" >&6
16470 else
16471   cat >conftest.$ac_ext <<_ACEOF
16472 #line $LINENO "configure"
16473 /* confdefs.h.  */
16474 _ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h.  */
16478 /* System header to define __stub macros and hopefully few prototypes,
16479     which can conflict with char $ac_func (); below.
16480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16481     <limits.h> exists even on freestanding compilers.  */
16482 #ifdef __STDC__
16483 # include <limits.h>
16484 #else
16485 # include <assert.h>
16486 #endif
16487 /* Override any gcc2 internal prototype to avoid an error.  */
16488 #ifdef __cplusplus
16489 extern "C"
16490 {
16491 #endif
16492 /* We use char because int might match the return type of a gcc2
16493    builtin and then its argument prototype would still apply.  */
16494 char $ac_func ();
16495 /* The GNU C library defines this for functions which it implements
16496     to always fail with ENOSYS.  Some functions are actually named
16497     something starting with __ and the normal name is an alias.  */
16498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16499 choke me
16500 #else
16501 char (*f) () = $ac_func;
16502 #endif
16503 #ifdef __cplusplus
16504 }
16505 #endif
16506
16507 int
16508 main ()
16509 {
16510 return f != $ac_func;
16511   ;
16512   return 0;
16513 }
16514 _ACEOF
16515 rm -f conftest.$ac_objext conftest$ac_exeext
16516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16517   (eval $ac_link) 2>&5
16518   ac_status=$?
16519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520   (exit $ac_status); } &&
16521          { ac_try='test -s conftest$ac_exeext'
16522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16523   (eval $ac_try) 2>&5
16524   ac_status=$?
16525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526   (exit $ac_status); }; }; then
16527   eval "$as_ac_var=yes"
16528 else
16529   echo "$as_me: failed program was:" >&5
16530 sed 's/^/| /' conftest.$ac_ext >&5
16531
16532 eval "$as_ac_var=no"
16533 fi
16534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16535 fi
16536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16538 if test `eval echo '${'$as_ac_var'}'` = yes; then
16539   cat >>confdefs.h <<_ACEOF
16540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16541 _ACEOF
16542
16543 fi
16544 done
16545
16546
16547
16548
16549
16550
16551 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16552 do
16553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16554 echo "$as_me:$LINENO: checking for $ac_func" >&5
16555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16556 if eval "test \"\${$as_ac_var+set}\" = set"; then
16557   echo $ECHO_N "(cached) $ECHO_C" >&6
16558 else
16559   cat >conftest.$ac_ext <<_ACEOF
16560 #line $LINENO "configure"
16561 /* confdefs.h.  */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h.  */
16566 /* System header to define __stub macros and hopefully few prototypes,
16567     which can conflict with char $ac_func (); below.
16568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16569     <limits.h> exists even on freestanding compilers.  */
16570 #ifdef __STDC__
16571 # include <limits.h>
16572 #else
16573 # include <assert.h>
16574 #endif
16575 /* Override any gcc2 internal prototype to avoid an error.  */
16576 #ifdef __cplusplus
16577 extern "C"
16578 {
16579 #endif
16580 /* We use char because int might match the return type of a gcc2
16581    builtin and then its argument prototype would still apply.  */
16582 char $ac_func ();
16583 /* The GNU C library defines this for functions which it implements
16584     to always fail with ENOSYS.  Some functions are actually named
16585     something starting with __ and the normal name is an alias.  */
16586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16587 choke me
16588 #else
16589 char (*f) () = $ac_func;
16590 #endif
16591 #ifdef __cplusplus
16592 }
16593 #endif
16594
16595 int
16596 main ()
16597 {
16598 return f != $ac_func;
16599   ;
16600   return 0;
16601 }
16602 _ACEOF
16603 rm -f conftest.$ac_objext conftest$ac_exeext
16604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16605   (eval $ac_link) 2>&5
16606   ac_status=$?
16607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); } &&
16609          { ac_try='test -s conftest$ac_exeext'
16610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611   (eval $ac_try) 2>&5
16612   ac_status=$?
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); }; }; then
16615   eval "$as_ac_var=yes"
16616 else
16617   echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16619
16620 eval "$as_ac_var=no"
16621 fi
16622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16623 fi
16624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16626 if test `eval echo '${'$as_ac_var'}'` = yes; then
16627   cat >>confdefs.h <<_ACEOF
16628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16629 _ACEOF
16630
16631 fi
16632 done
16633
16634
16635 # If resolver functions are not in libc check for -lnsl or -lresolv.
16636 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16637 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16638 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641   cat >conftest.$ac_ext <<_ACEOF
16642 #line $LINENO "configure"
16643 /* confdefs.h.  */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h.  */
16648 /* System header to define __stub macros and hopefully few prototypes,
16649     which can conflict with char gethostbyname_r (); below.
16650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16651     <limits.h> exists even on freestanding compilers.  */
16652 #ifdef __STDC__
16653 # include <limits.h>
16654 #else
16655 # include <assert.h>
16656 #endif
16657 /* Override any gcc2 internal prototype to avoid an error.  */
16658 #ifdef __cplusplus
16659 extern "C"
16660 {
16661 #endif
16662 /* We use char because int might match the return type of a gcc2
16663    builtin and then its argument prototype would still apply.  */
16664 char gethostbyname_r ();
16665 /* The GNU C library defines this for functions which it implements
16666     to always fail with ENOSYS.  Some functions are actually named
16667     something starting with __ and the normal name is an alias.  */
16668 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16669 choke me
16670 #else
16671 char (*f) () = gethostbyname_r;
16672 #endif
16673 #ifdef __cplusplus
16674 }
16675 #endif
16676
16677 int
16678 main ()
16679 {
16680 return f != gethostbyname_r;
16681   ;
16682   return 0;
16683 }
16684 _ACEOF
16685 rm -f conftest.$ac_objext conftest$ac_exeext
16686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16687   (eval $ac_link) 2>&5
16688   ac_status=$?
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); } &&
16691          { ac_try='test -s conftest$ac_exeext'
16692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693   (eval $ac_try) 2>&5
16694   ac_status=$?
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); }; }; then
16697   ac_cv_func_gethostbyname_r=yes
16698 else
16699   echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16701
16702 ac_cv_func_gethostbyname_r=no
16703 fi
16704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16705 fi
16706 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16707 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16708 if test $ac_cv_func_gethostbyname_r = yes; then
16709   echo "$as_me:$LINENO: result: using libc's resolver" >&5
16710 echo "${ECHO_T}using libc's resolver" >&6
16711 else
16712
16713 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16714 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16715 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16716   echo $ECHO_N "(cached) $ECHO_C" >&6
16717 else
16718   ac_check_lib_save_LIBS=$LIBS
16719 LIBS="-lnsl  $LIBS"
16720 cat >conftest.$ac_ext <<_ACEOF
16721 #line $LINENO "configure"
16722 /* confdefs.h.  */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h.  */
16727
16728 /* Override any gcc2 internal prototype to avoid an error.  */
16729 #ifdef __cplusplus
16730 extern "C"
16731 #endif
16732 /* We use char because int might match the return type of a gcc2
16733    builtin and then its argument prototype would still apply.  */
16734 char gethostbyname_r ();
16735 int
16736 main ()
16737 {
16738 gethostbyname_r ();
16739   ;
16740   return 0;
16741 }
16742 _ACEOF
16743 rm -f conftest.$ac_objext conftest$ac_exeext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16745   (eval $ac_link) 2>&5
16746   ac_status=$?
16747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); } &&
16749          { ac_try='test -s conftest$ac_exeext'
16750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751   (eval $ac_try) 2>&5
16752   ac_status=$?
16753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754   (exit $ac_status); }; }; then
16755   ac_cv_lib_nsl_gethostbyname_r=yes
16756 else
16757   echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16759
16760 ac_cv_lib_nsl_gethostbyname_r=no
16761 fi
16762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16763 LIBS=$ac_check_lib_save_LIBS
16764 fi
16765 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16766 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16767 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16768   cat >>confdefs.h <<_ACEOF
16769 #define HAVE_LIBNSL 1
16770 _ACEOF
16771
16772   LIBS="-lnsl $LIBS"
16773
16774 fi
16775
16776
16777 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16778 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16779 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16780   echo $ECHO_N "(cached) $ECHO_C" >&6
16781 else
16782   ac_check_lib_save_LIBS=$LIBS
16783 LIBS="-lresolv  $LIBS"
16784 cat >conftest.$ac_ext <<_ACEOF
16785 #line $LINENO "configure"
16786 /* confdefs.h.  */
16787 _ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h.  */
16791
16792 /* Override any gcc2 internal prototype to avoid an error.  */
16793 #ifdef __cplusplus
16794 extern "C"
16795 #endif
16796 /* We use char because int might match the return type of a gcc2
16797    builtin and then its argument prototype would still apply.  */
16798 char gethostbyname_r ();
16799 int
16800 main ()
16801 {
16802 gethostbyname_r ();
16803   ;
16804   return 0;
16805 }
16806 _ACEOF
16807 rm -f conftest.$ac_objext conftest$ac_exeext
16808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16809   (eval $ac_link) 2>&5
16810   ac_status=$?
16811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); } &&
16813          { ac_try='test -s conftest$ac_exeext'
16814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815   (eval $ac_try) 2>&5
16816   ac_status=$?
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); }; }; then
16819   ac_cv_lib_resolv_gethostbyname_r=yes
16820 else
16821   echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16823
16824 ac_cv_lib_resolv_gethostbyname_r=no
16825 fi
16826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16827 LIBS=$ac_check_lib_save_LIBS
16828 fi
16829 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16830 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16831 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16832   cat >>confdefs.h <<_ACEOF
16833 #define HAVE_LIBRESOLV 1
16834 _ACEOF
16835
16836   LIBS="-lresolv $LIBS"
16837
16838 fi
16839
16840 fi
16841
16842
16843
16844
16845
16846 for ac_func in inet_pton
16847 do
16848 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16849 echo "$as_me:$LINENO: checking for $ac_func" >&5
16850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16851 if eval "test \"\${$as_ac_var+set}\" = set"; then
16852   echo $ECHO_N "(cached) $ECHO_C" >&6
16853 else
16854   cat >conftest.$ac_ext <<_ACEOF
16855 #line $LINENO "configure"
16856 /* confdefs.h.  */
16857 _ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h.  */
16861 /* System header to define __stub macros and hopefully few prototypes,
16862     which can conflict with char $ac_func (); below.
16863     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16864     <limits.h> exists even on freestanding compilers.  */
16865 #ifdef __STDC__
16866 # include <limits.h>
16867 #else
16868 # include <assert.h>
16869 #endif
16870 /* Override any gcc2 internal prototype to avoid an error.  */
16871 #ifdef __cplusplus
16872 extern "C"
16873 {
16874 #endif
16875 /* We use char because int might match the return type of a gcc2
16876    builtin and then its argument prototype would still apply.  */
16877 char $ac_func ();
16878 /* The GNU C library defines this for functions which it implements
16879     to always fail with ENOSYS.  Some functions are actually named
16880     something starting with __ and the normal name is an alias.  */
16881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16882 choke me
16883 #else
16884 char (*f) () = $ac_func;
16885 #endif
16886 #ifdef __cplusplus
16887 }
16888 #endif
16889
16890 int
16891 main ()
16892 {
16893 return f != $ac_func;
16894   ;
16895   return 0;
16896 }
16897 _ACEOF
16898 rm -f conftest.$ac_objext conftest$ac_exeext
16899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16900   (eval $ac_link) 2>&5
16901   ac_status=$?
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); } &&
16904          { ac_try='test -s conftest$ac_exeext'
16905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906   (eval $ac_try) 2>&5
16907   ac_status=$?
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); }; }; then
16910   eval "$as_ac_var=yes"
16911 else
16912   echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16914
16915 eval "$as_ac_var=no"
16916 fi
16917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16918 fi
16919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16921 if test `eval echo '${'$as_ac_var'}'` = yes; then
16922   cat >>confdefs.h <<_ACEOF
16923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16924 _ACEOF
16925  cat >>confdefs.h <<\_ACEOF
16926 #define HAVE_INET_PTON 1
16927 _ACEOF
16928
16929 fi
16930 done
16931
16932
16933 for ac_func in inet_ntop
16934 do
16935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16936 echo "$as_me:$LINENO: checking for $ac_func" >&5
16937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16938 if eval "test \"\${$as_ac_var+set}\" = set"; then
16939   echo $ECHO_N "(cached) $ECHO_C" >&6
16940 else
16941   cat >conftest.$ac_ext <<_ACEOF
16942 #line $LINENO "configure"
16943 /* confdefs.h.  */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h.  */
16948 /* System header to define __stub macros and hopefully few prototypes,
16949     which can conflict with char $ac_func (); below.
16950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16951     <limits.h> exists even on freestanding compilers.  */
16952 #ifdef __STDC__
16953 # include <limits.h>
16954 #else
16955 # include <assert.h>
16956 #endif
16957 /* Override any gcc2 internal prototype to avoid an error.  */
16958 #ifdef __cplusplus
16959 extern "C"
16960 {
16961 #endif
16962 /* We use char because int might match the return type of a gcc2
16963    builtin and then its argument prototype would still apply.  */
16964 char $ac_func ();
16965 /* The GNU C library defines this for functions which it implements
16966     to always fail with ENOSYS.  Some functions are actually named
16967     something starting with __ and the normal name is an alias.  */
16968 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16969 choke me
16970 #else
16971 char (*f) () = $ac_func;
16972 #endif
16973 #ifdef __cplusplus
16974 }
16975 #endif
16976
16977 int
16978 main ()
16979 {
16980 return f != $ac_func;
16981   ;
16982   return 0;
16983 }
16984 _ACEOF
16985 rm -f conftest.$ac_objext conftest$ac_exeext
16986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16987   (eval $ac_link) 2>&5
16988   ac_status=$?
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); } &&
16991          { ac_try='test -s conftest$ac_exeext'
16992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993   (eval $ac_try) 2>&5
16994   ac_status=$?
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); }; }; then
16997   eval "$as_ac_var=yes"
16998 else
16999   echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17001
17002 eval "$as_ac_var=no"
17003 fi
17004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17005 fi
17006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17008 if test `eval echo '${'$as_ac_var'}'` = yes; then
17009   cat >>confdefs.h <<_ACEOF
17010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17011 _ACEOF
17012  cat >>confdefs.h <<\_ACEOF
17013 #define HAVE_INET_NTOP 1
17014 _ACEOF
17015
17016 fi
17017 done
17018
17019
17020 for ac_func in gethostbyname2
17021 do
17022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17023 echo "$as_me:$LINENO: checking for $ac_func" >&5
17024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17025 if eval "test \"\${$as_ac_var+set}\" = set"; then
17026   echo $ECHO_N "(cached) $ECHO_C" >&6
17027 else
17028   cat >conftest.$ac_ext <<_ACEOF
17029 #line $LINENO "configure"
17030 /* confdefs.h.  */
17031 _ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h.  */
17035 /* System header to define __stub macros and hopefully few prototypes,
17036     which can conflict with char $ac_func (); below.
17037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17038     <limits.h> exists even on freestanding compilers.  */
17039 #ifdef __STDC__
17040 # include <limits.h>
17041 #else
17042 # include <assert.h>
17043 #endif
17044 /* Override any gcc2 internal prototype to avoid an error.  */
17045 #ifdef __cplusplus
17046 extern "C"
17047 {
17048 #endif
17049 /* We use char because int might match the return type of a gcc2
17050    builtin and then its argument prototype would still apply.  */
17051 char $ac_func ();
17052 /* The GNU C library defines this for functions which it implements
17053     to always fail with ENOSYS.  Some functions are actually named
17054     something starting with __ and the normal name is an alias.  */
17055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17056 choke me
17057 #else
17058 char (*f) () = $ac_func;
17059 #endif
17060 #ifdef __cplusplus
17061 }
17062 #endif
17063
17064 int
17065 main ()
17066 {
17067 return f != $ac_func;
17068   ;
17069   return 0;
17070 }
17071 _ACEOF
17072 rm -f conftest.$ac_objext conftest$ac_exeext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17074   (eval $ac_link) 2>&5
17075   ac_status=$?
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); } &&
17078          { ac_try='test -s conftest$ac_exeext'
17079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080   (eval $ac_try) 2>&5
17081   ac_status=$?
17082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083   (exit $ac_status); }; }; then
17084   eval "$as_ac_var=yes"
17085 else
17086   echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17088
17089 eval "$as_ac_var=no"
17090 fi
17091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17092 fi
17093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17095 if test `eval echo '${'$as_ac_var'}'` = yes; then
17096   cat >>confdefs.h <<_ACEOF
17097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17098 _ACEOF
17099  cat >>confdefs.h <<\_ACEOF
17100 #define HAVE_GETHOSTBYNAME2 1
17101 _ACEOF
17102
17103 fi
17104 done
17105
17106
17107 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
17108 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
17109 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
17110   echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112   cat >conftest.$ac_ext <<_ACEOF
17113 #line $LINENO "configure"
17114 /* confdefs.h.  */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h.  */
17119 #include <sys/socket.h>
17120 int
17121 main ()
17122 {
17123 struct sockaddr s; s.sa_len;
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 rm -f conftest.$ac_objext
17129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17130   (eval $ac_compile) 2>&5
17131   ac_status=$?
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); } &&
17134          { ac_try='test -s conftest.$ac_objext'
17135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17136   (eval $ac_try) 2>&5
17137   ac_status=$?
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); }; }; then
17140   ac_cv_struct_sockaddr_sa_len=yes
17141 else
17142   echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17144
17145 ac_cv_struct_sockaddr_sa_len=no
17146 fi
17147 rm -f conftest.$ac_objext conftest.$ac_ext
17148 fi
17149 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
17150 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
17151
17152  if test $ac_cv_struct_sockaddr_sa_len = yes; then
17153
17154 cat >>confdefs.h <<\_ACEOF
17155 #define HAVE_SA_LEN 1
17156 _ACEOF
17157
17158  fi
17159
17160
17161 echo "$as_me:$LINENO: checking for IPv6 support" >&5
17162 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
17163 if test "${ac_cv_ipv6_support+set}" = set; then
17164   echo $ECHO_N "(cached) $ECHO_C" >&6
17165 else
17166   cat >conftest.$ac_ext <<_ACEOF
17167 #line $LINENO "configure"
17168 /* confdefs.h.  */
17169 _ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h.  */
17173  #include <sys/types.h>
17174 #include <sys/socket.h>
17175 #include <netinet/in.h>
17176 int
17177 main ()
17178 {
17179 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
17180  0;
17181   ;
17182   return 0;
17183 }
17184 _ACEOF
17185 rm -f conftest.$ac_objext conftest$ac_exeext
17186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187   (eval $ac_link) 2>&5
17188   ac_status=$?
17189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190   (exit $ac_status); } &&
17191          { ac_try='test -s conftest$ac_exeext'
17192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193   (eval $ac_try) 2>&5
17194   ac_status=$?
17195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196   (exit $ac_status); }; }; then
17197   ac_cv_ipv6_support=yes
17198 else
17199   echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17201
17202 ac_cv_ipv6_support=no
17203 fi
17204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17205 fi
17206 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
17207 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
17208
17209 if test "$ac_cv_ipv6_support" = yes; then
17210
17211 cat >>confdefs.h <<\_ACEOF
17212 #define HAVE_IPV6 1
17213 _ACEOF
17214
17215 fi
17216
17217
17218
17219
17220 for ac_func in strftime
17221 do
17222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17223 echo "$as_me:$LINENO: checking for $ac_func" >&5
17224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17225 if eval "test \"\${$as_ac_var+set}\" = set"; then
17226   echo $ECHO_N "(cached) $ECHO_C" >&6
17227 else
17228   cat >conftest.$ac_ext <<_ACEOF
17229 #line $LINENO "configure"
17230 /* confdefs.h.  */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h.  */
17235 /* System header to define __stub macros and hopefully few prototypes,
17236     which can conflict with char $ac_func (); below.
17237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17238     <limits.h> exists even on freestanding compilers.  */
17239 #ifdef __STDC__
17240 # include <limits.h>
17241 #else
17242 # include <assert.h>
17243 #endif
17244 /* Override any gcc2 internal prototype to avoid an error.  */
17245 #ifdef __cplusplus
17246 extern "C"
17247 {
17248 #endif
17249 /* We use char because int might match the return type of a gcc2
17250    builtin and then its argument prototype would still apply.  */
17251 char $ac_func ();
17252 /* The GNU C library defines this for functions which it implements
17253     to always fail with ENOSYS.  Some functions are actually named
17254     something starting with __ and the normal name is an alias.  */
17255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17256 choke me
17257 #else
17258 char (*f) () = $ac_func;
17259 #endif
17260 #ifdef __cplusplus
17261 }
17262 #endif
17263
17264 int
17265 main ()
17266 {
17267 return f != $ac_func;
17268   ;
17269   return 0;
17270 }
17271 _ACEOF
17272 rm -f conftest.$ac_objext conftest$ac_exeext
17273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17274   (eval $ac_link) 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); } &&
17278          { ac_try='test -s conftest$ac_exeext'
17279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280   (eval $ac_try) 2>&5
17281   ac_status=$?
17282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); }; }; then
17284   eval "$as_ac_var=yes"
17285 else
17286   echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17288
17289 eval "$as_ac_var=no"
17290 fi
17291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17292 fi
17293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17295 if test `eval echo '${'$as_ac_var'}'` = yes; then
17296   cat >>confdefs.h <<_ACEOF
17297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17298 _ACEOF
17299
17300 else
17301   # strftime is in -lintl on SCO UNIX.
17302 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17303 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17304 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17305   echo $ECHO_N "(cached) $ECHO_C" >&6
17306 else
17307   ac_check_lib_save_LIBS=$LIBS
17308 LIBS="-lintl  $LIBS"
17309 cat >conftest.$ac_ext <<_ACEOF
17310 #line $LINENO "configure"
17311 /* confdefs.h.  */
17312 _ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h.  */
17316
17317 /* Override any gcc2 internal prototype to avoid an error.  */
17318 #ifdef __cplusplus
17319 extern "C"
17320 #endif
17321 /* We use char because int might match the return type of a gcc2
17322    builtin and then its argument prototype would still apply.  */
17323 char strftime ();
17324 int
17325 main ()
17326 {
17327 strftime ();
17328   ;
17329   return 0;
17330 }
17331 _ACEOF
17332 rm -f conftest.$ac_objext conftest$ac_exeext
17333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17334   (eval $ac_link) 2>&5
17335   ac_status=$?
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); } &&
17338          { ac_try='test -s conftest$ac_exeext'
17339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17340   (eval $ac_try) 2>&5
17341   ac_status=$?
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); }; }; then
17344   ac_cv_lib_intl_strftime=yes
17345 else
17346   echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17348
17349 ac_cv_lib_intl_strftime=no
17350 fi
17351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17352 LIBS=$ac_check_lib_save_LIBS
17353 fi
17354 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17355 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17356 if test $ac_cv_lib_intl_strftime = yes; then
17357   cat >>confdefs.h <<\_ACEOF
17358 #define HAVE_STRFTIME 1
17359 _ACEOF
17360
17361 LIBS="-lintl $LIBS"
17362 fi
17363
17364 fi
17365 done
17366
17367
17368 for ac_func in vprintf
17369 do
17370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17371 echo "$as_me:$LINENO: checking for $ac_func" >&5
17372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17373 if eval "test \"\${$as_ac_var+set}\" = set"; then
17374   echo $ECHO_N "(cached) $ECHO_C" >&6
17375 else
17376   cat >conftest.$ac_ext <<_ACEOF
17377 #line $LINENO "configure"
17378 /* confdefs.h.  */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h.  */
17383 /* System header to define __stub macros and hopefully few prototypes,
17384     which can conflict with char $ac_func (); below.
17385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17386     <limits.h> exists even on freestanding compilers.  */
17387 #ifdef __STDC__
17388 # include <limits.h>
17389 #else
17390 # include <assert.h>
17391 #endif
17392 /* Override any gcc2 internal prototype to avoid an error.  */
17393 #ifdef __cplusplus
17394 extern "C"
17395 {
17396 #endif
17397 /* We use char because int might match the return type of a gcc2
17398    builtin and then its argument prototype would still apply.  */
17399 char $ac_func ();
17400 /* The GNU C library defines this for functions which it implements
17401     to always fail with ENOSYS.  Some functions are actually named
17402     something starting with __ and the normal name is an alias.  */
17403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17404 choke me
17405 #else
17406 char (*f) () = $ac_func;
17407 #endif
17408 #ifdef __cplusplus
17409 }
17410 #endif
17411
17412 int
17413 main ()
17414 {
17415 return f != $ac_func;
17416   ;
17417   return 0;
17418 }
17419 _ACEOF
17420 rm -f conftest.$ac_objext conftest$ac_exeext
17421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17422   (eval $ac_link) 2>&5
17423   ac_status=$?
17424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425   (exit $ac_status); } &&
17426          { ac_try='test -s conftest$ac_exeext'
17427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428   (eval $ac_try) 2>&5
17429   ac_status=$?
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); }; }; then
17432   eval "$as_ac_var=yes"
17433 else
17434   echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17436
17437 eval "$as_ac_var=no"
17438 fi
17439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17440 fi
17441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17443 if test `eval echo '${'$as_ac_var'}'` = yes; then
17444   cat >>confdefs.h <<_ACEOF
17445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17446 _ACEOF
17447
17448 echo "$as_me:$LINENO: checking for _doprnt" >&5
17449 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17450 if test "${ac_cv_func__doprnt+set}" = set; then
17451   echo $ECHO_N "(cached) $ECHO_C" >&6
17452 else
17453   cat >conftest.$ac_ext <<_ACEOF
17454 #line $LINENO "configure"
17455 /* confdefs.h.  */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h.  */
17460 /* System header to define __stub macros and hopefully few prototypes,
17461     which can conflict with char _doprnt (); below.
17462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17463     <limits.h> exists even on freestanding compilers.  */
17464 #ifdef __STDC__
17465 # include <limits.h>
17466 #else
17467 # include <assert.h>
17468 #endif
17469 /* Override any gcc2 internal prototype to avoid an error.  */
17470 #ifdef __cplusplus
17471 extern "C"
17472 {
17473 #endif
17474 /* We use char because int might match the return type of a gcc2
17475    builtin and then its argument prototype would still apply.  */
17476 char _doprnt ();
17477 /* The GNU C library defines this for functions which it implements
17478     to always fail with ENOSYS.  Some functions are actually named
17479     something starting with __ and the normal name is an alias.  */
17480 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17481 choke me
17482 #else
17483 char (*f) () = _doprnt;
17484 #endif
17485 #ifdef __cplusplus
17486 }
17487 #endif
17488
17489 int
17490 main ()
17491 {
17492 return f != _doprnt;
17493   ;
17494   return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17499   (eval $ac_link) 2>&5
17500   ac_status=$?
17501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502   (exit $ac_status); } &&
17503          { ac_try='test -s conftest$ac_exeext'
17504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17505   (eval $ac_try) 2>&5
17506   ac_status=$?
17507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17508   (exit $ac_status); }; }; then
17509   ac_cv_func__doprnt=yes
17510 else
17511   echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17513
17514 ac_cv_func__doprnt=no
17515 fi
17516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17517 fi
17518 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17519 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17520 if test $ac_cv_func__doprnt = yes; then
17521
17522 cat >>confdefs.h <<\_ACEOF
17523 #define HAVE_DOPRNT 1
17524 _ACEOF
17525
17526 fi
17527
17528 fi
17529 done
17530
17531
17532 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17533 # for constant arguments.  Useless!
17534 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17535 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17536 if test "${ac_cv_working_alloca_h+set}" = set; then
17537   echo $ECHO_N "(cached) $ECHO_C" >&6
17538 else
17539   cat >conftest.$ac_ext <<_ACEOF
17540 #line $LINENO "configure"
17541 /* confdefs.h.  */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h.  */
17546 #include <alloca.h>
17547 int
17548 main ()
17549 {
17550 char *p = (char *) alloca (2 * sizeof (int));
17551   ;
17552   return 0;
17553 }
17554 _ACEOF
17555 rm -f conftest.$ac_objext conftest$ac_exeext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17557   (eval $ac_link) 2>&5
17558   ac_status=$?
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); } &&
17561          { ac_try='test -s conftest$ac_exeext'
17562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563   (eval $ac_try) 2>&5
17564   ac_status=$?
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); }; }; then
17567   ac_cv_working_alloca_h=yes
17568 else
17569   echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17571
17572 ac_cv_working_alloca_h=no
17573 fi
17574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17575 fi
17576 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17577 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17578 if test $ac_cv_working_alloca_h = yes; then
17579
17580 cat >>confdefs.h <<\_ACEOF
17581 #define HAVE_ALLOCA_H 1
17582 _ACEOF
17583
17584 fi
17585
17586 echo "$as_me:$LINENO: checking for alloca" >&5
17587 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17588 if test "${ac_cv_func_alloca_works+set}" = set; then
17589   echo $ECHO_N "(cached) $ECHO_C" >&6
17590 else
17591   cat >conftest.$ac_ext <<_ACEOF
17592 #line $LINENO "configure"
17593 /* confdefs.h.  */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h.  */
17598 #ifdef __GNUC__
17599 # define alloca __builtin_alloca
17600 #else
17601 # ifdef _MSC_VER
17602 #  include <malloc.h>
17603 #  define alloca _alloca
17604 # else
17605 #  if HAVE_ALLOCA_H
17606 #   include <alloca.h>
17607 #  else
17608 #   ifdef _AIX
17609  #pragma alloca
17610 #   else
17611 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17612 char *alloca ();
17613 #    endif
17614 #   endif
17615 #  endif
17616 # endif
17617 #endif
17618
17619 int
17620 main ()
17621 {
17622 char *p = (char *) alloca (1);
17623   ;
17624   return 0;
17625 }
17626 _ACEOF
17627 rm -f conftest.$ac_objext 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); } &&
17633          { ac_try='test -s conftest$ac_exeext'
17634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635   (eval $ac_try) 2>&5
17636   ac_status=$?
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); }; }; then
17639   ac_cv_func_alloca_works=yes
17640 else
17641   echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17643
17644 ac_cv_func_alloca_works=no
17645 fi
17646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17647 fi
17648 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17649 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17650
17651 if test $ac_cv_func_alloca_works = yes; then
17652
17653 cat >>confdefs.h <<\_ACEOF
17654 #define HAVE_ALLOCA 1
17655 _ACEOF
17656
17657 else
17658   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17659 # that cause trouble.  Some versions do not even contain alloca or
17660 # contain a buggy version.  If you still want to use their alloca,
17661 # use ar to extract alloca.o from them instead of compiling alloca.c.
17662
17663 ALLOCA=alloca.$ac_objext
17664
17665 cat >>confdefs.h <<\_ACEOF
17666 #define C_ALLOCA 1
17667 _ACEOF
17668
17669
17670 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17671 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17672 if test "${ac_cv_os_cray+set}" = set; then
17673   echo $ECHO_N "(cached) $ECHO_C" >&6
17674 else
17675   cat >conftest.$ac_ext <<_ACEOF
17676 #line $LINENO "configure"
17677 /* confdefs.h.  */
17678 _ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h.  */
17682 #if defined(CRAY) && ! defined(CRAY2)
17683 webecray
17684 #else
17685 wenotbecray
17686 #endif
17687
17688 _ACEOF
17689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17690   $EGREP "webecray" >/dev/null 2>&1; then
17691   ac_cv_os_cray=yes
17692 else
17693   ac_cv_os_cray=no
17694 fi
17695 rm -f conftest*
17696
17697 fi
17698 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17699 echo "${ECHO_T}$ac_cv_os_cray" >&6
17700 if test $ac_cv_os_cray = yes; then
17701   for ac_func in _getb67 GETB67 getb67; do
17702     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17703 echo "$as_me:$LINENO: checking for $ac_func" >&5
17704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17705 if eval "test \"\${$as_ac_var+set}\" = set"; then
17706   echo $ECHO_N "(cached) $ECHO_C" >&6
17707 else
17708   cat >conftest.$ac_ext <<_ACEOF
17709 #line $LINENO "configure"
17710 /* confdefs.h.  */
17711 _ACEOF
17712 cat confdefs.h >>conftest.$ac_ext
17713 cat >>conftest.$ac_ext <<_ACEOF
17714 /* end confdefs.h.  */
17715 /* System header to define __stub macros and hopefully few prototypes,
17716     which can conflict with char $ac_func (); below.
17717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17718     <limits.h> exists even on freestanding compilers.  */
17719 #ifdef __STDC__
17720 # include <limits.h>
17721 #else
17722 # include <assert.h>
17723 #endif
17724 /* Override any gcc2 internal prototype to avoid an error.  */
17725 #ifdef __cplusplus
17726 extern "C"
17727 {
17728 #endif
17729 /* We use char because int might match the return type of a gcc2
17730    builtin and then its argument prototype would still apply.  */
17731 char $ac_func ();
17732 /* The GNU C library defines this for functions which it implements
17733     to always fail with ENOSYS.  Some functions are actually named
17734     something starting with __ and the normal name is an alias.  */
17735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17736 choke me
17737 #else
17738 char (*f) () = $ac_func;
17739 #endif
17740 #ifdef __cplusplus
17741 }
17742 #endif
17743
17744 int
17745 main ()
17746 {
17747 return f != $ac_func;
17748   ;
17749   return 0;
17750 }
17751 _ACEOF
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17754   (eval $ac_link) 2>&5
17755   ac_status=$?
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); } &&
17758          { ac_try='test -s conftest$ac_exeext'
17759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760   (eval $ac_try) 2>&5
17761   ac_status=$?
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); }; }; then
17764   eval "$as_ac_var=yes"
17765 else
17766   echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17768
17769 eval "$as_ac_var=no"
17770 fi
17771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17772 fi
17773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17775 if test `eval echo '${'$as_ac_var'}'` = yes; then
17776
17777 cat >>confdefs.h <<_ACEOF
17778 #define CRAY_STACKSEG_END $ac_func
17779 _ACEOF
17780
17781     break
17782 fi
17783
17784   done
17785 fi
17786
17787 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17788 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17789 if test "${ac_cv_c_stack_direction+set}" = set; then
17790   echo $ECHO_N "(cached) $ECHO_C" >&6
17791 else
17792   if test "$cross_compiling" = yes; then
17793   ac_cv_c_stack_direction=0
17794 else
17795   cat >conftest.$ac_ext <<_ACEOF
17796 #line $LINENO "configure"
17797 /* confdefs.h.  */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h.  */
17802 int
17803 find_stack_direction ()
17804 {
17805   static char *addr = 0;
17806   auto char dummy;
17807   if (addr == 0)
17808     {
17809       addr = &dummy;
17810       return find_stack_direction ();
17811     }
17812   else
17813     return (&dummy > addr) ? 1 : -1;
17814 }
17815
17816 int
17817 main ()
17818 {
17819   exit (find_stack_direction () < 0);
17820 }
17821 _ACEOF
17822 rm -f conftest$ac_exeext
17823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17824   (eval $ac_link) 2>&5
17825   ac_status=$?
17826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829   (eval $ac_try) 2>&5
17830   ac_status=$?
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); }; }; then
17833   ac_cv_c_stack_direction=1
17834 else
17835   echo "$as_me: program exited with status $ac_status" >&5
17836 echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17838
17839 ( exit $ac_status )
17840 ac_cv_c_stack_direction=-1
17841 fi
17842 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17843 fi
17844 fi
17845 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17846 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17847
17848 cat >>confdefs.h <<_ACEOF
17849 #define STACK_DIRECTION $ac_cv_c_stack_direction
17850 _ACEOF
17851
17852
17853 fi
17854
17855 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17856 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17857 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17858 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17859   echo $ECHO_N "(cached) $ECHO_C" >&6
17860 else
17861   ac_check_lib_save_LIBS=$LIBS
17862 LIBS="-lsun  $LIBS"
17863 cat >conftest.$ac_ext <<_ACEOF
17864 #line $LINENO "configure"
17865 /* confdefs.h.  */
17866 _ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h.  */
17870
17871 /* Override any gcc2 internal prototype to avoid an error.  */
17872 #ifdef __cplusplus
17873 extern "C"
17874 #endif
17875 /* We use char because int might match the return type of a gcc2
17876    builtin and then its argument prototype would still apply.  */
17877 char getmntent ();
17878 int
17879 main ()
17880 {
17881 getmntent ();
17882   ;
17883   return 0;
17884 }
17885 _ACEOF
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17888   (eval $ac_link) 2>&5
17889   ac_status=$?
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); } &&
17892          { ac_try='test -s conftest$ac_exeext'
17893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894   (eval $ac_try) 2>&5
17895   ac_status=$?
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); }; }; then
17898   ac_cv_lib_sun_getmntent=yes
17899 else
17900   echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17902
17903 ac_cv_lib_sun_getmntent=no
17904 fi
17905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17906 LIBS=$ac_check_lib_save_LIBS
17907 fi
17908 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17909 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17910 if test $ac_cv_lib_sun_getmntent = yes; then
17911   LIBS="-lsun $LIBS"
17912 else
17913   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17914 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17915 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17916   echo $ECHO_N "(cached) $ECHO_C" >&6
17917 else
17918   ac_check_lib_save_LIBS=$LIBS
17919 LIBS="-lseq  $LIBS"
17920 cat >conftest.$ac_ext <<_ACEOF
17921 #line $LINENO "configure"
17922 /* confdefs.h.  */
17923 _ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h.  */
17927
17928 /* Override any gcc2 internal prototype to avoid an error.  */
17929 #ifdef __cplusplus
17930 extern "C"
17931 #endif
17932 /* We use char because int might match the return type of a gcc2
17933    builtin and then its argument prototype would still apply.  */
17934 char getmntent ();
17935 int
17936 main ()
17937 {
17938 getmntent ();
17939   ;
17940   return 0;
17941 }
17942 _ACEOF
17943 rm -f conftest.$ac_objext conftest$ac_exeext
17944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17945   (eval $ac_link) 2>&5
17946   ac_status=$?
17947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948   (exit $ac_status); } &&
17949          { ac_try='test -s conftest$ac_exeext'
17950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951   (eval $ac_try) 2>&5
17952   ac_status=$?
17953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954   (exit $ac_status); }; }; then
17955   ac_cv_lib_seq_getmntent=yes
17956 else
17957   echo "$as_me: failed program was:" >&5
17958 sed 's/^/| /' conftest.$ac_ext >&5
17959
17960 ac_cv_lib_seq_getmntent=no
17961 fi
17962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17963 LIBS=$ac_check_lib_save_LIBS
17964 fi
17965 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17966 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17967 if test $ac_cv_lib_seq_getmntent = yes; then
17968   LIBS="-lseq $LIBS"
17969 else
17970   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17971 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17972 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17973   echo $ECHO_N "(cached) $ECHO_C" >&6
17974 else
17975   ac_check_lib_save_LIBS=$LIBS
17976 LIBS="-lgen  $LIBS"
17977 cat >conftest.$ac_ext <<_ACEOF
17978 #line $LINENO "configure"
17979 /* confdefs.h.  */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h.  */
17984
17985 /* Override any gcc2 internal prototype to avoid an error.  */
17986 #ifdef __cplusplus
17987 extern "C"
17988 #endif
17989 /* We use char because int might match the return type of a gcc2
17990    builtin and then its argument prototype would still apply.  */
17991 char getmntent ();
17992 int
17993 main ()
17994 {
17995 getmntent ();
17996   ;
17997   return 0;
17998 }
17999 _ACEOF
18000 rm -f conftest.$ac_objext conftest$ac_exeext
18001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18002   (eval $ac_link) 2>&5
18003   ac_status=$?
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); } &&
18006          { ac_try='test -s conftest$ac_exeext'
18007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008   (eval $ac_try) 2>&5
18009   ac_status=$?
18010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011   (exit $ac_status); }; }; then
18012   ac_cv_lib_gen_getmntent=yes
18013 else
18014   echo "$as_me: failed program was:" >&5
18015 sed 's/^/| /' conftest.$ac_ext >&5
18016
18017 ac_cv_lib_gen_getmntent=no
18018 fi
18019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18020 LIBS=$ac_check_lib_save_LIBS
18021 fi
18022 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
18023 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
18024 if test $ac_cv_lib_gen_getmntent = yes; then
18025   LIBS="-lgen $LIBS"
18026 fi
18027
18028 fi
18029
18030 fi
18031
18032
18033 for ac_func in getmntent
18034 do
18035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18036 echo "$as_me:$LINENO: checking for $ac_func" >&5
18037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18038 if eval "test \"\${$as_ac_var+set}\" = set"; then
18039   echo $ECHO_N "(cached) $ECHO_C" >&6
18040 else
18041   cat >conftest.$ac_ext <<_ACEOF
18042 #line $LINENO "configure"
18043 /* confdefs.h.  */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h.  */
18048 /* System header to define __stub macros and hopefully few prototypes,
18049     which can conflict with char $ac_func (); below.
18050     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18051     <limits.h> exists even on freestanding compilers.  */
18052 #ifdef __STDC__
18053 # include <limits.h>
18054 #else
18055 # include <assert.h>
18056 #endif
18057 /* Override any gcc2 internal prototype to avoid an error.  */
18058 #ifdef __cplusplus
18059 extern "C"
18060 {
18061 #endif
18062 /* We use char because int might match the return type of a gcc2
18063    builtin and then its argument prototype would still apply.  */
18064 char $ac_func ();
18065 /* The GNU C library defines this for functions which it implements
18066     to always fail with ENOSYS.  Some functions are actually named
18067     something starting with __ and the normal name is an alias.  */
18068 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18069 choke me
18070 #else
18071 char (*f) () = $ac_func;
18072 #endif
18073 #ifdef __cplusplus
18074 }
18075 #endif
18076
18077 int
18078 main ()
18079 {
18080 return f != $ac_func;
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 rm -f conftest.$ac_objext conftest$ac_exeext
18086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18087   (eval $ac_link) 2>&5
18088   ac_status=$?
18089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090   (exit $ac_status); } &&
18091          { ac_try='test -s conftest$ac_exeext'
18092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093   (eval $ac_try) 2>&5
18094   ac_status=$?
18095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096   (exit $ac_status); }; }; then
18097   eval "$as_ac_var=yes"
18098 else
18099   echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18101
18102 eval "$as_ac_var=no"
18103 fi
18104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18105 fi
18106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18108 if test `eval echo '${'$as_ac_var'}'` = yes; then
18109   cat >>confdefs.h <<_ACEOF
18110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18111 _ACEOF
18112
18113 fi
18114 done
18115
18116
18117 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
18118 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
18119 if test "${ac_cv_func_closedir_void+set}" = set; then
18120   echo $ECHO_N "(cached) $ECHO_C" >&6
18121 else
18122   if test "$cross_compiling" = yes; then
18123   ac_cv_func_closedir_void=yes
18124 else
18125   cat >conftest.$ac_ext <<_ACEOF
18126 #line $LINENO "configure"
18127 /* confdefs.h.  */
18128 _ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h.  */
18132 $ac_includes_default
18133 #include <$ac_header_dirent>
18134 #ifndef __cplusplus
18135 int closedir ();
18136 #endif
18137
18138 int
18139 main ()
18140 {
18141 exit (closedir (opendir (".")) != 0);
18142   ;
18143   return 0;
18144 }
18145 _ACEOF
18146 rm -f conftest$ac_exeext
18147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18148   (eval $ac_link) 2>&5
18149   ac_status=$?
18150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153   (eval $ac_try) 2>&5
18154   ac_status=$?
18155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156   (exit $ac_status); }; }; then
18157   ac_cv_func_closedir_void=no
18158 else
18159   echo "$as_me: program exited with status $ac_status" >&5
18160 echo "$as_me: failed program was:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18162
18163 ( exit $ac_status )
18164 ac_cv_func_closedir_void=yes
18165 fi
18166 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18167 fi
18168 fi
18169 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
18170 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
18171 if test $ac_cv_func_closedir_void = yes; then
18172
18173 cat >>confdefs.h <<\_ACEOF
18174 #define CLOSEDIR_VOID 1
18175 _ACEOF
18176
18177 fi
18178
18179 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18180 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18181 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18182   echo $ECHO_N "(cached) $ECHO_C" >&6
18183 else
18184   if test "$cross_compiling" = yes; then
18185   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18186 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18187    { (exit 1); exit 1; }; }
18188 else
18189   cat >conftest.$ac_ext <<_ACEOF
18190 #line $LINENO "configure"
18191 /* confdefs.h.  */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h.  */
18196 #if HAVE_UNISTD_H
18197 # include <unistd.h>
18198 #endif
18199
18200 int
18201 main ()
18202 {
18203 /* If this system has a BSD-style setpgrp which takes arguments,
18204   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18205   exit successfully. */
18206   exit (setpgrp (1,1) == -1 ? 0 : 1);
18207   ;
18208   return 0;
18209 }
18210 _ACEOF
18211 rm -f conftest$ac_exeext
18212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18213   (eval $ac_link) 2>&5
18214   ac_status=$?
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218   (eval $ac_try) 2>&5
18219   ac_status=$?
18220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221   (exit $ac_status); }; }; then
18222   ac_cv_func_setpgrp_void=no
18223 else
18224   echo "$as_me: program exited with status $ac_status" >&5
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18227
18228 ( exit $ac_status )
18229 ac_cv_func_setpgrp_void=yes
18230 fi
18231 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18232 fi
18233 fi
18234 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18235 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18236 if test $ac_cv_func_setpgrp_void = yes; then
18237
18238 cat >>confdefs.h <<\_ACEOF
18239 #define SETPGRP_VOID 1
18240 _ACEOF
18241
18242 fi
18243                       # AC_FUNC_FNMATCH    dnl use local version
18244
18245
18246 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18247 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18248 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18249   echo $ECHO_N "(cached) $ECHO_C" >&6
18250 else
18251   ac_check_lib_save_LIBS=$LIBS
18252 LIBS="-lxpg4  $LIBS"
18253 cat >conftest.$ac_ext <<_ACEOF
18254 #line $LINENO "configure"
18255 /* confdefs.h.  */
18256 _ACEOF
18257 cat confdefs.h >>conftest.$ac_ext
18258 cat >>conftest.$ac_ext <<_ACEOF
18259 /* end confdefs.h.  */
18260
18261 /* Override any gcc2 internal prototype to avoid an error.  */
18262 #ifdef __cplusplus
18263 extern "C"
18264 #endif
18265 /* We use char because int might match the return type of a gcc2
18266    builtin and then its argument prototype would still apply.  */
18267 char setlocale ();
18268 int
18269 main ()
18270 {
18271 setlocale ();
18272   ;
18273   return 0;
18274 }
18275 _ACEOF
18276 rm -f conftest.$ac_objext conftest$ac_exeext
18277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18278   (eval $ac_link) 2>&5
18279   ac_status=$?
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); } &&
18282          { ac_try='test -s conftest$ac_exeext'
18283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284   (eval $ac_try) 2>&5
18285   ac_status=$?
18286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287   (exit $ac_status); }; }; then
18288   ac_cv_lib_xpg4_setlocale=yes
18289 else
18290   echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18292
18293 ac_cv_lib_xpg4_setlocale=no
18294 fi
18295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18296 LIBS=$ac_check_lib_save_LIBS
18297 fi
18298 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18299 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18300 if test $ac_cv_lib_xpg4_setlocale = yes; then
18301   LIBS="$LIBS -lxpg4"
18302 fi
18303
18304
18305
18306
18307 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18308 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18309 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18310   echo $ECHO_N "(cached) $ECHO_C" >&6
18311 else
18312   ac_check_lib_save_LIBS=$LIBS
18313 LIBS="-lsun  $LIBS"
18314 cat >conftest.$ac_ext <<_ACEOF
18315 #line $LINENO "configure"
18316 /* confdefs.h.  */
18317 _ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h.  */
18321
18322 /* Override any gcc2 internal prototype to avoid an error.  */
18323 #ifdef __cplusplus
18324 extern "C"
18325 #endif
18326 /* We use char because int might match the return type of a gcc2
18327    builtin and then its argument prototype would still apply.  */
18328 char getpwnam ();
18329 int
18330 main ()
18331 {
18332 getpwnam ();
18333   ;
18334   return 0;
18335 }
18336 _ACEOF
18337 rm -f conftest.$ac_objext conftest$ac_exeext
18338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18339   (eval $ac_link) 2>&5
18340   ac_status=$?
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); } &&
18343          { ac_try='test -s conftest$ac_exeext'
18344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345   (eval $ac_try) 2>&5
18346   ac_status=$?
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); }; }; then
18349   ac_cv_lib_sun_getpwnam=yes
18350 else
18351   echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18353
18354 ac_cv_lib_sun_getpwnam=no
18355 fi
18356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18357 LIBS=$ac_check_lib_save_LIBS
18358 fi
18359 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18360 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18361 if test $ac_cv_lib_sun_getpwnam = yes; then
18362   cat >>confdefs.h <<_ACEOF
18363 #define HAVE_LIBSUN 1
18364 _ACEOF
18365
18366   LIBS="-lsun $LIBS"
18367
18368 fi
18369
18370
18371
18372 for ac_header in zlib.h
18373 do
18374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18376   echo "$as_me:$LINENO: checking for $ac_header" >&5
18377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18379   echo $ECHO_N "(cached) $ECHO_C" >&6
18380 fi
18381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18383 else
18384   # Is the header compilable?
18385 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18387 cat >conftest.$ac_ext <<_ACEOF
18388 #line $LINENO "configure"
18389 /* confdefs.h.  */
18390 _ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h.  */
18394 $ac_includes_default
18395 #include <$ac_header>
18396 _ACEOF
18397 rm -f conftest.$ac_objext
18398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18399   (eval $ac_compile) 2>&5
18400   ac_status=$?
18401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); } &&
18403          { ac_try='test -s conftest.$ac_objext'
18404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405   (eval $ac_try) 2>&5
18406   ac_status=$?
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); }; }; then
18409   ac_header_compiler=yes
18410 else
18411   echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18413
18414 ac_header_compiler=no
18415 fi
18416 rm -f conftest.$ac_objext conftest.$ac_ext
18417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18418 echo "${ECHO_T}$ac_header_compiler" >&6
18419
18420 # Is the header present?
18421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18423 cat >conftest.$ac_ext <<_ACEOF
18424 #line $LINENO "configure"
18425 /* confdefs.h.  */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h.  */
18430 #include <$ac_header>
18431 _ACEOF
18432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18433   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18434   ac_status=$?
18435   grep -v '^ *+' conftest.er1 >conftest.err
18436   rm -f conftest.er1
18437   cat conftest.err >&5
18438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439   (exit $ac_status); } >/dev/null; then
18440   if test -s conftest.err; then
18441     ac_cpp_err=$ac_c_preproc_warn_flag
18442   else
18443     ac_cpp_err=
18444   fi
18445 else
18446   ac_cpp_err=yes
18447 fi
18448 if test -z "$ac_cpp_err"; then
18449   ac_header_preproc=yes
18450 else
18451   echo "$as_me: failed program was:" >&5
18452 sed 's/^/| /' conftest.$ac_ext >&5
18453
18454   ac_header_preproc=no
18455 fi
18456 rm -f conftest.err conftest.$ac_ext
18457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18458 echo "${ECHO_T}$ac_header_preproc" >&6
18459
18460 # So?  What about this header?
18461 case $ac_header_compiler:$ac_header_preproc in
18462   yes:no )
18463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18467     (
18468       cat <<\_ASBOX
18469 ## ------------------------------------ ##
18470 ## Report this to bug-autoconf@gnu.org. ##
18471 ## ------------------------------------ ##
18472 _ASBOX
18473     ) |
18474       sed "s/^/$as_me: WARNING:     /" >&2
18475     ;;
18476   no:yes )
18477     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18479     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18480 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18483     (
18484       cat <<\_ASBOX
18485 ## ------------------------------------ ##
18486 ## Report this to bug-autoconf@gnu.org. ##
18487 ## ------------------------------------ ##
18488 _ASBOX
18489     ) |
18490       sed "s/^/$as_me: WARNING:     /" >&2
18491     ;;
18492 esac
18493 echo "$as_me:$LINENO: checking for $ac_header" >&5
18494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18496   echo $ECHO_N "(cached) $ECHO_C" >&6
18497 else
18498   eval "$as_ac_Header=$ac_header_preproc"
18499 fi
18500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18501 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18502
18503 fi
18504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18505   cat >>confdefs.h <<_ACEOF
18506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18507 _ACEOF
18508
18509 fi
18510
18511 done
18512
18513 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18514 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18515 if test "${ac_cv_lib_z_deflate+set}" = set; then
18516   echo $ECHO_N "(cached) $ECHO_C" >&6
18517 else
18518   ac_check_lib_save_LIBS=$LIBS
18519 LIBS="-lz  $LIBS"
18520 cat >conftest.$ac_ext <<_ACEOF
18521 #line $LINENO "configure"
18522 /* confdefs.h.  */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h.  */
18527
18528 /* Override any gcc2 internal prototype to avoid an error.  */
18529 #ifdef __cplusplus
18530 extern "C"
18531 #endif
18532 /* We use char because int might match the return type of a gcc2
18533    builtin and then its argument prototype would still apply.  */
18534 char deflate ();
18535 int
18536 main ()
18537 {
18538 deflate ();
18539   ;
18540   return 0;
18541 }
18542 _ACEOF
18543 rm -f conftest.$ac_objext conftest$ac_exeext
18544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18545   (eval $ac_link) 2>&5
18546   ac_status=$?
18547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548   (exit $ac_status); } &&
18549          { ac_try='test -s conftest$ac_exeext'
18550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551   (eval $ac_try) 2>&5
18552   ac_status=$?
18553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554   (exit $ac_status); }; }; then
18555   ac_cv_lib_z_deflate=yes
18556 else
18557   echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18559
18560 ac_cv_lib_z_deflate=no
18561 fi
18562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18563 LIBS=$ac_check_lib_save_LIBS
18564 fi
18565 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18566 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18567 if test $ac_cv_lib_z_deflate = yes; then
18568   FDLIBS="-lz"
18569 fi
18570
18571 have_zlib=no
18572 if test x$FDLIBS = x-lz; then
18573   cat >>confdefs.h <<\_ACEOF
18574 #define HAVE_LIBZ 1
18575 _ACEOF
18576
18577   have_zlib=yes
18578 fi
18579
18580 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18581   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18582 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18583 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18584   echo $ECHO_N "(cached) $ECHO_C" >&6
18585 fi
18586 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18587 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18588 else
18589   # Is the header compilable?
18590 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18591 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18592 cat >conftest.$ac_ext <<_ACEOF
18593 #line $LINENO "configure"
18594 /* confdefs.h.  */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h.  */
18599 $ac_includes_default
18600 #include <sys/acl.h>
18601 _ACEOF
18602 rm -f conftest.$ac_objext
18603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18604   (eval $ac_compile) 2>&5
18605   ac_status=$?
18606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607   (exit $ac_status); } &&
18608          { ac_try='test -s conftest.$ac_objext'
18609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610   (eval $ac_try) 2>&5
18611   ac_status=$?
18612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613   (exit $ac_status); }; }; then
18614   ac_header_compiler=yes
18615 else
18616   echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18618
18619 ac_header_compiler=no
18620 fi
18621 rm -f conftest.$ac_objext conftest.$ac_ext
18622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18623 echo "${ECHO_T}$ac_header_compiler" >&6
18624
18625 # Is the header present?
18626 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18627 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18628 cat >conftest.$ac_ext <<_ACEOF
18629 #line $LINENO "configure"
18630 /* confdefs.h.  */
18631 _ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h.  */
18635 #include <sys/acl.h>
18636 _ACEOF
18637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18639   ac_status=$?
18640   grep -v '^ *+' conftest.er1 >conftest.err
18641   rm -f conftest.er1
18642   cat conftest.err >&5
18643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644   (exit $ac_status); } >/dev/null; then
18645   if test -s conftest.err; then
18646     ac_cpp_err=$ac_c_preproc_warn_flag
18647   else
18648     ac_cpp_err=
18649   fi
18650 else
18651   ac_cpp_err=yes
18652 fi
18653 if test -z "$ac_cpp_err"; then
18654   ac_header_preproc=yes
18655 else
18656   echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.$ac_ext >&5
18658
18659   ac_header_preproc=no
18660 fi
18661 rm -f conftest.err conftest.$ac_ext
18662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18663 echo "${ECHO_T}$ac_header_preproc" >&6
18664
18665 # So?  What about this header?
18666 case $ac_header_compiler:$ac_header_preproc in
18667   yes:no )
18668     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18669 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18670     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18671 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18672     (
18673       cat <<\_ASBOX
18674 ## ------------------------------------ ##
18675 ## Report this to bug-autoconf@gnu.org. ##
18676 ## ------------------------------------ ##
18677 _ASBOX
18678     ) |
18679       sed "s/^/$as_me: WARNING:     /" >&2
18680     ;;
18681   no:yes )
18682     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18683 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18684     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18685 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18686     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18687 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18688     (
18689       cat <<\_ASBOX
18690 ## ------------------------------------ ##
18691 ## Report this to bug-autoconf@gnu.org. ##
18692 ## ------------------------------------ ##
18693 _ASBOX
18694     ) |
18695       sed "s/^/$as_me: WARNING:     /" >&2
18696     ;;
18697 esac
18698 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18699 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18700 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18701   echo $ECHO_N "(cached) $ECHO_C" >&6
18702 else
18703   ac_cv_header_sys_acl_h=$ac_header_preproc
18704 fi
18705 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18706 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18707
18708 fi
18709
18710
18711 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18712 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18713 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18714   echo $ECHO_N "(cached) $ECHO_C" >&6
18715 else
18716   ac_check_lib_save_LIBS=$LIBS
18717 LIBS="-lacl  $LIBS"
18718 cat >conftest.$ac_ext <<_ACEOF
18719 #line $LINENO "configure"
18720 /* confdefs.h.  */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h.  */
18725
18726 /* Override any gcc2 internal prototype to avoid an error.  */
18727 #ifdef __cplusplus
18728 extern "C"
18729 #endif
18730 /* We use char because int might match the return type of a gcc2
18731    builtin and then its argument prototype would still apply.  */
18732 char acl_get_file ();
18733 int
18734 main ()
18735 {
18736 acl_get_file ();
18737   ;
18738   return 0;
18739 }
18740 _ACEOF
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18743   (eval $ac_link) 2>&5
18744   ac_status=$?
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); } &&
18747          { ac_try='test -s conftest$ac_exeext'
18748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749   (eval $ac_try) 2>&5
18750   ac_status=$?
18751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752   (exit $ac_status); }; }; then
18753   ac_cv_lib_acl_acl_get_file=yes
18754 else
18755   echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18757
18758 ac_cv_lib_acl_acl_get_file=no
18759 fi
18760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18761 LIBS=$ac_check_lib_save_LIBS
18762 fi
18763 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18764 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18765 if test $ac_cv_lib_acl_acl_get_file = yes; then
18766   FDLIBS="-lacl $FDLIBS"
18767 fi
18768
18769 have_acl=no
18770 if test $ac_cv_lib_acl_acl_get_file = yes; then
18771    cat >>confdefs.h <<\_ACEOF
18772 #define HAVE_ACL 1
18773 _ACEOF
18774
18775    have_acl=yes
18776 fi
18777
18778 PTHREAD_LIB=""
18779 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18780 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18781 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18782   echo $ECHO_N "(cached) $ECHO_C" >&6
18783 else
18784   ac_check_lib_save_LIBS=$LIBS
18785 LIBS="-lpthread  $LIBS"
18786 cat >conftest.$ac_ext <<_ACEOF
18787 #line $LINENO "configure"
18788 /* confdefs.h.  */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h.  */
18793
18794 /* Override any gcc2 internal prototype to avoid an error.  */
18795 #ifdef __cplusplus
18796 extern "C"
18797 #endif
18798 /* We use char because int might match the return type of a gcc2
18799    builtin and then its argument prototype would still apply.  */
18800 char pthread_create ();
18801 int
18802 main ()
18803 {
18804 pthread_create ();
18805   ;
18806   return 0;
18807 }
18808 _ACEOF
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18811   (eval $ac_link) 2>&5
18812   ac_status=$?
18813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814   (exit $ac_status); } &&
18815          { ac_try='test -s conftest$ac_exeext'
18816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18817   (eval $ac_try) 2>&5
18818   ac_status=$?
18819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820   (exit $ac_status); }; }; then
18821   ac_cv_lib_pthread_pthread_create=yes
18822 else
18823   echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18825
18826 ac_cv_lib_pthread_pthread_create=no
18827 fi
18828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18829 LIBS=$ac_check_lib_save_LIBS
18830 fi
18831 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18832 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18833 if test $ac_cv_lib_pthread_pthread_create = yes; then
18834   PTHREAD_LIB="-lpthread"
18835 else
18836   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18837 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18838 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18839   echo $ECHO_N "(cached) $ECHO_C" >&6
18840 else
18841   ac_check_lib_save_LIBS=$LIBS
18842 LIBS="-lpthreads  $LIBS"
18843 cat >conftest.$ac_ext <<_ACEOF
18844 #line $LINENO "configure"
18845 /* confdefs.h.  */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h.  */
18850
18851 /* Override any gcc2 internal prototype to avoid an error.  */
18852 #ifdef __cplusplus
18853 extern "C"
18854 #endif
18855 /* We use char because int might match the return type of a gcc2
18856    builtin and then its argument prototype would still apply.  */
18857 char pthread_create ();
18858 int
18859 main ()
18860 {
18861 pthread_create ();
18862   ;
18863   return 0;
18864 }
18865 _ACEOF
18866 rm -f conftest.$ac_objext conftest$ac_exeext
18867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18868   (eval $ac_link) 2>&5
18869   ac_status=$?
18870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871   (exit $ac_status); } &&
18872          { ac_try='test -s conftest$ac_exeext'
18873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874   (eval $ac_try) 2>&5
18875   ac_status=$?
18876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877   (exit $ac_status); }; }; then
18878   ac_cv_lib_pthreads_pthread_create=yes
18879 else
18880   echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18882
18883 ac_cv_lib_pthreads_pthread_create=no
18884 fi
18885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18886 LIBS=$ac_check_lib_save_LIBS
18887 fi
18888 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18889 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18890 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18891   PTHREAD_LIB="-lpthreads"
18892 else
18893   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18894 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18895 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18896   echo $ECHO_N "(cached) $ECHO_C" >&6
18897 else
18898   ac_check_lib_save_LIBS=$LIBS
18899 LIBS="-lc_r  $LIBS"
18900 cat >conftest.$ac_ext <<_ACEOF
18901 #line $LINENO "configure"
18902 /* confdefs.h.  */
18903 _ACEOF
18904 cat confdefs.h >>conftest.$ac_ext
18905 cat >>conftest.$ac_ext <<_ACEOF
18906 /* end confdefs.h.  */
18907
18908 /* Override any gcc2 internal prototype to avoid an error.  */
18909 #ifdef __cplusplus
18910 extern "C"
18911 #endif
18912 /* We use char because int might match the return type of a gcc2
18913    builtin and then its argument prototype would still apply.  */
18914 char pthread_create ();
18915 int
18916 main ()
18917 {
18918 pthread_create ();
18919   ;
18920   return 0;
18921 }
18922 _ACEOF
18923 rm -f conftest.$ac_objext conftest$ac_exeext
18924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18925   (eval $ac_link) 2>&5
18926   ac_status=$?
18927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928   (exit $ac_status); } &&
18929          { ac_try='test -s conftest$ac_exeext'
18930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931   (eval $ac_try) 2>&5
18932   ac_status=$?
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); }; }; then
18935   ac_cv_lib_c_r_pthread_create=yes
18936 else
18937   echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18939
18940 ac_cv_lib_c_r_pthread_create=no
18941 fi
18942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18943 LIBS=$ac_check_lib_save_LIBS
18944 fi
18945 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18946 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18947 if test $ac_cv_lib_c_r_pthread_create = yes; then
18948   PTHREAD_LIB="-lc_r"
18949 else
18950   echo "$as_me:$LINENO: checking for pthread_create" >&5
18951 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18952 if test "${ac_cv_func_pthread_create+set}" = set; then
18953   echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955   cat >conftest.$ac_ext <<_ACEOF
18956 #line $LINENO "configure"
18957 /* confdefs.h.  */
18958 _ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h.  */
18962 /* System header to define __stub macros and hopefully few prototypes,
18963     which can conflict with char pthread_create (); below.
18964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18965     <limits.h> exists even on freestanding compilers.  */
18966 #ifdef __STDC__
18967 # include <limits.h>
18968 #else
18969 # include <assert.h>
18970 #endif
18971 /* Override any gcc2 internal prototype to avoid an error.  */
18972 #ifdef __cplusplus
18973 extern "C"
18974 {
18975 #endif
18976 /* We use char because int might match the return type of a gcc2
18977    builtin and then its argument prototype would still apply.  */
18978 char pthread_create ();
18979 /* The GNU C library defines this for functions which it implements
18980     to always fail with ENOSYS.  Some functions are actually named
18981     something starting with __ and the normal name is an alias.  */
18982 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18983 choke me
18984 #else
18985 char (*f) () = pthread_create;
18986 #endif
18987 #ifdef __cplusplus
18988 }
18989 #endif
18990
18991 int
18992 main ()
18993 {
18994 return f != pthread_create;
18995   ;
18996   return 0;
18997 }
18998 _ACEOF
18999 rm -f conftest.$ac_objext conftest$ac_exeext
19000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19001   (eval $ac_link) 2>&5
19002   ac_status=$?
19003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004   (exit $ac_status); } &&
19005          { ac_try='test -s conftest$ac_exeext'
19006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007   (eval $ac_try) 2>&5
19008   ac_status=$?
19009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010   (exit $ac_status); }; }; then
19011   ac_cv_func_pthread_create=yes
19012 else
19013   echo "$as_me: failed program was:" >&5
19014 sed 's/^/| /' conftest.$ac_ext >&5
19015
19016 ac_cv_func_pthread_create=no
19017 fi
19018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19019 fi
19020 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
19021 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
19022
19023
19024 fi
19025
19026
19027 fi
19028
19029
19030 fi
19031
19032
19033
19034 cat >>confdefs.h <<\_ACEOF
19035 #define FDLIBS 1
19036 _ACEOF
19037
19038
19039
19040 CFLAGS=${CFLAGS--O}
19041 LDFLAGS=${LDFLAGS--O}
19042 DB_LIBS="${SQL_LFLAGS}"
19043
19044 CPPFLAGS="$CPPFLAGS"
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059 OBJLIST=
19060
19061
19062 lld="lld"
19063 llu="llu"
19064
19065 WCFLAGS=
19066 WLDFLAGS=
19067
19068 #
19069 # Finally we set appropriate distribution specific
19070 #  variables and defaults
19071 #
19072 # PFILES are platform specific files
19073 PFILES="platforms/Makefile"
19074 PSCMD="ps -e"
19075 WIN32=
19076 MACOSX=
19077 hostname=`uname -n | cut -d '.' -f 1`
19078 case "$DISTNAME" in
19079 aix)
19080         DISTVER=`uname -r`
19081         PSCMD="ps -e -o pid,comm"
19082         PFILES="${PFILES} \
19083            platforms/aix/Makefile"
19084         TAPEDRIVE="/dev/rmt0.1"
19085   ;;
19086 alpha)
19087         DISTVER=`uname -r`
19088         PTHREAD_LIB="-lpthread -lexc"
19089         if test "${CC}" = "gcc" ; then
19090            lld="lld"
19091            llu="llu"
19092         else
19093            lld="ld"
19094            llu="lu"
19095         fi
19096         TAPEDRIVE="/dev/nrmt0"
19097   ;;
19098 bsdi)
19099         DISTVER=`uname -a |awk '{print $3}'`
19100         TAPEDRIVE="/dev/nrmt0"
19101         PTHREAD_LIB="-pthread"
19102         CFLAGS="${CFLAGS} -pthread"
19103         PSCMD="ps -x -o pid,command"
19104         lld="qd"
19105         llu="qu"
19106         PFILES="${PFILES} \
19107             platforms/bsdi/Makefile \
19108             platforms/bsdi/bacula-fd \
19109             platforms/bsdi/bacula-sd \
19110             platforms/bsdi/bacula-dir"
19111         largefile_support="yes"
19112   ;;
19113 cygwin)
19114         DISTVER=`uname -a |awk '{print $3}'`
19115         TAPEDRIVE="/dev/nrst0"
19116         WIN32=win32
19117         WCFLAGS="-mwindows"
19118         WLDFLAGS="-mwindows"
19119   ;;
19120 darwin)
19121         DISTVER=`uname -r`
19122         TAPEDRIVE="/dev/nst0"
19123         PSCMD="ps -e -o pid,command"
19124         MACOSX=macosx
19125         PFILES="${PFILES} \
19126            platforms/darwin/Makefile"
19127   ;;
19128 debian)
19129         DISTVER=`cat /etc/debian_version`
19130         TAPEDRIVE="/dev/nrst0"
19131         PSCMD="ps -e -o pid,command"
19132   ;;
19133 freebsd)
19134         DISTVER=`uname -a |awk '{print $3}'`
19135         VER=`echo $DISTVER | cut -c 1`
19136         if test x$VER = x4 ; then
19137            PTHREAD_LIB="-pthread"
19138            CFLAGS="${CFLAGS} -pthread"
19139         fi
19140         lld="qd"
19141         llu="qu"
19142         TAPEDRIVE="/dev/nrsa0"
19143         PSCMD="ps -x -o pid,command"
19144         PFILES="${PFILES} \
19145             platforms/freebsd/Makefile \
19146             platforms/freebsd/bacula-fd \
19147             platforms/freebsd/bacula-sd \
19148             platforms/freebsd/bacula-dir"
19149         largefile_support="yes"
19150   ;;
19151 hpux)
19152         PSCMD="UNIX95=1 ps -e -o pid,comm"
19153         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
19154         DISTVER=`uname -r`
19155         TAPEDRIVE="/dev/rmt/0hnb"
19156   ;;
19157 irix)
19158         DISTVER=`uname -r`
19159         TAPEDRIVE="/dev/rmt/0cbn"
19160         PSCMD="ps -e -o pid,comm"
19161         PFILES="${PFILES} \
19162             platforms/irix/Makefile \
19163             platforms/irix/bacula-fd \
19164             platforms/irix/bacula-sd \
19165             platforms/irix/bacula-dir"
19166   ;;
19167 netbsd)
19168         DISTVER=`uname -a |awk '{print $3}'`
19169         lld="qd"
19170         llu="qu"
19171         TAPEDRIVE="/dev/nrst0"
19172         PSCMD="ps -a -o pid,command"
19173         PTHREAD_LIB="-pthread"
19174         CFLAGS="${CFLAGS} -pthread"
19175   ;;
19176 openbsd)
19177         DISTVER=`uname -a |awk '{print $3}'`
19178         lld="qd"
19179         llu="qu"
19180         TAPEDRIVE="/dev/nrst0"
19181         PSCMD="ps -ax -o pid,command"
19182         PTHREAD_LIB="-pthread"
19183         CFLAGS="${CFLAGS} -pthread"
19184         PFILES="${PFILES} \
19185             platforms/openbsd/Makefile \
19186             platforms/openbsd/bacula-fd \
19187             platforms/openbsd/bacula-sd \
19188             platforms/openbsd/bacula-dir"
19189   ;;
19190 redhat)
19191         if test -f /etc/whitebox-release ; then
19192            f=/etc/whitebox-release
19193         else
19194            f=/etc/redhat-release
19195         fi
19196         if test `cat $f | grep release |\
19197                    cut -f 3 -d ' '`x = "Enterprise"x ; then
19198            DISTVER="Enterprise "`cat $f | grep release |\
19199                     cut -f 6 -d ' '`
19200         else
19201             DISTVER=`cat /etc/redhat-release | grep release |\
19202                      cut -f 5 -d ' '`
19203         fi
19204         TAPEDRIVE="/dev/nst0"
19205         PSCMD="ps -e -o pid,command"
19206         PFILES="${PFILES} \
19207             platforms/redhat/Makefile \
19208             platforms/redhat/bacula-fd \
19209             platforms/redhat/bacula-sd \
19210             platforms/redhat/bacula-dir \
19211             platforms/redhat/bacula.spec \
19212             "
19213         hostname=`hostname -s`
19214   ;;
19215 mandrake)
19216         DISTVER=`cat /etc/mandrake-release | grep release |\
19217            cut -f 5 -d ' '`
19218         TAPEDRIVE="/dev/nst0"
19219         PSCMD="ps -e -o pid,command"
19220         PFILES="${PFILES} \
19221             platforms/mandrake/Makefile \
19222             platforms/mandrake/bacula-fd \
19223             platforms/mandrake/bacula-sd \
19224             platforms/mandrake/bacula-dir \
19225             platforms/mandrake/bacula.spec \
19226             "
19227   ;;
19228 gentoo)
19229         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19230         TAPEDRIVE="/dev/nst0"
19231         PSCMD="ps -e -o pid,command"
19232         PFILES="${PFILES} \
19233             platforms/gentoo/Makefile \
19234          platforms/gentoo/bacula-init \
19235             platforms/gentoo/bacula-fd \
19236             platforms/gentoo/bacula-sd \
19237             platforms/gentoo/bacula-dir"
19238   ;;
19239 slackware)
19240         DISTVER=`cat /etc/slackware-version`
19241         TAPEDRIVE="/dev/nst0"
19242         PSCMD="ps -e -o pid,command"
19243         PFILES="${PFILES} \
19244             platforms/slackware/Makefile \
19245             platforms/slackware/rc.bacula-fd \
19246             platforms/slackware/rc.bacula-sd \
19247             platforms/slackware/rc.bacula-dir\
19248             platforms/slackware/functions.bacula"
19249   ;;
19250 solaris)
19251         DISTVER=`uname -r`
19252         TAPEDRIVE="/dev/rmt/0cbn"
19253         PSCMD="ps -e -o pid,comm"
19254         PFILES="${PFILES} \
19255             platforms/solaris/Makefile \
19256             platforms/solaris/bacula-fd \
19257             platforms/solaris/bacula-sd \
19258             platforms/solaris/bacula-dir"
19259         if test x$DISTVER = x5.6 ; then
19260             cat >>confdefs.h <<\_ACEOF
19261 #define HAVE_OLD_SOCKOPT 1
19262 _ACEOF
19263
19264         fi
19265   ;;
19266 suse)
19267         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19268             cut -f 3 -d ' '`
19269         TAPEDRIVE="/dev/nst0"
19270         PSCMD="ps -e -o pid,command"
19271         PFILES="${PFILES} \
19272             platforms/suse/Makefile \
19273             platforms/suse/bacula-fd \
19274             platforms/suse/bacula-sd \
19275             platforms/suse/bacula-dir \
19276             platforms/suse/bacula \
19277             platforms/suse/bacula.spec"
19278   ;;
19279 suse5)
19280         DISTNAME=suse
19281         DISTVER=5.x
19282         TAPEDRIVE="/dev/nst0"
19283         PSCMD="ps -e -o pid,command"
19284         PFILES="${PFILES} \
19285             platforms/suse/Makefile \
19286             platforms/suse/bacula-fd \
19287             platforms/suse/bacula-sd \
19288             platforms/suse/bacula-dir"
19289   ;;
19290 unknown)
19291         DISTVER=unknown
19292         TAPEDRIVE="/dev/nst0"
19293   ;;
19294 *)
19295   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19296   ;;
19297 esac
19298
19299
19300
19301 LIBS="$PTHREAD_LIB $LIBS"
19302
19303 cat >>confdefs.h <<_ACEOF
19304 #define lld "$lld"
19305 _ACEOF
19306
19307 cat >>confdefs.h <<_ACEOF
19308 #define llu "$llu"
19309 _ACEOF
19310
19311
19312
19313
19314
19315
19316
19317
19318 MCOMMON=./autoconf/Make.common
19319
19320
19321 if test "x${subsysdir}" = "x${sbindir}" ; then
19322    echo " "
19323    echo " "
19324    echo "You have set both --sbindir and --with-subsys-dir"
19325    echo "  equal to: ${subsysdir} "
19326    echo "This is not permitted. Please reconfigure."
19327    echo " "
19328    echo "Aborting configuration ..."
19329    echo " "
19330    echo " "
19331    exit 1
19332 fi
19333
19334                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/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 scripts/bacula-tray-monitor.desktop 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 src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
19335           ac_config_commands="$ac_config_commands default"
19336 cat >confcache <<\_ACEOF
19337 # This file is a shell script that caches the results of configure
19338 # tests run on this system so they can be shared between configure
19339 # scripts and configure runs, see configure's option --config-cache.
19340 # It is not useful on other systems.  If it contains results you don't
19341 # want to keep, you may remove or edit it.
19342 #
19343 # config.status only pays attention to the cache file if you give it
19344 # the --recheck option to rerun configure.
19345 #
19346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19348 # following values.
19349
19350 _ACEOF
19351
19352 # The following way of writing the cache mishandles newlines in values,
19353 # but we know of no workaround that is simple, portable, and efficient.
19354 # So, don't put newlines in cache variables' values.
19355 # Ultrix sh set writes to stderr and can't be redirected directly,
19356 # and sets the high bit in the cache file unless we assign to the vars.
19357 {
19358   (set) 2>&1 |
19359     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19360     *ac_space=\ *)
19361       # `set' does not quote correctly, so add quotes (double-quote
19362       # substitution turns \\\\ into \\, and sed turns \\ into \).
19363       sed -n \
19364         "s/'/'\\\\''/g;
19365           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19366       ;;
19367     *)
19368       # `set' quotes correctly as required by POSIX, so do not add quotes.
19369       sed -n \
19370         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19371       ;;
19372     esac;
19373 } |
19374   sed '
19375      t clear
19376      : clear
19377      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19378      t end
19379      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19380      : end' >>confcache
19381 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19382   if test -w $cache_file; then
19383     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19384     cat confcache >$cache_file
19385   else
19386     echo "not updating unwritable cache $cache_file"
19387   fi
19388 fi
19389 rm -f confcache
19390
19391 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19392 # Let make expand exec_prefix.
19393 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19394
19395 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19396 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19397 # trailing colons and then remove the whole line if VPATH becomes empty
19398 # (actually we leave an empty line to preserve line numbers).
19399 if test "x$srcdir" = x.; then
19400   ac_vpsub='/^[         ]*VPATH[        ]*=/{
19401 s/:*\$(srcdir):*/:/;
19402 s/:*\${srcdir}:*/:/;
19403 s/:*@srcdir@:*/:/;
19404 s/^\([^=]*=[    ]*\):*/\1/;
19405 s/:*$//;
19406 s/^[^=]*=[      ]*$//;
19407 }'
19408 fi
19409
19410 DEFS=-DHAVE_CONFIG_H
19411
19412 ac_libobjs=
19413 ac_ltlibobjs=
19414 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19415   # 1. Remove the extension, and $U if already installed.
19416   ac_i=`echo "$ac_i" |
19417          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19418   # 2. Add them.
19419   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19420   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19421 done
19422 LIBOBJS=$ac_libobjs
19423
19424 LTLIBOBJS=$ac_ltlibobjs
19425
19426
19427
19428 : ${CONFIG_STATUS=./config.status}
19429 ac_clean_files_save=$ac_clean_files
19430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19431 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19432 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19433 cat >$CONFIG_STATUS <<_ACEOF
19434 #! $SHELL
19435 # Generated by $as_me.
19436 # Run this file to recreate the current configuration.
19437 # Compiler output produced by configure, useful for debugging
19438 # configure, is in config.log if it exists.
19439
19440 debug=false
19441 ac_cs_recheck=false
19442 ac_cs_silent=false
19443 SHELL=\${CONFIG_SHELL-$SHELL}
19444 _ACEOF
19445
19446 cat >>$CONFIG_STATUS <<\_ACEOF
19447 ## --------------------- ##
19448 ## M4sh Initialization.  ##
19449 ## --------------------- ##
19450
19451 # Be Bourne compatible
19452 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19453   emulate sh
19454   NULLCMD=:
19455   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19456   # is contrary to our usage.  Disable this feature.
19457   alias -g '${1+"$@"}'='"$@"'
19458 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19459   set -o posix
19460 fi
19461
19462 # Support unset when possible.
19463 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19464   as_unset=unset
19465 else
19466   as_unset=false
19467 fi
19468
19469
19470 # Work around bugs in pre-3.0 UWIN ksh.
19471 $as_unset ENV MAIL MAILPATH
19472 PS1='$ '
19473 PS2='> '
19474 PS4='+ '
19475
19476 # NLS nuisances.
19477 for as_var in \
19478   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19479   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19480   LC_TELEPHONE LC_TIME
19481 do
19482   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19483     eval $as_var=C; export $as_var
19484   else
19485     $as_unset $as_var
19486   fi
19487 done
19488
19489 # Required to use basename.
19490 if expr a : '\(a\)' >/dev/null 2>&1; then
19491   as_expr=expr
19492 else
19493   as_expr=false
19494 fi
19495
19496 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19497   as_basename=basename
19498 else
19499   as_basename=false
19500 fi
19501
19502
19503 # Name of the executable.
19504 as_me=`$as_basename "$0" ||
19505 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19506          X"$0" : 'X\(//\)$' \| \
19507          X"$0" : 'X\(/\)$' \| \
19508          .     : '\(.\)' 2>/dev/null ||
19509 echo X/"$0" |
19510     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19511           /^X\/\(\/\/\)$/{ s//\1/; q; }
19512           /^X\/\(\/\).*/{ s//\1/; q; }
19513           s/.*/./; q'`
19514
19515
19516 # PATH needs CR, and LINENO needs CR and PATH.
19517 # Avoid depending upon Character Ranges.
19518 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19519 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19520 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19521 as_cr_digits='0123456789'
19522 as_cr_alnum=$as_cr_Letters$as_cr_digits
19523
19524 # The user is always right.
19525 if test "${PATH_SEPARATOR+set}" != set; then
19526   echo "#! /bin/sh" >conf$$.sh
19527   echo  "exit 0"   >>conf$$.sh
19528   chmod +x conf$$.sh
19529   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19530     PATH_SEPARATOR=';'
19531   else
19532     PATH_SEPARATOR=:
19533   fi
19534   rm -f conf$$.sh
19535 fi
19536
19537
19538   as_lineno_1=$LINENO
19539   as_lineno_2=$LINENO
19540   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19541   test "x$as_lineno_1" != "x$as_lineno_2" &&
19542   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19543   # Find who we are.  Look in the path if we contain no path at all
19544   # relative or not.
19545   case $0 in
19546     *[\\/]* ) as_myself=$0 ;;
19547     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19548 for as_dir in $PATH
19549 do
19550   IFS=$as_save_IFS
19551   test -z "$as_dir" && as_dir=.
19552   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19553 done
19554
19555        ;;
19556   esac
19557   # We did not find ourselves, most probably we were run as `sh COMMAND'
19558   # in which case we are not to be found in the path.
19559   if test "x$as_myself" = x; then
19560     as_myself=$0
19561   fi
19562   if test ! -f "$as_myself"; then
19563     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19564 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19565    { (exit 1); exit 1; }; }
19566   fi
19567   case $CONFIG_SHELL in
19568   '')
19569     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19570 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19571 do
19572   IFS=$as_save_IFS
19573   test -z "$as_dir" && as_dir=.
19574   for as_base in sh bash ksh sh5; do
19575          case $as_dir in
19576          /*)
19577            if ("$as_dir/$as_base" -c '
19578   as_lineno_1=$LINENO
19579   as_lineno_2=$LINENO
19580   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19581   test "x$as_lineno_1" != "x$as_lineno_2" &&
19582   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19583              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19584              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19585              CONFIG_SHELL=$as_dir/$as_base
19586              export CONFIG_SHELL
19587              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19588            fi;;
19589          esac
19590        done
19591 done
19592 ;;
19593   esac
19594
19595   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19596   # uniformly replaced by the line number.  The first 'sed' inserts a
19597   # line-number line before each line; the second 'sed' does the real
19598   # work.  The second script uses 'N' to pair each line-number line
19599   # with the numbered line, and appends trailing '-' during
19600   # substitution so that $LINENO is not a special case at line end.
19601   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19602   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19603   sed '=' <$as_myself |
19604     sed '
19605       N
19606       s,$,-,
19607       : loop
19608       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19609       t loop
19610       s,-$,,
19611       s,^['$as_cr_digits']*\n,,
19612     ' >$as_me.lineno &&
19613   chmod +x $as_me.lineno ||
19614     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19615 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19616    { (exit 1); exit 1; }; }
19617
19618   # Don't try to exec as it changes $[0], causing all sort of problems
19619   # (the dirname of $[0] is not the place where we might find the
19620   # original and so on.  Autoconf is especially sensible to this).
19621   . ./$as_me.lineno
19622   # Exit status is that of the last command.
19623   exit
19624 }
19625
19626
19627 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19628   *c*,-n*) ECHO_N= ECHO_C='
19629 ' ECHO_T='      ' ;;
19630   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19631   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19632 esac
19633
19634 if expr a : '\(a\)' >/dev/null 2>&1; then
19635   as_expr=expr
19636 else
19637   as_expr=false
19638 fi
19639
19640 rm -f conf$$ conf$$.exe conf$$.file
19641 echo >conf$$.file
19642 if ln -s conf$$.file conf$$ 2>/dev/null; then
19643   # We could just check for DJGPP; but this test a) works b) is more generic
19644   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19645   if test -f conf$$.exe; then
19646     # Don't use ln at all; we don't have any links
19647     as_ln_s='cp -p'
19648   else
19649     as_ln_s='ln -s'
19650   fi
19651 elif ln conf$$.file conf$$ 2>/dev/null; then
19652   as_ln_s=ln
19653 else
19654   as_ln_s='cp -p'
19655 fi
19656 rm -f conf$$ conf$$.exe conf$$.file
19657
19658 if mkdir -p . 2>/dev/null; then
19659   as_mkdir_p=:
19660 else
19661   as_mkdir_p=false
19662 fi
19663
19664 as_executable_p="test -f"
19665
19666 # Sed expression to map a string onto a valid CPP name.
19667 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19668
19669 # Sed expression to map a string onto a valid variable name.
19670 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19671
19672
19673 # IFS
19674 # We need space, tab and new line, in precisely that order.
19675 as_nl='
19676 '
19677 IFS="   $as_nl"
19678
19679 # CDPATH.
19680 $as_unset CDPATH
19681
19682 exec 6>&1
19683
19684 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19685 # report actual input values of CONFIG_FILES etc. instead of their
19686 # values after options handling.  Logging --version etc. is OK.
19687 exec 5>>config.log
19688 {
19689   echo
19690   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19691 ## Running $as_me. ##
19692 _ASBOX
19693 } >&5
19694 cat >&5 <<_CSEOF
19695
19696 This file was extended by $as_me, which was
19697 generated by GNU Autoconf 2.57.  Invocation command line was
19698
19699   CONFIG_FILES    = $CONFIG_FILES
19700   CONFIG_HEADERS  = $CONFIG_HEADERS
19701   CONFIG_LINKS    = $CONFIG_LINKS
19702   CONFIG_COMMANDS = $CONFIG_COMMANDS
19703   $ $0 $@
19704
19705 _CSEOF
19706 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19707 echo >&5
19708 _ACEOF
19709
19710 # Files that config.status was made for.
19711 if test -n "$ac_config_files"; then
19712   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19713 fi
19714
19715 if test -n "$ac_config_headers"; then
19716   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19717 fi
19718
19719 if test -n "$ac_config_links"; then
19720   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19721 fi
19722
19723 if test -n "$ac_config_commands"; then
19724   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19725 fi
19726
19727 cat >>$CONFIG_STATUS <<\_ACEOF
19728
19729 ac_cs_usage="\
19730 \`$as_me' instantiates files from templates according to the
19731 current configuration.
19732
19733 Usage: $0 [OPTIONS] [FILE]...
19734
19735   -h, --help       print this help, then exit
19736   -V, --version    print version number, then exit
19737   -q, --quiet      do not print progress messages
19738   -d, --debug      don't remove temporary files
19739       --recheck    update $as_me by reconfiguring in the same conditions
19740   --file=FILE[:TEMPLATE]
19741                    instantiate the configuration file FILE
19742   --header=FILE[:TEMPLATE]
19743                    instantiate the configuration header FILE
19744
19745 Configuration files:
19746 $config_files
19747
19748 Configuration headers:
19749 $config_headers
19750
19751 Configuration commands:
19752 $config_commands
19753
19754 Report bugs to <bug-autoconf@gnu.org>."
19755 _ACEOF
19756
19757 cat >>$CONFIG_STATUS <<_ACEOF
19758 ac_cs_version="\\
19759 config.status
19760 configured by $0, generated by GNU Autoconf 2.57,
19761   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19762
19763 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19764 Free Software Foundation, Inc.
19765 This config.status script is free software; the Free Software Foundation
19766 gives unlimited permission to copy, distribute and modify it."
19767 srcdir=$srcdir
19768 INSTALL="$INSTALL"
19769 _ACEOF
19770
19771 cat >>$CONFIG_STATUS <<\_ACEOF
19772 # If no file are specified by the user, then we need to provide default
19773 # value.  By we need to know if files were specified by the user.
19774 ac_need_defaults=:
19775 while test $# != 0
19776 do
19777   case $1 in
19778   --*=*)
19779     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19780     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19781     ac_shift=:
19782     ;;
19783   -*)
19784     ac_option=$1
19785     ac_optarg=$2
19786     ac_shift=shift
19787     ;;
19788   *) # This is not an option, so the user has probably given explicit
19789      # arguments.
19790      ac_option=$1
19791      ac_need_defaults=false;;
19792   esac
19793
19794   case $ac_option in
19795   # Handling of the options.
19796 _ACEOF
19797 cat >>$CONFIG_STATUS <<\_ACEOF
19798   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19799     ac_cs_recheck=: ;;
19800   --version | --vers* | -V )
19801     echo "$ac_cs_version"; exit 0 ;;
19802   --he | --h)
19803     # Conflict between --help and --header
19804     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19805 Try \`$0 --help' for more information." >&5
19806 echo "$as_me: error: ambiguous option: $1
19807 Try \`$0 --help' for more information." >&2;}
19808    { (exit 1); exit 1; }; };;
19809   --help | --hel | -h )
19810     echo "$ac_cs_usage"; exit 0 ;;
19811   --debug | --d* | -d )
19812     debug=: ;;
19813   --file | --fil | --fi | --f )
19814     $ac_shift
19815     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19816     ac_need_defaults=false;;
19817   --header | --heade | --head | --hea )
19818     $ac_shift
19819     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19820     ac_need_defaults=false;;
19821   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19822   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19823     ac_cs_silent=: ;;
19824
19825   # This is an error.
19826   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19827 Try \`$0 --help' for more information." >&5
19828 echo "$as_me: error: unrecognized option: $1
19829 Try \`$0 --help' for more information." >&2;}
19830    { (exit 1); exit 1; }; } ;;
19831
19832   *) ac_config_targets="$ac_config_targets $1" ;;
19833
19834   esac
19835   shift
19836 done
19837
19838 ac_configure_extra_args=
19839
19840 if $ac_cs_silent; then
19841   exec 6>/dev/null
19842   ac_configure_extra_args="$ac_configure_extra_args --silent"
19843 fi
19844
19845 _ACEOF
19846 cat >>$CONFIG_STATUS <<_ACEOF
19847 if \$ac_cs_recheck; then
19848   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19849   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19850 fi
19851
19852 _ACEOF
19853
19854
19855
19856
19857
19858 cat >>$CONFIG_STATUS <<\_ACEOF
19859 for ac_config_target in $ac_config_targets
19860 do
19861   case "$ac_config_target" in
19862   # Handling of arguments.
19863   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19864   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19865   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19866   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19867   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19868   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19869   "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
19870   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19871   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19872   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19873   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19874   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19875   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19876   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19877   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19878   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19879   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19880   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19881   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19882   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19883   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19884   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19885   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19886   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19887   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19888   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19889   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19890   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19891   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
19892   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19893   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19894   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19895   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19896   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19897   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19898   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19899   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19900   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19901   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19902   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19903   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19904   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19905   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19906   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19907   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19908   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19909   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19910   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19911   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19912   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19913   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19914   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19915   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19916   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19917   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19918   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19919   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19920   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19921   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19922   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19923   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19924   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19925   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19926   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19927   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19928   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19929   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19930   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19931   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19932   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19933   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19934   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19935   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19936   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19937   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19938   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19939   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19940   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19941   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19942   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19943   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19944   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19945   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19946   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19947   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19948   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19949   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19950   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19951   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19952   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19953   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19954   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19955   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
19956   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
19957   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
19958   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19959   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19960   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19961   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19962 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19963    { (exit 1); exit 1; }; };;
19964   esac
19965 done
19966
19967 # If the user did not use the arguments to specify the items to instantiate,
19968 # then the envvar interface is used.  Set only those that are not.
19969 # We use the long form for the default assignment because of an extremely
19970 # bizarre bug on SunOS 4.1.3.
19971 if $ac_need_defaults; then
19972   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19973   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19974   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19975 fi
19976
19977 # Have a temporary directory for convenience.  Make it in the build tree
19978 # simply because there is no reason to put it here, and in addition,
19979 # creating and moving files from /tmp can sometimes cause problems.
19980 # Create a temporary directory, and hook for its removal unless debugging.
19981 $debug ||
19982 {
19983   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19984   trap '{ (exit 1); exit 1; }' 1 2 13 15
19985 }
19986
19987 # Create a (secure) tmp directory for tmp files.
19988
19989 {
19990   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19991   test -n "$tmp" && test -d "$tmp"
19992 }  ||
19993 {
19994   tmp=./confstat$$-$RANDOM
19995   (umask 077 && mkdir $tmp)
19996 } ||
19997 {
19998    echo "$me: cannot create a temporary directory in ." >&2
19999    { (exit 1); exit 1; }
20000 }
20001
20002 _ACEOF
20003
20004 cat >>$CONFIG_STATUS <<_ACEOF
20005
20006 #
20007 # CONFIG_FILES section.
20008 #
20009
20010 # No need to generate the scripts if there are no CONFIG_FILES.
20011 # This happens for instance when ./config.status config.h
20012 if test -n "\$CONFIG_FILES"; then
20013   # Protect against being on the right side of a sed subst in config.status.
20014   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20015    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20016 s,@SHELL@,$SHELL,;t t
20017 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20018 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20019 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20020 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20021 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20022 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20023 s,@exec_prefix@,$exec_prefix,;t t
20024 s,@prefix@,$prefix,;t t
20025 s,@program_transform_name@,$program_transform_name,;t t
20026 s,@bindir@,$bindir,;t t
20027 s,@sbindir@,$sbindir,;t t
20028 s,@libexecdir@,$libexecdir,;t t
20029 s,@datadir@,$datadir,;t t
20030 s,@sysconfdir@,$sysconfdir,;t t
20031 s,@sharedstatedir@,$sharedstatedir,;t t
20032 s,@localstatedir@,$localstatedir,;t t
20033 s,@libdir@,$libdir,;t t
20034 s,@includedir@,$includedir,;t t
20035 s,@oldincludedir@,$oldincludedir,;t t
20036 s,@infodir@,$infodir,;t t
20037 s,@mandir@,$mandir,;t t
20038 s,@build_alias@,$build_alias,;t t
20039 s,@host_alias@,$host_alias,;t t
20040 s,@target_alias@,$target_alias,;t t
20041 s,@DEFS@,$DEFS,;t t
20042 s,@ECHO_C@,$ECHO_C,;t t
20043 s,@ECHO_N@,$ECHO_N,;t t
20044 s,@ECHO_T@,$ECHO_T,;t t
20045 s,@LIBS@,$LIBS,;t t
20046 s,@BUILD_DIR@,$BUILD_DIR,;t t
20047 s,@TRUEPRG@,$TRUEPRG,;t t
20048 s,@FALSEPRG@,$FALSEPRG,;t t
20049 s,@VERSION@,$VERSION,;t t
20050 s,@DATE@,$DATE,;t t
20051 s,@LSMDATE@,$LSMDATE,;t t
20052 s,@CC@,$CC,;t t
20053 s,@CFLAGS@,$CFLAGS,;t t
20054 s,@LDFLAGS@,$LDFLAGS,;t t
20055 s,@CPPFLAGS@,$CPPFLAGS,;t t
20056 s,@ac_ct_CC@,$ac_ct_CC,;t t
20057 s,@EXEEXT@,$EXEEXT,;t t
20058 s,@OBJEXT@,$OBJEXT,;t t
20059 s,@CXX@,$CXX,;t t
20060 s,@CXXFLAGS@,$CXXFLAGS,;t t
20061 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20062 s,@CPP@,$CPP,;t t
20063 s,@EGREP@,$EGREP,;t t
20064 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20065 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20066 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20067 s,@RANLIB@,$RANLIB,;t t
20068 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20069 s,@MV@,$MV,;t t
20070 s,@RM@,$RM,;t t
20071 s,@CP@,$CP,;t t
20072 s,@SED@,$SED,;t t
20073 s,@AWK@,$AWK,;t t
20074 s,@ECHO@,$ECHO,;t t
20075 s,@CMP@,$CMP,;t t
20076 s,@TBL@,$TBL,;t t
20077 s,@AR@,$AR,;t t
20078 s,@OPENSSL@,$OPENSSL,;t t
20079 s,@MTX@,$MTX,;t t
20080 s,@PKGCONFIG@,$PKGCONFIG,;t t
20081 s,@WXCONFIG@,$WXCONFIG,;t t
20082 s,@CDRECORD@,$CDRECORD,;t t
20083 s,@PIDOF@,$PIDOF,;t t
20084 s,@ARFLAGS@,$ARFLAGS,;t t
20085 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
20086 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
20087 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
20088 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
20089 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
20090 s,@build@,$build,;t t
20091 s,@build_cpu@,$build_cpu,;t t
20092 s,@build_vendor@,$build_vendor,;t t
20093 s,@build_os@,$build_os,;t t
20094 s,@host@,$host,;t t
20095 s,@host_cpu@,$host_cpu,;t t
20096 s,@host_vendor@,$host_vendor,;t t
20097 s,@host_os@,$host_os,;t t
20098 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
20099 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
20100 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
20101 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
20102 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
20103 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
20104 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
20105 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
20106 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
20107 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
20108 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
20109 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
20110 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
20111 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
20112 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
20113 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
20114 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
20115 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
20116 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
20117 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
20118 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
20119 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
20120 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
20121 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
20122 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
20123 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
20124 s,@MSGFMT@,$MSGFMT,;t t
20125 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
20126 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
20127 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
20128 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
20129 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
20130 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
20131 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
20132 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
20133 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
20134 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
20135 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
20136 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
20137 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
20138 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
20139 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
20140 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
20141 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
20142 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
20143 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
20144 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
20145 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
20146 s,@GNOME_DIR@,$GNOME_DIR,;t t
20147 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
20148 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
20149 s,@WX_DIR@,$WX_DIR,;t t
20150 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
20151 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
20152 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
20153 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
20154 s,@STATIC_FD@,$STATIC_FD,;t t
20155 s,@STATIC_SD@,$STATIC_SD,;t t
20156 s,@STATIC_DIR@,$STATIC_DIR,;t t
20157 s,@STATIC_CONS@,$STATIC_CONS,;t t
20158 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
20159 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
20160 s,@ALL_DIRS@,$ALL_DIRS,;t t
20161 s,@CONS_INC@,$CONS_INC,;t t
20162 s,@CONS_OBJ@,$CONS_OBJ,;t t
20163 s,@CONS_SRC@,$CONS_SRC,;t t
20164 s,@CONS_LIBS@,$CONS_LIBS,;t t
20165 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
20166 s,@READLINE_SRC@,$READLINE_SRC,;t t
20167 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
20168 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
20169 s,@CDSTL@,$CDSTL,;t t
20170 s,@working_dir@,$working_dir,;t t
20171 s,@scriptdir@,$scriptdir,;t t
20172 s,@dump_email@,$dump_email,;t t
20173 s,@job_email@,$job_email,;t t
20174 s,@smtp_host@,$smtp_host,;t t
20175 s,@piddir@,$piddir,;t t
20176 s,@subsysdir@,$subsysdir,;t t
20177 s,@baseport@,$baseport,;t t
20178 s,@dir_port@,$dir_port,;t t
20179 s,@fd_port@,$fd_port,;t t
20180 s,@sd_port@,$sd_port,;t t
20181 s,@dir_password@,$dir_password,;t t
20182 s,@fd_password@,$fd_password,;t t
20183 s,@sd_password@,$sd_password,;t t
20184 s,@mon_dir_password@,$mon_dir_password,;t t
20185 s,@mon_fd_password@,$mon_fd_password,;t t
20186 s,@mon_sd_password@,$mon_sd_password,;t t
20187 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
20188 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
20189 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
20190 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
20191 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
20192 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
20193 s,@dir_user@,$dir_user,;t t
20194 s,@dir_group@,$dir_group,;t t
20195 s,@sd_user@,$sd_user,;t t
20196 s,@sd_group@,$sd_group,;t t
20197 s,@fd_user@,$fd_user,;t t
20198 s,@fd_group@,$fd_group,;t t
20199 s,@SBINPERM@,$SBINPERM,;t t
20200 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
20201 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
20202 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
20203 s,@cats@,$cats,;t t
20204 s,@DB_NAME@,$DB_NAME,;t t
20205 s,@GETCONF@,$GETCONF,;t t
20206 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20207 s,@X_CFLAGS@,$X_CFLAGS,;t t
20208 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20209 s,@X_LIBS@,$X_LIBS,;t t
20210 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20211 s,@LIBOBJS@,$LIBOBJS,;t t
20212 s,@ALLOCA@,$ALLOCA,;t t
20213 s,@FDLIBS@,$FDLIBS,;t t
20214 s,@DEBUG@,$DEBUG,;t t
20215 s,@DINCLUDE@,$DINCLUDE,;t t
20216 s,@DLIB@,$DLIB,;t t
20217 s,@DB_LIBS@,$DB_LIBS,;t t
20218 s,@WCFLAGS@,$WCFLAGS,;t t
20219 s,@WLDFLAGS@,$WLDFLAGS,;t t
20220 s,@OBJLIST@,$OBJLIST,;t t
20221 s,@hostname@,$hostname,;t t
20222 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20223 s,@PSCMD@,$PSCMD,;t t
20224 s,@WIN32@,$WIN32,;t t
20225 s,@MACOSX@,$MACOSX,;t t
20226 s,@DISTNAME@,$DISTNAME,;t t
20227 s,@DISTVER@,$DISTVER,;t t
20228 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20229 /@MCOMMON@/r $MCOMMON
20230 s,@MCOMMON@,,;t t
20231 CEOF
20232
20233 _ACEOF
20234
20235   cat >>$CONFIG_STATUS <<\_ACEOF
20236   # Split the substitutions into bite-sized pieces for seds with
20237   # small command number limits, like on Digital OSF/1 and HP-UX.
20238   ac_max_sed_lines=48
20239   ac_sed_frag=1 # Number of current file.
20240   ac_beg=1 # First line for current file.
20241   ac_end=$ac_max_sed_lines # Line after last line for current file.
20242   ac_more_lines=:
20243   ac_sed_cmds=
20244   while $ac_more_lines; do
20245     if test $ac_beg -gt 1; then
20246       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20247     else
20248       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20249     fi
20250     if test ! -s $tmp/subs.frag; then
20251       ac_more_lines=false
20252     else
20253       # The purpose of the label and of the branching condition is to
20254       # speed up the sed processing (if there are no `@' at all, there
20255       # is no need to browse any of the substitutions).
20256       # These are the two extra sed commands mentioned above.
20257       (echo ':t
20258   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20259       if test -z "$ac_sed_cmds"; then
20260         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20261       else
20262         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20263       fi
20264       ac_sed_frag=`expr $ac_sed_frag + 1`
20265       ac_beg=$ac_end
20266       ac_end=`expr $ac_end + $ac_max_sed_lines`
20267     fi
20268   done
20269   if test -z "$ac_sed_cmds"; then
20270     ac_sed_cmds=cat
20271   fi
20272 fi # test -n "$CONFIG_FILES"
20273
20274 _ACEOF
20275 cat >>$CONFIG_STATUS <<\_ACEOF
20276 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20277   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20278   case $ac_file in
20279   - | *:- | *:-:* ) # input from stdin
20280         cat >$tmp/stdin
20281         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20282         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20283   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20284         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20285   * )   ac_file_in=$ac_file.in ;;
20286   esac
20287
20288   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20289   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20291          X"$ac_file" : 'X\(//\)[^/]' \| \
20292          X"$ac_file" : 'X\(//\)$' \| \
20293          X"$ac_file" : 'X\(/\)' \| \
20294          .     : '\(.\)' 2>/dev/null ||
20295 echo X"$ac_file" |
20296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20297           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20298           /^X\(\/\/\)$/{ s//\1/; q; }
20299           /^X\(\/\).*/{ s//\1/; q; }
20300           s/.*/./; q'`
20301   { if $as_mkdir_p; then
20302     mkdir -p "$ac_dir"
20303   else
20304     as_dir="$ac_dir"
20305     as_dirs=
20306     while test ! -d "$as_dir"; do
20307       as_dirs="$as_dir $as_dirs"
20308       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20310          X"$as_dir" : 'X\(//\)[^/]' \| \
20311          X"$as_dir" : 'X\(//\)$' \| \
20312          X"$as_dir" : 'X\(/\)' \| \
20313          .     : '\(.\)' 2>/dev/null ||
20314 echo X"$as_dir" |
20315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20316           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20317           /^X\(\/\/\)$/{ s//\1/; q; }
20318           /^X\(\/\).*/{ s//\1/; q; }
20319           s/.*/./; q'`
20320     done
20321     test ! -n "$as_dirs" || mkdir $as_dirs
20322   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20323 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20324    { (exit 1); exit 1; }; }; }
20325
20326   ac_builddir=.
20327
20328 if test "$ac_dir" != .; then
20329   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20330   # A "../" for each directory in $ac_dir_suffix.
20331   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20332 else
20333   ac_dir_suffix= ac_top_builddir=
20334 fi
20335
20336 case $srcdir in
20337   .)  # No --srcdir option.  We are building in place.
20338     ac_srcdir=.
20339     if test -z "$ac_top_builddir"; then
20340        ac_top_srcdir=.
20341     else
20342        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20343     fi ;;
20344   [\\/]* | ?:[\\/]* )  # Absolute path.
20345     ac_srcdir=$srcdir$ac_dir_suffix;
20346     ac_top_srcdir=$srcdir ;;
20347   *) # Relative path.
20348     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20349     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20350 esac
20351 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20352 # absolute.
20353 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20354 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20355 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20356 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20357
20358
20359   case $INSTALL in
20360   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20361   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20362   esac
20363
20364   if test x"$ac_file" != x-; then
20365     { echo "$as_me:$LINENO: creating $ac_file" >&5
20366 echo "$as_me: creating $ac_file" >&6;}
20367     rm -f "$ac_file"
20368   fi
20369   # Let's still pretend it is `configure' which instantiates (i.e., don't
20370   # use $as_me), people would be surprised to read:
20371   #    /* config.h.  Generated by config.status.  */
20372   if test x"$ac_file" = x-; then
20373     configure_input=
20374   else
20375     configure_input="$ac_file.  "
20376   fi
20377   configure_input=$configure_input"Generated from `echo $ac_file_in |
20378                                      sed 's,.*/,,'` by configure."
20379
20380   # First look for the input files in the build tree, otherwise in the
20381   # src tree.
20382   ac_file_inputs=`IFS=:
20383     for f in $ac_file_in; do
20384       case $f in
20385       -) echo $tmp/stdin ;;
20386       [\\/$]*)
20387          # Absolute (can't be DOS-style, as IFS=:)
20388          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20389 echo "$as_me: error: cannot find input file: $f" >&2;}
20390    { (exit 1); exit 1; }; }
20391          echo $f;;
20392       *) # Relative
20393          if test -f "$f"; then
20394            # Build tree
20395            echo $f
20396          elif test -f "$srcdir/$f"; then
20397            # Source tree
20398            echo $srcdir/$f
20399          else
20400            # /dev/null tree
20401            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20402 echo "$as_me: error: cannot find input file: $f" >&2;}
20403    { (exit 1); exit 1; }; }
20404          fi;;
20405       esac
20406     done` || { (exit 1); exit 1; }
20407 _ACEOF
20408 cat >>$CONFIG_STATUS <<_ACEOF
20409   sed "$ac_vpsub
20410 $extrasub
20411 _ACEOF
20412 cat >>$CONFIG_STATUS <<\_ACEOF
20413 :t
20414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20415 s,@configure_input@,$configure_input,;t t
20416 s,@srcdir@,$ac_srcdir,;t t
20417 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20418 s,@top_srcdir@,$ac_top_srcdir,;t t
20419 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20420 s,@builddir@,$ac_builddir,;t t
20421 s,@abs_builddir@,$ac_abs_builddir,;t t
20422 s,@top_builddir@,$ac_top_builddir,;t t
20423 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20424 s,@INSTALL@,$ac_INSTALL,;t t
20425 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20426   rm -f $tmp/stdin
20427   if test x"$ac_file" != x-; then
20428     mv $tmp/out $ac_file
20429   else
20430     cat $tmp/out
20431     rm -f $tmp/out
20432   fi
20433
20434 done
20435 _ACEOF
20436 cat >>$CONFIG_STATUS <<\_ACEOF
20437
20438 #
20439 # CONFIG_HEADER section.
20440 #
20441
20442 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20443 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20444 #
20445 # ac_d sets the value in "#define NAME VALUE" lines.
20446 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20447 ac_dB='[        ].*$,\1#\2'
20448 ac_dC=' '
20449 ac_dD=',;t'
20450 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20451 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20452 ac_uB='$,\1#\2define\3'
20453 ac_uC=' '
20454 ac_uD=',;t'
20455
20456 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20457   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20458   case $ac_file in
20459   - | *:- | *:-:* ) # input from stdin
20460         cat >$tmp/stdin
20461         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20462         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20463   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20464         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20465   * )   ac_file_in=$ac_file.in ;;
20466   esac
20467
20468   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20469 echo "$as_me: creating $ac_file" >&6;}
20470
20471   # First look for the input files in the build tree, otherwise in the
20472   # src tree.
20473   ac_file_inputs=`IFS=:
20474     for f in $ac_file_in; do
20475       case $f in
20476       -) echo $tmp/stdin ;;
20477       [\\/$]*)
20478          # Absolute (can't be DOS-style, as IFS=:)
20479          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20480 echo "$as_me: error: cannot find input file: $f" >&2;}
20481    { (exit 1); exit 1; }; }
20482          echo $f;;
20483       *) # Relative
20484          if test -f "$f"; then
20485            # Build tree
20486            echo $f
20487          elif test -f "$srcdir/$f"; then
20488            # Source tree
20489            echo $srcdir/$f
20490          else
20491            # /dev/null tree
20492            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20493 echo "$as_me: error: cannot find input file: $f" >&2;}
20494    { (exit 1); exit 1; }; }
20495          fi;;
20496       esac
20497     done` || { (exit 1); exit 1; }
20498   # Remove the trailing spaces.
20499   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20500
20501 _ACEOF
20502
20503 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20504 # `conftest.undefs', that substitutes the proper values into
20505 # config.h.in to produce config.h.  The first handles `#define'
20506 # templates, and the second `#undef' templates.
20507 # And first: Protect against being on the right side of a sed subst in
20508 # config.status.  Protect against being in an unquoted here document
20509 # in config.status.
20510 rm -f conftest.defines conftest.undefs
20511 # Using a here document instead of a string reduces the quoting nightmare.
20512 # Putting comments in sed scripts is not portable.
20513 #
20514 # `end' is used to avoid that the second main sed command (meant for
20515 # 0-ary CPP macros) applies to n-ary macro definitions.
20516 # See the Autoconf documentation for `clear'.
20517 cat >confdef2sed.sed <<\_ACEOF
20518 s/[\\&,]/\\&/g
20519 s,[\\$`],\\&,g
20520 t clear
20521 : clear
20522 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20523 t end
20524 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20525 : end
20526 _ACEOF
20527 # If some macros were called several times there might be several times
20528 # the same #defines, which is useless.  Nevertheless, we may not want to
20529 # sort them, since we want the *last* AC-DEFINE to be honored.
20530 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20531 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20532 rm -f confdef2sed.sed
20533
20534 # This sed command replaces #undef with comments.  This is necessary, for
20535 # example, in the case of _POSIX_SOURCE, which is predefined and required
20536 # on some systems where configure will not decide to define it.
20537 cat >>conftest.undefs <<\_ACEOF
20538 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20539 _ACEOF
20540
20541 # Break up conftest.defines because some shells have a limit on the size
20542 # of here documents, and old seds have small limits too (100 cmds).
20543 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20544 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20545 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20546 echo '  :' >>$CONFIG_STATUS
20547 rm -f conftest.tail
20548 while grep . conftest.defines >/dev/null
20549 do
20550   # Write a limited-size here document to $tmp/defines.sed.
20551   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20552   # Speed up: don't consider the non `#define' lines.
20553   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20554   # Work around the forget-to-reset-the-flag bug.
20555   echo 't clr' >>$CONFIG_STATUS
20556   echo ': clr' >>$CONFIG_STATUS
20557   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20558   echo 'CEOF
20559   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20560   rm -f $tmp/in
20561   mv $tmp/out $tmp/in
20562 ' >>$CONFIG_STATUS
20563   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20564   rm -f conftest.defines
20565   mv conftest.tail conftest.defines
20566 done
20567 rm -f conftest.defines
20568 echo '  fi # grep' >>$CONFIG_STATUS
20569 echo >>$CONFIG_STATUS
20570
20571 # Break up conftest.undefs because some shells have a limit on the size
20572 # of here documents, and old seds have small limits too (100 cmds).
20573 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20574 rm -f conftest.tail
20575 while grep . conftest.undefs >/dev/null
20576 do
20577   # Write a limited-size here document to $tmp/undefs.sed.
20578   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20579   # Speed up: don't consider the non `#undef'
20580   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20581   # Work around the forget-to-reset-the-flag bug.
20582   echo 't clr' >>$CONFIG_STATUS
20583   echo ': clr' >>$CONFIG_STATUS
20584   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20585   echo 'CEOF
20586   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20587   rm -f $tmp/in
20588   mv $tmp/out $tmp/in
20589 ' >>$CONFIG_STATUS
20590   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20591   rm -f conftest.undefs
20592   mv conftest.tail conftest.undefs
20593 done
20594 rm -f conftest.undefs
20595
20596 cat >>$CONFIG_STATUS <<\_ACEOF
20597   # Let's still pretend it is `configure' which instantiates (i.e., don't
20598   # use $as_me), people would be surprised to read:
20599   #    /* config.h.  Generated by config.status.  */
20600   if test x"$ac_file" = x-; then
20601     echo "/* Generated by configure.  */" >$tmp/config.h
20602   else
20603     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20604   fi
20605   cat $tmp/in >>$tmp/config.h
20606   rm -f $tmp/in
20607   if test x"$ac_file" != x-; then
20608     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20609       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20610 echo "$as_me: $ac_file is unchanged" >&6;}
20611     else
20612       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20613 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20614          X"$ac_file" : 'X\(//\)[^/]' \| \
20615          X"$ac_file" : 'X\(//\)$' \| \
20616          X"$ac_file" : 'X\(/\)' \| \
20617          .     : '\(.\)' 2>/dev/null ||
20618 echo X"$ac_file" |
20619     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20620           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20621           /^X\(\/\/\)$/{ s//\1/; q; }
20622           /^X\(\/\).*/{ s//\1/; q; }
20623           s/.*/./; q'`
20624       { if $as_mkdir_p; then
20625     mkdir -p "$ac_dir"
20626   else
20627     as_dir="$ac_dir"
20628     as_dirs=
20629     while test ! -d "$as_dir"; do
20630       as_dirs="$as_dir $as_dirs"
20631       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20633          X"$as_dir" : 'X\(//\)[^/]' \| \
20634          X"$as_dir" : 'X\(//\)$' \| \
20635          X"$as_dir" : 'X\(/\)' \| \
20636          .     : '\(.\)' 2>/dev/null ||
20637 echo X"$as_dir" |
20638     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20639           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20640           /^X\(\/\/\)$/{ s//\1/; q; }
20641           /^X\(\/\).*/{ s//\1/; q; }
20642           s/.*/./; q'`
20643     done
20644     test ! -n "$as_dirs" || mkdir $as_dirs
20645   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20646 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20647    { (exit 1); exit 1; }; }; }
20648
20649       rm -f $ac_file
20650       mv $tmp/config.h $ac_file
20651     fi
20652   else
20653     cat $tmp/config.h
20654     rm -f $tmp/config.h
20655   fi
20656 done
20657 _ACEOF
20658 cat >>$CONFIG_STATUS <<\_ACEOF
20659
20660 #
20661 # CONFIG_COMMANDS section.
20662 #
20663 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20664   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20665   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20666   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20667 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20668          X"$ac_dest" : 'X\(//\)[^/]' \| \
20669          X"$ac_dest" : 'X\(//\)$' \| \
20670          X"$ac_dest" : 'X\(/\)' \| \
20671          .     : '\(.\)' 2>/dev/null ||
20672 echo X"$ac_dest" |
20673     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20674           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20675           /^X\(\/\/\)$/{ s//\1/; q; }
20676           /^X\(\/\).*/{ s//\1/; q; }
20677           s/.*/./; q'`
20678   ac_builddir=.
20679
20680 if test "$ac_dir" != .; then
20681   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20682   # A "../" for each directory in $ac_dir_suffix.
20683   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20684 else
20685   ac_dir_suffix= ac_top_builddir=
20686 fi
20687
20688 case $srcdir in
20689   .)  # No --srcdir option.  We are building in place.
20690     ac_srcdir=.
20691     if test -z "$ac_top_builddir"; then
20692        ac_top_srcdir=.
20693     else
20694        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20695     fi ;;
20696   [\\/]* | ?:[\\/]* )  # Absolute path.
20697     ac_srcdir=$srcdir$ac_dir_suffix;
20698     ac_top_srcdir=$srcdir ;;
20699   *) # Relative path.
20700     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20701     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20702 esac
20703 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20704 # absolute.
20705 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20706 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20707 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20708 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20709
20710
20711   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20712 echo "$as_me: executing $ac_dest commands" >&6;}
20713   case $ac_dest in
20714     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20715  ;;
20716   esac
20717 done
20718 _ACEOF
20719
20720 cat >>$CONFIG_STATUS <<\_ACEOF
20721
20722 { (exit 0); exit 0; }
20723 _ACEOF
20724 chmod +x $CONFIG_STATUS
20725 ac_clean_files=$ac_clean_files_save
20726
20727
20728 # configure is writing to config.log, and then calls config.status.
20729 # config.status does its own redirection, appending to config.log.
20730 # Unfortunately, on DOS this fails, as config.log is still kept open
20731 # by configure, so config.status won't be able to write to it; its
20732 # output is simply discarded.  So we exec the FD to /dev/null,
20733 # effectively closing config.log, so it can be properly (re)opened and
20734 # appended to by config.status.  When coming back to configure, we
20735 # need to make the FD available again.
20736 if test "$no_create" != yes; then
20737   ac_cs_success=:
20738   ac_config_status_args=
20739   test "$silent" = yes &&
20740     ac_config_status_args="$ac_config_status_args --quiet"
20741   exec 5>/dev/null
20742   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20743   exec 5>>config.log
20744   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20745   # would make configure fail if this is the last instruction.
20746   $ac_cs_success || { (exit 1); exit 1; }
20747 fi
20748
20749
20750 cd scripts
20751 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20752 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20753 cd ..
20754
20755 c=src/cats
20756
20757 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20758 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20759
20760 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20761 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20762
20763 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20764 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20765
20766 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20767 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20768
20769 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20770 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20771
20772 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20773 chmod 755 $c/sqlite
20774 chmod 755 $c/mysql
20775
20776 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20777    largefile_support="yes"
20778 fi
20779
20780 #
20781 # A whole lot of hand springs to get the compiler version.
20782 #  This is because gcc changed the output in version 3.0
20783 #
20784 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20785 if test "x${CCVERSION}" = "x" ; then
20786   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20787 fi
20788 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20789 if test x"${CXXVERSION}" = x ; then
20790   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20791 fi
20792
20793 if test "x${subsysdir}" = "x${sbindir}" ; then
20794    echo " "
20795    echo " "
20796    echo "You have set --sbindir and --with-subsys-dir"
20797    echo "  both equal to: ${subsysdir} "
20798    echo "  This is not permitted. Please reconfigure."
20799    echo " "
20800    echo "Aborting configuration ..."
20801    echo " "
20802    echo " "
20803    exit 1
20804 fi
20805
20806 if test "x${db_name}" = "xInternal" ; then
20807    echo " "
20808    echo " "
20809    echo "You have not specified either --enable-client-only or one of the"
20810    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20811    echo "  This is not permitted. Please reconfigure."
20812    echo " "
20813    echo "Aborting the configuration ..."
20814    echo " "
20815    echo " "
20816    exit 1
20817 fi
20818
20819 echo "
20820 Configuration on `date`:
20821
20822   Host:                       $host -- ${DISTNAME} ${DISTVER}
20823   Bacula version:             ${VERSION} (${DATE})
20824   Source code location:       ${srcdir}
20825   Install binaries:           ${sbindir}
20826   Install config files:       ${sysconfdir}
20827   Scripts directory:          ${scriptdir}
20828   Working directory:          ${working_dir}
20829   PID directory:              ${piddir}
20830   Subsys directory:           ${subsysdir}
20831   C Compiler:                 ${CC} ${CCVERSION}
20832   C++ Compiler:               ${CXX} ${CXXVERSION}
20833   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20834   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20835   Libraries:                  ${LIBS}
20836   Statically Linked Tools:    ${support_static_tools}
20837   Statically Linked FD:       ${support_static_fd}
20838   Statically Linked SD:       ${support_static_sd}
20839   Statically Linked DIR:      ${support_static_dir}
20840   Statically Linked CONS:     ${support_static_cons}
20841   Database type:              ${db_name}
20842   Database lib:               ${DB_LIBS}
20843
20844   Job Output Email:           ${job_email}
20845   Traceback Email:            ${dump_email}
20846   SMTP Host Address:          ${smtp_host}
20847
20848   Director Port:              ${dir_port}
20849   File daemon Port:           ${fd_port}
20850   Storage daemon Port:        ${sd_port}
20851
20852   Director User:              ${dir_user}
20853   Director Group:             ${dir_group}
20854   Storage Daemon User:        ${sd_user}
20855   Storage DaemonGroup:        ${sd_group}
20856   File Daemon User:           ${fd_user}
20857   File Daemon Group:          ${fd_group}
20858
20859   SQL binaries Directory      ${SQL_BINDIR}
20860
20861   Large file support:         $largefile_support
20862   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20863   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20864   TCP Wrappers support:       ${TCPW_MSG}
20865   ZLIB support:               ${have_zlib}
20866   enable-smartalloc:          ${support_smartalloc}
20867   enable-gnome:               ${support_gnome} ${gnome_version}
20868   enable-wx-console:          ${support_wx_console}
20869   enable-tray-monitor:        ${support_tray_monitor}
20870   client-only:                ${build_client_only}
20871   ACL support:                ${have_acl}
20872   Python support:             ${support_python} ${PYTHON_LIBS}
20873
20874   " > config.out
20875
20876 cat config.out
20877
20878 # old stuff
20879 # cweb support:               ${got_cweb} ${CWEB_SRC}
20880 # gmp support:                ${got_gmp} ${GMP_SRC}