]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Apply Python 2.3 configure patch
[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 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   ;;
3775 esac
3776 fi
3777 CDRECORD=$ac_cv_path_CDRECORD
3778
3779 if test -n "$CDRECORD"; then
3780   echo "$as_me:$LINENO: result: $CDRECORD" >&5
3781 echo "${ECHO_T}$CDRECORD" >&6
3782 else
3783   echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3785 fi
3786
3787
3788 test -n "$ARFLAG" || ARFLAGS="cr"
3789
3790
3791 MAKE_SHELL=/bin/sh
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801 # Make sure we can run config.sub.
3802 $ac_config_sub sun4 >/dev/null 2>&1 ||
3803   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3804 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3805    { (exit 1); exit 1; }; }
3806
3807 echo "$as_me:$LINENO: checking build system type" >&5
3808 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3809 if test "${ac_cv_build+set}" = set; then
3810   echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812   ac_cv_build_alias=$build_alias
3813 test -z "$ac_cv_build_alias" &&
3814   ac_cv_build_alias=`$ac_config_guess`
3815 test -z "$ac_cv_build_alias" &&
3816   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3817 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3818    { (exit 1); exit 1; }; }
3819 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3820   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3821 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3822    { (exit 1); exit 1; }; }
3823
3824 fi
3825 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3826 echo "${ECHO_T}$ac_cv_build" >&6
3827 build=$ac_cv_build
3828 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3829 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3830 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3831
3832
3833
3834 echo "$as_me:$LINENO: checking host system type" >&5
3835 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3836 if test "${ac_cv_host+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   ac_cv_host_alias=$host_alias
3840 test -z "$ac_cv_host_alias" &&
3841   ac_cv_host_alias=$ac_cv_build_alias
3842 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3843   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3844 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3845    { (exit 1); exit 1; }; }
3846
3847 fi
3848 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3849 echo "${ECHO_T}$ac_cv_host" >&6
3850 host=$ac_cv_host
3851 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3852 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3853 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3854
3855
3856 case $host_os in
3857   *cygwin* ) CYGWIN=yes;;
3858          * ) CYGWIN=no;;
3859 esac
3860
3861 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3862 then
3863
3864
3865 if $TRUEPRG; then
3866   HAVE_SUN_OS_TRUE=
3867   HAVE_SUN_OS_FALSE='#'
3868 else
3869   HAVE_SUN_OS_TRUE='#'
3870   HAVE_SUN_OS_FALSE=
3871 fi
3872         cat >>confdefs.h <<\_ACEOF
3873 #define HAVE_SUN_OS 1
3874 _ACEOF
3875
3876 else
3877
3878
3879 if $FALSEPRG; then
3880   HAVE_SUN_OS_TRUE=
3881   HAVE_SUN_OS_FALSE='#'
3882 else
3883   HAVE_SUN_OS_TRUE='#'
3884   HAVE_SUN_OS_FALSE=
3885 fi
3886 fi
3887
3888 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3889 then
3890
3891
3892 if $TRUEPRG; then
3893   HAVE_OSF1_OS_TRUE=
3894   HAVE_OSF1_OS_FALSE='#'
3895 else
3896   HAVE_OSF1_OS_TRUE='#'
3897   HAVE_OSF1_OS_FALSE=
3898 fi
3899         cat >>confdefs.h <<\_ACEOF
3900 #define HAVE_OSF1_OS 1
3901 _ACEOF
3902
3903 else
3904
3905
3906 if $FALSEPRG; then
3907   HAVE_OSF1_OS_TRUE=
3908   HAVE_OSF1_OS_FALSE='#'
3909 else
3910   HAVE_OSF1_OS_TRUE='#'
3911   HAVE_OSF1_OS_FALSE=
3912 fi
3913 fi
3914
3915 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3916 then
3917
3918
3919 if $TRUEPRG; then
3920   HAVE_AIX_OS_TRUE=
3921   HAVE_AIX_OS_FALSE='#'
3922 else
3923   HAVE_AIX_OS_TRUE='#'
3924   HAVE_AIX_OS_FALSE=
3925 fi
3926         cat >>confdefs.h <<\_ACEOF
3927 #define HAVE_AIX_OS 1
3928 _ACEOF
3929
3930 else
3931
3932
3933 if $FALSEPRG; then
3934   HAVE_AIX_OS_TRUE=
3935   HAVE_AIX_OS_FALSE='#'
3936 else
3937   HAVE_AIX_OS_TRUE='#'
3938   HAVE_AIX_OS_FALSE=
3939 fi
3940 fi
3941
3942 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3943 then
3944
3945
3946 if $TRUEPRG; then
3947   HAVE_HPUX_OS_TRUE=
3948   HAVE_HPUX_OS_FALSE='#'
3949 else
3950   HAVE_HPUX_OS_TRUE='#'
3951   HAVE_HPUX_OS_FALSE=
3952 fi
3953         cat >>confdefs.h <<\_ACEOF
3954 #define HAVE_HPUX_OS 1
3955 _ACEOF
3956
3957 else
3958
3959
3960 if $FALSEPRG; then
3961   HAVE_HPUX_OS_TRUE=
3962   HAVE_HPUX_OS_FALSE='#'
3963 else
3964   HAVE_HPUX_OS_TRUE='#'
3965   HAVE_HPUX_OS_FALSE=
3966 fi
3967 fi
3968
3969 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3970 then
3971
3972
3973 if $TRUEPRG; then
3974   HAVE_LINUX_OS_TRUE=
3975   HAVE_LINUX_OS_FALSE='#'
3976 else
3977   HAVE_LINUX_OS_TRUE='#'
3978   HAVE_LINUX_OS_FALSE=
3979 fi
3980         cat >>confdefs.h <<\_ACEOF
3981 #define HAVE_LINUX_OS 1
3982 _ACEOF
3983
3984 else
3985
3986
3987 if $FALSEPRG; then
3988   HAVE_LINUX_OS_TRUE=
3989   HAVE_LINUX_OS_FALSE='#'
3990 else
3991   HAVE_LINUX_OS_TRUE='#'
3992   HAVE_LINUX_OS_FALSE=
3993 fi
3994 fi
3995
3996 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3997 then
3998
3999
4000 if $TRUEPRG; then
4001   HAVE_FREEBSD_OS_TRUE=
4002   HAVE_FREEBSD_OS_FALSE='#'
4003 else
4004   HAVE_FREEBSD_OS_TRUE='#'
4005   HAVE_FREEBSD_OS_FALSE=
4006 fi
4007         cat >>confdefs.h <<\_ACEOF
4008 #define HAVE_FREEBSD_OS 1
4009 _ACEOF
4010
4011 else
4012
4013
4014 if $FALSEPRG; then
4015   HAVE_FREEBSD_OS_TRUE=
4016   HAVE_FREEBSD_OS_FALSE='#'
4017 else
4018   HAVE_FREEBSD_OS_TRUE='#'
4019   HAVE_FREEBSD_OS_FALSE=
4020 fi
4021 fi
4022
4023 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4024 then
4025
4026
4027 if $TRUEPRG; then
4028   HAVE_NETBSD_OS_TRUE=
4029   HAVE_NETBSD_OS_FALSE='#'
4030 else
4031   HAVE_NETBSD_OS_TRUE='#'
4032   HAVE_NETBSD_OS_FALSE=
4033 fi
4034         cat >>confdefs.h <<\_ACEOF
4035 #define HAVE_NETBSD_OS 1
4036 _ACEOF
4037
4038 else
4039
4040
4041 if $FALSEPRG; then
4042   HAVE_NETBSD_OS_TRUE=
4043   HAVE_NETBSD_OS_FALSE='#'
4044 else
4045   HAVE_NETBSD_OS_TRUE='#'
4046   HAVE_NETBSD_OS_FALSE=
4047 fi
4048 fi
4049
4050 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4051 then
4052
4053
4054 if $TRUEPRG; then
4055   HAVE_OPENBSD_OS_TRUE=
4056   HAVE_OPENBSD_OS_FALSE='#'
4057 else
4058   HAVE_OPENBSD_OS_TRUE='#'
4059   HAVE_OPENBSD_OS_FALSE=
4060 fi
4061         cat >>confdefs.h <<\_ACEOF
4062 #define HAVE_OPENBSD_OS 1
4063 _ACEOF
4064
4065 else
4066
4067
4068 if $FALSEPRG; then
4069   HAVE_OPENBSD_OS_TRUE=
4070   HAVE_OPENBSD_OS_FALSE='#'
4071 else
4072   HAVE_OPENBSD_OS_TRUE='#'
4073   HAVE_OPENBSD_OS_FALSE=
4074 fi
4075 fi
4076
4077 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4078 then
4079
4080
4081 if $TRUEPRG; then
4082   HAVE_BSDI_OS_TRUE=
4083   HAVE_BSDI_OS_FALSE='#'
4084 else
4085   HAVE_BSDI_OS_TRUE='#'
4086   HAVE_BSDI_OS_FALSE=
4087 fi
4088         cat >>confdefs.h <<\_ACEOF
4089 #define HAVE_BSDI_OS 1
4090 _ACEOF
4091
4092 else
4093
4094
4095 if $FALSEPRG; then
4096   HAVE_BSDI_OS_TRUE=
4097   HAVE_BSDI_OS_FALSE='#'
4098 else
4099   HAVE_BSDI_OS_TRUE='#'
4100   HAVE_BSDI_OS_FALSE=
4101 fi
4102 fi
4103
4104 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4105 then
4106
4107
4108 if $TRUEPRG; then
4109   HAVE_SGI_OS_TRUE=
4110   HAVE_SGI_OS_FALSE='#'
4111 else
4112   HAVE_SGI_OS_TRUE='#'
4113   HAVE_SGI_OS_FALSE=
4114 fi
4115         cat >>confdefs.h <<\_ACEOF
4116 #define HAVE_SGI_OS 1
4117 _ACEOF
4118
4119 else
4120
4121
4122 if $FALSEPRG; then
4123   HAVE_SGI_OS_TRUE=
4124   HAVE_SGI_OS_FALSE='#'
4125 else
4126   HAVE_SGI_OS_TRUE='#'
4127   HAVE_SGI_OS_FALSE=
4128 fi
4129 fi
4130
4131 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4132 then
4133
4134
4135 if $TRUEPRG; then
4136   HAVE_IRIX_OS_TRUE=
4137   HAVE_IRIX_OS_FALSE='#'
4138 else
4139   HAVE_IRIX_OS_TRUE='#'
4140   HAVE_IRIX_OS_FALSE=
4141 fi
4142         cat >>confdefs.h <<\_ACEOF
4143 #define HAVE_IRIX_OS 1
4144 _ACEOF
4145
4146 else
4147
4148
4149 if $FALSEPRG; then
4150   HAVE_IRIX_OS_TRUE=
4151   HAVE_IRIX_OS_FALSE='#'
4152 else
4153   HAVE_IRIX_OS_TRUE='#'
4154   HAVE_IRIX_OS_FALSE=
4155 fi
4156 fi
4157
4158 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4159 then
4160
4161
4162 if $TRUEPRG; then
4163   HAVE_DARWIN_OS_TRUE=
4164   HAVE_DARWIN_OS_FALSE='#'
4165 else
4166   HAVE_DARWIN_OS_TRUE='#'
4167   HAVE_DARWIN_OS_FALSE=
4168 fi
4169     cat >>confdefs.h <<\_ACEOF
4170 #define HAVE_DARWIN_OS 1
4171 _ACEOF
4172
4173 else
4174
4175
4176 if $FALSEPRG; then
4177   HAVE_DARWIN_OS_TRUE=
4178   HAVE_DARWIN_OS_FALSE='#'
4179 else
4180   HAVE_DARWIN_OS_TRUE='#'
4181   HAVE_DARWIN_OS_FALSE=
4182 fi
4183 fi
4184
4185
4186 # -----------------------------------------------------------
4187 # ----------------------------------------------------------
4188 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4189 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4190 if test "x$DISTNAME" != "x"
4191 then
4192         echo "distname set to $DISTNAME"
4193 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4194 then
4195         DISTNAME=alpha
4196 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4197 then
4198         DISTNAME=aix
4199 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4200 then
4201         DISTNAME=hpux
4202 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4203 then
4204         DISTNAME=solaris
4205 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4206 then
4207         DISTNAME=freebsd
4208 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4209 then
4210         DISTNAME=netbsd
4211 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4212 then
4213         DISTNAME=openbsd
4214 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4215 then
4216         DISTNAME=irix
4217 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4218 then
4219         DISTNAME=bsdi
4220 elif test -f /etc/SuSE-release
4221 then
4222         DISTNAME=suse
4223 elif test -d /etc/SuSEconfig
4224 then
4225         DISTNAME=suse5
4226 elif test -f /etc/mandrake-release
4227 then
4228         DISTNAME=mandrake
4229 elif test -f /etc/whitebox-release
4230 then
4231        DISTNAME=redhat
4232 elif test -f /etc/redhat-release
4233 then
4234         DISTNAME=redhat
4235 elif test -f /etc/gentoo-release
4236 then
4237         DISTNAME=gentoo
4238 elif test -f /etc/debian_version
4239 then
4240         DISTNAME=debian
4241 elif test -f /etc/slackware-version
4242 then
4243         DISTNAME=slackware
4244 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4245 then
4246     DISTNAME=darwin
4247 elif test -f /etc/engarde-version
4248 then
4249         DISTNAME=engarde
4250 elif test "$CYGWIN" = yes
4251 then
4252         DISTNAME=cygwin
4253         cat >>confdefs.h <<\_ACEOF
4254 #define HAVE_CYGWIN 1
4255 _ACEOF
4256
4257 else
4258         DISTNAME=unknown
4259 fi
4260 echo "$as_me:$LINENO: result: done" >&5
4261 echo "${ECHO_T}done" >&6
4262
4263
4264 # -----------------------------------------------------------
4265 # ----------------------------------------------------------
4266
4267
4268
4269 if false; then
4270   INSIDE_GNOME_COMMON_TRUE=
4271   INSIDE_GNOME_COMMON_FALSE='#'
4272 else
4273   INSIDE_GNOME_COMMON_TRUE='#'
4274   INSIDE_GNOME_COMMON_FALSE=
4275 fi
4276
4277         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4278
4279         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4280
4281
4282 # ------------------------------------------------------------------
4283 #  If the user has not set --prefix, we set our default to nothing.
4284 #  In this case, if the user has not set --sysconfdir, we set it
4285 #  to the package default of /etc/bacula.  If either --prefix or
4286 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4287 # ------------------------------------------------------------------
4288 if test x${prefix} = xNONE ; then
4289     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4290         sysconfdir=/etc/bacula
4291     fi
4292     prefix=
4293 fi
4294 sysconfdir=`eval echo ${sysconfdir}`
4295
4296 # -------------------------------------------------------------------------
4297 #  If the user has not set --exec-prefix, we default to ${prefix}
4298 # -------------------------------------------------------------------------
4299 if test x${exec_prefix} = xNONE ; then
4300     exec_prefix=${prefix}
4301 fi
4302
4303 # ------------------------------------------------------------------
4304 # If the user has not set --sbindir, we set our default as /sbin
4305 # ------------------------------------------------------------------
4306 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4307     sbindir=${exec_prefix}/sbin
4308 fi
4309 sbindir=`eval echo ${sbindir}`
4310
4311 # ------------------------------------------------------------------
4312 # All list of languages for which a translation exist. Each
4313 #  language is separated by a space.
4314 # ------------------------------------------------------------------
4315 ALL_LINGUAS=""
4316
4317 for ac_prog in msgfmt
4318 do
4319   # Extract the first word of "$ac_prog", so it can be a program name with args.
4320 set dummy $ac_prog; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_path_MSGFMT+set}" = set; then
4324   echo $ECHO_N "(cached) $ECHO_C" >&6
4325 else
4326   case $MSGFMT in
4327   [\\/]* | ?:[\\/]*)
4328   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4329   ;;
4330   *)
4331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334   IFS=$as_save_IFS
4335   test -z "$as_dir" && as_dir=.
4336   for ac_exec_ext in '' $ac_executable_extensions; do
4337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340     break 2
4341   fi
4342 done
4343 done
4344
4345   ;;
4346 esac
4347 fi
4348 MSGFMT=$ac_cv_path_MSGFMT
4349
4350 if test -n "$MSGFMT"; then
4351   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4352 echo "${ECHO_T}$MSGFMT" >&6
4353 else
4354   echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6
4356 fi
4357
4358   test -n "$MSGFMT" && break
4359 done
4360 test -n "$MSGFMT" || MSGFMT="no"
4361
4362 if test "$MSGFMT" = "no"
4363 then
4364    echo 'msgfmt program not found, disabling NLS !'
4365    USE_NLS=no
4366    USE_INCLUDED_LIBINTL=no
4367 #else
4368 #   AM_GNU_GETTEXT
4369 fi
4370
4371
4372 support_mysql=no
4373 support_sqlite=no
4374 support_postgresql=no
4375 support_smartalloc=yes
4376 support_readline=yes
4377 support_conio=yes
4378 support_gnome=no
4379 support_wx_console=no
4380 gnome_version=
4381 support_static_tools=no
4382 support_static_fd=no
4383 support_static_sd=no
4384 support_static_dir=no
4385 support_static_cons=no
4386 support_python=no
4387 build_client_only=no
4388 cats=
4389 db_name=Internal
4390 DB_NAME=bdb
4391
4392
4393 # -------------------------------------------
4394 # gnome (default off)
4395 # -------------------------------------------
4396 # Check whether --enable-gnome or --disable-gnome was given.
4397 if test "${enable_gnome+set}" = set; then
4398   enableval="$enable_gnome"
4399   if test x$enableval = xyes; then
4400     support_gnome=yes
4401   fi
4402 fi;
4403
4404 GNOME_DIR=
4405 if test x$support_gnome = xyes; then
4406   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4407   pkg=$?
4408   if test $pkg = 0; then
4409      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4410      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4411      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4412      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4413
4414
4415
4416
4417      GNOME_DIR=src/gnome2-console
4418      gnome_version="Version 2.x"
4419   else
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4432 if test "${with_gnome_includes+set}" = set; then
4433   withval="$with_gnome_includes"
4434
4435         CFLAGS="$CFLAGS -I$withval"
4436
4437 fi;
4438
4439
4440 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4441 if test "${with_gnome_libs+set}" = set; then
4442   withval="$with_gnome_libs"
4443
4444         LDFLAGS="$LDFLAGS -L$withval"
4445         gnome_prefix=$withval
4446
4447 fi;
4448
4449
4450 # Check whether --with-gnome or --without-gnome was given.
4451 if test "${with_gnome+set}" = set; then
4452   withval="$with_gnome"
4453   if test x$withval = xyes; then
4454                         want_gnome=yes
4455                                                                         :
4456                 else
4457                         if test "x$withval" = xno; then
4458                                 want_gnome=no
4459                         else
4460                                 want_gnome=yes
4461                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4462                                 CFLAGS="$CFLAGS -I$withval/include"
4463                                 gnome_prefix=$withval/lib
4464                         fi
4465                 fi
4466 else
4467   want_gnome=yes
4468 fi;
4469
4470         if test "x$want_gnome" = xyes; then
4471
4472             # Extract the first word of "gnome-config", so it can be a program name with args.
4473 set dummy gnome-config; ac_word=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4477   echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479   case $GNOME_CONFIG in
4480   [\\/]* | ?:[\\/]*)
4481   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4482   ;;
4483   *)
4484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489   for ac_exec_ext in '' $ac_executable_extensions; do
4490   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493     break 2
4494   fi
4495 done
4496 done
4497
4498   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4499   ;;
4500 esac
4501 fi
4502 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4503
4504 if test -n "$GNOME_CONFIG"; then
4505   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4506 echo "${ECHO_T}$GNOME_CONFIG" >&6
4507 else
4508   echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4510 fi
4511
4512             if test "$GNOME_CONFIG" = "no"; then
4513               no_gnome_config="yes"
4514             else
4515               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4516 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4517               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4518                 echo "$as_me:$LINENO: result: yes" >&5
4519 echo "${ECHO_T}yes" >&6
4520
4521
4522         # Extract the first word of "orbit-config", so it can be a program name with args.
4523 set dummy orbit-config; ac_word=$2
4524 echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4526 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   case $ORBIT_CONFIG in
4530   [\\/]* | ?:[\\/]*)
4531   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4532   ;;
4533   *)
4534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537   IFS=$as_save_IFS
4538   test -z "$as_dir" && as_dir=.
4539   for ac_exec_ext in '' $ac_executable_extensions; do
4540   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543     break 2
4544   fi
4545 done
4546 done
4547
4548   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4549   ;;
4550 esac
4551 fi
4552 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4553
4554 if test -n "$ORBIT_CONFIG"; then
4555   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4556 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4557 else
4558   echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4560 fi
4561
4562         # Extract the first word of "orbit-idl", so it can be a program name with args.
4563 set dummy orbit-idl; ac_word=$2
4564 echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4567   echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569   case $ORBIT_IDL in
4570   [\\/]* | ?:[\\/]*)
4571   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4572   ;;
4573   *)
4574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577   IFS=$as_save_IFS
4578   test -z "$as_dir" && as_dir=.
4579   for ac_exec_ext in '' $ac_executable_extensions; do
4580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583     break 2
4584   fi
4585 done
4586 done
4587
4588   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4589   ;;
4590 esac
4591 fi
4592 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4593
4594 if test -n "$ORBIT_IDL"; then
4595   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4596 echo "${ECHO_T}$ORBIT_IDL" >&6
4597 else
4598   echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6
4600 fi
4601
4602         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4603 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4604 if test "${gnome_cv_orbit_found+set}" = set; then
4605   echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607
4608                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4609                         gnome_cv_orbit_found=no
4610                 else
4611                         gnome_cv_orbit_found=yes
4612                 fi
4613
4614 fi
4615 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4616 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4617
4618
4619 if test x$gnome_cv_orbit_found = xyes; then
4620   HAVE_ORBIT_TRUE=
4621   HAVE_ORBIT_FALSE='#'
4622 else
4623   HAVE_ORBIT_TRUE='#'
4624   HAVE_ORBIT_FALSE=
4625 fi
4626         if test x$gnome_cv_orbit_found = xyes; then
4627
4628                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4629                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4630
4631
4632         else
4633                 if test xfail = xfailure; then
4634                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4635 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4636    { (exit 1); exit 1; }; }
4637                 fi
4638         fi
4639
4640         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4641 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4642 if test "${gnome_cv_gnorba_found+set}" = set; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645
4646                 gnome_cv_gnorba_found=no
4647                 if test x$gnome_cv_orbit_found = xyes; then
4648                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4649                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4650                         if test -n "$GNORBA_LIBS"; then
4651                                 gnome_cv_gnorba_found=yes
4652                         fi
4653                 fi
4654
4655 fi
4656 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4657 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4658
4659
4660 if test x$gnome_cv_gnorba_found = xyes; then
4661   HAVE_GNORBA_TRUE=
4662   HAVE_GNORBA_FALSE='#'
4663 else
4664   HAVE_GNORBA_TRUE='#'
4665   HAVE_GNORBA_FALSE=
4666 fi
4667         if test x$gnome_cv_orbit_found = xyes; then
4668
4669                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4670                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4671
4672
4673         else
4674                 if test xfail = xfailure; then
4675                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4676 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4677    { (exit 1); exit 1; }; }
4678                 fi
4679         fi
4680
4681                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4682                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4683                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4684                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4685                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4686                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4687                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4688
4689               else
4690                 echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6
4692                 no_gnome_config="yes"
4693               fi
4694             fi
4695
4696             if test x$exec_prefix = xNONE; then
4697                 if test x$prefix = xNONE; then
4698                     gnome_prefix=$ac_default_prefix/lib
4699                 else
4700                     gnome_prefix=$prefix/lib
4701                 fi
4702             else
4703                 gnome_prefix=`eval echo \`echo $libdir\``
4704             fi
4705
4706             if test "$no_gnome_config" = "yes"; then
4707               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4708 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4709               if test -f $gnome_prefix/gnomeConf.sh; then
4710                 echo "$as_me:$LINENO: result: found" >&5
4711 echo "${ECHO_T}found" >&6
4712                 echo "loading gnome configuration from" \
4713                      "$gnome_prefix/gnomeConf.sh"
4714                 . $gnome_prefix/gnomeConf.sh
4715
4716               else
4717                 echo "$as_me:$LINENO: result: not found" >&5
4718 echo "${ECHO_T}not found" >&6
4719                 if test xfail = xfail; then
4720                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4721 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4722    { (exit 1); exit 1; }; }
4723                 fi
4724               fi
4725             fi
4726         fi
4727
4728         if test -n ""; then
4729           n=""
4730           for i in $n; do
4731             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4732 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4733             case $i in
4734               applets)
4735
4736                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4737                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4738 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4739               docklets)
4740
4741                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4742                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4743 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4744               capplet)
4745
4746                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4747                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4748 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4749               *)
4750                 echo "$as_me:$LINENO: result: unknown library" >&5
4751 echo "${ECHO_T}unknown library" >&6
4752             esac
4753             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4754             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4755           done
4756         fi
4757
4758
4759      GNOME_DIR=src/gnome-console
4760      gnome_version="Version 1.4"
4761   fi
4762 fi
4763
4764
4765
4766 # -------------------------------------------
4767 # wx-console (default off)
4768 # -------------------------------------------
4769 # Check whether --enable-wx-console or --disable-wx-console was given.
4770 if test "${enable_wx_console+set}" = set; then
4771   enableval="$enable_wx_console"
4772   if test x$enableval = xyes; then
4773     support_wx_console=yes
4774   fi
4775 fi;
4776
4777 WX_DIR=
4778 if test x$support_wx_console = xyes; then
4779   abc=`$WXCONFIG --cppflags`
4780   pkg=$?
4781   if test $pkg = 0; then
4782      WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4783      WXCONS_LDFLAGS=`$WXCONFIG --libs`
4784
4785
4786      WX_DIR=src/wx-console
4787   else
4788      echo " "
4789      echo "wx-config program not found. wx-console disabled."
4790      echo " "
4791      support_wx_console=no
4792   fi
4793 fi
4794
4795
4796
4797 # -------------------------------------------
4798 # tray-monitor (default off)
4799 # -------------------------------------------
4800 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4801 if test "${enable_tray_monitor+set}" = set; then
4802   enableval="$enable_tray_monitor"
4803   if test x$enableval = xyes; then
4804     support_tray_monitor=yes
4805   fi
4806 fi;
4807
4808 TRAY_MONITOR_DIR=
4809 if test x$support_tray_monitor = xyes; then
4810   abc=`$PKGCONFIG --exists gtk+-2.0`
4811   pkg=$?
4812   if test $pkg = 0; then
4813      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4814      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4815
4816
4817      TRAY_MONITOR_DIR=src/tray-monitor
4818      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4819      pkg=$?
4820      if test $pkg = 0; then
4821         cat >>confdefs.h <<\_ACEOF
4822 #define HAVE_GTK_2_4 1
4823 _ACEOF
4824
4825      fi
4826   fi
4827 fi
4828
4829
4830 # -------------------------------------------
4831 # smartalloc (default off)
4832 # -------------------------------------------
4833 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4834 if test "${enable_smartalloc+set}" = set; then
4835   enableval="$enable_smartalloc"
4836   if test x$enableval = xno; then
4837     support_smartalloc=no
4838   fi
4839 fi;
4840
4841 if test x$support_smartalloc = xyes; then
4842    cat >>confdefs.h <<\_ACEOF
4843 #define SMARTALLOC 1
4844 _ACEOF
4845
4846 fi
4847
4848 # -------------------------------------------
4849 # static-tools (default off)
4850 # -------------------------------------------
4851 # Check whether --enable-static-tools or --disable-static-tools was given.
4852 if test "${enable_static_tools+set}" = set; then
4853   enableval="$enable_static_tools"
4854   if test x$enableval = xyes; then
4855      support_static_tools=yes
4856    fi
4857 fi;
4858
4859 TTOOL_LDFLAGS=
4860 if test x$support_static_tools = xyes; then
4861    TTOOL_LDFLAGS="-static"
4862 fi
4863
4864
4865 # -------------------------------------------
4866 # static-fd    (default off)
4867 # -------------------------------------------
4868 # Check whether --enable-static-fd or --disable-static-fd was given.
4869 if test "${enable_static_fd+set}" = set; then
4870   enableval="$enable_static_fd"
4871   if test x$enableval = xyes; then
4872      support_static_fd=yes
4873    fi
4874 fi;
4875
4876 STATIC_FD=
4877 if test x$support_static_fd = xyes; then
4878    STATIC_FD="static-bacula-fd"
4879 fi
4880
4881
4882 # -------------------------------------------
4883 # static-sd    (default off)
4884 # -------------------------------------------
4885 # Check whether --enable-static-sd or --disable-static-sd was given.
4886 if test "${enable_static_sd+set}" = set; then
4887   enableval="$enable_static_sd"
4888   if test x$enableval = xyes; then
4889      support_static_sd=yes
4890    fi
4891 fi;
4892
4893 STATIC_SD=
4894 if test x$support_static_sd = xyes; then
4895    STATIC_SD="static-bacula-sd"
4896 fi
4897
4898
4899 # -------------------------------------------
4900 # static-dir   (default off)
4901 # -------------------------------------------
4902 # Check whether --enable-static-dir or --disable-static-dir was given.
4903 if test "${enable_static_dir+set}" = set; then
4904   enableval="$enable_static_dir"
4905   if test x$enableval = xyes; then
4906      support_static_dir=yes
4907    fi
4908 fi;
4909
4910 STATIC_DIR=
4911 if test x$support_static_dir = xyes; then
4912    STATIC_DIR="static-bacula-dir"
4913 fi
4914
4915
4916 # -------------------------------------------
4917 # static-cons  (default off)
4918 # -------------------------------------------
4919 # Check whether --enable-static-cons or --disable-static-cons was given.
4920 if test "${enable_static_cons+set}" = set; then
4921   enableval="$enable_static_cons"
4922   if test x$enableval = xyes; then
4923      support_static_cons=yes
4924    fi
4925 fi;
4926
4927 STATIC_CONS=
4928 STATIC_GNOME_CONS=
4929 STATIC_WX_CONS=
4930 if test x$support_static_cons = xyes; then
4931    STATIC_CONS="static-bconsole"
4932    STATIC_GNOME_CONS="static-gnome-console"
4933    STATIC_WX_CONS="static-wx-console"
4934 fi
4935
4936
4937
4938
4939 # -------------------------------------------
4940 # client_only  (default off)
4941 # -------------------------------------------
4942 # Check whether --enable-client-only or --disable-client-only was given.
4943 if test "${enable_client_only+set}" = set; then
4944   enableval="$enable_client_only"
4945   if test x$enableval = xyes; then
4946      build_client_only=yes
4947     db_name=None
4948     DB_NAME=none
4949    fi
4950 fi;
4951 if test x$build_client_only = xno; then
4952    ALL_DIRS="subdirs"
4953 else
4954    ALL_DIRS=""
4955 fi
4956
4957
4958 # ---------------------------------------------------
4959 # Check for conio (Bacula readline substitute)(
4960 # ---------------------------------------------------
4961 # this allows you to turn it completely off
4962 # Check whether --enable-conio or --disable-conio was given.
4963 if test "${enable_conio+set}" = set; then
4964   enableval="$enable_conio"
4965   if test x$enableval = xno; then
4966     support_conio=no
4967   fi
4968 fi;
4969
4970 got_conio="no"
4971 if test x$support_conio = xyes; then
4972    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4973 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4974 if test "${ac_cv_header_stdc+set}" = set; then
4975   echo $ECHO_N "(cached) $ECHO_C" >&6
4976 else
4977   cat >conftest.$ac_ext <<_ACEOF
4978 #line $LINENO "configure"
4979 /* confdefs.h.  */
4980 _ACEOF
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h.  */
4984 #include <stdlib.h>
4985 #include <stdarg.h>
4986 #include <string.h>
4987 #include <float.h>
4988
4989 int
4990 main ()
4991 {
4992
4993   ;
4994   return 0;
4995 }
4996 _ACEOF
4997 rm -f conftest.$ac_objext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999   (eval $ac_compile) 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); } &&
5003          { ac_try='test -s conftest.$ac_objext'
5004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5005   (eval $ac_try) 2>&5
5006   ac_status=$?
5007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008   (exit $ac_status); }; }; then
5009   ac_cv_header_stdc=yes
5010 else
5011   echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 ac_cv_header_stdc=no
5015 fi
5016 rm -f conftest.$ac_objext conftest.$ac_ext
5017
5018 if test $ac_cv_header_stdc = yes; then
5019   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5020   cat >conftest.$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5022 /* confdefs.h.  */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h.  */
5027 #include <string.h>
5028
5029 _ACEOF
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031   $EGREP "memchr" >/dev/null 2>&1; then
5032   :
5033 else
5034   ac_cv_header_stdc=no
5035 fi
5036 rm -f conftest*
5037
5038 fi
5039
5040 if test $ac_cv_header_stdc = yes; then
5041   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5042   cat >conftest.$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5044 /* confdefs.h.  */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h.  */
5049 #include <stdlib.h>
5050
5051 _ACEOF
5052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5053   $EGREP "free" >/dev/null 2>&1; then
5054   :
5055 else
5056   ac_cv_header_stdc=no
5057 fi
5058 rm -f conftest*
5059
5060 fi
5061
5062 if test $ac_cv_header_stdc = yes; then
5063   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5064   if test "$cross_compiling" = yes; then
5065   :
5066 else
5067   cat >conftest.$ac_ext <<_ACEOF
5068 #line $LINENO "configure"
5069 /* confdefs.h.  */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h.  */
5074 #include <ctype.h>
5075 #if ((' ' & 0x0FF) == 0x020)
5076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5078 #else
5079 # define ISLOWER(c) \
5080                    (('a' <= (c) && (c) <= 'i') \
5081                      || ('j' <= (c) && (c) <= 'r') \
5082                      || ('s' <= (c) && (c) <= 'z'))
5083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5084 #endif
5085
5086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5087 int
5088 main ()
5089 {
5090   int i;
5091   for (i = 0; i < 256; i++)
5092     if (XOR (islower (i), ISLOWER (i))
5093         || toupper (i) != TOUPPER (i))
5094       exit(2);
5095   exit (0);
5096 }
5097 _ACEOF
5098 rm -f conftest$ac_exeext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5100   (eval $ac_link) 2>&5
5101   ac_status=$?
5102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; }; then
5109   :
5110 else
5111   echo "$as_me: program exited with status $ac_status" >&5
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5114
5115 ( exit $ac_status )
5116 ac_cv_header_stdc=no
5117 fi
5118 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5119 fi
5120 fi
5121 fi
5122 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5123 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5124 if test $ac_cv_header_stdc = yes; then
5125
5126 cat >>confdefs.h <<\_ACEOF
5127 #define STDC_HEADERS 1
5128 _ACEOF
5129
5130 fi
5131
5132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5143                   inttypes.h stdint.h unistd.h
5144 do
5145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5146 echo "$as_me:$LINENO: checking for $ac_header" >&5
5147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5149   echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151   cat >conftest.$ac_ext <<_ACEOF
5152 #line $LINENO "configure"
5153 /* confdefs.h.  */
5154 _ACEOF
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h.  */
5158 $ac_includes_default
5159
5160 #include <$ac_header>
5161 _ACEOF
5162 rm -f conftest.$ac_objext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164   (eval $ac_compile) 2>&5
5165   ac_status=$?
5166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167   (exit $ac_status); } &&
5168          { ac_try='test -s conftest.$ac_objext'
5169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170   (eval $ac_try) 2>&5
5171   ac_status=$?
5172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173   (exit $ac_status); }; }; then
5174   eval "$as_ac_Header=yes"
5175 else
5176   echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179 eval "$as_ac_Header=no"
5180 fi
5181 rm -f conftest.$ac_objext conftest.$ac_ext
5182 fi
5183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5186   cat >>confdefs.h <<_ACEOF
5187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5188 _ACEOF
5189
5190 fi
5191
5192 done
5193
5194
5195 if test "${ac_cv_header_termcap_h+set}" = set; then
5196   echo "$as_me:$LINENO: checking for termcap.h" >&5
5197 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5198 if test "${ac_cv_header_termcap_h+set}" = set; then
5199   echo $ECHO_N "(cached) $ECHO_C" >&6
5200 fi
5201 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5202 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5203 else
5204   # Is the header compilable?
5205 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5206 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5207 cat >conftest.$ac_ext <<_ACEOF
5208 #line $LINENO "configure"
5209 /* confdefs.h.  */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h.  */
5214 $ac_includes_default
5215 #include <termcap.h>
5216 _ACEOF
5217 rm -f conftest.$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219   (eval $ac_compile) 2>&5
5220   ac_status=$?
5221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222   (exit $ac_status); } &&
5223          { ac_try='test -s conftest.$ac_objext'
5224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225   (eval $ac_try) 2>&5
5226   ac_status=$?
5227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228   (exit $ac_status); }; }; then
5229   ac_header_compiler=yes
5230 else
5231   echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
5234 ac_header_compiler=no
5235 fi
5236 rm -f conftest.$ac_objext conftest.$ac_ext
5237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5238 echo "${ECHO_T}$ac_header_compiler" >&6
5239
5240 # Is the header present?
5241 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5242 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5243 cat >conftest.$ac_ext <<_ACEOF
5244 #line $LINENO "configure"
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250 #include <termcap.h>
5251 _ACEOF
5252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5253   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5254   ac_status=$?
5255   grep -v '^ *+' conftest.er1 >conftest.err
5256   rm -f conftest.er1
5257   cat conftest.err >&5
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); } >/dev/null; then
5260   if test -s conftest.err; then
5261     ac_cpp_err=$ac_c_preproc_warn_flag
5262   else
5263     ac_cpp_err=
5264   fi
5265 else
5266   ac_cpp_err=yes
5267 fi
5268 if test -z "$ac_cpp_err"; then
5269   ac_header_preproc=yes
5270 else
5271   echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274   ac_header_preproc=no
5275 fi
5276 rm -f conftest.err conftest.$ac_ext
5277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5278 echo "${ECHO_T}$ac_header_preproc" >&6
5279
5280 # So?  What about this header?
5281 case $ac_header_compiler:$ac_header_preproc in
5282   yes:no )
5283     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5284 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5285     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5286 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5287     (
5288       cat <<\_ASBOX
5289 ## ------------------------------------ ##
5290 ## Report this to bug-autoconf@gnu.org. ##
5291 ## ------------------------------------ ##
5292 _ASBOX
5293     ) |
5294       sed "s/^/$as_me: WARNING:     /" >&2
5295     ;;
5296   no:yes )
5297     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5298 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5299     { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5300 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5301     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5302 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5303     (
5304       cat <<\_ASBOX
5305 ## ------------------------------------ ##
5306 ## Report this to bug-autoconf@gnu.org. ##
5307 ## ------------------------------------ ##
5308 _ASBOX
5309     ) |
5310       sed "s/^/$as_me: WARNING:     /" >&2
5311     ;;
5312 esac
5313 echo "$as_me:$LINENO: checking for termcap.h" >&5
5314 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5315 if test "${ac_cv_header_termcap_h+set}" = set; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318   ac_cv_header_termcap_h=$ac_header_preproc
5319 fi
5320 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5321 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5322
5323 fi
5324 if test $ac_cv_header_termcap_h = yes; then
5325    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5326 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5327 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5328   echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330   ac_check_lib_save_LIBS=$LIBS
5331 LIBS="-ltermcap  $LIBS"
5332 cat >conftest.$ac_ext <<_ACEOF
5333 #line $LINENO "configure"
5334 /* confdefs.h.  */
5335 _ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h.  */
5339
5340 /* Override any gcc2 internal prototype to avoid an error.  */
5341 #ifdef __cplusplus
5342 extern "C"
5343 #endif
5344 /* We use char because int might match the return type of a gcc2
5345    builtin and then its argument prototype would still apply.  */
5346 char tgetent ();
5347 int
5348 main ()
5349 {
5350 tgetent ();
5351   ;
5352   return 0;
5353 }
5354 _ACEOF
5355 rm -f conftest.$ac_objext conftest$ac_exeext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5357   (eval $ac_link) 2>&5
5358   ac_status=$?
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); } &&
5361          { ac_try='test -s conftest$ac_exeext'
5362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363   (eval $ac_try) 2>&5
5364   ac_status=$?
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); }; }; then
5367   ac_cv_lib_termcap_tgetent=yes
5368 else
5369   echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5371
5372 ac_cv_lib_termcap_tgetent=no
5373 fi
5374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5375 LIBS=$ac_check_lib_save_LIBS
5376 fi
5377 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5378 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5379 if test $ac_cv_lib_termcap_tgetent = yes; then
5380    CONS_LIBS="-ltermcap"
5381          CONS_OBJ="conio.o"
5382          CONS_SRC="conio.c"
5383          got_conio="yes"
5384          support_readline=no
5385
5386 cat >>confdefs.h <<\_ACEOF
5387 #define HAVE_CONIO 1
5388 _ACEOF
5389
5390
5391 else
5392    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5393 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5394 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5395   echo $ECHO_N "(cached) $ECHO_C" >&6
5396 else
5397   ac_check_lib_save_LIBS=$LIBS
5398 LIBS="-lncurses  $LIBS"
5399 cat >conftest.$ac_ext <<_ACEOF
5400 #line $LINENO "configure"
5401 /* confdefs.h.  */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h.  */
5406
5407 /* Override any gcc2 internal prototype to avoid an error.  */
5408 #ifdef __cplusplus
5409 extern "C"
5410 #endif
5411 /* We use char because int might match the return type of a gcc2
5412    builtin and then its argument prototype would still apply.  */
5413 char tgetent ();
5414 int
5415 main ()
5416 {
5417 tgetent ();
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424   (eval $ac_link) 2>&5
5425   ac_status=$?
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } &&
5428          { ac_try='test -s conftest$ac_exeext'
5429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430   (eval $ac_try) 2>&5
5431   ac_status=$?
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); }; }; then
5434   ac_cv_lib_ncurses_tgetent=yes
5435 else
5436   echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5438
5439 ac_cv_lib_ncurses_tgetent=no
5440 fi
5441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5442 LIBS=$ac_check_lib_save_LIBS
5443 fi
5444 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5445 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5446 if test $ac_cv_lib_ncurses_tgetent = yes; then
5447    CONS_LIBS="-lncurses"
5448            CONS_OBJ="conio.o"
5449            CONS_SRC="conio.c"
5450            got_conio="yes"
5451            support_readline=no
5452
5453 cat >>confdefs.h <<\_ACEOF
5454 #define HAVE_CONIO 1
5455 _ACEOF
5456
5457
5458 fi
5459
5460
5461 fi
5462
5463
5464 else
5465
5466
5467 for ac_header in curses.h
5468 do
5469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5471   echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474   echo $ECHO_N "(cached) $ECHO_C" >&6
5475 fi
5476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5478 else
5479   # Is the header compilable?
5480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5483 #line $LINENO "configure"
5484 /* confdefs.h.  */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h.  */
5489 $ac_includes_default
5490 #include <$ac_header>
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5494   (eval $ac_compile) 2>&5
5495   ac_status=$?
5496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497   (exit $ac_status); } &&
5498          { ac_try='test -s conftest.$ac_objext'
5499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5500   (eval $ac_try) 2>&5
5501   ac_status=$?
5502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503   (exit $ac_status); }; }; then
5504   ac_header_compiler=yes
5505 else
5506   echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5508
5509 ac_header_compiler=no
5510 fi
5511 rm -f conftest.$ac_objext conftest.$ac_ext
5512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5513 echo "${ECHO_T}$ac_header_compiler" >&6
5514
5515 # Is the header present?
5516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5520 /* confdefs.h.  */
5521 _ACEOF
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h.  */
5525 #include <$ac_header>
5526 _ACEOF
5527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5529   ac_status=$?
5530   grep -v '^ *+' conftest.er1 >conftest.err
5531   rm -f conftest.er1
5532   cat conftest.err >&5
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); } >/dev/null; then
5535   if test -s conftest.err; then
5536     ac_cpp_err=$ac_c_preproc_warn_flag
5537   else
5538     ac_cpp_err=
5539   fi
5540 else
5541   ac_cpp_err=yes
5542 fi
5543 if test -z "$ac_cpp_err"; then
5544   ac_header_preproc=yes
5545 else
5546   echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549   ac_header_preproc=no
5550 fi
5551 rm -f conftest.err conftest.$ac_ext
5552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5553 echo "${ECHO_T}$ac_header_preproc" >&6
5554
5555 # So?  What about this header?
5556 case $ac_header_compiler:$ac_header_preproc in
5557   yes:no )
5558     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5562     (
5563       cat <<\_ASBOX
5564 ## ------------------------------------ ##
5565 ## Report this to bug-autoconf@gnu.org. ##
5566 ## ------------------------------------ ##
5567 _ASBOX
5568     ) |
5569       sed "s/^/$as_me: WARNING:     /" >&2
5570     ;;
5571   no:yes )
5572     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5574     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5578     (
5579       cat <<\_ASBOX
5580 ## ------------------------------------ ##
5581 ## Report this to bug-autoconf@gnu.org. ##
5582 ## ------------------------------------ ##
5583 _ASBOX
5584     ) |
5585       sed "s/^/$as_me: WARNING:     /" >&2
5586     ;;
5587 esac
5588 echo "$as_me:$LINENO: checking for $ac_header" >&5
5589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5591   echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593   eval "$as_ac_Header=$ac_header_preproc"
5594 fi
5595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5597
5598 fi
5599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5600   cat >>confdefs.h <<_ACEOF
5601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5602 _ACEOF
5603
5604 fi
5605
5606 done
5607
5608          echo "$as_me:$LINENO: checking for term.h" >&5
5609 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5610 if test "${ac_cv_header_term_h+set}" = set; then
5611   echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613   cat >conftest.$ac_ext <<_ACEOF
5614 #line $LINENO "configure"
5615 /* confdefs.h.  */
5616 _ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h.  */
5620 #if HAVE_CURSES_H
5621 #include <curses.h>
5622 #endif
5623
5624
5625 #include <term.h>
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629   (eval $ac_compile) 2>&5
5630   ac_status=$?
5631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632   (exit $ac_status); } &&
5633          { ac_try='test -s conftest.$ac_objext'
5634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635   (eval $ac_try) 2>&5
5636   ac_status=$?
5637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); }; }; then
5639   ac_cv_header_term_h=yes
5640 else
5641   echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5643
5644 ac_cv_header_term_h=no
5645 fi
5646 rm -f conftest.$ac_objext conftest.$ac_ext
5647 fi
5648 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5649 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5650 if test $ac_cv_header_term_h = yes; then
5651    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5652 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5653 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5654   echo $ECHO_N "(cached) $ECHO_C" >&6
5655 else
5656   ac_check_lib_save_LIBS=$LIBS
5657 LIBS="-lcurses  $LIBS"
5658 cat >conftest.$ac_ext <<_ACEOF
5659 #line $LINENO "configure"
5660 /* confdefs.h.  */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h.  */
5665
5666 /* Override any gcc2 internal prototype to avoid an error.  */
5667 #ifdef __cplusplus
5668 extern "C"
5669 #endif
5670 /* We use char because int might match the return type of a gcc2
5671    builtin and then its argument prototype would still apply.  */
5672 char tgetent ();
5673 int
5674 main ()
5675 {
5676 tgetent ();
5677   ;
5678   return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683   (eval $ac_link) 2>&5
5684   ac_status=$?
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); } &&
5687          { ac_try='test -s conftest$ac_exeext'
5688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689   (eval $ac_try) 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); }; }; then
5693   ac_cv_lib_curses_tgetent=yes
5694 else
5695   echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5697
5698 ac_cv_lib_curses_tgetent=no
5699 fi
5700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5701 LIBS=$ac_check_lib_save_LIBS
5702 fi
5703 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5704 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5705 if test $ac_cv_lib_curses_tgetent = yes; then
5706    CONS_LIBS="-lcurses"
5707                    CONS_OBJ="conio.o"
5708                    CONS_SRC="conio.c"
5709                    got_conio="yes"
5710                    support_readline=no
5711
5712 cat >>confdefs.h <<\_ACEOF
5713 #define HAVE_CONIO 1
5714 _ACEOF
5715
5716
5717 fi
5718
5719
5720 else
5721    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5722 fi
5723
5724
5725
5726 fi
5727
5728
5729 fi
5730
5731
5732 # ---------------------------------------------------
5733 # Check for readline support/directory (default off)
5734 # ---------------------------------------------------
5735 # this allows you to turn it completely off
5736 # Check whether --enable-readline or --disable-readline was given.
5737 if test "${enable_readline+set}" = set; then
5738   enableval="$enable_readline"
5739   if test x$enableval = xno; then
5740     support_readline=no
5741   fi
5742 fi;
5743
5744 got_readline="no"
5745 READLINE_SRC=
5746 if test x$support_readline = xyes; then
5747
5748 # Check whether --with-readline or --without-readline was given.
5749 if test "${with_readline+set}" = set; then
5750   withval="$with_readline"
5751
5752         case "$with_readline" in
5753         no) : ;;
5754         yes|*)
5755           if test "$with_readline" != "yes"; then
5756             CONS_INC="-I${with_readline}"
5757             CONS_LDFLAGS="-L$with_readline"
5758           else
5759              with_readline="/usr/include/readline"
5760           fi
5761           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5763   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5764 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5766   echo $ECHO_N "(cached) $ECHO_C" >&6
5767 fi
5768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5770 else
5771   # Is the header compilable?
5772 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5773 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5775 #line $LINENO "configure"
5776 /* confdefs.h.  */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h.  */
5781 $ac_includes_default
5782 #include <${with_readline}/readline.h>
5783 _ACEOF
5784 rm -f conftest.$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786   (eval $ac_compile) 2>&5
5787   ac_status=$?
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); } &&
5790          { ac_try='test -s conftest.$ac_objext'
5791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792   (eval $ac_try) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; }; then
5796   ac_header_compiler=yes
5797 else
5798   echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5800
5801 ac_header_compiler=no
5802 fi
5803 rm -f conftest.$ac_objext conftest.$ac_ext
5804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5805 echo "${ECHO_T}$ac_header_compiler" >&6
5806
5807 # Is the header present?
5808 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5809 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5810 cat >conftest.$ac_ext <<_ACEOF
5811 #line $LINENO "configure"
5812 /* confdefs.h.  */
5813 _ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h.  */
5817 #include <${with_readline}/readline.h>
5818 _ACEOF
5819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5820   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5821   ac_status=$?
5822   grep -v '^ *+' conftest.er1 >conftest.err
5823   rm -f conftest.er1
5824   cat conftest.err >&5
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } >/dev/null; then
5827   if test -s conftest.err; then
5828     ac_cpp_err=$ac_c_preproc_warn_flag
5829   else
5830     ac_cpp_err=
5831   fi
5832 else
5833   ac_cpp_err=yes
5834 fi
5835 if test -z "$ac_cpp_err"; then
5836   ac_header_preproc=yes
5837 else
5838   echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5840
5841   ac_header_preproc=no
5842 fi
5843 rm -f conftest.err conftest.$ac_ext
5844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5845 echo "${ECHO_T}$ac_header_preproc" >&6
5846
5847 # So?  What about this header?
5848 case $ac_header_compiler:$ac_header_preproc in
5849   yes:no )
5850     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5851 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5852     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5853 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5854     (
5855       cat <<\_ASBOX
5856 ## ------------------------------------ ##
5857 ## Report this to bug-autoconf@gnu.org. ##
5858 ## ------------------------------------ ##
5859 _ASBOX
5860     ) |
5861       sed "s/^/$as_me: WARNING:     /" >&2
5862     ;;
5863   no:yes )
5864     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5865 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5866     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5867 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5868     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5869 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5870     (
5871       cat <<\_ASBOX
5872 ## ------------------------------------ ##
5873 ## Report this to bug-autoconf@gnu.org. ##
5874 ## ------------------------------------ ##
5875 _ASBOX
5876     ) |
5877       sed "s/^/$as_me: WARNING:     /" >&2
5878     ;;
5879 esac
5880 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5881 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   eval "$as_ac_Header=$ac_header_preproc"
5886 fi
5887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5889
5890 fi
5891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5892    cat >>confdefs.h <<\_ACEOF
5893 #define HAVE_READLINE 1
5894 _ACEOF
5895
5896                CONS_LIBS="-lreadline -ltermcap"
5897                got_readline="yes"
5898
5899 else
5900    echo " "
5901                echo "readline.h not found. readline turned off ..."
5902                echo " "
5903
5904
5905 fi
5906
5907
5908           ;;
5909         esac
5910
5911 else
5912
5913        # check for standard readline library
5914        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5915   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5916 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5917 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5918   echo $ECHO_N "(cached) $ECHO_C" >&6
5919 fi
5920 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5921 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5922 else
5923   # Is the header compilable?
5924 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5925 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5926 cat >conftest.$ac_ext <<_ACEOF
5927 #line $LINENO "configure"
5928 /* confdefs.h.  */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h.  */
5933 $ac_includes_default
5934 #include </usr/include/readline/readline.h>
5935 _ACEOF
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938   (eval $ac_compile) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); } &&
5942          { ac_try='test -s conftest.$ac_objext'
5943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5944   (eval $ac_try) 2>&5
5945   ac_status=$?
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); }; }; then
5948   ac_header_compiler=yes
5949 else
5950   echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5952
5953 ac_header_compiler=no
5954 fi
5955 rm -f conftest.$ac_objext conftest.$ac_ext
5956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5957 echo "${ECHO_T}$ac_header_compiler" >&6
5958
5959 # Is the header present?
5960 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5961 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5962 cat >conftest.$ac_ext <<_ACEOF
5963 #line $LINENO "configure"
5964 /* confdefs.h.  */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h.  */
5969 #include </usr/include/readline/readline.h>
5970 _ACEOF
5971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5973   ac_status=$?
5974   grep -v '^ *+' conftest.er1 >conftest.err
5975   rm -f conftest.er1
5976   cat conftest.err >&5
5977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978   (exit $ac_status); } >/dev/null; then
5979   if test -s conftest.err; then
5980     ac_cpp_err=$ac_c_preproc_warn_flag
5981   else
5982     ac_cpp_err=
5983   fi
5984 else
5985   ac_cpp_err=yes
5986 fi
5987 if test -z "$ac_cpp_err"; then
5988   ac_header_preproc=yes
5989 else
5990   echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993   ac_header_preproc=no
5994 fi
5995 rm -f conftest.err conftest.$ac_ext
5996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5997 echo "${ECHO_T}$ac_header_preproc" >&6
5998
5999 # So?  What about this header?
6000 case $ac_header_compiler:$ac_header_preproc in
6001   yes:no )
6002     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6003 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6004     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6005 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6006     (
6007       cat <<\_ASBOX
6008 ## ------------------------------------ ##
6009 ## Report this to bug-autoconf@gnu.org. ##
6010 ## ------------------------------------ ##
6011 _ASBOX
6012     ) |
6013       sed "s/^/$as_me: WARNING:     /" >&2
6014     ;;
6015   no:yes )
6016     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6017 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6018     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6019 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6020     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6021 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6022     (
6023       cat <<\_ASBOX
6024 ## ------------------------------------ ##
6025 ## Report this to bug-autoconf@gnu.org. ##
6026 ## ------------------------------------ ##
6027 _ASBOX
6028     ) |
6029       sed "s/^/$as_me: WARNING:     /" >&2
6030     ;;
6031 esac
6032 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6033 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6034 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6035   echo $ECHO_N "(cached) $ECHO_C" >&6
6036 else
6037   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6038 fi
6039 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6040 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6041
6042 fi
6043 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6044    cat >>confdefs.h <<\_ACEOF
6045 #define HAVE_READLINE 1
6046 _ACEOF
6047
6048            got_readline="yes"
6049            CONS_INC="-I/usr/include/readline"
6050            CONS_LIBS="-lreadline -ltermcap"
6051
6052 else
6053
6054            # Did not find standard library, so try Bacula's default
6055             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6058 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6060   echo $ECHO_N "(cached) $ECHO_C" >&6
6061 fi
6062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6064 else
6065   # Is the header compilable?
6066 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6067 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6068 cat >conftest.$ac_ext <<_ACEOF
6069 #line $LINENO "configure"
6070 /* confdefs.h.  */
6071 _ACEOF
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h.  */
6075 $ac_includes_default
6076 #include <${TOP_DIR}/depkgs/readline/readline.h>
6077 _ACEOF
6078 rm -f conftest.$ac_objext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080   (eval $ac_compile) 2>&5
6081   ac_status=$?
6082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083   (exit $ac_status); } &&
6084          { ac_try='test -s conftest.$ac_objext'
6085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086   (eval $ac_try) 2>&5
6087   ac_status=$?
6088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089   (exit $ac_status); }; }; then
6090   ac_header_compiler=yes
6091 else
6092   echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095 ac_header_compiler=no
6096 fi
6097 rm -f conftest.$ac_objext conftest.$ac_ext
6098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6099 echo "${ECHO_T}$ac_header_compiler" >&6
6100
6101 # Is the header present?
6102 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6103 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6104 cat >conftest.$ac_ext <<_ACEOF
6105 #line $LINENO "configure"
6106 /* confdefs.h.  */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h.  */
6111 #include <${TOP_DIR}/depkgs/readline/readline.h>
6112 _ACEOF
6113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6114   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6115   ac_status=$?
6116   grep -v '^ *+' conftest.er1 >conftest.err
6117   rm -f conftest.er1
6118   cat conftest.err >&5
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); } >/dev/null; then
6121   if test -s conftest.err; then
6122     ac_cpp_err=$ac_c_preproc_warn_flag
6123   else
6124     ac_cpp_err=
6125   fi
6126 else
6127   ac_cpp_err=yes
6128 fi
6129 if test -z "$ac_cpp_err"; then
6130   ac_header_preproc=yes
6131 else
6132   echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6134
6135   ac_header_preproc=no
6136 fi
6137 rm -f conftest.err conftest.$ac_ext
6138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6139 echo "${ECHO_T}$ac_header_preproc" >&6
6140
6141 # So?  What about this header?
6142 case $ac_header_compiler:$ac_header_preproc in
6143   yes:no )
6144     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6145 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6146     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6147 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6148     (
6149       cat <<\_ASBOX
6150 ## ------------------------------------ ##
6151 ## Report this to bug-autoconf@gnu.org. ##
6152 ## ------------------------------------ ##
6153 _ASBOX
6154     ) |
6155       sed "s/^/$as_me: WARNING:     /" >&2
6156     ;;
6157   no:yes )
6158     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6159 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6160     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6161 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6162     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6163 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6164     (
6165       cat <<\_ASBOX
6166 ## ------------------------------------ ##
6167 ## Report this to bug-autoconf@gnu.org. ##
6168 ## ------------------------------------ ##
6169 _ASBOX
6170     ) |
6171       sed "s/^/$as_me: WARNING:     /" >&2
6172     ;;
6173 esac
6174 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6175 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   eval "$as_ac_Header=$ac_header_preproc"
6180 fi
6181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6183
6184 fi
6185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6186    cat >>confdefs.h <<\_ACEOF
6187 #define HAVE_READLINE 1
6188 _ACEOF
6189
6190                  got_readline="yes"
6191                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6192                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6193                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6194                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6195
6196 else
6197    echo " "
6198                 echo "readline.h not found. readline turned off ..."
6199                 echo " "
6200
6201
6202 fi
6203
6204
6205
6206
6207 fi
6208
6209
6210
6211
6212 fi;
6213 fi
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224 # Minimal stuff for readline Makefile configuration
6225 MAKE_SHELL=/bin/sh
6226
6227 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6228 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6229 if test "${ac_cv_header_stat_broken+set}" = set; then
6230   echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232   cat >conftest.$ac_ext <<_ACEOF
6233 #line $LINENO "configure"
6234 /* confdefs.h.  */
6235 _ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h.  */
6239 #include <sys/types.h>
6240 #include <sys/stat.h>
6241
6242 #if defined(S_ISBLK) && defined(S_IFDIR)
6243 # if S_ISBLK (S_IFDIR)
6244 You lose.
6245 # endif
6246 #endif
6247
6248 #if defined(S_ISBLK) && defined(S_IFCHR)
6249 # if S_ISBLK (S_IFCHR)
6250 You lose.
6251 # endif
6252 #endif
6253
6254 #if defined(S_ISLNK) && defined(S_IFREG)
6255 # if S_ISLNK (S_IFREG)
6256 You lose.
6257 # endif
6258 #endif
6259
6260 #if defined(S_ISSOCK) && defined(S_IFREG)
6261 # if S_ISSOCK (S_IFREG)
6262 You lose.
6263 # endif
6264 #endif
6265
6266 _ACEOF
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268   $EGREP "You lose" >/dev/null 2>&1; then
6269   ac_cv_header_stat_broken=yes
6270 else
6271   ac_cv_header_stat_broken=no
6272 fi
6273 rm -f conftest*
6274
6275 fi
6276 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6277 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6278 if test $ac_cv_header_stat_broken = yes; then
6279
6280 cat >>confdefs.h <<\_ACEOF
6281 #define STAT_MACROS_BROKEN 1
6282 _ACEOF
6283
6284 fi
6285
6286
6287
6288
6289
6290
6291 ac_header_dirent=no
6292 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6293   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6294 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6295 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6297   echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299   cat >conftest.$ac_ext <<_ACEOF
6300 #line $LINENO "configure"
6301 /* confdefs.h.  */
6302 _ACEOF
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h.  */
6306 #include <sys/types.h>
6307 #include <$ac_hdr>
6308
6309 int
6310 main ()
6311 {
6312 if ((DIR *) 0)
6313 return 0;
6314   ;
6315   return 0;
6316 }
6317 _ACEOF
6318 rm -f conftest.$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320   (eval $ac_compile) 2>&5
6321   ac_status=$?
6322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323   (exit $ac_status); } &&
6324          { ac_try='test -s conftest.$ac_objext'
6325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6326   (eval $ac_try) 2>&5
6327   ac_status=$?
6328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329   (exit $ac_status); }; }; then
6330   eval "$as_ac_Header=yes"
6331 else
6332   echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335 eval "$as_ac_Header=no"
6336 fi
6337 rm -f conftest.$ac_objext conftest.$ac_ext
6338 fi
6339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6342   cat >>confdefs.h <<_ACEOF
6343 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6344 _ACEOF
6345
6346 ac_header_dirent=$ac_hdr; break
6347 fi
6348
6349 done
6350 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6351 if test $ac_header_dirent = dirent.h; then
6352   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6353 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6354 if test "${ac_cv_search_opendir+set}" = set; then
6355   echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357   ac_func_search_save_LIBS=$LIBS
6358 ac_cv_search_opendir=no
6359 cat >conftest.$ac_ext <<_ACEOF
6360 #line $LINENO "configure"
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366
6367 /* Override any gcc2 internal prototype to avoid an error.  */
6368 #ifdef __cplusplus
6369 extern "C"
6370 #endif
6371 /* We use char because int might match the return type of a gcc2
6372    builtin and then its argument prototype would still apply.  */
6373 char opendir ();
6374 int
6375 main ()
6376 {
6377 opendir ();
6378   ;
6379   return 0;
6380 }
6381 _ACEOF
6382 rm -f conftest.$ac_objext conftest$ac_exeext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6384   (eval $ac_link) 2>&5
6385   ac_status=$?
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); } &&
6388          { ac_try='test -s conftest$ac_exeext'
6389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390   (eval $ac_try) 2>&5
6391   ac_status=$?
6392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393   (exit $ac_status); }; }; then
6394   ac_cv_search_opendir="none required"
6395 else
6396   echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6398
6399 fi
6400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6401 if test "$ac_cv_search_opendir" = no; then
6402   for ac_lib in dir; do
6403     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6404     cat >conftest.$ac_ext <<_ACEOF
6405 #line $LINENO "configure"
6406 /* confdefs.h.  */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h.  */
6411
6412 /* Override any gcc2 internal prototype to avoid an error.  */
6413 #ifdef __cplusplus
6414 extern "C"
6415 #endif
6416 /* We use char because int might match the return type of a gcc2
6417    builtin and then its argument prototype would still apply.  */
6418 char opendir ();
6419 int
6420 main ()
6421 {
6422 opendir ();
6423   ;
6424   return 0;
6425 }
6426 _ACEOF
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429   (eval $ac_link) 2>&5
6430   ac_status=$?
6431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432   (exit $ac_status); } &&
6433          { ac_try='test -s conftest$ac_exeext'
6434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6435   (eval $ac_try) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); }; }; then
6439   ac_cv_search_opendir="-l$ac_lib"
6440 break
6441 else
6442   echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 fi
6446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6447   done
6448 fi
6449 LIBS=$ac_func_search_save_LIBS
6450 fi
6451 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6452 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6453 if test "$ac_cv_search_opendir" != no; then
6454   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6455
6456 fi
6457
6458 else
6459   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6460 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6461 if test "${ac_cv_search_opendir+set}" = set; then
6462   echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464   ac_func_search_save_LIBS=$LIBS
6465 ac_cv_search_opendir=no
6466 cat >conftest.$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6468 /* confdefs.h.  */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h.  */
6473
6474 /* Override any gcc2 internal prototype to avoid an error.  */
6475 #ifdef __cplusplus
6476 extern "C"
6477 #endif
6478 /* We use char because int might match the return type of a gcc2
6479    builtin and then its argument prototype would still apply.  */
6480 char opendir ();
6481 int
6482 main ()
6483 {
6484 opendir ();
6485   ;
6486   return 0;
6487 }
6488 _ACEOF
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491   (eval $ac_link) 2>&5
6492   ac_status=$?
6493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494   (exit $ac_status); } &&
6495          { ac_try='test -s conftest$ac_exeext'
6496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6497   (eval $ac_try) 2>&5
6498   ac_status=$?
6499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500   (exit $ac_status); }; }; then
6501   ac_cv_search_opendir="none required"
6502 else
6503   echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506 fi
6507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6508 if test "$ac_cv_search_opendir" = no; then
6509   for ac_lib in x; do
6510     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6511     cat >conftest.$ac_ext <<_ACEOF
6512 #line $LINENO "configure"
6513 /* confdefs.h.  */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h.  */
6518
6519 /* Override any gcc2 internal prototype to avoid an error.  */
6520 #ifdef __cplusplus
6521 extern "C"
6522 #endif
6523 /* We use char because int might match the return type of a gcc2
6524    builtin and then its argument prototype would still apply.  */
6525 char opendir ();
6526 int
6527 main ()
6528 {
6529 opendir ();
6530   ;
6531   return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext conftest$ac_exeext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536   (eval $ac_link) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); } &&
6540          { ac_try='test -s conftest$ac_exeext'
6541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542   (eval $ac_try) 2>&5
6543   ac_status=$?
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); }; }; then
6546   ac_cv_search_opendir="-l$ac_lib"
6547 break
6548 else
6549   echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 fi
6553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6554   done
6555 fi
6556 LIBS=$ac_func_search_save_LIBS
6557 fi
6558 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6559 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6560 if test "$ac_cv_search_opendir" != no; then
6561   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6562
6563 fi
6564
6565 fi
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6576 do
6577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6578 echo "$as_me:$LINENO: checking for $ac_func" >&5
6579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6580 if eval "test \"\${$as_ac_var+set}\" = set"; then
6581   echo $ECHO_N "(cached) $ECHO_C" >&6
6582 else
6583   cat >conftest.$ac_ext <<_ACEOF
6584 #line $LINENO "configure"
6585 /* confdefs.h.  */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h.  */
6590 /* System header to define __stub macros and hopefully few prototypes,
6591     which can conflict with char $ac_func (); below.
6592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6593     <limits.h> exists even on freestanding compilers.  */
6594 #ifdef __STDC__
6595 # include <limits.h>
6596 #else
6597 # include <assert.h>
6598 #endif
6599 /* Override any gcc2 internal prototype to avoid an error.  */
6600 #ifdef __cplusplus
6601 extern "C"
6602 {
6603 #endif
6604 /* We use char because int might match the return type of a gcc2
6605    builtin and then its argument prototype would still apply.  */
6606 char $ac_func ();
6607 /* The GNU C library defines this for functions which it implements
6608     to always fail with ENOSYS.  Some functions are actually named
6609     something starting with __ and the normal name is an alias.  */
6610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6611 choke me
6612 #else
6613 char (*f) () = $ac_func;
6614 #endif
6615 #ifdef __cplusplus
6616 }
6617 #endif
6618
6619 int
6620 main ()
6621 {
6622 return f != $ac_func;
6623   ;
6624   return 0;
6625 }
6626 _ACEOF
6627 rm -f conftest.$ac_objext conftest$ac_exeext
6628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6629   (eval $ac_link) 2>&5
6630   ac_status=$?
6631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632   (exit $ac_status); } &&
6633          { ac_try='test -s conftest$ac_exeext'
6634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6635   (eval $ac_try) 2>&5
6636   ac_status=$?
6637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638   (exit $ac_status); }; }; then
6639   eval "$as_ac_var=yes"
6640 else
6641   echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6643
6644 eval "$as_ac_var=no"
6645 fi
6646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6647 fi
6648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6650 if test `eval echo '${'$as_ac_var'}'` = yes; then
6651   cat >>confdefs.h <<_ACEOF
6652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6653 _ACEOF
6654
6655 fi
6656 done
6657
6658
6659
6660 for ac_func in nanosleep nl_langinfo
6661 do
6662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6663 echo "$as_me:$LINENO: checking for $ac_func" >&5
6664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6665 if eval "test \"\${$as_ac_var+set}\" = set"; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   cat >conftest.$ac_ext <<_ACEOF
6669 #line $LINENO "configure"
6670 /* confdefs.h.  */
6671 _ACEOF
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h.  */
6675 /* System header to define __stub macros and hopefully few prototypes,
6676     which can conflict with char $ac_func (); below.
6677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6678     <limits.h> exists even on freestanding compilers.  */
6679 #ifdef __STDC__
6680 # include <limits.h>
6681 #else
6682 # include <assert.h>
6683 #endif
6684 /* Override any gcc2 internal prototype to avoid an error.  */
6685 #ifdef __cplusplus
6686 extern "C"
6687 {
6688 #endif
6689 /* We use char because int might match the return type of a gcc2
6690    builtin and then its argument prototype would still apply.  */
6691 char $ac_func ();
6692 /* The GNU C library defines this for functions which it implements
6693     to always fail with ENOSYS.  Some functions are actually named
6694     something starting with __ and the normal name is an alias.  */
6695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6696 choke me
6697 #else
6698 char (*f) () = $ac_func;
6699 #endif
6700 #ifdef __cplusplus
6701 }
6702 #endif
6703
6704 int
6705 main ()
6706 {
6707 return f != $ac_func;
6708   ;
6709   return 0;
6710 }
6711 _ACEOF
6712 rm -f conftest.$ac_objext conftest$ac_exeext
6713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714   (eval $ac_link) 2>&5
6715   ac_status=$?
6716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717   (exit $ac_status); } &&
6718          { ac_try='test -s conftest$ac_exeext'
6719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720   (eval $ac_try) 2>&5
6721   ac_status=$?
6722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723   (exit $ac_status); }; }; then
6724   eval "$as_ac_var=yes"
6725 else
6726   echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6728
6729 eval "$as_ac_var=no"
6730 fi
6731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6732 fi
6733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6735 if test `eval echo '${'$as_ac_var'}'` = yes; then
6736   cat >>confdefs.h <<_ACEOF
6737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6738 _ACEOF
6739
6740 fi
6741 done
6742
6743
6744 for ac_header in varargs.h
6745 do
6746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748   echo "$as_me:$LINENO: checking for $ac_header" >&5
6749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6751   echo $ECHO_N "(cached) $ECHO_C" >&6
6752 fi
6753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6755 else
6756   # Is the header compilable?
6757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6759 cat >conftest.$ac_ext <<_ACEOF
6760 #line $LINENO "configure"
6761 /* confdefs.h.  */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h.  */
6766 $ac_includes_default
6767 #include <$ac_header>
6768 _ACEOF
6769 rm -f conftest.$ac_objext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771   (eval $ac_compile) 2>&5
6772   ac_status=$?
6773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774   (exit $ac_status); } &&
6775          { ac_try='test -s conftest.$ac_objext'
6776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777   (eval $ac_try) 2>&5
6778   ac_status=$?
6779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780   (exit $ac_status); }; }; then
6781   ac_header_compiler=yes
6782 else
6783   echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6785
6786 ac_header_compiler=no
6787 fi
6788 rm -f conftest.$ac_objext conftest.$ac_ext
6789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6790 echo "${ECHO_T}$ac_header_compiler" >&6
6791
6792 # Is the header present?
6793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6795 cat >conftest.$ac_ext <<_ACEOF
6796 #line $LINENO "configure"
6797 /* confdefs.h.  */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h.  */
6802 #include <$ac_header>
6803 _ACEOF
6804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6805   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6806   ac_status=$?
6807   grep -v '^ *+' conftest.er1 >conftest.err
6808   rm -f conftest.er1
6809   cat conftest.err >&5
6810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811   (exit $ac_status); } >/dev/null; then
6812   if test -s conftest.err; then
6813     ac_cpp_err=$ac_c_preproc_warn_flag
6814   else
6815     ac_cpp_err=
6816   fi
6817 else
6818   ac_cpp_err=yes
6819 fi
6820 if test -z "$ac_cpp_err"; then
6821   ac_header_preproc=yes
6822 else
6823   echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826   ac_header_preproc=no
6827 fi
6828 rm -f conftest.err conftest.$ac_ext
6829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6830 echo "${ECHO_T}$ac_header_preproc" >&6
6831
6832 # So?  What about this header?
6833 case $ac_header_compiler:$ac_header_preproc in
6834   yes:no )
6835     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6839     (
6840       cat <<\_ASBOX
6841 ## ------------------------------------ ##
6842 ## Report this to bug-autoconf@gnu.org. ##
6843 ## ------------------------------------ ##
6844 _ASBOX
6845     ) |
6846       sed "s/^/$as_me: WARNING:     /" >&2
6847     ;;
6848   no:yes )
6849     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6851     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6855     (
6856       cat <<\_ASBOX
6857 ## ------------------------------------ ##
6858 ## Report this to bug-autoconf@gnu.org. ##
6859 ## ------------------------------------ ##
6860 _ASBOX
6861     ) |
6862       sed "s/^/$as_me: WARNING:     /" >&2
6863     ;;
6864 esac
6865 echo "$as_me:$LINENO: checking for $ac_header" >&5
6866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   eval "$as_ac_Header=$ac_header_preproc"
6871 fi
6872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6874
6875 fi
6876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6877   cat >>confdefs.h <<_ACEOF
6878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6879 _ACEOF
6880
6881 fi
6882
6883 done
6884
6885
6886 # End of readline/conio stuff
6887 # -----------------------------------------------------------------------
6888
6889 # -----------------------------------------------------------------------
6890 #  Check for Python support
6891 #
6892 echo "$as_me:$LINENO: checking for Python support" >&5
6893 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
6894
6895 # Check whether --with-python or --without-python was given.
6896 if test "${with_python+set}" = set; then
6897   withval="$with_python"
6898
6899   PYTHON_INCDIR=
6900   PYTHON_LIBS=
6901   if test "$withval" != "no"; then
6902      if test "$withval" = "yes"; then
6903         if test -f /usr/include/python2.2/Python.h; then
6904            PYTHON_INCDIR=-I/usr/include/python2.2
6905            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
6906         elif test -f /usr/include/python2.3/Python.h; then
6907            PYTHON_INCDIR=-I/usr/include/python2.3
6908            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
6909         elif test -f $prefix/include/Python.h; then
6910            PYTHON_INCDIR=-I$prefix/include
6911            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
6912         else
6913            echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6
6915            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
6916 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
6917    { (exit 1); exit 1; }; }
6918         fi
6919      else
6920         if test -f $withval/Python.h; then
6921            PYTHON_INCDIR=-I$withval
6922            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
6923         elif test -f $withval/include/Python.h; then
6924            PYTHON_INCDIR=-I$withval/include
6925            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
6926         else
6927            echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6
6929            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
6930 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
6931    { (exit 1); exit 1; }; }
6932         fi
6933      fi
6934      cat >>confdefs.h <<\_ACEOF
6935 #define HAVE_PYTHON 1
6936 _ACEOF
6937
6938      echo "$as_me:$LINENO: result: yes" >&5
6939 echo "${ECHO_T}yes" >&6
6940      support_python=yes
6941
6942   else
6943      echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6
6945   fi
6946
6947 else
6948
6949   echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6
6951
6952 fi;
6953
6954
6955
6956
6957 # -------------------------------------------
6958 # check for cdrecord writer location
6959 # get scsibus,target,lun
6960 # -------------------------------------------
6961 CDSTL="3,0,0"
6962 if test ! x$CDRECORD = x ; then
6963    CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
6964    if test x${CDSTL} = x ; then
6965       CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
6966    fi
6967    if test x${CDSTL} = x ; then
6968       CDSTL="3,0,0"
6969    fi
6970 fi
6971
6972
6973
6974 # ---------------------------------------------------
6975 # Check for GMP support/directory
6976 # ---------------------------------------------------
6977 #GMP_SRC=
6978 #local_gmp="no"
6979 #AC_ARG_WITH(gmp,
6980 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6981 #  [
6982 #     case "$with_gmp" in
6983 #     no) : ;;
6984 #     yes|*)
6985 #       if test "$with_gmp" != "yes"; then
6986 #         GMP_INC="-I$with_gmp"
6987 #         GMP_LIBS="-lgmp"
6988 #         GMP_LDFLAGS="-L$with_gmp"
6989 #       else
6990 #          with_gmp="/usr/include"
6991 #       fi
6992 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6993 #          [ AC_MSG_RESULT(yes)
6994 #            AC_DEFINE(HAVE_GMP)
6995 #            GMP_LIBS="-lgmp"
6996 #            got_gmp="yes"
6997 #          ],
6998 #          [ AC_MSG_ERROR([*** gmp library missing])
6999 #          ]
7000 #       )
7001 #       ;;
7002 #     esac
7003 #  ],[
7004 #    # check for standard gmp library
7005 #    AC_CHECK_HEADER(/usr/include/gmp.h,
7006 #    [ AC_MSG_RESULT(yes)
7007 #      AC_DEFINE(HAVE_GMP)
7008 #      got_gmp="yes"
7009 #      GMP_INC=
7010 #      GMP_LIBS="-lgmp"
7011 #    ], [
7012 #      # Did not find standard library, so use our own
7013 #      AC_MSG_RESULT(yes)
7014 #      AC_DEFINE(HAVE_GMP)
7015 #      got_gmp="yes"
7016 #      local_gmp="yes"
7017 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7018 #      GMP_LIBS="-lgmp"
7019 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7020 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
7021 #    ])
7022 #  ]
7023 #)
7024 #AC_SUBST(GMP_INC)
7025 #AC_SUBST(GMP_LIBS)
7026 #AC_SUBST(GMP_LDFLAGS)
7027 #AC_SUBST(GMP_SRC)
7028
7029 # End of GMP stuff
7030 # -----------------------------------------------------------------------
7031
7032
7033 # ---------------------------------------------------
7034 # Check for CWEB support/directory
7035 # ---------------------------------------------------
7036 #CWEB_SRC=
7037 #CWEB=/bin
7038 #local_cweb="no"
7039 #AC_ARG_WITH(cweb,
7040 #  [  --with-cweb[=DIR]   Specify cweb library directory],
7041 #  [
7042 #     case "$with_cweb" in
7043 #     no) : ;;
7044 #     yes|*)
7045 #       if test "$with_cweb" != "yes"; then
7046 #         CWEB_INC="-I$with_cweb"
7047 #         CWEB_LIBS="-lcweb"
7048 #         CWEB_LDFLAGS="-L$with_cweb"
7049 #       else
7050 #          with_cweb="/usr/include"
7051 #       fi
7052 #       AC_CHECK_HEADER($with_cweb/cweb.h,
7053 #          [ AC_MSG_RESULT(yes)
7054 #            AC_DEFINE(HAVE_CWEB)
7055 #            CWEB_LIBS="-lcweb"
7056 #            got_cweb="yes"
7057 #          ],
7058 #          [ AC_MSG_ERROR([*** cweb library missing])
7059 #          ]
7060 #       )
7061 #       ;;
7062 #     esac
7063 #  ],[
7064 #    # check for standard cweb library
7065 #    AC_CHECK_HEADER(/usr/include/cweb.h,
7066 #    [ AC_MSG_RESULT(yes)
7067 #      AC_DEFINE(HAVE_CWEB)
7068 #      got_cweb="yes"
7069 #      CWEB_INC=
7070 #      CWEB_LIBS="-lcweb"
7071 #    ], [
7072 #      # Did not find starndard library, so use our own
7073 #      AC_MSG_RESULT(yes)
7074 #      AC_DEFINE(HAVE_CWEB)
7075 #      got_cweb="yes"
7076 #      local_cweb="yes"
7077 #      CWEB=${TOP_DIR}/depkgs/cweb
7078 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7079 #      CWEB_LIBS="-lcweb"
7080 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7081 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7082 #    ])
7083 #  ]
7084 #)
7085 #AC_SUBST(CWEB)
7086 #AC_SUBST(CWEB_INC)
7087 #AC_SUBST(CWEB_LIBS)
7088 #AC_SUBST(CWEB_LDFLAGS)
7089 #AC_SUBST(CWEB_SRC)
7090
7091 # End of CWEB stuff
7092 # -----------------------------------------------------------------------
7093
7094 #
7095 # Find where sockets are (especially for Solaris)
7096 # Do this before the TCP Wrappers test since tcp wrappers
7097 # uses the socket library and some linkers are stupid.
7098 #
7099 echo "$as_me:$LINENO: checking for socket" >&5
7100 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7101 if test "${ac_cv_func_socket+set}" = set; then
7102   echo $ECHO_N "(cached) $ECHO_C" >&6
7103 else
7104   cat >conftest.$ac_ext <<_ACEOF
7105 #line $LINENO "configure"
7106 /* confdefs.h.  */
7107 _ACEOF
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h.  */
7111 /* System header to define __stub macros and hopefully few prototypes,
7112     which can conflict with char socket (); below.
7113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7114     <limits.h> exists even on freestanding compilers.  */
7115 #ifdef __STDC__
7116 # include <limits.h>
7117 #else
7118 # include <assert.h>
7119 #endif
7120 /* Override any gcc2 internal prototype to avoid an error.  */
7121 #ifdef __cplusplus
7122 extern "C"
7123 {
7124 #endif
7125 /* We use char because int might match the return type of a gcc2
7126    builtin and then its argument prototype would still apply.  */
7127 char socket ();
7128 /* The GNU C library defines this for functions which it implements
7129     to always fail with ENOSYS.  Some functions are actually named
7130     something starting with __ and the normal name is an alias.  */
7131 #if defined (__stub_socket) || defined (__stub___socket)
7132 choke me
7133 #else
7134 char (*f) () = socket;
7135 #endif
7136 #ifdef __cplusplus
7137 }
7138 #endif
7139
7140 int
7141 main ()
7142 {
7143 return f != socket;
7144   ;
7145   return 0;
7146 }
7147 _ACEOF
7148 rm -f conftest.$ac_objext conftest$ac_exeext
7149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7150   (eval $ac_link) 2>&5
7151   ac_status=$?
7152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153   (exit $ac_status); } &&
7154          { ac_try='test -s conftest$ac_exeext'
7155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156   (eval $ac_try) 2>&5
7157   ac_status=$?
7158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159   (exit $ac_status); }; }; then
7160   ac_cv_func_socket=yes
7161 else
7162   echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7164
7165 ac_cv_func_socket=no
7166 fi
7167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7168 fi
7169 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7170 echo "${ECHO_T}$ac_cv_func_socket" >&6
7171 if test $ac_cv_func_socket = yes; then
7172   echo "$as_me:$LINENO: result: using libc's socket" >&5
7173 echo "${ECHO_T}using libc's socket" >&6
7174 else
7175
7176 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7177 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7178 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7179   echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181   ac_check_lib_save_LIBS=$LIBS
7182 LIBS="-lxnet  $LIBS"
7183 cat >conftest.$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7185 /* confdefs.h.  */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h.  */
7190
7191 /* Override any gcc2 internal prototype to avoid an error.  */
7192 #ifdef __cplusplus
7193 extern "C"
7194 #endif
7195 /* We use char because int might match the return type of a gcc2
7196    builtin and then its argument prototype would still apply.  */
7197 char socket ();
7198 int
7199 main ()
7200 {
7201 socket ();
7202   ;
7203   return 0;
7204 }
7205 _ACEOF
7206 rm -f conftest.$ac_objext conftest$ac_exeext
7207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7208   (eval $ac_link) 2>&5
7209   ac_status=$?
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); } &&
7212          { ac_try='test -s conftest$ac_exeext'
7213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214   (eval $ac_try) 2>&5
7215   ac_status=$?
7216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217   (exit $ac_status); }; }; then
7218   ac_cv_lib_xnet_socket=yes
7219 else
7220   echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7222
7223 ac_cv_lib_xnet_socket=no
7224 fi
7225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7226 LIBS=$ac_check_lib_save_LIBS
7227 fi
7228 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7229 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7230 if test $ac_cv_lib_xnet_socket = yes; then
7231   cat >>confdefs.h <<_ACEOF
7232 #define HAVE_LIBXNET 1
7233 _ACEOF
7234
7235   LIBS="-lxnet $LIBS"
7236
7237 fi
7238
7239
7240 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7241 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7242 if test "${ac_cv_lib_socket_socket+set}" = set; then
7243   echo $ECHO_N "(cached) $ECHO_C" >&6
7244 else
7245   ac_check_lib_save_LIBS=$LIBS
7246 LIBS="-lsocket  $LIBS"
7247 cat >conftest.$ac_ext <<_ACEOF
7248 #line $LINENO "configure"
7249 /* confdefs.h.  */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h.  */
7254
7255 /* Override any gcc2 internal prototype to avoid an error.  */
7256 #ifdef __cplusplus
7257 extern "C"
7258 #endif
7259 /* We use char because int might match the return type of a gcc2
7260    builtin and then its argument prototype would still apply.  */
7261 char socket ();
7262 int
7263 main ()
7264 {
7265 socket ();
7266   ;
7267   return 0;
7268 }
7269 _ACEOF
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7272   (eval $ac_link) 2>&5
7273   ac_status=$?
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); } &&
7276          { ac_try='test -s conftest$ac_exeext'
7277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7278   (eval $ac_try) 2>&5
7279   ac_status=$?
7280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); }; }; then
7282   ac_cv_lib_socket_socket=yes
7283 else
7284   echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7286
7287 ac_cv_lib_socket_socket=no
7288 fi
7289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7290 LIBS=$ac_check_lib_save_LIBS
7291 fi
7292 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7293 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7294 if test $ac_cv_lib_socket_socket = yes; then
7295   cat >>confdefs.h <<_ACEOF
7296 #define HAVE_LIBSOCKET 1
7297 _ACEOF
7298
7299   LIBS="-lsocket $LIBS"
7300
7301 fi
7302
7303
7304 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7305 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7306 if test "${ac_cv_lib_inet_socket+set}" = set; then
7307   echo $ECHO_N "(cached) $ECHO_C" >&6
7308 else
7309   ac_check_lib_save_LIBS=$LIBS
7310 LIBS="-linet  $LIBS"
7311 cat >conftest.$ac_ext <<_ACEOF
7312 #line $LINENO "configure"
7313 /* confdefs.h.  */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h.  */
7318
7319 /* Override any gcc2 internal prototype to avoid an error.  */
7320 #ifdef __cplusplus
7321 extern "C"
7322 #endif
7323 /* We use char because int might match the return type of a gcc2
7324    builtin and then its argument prototype would still apply.  */
7325 char socket ();
7326 int
7327 main ()
7328 {
7329 socket ();
7330   ;
7331   return 0;
7332 }
7333 _ACEOF
7334 rm -f conftest.$ac_objext conftest$ac_exeext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7336   (eval $ac_link) 2>&5
7337   ac_status=$?
7338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339   (exit $ac_status); } &&
7340          { ac_try='test -s conftest$ac_exeext'
7341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342   (eval $ac_try) 2>&5
7343   ac_status=$?
7344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345   (exit $ac_status); }; }; then
7346   ac_cv_lib_inet_socket=yes
7347 else
7348   echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7350
7351 ac_cv_lib_inet_socket=no
7352 fi
7353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7354 LIBS=$ac_check_lib_save_LIBS
7355 fi
7356 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7357 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7358 if test $ac_cv_lib_inet_socket = yes; then
7359   cat >>confdefs.h <<_ACEOF
7360 #define HAVE_LIBINET 1
7361 _ACEOF
7362
7363   LIBS="-linet $LIBS"
7364
7365 fi
7366
7367 fi
7368
7369
7370
7371 # -----------------------------------------------------------
7372 # Check whether user wants TCP wrappers support (default off)
7373 # -----------------------------------------------------------
7374 TCPW_MSG="no"
7375
7376 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7377 if test "${with_tcp_wrappers+set}" = set; then
7378   withval="$with_tcp_wrappers"
7379
7380     if test "x$withval" != "xno" ; then
7381        saved_LIBS="$LIBS"
7382        LIBS="$saved_LIBS -lwrap"
7383        echo "$as_me:$LINENO: checking for libwrap" >&5
7384 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7385        cat >conftest.$ac_ext <<_ACEOF
7386 #line $LINENO "configure"
7387 /* confdefs.h.  */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h.  */
7392  #include <tcpd.h>
7393              int deny_severity = 0;
7394              int allow_severity = 0;
7395              struct request_info *req;
7396 int
7397 main ()
7398 {
7399  hosts_access(req);
7400   ;
7401   return 0;
7402 }
7403 _ACEOF
7404 rm -f conftest.$ac_objext conftest$ac_exeext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406   (eval $ac_link) 2>&5
7407   ac_status=$?
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); } &&
7410          { ac_try='test -s conftest$ac_exeext'
7411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412   (eval $ac_try) 2>&5
7413   ac_status=$?
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); }; }; then
7416
7417             echo "$as_me:$LINENO: result: yes" >&5
7418 echo "${ECHO_T}yes" >&6
7419             cat >>confdefs.h <<\_ACEOF
7420 #define HAVE_LIBWRAP 1
7421 _ACEOF
7422
7423             TCPW_MSG="yes"
7424
7425 else
7426   echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7428
7429
7430             LIBS="$saved_LIBS -lwrap -lnsl"
7431             cat >conftest.$ac_ext <<_ACEOF
7432 #line $LINENO "configure"
7433 /* confdefs.h.  */
7434 _ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h.  */
7438  #include <tcpd.h>
7439                  int deny_severity = 0;
7440                  int allow_severity = 0;
7441                  struct request_info *req;
7442 int
7443 main ()
7444 {
7445  hosts_access(req);
7446   ;
7447   return 0;
7448 }
7449 _ACEOF
7450 rm -f conftest.$ac_objext conftest$ac_exeext
7451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7452   (eval $ac_link) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); } &&
7456          { ac_try='test -s conftest$ac_exeext'
7457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458   (eval $ac_try) 2>&5
7459   ac_status=$?
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); }; }; then
7462
7463                  echo "$as_me:$LINENO: result: yes" >&5
7464 echo "${ECHO_T}yes" >&6
7465                  cat >>confdefs.h <<\_ACEOF
7466 #define HAVE_LIBWRAP 1
7467 _ACEOF
7468
7469                  TCPW_MSG="yes"
7470
7471 else
7472   echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7474
7475 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7476 echo "$as_me: error: *** libwrap missing" >&2;}
7477    { (exit 1); exit 1; }; }
7478
7479 fi
7480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7481
7482 fi
7483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7484     fi
7485
7486
7487 fi;
7488
7489 # ------------------------------------------
7490 # Where to place working dir
7491 # ------------------------------------------
7492 working_dir=`eval echo ${prefix}/var/bacula/working`
7493
7494 # Check whether --with-working-dir or --without-working-dir was given.
7495 if test "${with_working_dir+set}" = set; then
7496   withval="$with_working_dir"
7497
7498        if test "x$withval" != "xno" ; then
7499               working_dir=$withval
7500        fi
7501
7502
7503 fi;
7504
7505
7506
7507
7508 # ------------------------------------------
7509 # Where to place scriptdir (script files)
7510 # ------------------------------------------
7511 scriptdir=`eval echo ${sysconfdir}`
7512
7513 # Check whether --with-scriptdir or --without-scriptdir was given.
7514 if test "${with_scriptdir+set}" = set; then
7515   withval="$with_scriptdir"
7516
7517        if test "x$withval" != "xno" ; then
7518               scriptdir=$withval
7519        fi
7520
7521
7522 fi;
7523
7524
7525
7526
7527 # ------------------------------------------
7528 # Where to send dump email
7529 # ------------------------------------------
7530 dump_email=root@localhost
7531
7532 # Check whether --with-dump-email or --without-dump-email was given.
7533 if test "${with_dump_email+set}" = set; then
7534   withval="$with_dump_email"
7535
7536        if test "x$withval" != "xno" ; then
7537               dump_email=$withval
7538        fi
7539
7540
7541 fi;
7542
7543
7544
7545 # ------------------------------------------
7546 # Where to send job email
7547 # ------------------------------------------
7548 job_email=root@localhost
7549
7550 # Check whether --with-job-email or --without-job-email was given.
7551 if test "${with_job_email+set}" = set; then
7552   withval="$with_job_email"
7553
7554        if test "x$withval" != "xno" ; then
7555               job_email=$withval
7556        fi
7557
7558
7559 fi;
7560
7561
7562
7563 # ------------------------------------------
7564 # Where to find smtp host
7565 # ------------------------------------------
7566 smtp_host=localhost
7567
7568 # Check whether --with-smtp_host or --without-smtp_host was given.
7569 if test "${with_smtp_host+set}" = set; then
7570   withval="$with_smtp_host"
7571
7572        if test "x$withval" != "xno" ; then
7573               smtp_host=$withval
7574        fi
7575
7576
7577 fi;
7578
7579
7580
7581
7582 # ------------------------------------
7583 # Where to place pid files
7584 # ------------------------------------
7585 piddir=/var/run
7586
7587 # Check whether --with-pid-dir or --without-pid-dir was given.
7588 if test "${with_pid_dir+set}" = set; then
7589   withval="$with_pid_dir"
7590
7591         if test "x$withval" != "xno" ; then
7592             piddir=$withval
7593         fi
7594
7595
7596 fi;
7597
7598 cat >>confdefs.h <<_ACEOF
7599 #define _PATH_BACULA_PIDDIR "$piddir"
7600 _ACEOF
7601
7602
7603
7604
7605 # ------------------------------------
7606 # Where to place subsys "lock file"
7607 # ------------------------------------
7608 subsysdir=/var/run/subsys
7609
7610 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7611 if test "${with_subsys_dir+set}" = set; then
7612   withval="$with_subsys_dir"
7613
7614         if test "x$withval" != "xno" ; then
7615             subsysdir=$withval
7616         fi
7617
7618
7619 fi;
7620
7621
7622
7623
7624
7625 # ------------------------------------
7626 # Where to start assigning ports
7627 # ------------------------------------
7628 baseport=9101
7629
7630 # Check whether --with-baseport or --without-baseport was given.
7631 if test "${with_baseport+set}" = set; then
7632   withval="$with_baseport"
7633
7634         if test "x$withval" != "xno" ; then
7635              baseport=$withval
7636         fi
7637
7638
7639 fi;
7640
7641
7642 dir_port=`expr $baseport`
7643 fd_port=`expr $baseport + 1`
7644 sd_port=`expr $fd_port + 1`
7645
7646
7647
7648
7649
7650
7651 # ------------------------------------------
7652 # Generate passwords
7653 # ------------------------------------------
7654 dir_password=
7655
7656 # Check whether --with-dir-password or --without-dir-password was given.
7657 if test "${with_dir_password+set}" = set; then
7658   withval="$with_dir_password"
7659
7660        if test "x$withval" != "xno" ; then
7661            dir_password=$withval
7662        fi
7663
7664
7665 fi;
7666
7667 if test "x$dir_password" = "x" ; then
7668    if test "x$OPENSSL" = "xnone" ; then
7669 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7670       key=`autoconf/randpass 33`
7671    else
7672       key=`openssl rand -base64 33`
7673    fi
7674    dir_password=$key
7675 fi
7676
7677 fd_password=
7678
7679 # Check whether --with-fd-password or --without-fd-password was given.
7680 if test "${with_fd_password+set}" = set; then
7681   withval="$with_fd_password"
7682
7683        if test "x$withval" != "xno" ; then
7684            fd_password=$withval
7685        fi
7686
7687
7688 fi;
7689
7690 if test "x$fd_password" = "x" ; then
7691    if test "x$OPENSSL" = "xnone" ; then
7692 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7693       key=`autoconf/randpass 37`
7694    else
7695       key=`openssl rand -base64 33`
7696    fi
7697    fd_password=$key
7698 fi
7699
7700 sd_password=
7701
7702 # Check whether --with-sd-password or --without-sd-password was given.
7703 if test "${with_sd_password+set}" = set; then
7704   withval="$with_sd_password"
7705
7706        if test "x$withval" != "xno" ; then
7707            sd_password=$withval
7708        fi
7709
7710
7711 fi;
7712
7713 if test "x$sd_password" = "x" ; then
7714    if test "x$OPENSSL" = "xnone" ; then
7715 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7716       key=`autoconf/randpass 41`
7717    else
7718       key=`openssl rand -base64 33`
7719    fi
7720    sd_password=$key
7721 fi
7722
7723 mon_dir_password=
7724
7725 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7726 if test "${with_mon_dir_password+set}" = set; then
7727   withval="$with_mon_dir_password"
7728
7729        if test "x$withval" != "xno" ; then
7730            mon_dir_password=$withval
7731        fi
7732
7733
7734 fi;
7735
7736 if test "x$mon_dir_password" = "x" ; then
7737    if test "x$OPENSSL" = "xnone" ; then
7738 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7739       key=`autoconf/randpass 33`
7740    else
7741       key=`openssl rand -base64 33`
7742    fi
7743    mon_dir_password=$key
7744 fi
7745
7746 mon_fd_password=
7747
7748 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7749 if test "${with_mon_fd_password+set}" = set; then
7750   withval="$with_mon_fd_password"
7751
7752        if test "x$withval" != "xno" ; then
7753            mon_fd_password=$withval
7754        fi
7755
7756
7757 fi;
7758
7759 if test "x$mon_fd_password" = "x" ; then
7760    if test "x$OPENSSL" = "xnone" ; then
7761 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7762       key=`autoconf/randpass 37`
7763    else
7764       key=`openssl rand -base64 33`
7765    fi
7766    mon_fd_password=$key
7767 fi
7768
7769 mon_sd_password=
7770
7771 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7772 if test "${with_mon_sd_password+set}" = set; then
7773   withval="$with_mon_sd_password"
7774
7775        if test "x$withval" != "xno" ; then
7776            mon_sd_password=$withval
7777        fi
7778
7779
7780 fi;
7781
7782 if test "x$mon_sd_password" = "x" ; then
7783    if test "x$OPENSSL" = "xnone" ; then
7784 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7785       key=`autoconf/randpass 41`
7786    else
7787       key=`openssl rand -base64 33`
7788    fi
7789    mon_sd_password=$key
7790 fi
7791
7792
7793
7794
7795
7796
7797
7798
7799 # -------------------------------------------------------------------------
7800 #  Set variables for bimagemgr installation
7801 # -------------------------------------------------------------------------
7802 bimagemgr_cgidir=/var/www/cgi-bin
7803
7804 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
7805 if test "${with_bimagemgr_cgidir+set}" = set; then
7806   withval="$with_bimagemgr_cgidir"
7807
7808        if test "x$withval" != "xno" ; then
7809            bimagemgr_cgidir=$withval
7810        fi
7811
7812
7813 fi;
7814
7815 bimagemgr_docdir=/var/www/html
7816
7817 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
7818 if test "${with_bimagemgr_docdir+set}" = set; then
7819   withval="$with_bimagemgr_docdir"
7820
7821        if test "x$withval" != "xno" ; then
7822            bimagemgr_docdir=$withval
7823        fi
7824
7825
7826 fi;
7827
7828 bimagemgr_binowner=root
7829
7830 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
7831 if test "${with_bimagemgr_binowner+set}" = set; then
7832   withval="$with_bimagemgr_binowner"
7833
7834        if test "x$withval" != "xno" ; then
7835            bimagemgr_binowner=$withval
7836        fi
7837
7838
7839 fi;
7840
7841 bimagemgr_bingroup=root
7842
7843 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
7844 if test "${with_bimagemgr_bingroup+set}" = set; then
7845   withval="$with_bimagemgr_bingroup"
7846
7847        if test "x$withval" != "xno" ; then
7848            bimagemgr_bingroup=$withval
7849        fi
7850
7851
7852 fi;
7853
7854 bimagemgr_dataowner=apache
7855
7856 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
7857 if test "${with_bimagemgr_dataowner+set}" = set; then
7858   withval="$with_bimagemgr_dataowner"
7859
7860        if test "x$withval" != "xno" ; then
7861            bimagemgr_dataowner=$withval
7862        fi
7863
7864
7865 fi;
7866
7867 bimagemgr_datagroup=apache
7868
7869 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
7870 if test "${with_bimagemgr_datagroup+set}" = set; then
7871   withval="$with_bimagemgr_datagroup"
7872
7873        if test "x$withval" != "xno" ; then
7874            bimagemgr_datagroup=$withval
7875        fi
7876
7877
7878 fi;
7879
7880
7881
7882
7883
7884
7885
7886
7887 #
7888 # Handle users and groups for each daemon
7889 #
7890 dir_user=
7891
7892 # Check whether --with-dir_user or --without-dir_user was given.
7893 if test "${with_dir_user+set}" = set; then
7894   withval="$with_dir_user"
7895
7896         if test "x$withval" != "x" ; then
7897              dir_user=$withval
7898         fi
7899
7900
7901 fi;
7902
7903 dir_group=
7904
7905 # Check whether --with-dir_group or --without-dir_group was given.
7906 if test "${with_dir_group+set}" = set; then
7907   withval="$with_dir_group"
7908
7909         if test "x$withval" != "x" ; then
7910              dir_group=$withval
7911         fi
7912
7913
7914 fi;
7915
7916 sd_user=
7917
7918 # Check whether --with-sd_user or --without-sd_user was given.
7919 if test "${with_sd_user+set}" = set; then
7920   withval="$with_sd_user"
7921
7922         if test "x$withval" != "x" ; then
7923              sd_user=$withval
7924         fi
7925
7926
7927 fi;
7928
7929 sd_group=
7930
7931 # Check whether --with-sd_group or --without-sd_group was given.
7932 if test "${with_sd_group+set}" = set; then
7933   withval="$with_sd_group"
7934
7935         if test "x$withval" != "x" ; then
7936              sd_group=$withval
7937         fi
7938
7939
7940 fi;
7941
7942 fd_user=
7943
7944 # Check whether --with-fd_user or --without-fd_user was given.
7945 if test "${with_fd_user+set}" = set; then
7946   withval="$with_fd_user"
7947
7948         if test "x$withval" != "x" ; then
7949              fd_user=$withval
7950         fi
7951
7952
7953 fi;
7954
7955 fd_group=
7956
7957 # Check whether --with-fd_group or --without-fd_group was given.
7958 if test "${with_fd_group+set}" = set; then
7959   withval="$with_fd_group"
7960
7961         if test "x$withval" != "x" ; then
7962              fd_group=$withval
7963         fi
7964
7965
7966 fi;
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978 #
7979 # allow setting default executable permissions
7980 #
7981 SBINPERM=0754
7982
7983 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7984 if test "${with_sbin_perm+set}" = set; then
7985   withval="$with_sbin_perm"
7986
7987         if test "x$withval" != "x" ; then
7988             SBINPERM=$withval
7989         fi
7990
7991
7992 fi;
7993
7994
7995
7996 # ------------------------------------------------
7997 # Bacula check for various SQL database engines
7998 # ------------------------------------------------
7999
8000 db_found=no
8001 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8002 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8003
8004 # Check whether --with-postgresql or --without-postgresql was given.
8005 if test "${with_postgresql+set}" = set; then
8006   withval="$with_postgresql"
8007
8008   if test "$withval" != "no"; then
8009       if test "$db_found" = "yes"; then
8010           echo "$as_me:$LINENO: result: error" >&5
8011 echo "${ECHO_T}error" >&6
8012           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8013 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8014    { (exit 1); exit 1; }; };
8015       fi
8016       if test "$withval" = "yes"; then
8017           if test -f /usr/local/include/libpq-fe.h; then
8018               POSTGRESQL_INCDIR=/usr/local/include
8019               POSTGRESQL_LIBDIR=/usr/local/lib
8020               POSTGRESQL_BINDIR=/usr/local/bin
8021           elif test -f /usr/include/libpq-fe.h; then
8022               POSTGRESQL_INCDIR=/usr/include
8023               POSTGRESQL_LIBDIR=/usr/lib
8024               POSTGRESQL_BINDIR=/usr/bin
8025           elif test -f /usr/include/pgsql/libpq-fe.h; then
8026               POSTGRESQL_INCDIR=/usr/include/pgsql
8027               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8028               POSTGRESQL_BINDIR=/usr/bin
8029           elif test -f /usr/include/postgresql/libpq-fe.h; then
8030               POSTGRESQL_INCDIR=/usr/include/postgresql
8031               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8032               POSTGRESQL_BINDIR=/usr/bin
8033           else
8034               echo "$as_me:$LINENO: result: no" >&5
8035 echo "${ECHO_T}no" >&6
8036               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8037 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8038    { (exit 1); exit 1; }; }
8039           fi
8040       elif test -f $withval/include/libpq-fe.h; then
8041           POSTGRESQL_INCDIR=$withval/include
8042           POSTGRESQL_LIBDIR=$withval/lib
8043           POSTGRESQL_BINDIR=$withval/bin
8044       elif test -f $withval/include/postgresql/libpq-fe.h; then
8045           POSTGRESQL_INCDIR=$withval/include/postgresql
8046           POSTGRESQL_LIBDIR=$withval/lib
8047           POSTGRESQL_BINDIR=$withval/bin
8048       else
8049           echo "$as_me:$LINENO: result: no" >&5
8050 echo "${ECHO_T}no" >&6
8051           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8052 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8053    { (exit 1); exit 1; }; }
8054       fi
8055       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8056       echo "$as_me:$LINENO: checking for crypt" >&5
8057 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8058 if test "${ac_cv_func_crypt+set}" = set; then
8059   echo $ECHO_N "(cached) $ECHO_C" >&6
8060 else
8061   cat >conftest.$ac_ext <<_ACEOF
8062 #line $LINENO "configure"
8063 /* confdefs.h.  */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h.  */
8068 /* System header to define __stub macros and hopefully few prototypes,
8069     which can conflict with char crypt (); below.
8070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8071     <limits.h> exists even on freestanding compilers.  */
8072 #ifdef __STDC__
8073 # include <limits.h>
8074 #else
8075 # include <assert.h>
8076 #endif
8077 /* Override any gcc2 internal prototype to avoid an error.  */
8078 #ifdef __cplusplus
8079 extern "C"
8080 {
8081 #endif
8082 /* We use char because int might match the return type of a gcc2
8083    builtin and then its argument prototype would still apply.  */
8084 char crypt ();
8085 /* The GNU C library defines this for functions which it implements
8086     to always fail with ENOSYS.  Some functions are actually named
8087     something starting with __ and the normal name is an alias.  */
8088 #if defined (__stub_crypt) || defined (__stub___crypt)
8089 choke me
8090 #else
8091 char (*f) () = crypt;
8092 #endif
8093 #ifdef __cplusplus
8094 }
8095 #endif
8096
8097 int
8098 main ()
8099 {
8100 return f != crypt;
8101   ;
8102   return 0;
8103 }
8104 _ACEOF
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107   (eval $ac_link) 2>&5
8108   ac_status=$?
8109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110   (exit $ac_status); } &&
8111          { ac_try='test -s conftest$ac_exeext'
8112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113   (eval $ac_try) 2>&5
8114   ac_status=$?
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); }; }; then
8117   ac_cv_func_crypt=yes
8118 else
8119   echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8121
8122 ac_cv_func_crypt=no
8123 fi
8124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8125 fi
8126 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8127 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8128 if test $ac_cv_func_crypt = yes; then
8129   :
8130 else
8131   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8132 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8133 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8134   echo $ECHO_N "(cached) $ECHO_C" >&6
8135 else
8136   ac_check_lib_save_LIBS=$LIBS
8137 LIBS="-lcrypt  $LIBS"
8138 cat >conftest.$ac_ext <<_ACEOF
8139 #line $LINENO "configure"
8140 /* confdefs.h.  */
8141 _ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h.  */
8145
8146 /* Override any gcc2 internal prototype to avoid an error.  */
8147 #ifdef __cplusplus
8148 extern "C"
8149 #endif
8150 /* We use char because int might match the return type of a gcc2
8151    builtin and then its argument prototype would still apply.  */
8152 char crypt ();
8153 int
8154 main ()
8155 {
8156 crypt ();
8157   ;
8158   return 0;
8159 }
8160 _ACEOF
8161 rm -f conftest.$ac_objext conftest$ac_exeext
8162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8163   (eval $ac_link) 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); } &&
8167          { ac_try='test -s conftest$ac_exeext'
8168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8169   (eval $ac_try) 2>&5
8170   ac_status=$?
8171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172   (exit $ac_status); }; }; then
8173   ac_cv_lib_crypt_crypt=yes
8174 else
8175   echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8177
8178 ac_cv_lib_crypt_crypt=no
8179 fi
8180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8181 LIBS=$ac_check_lib_save_LIBS
8182 fi
8183 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8184 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8185 if test $ac_cv_lib_crypt_crypt = yes; then
8186   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8187 fi
8188
8189 fi
8190
8191       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8192       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8193       SQL_BINDIR=$POSTGRESQL_BINDIR
8194       cat >>confdefs.h <<\_ACEOF
8195 #define HAVE_POSTGRESQL 1
8196 _ACEOF
8197
8198       echo "$as_me:$LINENO: result: yes" >&5
8199 echo "${ECHO_T}yes" >&6
8200       db_found=yes
8201       support_postgresql=yes
8202       db_name=PostgreSQL
8203       DB_NAME=postgresql
8204   else
8205       echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8207   fi
8208
8209 else
8210
8211   echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6
8213
8214 fi;
8215
8216
8217
8218
8219
8220
8221
8222 db_found=no
8223 echo "$as_me:$LINENO: checking for MySQL support" >&5
8224 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8225
8226 # Check whether --with-mysql or --without-mysql was given.
8227 if test "${with_mysql+set}" = set; then
8228   withval="$with_mysql"
8229
8230   if test "$withval" != "no"; then
8231         if test "$withval" = "yes"; then
8232                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8233                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8234                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8235                         MYSQL_BINDIR=/usr/local/mysql/bin
8236                 elif test -f /usr/include/mysql/mysql.h; then
8237                         MYSQL_INCDIR=/usr/include/mysql
8238                         MYSQL_LIBDIR=/usr/lib/mysql
8239                         MYSQL_BINDIR=/usr/bin
8240                 elif test -f /usr/include/mysql.h; then
8241                         MYSQL_INCDIR=/usr/include
8242                         MYSQL_LIBDIR=/usr/lib
8243                         MYSQL_BINDIR=/usr/bin
8244                 elif test -f /usr/local/include/mysql/mysql.h; then
8245                         MYSQL_INCDIR=/usr/local/include/mysql
8246                         MYSQL_LIBDIR=/usr/local/lib/mysql
8247                         MYSQL_BINDIR=/usr/local/bin
8248                 elif test -f /usr/local/include/mysql.h; then
8249                         MYSQL_INCDIR=/usr/local/include
8250                         MYSQL_LIBDIR=/usr/local/lib
8251                         MYSQL_BINDIR=/usr/local/bin
8252                 else
8253                    echo "$as_me:$LINENO: result: no" >&5
8254 echo "${ECHO_T}no" >&6
8255                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8256 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8257    { (exit 1); exit 1; }; }
8258                 fi
8259         else
8260                 if test -f $withval/include/mysql/mysql.h; then
8261                         MYSQL_INCDIR=$withval/include/mysql
8262                         MYSQL_LIBDIR=$withval/lib/mysql
8263                         MYSQL_BINDIR=$withval/bin
8264                 elif test -f $withval/include/mysql.h; then
8265                         MYSQL_INCDIR=$withval/include
8266                         MYSQL_LIBDIR=$withval/lib
8267                         MYSQL_BINDIR=$withval/bin
8268                 else
8269                    echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6
8271                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8272 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8273    { (exit 1); exit 1; }; }
8274                 fi
8275         fi
8276     SQL_INCLUDE=-I$MYSQL_INCDIR
8277     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8278        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8279        cat >>confdefs.h <<\_ACEOF
8280 #define HAVE_THREAD_SAFE_MYSQL 1
8281 _ACEOF
8282
8283     else
8284        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8285     fi
8286     SQL_BINDIR=$MYSQL_BINDIR
8287
8288     cat >>confdefs.h <<\_ACEOF
8289 #define HAVE_MYSQL 1
8290 _ACEOF
8291
8292     echo "$as_me:$LINENO: result: yes" >&5
8293 echo "${ECHO_T}yes" >&6
8294     db_found=yes
8295     support_mysql=yes
8296     db_name=MySQL
8297     DB_NAME=mysql
8298
8299   else
8300         echo "$as_me:$LINENO: result: no" >&5
8301 echo "${ECHO_T}no" >&6
8302   fi
8303
8304
8305 fi;
8306
8307
8308 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8309 if test "${with_embedded_mysql+set}" = set; then
8310   withval="$with_embedded_mysql"
8311
8312   if test "$withval" != "no"; then
8313         if test "$withval" = "yes"; then
8314                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8315                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8316                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8317                         MYSQL_BINDIR=/usr/local/mysql/bin
8318                 elif test -f /usr/include/mysql/mysql.h; then
8319                         MYSQL_INCDIR=/usr/include/mysql
8320                         MYSQL_LIBDIR=/usr/lib/mysql
8321                         MYSQL_BINDIR=/usr/bin
8322                 elif test -f /usr/include/mysql.h; then
8323                         MYSQL_INCDIR=/usr/include
8324                         MYSQL_LIBDIR=/usr/lib
8325                         MYSQL_BINDIR=/usr/bin
8326                 elif test -f /usr/local/include/mysql/mysql.h; then
8327                         MYSQL_INCDIR=/usr/local/include/mysql
8328                         MYSQL_LIBDIR=/usr/local/lib/mysql
8329                         MYSQL_BINDIR=/usr/local/bin
8330                 elif test -f /usr/local/include/mysql.h; then
8331                         MYSQL_INCDIR=/usr/local/include
8332                         MYSQL_LIBDIR=/usr/local/lib
8333                         MYSQL_BINDIR=/usr/local/bin
8334                 else
8335                    echo "$as_me:$LINENO: result: no" >&5
8336 echo "${ECHO_T}no" >&6
8337                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8338 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8339    { (exit 1); exit 1; }; }
8340                 fi
8341         else
8342                 if test -f $withval/include/mysql/mysql.h; then
8343                         MYSQL_INCDIR=$withval/include/mysql
8344                         MYSQL_LIBDIR=$withval/lib/mysql
8345                         MYSQL_BINDIR=$withval/bin
8346                 elif test -f $withval/include/mysql.h; then
8347                         MYSQL_INCDIR=$withval/include
8348                         MYSQL_LIBDIR=$withval/lib
8349                         MYSQL_BINDIR=$withval/bin
8350                 else
8351                    echo "$as_me:$LINENO: result: no" >&5
8352 echo "${ECHO_T}no" >&6
8353                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8354 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8355    { (exit 1); exit 1; }; }
8356                 fi
8357         fi
8358     SQL_INCLUDE=-I$MYSQL_INCDIR
8359     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8360     SQL_BINDIR=$MYSQL_BINDIR
8361
8362     cat >>confdefs.h <<\_ACEOF
8363 #define HAVE_MYSQL 1
8364 _ACEOF
8365
8366     cat >>confdefs.h <<\_ACEOF
8367 #define HAVE_EMBEDDED_MYSQL 1
8368 _ACEOF
8369
8370     echo "$as_me:$LINENO: result: yes" >&5
8371 echo "${ECHO_T}yes" >&6
8372     db_found=yes
8373     support_mysql=yes
8374     db_name=MySQL
8375     DB_NAME=mysql
8376
8377   else
8378         echo "$as_me:$LINENO: result: no" >&5
8379 echo "${ECHO_T}no" >&6
8380   fi
8381
8382
8383 fi;
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393 db_found=no
8394 echo "$as_me:$LINENO: checking for SQLite support" >&5
8395 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8396
8397 # Check whether --with-sqlite or --without-sqlite was given.
8398 if test "${with_sqlite+set}" = set; then
8399   withval="$with_sqlite"
8400
8401   if test "$withval" != "no"; then
8402      if test "$withval" = "yes"; then
8403         if test -f /usr/local/include/sqlite.h; then
8404            SQLITE_INCDIR=/usr/local/include
8405            SQLITE_LIBDIR=/usr/local/lib
8406            SQLITE_BINDIR=/usr/local/bin
8407         elif test -f /usr/include/sqlite.h; then
8408            SQLITE_INCDIR=/usr/include
8409            SQLITE_LIBDIR=/usr/lib
8410            SQLITE_BINDIR=/usr/bin
8411         elif test -f $prefix/include/sqlite.h; then
8412            SQLITE_INCDIR=$prefix/include
8413            SQLITE_LIBDIR=$prefix/lib
8414            SQLITE_BINDIR=$prefix/bin
8415         else
8416            echo "$as_me:$LINENO: result: no" >&5
8417 echo "${ECHO_T}no" >&6
8418            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8419 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8420    { (exit 1); exit 1; }; }
8421         fi
8422      else
8423         if test -f $withval/sqlite.h; then
8424            SQLITE_INCDIR=$withval
8425            SQLITE_LIBDIR=$withval
8426            SQLITE_BINDIR=$withval
8427         elif test -f $withval/include/sqlite.h; then
8428            SQLITE_INCDIR=$withval/include
8429            SQLITE_LIBDIR=$withval/lib
8430            SQLITE_BINDIR=$withval/bin
8431         else
8432            echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6
8434            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8435 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8436    { (exit 1); exit 1; }; }
8437         fi
8438      fi
8439      SQL_INCLUDE=-I$SQLITE_INCDIR
8440      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8441      SQL_BINDIR=$SQLITE_BINDIR
8442
8443      cat >>confdefs.h <<\_ACEOF
8444 #define HAVE_SQLITE 1
8445 _ACEOF
8446
8447      echo "$as_me:$LINENO: result: yes" >&5
8448 echo "${ECHO_T}yes" >&6
8449      db_found=yes
8450      support_sqlite=yes
8451      db_name=SQLite
8452      DB_NAME=sqlite
8453
8454   else
8455      echo "$as_me:$LINENO: result: no" >&5
8456 echo "${ECHO_T}no" >&6
8457   fi
8458
8459 else
8460
8461   echo "$as_me:$LINENO: result: no" >&5
8462 echo "${ECHO_T}no" >&6
8463
8464 fi;
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474 cat >>confdefs.h <<\_ACEOF
8475 #define PROTOTYPES 1
8476 _ACEOF
8477
8478
8479 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8480     if test -z "$CCOPTS"; then
8481         CCOPTS='-g -O2 -Wall'
8482     fi
8483     CFLAGS="$CCOPTS"
8484 fi
8485
8486
8487
8488
8489 largefile_support="no"
8490
8491    # Check whether --enable-largefile or --disable-largefile was given.
8492 if test "${enable_largefile+set}" = set; then
8493   enableval="$enable_largefile"
8494
8495 fi;
8496    if test "$enable_largefile" != no; then
8497      if test -n "$ac_tool_prefix"; then
8498   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8499 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8500 echo "$as_me:$LINENO: checking for $ac_word" >&5
8501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8502 if test "${ac_cv_prog_GETCONF+set}" = set; then
8503   echo $ECHO_N "(cached) $ECHO_C" >&6
8504 else
8505   if test -n "$GETCONF"; then
8506   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8507 else
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8510 do
8511   IFS=$as_save_IFS
8512   test -z "$as_dir" && as_dir=.
8513   for ac_exec_ext in '' $ac_executable_extensions; do
8514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8515     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8517     break 2
8518   fi
8519 done
8520 done
8521
8522 fi
8523 fi
8524 GETCONF=$ac_cv_prog_GETCONF
8525 if test -n "$GETCONF"; then
8526   echo "$as_me:$LINENO: result: $GETCONF" >&5
8527 echo "${ECHO_T}$GETCONF" >&6
8528 else
8529   echo "$as_me:$LINENO: result: no" >&5
8530 echo "${ECHO_T}no" >&6
8531 fi
8532
8533 fi
8534 if test -z "$ac_cv_prog_GETCONF"; then
8535   ac_ct_GETCONF=$GETCONF
8536   # Extract the first word of "getconf", so it can be a program name with args.
8537 set dummy getconf; ac_word=$2
8538 echo "$as_me:$LINENO: checking for $ac_word" >&5
8539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8540 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8541   echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543   if test -n "$ac_ct_GETCONF"; then
8544   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8545 else
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8548 do
8549   IFS=$as_save_IFS
8550   test -z "$as_dir" && as_dir=.
8551   for ac_exec_ext in '' $ac_executable_extensions; do
8552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553     ac_cv_prog_ac_ct_GETCONF="getconf"
8554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8555     break 2
8556   fi
8557 done
8558 done
8559
8560 fi
8561 fi
8562 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8563 if test -n "$ac_ct_GETCONF"; then
8564   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8565 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8566 else
8567   echo "$as_me:$LINENO: result: no" >&5
8568 echo "${ECHO_T}no" >&6
8569 fi
8570
8571   GETCONF=$ac_ct_GETCONF
8572 else
8573   GETCONF="$ac_cv_prog_GETCONF"
8574 fi
8575
8576      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8577 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8578 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8579   echo $ECHO_N "(cached) $ECHO_C" >&6
8580 else
8581   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8582         ac_cv_sys_largefile_CFLAGS=no
8583         case "$host_os" in
8584            # IRIX 6.2 and later require cc -n32.
8585            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8586              if test "$GCC" != yes; then
8587                ac_cv_sys_largefile_CFLAGS=-n32
8588              fi
8589              ac_save_CC="$CC"
8590              CC="$CC $ac_cv_sys_largefile_CFLAGS"
8591              cat >conftest.$ac_ext <<_ACEOF
8592 #line $LINENO "configure"
8593 /* confdefs.h.  */
8594 _ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h.  */
8598
8599 int
8600 main ()
8601 {
8602
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609   (eval $ac_link) 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); } &&
8613          { ac_try='test -s conftest$ac_exeext'
8614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615   (eval $ac_try) 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; }; then
8619   :
8620 else
8621   echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8623
8624 ac_cv_sys_largefile_CFLAGS=no
8625 fi
8626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8627              CC="$ac_save_CC"
8628            esac
8629       }
8630 fi
8631 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8632 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8633      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8634 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8635 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8636   echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8639         ac_cv_sys_largefile_LDFLAGS=no
8640
8641       }
8642 fi
8643 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8644 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8645      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8646 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8647 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8648   echo $ECHO_N "(cached) $ECHO_C" >&6
8649 else
8650   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8651         ac_cv_sys_largefile_LIBS=no
8652
8653       }
8654 fi
8655 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8656 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8657
8658      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8659        case "$ac_flag" in
8660        no) ;;
8661        -D_FILE_OFFSET_BITS=*) ;;
8662        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8663        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8664        -D?* | -I?*)
8665          case "$ac_flag" in
8666    no) ;;
8667    ?*)
8668      case "$CPPFLAGS" in
8669      '') CPPFLAGS="$ac_flag" ;;
8670      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8671      esac ;;
8672    esac ;;
8673        *)
8674          case "$ac_flag" in
8675    no) ;;
8676    ?*)
8677      case "$CFLAGS" in
8678      '') CFLAGS="$ac_flag" ;;
8679      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8680      esac ;;
8681    esac ;;
8682        esac
8683      done
8684      case "$ac_cv_sys_largefile_LDFLAGS" in
8685    no) ;;
8686    ?*)
8687      case "$LDFLAGS" in
8688      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8689      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8690      esac ;;
8691    esac
8692      case "$ac_cv_sys_largefile_LIBS" in
8693    no) ;;
8694    ?*)
8695      case "$LIBS" in
8696      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8697      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8698      esac ;;
8699    esac
8700      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8701 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8702 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8703   echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705   ac_cv_sys_file_offset_bits=no
8706       ac_cv_sys_file_offset_bits=64
8707       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8708         case "$ac_flag" in
8709         -D_FILE_OFFSET_BITS)
8710           ac_cv_sys_file_offset_bits=1 ;;
8711         -D_FILE_OFFSET_BITS=*)
8712           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8713         esac
8714       done
8715
8716 fi
8717 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8718 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8719    if test "$ac_cv_sys_file_offset_bits" != no; then
8720
8721 cat >>confdefs.h <<_ACEOF
8722 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8723 _ACEOF
8724
8725    fi
8726      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8727 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8728 if test "${ac_cv_sys_largefile_source+set}" = set; then
8729   echo $ECHO_N "(cached) $ECHO_C" >&6
8730 else
8731   ac_cv_sys_largefile_source=no
8732       ac_cv_sys_largefile_source=1
8733       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8734         case "$ac_flag" in
8735         -D_LARGEFILE_SOURCE)
8736           ac_cv_sys_largefile_source=1 ;;
8737         -D_LARGEFILE_SOURCE=*)
8738           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8739         esac
8740       done
8741
8742 fi
8743 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8744 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8745    if test "$ac_cv_sys_largefile_source" != no; then
8746
8747 cat >>confdefs.h <<_ACEOF
8748 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8749 _ACEOF
8750
8751    fi
8752      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8753 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8754 if test "${ac_cv_sys_large_files+set}" = set; then
8755   echo $ECHO_N "(cached) $ECHO_C" >&6
8756 else
8757   ac_cv_sys_large_files=no
8758       ac_cv_sys_large_files=1
8759       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8760         case "$ac_flag" in
8761         -D_LARGE_FILES)
8762           ac_cv_sys_large_files=1 ;;
8763         -D_LARGE_FILES=*)
8764           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8765         esac
8766       done
8767
8768 fi
8769 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8770 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8771    if test "$ac_cv_sys_large_files" != no; then
8772
8773 cat >>confdefs.h <<_ACEOF
8774 #define _LARGE_FILES $ac_cv_sys_large_files
8775 _ACEOF
8776
8777    fi
8778    fi
8779
8780
8781
8782 echo "$as_me:$LINENO: checking for X" >&5
8783 echo $ECHO_N "checking for X... $ECHO_C" >&6
8784
8785
8786 # Check whether --with-x or --without-x was given.
8787 if test "${with_x+set}" = set; then
8788   withval="$with_x"
8789
8790 fi;
8791 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8792 if test "x$with_x" = xno; then
8793   # The user explicitly disabled X.
8794   have_x=disabled
8795 else
8796   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8797     # Both variables are already set.
8798     have_x=yes
8799   else
8800     if test "${ac_cv_have_x+set}" = set; then
8801   echo $ECHO_N "(cached) $ECHO_C" >&6
8802 else
8803   # One or both of the vars are not set, and there is no cached value.
8804 ac_x_includes=no ac_x_libraries=no
8805 rm -fr conftest.dir
8806 if mkdir conftest.dir; then
8807   cd conftest.dir
8808   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8809   cat >Imakefile <<'_ACEOF'
8810 acfindx:
8811         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8812 _ACEOF
8813   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8814     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8815     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8816     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8817     for ac_extension in a so sl; do
8818       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8819          test -f $ac_im_libdir/libX11.$ac_extension; then
8820         ac_im_usrlibdir=$ac_im_libdir; break
8821       fi
8822     done
8823     # Screen out bogus values from the imake configuration.  They are
8824     # bogus both because they are the default anyway, and because
8825     # using them would break gcc on systems where it needs fixed includes.
8826     case $ac_im_incroot in
8827         /usr/include) ;;
8828         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8829     esac
8830     case $ac_im_usrlibdir in
8831         /usr/lib | /lib) ;;
8832         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8833     esac
8834   fi
8835   cd ..
8836   rm -fr conftest.dir
8837 fi
8838
8839 # Standard set of common directories for X headers.
8840 # Check X11 before X11Rn because it is often a symlink to the current release.
8841 ac_x_header_dirs='
8842 /usr/X11/include
8843 /usr/X11R6/include
8844 /usr/X11R5/include
8845 /usr/X11R4/include
8846
8847 /usr/include/X11
8848 /usr/include/X11R6
8849 /usr/include/X11R5
8850 /usr/include/X11R4
8851
8852 /usr/local/X11/include
8853 /usr/local/X11R6/include
8854 /usr/local/X11R5/include
8855 /usr/local/X11R4/include
8856
8857 /usr/local/include/X11
8858 /usr/local/include/X11R6
8859 /usr/local/include/X11R5
8860 /usr/local/include/X11R4
8861
8862 /usr/X386/include
8863 /usr/x386/include
8864 /usr/XFree86/include/X11
8865
8866 /usr/include
8867 /usr/local/include
8868 /usr/unsupported/include
8869 /usr/athena/include
8870 /usr/local/x11r5/include
8871 /usr/lpp/Xamples/include
8872
8873 /usr/openwin/include
8874 /usr/openwin/share/include'
8875
8876 if test "$ac_x_includes" = no; then
8877   # Guess where to find include files, by looking for Intrinsic.h.
8878   # First, try using that file with no special directory specified.
8879   cat >conftest.$ac_ext <<_ACEOF
8880 #line $LINENO "configure"
8881 /* confdefs.h.  */
8882 _ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h.  */
8886 #include <X11/Intrinsic.h>
8887 _ACEOF
8888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8889   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8890   ac_status=$?
8891   grep -v '^ *+' conftest.er1 >conftest.err
8892   rm -f conftest.er1
8893   cat conftest.err >&5
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); } >/dev/null; then
8896   if test -s conftest.err; then
8897     ac_cpp_err=$ac_c_preproc_warn_flag
8898   else
8899     ac_cpp_err=
8900   fi
8901 else
8902   ac_cpp_err=yes
8903 fi
8904 if test -z "$ac_cpp_err"; then
8905   # We can compile using X headers with no special include directory.
8906 ac_x_includes=
8907 else
8908   echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8910
8911   for ac_dir in $ac_x_header_dirs; do
8912   if test -r "$ac_dir/X11/Intrinsic.h"; then
8913     ac_x_includes=$ac_dir
8914     break
8915   fi
8916 done
8917 fi
8918 rm -f conftest.err conftest.$ac_ext
8919 fi # $ac_x_includes = no
8920
8921 if test "$ac_x_libraries" = no; then
8922   # Check for the libraries.
8923   # See if we find them without any special options.
8924   # Don't add to $LIBS permanently.
8925   ac_save_LIBS=$LIBS
8926   LIBS="-lXt $LIBS"
8927   cat >conftest.$ac_ext <<_ACEOF
8928 #line $LINENO "configure"
8929 /* confdefs.h.  */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h.  */
8934 #include <X11/Intrinsic.h>
8935 int
8936 main ()
8937 {
8938 XtMalloc (0)
8939   ;
8940   return 0;
8941 }
8942 _ACEOF
8943 rm -f conftest.$ac_objext conftest$ac_exeext
8944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945   (eval $ac_link) 2>&5
8946   ac_status=$?
8947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948   (exit $ac_status); } &&
8949          { ac_try='test -s conftest$ac_exeext'
8950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951   (eval $ac_try) 2>&5
8952   ac_status=$?
8953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954   (exit $ac_status); }; }; then
8955   LIBS=$ac_save_LIBS
8956 # We can link X programs with no special library path.
8957 ac_x_libraries=
8958 else
8959   echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8961
8962 LIBS=$ac_save_LIBS
8963 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8964 do
8965   # Don't even attempt the hair of trying to link an X program!
8966   for ac_extension in a so sl; do
8967     if test -r $ac_dir/libXt.$ac_extension; then
8968       ac_x_libraries=$ac_dir
8969       break 2
8970     fi
8971   done
8972 done
8973 fi
8974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8975 fi # $ac_x_libraries = no
8976
8977 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8978   # Didn't find X anywhere.  Cache the known absence of X.
8979   ac_cv_have_x="have_x=no"
8980 else
8981   # Record where we found X for the cache.
8982   ac_cv_have_x="have_x=yes \
8983                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8984 fi
8985 fi
8986
8987   fi
8988   eval "$ac_cv_have_x"
8989 fi # $with_x != no
8990
8991 if test "$have_x" != yes; then
8992   echo "$as_me:$LINENO: result: $have_x" >&5
8993 echo "${ECHO_T}$have_x" >&6
8994   no_x=yes
8995 else
8996   # If each of the values was on the command line, it overrides each guess.
8997   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8998   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8999   # Update the cache value to reflect the command line values.
9000   ac_cv_have_x="have_x=yes \
9001                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9002   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9003 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9004 fi
9005
9006 if test "$no_x" = yes; then
9007   # Not all programs may use this symbol, but it does not hurt to define it.
9008
9009 cat >>confdefs.h <<\_ACEOF
9010 #define X_DISPLAY_MISSING 1
9011 _ACEOF
9012
9013   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9014 else
9015   if test -n "$x_includes"; then
9016     X_CFLAGS="$X_CFLAGS -I$x_includes"
9017   fi
9018
9019   # It would also be nice to do this for all -L options, not just this one.
9020   if test -n "$x_libraries"; then
9021     X_LIBS="$X_LIBS -L$x_libraries"
9022     # For Solaris; some versions of Sun CC require a space after -R and
9023     # others require no space.  Words are not sufficient . . . .
9024     case `(uname -sr) 2>/dev/null` in
9025     "SunOS 5"*)
9026       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9027 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9028       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9029       cat >conftest.$ac_ext <<_ACEOF
9030 #line $LINENO "configure"
9031 /* confdefs.h.  */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h.  */
9036
9037 int
9038 main ()
9039 {
9040
9041   ;
9042   return 0;
9043 }
9044 _ACEOF
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9047   (eval $ac_link) 2>&5
9048   ac_status=$?
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); } &&
9051          { ac_try='test -s conftest$ac_exeext'
9052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053   (eval $ac_try) 2>&5
9054   ac_status=$?
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); }; }; then
9057   ac_R_nospace=yes
9058 else
9059   echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9061
9062 ac_R_nospace=no
9063 fi
9064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9065       if test $ac_R_nospace = yes; then
9066         echo "$as_me:$LINENO: result: no" >&5
9067 echo "${ECHO_T}no" >&6
9068         X_LIBS="$X_LIBS -R$x_libraries"
9069       else
9070         LIBS="$ac_xsave_LIBS -R $x_libraries"
9071         cat >conftest.$ac_ext <<_ACEOF
9072 #line $LINENO "configure"
9073 /* confdefs.h.  */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h.  */
9078
9079 int
9080 main ()
9081 {
9082
9083   ;
9084   return 0;
9085 }
9086 _ACEOF
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089   (eval $ac_link) 2>&5
9090   ac_status=$?
9091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092   (exit $ac_status); } &&
9093          { ac_try='test -s conftest$ac_exeext'
9094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9095   (eval $ac_try) 2>&5
9096   ac_status=$?
9097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098   (exit $ac_status); }; }; then
9099   ac_R_space=yes
9100 else
9101   echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9103
9104 ac_R_space=no
9105 fi
9106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9107         if test $ac_R_space = yes; then
9108           echo "$as_me:$LINENO: result: yes" >&5
9109 echo "${ECHO_T}yes" >&6
9110           X_LIBS="$X_LIBS -R $x_libraries"
9111         else
9112           echo "$as_me:$LINENO: result: neither works" >&5
9113 echo "${ECHO_T}neither works" >&6
9114         fi
9115       fi
9116       LIBS=$ac_xsave_LIBS
9117     esac
9118   fi
9119
9120   # Check for system-dependent libraries X programs must link with.
9121   # Do this before checking for the system-independent R6 libraries
9122   # (-lICE), since we may need -lsocket or whatever for X linking.
9123
9124   if test "$ISC" = yes; then
9125     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9126   else
9127     # Martyn Johnson says this is needed for Ultrix, if the X
9128     # libraries were built with DECnet support.  And Karl Berry says
9129     # the Alpha needs dnet_stub (dnet does not exist).
9130     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9131     cat >conftest.$ac_ext <<_ACEOF
9132 #line $LINENO "configure"
9133 /* confdefs.h.  */
9134 _ACEOF
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h.  */
9138
9139 /* Override any gcc2 internal prototype to avoid an error.  */
9140 #ifdef __cplusplus
9141 extern "C"
9142 #endif
9143 /* We use char because int might match the return type of a gcc2
9144    builtin and then its argument prototype would still apply.  */
9145 char XOpenDisplay ();
9146 int
9147 main ()
9148 {
9149 XOpenDisplay ();
9150   ;
9151   return 0;
9152 }
9153 _ACEOF
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9156   (eval $ac_link) 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); } &&
9160          { ac_try='test -s conftest$ac_exeext'
9161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9162   (eval $ac_try) 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; }; then
9166   :
9167 else
9168   echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9170
9171 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9172 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9173 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9174   echo $ECHO_N "(cached) $ECHO_C" >&6
9175 else
9176   ac_check_lib_save_LIBS=$LIBS
9177 LIBS="-ldnet  $LIBS"
9178 cat >conftest.$ac_ext <<_ACEOF
9179 #line $LINENO "configure"
9180 /* confdefs.h.  */
9181 _ACEOF
9182 cat confdefs.h >>conftest.$ac_ext
9183 cat >>conftest.$ac_ext <<_ACEOF
9184 /* end confdefs.h.  */
9185
9186 /* Override any gcc2 internal prototype to avoid an error.  */
9187 #ifdef __cplusplus
9188 extern "C"
9189 #endif
9190 /* We use char because int might match the return type of a gcc2
9191    builtin and then its argument prototype would still apply.  */
9192 char dnet_ntoa ();
9193 int
9194 main ()
9195 {
9196 dnet_ntoa ();
9197   ;
9198   return 0;
9199 }
9200 _ACEOF
9201 rm -f conftest.$ac_objext conftest$ac_exeext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9203   (eval $ac_link) 2>&5
9204   ac_status=$?
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); } &&
9207          { ac_try='test -s conftest$ac_exeext'
9208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209   (eval $ac_try) 2>&5
9210   ac_status=$?
9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); }; }; then
9213   ac_cv_lib_dnet_dnet_ntoa=yes
9214 else
9215   echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9217
9218 ac_cv_lib_dnet_dnet_ntoa=no
9219 fi
9220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9221 LIBS=$ac_check_lib_save_LIBS
9222 fi
9223 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9224 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9225 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9226   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9227 fi
9228
9229     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9230       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9231 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9232 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9233   echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235   ac_check_lib_save_LIBS=$LIBS
9236 LIBS="-ldnet_stub  $LIBS"
9237 cat >conftest.$ac_ext <<_ACEOF
9238 #line $LINENO "configure"
9239 /* confdefs.h.  */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h.  */
9244
9245 /* Override any gcc2 internal prototype to avoid an error.  */
9246 #ifdef __cplusplus
9247 extern "C"
9248 #endif
9249 /* We use char because int might match the return type of a gcc2
9250    builtin and then its argument prototype would still apply.  */
9251 char dnet_ntoa ();
9252 int
9253 main ()
9254 {
9255 dnet_ntoa ();
9256   ;
9257   return 0;
9258 }
9259 _ACEOF
9260 rm -f conftest.$ac_objext conftest$ac_exeext
9261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9262   (eval $ac_link) 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); } &&
9266          { ac_try='test -s conftest$ac_exeext'
9267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268   (eval $ac_try) 2>&5
9269   ac_status=$?
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); }; }; then
9272   ac_cv_lib_dnet_stub_dnet_ntoa=yes
9273 else
9274   echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9276
9277 ac_cv_lib_dnet_stub_dnet_ntoa=no
9278 fi
9279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9280 LIBS=$ac_check_lib_save_LIBS
9281 fi
9282 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9283 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9284 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9285   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9286 fi
9287
9288     fi
9289 fi
9290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9291     LIBS="$ac_xsave_LIBS"
9292
9293     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9294     # to get the SysV transport functions.
9295     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9296     # needs -lnsl.
9297     # The nsl library prevents programs from opening the X display
9298     # on Irix 5.2, according to T.E. Dickey.
9299     # The functions gethostbyname, getservbyname, and inet_addr are
9300     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9301     echo "$as_me:$LINENO: checking for gethostbyname" >&5
9302 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9303 if test "${ac_cv_func_gethostbyname+set}" = set; then
9304   echo $ECHO_N "(cached) $ECHO_C" >&6
9305 else
9306   cat >conftest.$ac_ext <<_ACEOF
9307 #line $LINENO "configure"
9308 /* confdefs.h.  */
9309 _ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h.  */
9313 /* System header to define __stub macros and hopefully few prototypes,
9314     which can conflict with char gethostbyname (); below.
9315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9316     <limits.h> exists even on freestanding compilers.  */
9317 #ifdef __STDC__
9318 # include <limits.h>
9319 #else
9320 # include <assert.h>
9321 #endif
9322 /* Override any gcc2 internal prototype to avoid an error.  */
9323 #ifdef __cplusplus
9324 extern "C"
9325 {
9326 #endif
9327 /* We use char because int might match the return type of a gcc2
9328    builtin and then its argument prototype would still apply.  */
9329 char gethostbyname ();
9330 /* The GNU C library defines this for functions which it implements
9331     to always fail with ENOSYS.  Some functions are actually named
9332     something starting with __ and the normal name is an alias.  */
9333 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9334 choke me
9335 #else
9336 char (*f) () = gethostbyname;
9337 #endif
9338 #ifdef __cplusplus
9339 }
9340 #endif
9341
9342 int
9343 main ()
9344 {
9345 return f != gethostbyname;
9346   ;
9347   return 0;
9348 }
9349 _ACEOF
9350 rm -f conftest.$ac_objext conftest$ac_exeext
9351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352   (eval $ac_link) 2>&5
9353   ac_status=$?
9354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355   (exit $ac_status); } &&
9356          { ac_try='test -s conftest$ac_exeext'
9357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358   (eval $ac_try) 2>&5
9359   ac_status=$?
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); }; }; then
9362   ac_cv_func_gethostbyname=yes
9363 else
9364   echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367 ac_cv_func_gethostbyname=no
9368 fi
9369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9370 fi
9371 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9372 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9373
9374     if test $ac_cv_func_gethostbyname = no; then
9375       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9376 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9377 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9378   echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380   ac_check_lib_save_LIBS=$LIBS
9381 LIBS="-lnsl  $LIBS"
9382 cat >conftest.$ac_ext <<_ACEOF
9383 #line $LINENO "configure"
9384 /* confdefs.h.  */
9385 _ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h.  */
9389
9390 /* Override any gcc2 internal prototype to avoid an error.  */
9391 #ifdef __cplusplus
9392 extern "C"
9393 #endif
9394 /* We use char because int might match the return type of a gcc2
9395    builtin and then its argument prototype would still apply.  */
9396 char gethostbyname ();
9397 int
9398 main ()
9399 {
9400 gethostbyname ();
9401   ;
9402   return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407   (eval $ac_link) 2>&5
9408   ac_status=$?
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); } &&
9411          { ac_try='test -s conftest$ac_exeext'
9412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413   (eval $ac_try) 2>&5
9414   ac_status=$?
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); }; }; then
9417   ac_cv_lib_nsl_gethostbyname=yes
9418 else
9419   echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9421
9422 ac_cv_lib_nsl_gethostbyname=no
9423 fi
9424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9425 LIBS=$ac_check_lib_save_LIBS
9426 fi
9427 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9428 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9429 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9430   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9431 fi
9432
9433       if test $ac_cv_lib_nsl_gethostbyname = no; then
9434         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9435 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9436 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9437   echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439   ac_check_lib_save_LIBS=$LIBS
9440 LIBS="-lbsd  $LIBS"
9441 cat >conftest.$ac_ext <<_ACEOF
9442 #line $LINENO "configure"
9443 /* confdefs.h.  */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h.  */
9448
9449 /* Override any gcc2 internal prototype to avoid an error.  */
9450 #ifdef __cplusplus
9451 extern "C"
9452 #endif
9453 /* We use char because int might match the return type of a gcc2
9454    builtin and then its argument prototype would still apply.  */
9455 char gethostbyname ();
9456 int
9457 main ()
9458 {
9459 gethostbyname ();
9460   ;
9461   return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466   (eval $ac_link) 2>&5
9467   ac_status=$?
9468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); } &&
9470          { ac_try='test -s conftest$ac_exeext'
9471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9472   (eval $ac_try) 2>&5
9473   ac_status=$?
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); }; }; then
9476   ac_cv_lib_bsd_gethostbyname=yes
9477 else
9478   echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9480
9481 ac_cv_lib_bsd_gethostbyname=no
9482 fi
9483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9484 LIBS=$ac_check_lib_save_LIBS
9485 fi
9486 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9487 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9488 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9489   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9490 fi
9491
9492       fi
9493     fi
9494
9495     # lieder@skyler.mavd.honeywell.com says without -lsocket,
9496     # socket/setsockopt and other routines are undefined under SCO ODT
9497     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
9498     # on later versions), says Simon Leinen: it contains gethostby*
9499     # variants that don't use the name server (or something).  -lsocket
9500     # must be given before -lnsl if both are needed.  We assume that
9501     # if connect needs -lnsl, so does gethostbyname.
9502     echo "$as_me:$LINENO: checking for connect" >&5
9503 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9504 if test "${ac_cv_func_connect+set}" = set; then
9505   echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507   cat >conftest.$ac_ext <<_ACEOF
9508 #line $LINENO "configure"
9509 /* confdefs.h.  */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h.  */
9514 /* System header to define __stub macros and hopefully few prototypes,
9515     which can conflict with char connect (); below.
9516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517     <limits.h> exists even on freestanding compilers.  */
9518 #ifdef __STDC__
9519 # include <limits.h>
9520 #else
9521 # include <assert.h>
9522 #endif
9523 /* Override any gcc2 internal prototype to avoid an error.  */
9524 #ifdef __cplusplus
9525 extern "C"
9526 {
9527 #endif
9528 /* We use char because int might match the return type of a gcc2
9529    builtin and then its argument prototype would still apply.  */
9530 char connect ();
9531 /* The GNU C library defines this for functions which it implements
9532     to always fail with ENOSYS.  Some functions are actually named
9533     something starting with __ and the normal name is an alias.  */
9534 #if defined (__stub_connect) || defined (__stub___connect)
9535 choke me
9536 #else
9537 char (*f) () = connect;
9538 #endif
9539 #ifdef __cplusplus
9540 }
9541 #endif
9542
9543 int
9544 main ()
9545 {
9546 return f != connect;
9547   ;
9548   return 0;
9549 }
9550 _ACEOF
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9553   (eval $ac_link) 2>&5
9554   ac_status=$?
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); } &&
9557          { ac_try='test -s conftest$ac_exeext'
9558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9559   (eval $ac_try) 2>&5
9560   ac_status=$?
9561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562   (exit $ac_status); }; }; then
9563   ac_cv_func_connect=yes
9564 else
9565   echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9567
9568 ac_cv_func_connect=no
9569 fi
9570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9571 fi
9572 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9573 echo "${ECHO_T}$ac_cv_func_connect" >&6
9574
9575     if test $ac_cv_func_connect = no; then
9576       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9577 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9578 if test "${ac_cv_lib_socket_connect+set}" = set; then
9579   echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581   ac_check_lib_save_LIBS=$LIBS
9582 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9583 cat >conftest.$ac_ext <<_ACEOF
9584 #line $LINENO "configure"
9585 /* confdefs.h.  */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h.  */
9590
9591 /* Override any gcc2 internal prototype to avoid an error.  */
9592 #ifdef __cplusplus
9593 extern "C"
9594 #endif
9595 /* We use char because int might match the return type of a gcc2
9596    builtin and then its argument prototype would still apply.  */
9597 char connect ();
9598 int
9599 main ()
9600 {
9601 connect ();
9602   ;
9603   return 0;
9604 }
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608   (eval $ac_link) 2>&5
9609   ac_status=$?
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); } &&
9612          { ac_try='test -s conftest$ac_exeext'
9613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614   (eval $ac_try) 2>&5
9615   ac_status=$?
9616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617   (exit $ac_status); }; }; then
9618   ac_cv_lib_socket_connect=yes
9619 else
9620   echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623 ac_cv_lib_socket_connect=no
9624 fi
9625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9626 LIBS=$ac_check_lib_save_LIBS
9627 fi
9628 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9629 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9630 if test $ac_cv_lib_socket_connect = yes; then
9631   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9632 fi
9633
9634     fi
9635
9636     # Guillermo Gomez says -lposix is necessary on A/UX.
9637     echo "$as_me:$LINENO: checking for remove" >&5
9638 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9639 if test "${ac_cv_func_remove+set}" = set; then
9640   echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642   cat >conftest.$ac_ext <<_ACEOF
9643 #line $LINENO "configure"
9644 /* confdefs.h.  */
9645 _ACEOF
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h.  */
9649 /* System header to define __stub macros and hopefully few prototypes,
9650     which can conflict with char remove (); below.
9651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9652     <limits.h> exists even on freestanding compilers.  */
9653 #ifdef __STDC__
9654 # include <limits.h>
9655 #else
9656 # include <assert.h>
9657 #endif
9658 /* Override any gcc2 internal prototype to avoid an error.  */
9659 #ifdef __cplusplus
9660 extern "C"
9661 {
9662 #endif
9663 /* We use char because int might match the return type of a gcc2
9664    builtin and then its argument prototype would still apply.  */
9665 char remove ();
9666 /* The GNU C library defines this for functions which it implements
9667     to always fail with ENOSYS.  Some functions are actually named
9668     something starting with __ and the normal name is an alias.  */
9669 #if defined (__stub_remove) || defined (__stub___remove)
9670 choke me
9671 #else
9672 char (*f) () = remove;
9673 #endif
9674 #ifdef __cplusplus
9675 }
9676 #endif
9677
9678 int
9679 main ()
9680 {
9681 return f != remove;
9682   ;
9683   return 0;
9684 }
9685 _ACEOF
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9688   (eval $ac_link) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); } &&
9692          { ac_try='test -s conftest$ac_exeext'
9693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694   (eval $ac_try) 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); }; }; then
9698   ac_cv_func_remove=yes
9699 else
9700   echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9702
9703 ac_cv_func_remove=no
9704 fi
9705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9706 fi
9707 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9708 echo "${ECHO_T}$ac_cv_func_remove" >&6
9709
9710     if test $ac_cv_func_remove = no; then
9711       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9712 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9713 if test "${ac_cv_lib_posix_remove+set}" = set; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   ac_check_lib_save_LIBS=$LIBS
9717 LIBS="-lposix  $LIBS"
9718 cat >conftest.$ac_ext <<_ACEOF
9719 #line $LINENO "configure"
9720 /* confdefs.h.  */
9721 _ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h.  */
9725
9726 /* Override any gcc2 internal prototype to avoid an error.  */
9727 #ifdef __cplusplus
9728 extern "C"
9729 #endif
9730 /* We use char because int might match the return type of a gcc2
9731    builtin and then its argument prototype would still apply.  */
9732 char remove ();
9733 int
9734 main ()
9735 {
9736 remove ();
9737   ;
9738   return 0;
9739 }
9740 _ACEOF
9741 rm -f conftest.$ac_objext conftest$ac_exeext
9742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743   (eval $ac_link) 2>&5
9744   ac_status=$?
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   (exit $ac_status); } &&
9747          { ac_try='test -s conftest$ac_exeext'
9748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749   (eval $ac_try) 2>&5
9750   ac_status=$?
9751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752   (exit $ac_status); }; }; then
9753   ac_cv_lib_posix_remove=yes
9754 else
9755   echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9757
9758 ac_cv_lib_posix_remove=no
9759 fi
9760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9761 LIBS=$ac_check_lib_save_LIBS
9762 fi
9763 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9764 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9765 if test $ac_cv_lib_posix_remove = yes; then
9766   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9767 fi
9768
9769     fi
9770
9771     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9772     echo "$as_me:$LINENO: checking for shmat" >&5
9773 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9774 if test "${ac_cv_func_shmat+set}" = set; then
9775   echo $ECHO_N "(cached) $ECHO_C" >&6
9776 else
9777   cat >conftest.$ac_ext <<_ACEOF
9778 #line $LINENO "configure"
9779 /* confdefs.h.  */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h.  */
9784 /* System header to define __stub macros and hopefully few prototypes,
9785     which can conflict with char shmat (); below.
9786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9787     <limits.h> exists even on freestanding compilers.  */
9788 #ifdef __STDC__
9789 # include <limits.h>
9790 #else
9791 # include <assert.h>
9792 #endif
9793 /* Override any gcc2 internal prototype to avoid an error.  */
9794 #ifdef __cplusplus
9795 extern "C"
9796 {
9797 #endif
9798 /* We use char because int might match the return type of a gcc2
9799    builtin and then its argument prototype would still apply.  */
9800 char shmat ();
9801 /* The GNU C library defines this for functions which it implements
9802     to always fail with ENOSYS.  Some functions are actually named
9803     something starting with __ and the normal name is an alias.  */
9804 #if defined (__stub_shmat) || defined (__stub___shmat)
9805 choke me
9806 #else
9807 char (*f) () = shmat;
9808 #endif
9809 #ifdef __cplusplus
9810 }
9811 #endif
9812
9813 int
9814 main ()
9815 {
9816 return f != shmat;
9817   ;
9818   return 0;
9819 }
9820 _ACEOF
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9823   (eval $ac_link) 2>&5
9824   ac_status=$?
9825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826   (exit $ac_status); } &&
9827          { ac_try='test -s conftest$ac_exeext'
9828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9829   (eval $ac_try) 2>&5
9830   ac_status=$?
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); }; }; then
9833   ac_cv_func_shmat=yes
9834 else
9835   echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9837
9838 ac_cv_func_shmat=no
9839 fi
9840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9841 fi
9842 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9843 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9844
9845     if test $ac_cv_func_shmat = no; then
9846       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9847 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9848 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9849   echo $ECHO_N "(cached) $ECHO_C" >&6
9850 else
9851   ac_check_lib_save_LIBS=$LIBS
9852 LIBS="-lipc  $LIBS"
9853 cat >conftest.$ac_ext <<_ACEOF
9854 #line $LINENO "configure"
9855 /* confdefs.h.  */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h.  */
9860
9861 /* Override any gcc2 internal prototype to avoid an error.  */
9862 #ifdef __cplusplus
9863 extern "C"
9864 #endif
9865 /* We use char because int might match the return type of a gcc2
9866    builtin and then its argument prototype would still apply.  */
9867 char shmat ();
9868 int
9869 main ()
9870 {
9871 shmat ();
9872   ;
9873   return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878   (eval $ac_link) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); } &&
9882          { ac_try='test -s conftest$ac_exeext'
9883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884   (eval $ac_try) 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; }; then
9888   ac_cv_lib_ipc_shmat=yes
9889 else
9890   echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9892
9893 ac_cv_lib_ipc_shmat=no
9894 fi
9895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9896 LIBS=$ac_check_lib_save_LIBS
9897 fi
9898 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9899 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9900 if test $ac_cv_lib_ipc_shmat = yes; then
9901   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9902 fi
9903
9904     fi
9905   fi
9906
9907   # Check for libraries that X11R6 Xt/Xaw programs need.
9908   ac_save_LDFLAGS=$LDFLAGS
9909   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9910   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9911   # check for ICE first), but we must link in the order -lSM -lICE or
9912   # we get undefined symbols.  So assume we have SM if we have ICE.
9913   # These have to be linked with before -lX11, unlike the other
9914   # libraries we check for below, so use a different variable.
9915   # John Interrante, Karl Berry
9916   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9917 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9918 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9919   echo $ECHO_N "(cached) $ECHO_C" >&6
9920 else
9921   ac_check_lib_save_LIBS=$LIBS
9922 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9923 cat >conftest.$ac_ext <<_ACEOF
9924 #line $LINENO "configure"
9925 /* confdefs.h.  */
9926 _ACEOF
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h.  */
9930
9931 /* Override any gcc2 internal prototype to avoid an error.  */
9932 #ifdef __cplusplus
9933 extern "C"
9934 #endif
9935 /* We use char because int might match the return type of a gcc2
9936    builtin and then its argument prototype would still apply.  */
9937 char IceConnectionNumber ();
9938 int
9939 main ()
9940 {
9941 IceConnectionNumber ();
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948   (eval $ac_link) 2>&5
9949   ac_status=$?
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); } &&
9952          { ac_try='test -s conftest$ac_exeext'
9953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9954   (eval $ac_try) 2>&5
9955   ac_status=$?
9956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957   (exit $ac_status); }; }; then
9958   ac_cv_lib_ICE_IceConnectionNumber=yes
9959 else
9960   echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9962
9963 ac_cv_lib_ICE_IceConnectionNumber=no
9964 fi
9965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9966 LIBS=$ac_check_lib_save_LIBS
9967 fi
9968 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9969 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9970 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9971   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9972 fi
9973
9974   LDFLAGS=$ac_save_LDFLAGS
9975
9976 fi
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006 for ac_header in \
10007         assert.h \
10008         fcntl.h \
10009         grp.h \
10010         pwd.h \
10011         libc.h \
10012         limits.h \
10013         stdarg.h \
10014         stdlib.h \
10015         stdint.h \
10016         string.h \
10017         termios.h \
10018         termcap.h \
10019         term.h \
10020         unistd.h \
10021         sys/bitypes.h \
10022         sys/byteorder.h \
10023         sys/ioctl.h \
10024         sys/select.h \
10025         sys/sockio.h \
10026         sys/time.h \
10027         sys/socket.h \
10028         arpa/nameser.h \
10029         resolv.h \
10030         mtio.h \
10031         sys/mtio.h \
10032         sys/tape.h \
10033         regex.h \
10034
10035 do
10036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10038   echo "$as_me:$LINENO: checking for $ac_header" >&5
10039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10041   echo $ECHO_N "(cached) $ECHO_C" >&6
10042 fi
10043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10045 else
10046   # Is the header compilable?
10047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10049 cat >conftest.$ac_ext <<_ACEOF
10050 #line $LINENO "configure"
10051 /* confdefs.h.  */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h.  */
10056 $ac_includes_default
10057 #include <$ac_header>
10058 _ACEOF
10059 rm -f conftest.$ac_objext
10060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10061   (eval $ac_compile) 2>&5
10062   ac_status=$?
10063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064   (exit $ac_status); } &&
10065          { ac_try='test -s conftest.$ac_objext'
10066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067   (eval $ac_try) 2>&5
10068   ac_status=$?
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); }; }; then
10071   ac_header_compiler=yes
10072 else
10073   echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10075
10076 ac_header_compiler=no
10077 fi
10078 rm -f conftest.$ac_objext conftest.$ac_ext
10079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10080 echo "${ECHO_T}$ac_header_compiler" >&6
10081
10082 # Is the header present?
10083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10085 cat >conftest.$ac_ext <<_ACEOF
10086 #line $LINENO "configure"
10087 /* confdefs.h.  */
10088 _ACEOF
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h.  */
10092 #include <$ac_header>
10093 _ACEOF
10094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10096   ac_status=$?
10097   grep -v '^ *+' conftest.er1 >conftest.err
10098   rm -f conftest.er1
10099   cat conftest.err >&5
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); } >/dev/null; then
10102   if test -s conftest.err; then
10103     ac_cpp_err=$ac_c_preproc_warn_flag
10104   else
10105     ac_cpp_err=
10106   fi
10107 else
10108   ac_cpp_err=yes
10109 fi
10110 if test -z "$ac_cpp_err"; then
10111   ac_header_preproc=yes
10112 else
10113   echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10115
10116   ac_header_preproc=no
10117 fi
10118 rm -f conftest.err conftest.$ac_ext
10119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10120 echo "${ECHO_T}$ac_header_preproc" >&6
10121
10122 # So?  What about this header?
10123 case $ac_header_compiler:$ac_header_preproc in
10124   yes:no )
10125     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10127     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10129     (
10130       cat <<\_ASBOX
10131 ## ------------------------------------ ##
10132 ## Report this to bug-autoconf@gnu.org. ##
10133 ## ------------------------------------ ##
10134 _ASBOX
10135     ) |
10136       sed "s/^/$as_me: WARNING:     /" >&2
10137     ;;
10138   no:yes )
10139     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10141     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10143     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10145     (
10146       cat <<\_ASBOX
10147 ## ------------------------------------ ##
10148 ## Report this to bug-autoconf@gnu.org. ##
10149 ## ------------------------------------ ##
10150 _ASBOX
10151     ) |
10152       sed "s/^/$as_me: WARNING:     /" >&2
10153     ;;
10154 esac
10155 echo "$as_me:$LINENO: checking for $ac_header" >&5
10156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10158   echo $ECHO_N "(cached) $ECHO_C" >&6
10159 else
10160   eval "$as_ac_Header=$ac_header_preproc"
10161 fi
10162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10164
10165 fi
10166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10167   cat >>confdefs.h <<_ACEOF
10168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10169 _ACEOF
10170
10171 fi
10172
10173 done
10174
10175 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10176 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10177 if test "${ac_cv_header_stdc+set}" = set; then
10178   echo $ECHO_N "(cached) $ECHO_C" >&6
10179 else
10180   cat >conftest.$ac_ext <<_ACEOF
10181 #line $LINENO "configure"
10182 /* confdefs.h.  */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h.  */
10187 #include <stdlib.h>
10188 #include <stdarg.h>
10189 #include <string.h>
10190 #include <float.h>
10191
10192 int
10193 main ()
10194 {
10195
10196   ;
10197   return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202   (eval $ac_compile) 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); } &&
10206          { ac_try='test -s conftest.$ac_objext'
10207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208   (eval $ac_try) 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); }; }; then
10212   ac_cv_header_stdc=yes
10213 else
10214   echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10216
10217 ac_cv_header_stdc=no
10218 fi
10219 rm -f conftest.$ac_objext conftest.$ac_ext
10220
10221 if test $ac_cv_header_stdc = yes; then
10222   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10223   cat >conftest.$ac_ext <<_ACEOF
10224 #line $LINENO "configure"
10225 /* confdefs.h.  */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h.  */
10230 #include <string.h>
10231
10232 _ACEOF
10233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10234   $EGREP "memchr" >/dev/null 2>&1; then
10235   :
10236 else
10237   ac_cv_header_stdc=no
10238 fi
10239 rm -f conftest*
10240
10241 fi
10242
10243 if test $ac_cv_header_stdc = yes; then
10244   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10245   cat >conftest.$ac_ext <<_ACEOF
10246 #line $LINENO "configure"
10247 /* confdefs.h.  */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h.  */
10252 #include <stdlib.h>
10253
10254 _ACEOF
10255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10256   $EGREP "free" >/dev/null 2>&1; then
10257   :
10258 else
10259   ac_cv_header_stdc=no
10260 fi
10261 rm -f conftest*
10262
10263 fi
10264
10265 if test $ac_cv_header_stdc = yes; then
10266   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10267   if test "$cross_compiling" = yes; then
10268   :
10269 else
10270   cat >conftest.$ac_ext <<_ACEOF
10271 #line $LINENO "configure"
10272 /* confdefs.h.  */
10273 _ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h.  */
10277 #include <ctype.h>
10278 #if ((' ' & 0x0FF) == 0x020)
10279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10281 #else
10282 # define ISLOWER(c) \
10283                    (('a' <= (c) && (c) <= 'i') \
10284                      || ('j' <= (c) && (c) <= 'r') \
10285                      || ('s' <= (c) && (c) <= 'z'))
10286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10287 #endif
10288
10289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10290 int
10291 main ()
10292 {
10293   int i;
10294   for (i = 0; i < 256; i++)
10295     if (XOR (islower (i), ISLOWER (i))
10296         || toupper (i) != TOUPPER (i))
10297       exit(2);
10298   exit (0);
10299 }
10300 _ACEOF
10301 rm -f conftest$ac_exeext
10302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303   (eval $ac_link) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308   (eval $ac_try) 2>&5
10309   ac_status=$?
10310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311   (exit $ac_status); }; }; then
10312   :
10313 else
10314   echo "$as_me: program exited with status $ac_status" >&5
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10317
10318 ( exit $ac_status )
10319 ac_cv_header_stdc=no
10320 fi
10321 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10322 fi
10323 fi
10324 fi
10325 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10326 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10327 if test $ac_cv_header_stdc = yes; then
10328
10329 cat >>confdefs.h <<\_ACEOF
10330 #define STDC_HEADERS 1
10331 _ACEOF
10332
10333 fi
10334
10335 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10336 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10337 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10338   echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340   cat >conftest.$ac_ext <<_ACEOF
10341 #line $LINENO "configure"
10342 /* confdefs.h.  */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h.  */
10347 #include <sys/types.h>
10348 int
10349 main ()
10350 {
10351 return makedev(0, 0);
10352   ;
10353   return 0;
10354 }
10355 _ACEOF
10356 rm -f conftest.$ac_objext conftest$ac_exeext
10357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10358   (eval $ac_link) 2>&5
10359   ac_status=$?
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); } &&
10362          { ac_try='test -s conftest$ac_exeext'
10363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364   (eval $ac_try) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); }; }; then
10368   ac_cv_header_sys_types_h_makedev=yes
10369 else
10370   echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10372
10373 ac_cv_header_sys_types_h_makedev=no
10374 fi
10375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10376
10377 fi
10378 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10379 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10380
10381 if test $ac_cv_header_sys_types_h_makedev = no; then
10382 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10383   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10384 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10385 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10386   echo $ECHO_N "(cached) $ECHO_C" >&6
10387 fi
10388 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10389 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10390 else
10391   # Is the header compilable?
10392 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10393 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10394 cat >conftest.$ac_ext <<_ACEOF
10395 #line $LINENO "configure"
10396 /* confdefs.h.  */
10397 _ACEOF
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h.  */
10401 $ac_includes_default
10402 #include <sys/mkdev.h>
10403 _ACEOF
10404 rm -f conftest.$ac_objext
10405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406   (eval $ac_compile) 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); } &&
10410          { ac_try='test -s conftest.$ac_objext'
10411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412   (eval $ac_try) 2>&5
10413   ac_status=$?
10414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415   (exit $ac_status); }; }; then
10416   ac_header_compiler=yes
10417 else
10418   echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421 ac_header_compiler=no
10422 fi
10423 rm -f conftest.$ac_objext conftest.$ac_ext
10424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10425 echo "${ECHO_T}$ac_header_compiler" >&6
10426
10427 # Is the header present?
10428 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10429 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10430 cat >conftest.$ac_ext <<_ACEOF
10431 #line $LINENO "configure"
10432 /* confdefs.h.  */
10433 _ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h.  */
10437 #include <sys/mkdev.h>
10438 _ACEOF
10439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10440   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10441   ac_status=$?
10442   grep -v '^ *+' conftest.er1 >conftest.err
10443   rm -f conftest.er1
10444   cat conftest.err >&5
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); } >/dev/null; then
10447   if test -s conftest.err; then
10448     ac_cpp_err=$ac_c_preproc_warn_flag
10449   else
10450     ac_cpp_err=
10451   fi
10452 else
10453   ac_cpp_err=yes
10454 fi
10455 if test -z "$ac_cpp_err"; then
10456   ac_header_preproc=yes
10457 else
10458   echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10460
10461   ac_header_preproc=no
10462 fi
10463 rm -f conftest.err conftest.$ac_ext
10464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10465 echo "${ECHO_T}$ac_header_preproc" >&6
10466
10467 # So?  What about this header?
10468 case $ac_header_compiler:$ac_header_preproc in
10469   yes:no )
10470     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10471 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10472     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10473 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10474     (
10475       cat <<\_ASBOX
10476 ## ------------------------------------ ##
10477 ## Report this to bug-autoconf@gnu.org. ##
10478 ## ------------------------------------ ##
10479 _ASBOX
10480     ) |
10481       sed "s/^/$as_me: WARNING:     /" >&2
10482     ;;
10483   no:yes )
10484     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10485 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10486     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10487 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10488     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10489 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10490     (
10491       cat <<\_ASBOX
10492 ## ------------------------------------ ##
10493 ## Report this to bug-autoconf@gnu.org. ##
10494 ## ------------------------------------ ##
10495 _ASBOX
10496     ) |
10497       sed "s/^/$as_me: WARNING:     /" >&2
10498     ;;
10499 esac
10500 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10501 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10502 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10503   echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505   ac_cv_header_sys_mkdev_h=$ac_header_preproc
10506 fi
10507 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10508 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10509
10510 fi
10511 if test $ac_cv_header_sys_mkdev_h = yes; then
10512
10513 cat >>confdefs.h <<\_ACEOF
10514 #define MAJOR_IN_MKDEV 1
10515 _ACEOF
10516
10517 fi
10518
10519
10520
10521   if test $ac_cv_header_sys_mkdev_h = no; then
10522     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10523   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10524 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10525 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10526   echo $ECHO_N "(cached) $ECHO_C" >&6
10527 fi
10528 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10529 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10530 else
10531   # Is the header compilable?
10532 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10533 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10534 cat >conftest.$ac_ext <<_ACEOF
10535 #line $LINENO "configure"
10536 /* confdefs.h.  */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h.  */
10541 $ac_includes_default
10542 #include <sys/sysmacros.h>
10543 _ACEOF
10544 rm -f conftest.$ac_objext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546   (eval $ac_compile) 2>&5
10547   ac_status=$?
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); } &&
10550          { ac_try='test -s conftest.$ac_objext'
10551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552   (eval $ac_try) 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; }; then
10556   ac_header_compiler=yes
10557 else
10558   echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561 ac_header_compiler=no
10562 fi
10563 rm -f conftest.$ac_objext conftest.$ac_ext
10564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10565 echo "${ECHO_T}$ac_header_compiler" >&6
10566
10567 # Is the header present?
10568 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10569 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10570 cat >conftest.$ac_ext <<_ACEOF
10571 #line $LINENO "configure"
10572 /* confdefs.h.  */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h.  */
10577 #include <sys/sysmacros.h>
10578 _ACEOF
10579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10580   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10581   ac_status=$?
10582   grep -v '^ *+' conftest.er1 >conftest.err
10583   rm -f conftest.er1
10584   cat conftest.err >&5
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); } >/dev/null; then
10587   if test -s conftest.err; then
10588     ac_cpp_err=$ac_c_preproc_warn_flag
10589   else
10590     ac_cpp_err=
10591   fi
10592 else
10593   ac_cpp_err=yes
10594 fi
10595 if test -z "$ac_cpp_err"; then
10596   ac_header_preproc=yes
10597 else
10598   echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10600
10601   ac_header_preproc=no
10602 fi
10603 rm -f conftest.err conftest.$ac_ext
10604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10605 echo "${ECHO_T}$ac_header_preproc" >&6
10606
10607 # So?  What about this header?
10608 case $ac_header_compiler:$ac_header_preproc in
10609   yes:no )
10610     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10611 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10612     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10613 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10614     (
10615       cat <<\_ASBOX
10616 ## ------------------------------------ ##
10617 ## Report this to bug-autoconf@gnu.org. ##
10618 ## ------------------------------------ ##
10619 _ASBOX
10620     ) |
10621       sed "s/^/$as_me: WARNING:     /" >&2
10622     ;;
10623   no:yes )
10624     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10625 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10626     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10627 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10628     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10629 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10630     (
10631       cat <<\_ASBOX
10632 ## ------------------------------------ ##
10633 ## Report this to bug-autoconf@gnu.org. ##
10634 ## ------------------------------------ ##
10635 _ASBOX
10636     ) |
10637       sed "s/^/$as_me: WARNING:     /" >&2
10638     ;;
10639 esac
10640 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10641 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10642 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10643   echo $ECHO_N "(cached) $ECHO_C" >&6
10644 else
10645   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10646 fi
10647 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10648 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10649
10650 fi
10651 if test $ac_cv_header_sys_sysmacros_h = yes; then
10652
10653 cat >>confdefs.h <<\_ACEOF
10654 #define MAJOR_IN_SYSMACROS 1
10655 _ACEOF
10656
10657 fi
10658
10659
10660   fi
10661 fi
10662
10663
10664
10665
10666
10667
10668 ac_header_dirent=no
10669 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10670   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10671 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10672 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10674   echo $ECHO_N "(cached) $ECHO_C" >&6
10675 else
10676   cat >conftest.$ac_ext <<_ACEOF
10677 #line $LINENO "configure"
10678 /* confdefs.h.  */
10679 _ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h.  */
10683 #include <sys/types.h>
10684 #include <$ac_hdr>
10685
10686 int
10687 main ()
10688 {
10689 if ((DIR *) 0)
10690 return 0;
10691   ;
10692   return 0;
10693 }
10694 _ACEOF
10695 rm -f conftest.$ac_objext
10696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10697   (eval $ac_compile) 2>&5
10698   ac_status=$?
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); } &&
10701          { ac_try='test -s conftest.$ac_objext'
10702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703   (eval $ac_try) 2>&5
10704   ac_status=$?
10705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); }; }; then
10707   eval "$as_ac_Header=yes"
10708 else
10709   echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10711
10712 eval "$as_ac_Header=no"
10713 fi
10714 rm -f conftest.$ac_objext conftest.$ac_ext
10715 fi
10716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10719   cat >>confdefs.h <<_ACEOF
10720 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10721 _ACEOF
10722
10723 ac_header_dirent=$ac_hdr; break
10724 fi
10725
10726 done
10727 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10728 if test $ac_header_dirent = dirent.h; then
10729   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10730 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10731 if test "${ac_cv_search_opendir+set}" = set; then
10732   echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734   ac_func_search_save_LIBS=$LIBS
10735 ac_cv_search_opendir=no
10736 cat >conftest.$ac_ext <<_ACEOF
10737 #line $LINENO "configure"
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743
10744 /* Override any gcc2 internal prototype to avoid an error.  */
10745 #ifdef __cplusplus
10746 extern "C"
10747 #endif
10748 /* We use char because int might match the return type of a gcc2
10749    builtin and then its argument prototype would still apply.  */
10750 char opendir ();
10751 int
10752 main ()
10753 {
10754 opendir ();
10755   ;
10756   return 0;
10757 }
10758 _ACEOF
10759 rm -f conftest.$ac_objext conftest$ac_exeext
10760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10761   (eval $ac_link) 2>&5
10762   ac_status=$?
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); } &&
10765          { ac_try='test -s conftest$ac_exeext'
10766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767   (eval $ac_try) 2>&5
10768   ac_status=$?
10769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770   (exit $ac_status); }; }; then
10771   ac_cv_search_opendir="none required"
10772 else
10773   echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10775
10776 fi
10777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10778 if test "$ac_cv_search_opendir" = no; then
10779   for ac_lib in dir; do
10780     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10781     cat >conftest.$ac_ext <<_ACEOF
10782 #line $LINENO "configure"
10783 /* confdefs.h.  */
10784 _ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h.  */
10788
10789 /* Override any gcc2 internal prototype to avoid an error.  */
10790 #ifdef __cplusplus
10791 extern "C"
10792 #endif
10793 /* We use char because int might match the return type of a gcc2
10794    builtin and then its argument prototype would still apply.  */
10795 char opendir ();
10796 int
10797 main ()
10798 {
10799 opendir ();
10800   ;
10801   return 0;
10802 }
10803 _ACEOF
10804 rm -f conftest.$ac_objext conftest$ac_exeext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10806   (eval $ac_link) 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); } &&
10810          { ac_try='test -s conftest$ac_exeext'
10811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812   (eval $ac_try) 2>&5
10813   ac_status=$?
10814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); }; }; then
10816   ac_cv_search_opendir="-l$ac_lib"
10817 break
10818 else
10819   echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10821
10822 fi
10823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10824   done
10825 fi
10826 LIBS=$ac_func_search_save_LIBS
10827 fi
10828 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10829 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10830 if test "$ac_cv_search_opendir" != no; then
10831   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10832
10833 fi
10834
10835 else
10836   echo "$as_me:$LINENO: checking for library containing opendir" >&5
10837 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10838 if test "${ac_cv_search_opendir+set}" = set; then
10839   echo $ECHO_N "(cached) $ECHO_C" >&6
10840 else
10841   ac_func_search_save_LIBS=$LIBS
10842 ac_cv_search_opendir=no
10843 cat >conftest.$ac_ext <<_ACEOF
10844 #line $LINENO "configure"
10845 /* confdefs.h.  */
10846 _ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h.  */
10850
10851 /* Override any gcc2 internal prototype to avoid an error.  */
10852 #ifdef __cplusplus
10853 extern "C"
10854 #endif
10855 /* We use char because int might match the return type of a gcc2
10856    builtin and then its argument prototype would still apply.  */
10857 char opendir ();
10858 int
10859 main ()
10860 {
10861 opendir ();
10862   ;
10863   return 0;
10864 }
10865 _ACEOF
10866 rm -f conftest.$ac_objext conftest$ac_exeext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10868   (eval $ac_link) 2>&5
10869   ac_status=$?
10870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871   (exit $ac_status); } &&
10872          { ac_try='test -s conftest$ac_exeext'
10873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874   (eval $ac_try) 2>&5
10875   ac_status=$?
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); }; }; then
10878   ac_cv_search_opendir="none required"
10879 else
10880   echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10882
10883 fi
10884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10885 if test "$ac_cv_search_opendir" = no; then
10886   for ac_lib in x; do
10887     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10888     cat >conftest.$ac_ext <<_ACEOF
10889 #line $LINENO "configure"
10890 /* confdefs.h.  */
10891 _ACEOF
10892 cat confdefs.h >>conftest.$ac_ext
10893 cat >>conftest.$ac_ext <<_ACEOF
10894 /* end confdefs.h.  */
10895
10896 /* Override any gcc2 internal prototype to avoid an error.  */
10897 #ifdef __cplusplus
10898 extern "C"
10899 #endif
10900 /* We use char because int might match the return type of a gcc2
10901    builtin and then its argument prototype would still apply.  */
10902 char opendir ();
10903 int
10904 main ()
10905 {
10906 opendir ();
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 rm -f conftest.$ac_objext conftest$ac_exeext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10913   (eval $ac_link) 2>&5
10914   ac_status=$?
10915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916   (exit $ac_status); } &&
10917          { ac_try='test -s conftest$ac_exeext'
10918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919   (eval $ac_try) 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); }; }; then
10923   ac_cv_search_opendir="-l$ac_lib"
10924 break
10925 else
10926   echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10928
10929 fi
10930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10931   done
10932 fi
10933 LIBS=$ac_func_search_save_LIBS
10934 fi
10935 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10936 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10937 if test "$ac_cv_search_opendir" != no; then
10938   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10939
10940 fi
10941
10942 fi
10943
10944 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10945 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10946 if test "${ac_cv_header_stat_broken+set}" = set; then
10947   echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949   cat >conftest.$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10951 /* confdefs.h.  */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h.  */
10956 #include <sys/types.h>
10957 #include <sys/stat.h>
10958
10959 #if defined(S_ISBLK) && defined(S_IFDIR)
10960 # if S_ISBLK (S_IFDIR)
10961 You lose.
10962 # endif
10963 #endif
10964
10965 #if defined(S_ISBLK) && defined(S_IFCHR)
10966 # if S_ISBLK (S_IFCHR)
10967 You lose.
10968 # endif
10969 #endif
10970
10971 #if defined(S_ISLNK) && defined(S_IFREG)
10972 # if S_ISLNK (S_IFREG)
10973 You lose.
10974 # endif
10975 #endif
10976
10977 #if defined(S_ISSOCK) && defined(S_IFREG)
10978 # if S_ISSOCK (S_IFREG)
10979 You lose.
10980 # endif
10981 #endif
10982
10983 _ACEOF
10984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10985   $EGREP "You lose" >/dev/null 2>&1; then
10986   ac_cv_header_stat_broken=yes
10987 else
10988   ac_cv_header_stat_broken=no
10989 fi
10990 rm -f conftest*
10991
10992 fi
10993 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10994 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10995 if test $ac_cv_header_stat_broken = yes; then
10996
10997 cat >>confdefs.h <<\_ACEOF
10998 #define STAT_MACROS_BROKEN 1
10999 _ACEOF
11000
11001 fi
11002
11003 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11004 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11005 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11006   echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008   cat >conftest.$ac_ext <<_ACEOF
11009 #line $LINENO "configure"
11010 /* confdefs.h.  */
11011 _ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h.  */
11015 #include <sys/types.h>
11016 #include <sys/wait.h>
11017 #ifndef WEXITSTATUS
11018 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11019 #endif
11020 #ifndef WIFEXITED
11021 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11022 #endif
11023
11024 int
11025 main ()
11026 {
11027   int s;
11028   wait (&s);
11029   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11030   ;
11031   return 0;
11032 }
11033 _ACEOF
11034 rm -f conftest.$ac_objext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036   (eval $ac_compile) 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); } &&
11040          { ac_try='test -s conftest.$ac_objext'
11041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042   (eval $ac_try) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; }; then
11046   ac_cv_header_sys_wait_h=yes
11047 else
11048   echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11050
11051 ac_cv_header_sys_wait_h=no
11052 fi
11053 rm -f conftest.$ac_objext conftest.$ac_ext
11054 fi
11055 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11056 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11057 if test $ac_cv_header_sys_wait_h = yes; then
11058
11059 cat >>confdefs.h <<\_ACEOF
11060 #define HAVE_SYS_WAIT_H 1
11061 _ACEOF
11062
11063 fi
11064
11065 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11066 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11067 if test "${ac_cv_header_time+set}" = set; then
11068   echo $ECHO_N "(cached) $ECHO_C" >&6
11069 else
11070   cat >conftest.$ac_ext <<_ACEOF
11071 #line $LINENO "configure"
11072 /* confdefs.h.  */
11073 _ACEOF
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h.  */
11077 #include <sys/types.h>
11078 #include <sys/time.h>
11079 #include <time.h>
11080
11081 int
11082 main ()
11083 {
11084 if ((struct tm *) 0)
11085 return 0;
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 rm -f conftest.$ac_objext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11092   (eval $ac_compile) 2>&5
11093   ac_status=$?
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); } &&
11096          { ac_try='test -s conftest.$ac_objext'
11097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098   (eval $ac_try) 2>&5
11099   ac_status=$?
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); }; }; then
11102   ac_cv_header_time=yes
11103 else
11104   echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11106
11107 ac_cv_header_time=no
11108 fi
11109 rm -f conftest.$ac_objext conftest.$ac_ext
11110 fi
11111 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11112 echo "${ECHO_T}$ac_cv_header_time" >&6
11113 if test $ac_cv_header_time = yes; then
11114
11115 cat >>confdefs.h <<\_ACEOF
11116 #define TIME_WITH_SYS_TIME 1
11117 _ACEOF
11118
11119 fi
11120
11121
11122 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11123 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11124 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11125   echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127   cat >conftest.$ac_ext <<_ACEOF
11128 #line $LINENO "configure"
11129 /* confdefs.h.  */
11130 _ACEOF
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h.  */
11134 $ac_includes_default
11135 int
11136 main ()
11137 {
11138 static struct stat ac_aggr;
11139 if (ac_aggr.st_blksize)
11140 return 0;
11141   ;
11142   return 0;
11143 }
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147   (eval $ac_compile) 2>&5
11148   ac_status=$?
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); } &&
11151          { ac_try='test -s conftest.$ac_objext'
11152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153   (eval $ac_try) 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); }; }; then
11157   ac_cv_member_struct_stat_st_blksize=yes
11158 else
11159   echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11161
11162 cat >conftest.$ac_ext <<_ACEOF
11163 #line $LINENO "configure"
11164 /* confdefs.h.  */
11165 _ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h.  */
11169 $ac_includes_default
11170 int
11171 main ()
11172 {
11173 static struct stat ac_aggr;
11174 if (sizeof ac_aggr.st_blksize)
11175 return 0;
11176   ;
11177   return 0;
11178 }
11179 _ACEOF
11180 rm -f conftest.$ac_objext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11182   (eval $ac_compile) 2>&5
11183   ac_status=$?
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); } &&
11186          { ac_try='test -s conftest.$ac_objext'
11187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188   (eval $ac_try) 2>&5
11189   ac_status=$?
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); }; }; then
11192   ac_cv_member_struct_stat_st_blksize=yes
11193 else
11194   echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11196
11197 ac_cv_member_struct_stat_st_blksize=no
11198 fi
11199 rm -f conftest.$ac_objext conftest.$ac_ext
11200 fi
11201 rm -f conftest.$ac_objext conftest.$ac_ext
11202 fi
11203 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11204 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11205 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11206
11207 cat >>confdefs.h <<_ACEOF
11208 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11209 _ACEOF
11210
11211
11212 cat >>confdefs.h <<\_ACEOF
11213 #define HAVE_ST_BLKSIZE 1
11214 _ACEOF
11215
11216 fi
11217
11218
11219 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11220 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11221 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11222   echo $ECHO_N "(cached) $ECHO_C" >&6
11223 else
11224   cat >conftest.$ac_ext <<_ACEOF
11225 #line $LINENO "configure"
11226 /* confdefs.h.  */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h.  */
11231 $ac_includes_default
11232 int
11233 main ()
11234 {
11235 static struct stat ac_aggr;
11236 if (ac_aggr.st_blocks)
11237 return 0;
11238   ;
11239   return 0;
11240 }
11241 _ACEOF
11242 rm -f conftest.$ac_objext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11244   (eval $ac_compile) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); } &&
11248          { ac_try='test -s conftest.$ac_objext'
11249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250   (eval $ac_try) 2>&5
11251   ac_status=$?
11252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253   (exit $ac_status); }; }; then
11254   ac_cv_member_struct_stat_st_blocks=yes
11255 else
11256   echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259 cat >conftest.$ac_ext <<_ACEOF
11260 #line $LINENO "configure"
11261 /* confdefs.h.  */
11262 _ACEOF
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h.  */
11266 $ac_includes_default
11267 int
11268 main ()
11269 {
11270 static struct stat ac_aggr;
11271 if (sizeof ac_aggr.st_blocks)
11272 return 0;
11273   ;
11274   return 0;
11275 }
11276 _ACEOF
11277 rm -f conftest.$ac_objext
11278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11279   (eval $ac_compile) 2>&5
11280   ac_status=$?
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); } &&
11283          { ac_try='test -s conftest.$ac_objext'
11284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285   (eval $ac_try) 2>&5
11286   ac_status=$?
11287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288   (exit $ac_status); }; }; then
11289   ac_cv_member_struct_stat_st_blocks=yes
11290 else
11291   echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11293
11294 ac_cv_member_struct_stat_st_blocks=no
11295 fi
11296 rm -f conftest.$ac_objext conftest.$ac_ext
11297 fi
11298 rm -f conftest.$ac_objext conftest.$ac_ext
11299 fi
11300 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11301 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11302 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11303
11304 cat >>confdefs.h <<_ACEOF
11305 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11306 _ACEOF
11307
11308
11309 cat >>confdefs.h <<\_ACEOF
11310 #define HAVE_ST_BLOCKS 1
11311 _ACEOF
11312
11313 else
11314   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11315 fi
11316
11317
11318 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11319 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11320 if test "${ac_cv_struct_tm+set}" = set; then
11321   echo $ECHO_N "(cached) $ECHO_C" >&6
11322 else
11323   cat >conftest.$ac_ext <<_ACEOF
11324 #line $LINENO "configure"
11325 /* confdefs.h.  */
11326 _ACEOF
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h.  */
11330 #include <sys/types.h>
11331 #include <time.h>
11332
11333 int
11334 main ()
11335 {
11336 struct tm *tp; tp->tm_sec;
11337   ;
11338   return 0;
11339 }
11340 _ACEOF
11341 rm -f conftest.$ac_objext
11342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11343   (eval $ac_compile) 2>&5
11344   ac_status=$?
11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   (exit $ac_status); } &&
11347          { ac_try='test -s conftest.$ac_objext'
11348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349   (eval $ac_try) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }; }; then
11353   ac_cv_struct_tm=time.h
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11357
11358 ac_cv_struct_tm=sys/time.h
11359 fi
11360 rm -f conftest.$ac_objext conftest.$ac_ext
11361 fi
11362 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11363 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11364 if test $ac_cv_struct_tm = sys/time.h; then
11365
11366 cat >>confdefs.h <<\_ACEOF
11367 #define TM_IN_SYS_TIME 1
11368 _ACEOF
11369
11370 fi
11371
11372 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11373 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11374 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11375   echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377   cat >conftest.$ac_ext <<_ACEOF
11378 #line $LINENO "configure"
11379 /* confdefs.h.  */
11380 _ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h.  */
11384 #include <sys/types.h>
11385 #include <$ac_cv_struct_tm>
11386
11387
11388 int
11389 main ()
11390 {
11391 static struct tm ac_aggr;
11392 if (ac_aggr.tm_zone)
11393 return 0;
11394   ;
11395   return 0;
11396 }
11397 _ACEOF
11398 rm -f conftest.$ac_objext
11399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400   (eval $ac_compile) 2>&5
11401   ac_status=$?
11402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403   (exit $ac_status); } &&
11404          { ac_try='test -s conftest.$ac_objext'
11405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406   (eval $ac_try) 2>&5
11407   ac_status=$?
11408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409   (exit $ac_status); }; }; then
11410   ac_cv_member_struct_tm_tm_zone=yes
11411 else
11412   echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11414
11415 cat >conftest.$ac_ext <<_ACEOF
11416 #line $LINENO "configure"
11417 /* confdefs.h.  */
11418 _ACEOF
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h.  */
11422 #include <sys/types.h>
11423 #include <$ac_cv_struct_tm>
11424
11425
11426 int
11427 main ()
11428 {
11429 static struct tm ac_aggr;
11430 if (sizeof ac_aggr.tm_zone)
11431 return 0;
11432   ;
11433   return 0;
11434 }
11435 _ACEOF
11436 rm -f conftest.$ac_objext
11437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11438   (eval $ac_compile) 2>&5
11439   ac_status=$?
11440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441   (exit $ac_status); } &&
11442          { ac_try='test -s conftest.$ac_objext'
11443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444   (eval $ac_try) 2>&5
11445   ac_status=$?
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); }; }; then
11448   ac_cv_member_struct_tm_tm_zone=yes
11449 else
11450   echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11452
11453 ac_cv_member_struct_tm_tm_zone=no
11454 fi
11455 rm -f conftest.$ac_objext conftest.$ac_ext
11456 fi
11457 rm -f conftest.$ac_objext conftest.$ac_ext
11458 fi
11459 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11460 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11461 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11462
11463 cat >>confdefs.h <<_ACEOF
11464 #define HAVE_STRUCT_TM_TM_ZONE 1
11465 _ACEOF
11466
11467
11468 fi
11469
11470 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11471
11472 cat >>confdefs.h <<\_ACEOF
11473 #define HAVE_TM_ZONE 1
11474 _ACEOF
11475
11476 else
11477   echo "$as_me:$LINENO: checking for tzname" >&5
11478 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11479 if test "${ac_cv_var_tzname+set}" = set; then
11480   echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482   cat >conftest.$ac_ext <<_ACEOF
11483 #line $LINENO "configure"
11484 /* confdefs.h.  */
11485 _ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h.  */
11489 #include <time.h>
11490 #ifndef tzname /* For SGI.  */
11491 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
11492 #endif
11493
11494 int
11495 main ()
11496 {
11497 atoi(*tzname);
11498   ;
11499   return 0;
11500 }
11501 _ACEOF
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11504   (eval $ac_link) 2>&5
11505   ac_status=$?
11506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507   (exit $ac_status); } &&
11508          { ac_try='test -s conftest$ac_exeext'
11509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510   (eval $ac_try) 2>&5
11511   ac_status=$?
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   (exit $ac_status); }; }; then
11514   ac_cv_var_tzname=yes
11515 else
11516   echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11518
11519 ac_cv_var_tzname=no
11520 fi
11521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11522 fi
11523 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11524 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11525   if test $ac_cv_var_tzname = yes; then
11526
11527 cat >>confdefs.h <<\_ACEOF
11528 #define HAVE_TZNAME 1
11529 _ACEOF
11530
11531   fi
11532 fi
11533
11534
11535 echo "$as_me:$LINENO: checking for utime.h" >&5
11536 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11537 if test "${ba_cv_header_utime_h+set}" = set; then
11538   echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540   cat >conftest.$ac_ext <<_ACEOF
11541 #line $LINENO "configure"
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547
11548 #include <sys/types.h>
11549 #include <utime.h>
11550 int
11551 main ()
11552 {
11553 struct utimbuf foo
11554   ;
11555   return 0;
11556 }
11557 _ACEOF
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560   (eval $ac_compile) 2>&5
11561   ac_status=$?
11562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563   (exit $ac_status); } &&
11564          { ac_try='test -s conftest.$ac_objext'
11565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566   (eval $ac_try) 2>&5
11567   ac_status=$?
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); }; }; then
11570   ba_cv_header_utime_h=yes
11571 else
11572   echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11574
11575 ba_cv_header_utime_h=no
11576 fi
11577 rm -f conftest.$ac_objext conftest.$ac_ext
11578 fi
11579 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11580 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11581 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11582 #define HAVE_UTIME_H 1
11583 _ACEOF
11584
11585
11586 echo "$as_me:$LINENO: checking for socklen_t" >&5
11587 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11588 if test "${ba_cv_header_socklen_t+set}" = set; then
11589   echo $ECHO_N "(cached) $ECHO_C" >&6
11590 else
11591   cat >conftest.$ac_ext <<_ACEOF
11592 #line $LINENO "configure"
11593 /* confdefs.h.  */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h.  */
11598
11599 #include <sys/types.h>
11600 #include <sys/socket.h>
11601 int
11602 main ()
11603 {
11604 socklen_t x
11605   ;
11606   return 0;
11607 }
11608 _ACEOF
11609 rm -f conftest.$ac_objext
11610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11611   (eval $ac_compile) 2>&5
11612   ac_status=$?
11613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614   (exit $ac_status); } &&
11615          { ac_try='test -s conftest.$ac_objext'
11616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617   (eval $ac_try) 2>&5
11618   ac_status=$?
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); }; }; then
11621   ba_cv_header_socklen_t=yes
11622 else
11623   echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11625
11626 ba_cv_header_socklen_t=no
11627 fi
11628 rm -f conftest.$ac_objext conftest.$ac_ext
11629 fi
11630 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11631 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11632 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11633 #define HAVE_SOCKLEN_T 1
11634 _ACEOF
11635
11636
11637 echo "$as_me:$LINENO: checking for bigendian" >&5
11638 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11639 if test "${ba_cv_bigendian+set}" = set; then
11640   echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642   if test "$cross_compiling" = yes; then
11643   ba_cv_bigendian=no
11644 else
11645   cat >conftest.$ac_ext <<_ACEOF
11646 #line $LINENO "configure"
11647 /* confdefs.h.  */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h.  */
11652 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11653 _ACEOF
11654 rm -f conftest$ac_exeext
11655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11656   (eval $ac_link) 2>&5
11657   ac_status=$?
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661   (eval $ac_try) 2>&5
11662   ac_status=$?
11663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664   (exit $ac_status); }; }; then
11665   ba_cv_bigendian=yes
11666 else
11667   echo "$as_me: program exited with status $ac_status" >&5
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11670
11671 ( exit $ac_status )
11672 ba_cv_bigendian=no
11673 fi
11674 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11675 fi
11676 fi
11677 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11678 echo "${ECHO_T}$ba_cv_bigendian" >&6
11679 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11680 #define HAVE_BIGENDIAN 1
11681 _ACEOF
11682
11683
11684
11685 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11686 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11687 if test "${ac_cv_c_const+set}" = set; then
11688   echo $ECHO_N "(cached) $ECHO_C" >&6
11689 else
11690   cat >conftest.$ac_ext <<_ACEOF
11691 #line $LINENO "configure"
11692 /* confdefs.h.  */
11693 _ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h.  */
11697
11698 int
11699 main ()
11700 {
11701 /* FIXME: Include the comments suggested by Paul. */
11702 #ifndef __cplusplus
11703   /* Ultrix mips cc rejects this.  */
11704   typedef int charset[2];
11705   const charset x;
11706   /* SunOS 4.1.1 cc rejects this.  */
11707   char const *const *ccp;
11708   char **p;
11709   /* NEC SVR4.0.2 mips cc rejects this.  */
11710   struct point {int x, y;};
11711   static struct point const zero = {0,0};
11712   /* AIX XL C 1.02.0.0 rejects this.
11713      It does not let you subtract one const X* pointer from another in
11714      an arm of an if-expression whose if-part is not a constant
11715      expression */
11716   const char *g = "string";
11717   ccp = &g + (g ? g-g : 0);
11718   /* HPUX 7.0 cc rejects these. */
11719   ++ccp;
11720   p = (char**) ccp;
11721   ccp = (char const *const *) p;
11722   { /* SCO 3.2v4 cc rejects this.  */
11723     char *t;
11724     char const *s = 0 ? (char *) 0 : (char const *) 0;
11725
11726     *t++ = 0;
11727   }
11728   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11729     int x[] = {25, 17};
11730     const int *foo = &x[0];
11731     ++foo;
11732   }
11733   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11734     typedef const int *iptr;
11735     iptr p = 0;
11736     ++p;
11737   }
11738   { /* AIX XL C 1.02.0.0 rejects this saying
11739        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11740     struct s { int j; const int *ap[3]; };
11741     struct s *b; b->j = 5;
11742   }
11743   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11744     const int foo = 10;
11745   }
11746 #endif
11747
11748   ;
11749   return 0;
11750 }
11751 _ACEOF
11752 rm -f conftest.$ac_objext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11754   (eval $ac_compile) 2>&5
11755   ac_status=$?
11756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757   (exit $ac_status); } &&
11758          { ac_try='test -s conftest.$ac_objext'
11759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760   (eval $ac_try) 2>&5
11761   ac_status=$?
11762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763   (exit $ac_status); }; }; then
11764   ac_cv_c_const=yes
11765 else
11766   echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11768
11769 ac_cv_c_const=no
11770 fi
11771 rm -f conftest.$ac_objext conftest.$ac_ext
11772 fi
11773 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11774 echo "${ECHO_T}$ac_cv_c_const" >&6
11775 if test $ac_cv_c_const = no; then
11776
11777 cat >>confdefs.h <<\_ACEOF
11778 #define const
11779 _ACEOF
11780
11781 fi
11782
11783
11784
11785 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11786 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11787 fstype=no
11788 # The order of these tests is important.
11789 cat >conftest.$ac_ext <<_ACEOF
11790 #line $LINENO "configure"
11791 /* confdefs.h.  */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h.  */
11796 #include <sys/statvfs.h>
11797 #include <sys/fstyp.h>
11798 _ACEOF
11799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11800   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11801   ac_status=$?
11802   grep -v '^ *+' conftest.er1 >conftest.err
11803   rm -f conftest.er1
11804   cat conftest.err >&5
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); } >/dev/null; then
11807   if test -s conftest.err; then
11808     ac_cpp_err=$ac_c_preproc_warn_flag
11809   else
11810     ac_cpp_err=
11811   fi
11812 else
11813   ac_cpp_err=yes
11814 fi
11815 if test -z "$ac_cpp_err"; then
11816   cat >>confdefs.h <<\_ACEOF
11817 #define FSTYPE_STATVFS 1
11818 _ACEOF
11819  fstype=SVR4
11820 else
11821   echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11823
11824
11825 fi
11826 rm -f conftest.err conftest.$ac_ext
11827 if test $fstype = no; then
11828 cat >conftest.$ac_ext <<_ACEOF
11829 #line $LINENO "configure"
11830 /* confdefs.h.  */
11831 _ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h.  */
11835 #include <sys/statfs.h>
11836 #include <sys/fstyp.h>
11837 _ACEOF
11838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11839   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11840   ac_status=$?
11841   grep -v '^ *+' conftest.er1 >conftest.err
11842   rm -f conftest.er1
11843   cat conftest.err >&5
11844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845   (exit $ac_status); } >/dev/null; then
11846   if test -s conftest.err; then
11847     ac_cpp_err=$ac_c_preproc_warn_flag
11848   else
11849     ac_cpp_err=
11850   fi
11851 else
11852   ac_cpp_err=yes
11853 fi
11854 if test -z "$ac_cpp_err"; then
11855   cat >>confdefs.h <<\_ACEOF
11856 #define FSTYPE_USG_STATFS 1
11857 _ACEOF
11858  fstype=SVR3
11859 else
11860   echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11862
11863
11864 fi
11865 rm -f conftest.err conftest.$ac_ext
11866 fi
11867 if test $fstype = no; then
11868 cat >conftest.$ac_ext <<_ACEOF
11869 #line $LINENO "configure"
11870 /* confdefs.h.  */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h.  */
11875 #include <sys/statfs.h>
11876 #include <sys/vmount.h>
11877 _ACEOF
11878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11879   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11880   ac_status=$?
11881   grep -v '^ *+' conftest.er1 >conftest.err
11882   rm -f conftest.er1
11883   cat conftest.err >&5
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); } >/dev/null; then
11886   if test -s conftest.err; then
11887     ac_cpp_err=$ac_c_preproc_warn_flag
11888   else
11889     ac_cpp_err=
11890   fi
11891 else
11892   ac_cpp_err=yes
11893 fi
11894 if test -z "$ac_cpp_err"; then
11895   cat >>confdefs.h <<\_ACEOF
11896 #define FSTYPE_AIX_STATFS 1
11897 _ACEOF
11898  fstype=AIX
11899 else
11900   echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11902
11903
11904 fi
11905 rm -f conftest.err conftest.$ac_ext
11906 fi
11907 if test $fstype = no; then
11908 cat >conftest.$ac_ext <<_ACEOF
11909 #line $LINENO "configure"
11910 /* confdefs.h.  */
11911 _ACEOF
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h.  */
11915 #include <mntent.h>
11916 _ACEOF
11917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11918   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11919   ac_status=$?
11920   grep -v '^ *+' conftest.er1 >conftest.err
11921   rm -f conftest.er1
11922   cat conftest.err >&5
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); } >/dev/null; then
11925   if test -s conftest.err; then
11926     ac_cpp_err=$ac_c_preproc_warn_flag
11927   else
11928     ac_cpp_err=
11929   fi
11930 else
11931   ac_cpp_err=yes
11932 fi
11933 if test -z "$ac_cpp_err"; then
11934   cat >>confdefs.h <<\_ACEOF
11935 #define FSTYPE_MNTENT 1
11936 _ACEOF
11937  fstype=4.3BSD
11938 else
11939   echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11941
11942
11943 fi
11944 rm -f conftest.err conftest.$ac_ext
11945 fi
11946 if test $fstype = no; then
11947 cat >conftest.$ac_ext <<_ACEOF
11948 #line $LINENO "configure"
11949 /* confdefs.h.  */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h.  */
11954 #include <sys/mount.h>
11955
11956 _ACEOF
11957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11958   $EGREP "f_type;" >/dev/null 2>&1; then
11959   cat >>confdefs.h <<\_ACEOF
11960 #define FSTYPE_STATFS 1
11961 _ACEOF
11962  fstype=4.4BSD/OSF1
11963 fi
11964 rm -f conftest*
11965
11966 fi
11967 if test $fstype = no; then
11968 cat >conftest.$ac_ext <<_ACEOF
11969 #line $LINENO "configure"
11970 /* confdefs.h.  */
11971 _ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h.  */
11975 #include <sys/mount.h>
11976 #include <sys/fs_types.h>
11977 _ACEOF
11978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11980   ac_status=$?
11981   grep -v '^ *+' conftest.er1 >conftest.err
11982   rm -f conftest.er1
11983   cat conftest.err >&5
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); } >/dev/null; then
11986   if test -s conftest.err; then
11987     ac_cpp_err=$ac_c_preproc_warn_flag
11988   else
11989     ac_cpp_err=
11990   fi
11991 else
11992   ac_cpp_err=yes
11993 fi
11994 if test -z "$ac_cpp_err"; then
11995   cat >>confdefs.h <<\_ACEOF
11996 #define FSTYPE_GETMNT 1
11997 _ACEOF
11998  fstype=Ultrix
11999 else
12000   echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12002
12003
12004 fi
12005 rm -f conftest.err conftest.$ac_ext
12006 fi
12007 echo "$as_me:$LINENO: result: $fstype" >&5
12008 echo "${ECHO_T}$fstype" >&6
12009
12010 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12011 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12012 if test "${ac_cv_type_signal+set}" = set; then
12013   echo $ECHO_N "(cached) $ECHO_C" >&6
12014 else
12015   cat >conftest.$ac_ext <<_ACEOF
12016 #line $LINENO "configure"
12017 /* confdefs.h.  */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h.  */
12022 #include <sys/types.h>
12023 #include <signal.h>
12024 #ifdef signal
12025 # undef signal
12026 #endif
12027 #ifdef __cplusplus
12028 extern "C" void (*signal (int, void (*)(int)))(int);
12029 #else
12030 void (*signal ()) ();
12031 #endif
12032
12033 int
12034 main ()
12035 {
12036 int i;
12037   ;
12038   return 0;
12039 }
12040 _ACEOF
12041 rm -f conftest.$ac_objext
12042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12043   (eval $ac_compile) 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); } &&
12047          { ac_try='test -s conftest.$ac_objext'
12048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049   (eval $ac_try) 2>&5
12050   ac_status=$?
12051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052   (exit $ac_status); }; }; then
12053   ac_cv_type_signal=void
12054 else
12055   echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12057
12058 ac_cv_type_signal=int
12059 fi
12060 rm -f conftest.$ac_objext conftest.$ac_ext
12061 fi
12062 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12063 echo "${ECHO_T}$ac_cv_type_signal" >&6
12064
12065 cat >>confdefs.h <<_ACEOF
12066 #define RETSIGTYPE $ac_cv_type_signal
12067 _ACEOF
12068
12069
12070
12071 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12072 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12073 if test "${bash_cv_signal_vintage+set}" = set; then
12074   echo $ECHO_N "(cached) $ECHO_C" >&6
12075 else
12076
12077   cat >conftest.$ac_ext <<_ACEOF
12078 #line $LINENO "configure"
12079 /* confdefs.h.  */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h.  */
12084 #include <signal.h>
12085 int
12086 main ()
12087 {
12088
12089     sigset_t ss;
12090     struct sigaction sa;
12091     sigemptyset(&ss); sigsuspend(&ss);
12092     sigaction(SIGINT, &sa, (struct sigaction *) 0);
12093     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12094
12095   ;
12096   return 0;
12097 }
12098 _ACEOF
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12101   (eval $ac_link) 2>&5
12102   ac_status=$?
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); } &&
12105          { ac_try='test -s conftest$ac_exeext'
12106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107   (eval $ac_try) 2>&5
12108   ac_status=$?
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); }; }; then
12111   bash_cv_signal_vintage=posix
12112 else
12113   echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
12115
12116
12117     cat >conftest.$ac_ext <<_ACEOF
12118 #line $LINENO "configure"
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 #include <signal.h>
12125 int
12126 main ()
12127 {
12128
12129         int mask = sigmask(SIGINT);
12130         sigsetmask(mask); sigblock(mask); sigpause(mask);
12131
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12138   (eval $ac_link) 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); } &&
12142          { ac_try='test -s conftest$ac_exeext'
12143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144   (eval $ac_try) 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }; }; then
12148   bash_cv_signal_vintage=4.2bsd
12149 else
12150   echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153
12154       cat >conftest.$ac_ext <<_ACEOF
12155 #line $LINENO "configure"
12156 /* confdefs.h.  */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h.  */
12161
12162         #include <signal.h>
12163         RETSIGTYPE foo() { }
12164 int
12165 main ()
12166 {
12167
12168                 int mask = sigmask(SIGINT);
12169                 sigset(SIGINT, foo); sigrelse(SIGINT);
12170                 sighold(SIGINT); sigpause(SIGINT);
12171
12172   ;
12173   return 0;
12174 }
12175 _ACEOF
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178   (eval $ac_link) 2>&5
12179   ac_status=$?
12180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); } &&
12182          { ac_try='test -s conftest$ac_exeext'
12183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184   (eval $ac_try) 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); }; }; then
12188   bash_cv_signal_vintage=svr3
12189 else
12190   echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12192
12193 bash_cv_signal_vintage=v7
12194
12195 fi
12196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12197
12198 fi
12199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12200
12201 fi
12202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12203
12204 fi
12205
12206 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12207 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12208 if test "$bash_cv_signal_vintage" = posix; then
12209 cat >>confdefs.h <<\_ACEOF
12210 #define HAVE_POSIX_SIGNALS 1
12211 _ACEOF
12212
12213 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12214 cat >>confdefs.h <<\_ACEOF
12215 #define HAVE_BSD_SIGNALS 1
12216 _ACEOF
12217
12218 elif test "$bash_cv_signal_vintage" = svr3; then
12219 cat >>confdefs.h <<\_ACEOF
12220 #define HAVE_USG_SIGHOLD 1
12221 _ACEOF
12222
12223 fi
12224
12225 echo "$as_me:$LINENO: checking for mode_t" >&5
12226 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12227 if test "${ac_cv_type_mode_t+set}" = set; then
12228   echo $ECHO_N "(cached) $ECHO_C" >&6
12229 else
12230   cat >conftest.$ac_ext <<_ACEOF
12231 #line $LINENO "configure"
12232 /* confdefs.h.  */
12233 _ACEOF
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h.  */
12237 $ac_includes_default
12238 int
12239 main ()
12240 {
12241 if ((mode_t *) 0)
12242   return 0;
12243 if (sizeof (mode_t))
12244   return 0;
12245   ;
12246   return 0;
12247 }
12248 _ACEOF
12249 rm -f conftest.$ac_objext
12250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12251   (eval $ac_compile) 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); } &&
12255          { ac_try='test -s conftest.$ac_objext'
12256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257   (eval $ac_try) 2>&5
12258   ac_status=$?
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); }; }; then
12261   ac_cv_type_mode_t=yes
12262 else
12263   echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12265
12266 ac_cv_type_mode_t=no
12267 fi
12268 rm -f conftest.$ac_objext conftest.$ac_ext
12269 fi
12270 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12271 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12272 if test $ac_cv_type_mode_t = yes; then
12273   :
12274 else
12275
12276 cat >>confdefs.h <<_ACEOF
12277 #define mode_t int
12278 _ACEOF
12279
12280 fi
12281
12282 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12283 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12284 if test "${ac_cv_type_uid_t+set}" = set; then
12285   echo $ECHO_N "(cached) $ECHO_C" >&6
12286 else
12287   cat >conftest.$ac_ext <<_ACEOF
12288 #line $LINENO "configure"
12289 /* confdefs.h.  */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h.  */
12294 #include <sys/types.h>
12295
12296 _ACEOF
12297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12298   $EGREP "uid_t" >/dev/null 2>&1; then
12299   ac_cv_type_uid_t=yes
12300 else
12301   ac_cv_type_uid_t=no
12302 fi
12303 rm -f conftest*
12304
12305 fi
12306 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12307 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12308 if test $ac_cv_type_uid_t = no; then
12309
12310 cat >>confdefs.h <<\_ACEOF
12311 #define uid_t int
12312 _ACEOF
12313
12314
12315 cat >>confdefs.h <<\_ACEOF
12316 #define gid_t int
12317 _ACEOF
12318
12319 fi
12320
12321 echo "$as_me:$LINENO: checking for size_t" >&5
12322 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12323 if test "${ac_cv_type_size_t+set}" = set; then
12324   echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326   cat >conftest.$ac_ext <<_ACEOF
12327 #line $LINENO "configure"
12328 /* confdefs.h.  */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h.  */
12333 $ac_includes_default
12334 int
12335 main ()
12336 {
12337 if ((size_t *) 0)
12338   return 0;
12339 if (sizeof (size_t))
12340   return 0;
12341   ;
12342   return 0;
12343 }
12344 _ACEOF
12345 rm -f conftest.$ac_objext
12346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12347   (eval $ac_compile) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); } &&
12351          { ac_try='test -s conftest.$ac_objext'
12352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353   (eval $ac_try) 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); }; }; then
12357   ac_cv_type_size_t=yes
12358 else
12359   echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12361
12362 ac_cv_type_size_t=no
12363 fi
12364 rm -f conftest.$ac_objext conftest.$ac_ext
12365 fi
12366 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12367 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12368 if test $ac_cv_type_size_t = yes; then
12369   :
12370 else
12371
12372 cat >>confdefs.h <<_ACEOF
12373 #define size_t unsigned
12374 _ACEOF
12375
12376 fi
12377
12378 echo "$as_me:$LINENO: checking for pid_t" >&5
12379 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12380 if test "${ac_cv_type_pid_t+set}" = set; then
12381   echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383   cat >conftest.$ac_ext <<_ACEOF
12384 #line $LINENO "configure"
12385 /* confdefs.h.  */
12386 _ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h.  */
12390 $ac_includes_default
12391 int
12392 main ()
12393 {
12394 if ((pid_t *) 0)
12395   return 0;
12396 if (sizeof (pid_t))
12397   return 0;
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 rm -f conftest.$ac_objext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12404   (eval $ac_compile) 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); } &&
12408          { ac_try='test -s conftest.$ac_objext'
12409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410   (eval $ac_try) 2>&5
12411   ac_status=$?
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); }; }; then
12414   ac_cv_type_pid_t=yes
12415 else
12416   echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 ac_cv_type_pid_t=no
12420 fi
12421 rm -f conftest.$ac_objext conftest.$ac_ext
12422 fi
12423 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12424 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12425 if test $ac_cv_type_pid_t = yes; then
12426   :
12427 else
12428
12429 cat >>confdefs.h <<_ACEOF
12430 #define pid_t int
12431 _ACEOF
12432
12433 fi
12434
12435 echo "$as_me:$LINENO: checking for off_t" >&5
12436 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12437 if test "${ac_cv_type_off_t+set}" = set; then
12438   echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440   cat >conftest.$ac_ext <<_ACEOF
12441 #line $LINENO "configure"
12442 /* confdefs.h.  */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h.  */
12447 $ac_includes_default
12448 int
12449 main ()
12450 {
12451 if ((off_t *) 0)
12452   return 0;
12453 if (sizeof (off_t))
12454   return 0;
12455   ;
12456   return 0;
12457 }
12458 _ACEOF
12459 rm -f conftest.$ac_objext
12460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12461   (eval $ac_compile) 2>&5
12462   ac_status=$?
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); } &&
12465          { ac_try='test -s conftest.$ac_objext'
12466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467   (eval $ac_try) 2>&5
12468   ac_status=$?
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); }; }; then
12471   ac_cv_type_off_t=yes
12472 else
12473   echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12475
12476 ac_cv_type_off_t=no
12477 fi
12478 rm -f conftest.$ac_objext conftest.$ac_ext
12479 fi
12480 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12481 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12482 if test $ac_cv_type_off_t = yes; then
12483   :
12484 else
12485
12486 cat >>confdefs.h <<_ACEOF
12487 #define off_t long
12488 _ACEOF
12489
12490 fi
12491
12492 echo "$as_me:$LINENO: checking for ino_t" >&5
12493 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12494 if test "${ac_cv_type_ino_t+set}" = set; then
12495   echo $ECHO_N "(cached) $ECHO_C" >&6
12496 else
12497   cat >conftest.$ac_ext <<_ACEOF
12498 #line $LINENO "configure"
12499 /* confdefs.h.  */
12500 _ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h.  */
12504 $ac_includes_default
12505 int
12506 main ()
12507 {
12508 if ((ino_t *) 0)
12509   return 0;
12510 if (sizeof (ino_t))
12511   return 0;
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 rm -f conftest.$ac_objext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12518   (eval $ac_compile) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); } &&
12522          { ac_try='test -s conftest.$ac_objext'
12523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524   (eval $ac_try) 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); }; }; then
12528   ac_cv_type_ino_t=yes
12529 else
12530   echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12532
12533 ac_cv_type_ino_t=no
12534 fi
12535 rm -f conftest.$ac_objext conftest.$ac_ext
12536 fi
12537 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12538 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12539 if test $ac_cv_type_ino_t = yes; then
12540   :
12541 else
12542
12543 cat >>confdefs.h <<_ACEOF
12544 #define ino_t unsigned long
12545 _ACEOF
12546
12547 fi
12548
12549 echo "$as_me:$LINENO: checking for dev_t" >&5
12550 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12551 if test "${ac_cv_type_dev_t+set}" = set; then
12552   echo $ECHO_N "(cached) $ECHO_C" >&6
12553 else
12554   cat >conftest.$ac_ext <<_ACEOF
12555 #line $LINENO "configure"
12556 /* confdefs.h.  */
12557 _ACEOF
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h.  */
12561 $ac_includes_default
12562 int
12563 main ()
12564 {
12565 if ((dev_t *) 0)
12566   return 0;
12567 if (sizeof (dev_t))
12568   return 0;
12569   ;
12570   return 0;
12571 }
12572 _ACEOF
12573 rm -f conftest.$ac_objext
12574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12575   (eval $ac_compile) 2>&5
12576   ac_status=$?
12577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578   (exit $ac_status); } &&
12579          { ac_try='test -s conftest.$ac_objext'
12580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581   (eval $ac_try) 2>&5
12582   ac_status=$?
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); }; }; then
12585   ac_cv_type_dev_t=yes
12586 else
12587   echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12589
12590 ac_cv_type_dev_t=no
12591 fi
12592 rm -f conftest.$ac_objext conftest.$ac_ext
12593 fi
12594 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12595 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12596 if test $ac_cv_type_dev_t = yes; then
12597   :
12598 else
12599
12600 cat >>confdefs.h <<_ACEOF
12601 #define dev_t unsigned long
12602 _ACEOF
12603
12604 fi
12605
12606 echo "$as_me:$LINENO: checking for daddr_t" >&5
12607 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12608 if test "${ac_cv_type_daddr_t+set}" = set; then
12609   echo $ECHO_N "(cached) $ECHO_C" >&6
12610 else
12611   cat >conftest.$ac_ext <<_ACEOF
12612 #line $LINENO "configure"
12613 /* confdefs.h.  */
12614 _ACEOF
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h.  */
12618 $ac_includes_default
12619 int
12620 main ()
12621 {
12622 if ((daddr_t *) 0)
12623   return 0;
12624 if (sizeof (daddr_t))
12625   return 0;
12626   ;
12627   return 0;
12628 }
12629 _ACEOF
12630 rm -f conftest.$ac_objext
12631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632   (eval $ac_compile) 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); } &&
12636          { ac_try='test -s conftest.$ac_objext'
12637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638   (eval $ac_try) 2>&5
12639   ac_status=$?
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); }; }; then
12642   ac_cv_type_daddr_t=yes
12643 else
12644   echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12646
12647 ac_cv_type_daddr_t=no
12648 fi
12649 rm -f conftest.$ac_objext conftest.$ac_ext
12650 fi
12651 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12652 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12653 if test $ac_cv_type_daddr_t = yes; then
12654   :
12655 else
12656
12657 cat >>confdefs.h <<_ACEOF
12658 #define daddr_t long
12659 _ACEOF
12660
12661 fi
12662
12663 echo "$as_me:$LINENO: checking for major_t" >&5
12664 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12665 if test "${ac_cv_type_major_t+set}" = set; then
12666   echo $ECHO_N "(cached) $ECHO_C" >&6
12667 else
12668   cat >conftest.$ac_ext <<_ACEOF
12669 #line $LINENO "configure"
12670 /* confdefs.h.  */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h.  */
12675 $ac_includes_default
12676 int
12677 main ()
12678 {
12679 if ((major_t *) 0)
12680   return 0;
12681 if (sizeof (major_t))
12682   return 0;
12683   ;
12684   return 0;
12685 }
12686 _ACEOF
12687 rm -f conftest.$ac_objext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12689   (eval $ac_compile) 2>&5
12690   ac_status=$?
12691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692   (exit $ac_status); } &&
12693          { ac_try='test -s conftest.$ac_objext'
12694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695   (eval $ac_try) 2>&5
12696   ac_status=$?
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); }; }; then
12699   ac_cv_type_major_t=yes
12700 else
12701   echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12703
12704 ac_cv_type_major_t=no
12705 fi
12706 rm -f conftest.$ac_objext conftest.$ac_ext
12707 fi
12708 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12709 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12710 if test $ac_cv_type_major_t = yes; then
12711   :
12712 else
12713
12714 cat >>confdefs.h <<_ACEOF
12715 #define major_t int
12716 _ACEOF
12717
12718 fi
12719
12720 echo "$as_me:$LINENO: checking for minor_t" >&5
12721 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12722 if test "${ac_cv_type_minor_t+set}" = set; then
12723   echo $ECHO_N "(cached) $ECHO_C" >&6
12724 else
12725   cat >conftest.$ac_ext <<_ACEOF
12726 #line $LINENO "configure"
12727 /* confdefs.h.  */
12728 _ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h.  */
12732 $ac_includes_default
12733 int
12734 main ()
12735 {
12736 if ((minor_t *) 0)
12737   return 0;
12738 if (sizeof (minor_t))
12739   return 0;
12740   ;
12741   return 0;
12742 }
12743 _ACEOF
12744 rm -f conftest.$ac_objext
12745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12746   (eval $ac_compile) 2>&5
12747   ac_status=$?
12748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749   (exit $ac_status); } &&
12750          { ac_try='test -s conftest.$ac_objext'
12751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752   (eval $ac_try) 2>&5
12753   ac_status=$?
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); }; }; then
12756   ac_cv_type_minor_t=yes
12757 else
12758   echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12760
12761 ac_cv_type_minor_t=no
12762 fi
12763 rm -f conftest.$ac_objext conftest.$ac_ext
12764 fi
12765 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12766 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12767 if test $ac_cv_type_minor_t = yes; then
12768   :
12769 else
12770
12771 cat >>confdefs.h <<_ACEOF
12772 #define minor_t int
12773 _ACEOF
12774
12775 fi
12776
12777 echo "$as_me:$LINENO: checking for ssize_t" >&5
12778 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12779 if test "${ac_cv_type_ssize_t+set}" = set; then
12780   echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782   cat >conftest.$ac_ext <<_ACEOF
12783 #line $LINENO "configure"
12784 /* confdefs.h.  */
12785 _ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h.  */
12789 $ac_includes_default
12790 int
12791 main ()
12792 {
12793 if ((ssize_t *) 0)
12794   return 0;
12795 if (sizeof (ssize_t))
12796   return 0;
12797   ;
12798   return 0;
12799 }
12800 _ACEOF
12801 rm -f conftest.$ac_objext
12802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12803   (eval $ac_compile) 2>&5
12804   ac_status=$?
12805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806   (exit $ac_status); } &&
12807          { ac_try='test -s conftest.$ac_objext'
12808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809   (eval $ac_try) 2>&5
12810   ac_status=$?
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); }; }; then
12813   ac_cv_type_ssize_t=yes
12814 else
12815   echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12817
12818 ac_cv_type_ssize_t=no
12819 fi
12820 rm -f conftest.$ac_objext conftest.$ac_ext
12821 fi
12822 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12823 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12824 if test $ac_cv_type_ssize_t = yes; then
12825   :
12826 else
12827
12828 cat >>confdefs.h <<_ACEOF
12829 #define ssize_t int
12830 _ACEOF
12831
12832 fi
12833
12834 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12835 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12836 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12837   echo $ECHO_N "(cached) $ECHO_C" >&6
12838 else
12839   cat >conftest.$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12841 /* confdefs.h.  */
12842 _ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h.  */
12846 $ac_includes_default
12847 int
12848 main ()
12849 {
12850 static struct stat ac_aggr;
12851 if (ac_aggr.st_blocks)
12852 return 0;
12853   ;
12854   return 0;
12855 }
12856 _ACEOF
12857 rm -f conftest.$ac_objext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12859   (eval $ac_compile) 2>&5
12860   ac_status=$?
12861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862   (exit $ac_status); } &&
12863          { ac_try='test -s conftest.$ac_objext'
12864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865   (eval $ac_try) 2>&5
12866   ac_status=$?
12867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868   (exit $ac_status); }; }; then
12869   ac_cv_member_struct_stat_st_blocks=yes
12870 else
12871   echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12873
12874 cat >conftest.$ac_ext <<_ACEOF
12875 #line $LINENO "configure"
12876 /* confdefs.h.  */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h.  */
12881 $ac_includes_default
12882 int
12883 main ()
12884 {
12885 static struct stat ac_aggr;
12886 if (sizeof ac_aggr.st_blocks)
12887 return 0;
12888   ;
12889   return 0;
12890 }
12891 _ACEOF
12892 rm -f conftest.$ac_objext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894   (eval $ac_compile) 2>&5
12895   ac_status=$?
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); } &&
12898          { ac_try='test -s conftest.$ac_objext'
12899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900   (eval $ac_try) 2>&5
12901   ac_status=$?
12902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903   (exit $ac_status); }; }; then
12904   ac_cv_member_struct_stat_st_blocks=yes
12905 else
12906   echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12908
12909 ac_cv_member_struct_stat_st_blocks=no
12910 fi
12911 rm -f conftest.$ac_objext conftest.$ac_ext
12912 fi
12913 rm -f conftest.$ac_objext conftest.$ac_ext
12914 fi
12915 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12916 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12917 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12918
12919 cat >>confdefs.h <<_ACEOF
12920 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12921 _ACEOF
12922
12923
12924 cat >>confdefs.h <<\_ACEOF
12925 #define HAVE_ST_BLOCKS 1
12926 _ACEOF
12927
12928 else
12929   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12930 fi
12931
12932
12933
12934 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12935 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12936 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939   cat >conftest.$ac_ext <<_ACEOF
12940 #line $LINENO "configure"
12941 /* confdefs.h.  */
12942 _ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h.  */
12946 $ac_includes_default
12947 int
12948 main ()
12949 {
12950 static struct stat ac_aggr;
12951 if (ac_aggr.st_rdev)
12952 return 0;
12953   ;
12954   return 0;
12955 }
12956 _ACEOF
12957 rm -f conftest.$ac_objext
12958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12959   (eval $ac_compile) 2>&5
12960   ac_status=$?
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); } &&
12963          { ac_try='test -s conftest.$ac_objext'
12964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12965   (eval $ac_try) 2>&5
12966   ac_status=$?
12967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968   (exit $ac_status); }; }; then
12969   ac_cv_member_struct_stat_st_rdev=yes
12970 else
12971   echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12973
12974 cat >conftest.$ac_ext <<_ACEOF
12975 #line $LINENO "configure"
12976 /* confdefs.h.  */
12977 _ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h.  */
12981 $ac_includes_default
12982 int
12983 main ()
12984 {
12985 static struct stat ac_aggr;
12986 if (sizeof ac_aggr.st_rdev)
12987 return 0;
12988   ;
12989   return 0;
12990 }
12991 _ACEOF
12992 rm -f conftest.$ac_objext
12993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994   (eval $ac_compile) 2>&5
12995   ac_status=$?
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); } &&
12998          { ac_try='test -s conftest.$ac_objext'
12999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000   (eval $ac_try) 2>&5
13001   ac_status=$?
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); }; }; then
13004   ac_cv_member_struct_stat_st_rdev=yes
13005 else
13006   echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13008
13009 ac_cv_member_struct_stat_st_rdev=no
13010 fi
13011 rm -f conftest.$ac_objext conftest.$ac_ext
13012 fi
13013 rm -f conftest.$ac_objext conftest.$ac_ext
13014 fi
13015 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13016 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13017 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13018
13019 cat >>confdefs.h <<_ACEOF
13020 #define HAVE_STRUCT_STAT_ST_RDEV 1
13021 _ACEOF
13022
13023
13024 cat >>confdefs.h <<\_ACEOF
13025 #define HAVE_ST_RDEV 1
13026 _ACEOF
13027
13028 fi
13029
13030
13031 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13032 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13033 if test "${ac_cv_struct_tm+set}" = set; then
13034   echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036   cat >conftest.$ac_ext <<_ACEOF
13037 #line $LINENO "configure"
13038 /* confdefs.h.  */
13039 _ACEOF
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h.  */
13043 #include <sys/types.h>
13044 #include <time.h>
13045
13046 int
13047 main ()
13048 {
13049 struct tm *tp; tp->tm_sec;
13050   ;
13051   return 0;
13052 }
13053 _ACEOF
13054 rm -f conftest.$ac_objext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056   (eval $ac_compile) 2>&5
13057   ac_status=$?
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); } &&
13060          { ac_try='test -s conftest.$ac_objext'
13061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062   (eval $ac_try) 2>&5
13063   ac_status=$?
13064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065   (exit $ac_status); }; }; then
13066   ac_cv_struct_tm=time.h
13067 else
13068   echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13070
13071 ac_cv_struct_tm=sys/time.h
13072 fi
13073 rm -f conftest.$ac_objext conftest.$ac_ext
13074 fi
13075 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13076 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13077 if test $ac_cv_struct_tm = sys/time.h; then
13078
13079 cat >>confdefs.h <<\_ACEOF
13080 #define TM_IN_SYS_TIME 1
13081 _ACEOF
13082
13083 fi
13084
13085 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13086 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13087 if test "${ac_cv_c_const+set}" = set; then
13088   echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090   cat >conftest.$ac_ext <<_ACEOF
13091 #line $LINENO "configure"
13092 /* confdefs.h.  */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h.  */
13097
13098 int
13099 main ()
13100 {
13101 /* FIXME: Include the comments suggested by Paul. */
13102 #ifndef __cplusplus
13103   /* Ultrix mips cc rejects this.  */
13104   typedef int charset[2];
13105   const charset x;
13106   /* SunOS 4.1.1 cc rejects this.  */
13107   char const *const *ccp;
13108   char **p;
13109   /* NEC SVR4.0.2 mips cc rejects this.  */
13110   struct point {int x, y;};
13111   static struct point const zero = {0,0};
13112   /* AIX XL C 1.02.0.0 rejects this.
13113      It does not let you subtract one const X* pointer from another in
13114      an arm of an if-expression whose if-part is not a constant
13115      expression */
13116   const char *g = "string";
13117   ccp = &g + (g ? g-g : 0);
13118   /* HPUX 7.0 cc rejects these. */
13119   ++ccp;
13120   p = (char**) ccp;
13121   ccp = (char const *const *) p;
13122   { /* SCO 3.2v4 cc rejects this.  */
13123     char *t;
13124     char const *s = 0 ? (char *) 0 : (char const *) 0;
13125
13126     *t++ = 0;
13127   }
13128   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13129     int x[] = {25, 17};
13130     const int *foo = &x[0];
13131     ++foo;
13132   }
13133   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13134     typedef const int *iptr;
13135     iptr p = 0;
13136     ++p;
13137   }
13138   { /* AIX XL C 1.02.0.0 rejects this saying
13139        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13140     struct s { int j; const int *ap[3]; };
13141     struct s *b; b->j = 5;
13142   }
13143   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13144     const int foo = 10;
13145   }
13146 #endif
13147
13148   ;
13149   return 0;
13150 }
13151 _ACEOF
13152 rm -f conftest.$ac_objext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13154   (eval $ac_compile) 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); } &&
13158          { ac_try='test -s conftest.$ac_objext'
13159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160   (eval $ac_try) 2>&5
13161   ac_status=$?
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); }; }; then
13164   ac_cv_c_const=yes
13165 else
13166   echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13168
13169 ac_cv_c_const=no
13170 fi
13171 rm -f conftest.$ac_objext conftest.$ac_ext
13172 fi
13173 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13174 echo "${ECHO_T}$ac_cv_c_const" >&6
13175 if test $ac_cv_c_const = no; then
13176
13177 cat >>confdefs.h <<\_ACEOF
13178 #define const
13179 _ACEOF
13180
13181 fi
13182
13183
13184
13185 echo "$as_me:$LINENO: checking for char" >&5
13186 echo $ECHO_N "checking for char... $ECHO_C" >&6
13187 if test "${ac_cv_type_char+set}" = set; then
13188   echo $ECHO_N "(cached) $ECHO_C" >&6
13189 else
13190   cat >conftest.$ac_ext <<_ACEOF
13191 #line $LINENO "configure"
13192 /* confdefs.h.  */
13193 _ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h.  */
13197 $ac_includes_default
13198 int
13199 main ()
13200 {
13201 if ((char *) 0)
13202   return 0;
13203 if (sizeof (char))
13204   return 0;
13205   ;
13206   return 0;
13207 }
13208 _ACEOF
13209 rm -f conftest.$ac_objext
13210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13211   (eval $ac_compile) 2>&5
13212   ac_status=$?
13213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214   (exit $ac_status); } &&
13215          { ac_try='test -s conftest.$ac_objext'
13216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217   (eval $ac_try) 2>&5
13218   ac_status=$?
13219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220   (exit $ac_status); }; }; then
13221   ac_cv_type_char=yes
13222 else
13223   echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13225
13226 ac_cv_type_char=no
13227 fi
13228 rm -f conftest.$ac_objext conftest.$ac_ext
13229 fi
13230 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13231 echo "${ECHO_T}$ac_cv_type_char" >&6
13232
13233 echo "$as_me:$LINENO: checking size of char" >&5
13234 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13235 if test "${ac_cv_sizeof_char+set}" = set; then
13236   echo $ECHO_N "(cached) $ECHO_C" >&6
13237 else
13238   if test "$ac_cv_type_char" = yes; then
13239   # The cast to unsigned long works around a bug in the HP C Compiler
13240   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13241   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13242   # This bug is HP SR number 8606223364.
13243   if test "$cross_compiling" = yes; then
13244   # Depending upon the size, compute the lo and hi bounds.
13245 cat >conftest.$ac_ext <<_ACEOF
13246 #line $LINENO "configure"
13247 /* confdefs.h.  */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h.  */
13252 $ac_includes_default
13253 int
13254 main ()
13255 {
13256 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13257 test_array [0] = 0
13258
13259   ;
13260   return 0;
13261 }
13262 _ACEOF
13263 rm -f conftest.$ac_objext
13264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13265   (eval $ac_compile) 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); } &&
13269          { ac_try='test -s conftest.$ac_objext'
13270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271   (eval $ac_try) 2>&5
13272   ac_status=$?
13273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); }; }; then
13275   ac_lo=0 ac_mid=0
13276   while :; do
13277     cat >conftest.$ac_ext <<_ACEOF
13278 #line $LINENO "configure"
13279 /* confdefs.h.  */
13280 _ACEOF
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h.  */
13284 $ac_includes_default
13285 int
13286 main ()
13287 {
13288 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13289 test_array [0] = 0
13290
13291   ;
13292   return 0;
13293 }
13294 _ACEOF
13295 rm -f conftest.$ac_objext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13297   (eval $ac_compile) 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); } &&
13301          { ac_try='test -s conftest.$ac_objext'
13302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303   (eval $ac_try) 2>&5
13304   ac_status=$?
13305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306   (exit $ac_status); }; }; then
13307   ac_hi=$ac_mid; break
13308 else
13309   echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13311
13312 ac_lo=`expr $ac_mid + 1`
13313                     if test $ac_lo -le $ac_mid; then
13314                       ac_lo= ac_hi=
13315                       break
13316                     fi
13317                     ac_mid=`expr 2 '*' $ac_mid + 1`
13318 fi
13319 rm -f conftest.$ac_objext conftest.$ac_ext
13320   done
13321 else
13322   echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13324
13325 cat >conftest.$ac_ext <<_ACEOF
13326 #line $LINENO "configure"
13327 /* confdefs.h.  */
13328 _ACEOF
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h.  */
13332 $ac_includes_default
13333 int
13334 main ()
13335 {
13336 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13337 test_array [0] = 0
13338
13339   ;
13340   return 0;
13341 }
13342 _ACEOF
13343 rm -f conftest.$ac_objext
13344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13345   (eval $ac_compile) 2>&5
13346   ac_status=$?
13347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348   (exit $ac_status); } &&
13349          { ac_try='test -s conftest.$ac_objext'
13350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351   (eval $ac_try) 2>&5
13352   ac_status=$?
13353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354   (exit $ac_status); }; }; then
13355   ac_hi=-1 ac_mid=-1
13356   while :; do
13357     cat >conftest.$ac_ext <<_ACEOF
13358 #line $LINENO "configure"
13359 /* confdefs.h.  */
13360 _ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h.  */
13364 $ac_includes_default
13365 int
13366 main ()
13367 {
13368 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13369 test_array [0] = 0
13370
13371   ;
13372   return 0;
13373 }
13374 _ACEOF
13375 rm -f conftest.$ac_objext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13377   (eval $ac_compile) 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); } &&
13381          { ac_try='test -s conftest.$ac_objext'
13382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383   (eval $ac_try) 2>&5
13384   ac_status=$?
13385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386   (exit $ac_status); }; }; then
13387   ac_lo=$ac_mid; break
13388 else
13389   echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13391
13392 ac_hi=`expr '(' $ac_mid ')' - 1`
13393                        if test $ac_mid -le $ac_hi; then
13394                          ac_lo= ac_hi=
13395                          break
13396                        fi
13397                        ac_mid=`expr 2 '*' $ac_mid`
13398 fi
13399 rm -f conftest.$ac_objext conftest.$ac_ext
13400   done
13401 else
13402   echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405 ac_lo= ac_hi=
13406 fi
13407 rm -f conftest.$ac_objext conftest.$ac_ext
13408 fi
13409 rm -f conftest.$ac_objext conftest.$ac_ext
13410 # Binary search between lo and hi bounds.
13411 while test "x$ac_lo" != "x$ac_hi"; do
13412   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13413   cat >conftest.$ac_ext <<_ACEOF
13414 #line $LINENO "configure"
13415 /* confdefs.h.  */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h.  */
13420 $ac_includes_default
13421 int
13422 main ()
13423 {
13424 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13425 test_array [0] = 0
13426
13427   ;
13428   return 0;
13429 }
13430 _ACEOF
13431 rm -f conftest.$ac_objext
13432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13433   (eval $ac_compile) 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); } &&
13437          { ac_try='test -s conftest.$ac_objext'
13438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439   (eval $ac_try) 2>&5
13440   ac_status=$?
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); }; }; then
13443   ac_hi=$ac_mid
13444 else
13445   echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13447
13448 ac_lo=`expr '(' $ac_mid ')' + 1`
13449 fi
13450 rm -f conftest.$ac_objext conftest.$ac_ext
13451 done
13452 case $ac_lo in
13453 ?*) ac_cv_sizeof_char=$ac_lo;;
13454 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13455 See \`config.log' for more details." >&5
13456 echo "$as_me: error: cannot compute sizeof (char), 77
13457 See \`config.log' for more details." >&2;}
13458    { (exit 1); exit 1; }; } ;;
13459 esac
13460 else
13461   if test "$cross_compiling" = yes; then
13462   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13463 See \`config.log' for more details." >&5
13464 echo "$as_me: error: cannot run test program while cross compiling
13465 See \`config.log' for more details." >&2;}
13466    { (exit 1); exit 1; }; }
13467 else
13468   cat >conftest.$ac_ext <<_ACEOF
13469 #line $LINENO "configure"
13470 /* confdefs.h.  */
13471 _ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h.  */
13475 $ac_includes_default
13476 long longval () { return (long) (sizeof (char)); }
13477 unsigned long ulongval () { return (long) (sizeof (char)); }
13478 #include <stdio.h>
13479 #include <stdlib.h>
13480 int
13481 main ()
13482 {
13483
13484   FILE *f = fopen ("conftest.val", "w");
13485   if (! f)
13486     exit (1);
13487   if (((long) (sizeof (char))) < 0)
13488     {
13489       long i = longval ();
13490       if (i != ((long) (sizeof (char))))
13491         exit (1);
13492       fprintf (f, "%ld\n", i);
13493     }
13494   else
13495     {
13496       unsigned long i = ulongval ();
13497       if (i != ((long) (sizeof (char))))
13498         exit (1);
13499       fprintf (f, "%lu\n", i);
13500     }
13501   exit (ferror (f) || fclose (f) != 0);
13502
13503   ;
13504   return 0;
13505 }
13506 _ACEOF
13507 rm -f conftest$ac_exeext
13508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13509   (eval $ac_link) 2>&5
13510   ac_status=$?
13511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514   (eval $ac_try) 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); }; }; then
13518   ac_cv_sizeof_char=`cat conftest.val`
13519 else
13520   echo "$as_me: program exited with status $ac_status" >&5
13521 echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13523
13524 ( exit $ac_status )
13525 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13526 See \`config.log' for more details." >&5
13527 echo "$as_me: error: cannot compute sizeof (char), 77
13528 See \`config.log' for more details." >&2;}
13529    { (exit 1); exit 1; }; }
13530 fi
13531 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13532 fi
13533 fi
13534 rm -f conftest.val
13535 else
13536   ac_cv_sizeof_char=0
13537 fi
13538 fi
13539 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13540 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13541 cat >>confdefs.h <<_ACEOF
13542 #define SIZEOF_CHAR $ac_cv_sizeof_char
13543 _ACEOF
13544
13545
13546 echo "$as_me:$LINENO: checking for short int" >&5
13547 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13548 if test "${ac_cv_type_short_int+set}" = set; then
13549   echo $ECHO_N "(cached) $ECHO_C" >&6
13550 else
13551   cat >conftest.$ac_ext <<_ACEOF
13552 #line $LINENO "configure"
13553 /* confdefs.h.  */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h.  */
13558 $ac_includes_default
13559 int
13560 main ()
13561 {
13562 if ((short int *) 0)
13563   return 0;
13564 if (sizeof (short int))
13565   return 0;
13566   ;
13567   return 0;
13568 }
13569 _ACEOF
13570 rm -f conftest.$ac_objext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572   (eval $ac_compile) 2>&5
13573   ac_status=$?
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); } &&
13576          { ac_try='test -s conftest.$ac_objext'
13577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578   (eval $ac_try) 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); }; }; then
13582   ac_cv_type_short_int=yes
13583 else
13584   echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587 ac_cv_type_short_int=no
13588 fi
13589 rm -f conftest.$ac_objext conftest.$ac_ext
13590 fi
13591 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13592 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13593
13594 echo "$as_me:$LINENO: checking size of short int" >&5
13595 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13596 if test "${ac_cv_sizeof_short_int+set}" = set; then
13597   echo $ECHO_N "(cached) $ECHO_C" >&6
13598 else
13599   if test "$ac_cv_type_short_int" = yes; then
13600   # The cast to unsigned long works around a bug in the HP C Compiler
13601   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13602   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13603   # This bug is HP SR number 8606223364.
13604   if test "$cross_compiling" = yes; then
13605   # Depending upon the size, compute the lo and hi bounds.
13606 cat >conftest.$ac_ext <<_ACEOF
13607 #line $LINENO "configure"
13608 /* confdefs.h.  */
13609 _ACEOF
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h.  */
13613 $ac_includes_default
13614 int
13615 main ()
13616 {
13617 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13618 test_array [0] = 0
13619
13620   ;
13621   return 0;
13622 }
13623 _ACEOF
13624 rm -f conftest.$ac_objext
13625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13626   (eval $ac_compile) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); } &&
13630          { ac_try='test -s conftest.$ac_objext'
13631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632   (eval $ac_try) 2>&5
13633   ac_status=$?
13634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635   (exit $ac_status); }; }; then
13636   ac_lo=0 ac_mid=0
13637   while :; do
13638     cat >conftest.$ac_ext <<_ACEOF
13639 #line $LINENO "configure"
13640 /* confdefs.h.  */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h.  */
13645 $ac_includes_default
13646 int
13647 main ()
13648 {
13649 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13650 test_array [0] = 0
13651
13652   ;
13653   return 0;
13654 }
13655 _ACEOF
13656 rm -f conftest.$ac_objext
13657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13658   (eval $ac_compile) 2>&5
13659   ac_status=$?
13660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661   (exit $ac_status); } &&
13662          { ac_try='test -s conftest.$ac_objext'
13663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664   (eval $ac_try) 2>&5
13665   ac_status=$?
13666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667   (exit $ac_status); }; }; then
13668   ac_hi=$ac_mid; break
13669 else
13670   echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13672
13673 ac_lo=`expr $ac_mid + 1`
13674                     if test $ac_lo -le $ac_mid; then
13675                       ac_lo= ac_hi=
13676                       break
13677                     fi
13678                     ac_mid=`expr 2 '*' $ac_mid + 1`
13679 fi
13680 rm -f conftest.$ac_objext conftest.$ac_ext
13681   done
13682 else
13683   echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13685
13686 cat >conftest.$ac_ext <<_ACEOF
13687 #line $LINENO "configure"
13688 /* confdefs.h.  */
13689 _ACEOF
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h.  */
13693 $ac_includes_default
13694 int
13695 main ()
13696 {
13697 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13698 test_array [0] = 0
13699
13700   ;
13701   return 0;
13702 }
13703 _ACEOF
13704 rm -f conftest.$ac_objext
13705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13706   (eval $ac_compile) 2>&5
13707   ac_status=$?
13708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); } &&
13710          { ac_try='test -s conftest.$ac_objext'
13711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712   (eval $ac_try) 2>&5
13713   ac_status=$?
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); }; }; then
13716   ac_hi=-1 ac_mid=-1
13717   while :; do
13718     cat >conftest.$ac_ext <<_ACEOF
13719 #line $LINENO "configure"
13720 /* confdefs.h.  */
13721 _ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h.  */
13725 $ac_includes_default
13726 int
13727 main ()
13728 {
13729 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13730 test_array [0] = 0
13731
13732   ;
13733   return 0;
13734 }
13735 _ACEOF
13736 rm -f conftest.$ac_objext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738   (eval $ac_compile) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); } &&
13742          { ac_try='test -s conftest.$ac_objext'
13743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744   (eval $ac_try) 2>&5
13745   ac_status=$?
13746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); }; }; then
13748   ac_lo=$ac_mid; break
13749 else
13750   echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13752
13753 ac_hi=`expr '(' $ac_mid ')' - 1`
13754                        if test $ac_mid -le $ac_hi; then
13755                          ac_lo= ac_hi=
13756                          break
13757                        fi
13758                        ac_mid=`expr 2 '*' $ac_mid`
13759 fi
13760 rm -f conftest.$ac_objext conftest.$ac_ext
13761   done
13762 else
13763   echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13765
13766 ac_lo= ac_hi=
13767 fi
13768 rm -f conftest.$ac_objext conftest.$ac_ext
13769 fi
13770 rm -f conftest.$ac_objext conftest.$ac_ext
13771 # Binary search between lo and hi bounds.
13772 while test "x$ac_lo" != "x$ac_hi"; do
13773   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13774   cat >conftest.$ac_ext <<_ACEOF
13775 #line $LINENO "configure"
13776 /* confdefs.h.  */
13777 _ACEOF
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h.  */
13781 $ac_includes_default
13782 int
13783 main ()
13784 {
13785 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13786 test_array [0] = 0
13787
13788   ;
13789   return 0;
13790 }
13791 _ACEOF
13792 rm -f conftest.$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794   (eval $ac_compile) 2>&5
13795   ac_status=$?
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); } &&
13798          { ac_try='test -s conftest.$ac_objext'
13799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800   (eval $ac_try) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; }; then
13804   ac_hi=$ac_mid
13805 else
13806   echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13808
13809 ac_lo=`expr '(' $ac_mid ')' + 1`
13810 fi
13811 rm -f conftest.$ac_objext conftest.$ac_ext
13812 done
13813 case $ac_lo in
13814 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13815 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13816 See \`config.log' for more details." >&5
13817 echo "$as_me: error: cannot compute sizeof (short int), 77
13818 See \`config.log' for more details." >&2;}
13819    { (exit 1); exit 1; }; } ;;
13820 esac
13821 else
13822   if test "$cross_compiling" = yes; then
13823   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13824 See \`config.log' for more details." >&5
13825 echo "$as_me: error: cannot run test program while cross compiling
13826 See \`config.log' for more details." >&2;}
13827    { (exit 1); exit 1; }; }
13828 else
13829   cat >conftest.$ac_ext <<_ACEOF
13830 #line $LINENO "configure"
13831 /* confdefs.h.  */
13832 _ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h.  */
13836 $ac_includes_default
13837 long longval () { return (long) (sizeof (short int)); }
13838 unsigned long ulongval () { return (long) (sizeof (short int)); }
13839 #include <stdio.h>
13840 #include <stdlib.h>
13841 int
13842 main ()
13843 {
13844
13845   FILE *f = fopen ("conftest.val", "w");
13846   if (! f)
13847     exit (1);
13848   if (((long) (sizeof (short int))) < 0)
13849     {
13850       long i = longval ();
13851       if (i != ((long) (sizeof (short int))))
13852         exit (1);
13853       fprintf (f, "%ld\n", i);
13854     }
13855   else
13856     {
13857       unsigned long i = ulongval ();
13858       if (i != ((long) (sizeof (short int))))
13859         exit (1);
13860       fprintf (f, "%lu\n", i);
13861     }
13862   exit (ferror (f) || fclose (f) != 0);
13863
13864   ;
13865   return 0;
13866 }
13867 _ACEOF
13868 rm -f conftest$ac_exeext
13869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13870   (eval $ac_link) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875   (eval $ac_try) 2>&5
13876   ac_status=$?
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); }; }; then
13879   ac_cv_sizeof_short_int=`cat conftest.val`
13880 else
13881   echo "$as_me: program exited with status $ac_status" >&5
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13884
13885 ( exit $ac_status )
13886 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13887 See \`config.log' for more details." >&5
13888 echo "$as_me: error: cannot compute sizeof (short int), 77
13889 See \`config.log' for more details." >&2;}
13890    { (exit 1); exit 1; }; }
13891 fi
13892 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13893 fi
13894 fi
13895 rm -f conftest.val
13896 else
13897   ac_cv_sizeof_short_int=0
13898 fi
13899 fi
13900 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13901 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13902 cat >>confdefs.h <<_ACEOF
13903 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13904 _ACEOF
13905
13906
13907 echo "$as_me:$LINENO: checking for int" >&5
13908 echo $ECHO_N "checking for int... $ECHO_C" >&6
13909 if test "${ac_cv_type_int+set}" = set; then
13910   echo $ECHO_N "(cached) $ECHO_C" >&6
13911 else
13912   cat >conftest.$ac_ext <<_ACEOF
13913 #line $LINENO "configure"
13914 /* confdefs.h.  */
13915 _ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h.  */
13919 $ac_includes_default
13920 int
13921 main ()
13922 {
13923 if ((int *) 0)
13924   return 0;
13925 if (sizeof (int))
13926   return 0;
13927   ;
13928   return 0;
13929 }
13930 _ACEOF
13931 rm -f conftest.$ac_objext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933   (eval $ac_compile) 2>&5
13934   ac_status=$?
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); } &&
13937          { ac_try='test -s conftest.$ac_objext'
13938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939   (eval $ac_try) 2>&5
13940   ac_status=$?
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); }; }; then
13943   ac_cv_type_int=yes
13944 else
13945   echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13947
13948 ac_cv_type_int=no
13949 fi
13950 rm -f conftest.$ac_objext conftest.$ac_ext
13951 fi
13952 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13953 echo "${ECHO_T}$ac_cv_type_int" >&6
13954
13955 echo "$as_me:$LINENO: checking size of int" >&5
13956 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13957 if test "${ac_cv_sizeof_int+set}" = set; then
13958   echo $ECHO_N "(cached) $ECHO_C" >&6
13959 else
13960   if test "$ac_cv_type_int" = yes; then
13961   # The cast to unsigned long works around a bug in the HP C Compiler
13962   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13963   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13964   # This bug is HP SR number 8606223364.
13965   if test "$cross_compiling" = yes; then
13966   # Depending upon the size, compute the lo and hi bounds.
13967 cat >conftest.$ac_ext <<_ACEOF
13968 #line $LINENO "configure"
13969 /* confdefs.h.  */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h.  */
13974 $ac_includes_default
13975 int
13976 main ()
13977 {
13978 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13979 test_array [0] = 0
13980
13981   ;
13982   return 0;
13983 }
13984 _ACEOF
13985 rm -f conftest.$ac_objext
13986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13987   (eval $ac_compile) 2>&5
13988   ac_status=$?
13989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990   (exit $ac_status); } &&
13991          { ac_try='test -s conftest.$ac_objext'
13992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993   (eval $ac_try) 2>&5
13994   ac_status=$?
13995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996   (exit $ac_status); }; }; then
13997   ac_lo=0 ac_mid=0
13998   while :; do
13999     cat >conftest.$ac_ext <<_ACEOF
14000 #line $LINENO "configure"
14001 /* confdefs.h.  */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h.  */
14006 $ac_includes_default
14007 int
14008 main ()
14009 {
14010 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14011 test_array [0] = 0
14012
14013   ;
14014   return 0;
14015 }
14016 _ACEOF
14017 rm -f conftest.$ac_objext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019   (eval $ac_compile) 2>&5
14020   ac_status=$?
14021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022   (exit $ac_status); } &&
14023          { ac_try='test -s conftest.$ac_objext'
14024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025   (eval $ac_try) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); }; }; then
14029   ac_hi=$ac_mid; break
14030 else
14031   echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14033
14034 ac_lo=`expr $ac_mid + 1`
14035                     if test $ac_lo -le $ac_mid; then
14036                       ac_lo= ac_hi=
14037                       break
14038                     fi
14039                     ac_mid=`expr 2 '*' $ac_mid + 1`
14040 fi
14041 rm -f conftest.$ac_objext conftest.$ac_ext
14042   done
14043 else
14044   echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14046
14047 cat >conftest.$ac_ext <<_ACEOF
14048 #line $LINENO "configure"
14049 /* confdefs.h.  */
14050 _ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h.  */
14054 $ac_includes_default
14055 int
14056 main ()
14057 {
14058 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14059 test_array [0] = 0
14060
14061   ;
14062   return 0;
14063 }
14064 _ACEOF
14065 rm -f conftest.$ac_objext
14066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14067   (eval $ac_compile) 2>&5
14068   ac_status=$?
14069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070   (exit $ac_status); } &&
14071          { ac_try='test -s conftest.$ac_objext'
14072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073   (eval $ac_try) 2>&5
14074   ac_status=$?
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); }; }; then
14077   ac_hi=-1 ac_mid=-1
14078   while :; do
14079     cat >conftest.$ac_ext <<_ACEOF
14080 #line $LINENO "configure"
14081 /* confdefs.h.  */
14082 _ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h.  */
14086 $ac_includes_default
14087 int
14088 main ()
14089 {
14090 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14091 test_array [0] = 0
14092
14093   ;
14094   return 0;
14095 }
14096 _ACEOF
14097 rm -f conftest.$ac_objext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14099   (eval $ac_compile) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); } &&
14103          { ac_try='test -s conftest.$ac_objext'
14104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105   (eval $ac_try) 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); }; }; then
14109   ac_lo=$ac_mid; break
14110 else
14111   echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14113
14114 ac_hi=`expr '(' $ac_mid ')' - 1`
14115                        if test $ac_mid -le $ac_hi; then
14116                          ac_lo= ac_hi=
14117                          break
14118                        fi
14119                        ac_mid=`expr 2 '*' $ac_mid`
14120 fi
14121 rm -f conftest.$ac_objext conftest.$ac_ext
14122   done
14123 else
14124   echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14126
14127 ac_lo= ac_hi=
14128 fi
14129 rm -f conftest.$ac_objext conftest.$ac_ext
14130 fi
14131 rm -f conftest.$ac_objext conftest.$ac_ext
14132 # Binary search between lo and hi bounds.
14133 while test "x$ac_lo" != "x$ac_hi"; do
14134   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14135   cat >conftest.$ac_ext <<_ACEOF
14136 #line $LINENO "configure"
14137 /* confdefs.h.  */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h.  */
14142 $ac_includes_default
14143 int
14144 main ()
14145 {
14146 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14147 test_array [0] = 0
14148
14149   ;
14150   return 0;
14151 }
14152 _ACEOF
14153 rm -f conftest.$ac_objext
14154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14155   (eval $ac_compile) 2>&5
14156   ac_status=$?
14157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158   (exit $ac_status); } &&
14159          { ac_try='test -s conftest.$ac_objext'
14160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161   (eval $ac_try) 2>&5
14162   ac_status=$?
14163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164   (exit $ac_status); }; }; then
14165   ac_hi=$ac_mid
14166 else
14167   echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14169
14170 ac_lo=`expr '(' $ac_mid ')' + 1`
14171 fi
14172 rm -f conftest.$ac_objext conftest.$ac_ext
14173 done
14174 case $ac_lo in
14175 ?*) ac_cv_sizeof_int=$ac_lo;;
14176 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14177 See \`config.log' for more details." >&5
14178 echo "$as_me: error: cannot compute sizeof (int), 77
14179 See \`config.log' for more details." >&2;}
14180    { (exit 1); exit 1; }; } ;;
14181 esac
14182 else
14183   if test "$cross_compiling" = yes; then
14184   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14185 See \`config.log' for more details." >&5
14186 echo "$as_me: error: cannot run test program while cross compiling
14187 See \`config.log' for more details." >&2;}
14188    { (exit 1); exit 1; }; }
14189 else
14190   cat >conftest.$ac_ext <<_ACEOF
14191 #line $LINENO "configure"
14192 /* confdefs.h.  */
14193 _ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h.  */
14197 $ac_includes_default
14198 long longval () { return (long) (sizeof (int)); }
14199 unsigned long ulongval () { return (long) (sizeof (int)); }
14200 #include <stdio.h>
14201 #include <stdlib.h>
14202 int
14203 main ()
14204 {
14205
14206   FILE *f = fopen ("conftest.val", "w");
14207   if (! f)
14208     exit (1);
14209   if (((long) (sizeof (int))) < 0)
14210     {
14211       long i = longval ();
14212       if (i != ((long) (sizeof (int))))
14213         exit (1);
14214       fprintf (f, "%ld\n", i);
14215     }
14216   else
14217     {
14218       unsigned long i = ulongval ();
14219       if (i != ((long) (sizeof (int))))
14220         exit (1);
14221       fprintf (f, "%lu\n", i);
14222     }
14223   exit (ferror (f) || fclose (f) != 0);
14224
14225   ;
14226   return 0;
14227 }
14228 _ACEOF
14229 rm -f conftest$ac_exeext
14230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14231   (eval $ac_link) 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236   (eval $ac_try) 2>&5
14237   ac_status=$?
14238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239   (exit $ac_status); }; }; then
14240   ac_cv_sizeof_int=`cat conftest.val`
14241 else
14242   echo "$as_me: program exited with status $ac_status" >&5
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14245
14246 ( exit $ac_status )
14247 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14248 See \`config.log' for more details." >&5
14249 echo "$as_me: error: cannot compute sizeof (int), 77
14250 See \`config.log' for more details." >&2;}
14251    { (exit 1); exit 1; }; }
14252 fi
14253 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14254 fi
14255 fi
14256 rm -f conftest.val
14257 else
14258   ac_cv_sizeof_int=0
14259 fi
14260 fi
14261 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14262 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14263 cat >>confdefs.h <<_ACEOF
14264 #define SIZEOF_INT $ac_cv_sizeof_int
14265 _ACEOF
14266
14267
14268 echo "$as_me:$LINENO: checking for long int" >&5
14269 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14270 if test "${ac_cv_type_long_int+set}" = set; then
14271   echo $ECHO_N "(cached) $ECHO_C" >&6
14272 else
14273   cat >conftest.$ac_ext <<_ACEOF
14274 #line $LINENO "configure"
14275 /* confdefs.h.  */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h.  */
14280 $ac_includes_default
14281 int
14282 main ()
14283 {
14284 if ((long int *) 0)
14285   return 0;
14286 if (sizeof (long int))
14287   return 0;
14288   ;
14289   return 0;
14290 }
14291 _ACEOF
14292 rm -f conftest.$ac_objext
14293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14294   (eval $ac_compile) 2>&5
14295   ac_status=$?
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); } &&
14298          { ac_try='test -s conftest.$ac_objext'
14299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300   (eval $ac_try) 2>&5
14301   ac_status=$?
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); }; }; then
14304   ac_cv_type_long_int=yes
14305 else
14306   echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14308
14309 ac_cv_type_long_int=no
14310 fi
14311 rm -f conftest.$ac_objext conftest.$ac_ext
14312 fi
14313 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14314 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14315
14316 echo "$as_me:$LINENO: checking size of long int" >&5
14317 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14318 if test "${ac_cv_sizeof_long_int+set}" = set; then
14319   echo $ECHO_N "(cached) $ECHO_C" >&6
14320 else
14321   if test "$ac_cv_type_long_int" = yes; then
14322   # The cast to unsigned long works around a bug in the HP C Compiler
14323   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14324   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14325   # This bug is HP SR number 8606223364.
14326   if test "$cross_compiling" = yes; then
14327   # Depending upon the size, compute the lo and hi bounds.
14328 cat >conftest.$ac_ext <<_ACEOF
14329 #line $LINENO "configure"
14330 /* confdefs.h.  */
14331 _ACEOF
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h.  */
14335 $ac_includes_default
14336 int
14337 main ()
14338 {
14339 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14340 test_array [0] = 0
14341
14342   ;
14343   return 0;
14344 }
14345 _ACEOF
14346 rm -f conftest.$ac_objext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14348   (eval $ac_compile) 2>&5
14349   ac_status=$?
14350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351   (exit $ac_status); } &&
14352          { ac_try='test -s conftest.$ac_objext'
14353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354   (eval $ac_try) 2>&5
14355   ac_status=$?
14356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); }; }; then
14358   ac_lo=0 ac_mid=0
14359   while :; do
14360     cat >conftest.$ac_ext <<_ACEOF
14361 #line $LINENO "configure"
14362 /* confdefs.h.  */
14363 _ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h.  */
14367 $ac_includes_default
14368 int
14369 main ()
14370 {
14371 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14372 test_array [0] = 0
14373
14374   ;
14375   return 0;
14376 }
14377 _ACEOF
14378 rm -f conftest.$ac_objext
14379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14380   (eval $ac_compile) 2>&5
14381   ac_status=$?
14382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383   (exit $ac_status); } &&
14384          { ac_try='test -s conftest.$ac_objext'
14385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386   (eval $ac_try) 2>&5
14387   ac_status=$?
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); }; }; then
14390   ac_hi=$ac_mid; break
14391 else
14392   echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14394
14395 ac_lo=`expr $ac_mid + 1`
14396                     if test $ac_lo -le $ac_mid; then
14397                       ac_lo= ac_hi=
14398                       break
14399                     fi
14400                     ac_mid=`expr 2 '*' $ac_mid + 1`
14401 fi
14402 rm -f conftest.$ac_objext conftest.$ac_ext
14403   done
14404 else
14405   echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14407
14408 cat >conftest.$ac_ext <<_ACEOF
14409 #line $LINENO "configure"
14410 /* confdefs.h.  */
14411 _ACEOF
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h.  */
14415 $ac_includes_default
14416 int
14417 main ()
14418 {
14419 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14420 test_array [0] = 0
14421
14422   ;
14423   return 0;
14424 }
14425 _ACEOF
14426 rm -f conftest.$ac_objext
14427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14428   (eval $ac_compile) 2>&5
14429   ac_status=$?
14430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431   (exit $ac_status); } &&
14432          { ac_try='test -s conftest.$ac_objext'
14433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434   (eval $ac_try) 2>&5
14435   ac_status=$?
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); }; }; then
14438   ac_hi=-1 ac_mid=-1
14439   while :; do
14440     cat >conftest.$ac_ext <<_ACEOF
14441 #line $LINENO "configure"
14442 /* confdefs.h.  */
14443 _ACEOF
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h.  */
14447 $ac_includes_default
14448 int
14449 main ()
14450 {
14451 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14452 test_array [0] = 0
14453
14454   ;
14455   return 0;
14456 }
14457 _ACEOF
14458 rm -f conftest.$ac_objext
14459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14460   (eval $ac_compile) 2>&5
14461   ac_status=$?
14462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463   (exit $ac_status); } &&
14464          { ac_try='test -s conftest.$ac_objext'
14465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466   (eval $ac_try) 2>&5
14467   ac_status=$?
14468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469   (exit $ac_status); }; }; then
14470   ac_lo=$ac_mid; break
14471 else
14472   echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14474
14475 ac_hi=`expr '(' $ac_mid ')' - 1`
14476                        if test $ac_mid -le $ac_hi; then
14477                          ac_lo= ac_hi=
14478                          break
14479                        fi
14480                        ac_mid=`expr 2 '*' $ac_mid`
14481 fi
14482 rm -f conftest.$ac_objext conftest.$ac_ext
14483   done
14484 else
14485   echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14487
14488 ac_lo= ac_hi=
14489 fi
14490 rm -f conftest.$ac_objext conftest.$ac_ext
14491 fi
14492 rm -f conftest.$ac_objext conftest.$ac_ext
14493 # Binary search between lo and hi bounds.
14494 while test "x$ac_lo" != "x$ac_hi"; do
14495   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14496   cat >conftest.$ac_ext <<_ACEOF
14497 #line $LINENO "configure"
14498 /* confdefs.h.  */
14499 _ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h.  */
14503 $ac_includes_default
14504 int
14505 main ()
14506 {
14507 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14508 test_array [0] = 0
14509
14510   ;
14511   return 0;
14512 }
14513 _ACEOF
14514 rm -f conftest.$ac_objext
14515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14516   (eval $ac_compile) 2>&5
14517   ac_status=$?
14518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519   (exit $ac_status); } &&
14520          { ac_try='test -s conftest.$ac_objext'
14521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522   (eval $ac_try) 2>&5
14523   ac_status=$?
14524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525   (exit $ac_status); }; }; then
14526   ac_hi=$ac_mid
14527 else
14528   echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14530
14531 ac_lo=`expr '(' $ac_mid ')' + 1`
14532 fi
14533 rm -f conftest.$ac_objext conftest.$ac_ext
14534 done
14535 case $ac_lo in
14536 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14537 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14538 See \`config.log' for more details." >&5
14539 echo "$as_me: error: cannot compute sizeof (long int), 77
14540 See \`config.log' for more details." >&2;}
14541    { (exit 1); exit 1; }; } ;;
14542 esac
14543 else
14544   if test "$cross_compiling" = yes; then
14545   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14546 See \`config.log' for more details." >&5
14547 echo "$as_me: error: cannot run test program while cross compiling
14548 See \`config.log' for more details." >&2;}
14549    { (exit 1); exit 1; }; }
14550 else
14551   cat >conftest.$ac_ext <<_ACEOF
14552 #line $LINENO "configure"
14553 /* confdefs.h.  */
14554 _ACEOF
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h.  */
14558 $ac_includes_default
14559 long longval () { return (long) (sizeof (long int)); }
14560 unsigned long ulongval () { return (long) (sizeof (long int)); }
14561 #include <stdio.h>
14562 #include <stdlib.h>
14563 int
14564 main ()
14565 {
14566
14567   FILE *f = fopen ("conftest.val", "w");
14568   if (! f)
14569     exit (1);
14570   if (((long) (sizeof (long int))) < 0)
14571     {
14572       long i = longval ();
14573       if (i != ((long) (sizeof (long int))))
14574         exit (1);
14575       fprintf (f, "%ld\n", i);
14576     }
14577   else
14578     {
14579       unsigned long i = ulongval ();
14580       if (i != ((long) (sizeof (long int))))
14581         exit (1);
14582       fprintf (f, "%lu\n", i);
14583     }
14584   exit (ferror (f) || fclose (f) != 0);
14585
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 rm -f conftest$ac_exeext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14592   (eval $ac_link) 2>&5
14593   ac_status=$?
14594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597   (eval $ac_try) 2>&5
14598   ac_status=$?
14599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600   (exit $ac_status); }; }; then
14601   ac_cv_sizeof_long_int=`cat conftest.val`
14602 else
14603   echo "$as_me: program exited with status $ac_status" >&5
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14606
14607 ( exit $ac_status )
14608 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14609 See \`config.log' for more details." >&5
14610 echo "$as_me: error: cannot compute sizeof (long int), 77
14611 See \`config.log' for more details." >&2;}
14612    { (exit 1); exit 1; }; }
14613 fi
14614 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14615 fi
14616 fi
14617 rm -f conftest.val
14618 else
14619   ac_cv_sizeof_long_int=0
14620 fi
14621 fi
14622 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14623 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14624 cat >>confdefs.h <<_ACEOF
14625 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14626 _ACEOF
14627
14628
14629 echo "$as_me:$LINENO: checking for long long int" >&5
14630 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14631 if test "${ac_cv_type_long_long_int+set}" = set; then
14632   echo $ECHO_N "(cached) $ECHO_C" >&6
14633 else
14634   cat >conftest.$ac_ext <<_ACEOF
14635 #line $LINENO "configure"
14636 /* confdefs.h.  */
14637 _ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h.  */
14641 $ac_includes_default
14642 int
14643 main ()
14644 {
14645 if ((long long int *) 0)
14646   return 0;
14647 if (sizeof (long long int))
14648   return 0;
14649   ;
14650   return 0;
14651 }
14652 _ACEOF
14653 rm -f conftest.$ac_objext
14654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14655   (eval $ac_compile) 2>&5
14656   ac_status=$?
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); } &&
14659          { ac_try='test -s conftest.$ac_objext'
14660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661   (eval $ac_try) 2>&5
14662   ac_status=$?
14663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664   (exit $ac_status); }; }; then
14665   ac_cv_type_long_long_int=yes
14666 else
14667   echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14669
14670 ac_cv_type_long_long_int=no
14671 fi
14672 rm -f conftest.$ac_objext conftest.$ac_ext
14673 fi
14674 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14675 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14676
14677 echo "$as_me:$LINENO: checking size of long long int" >&5
14678 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14679 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14680   echo $ECHO_N "(cached) $ECHO_C" >&6
14681 else
14682   if test "$ac_cv_type_long_long_int" = yes; then
14683   # The cast to unsigned long works around a bug in the HP C Compiler
14684   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14685   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14686   # This bug is HP SR number 8606223364.
14687   if test "$cross_compiling" = yes; then
14688   # Depending upon the size, compute the lo and hi bounds.
14689 cat >conftest.$ac_ext <<_ACEOF
14690 #line $LINENO "configure"
14691 /* confdefs.h.  */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h.  */
14696 $ac_includes_default
14697 int
14698 main ()
14699 {
14700 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14701 test_array [0] = 0
14702
14703   ;
14704   return 0;
14705 }
14706 _ACEOF
14707 rm -f conftest.$ac_objext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14709   (eval $ac_compile) 2>&5
14710   ac_status=$?
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); } &&
14713          { ac_try='test -s conftest.$ac_objext'
14714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715   (eval $ac_try) 2>&5
14716   ac_status=$?
14717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718   (exit $ac_status); }; }; then
14719   ac_lo=0 ac_mid=0
14720   while :; do
14721     cat >conftest.$ac_ext <<_ACEOF
14722 #line $LINENO "configure"
14723 /* confdefs.h.  */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h.  */
14728 $ac_includes_default
14729 int
14730 main ()
14731 {
14732 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14733 test_array [0] = 0
14734
14735   ;
14736   return 0;
14737 }
14738 _ACEOF
14739 rm -f conftest.$ac_objext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14741   (eval $ac_compile) 2>&5
14742   ac_status=$?
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); } &&
14745          { ac_try='test -s conftest.$ac_objext'
14746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747   (eval $ac_try) 2>&5
14748   ac_status=$?
14749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750   (exit $ac_status); }; }; then
14751   ac_hi=$ac_mid; break
14752 else
14753   echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14755
14756 ac_lo=`expr $ac_mid + 1`
14757                     if test $ac_lo -le $ac_mid; then
14758                       ac_lo= ac_hi=
14759                       break
14760                     fi
14761                     ac_mid=`expr 2 '*' $ac_mid + 1`
14762 fi
14763 rm -f conftest.$ac_objext conftest.$ac_ext
14764   done
14765 else
14766   echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769 cat >conftest.$ac_ext <<_ACEOF
14770 #line $LINENO "configure"
14771 /* confdefs.h.  */
14772 _ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h.  */
14776 $ac_includes_default
14777 int
14778 main ()
14779 {
14780 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14781 test_array [0] = 0
14782
14783   ;
14784   return 0;
14785 }
14786 _ACEOF
14787 rm -f conftest.$ac_objext
14788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14789   (eval $ac_compile) 2>&5
14790   ac_status=$?
14791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792   (exit $ac_status); } &&
14793          { ac_try='test -s conftest.$ac_objext'
14794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795   (eval $ac_try) 2>&5
14796   ac_status=$?
14797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798   (exit $ac_status); }; }; then
14799   ac_hi=-1 ac_mid=-1
14800   while :; do
14801     cat >conftest.$ac_ext <<_ACEOF
14802 #line $LINENO "configure"
14803 /* confdefs.h.  */
14804 _ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h.  */
14808 $ac_includes_default
14809 int
14810 main ()
14811 {
14812 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14813 test_array [0] = 0
14814
14815   ;
14816   return 0;
14817 }
14818 _ACEOF
14819 rm -f conftest.$ac_objext
14820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14821   (eval $ac_compile) 2>&5
14822   ac_status=$?
14823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824   (exit $ac_status); } &&
14825          { ac_try='test -s conftest.$ac_objext'
14826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827   (eval $ac_try) 2>&5
14828   ac_status=$?
14829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830   (exit $ac_status); }; }; then
14831   ac_lo=$ac_mid; break
14832 else
14833   echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14835
14836 ac_hi=`expr '(' $ac_mid ')' - 1`
14837                        if test $ac_mid -le $ac_hi; then
14838                          ac_lo= ac_hi=
14839                          break
14840                        fi
14841                        ac_mid=`expr 2 '*' $ac_mid`
14842 fi
14843 rm -f conftest.$ac_objext conftest.$ac_ext
14844   done
14845 else
14846   echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849 ac_lo= ac_hi=
14850 fi
14851 rm -f conftest.$ac_objext conftest.$ac_ext
14852 fi
14853 rm -f conftest.$ac_objext conftest.$ac_ext
14854 # Binary search between lo and hi bounds.
14855 while test "x$ac_lo" != "x$ac_hi"; do
14856   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14857   cat >conftest.$ac_ext <<_ACEOF
14858 #line $LINENO "configure"
14859 /* confdefs.h.  */
14860 _ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h.  */
14864 $ac_includes_default
14865 int
14866 main ()
14867 {
14868 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14869 test_array [0] = 0
14870
14871   ;
14872   return 0;
14873 }
14874 _ACEOF
14875 rm -f conftest.$ac_objext
14876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14877   (eval $ac_compile) 2>&5
14878   ac_status=$?
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); } &&
14881          { ac_try='test -s conftest.$ac_objext'
14882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883   (eval $ac_try) 2>&5
14884   ac_status=$?
14885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886   (exit $ac_status); }; }; then
14887   ac_hi=$ac_mid
14888 else
14889   echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14891
14892 ac_lo=`expr '(' $ac_mid ')' + 1`
14893 fi
14894 rm -f conftest.$ac_objext conftest.$ac_ext
14895 done
14896 case $ac_lo in
14897 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14898 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14899 See \`config.log' for more details." >&5
14900 echo "$as_me: error: cannot compute sizeof (long long int), 77
14901 See \`config.log' for more details." >&2;}
14902    { (exit 1); exit 1; }; } ;;
14903 esac
14904 else
14905   if test "$cross_compiling" = yes; then
14906   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14907 See \`config.log' for more details." >&5
14908 echo "$as_me: error: cannot run test program while cross compiling
14909 See \`config.log' for more details." >&2;}
14910    { (exit 1); exit 1; }; }
14911 else
14912   cat >conftest.$ac_ext <<_ACEOF
14913 #line $LINENO "configure"
14914 /* confdefs.h.  */
14915 _ACEOF
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h.  */
14919 $ac_includes_default
14920 long longval () { return (long) (sizeof (long long int)); }
14921 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14922 #include <stdio.h>
14923 #include <stdlib.h>
14924 int
14925 main ()
14926 {
14927
14928   FILE *f = fopen ("conftest.val", "w");
14929   if (! f)
14930     exit (1);
14931   if (((long) (sizeof (long long int))) < 0)
14932     {
14933       long i = longval ();
14934       if (i != ((long) (sizeof (long long int))))
14935         exit (1);
14936       fprintf (f, "%ld\n", i);
14937     }
14938   else
14939     {
14940       unsigned long i = ulongval ();
14941       if (i != ((long) (sizeof (long long int))))
14942         exit (1);
14943       fprintf (f, "%lu\n", i);
14944     }
14945   exit (ferror (f) || fclose (f) != 0);
14946
14947   ;
14948   return 0;
14949 }
14950 _ACEOF
14951 rm -f conftest$ac_exeext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953   (eval $ac_link) 2>&5
14954   ac_status=$?
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958   (eval $ac_try) 2>&5
14959   ac_status=$?
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); }; }; then
14962   ac_cv_sizeof_long_long_int=`cat conftest.val`
14963 else
14964   echo "$as_me: program exited with status $ac_status" >&5
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14967
14968 ( exit $ac_status )
14969 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14970 See \`config.log' for more details." >&5
14971 echo "$as_me: error: cannot compute sizeof (long long int), 77
14972 See \`config.log' for more details." >&2;}
14973    { (exit 1); exit 1; }; }
14974 fi
14975 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14976 fi
14977 fi
14978 rm -f conftest.val
14979 else
14980   ac_cv_sizeof_long_long_int=0
14981 fi
14982 fi
14983 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14984 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14985 cat >>confdefs.h <<_ACEOF
14986 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14987 _ACEOF
14988
14989
14990 echo "$as_me:$LINENO: checking for int *" >&5
14991 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14992 if test "${ac_cv_type_int_p+set}" = set; then
14993   echo $ECHO_N "(cached) $ECHO_C" >&6
14994 else
14995   cat >conftest.$ac_ext <<_ACEOF
14996 #line $LINENO "configure"
14997 /* confdefs.h.  */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h.  */
15002 $ac_includes_default
15003 int
15004 main ()
15005 {
15006 if ((int * *) 0)
15007   return 0;
15008 if (sizeof (int *))
15009   return 0;
15010   ;
15011   return 0;
15012 }
15013 _ACEOF
15014 rm -f conftest.$ac_objext
15015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15016   (eval $ac_compile) 2>&5
15017   ac_status=$?
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); } &&
15020          { ac_try='test -s conftest.$ac_objext'
15021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022   (eval $ac_try) 2>&5
15023   ac_status=$?
15024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); }; }; then
15026   ac_cv_type_int_p=yes
15027 else
15028   echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15030
15031 ac_cv_type_int_p=no
15032 fi
15033 rm -f conftest.$ac_objext conftest.$ac_ext
15034 fi
15035 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
15036 echo "${ECHO_T}$ac_cv_type_int_p" >&6
15037
15038 echo "$as_me:$LINENO: checking size of int *" >&5
15039 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
15040 if test "${ac_cv_sizeof_int_p+set}" = set; then
15041   echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043   if test "$ac_cv_type_int_p" = yes; then
15044   # The cast to unsigned long works around a bug in the HP C Compiler
15045   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15046   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15047   # This bug is HP SR number 8606223364.
15048   if test "$cross_compiling" = yes; then
15049   # Depending upon the size, compute the lo and hi bounds.
15050 cat >conftest.$ac_ext <<_ACEOF
15051 #line $LINENO "configure"
15052 /* confdefs.h.  */
15053 _ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h.  */
15057 $ac_includes_default
15058 int
15059 main ()
15060 {
15061 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
15062 test_array [0] = 0
15063
15064   ;
15065   return 0;
15066 }
15067 _ACEOF
15068 rm -f conftest.$ac_objext
15069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15070   (eval $ac_compile) 2>&5
15071   ac_status=$?
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); } &&
15074          { ac_try='test -s conftest.$ac_objext'
15075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076   (eval $ac_try) 2>&5
15077   ac_status=$?
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); }; }; then
15080   ac_lo=0 ac_mid=0
15081   while :; do
15082     cat >conftest.$ac_ext <<_ACEOF
15083 #line $LINENO "configure"
15084 /* confdefs.h.  */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h.  */
15089 $ac_includes_default
15090 int
15091 main ()
15092 {
15093 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15094 test_array [0] = 0
15095
15096   ;
15097   return 0;
15098 }
15099 _ACEOF
15100 rm -f conftest.$ac_objext
15101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102   (eval $ac_compile) 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); } &&
15106          { ac_try='test -s conftest.$ac_objext'
15107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108   (eval $ac_try) 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; }; then
15112   ac_hi=$ac_mid; break
15113 else
15114   echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15116
15117 ac_lo=`expr $ac_mid + 1`
15118                     if test $ac_lo -le $ac_mid; then
15119                       ac_lo= ac_hi=
15120                       break
15121                     fi
15122                     ac_mid=`expr 2 '*' $ac_mid + 1`
15123 fi
15124 rm -f conftest.$ac_objext conftest.$ac_ext
15125   done
15126 else
15127   echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15129
15130 cat >conftest.$ac_ext <<_ACEOF
15131 #line $LINENO "configure"
15132 /* confdefs.h.  */
15133 _ACEOF
15134 cat confdefs.h >>conftest.$ac_ext
15135 cat >>conftest.$ac_ext <<_ACEOF
15136 /* end confdefs.h.  */
15137 $ac_includes_default
15138 int
15139 main ()
15140 {
15141 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15142 test_array [0] = 0
15143
15144   ;
15145   return 0;
15146 }
15147 _ACEOF
15148 rm -f conftest.$ac_objext
15149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15150   (eval $ac_compile) 2>&5
15151   ac_status=$?
15152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153   (exit $ac_status); } &&
15154          { ac_try='test -s conftest.$ac_objext'
15155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156   (eval $ac_try) 2>&5
15157   ac_status=$?
15158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159   (exit $ac_status); }; }; then
15160   ac_hi=-1 ac_mid=-1
15161   while :; do
15162     cat >conftest.$ac_ext <<_ACEOF
15163 #line $LINENO "configure"
15164 /* confdefs.h.  */
15165 _ACEOF
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h.  */
15169 $ac_includes_default
15170 int
15171 main ()
15172 {
15173 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15174 test_array [0] = 0
15175
15176   ;
15177   return 0;
15178 }
15179 _ACEOF
15180 rm -f conftest.$ac_objext
15181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15182   (eval $ac_compile) 2>&5
15183   ac_status=$?
15184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); } &&
15186          { ac_try='test -s conftest.$ac_objext'
15187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188   (eval $ac_try) 2>&5
15189   ac_status=$?
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); }; }; then
15192   ac_lo=$ac_mid; break
15193 else
15194   echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15196
15197 ac_hi=`expr '(' $ac_mid ')' - 1`
15198                        if test $ac_mid -le $ac_hi; then
15199                          ac_lo= ac_hi=
15200                          break
15201                        fi
15202                        ac_mid=`expr 2 '*' $ac_mid`
15203 fi
15204 rm -f conftest.$ac_objext conftest.$ac_ext
15205   done
15206 else
15207   echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15209
15210 ac_lo= ac_hi=
15211 fi
15212 rm -f conftest.$ac_objext conftest.$ac_ext
15213 fi
15214 rm -f conftest.$ac_objext conftest.$ac_ext
15215 # Binary search between lo and hi bounds.
15216 while test "x$ac_lo" != "x$ac_hi"; do
15217   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15218   cat >conftest.$ac_ext <<_ACEOF
15219 #line $LINENO "configure"
15220 /* confdefs.h.  */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h.  */
15225 $ac_includes_default
15226 int
15227 main ()
15228 {
15229 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15230 test_array [0] = 0
15231
15232   ;
15233   return 0;
15234 }
15235 _ACEOF
15236 rm -f conftest.$ac_objext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238   (eval $ac_compile) 2>&5
15239   ac_status=$?
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); } &&
15242          { ac_try='test -s conftest.$ac_objext'
15243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244   (eval $ac_try) 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); }; }; then
15248   ac_hi=$ac_mid
15249 else
15250   echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15252
15253 ac_lo=`expr '(' $ac_mid ')' + 1`
15254 fi
15255 rm -f conftest.$ac_objext conftest.$ac_ext
15256 done
15257 case $ac_lo in
15258 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15259 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15260 See \`config.log' for more details." >&5
15261 echo "$as_me: error: cannot compute sizeof (int *), 77
15262 See \`config.log' for more details." >&2;}
15263    { (exit 1); exit 1; }; } ;;
15264 esac
15265 else
15266   if test "$cross_compiling" = yes; then
15267   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15268 See \`config.log' for more details." >&5
15269 echo "$as_me: error: cannot run test program while cross compiling
15270 See \`config.log' for more details." >&2;}
15271    { (exit 1); exit 1; }; }
15272 else
15273   cat >conftest.$ac_ext <<_ACEOF
15274 #line $LINENO "configure"
15275 /* confdefs.h.  */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h.  */
15280 $ac_includes_default
15281 long longval () { return (long) (sizeof (int *)); }
15282 unsigned long ulongval () { return (long) (sizeof (int *)); }
15283 #include <stdio.h>
15284 #include <stdlib.h>
15285 int
15286 main ()
15287 {
15288
15289   FILE *f = fopen ("conftest.val", "w");
15290   if (! f)
15291     exit (1);
15292   if (((long) (sizeof (int *))) < 0)
15293     {
15294       long i = longval ();
15295       if (i != ((long) (sizeof (int *))))
15296         exit (1);
15297       fprintf (f, "%ld\n", i);
15298     }
15299   else
15300     {
15301       unsigned long i = ulongval ();
15302       if (i != ((long) (sizeof (int *))))
15303         exit (1);
15304       fprintf (f, "%lu\n", i);
15305     }
15306   exit (ferror (f) || fclose (f) != 0);
15307
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 rm -f conftest$ac_exeext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314   (eval $ac_link) 2>&5
15315   ac_status=$?
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319   (eval $ac_try) 2>&5
15320   ac_status=$?
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); }; }; then
15323   ac_cv_sizeof_int_p=`cat conftest.val`
15324 else
15325   echo "$as_me: program exited with status $ac_status" >&5
15326 echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15328
15329 ( exit $ac_status )
15330 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15331 See \`config.log' for more details." >&5
15332 echo "$as_me: error: cannot compute sizeof (int *), 77
15333 See \`config.log' for more details." >&2;}
15334    { (exit 1); exit 1; }; }
15335 fi
15336 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15337 fi
15338 fi
15339 rm -f conftest.val
15340 else
15341   ac_cv_sizeof_int_p=0
15342 fi
15343 fi
15344 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15345 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15346 cat >>confdefs.h <<_ACEOF
15347 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15348 _ACEOF
15349
15350
15351
15352 # Check for sys/types.h types
15353 echo "$as_me:$LINENO: checking for u_int type" >&5
15354 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15355 if test "${ac_cv_have_u_int+set}" = set; then
15356   echo $ECHO_N "(cached) $ECHO_C" >&6
15357 else
15358
15359     cat >conftest.$ac_ext <<_ACEOF
15360 #line $LINENO "configure"
15361 /* confdefs.h.  */
15362 _ACEOF
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h.  */
15366  #include <sys/types.h>
15367 int
15368 main ()
15369 {
15370  u_int a; a = 1;
15371   ;
15372   return 0;
15373 }
15374 _ACEOF
15375 rm -f conftest.$ac_objext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377   (eval $ac_compile) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); } &&
15381          { ac_try='test -s conftest.$ac_objext'
15382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383   (eval $ac_try) 2>&5
15384   ac_status=$?
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); }; }; then
15387    ac_cv_have_u_int="yes"
15388 else
15389   echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392  ac_cv_have_u_int="no"
15393
15394 fi
15395 rm -f conftest.$ac_objext conftest.$ac_ext
15396
15397 fi
15398 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15399 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15400 if test "x$ac_cv_have_u_int" = "xyes" ; then
15401    cat >>confdefs.h <<\_ACEOF
15402 #define HAVE_U_INT 1
15403 _ACEOF
15404
15405    have_u_int=1
15406 fi
15407
15408 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15409 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15410 if test "${ac_cv_have_intmax_t+set}" = set; then
15411   echo $ECHO_N "(cached) $ECHO_C" >&6
15412 else
15413
15414    cat >conftest.$ac_ext <<_ACEOF
15415 #line $LINENO "configure"
15416 /* confdefs.h.  */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h.  */
15421  #include <sys/types.h>
15422 int
15423 main ()
15424 {
15425  intmax_t a; a = 1;
15426   ;
15427   return 0;
15428 }
15429 _ACEOF
15430 rm -f conftest.$ac_objext
15431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15432   (eval $ac_compile) 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); } &&
15436          { ac_try='test -s conftest.$ac_objext'
15437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438   (eval $ac_try) 2>&5
15439   ac_status=$?
15440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441   (exit $ac_status); }; }; then
15442    ac_cv_have_intmax_t="yes"
15443 else
15444   echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15446
15447
15448          cat >conftest.$ac_ext <<_ACEOF
15449 #line $LINENO "configure"
15450 /* confdefs.h.  */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h.  */
15455  #include <stdint.h>
15456 int
15457 main ()
15458 {
15459  intmax_t a; a = 1;
15460   ;
15461   return 0;
15462 }
15463 _ACEOF
15464 rm -f conftest.$ac_objext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466   (eval $ac_compile) 2>&5
15467   ac_status=$?
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); } &&
15470          { ac_try='test -s conftest.$ac_objext'
15471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472   (eval $ac_try) 2>&5
15473   ac_status=$?
15474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475   (exit $ac_status); }; }; then
15476    ac_cv_have_intmax_t="yes"
15477 else
15478   echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15480
15481  ac_cv_have_intmax_t="no"
15482
15483 fi
15484 rm -f conftest.$ac_objext conftest.$ac_ext
15485
15486
15487 fi
15488 rm -f conftest.$ac_objext conftest.$ac_ext
15489
15490
15491 fi
15492 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15493 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15494 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15495    cat >>confdefs.h <<\_ACEOF
15496 #define HAVE_INTMAX_T 1
15497 _ACEOF
15498
15499    have_intmax_t=1
15500 fi
15501
15502
15503 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15504 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15505 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15506   echo $ECHO_N "(cached) $ECHO_C" >&6
15507 else
15508
15509    cat >conftest.$ac_ext <<_ACEOF
15510 #line $LINENO "configure"
15511 /* confdefs.h.  */
15512 _ACEOF
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h.  */
15516  #include <sys/types.h>
15517 int
15518 main ()
15519 {
15520  u_intmax_t a; a = 1;
15521   ;
15522   return 0;
15523 }
15524 _ACEOF
15525 rm -f conftest.$ac_objext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527   (eval $ac_compile) 2>&5
15528   ac_status=$?
15529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); } &&
15531          { ac_try='test -s conftest.$ac_objext'
15532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533   (eval $ac_try) 2>&5
15534   ac_status=$?
15535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536   (exit $ac_status); }; }; then
15537    ac_cv_have_u_intmax_t="yes"
15538 else
15539   echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15541
15542
15543          cat >conftest.$ac_ext <<_ACEOF
15544 #line $LINENO "configure"
15545 /* confdefs.h.  */
15546 _ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h.  */
15550  #include <stdint.h>
15551 int
15552 main ()
15553 {
15554  u_intmax_t a; a = 1;
15555   ;
15556   return 0;
15557 }
15558 _ACEOF
15559 rm -f conftest.$ac_objext
15560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15561   (eval $ac_compile) 2>&5
15562   ac_status=$?
15563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); } &&
15565          { ac_try='test -s conftest.$ac_objext'
15566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567   (eval $ac_try) 2>&5
15568   ac_status=$?
15569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570   (exit $ac_status); }; }; then
15571    ac_cv_have_u_intmax_t="yes"
15572 else
15573   echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15575
15576  ac_cv_have_u_intmax_t="no"
15577
15578 fi
15579 rm -f conftest.$ac_objext conftest.$ac_ext
15580
15581
15582 fi
15583 rm -f conftest.$ac_objext conftest.$ac_ext
15584
15585 fi
15586 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15587 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15588 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15589    cat >>confdefs.h <<\_ACEOF
15590 #define HAVE_U_INTMAX_T 1
15591 _ACEOF
15592
15593    have_u_intmax_t=1
15594 fi
15595
15596
15597 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15598 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15599 if test "${ac_cv_have_intxx_t+set}" = set; then
15600   echo $ECHO_N "(cached) $ECHO_C" >&6
15601 else
15602
15603    cat >conftest.$ac_ext <<_ACEOF
15604 #line $LINENO "configure"
15605 /* confdefs.h.  */
15606 _ACEOF
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h.  */
15610  #include <sys/types.h>
15611 int
15612 main ()
15613 {
15614  int8_t a; int16_t b; int32_t c; a = b = c = 1;
15615   ;
15616   return 0;
15617 }
15618 _ACEOF
15619 rm -f conftest.$ac_objext
15620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15621   (eval $ac_compile) 2>&5
15622   ac_status=$?
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } &&
15625          { ac_try='test -s conftest.$ac_objext'
15626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627   (eval $ac_try) 2>&5
15628   ac_status=$?
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); }; }; then
15631    ac_cv_have_intxx_t="yes"
15632 else
15633   echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15635
15636  ac_cv_have_intxx_t="no"
15637
15638 fi
15639 rm -f conftest.$ac_objext conftest.$ac_ext
15640
15641 fi
15642 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15643 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15644 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15645    cat >>confdefs.h <<\_ACEOF
15646 #define HAVE_INTXX_T 1
15647 _ACEOF
15648
15649    have_intxx_t=1
15650 fi
15651
15652 echo "$as_me:$LINENO: checking for int64_t type" >&5
15653 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15654 if test "${ac_cv_have_int64_t+set}" = set; then
15655   echo $ECHO_N "(cached) $ECHO_C" >&6
15656 else
15657
15658    cat >conftest.$ac_ext <<_ACEOF
15659 #line $LINENO "configure"
15660 /* confdefs.h.  */
15661 _ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h.  */
15665  #include <sys/types.h>
15666 int
15667 main ()
15668 {
15669  int64_t a; a = 1;
15670   ;
15671   return 0;
15672 }
15673 _ACEOF
15674 rm -f conftest.$ac_objext
15675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15676   (eval $ac_compile) 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } &&
15680          { ac_try='test -s conftest.$ac_objext'
15681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682   (eval $ac_try) 2>&5
15683   ac_status=$?
15684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685   (exit $ac_status); }; }; then
15686    ac_cv_have_int64_t="yes"
15687 else
15688   echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15690
15691  ac_cv_have_int64_t="no"
15692
15693 fi
15694 rm -f conftest.$ac_objext conftest.$ac_ext
15695
15696 fi
15697 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15698 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15699 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15700    cat >>confdefs.h <<\_ACEOF
15701 #define HAVE_INT64_T 1
15702 _ACEOF
15703
15704    have_int64_t=1
15705 fi
15706
15707 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15708 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15709 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15710   echo $ECHO_N "(cached) $ECHO_C" >&6
15711 else
15712
15713    cat >conftest.$ac_ext <<_ACEOF
15714 #line $LINENO "configure"
15715 /* confdefs.h.  */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h.  */
15720  #include <sys/types.h>
15721 int
15722 main ()
15723 {
15724  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15725   ;
15726   return 0;
15727 }
15728 _ACEOF
15729 rm -f conftest.$ac_objext
15730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15731   (eval $ac_compile) 2>&5
15732   ac_status=$?
15733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734   (exit $ac_status); } &&
15735          { ac_try='test -s conftest.$ac_objext'
15736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737   (eval $ac_try) 2>&5
15738   ac_status=$?
15739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740   (exit $ac_status); }; }; then
15741    ac_cv_have_u_intxx_t="yes"
15742 else
15743   echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15745
15746  ac_cv_have_u_intxx_t="no"
15747
15748 fi
15749 rm -f conftest.$ac_objext conftest.$ac_ext
15750
15751 fi
15752 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15753 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15754 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15755    cat >>confdefs.h <<\_ACEOF
15756 #define HAVE_U_INTXX_T 1
15757 _ACEOF
15758
15759    have_u_intxx_t=1
15760 fi
15761
15762 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15763 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15764 if test "${ac_cv_have_u_int64_t+set}" = set; then
15765   echo $ECHO_N "(cached) $ECHO_C" >&6
15766 else
15767
15768    cat >conftest.$ac_ext <<_ACEOF
15769 #line $LINENO "configure"
15770 /* confdefs.h.  */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h.  */
15775  #include <sys/types.h>
15776 int
15777 main ()
15778 {
15779  u_int64_t a; a = 1;
15780   ;
15781   return 0;
15782 }
15783 _ACEOF
15784 rm -f conftest.$ac_objext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786   (eval $ac_compile) 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); } &&
15790          { ac_try='test -s conftest.$ac_objext'
15791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792   (eval $ac_try) 2>&5
15793   ac_status=$?
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); }; }; then
15796    ac_cv_have_u_int64_t="yes"
15797 else
15798   echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15800
15801  ac_cv_have_u_int64_t="no"
15802
15803 fi
15804 rm -f conftest.$ac_objext conftest.$ac_ext
15805
15806 fi
15807 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15808 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15809 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15810    cat >>confdefs.h <<\_ACEOF
15811 #define HAVE_U_INT64_T 1
15812 _ACEOF
15813
15814    have_u_int64_t=1
15815 fi
15816
15817 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15818            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15819 then
15820    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15821 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15822    cat >conftest.$ac_ext <<_ACEOF
15823 #line $LINENO "configure"
15824 /* confdefs.h.  */
15825 _ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h.  */
15829  #include <sys/bitypes.h>
15830 int
15831 main ()
15832 {
15833  int8_t a; int16_t b; int32_t c;
15834         u_int8_t e; u_int16_t f; u_int32_t g;
15835         a = b = c = e = f = g = 1;
15836   ;
15837   return 0;
15838 }
15839 _ACEOF
15840 rm -f conftest.$ac_objext
15841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15842   (eval $ac_compile) 2>&5
15843   ac_status=$?
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); } &&
15846          { ac_try='test -s conftest.$ac_objext'
15847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848   (eval $ac_try) 2>&5
15849   ac_status=$?
15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); }; }; then
15852    cat >>confdefs.h <<\_ACEOF
15853 #define HAVE_U_INTXX_T 1
15854 _ACEOF
15855
15856         cat >>confdefs.h <<\_ACEOF
15857 #define HAVE_INTXX_T 1
15858 _ACEOF
15859
15860         cat >>confdefs.h <<\_ACEOF
15861 #define HAVE_SYS_BITYPES_H 1
15862 _ACEOF
15863
15864         echo "$as_me:$LINENO: result: yes" >&5
15865 echo "${ECHO_T}yes" >&6
15866 else
15867   echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15869
15870  echo "$as_me:$LINENO: result: no" >&5
15871 echo "${ECHO_T}no" >&6
15872
15873 fi
15874 rm -f conftest.$ac_objext conftest.$ac_ext
15875 fi
15876
15877 if test -z "$have_u_intxx_t" ; then
15878    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15879 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15880 if test "${ac_cv_have_uintxx_t+set}" = set; then
15881   echo $ECHO_N "(cached) $ECHO_C" >&6
15882 else
15883
15884       cat >conftest.$ac_ext <<_ACEOF
15885 #line $LINENO "configure"
15886 /* confdefs.h.  */
15887 _ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h.  */
15891  #include <sys/types.h>
15892 int
15893 main ()
15894 {
15895  uint8_t a; uint16_t b;
15896            uint32_t c; a = b = c = 1;
15897   ;
15898   return 0;
15899 }
15900 _ACEOF
15901 rm -f conftest.$ac_objext
15902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15903   (eval $ac_compile) 2>&5
15904   ac_status=$?
15905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906   (exit $ac_status); } &&
15907          { ac_try='test -s conftest.$ac_objext'
15908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909   (eval $ac_try) 2>&5
15910   ac_status=$?
15911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912   (exit $ac_status); }; }; then
15913    ac_cv_have_uintxx_t="yes"
15914 else
15915   echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15917
15918  ac_cv_have_uintxx_t="no"
15919
15920 fi
15921 rm -f conftest.$ac_objext conftest.$ac_ext
15922
15923 fi
15924 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15925 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15926    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15927       cat >>confdefs.h <<\_ACEOF
15928 #define HAVE_UINTXX_T 1
15929 _ACEOF
15930
15931    fi
15932 fi
15933
15934 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15935           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15936 then
15937    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15938 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15939    cat >conftest.$ac_ext <<_ACEOF
15940 #line $LINENO "configure"
15941 /* confdefs.h.  */
15942 _ACEOF
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h.  */
15946  #include <sys/bitypes.h>
15947 int
15948 main ()
15949 {
15950  int64_t a; u_int64_t b;
15951        a = b = 1;
15952   ;
15953   return 0;
15954 }
15955 _ACEOF
15956 rm -f conftest.$ac_objext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15958   (eval $ac_compile) 2>&5
15959   ac_status=$?
15960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961   (exit $ac_status); } &&
15962          { ac_try='test -s conftest.$ac_objext'
15963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964   (eval $ac_try) 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); }; }; then
15968    cat >>confdefs.h <<\_ACEOF
15969 #define HAVE_U_INT64_T 1
15970 _ACEOF
15971
15972        cat >>confdefs.h <<\_ACEOF
15973 #define HAVE_INT64_T 1
15974 _ACEOF
15975
15976        echo "$as_me:$LINENO: result: yes" >&5
15977 echo "${ECHO_T}yes" >&6
15978 else
15979   echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15981
15982  echo "$as_me:$LINENO: result: no" >&5
15983 echo "${ECHO_T}no" >&6
15984
15985 fi
15986 rm -f conftest.$ac_objext conftest.$ac_ext
15987 fi
15988
15989 if (test -z "$have_uintxx_t" && \
15990           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15991 then
15992    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15993 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15994    cat >conftest.$ac_ext <<_ACEOF
15995 #line $LINENO "configure"
15996 /* confdefs.h.  */
15997 _ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h.  */
16001  #include <sys/bitypes.h>
16002 int
16003 main ()
16004 {
16005  uint8_t a; uint16_t b;
16006           uint32_t c; a = b = c = 1;
16007   ;
16008   return 0;
16009 }
16010 _ACEOF
16011 rm -f conftest.$ac_objext
16012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16013   (eval $ac_compile) 2>&5
16014   ac_status=$?
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); } &&
16017          { ac_try='test -s conftest.$ac_objext'
16018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019   (eval $ac_try) 2>&5
16020   ac_status=$?
16021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022   (exit $ac_status); }; }; then
16023    cat >>confdefs.h <<\_ACEOF
16024 #define HAVE_UINTXX_T 1
16025 _ACEOF
16026
16027        echo "$as_me:$LINENO: result: yes" >&5
16028 echo "${ECHO_T}yes" >&6
16029 else
16030   echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16032
16033  echo "$as_me:$LINENO: result: no" >&5
16034 echo "${ECHO_T}no" >&6
16035
16036 fi
16037 rm -f conftest.$ac_objext conftest.$ac_ext
16038
16039 fi
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057 for ac_func in \
16058         fork \
16059         getcwd \
16060         gethostname \
16061         getpid \
16062         gettimeofday \
16063         setpgid \
16064         setpgrp \
16065         setsid \
16066         signal \
16067         strerror \
16068         strncmp \
16069         strncpy \
16070         vfprintf \
16071
16072 do
16073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16074 echo "$as_me:$LINENO: checking for $ac_func" >&5
16075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16076 if eval "test \"\${$as_ac_var+set}\" = set"; then
16077   echo $ECHO_N "(cached) $ECHO_C" >&6
16078 else
16079   cat >conftest.$ac_ext <<_ACEOF
16080 #line $LINENO "configure"
16081 /* confdefs.h.  */
16082 _ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h.  */
16086 /* System header to define __stub macros and hopefully few prototypes,
16087     which can conflict with char $ac_func (); below.
16088     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16089     <limits.h> exists even on freestanding compilers.  */
16090 #ifdef __STDC__
16091 # include <limits.h>
16092 #else
16093 # include <assert.h>
16094 #endif
16095 /* Override any gcc2 internal prototype to avoid an error.  */
16096 #ifdef __cplusplus
16097 extern "C"
16098 {
16099 #endif
16100 /* We use char because int might match the return type of a gcc2
16101    builtin and then its argument prototype would still apply.  */
16102 char $ac_func ();
16103 /* The GNU C library defines this for functions which it implements
16104     to always fail with ENOSYS.  Some functions are actually named
16105     something starting with __ and the normal name is an alias.  */
16106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16107 choke me
16108 #else
16109 char (*f) () = $ac_func;
16110 #endif
16111 #ifdef __cplusplus
16112 }
16113 #endif
16114
16115 int
16116 main ()
16117 {
16118 return f != $ac_func;
16119   ;
16120   return 0;
16121 }
16122 _ACEOF
16123 rm -f conftest.$ac_objext conftest$ac_exeext
16124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16125   (eval $ac_link) 2>&5
16126   ac_status=$?
16127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128   (exit $ac_status); } &&
16129          { ac_try='test -s conftest$ac_exeext'
16130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131   (eval $ac_try) 2>&5
16132   ac_status=$?
16133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134   (exit $ac_status); }; }; then
16135   eval "$as_ac_var=yes"
16136 else
16137   echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16139
16140 eval "$as_ac_var=no"
16141 fi
16142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16143 fi
16144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16146 if test `eval echo '${'$as_ac_var'}'` = yes; then
16147   cat >>confdefs.h <<_ACEOF
16148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16149 _ACEOF
16150
16151 else
16152   echo 'configure: cannot find needed function.'; exit 1
16153
16154 fi
16155 done
16156
16157
16158
16159 for ac_func in fchdir
16160 do
16161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16162 echo "$as_me:$LINENO: checking for $ac_func" >&5
16163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16164 if eval "test \"\${$as_ac_var+set}\" = set"; then
16165   echo $ECHO_N "(cached) $ECHO_C" >&6
16166 else
16167   cat >conftest.$ac_ext <<_ACEOF
16168 #line $LINENO "configure"
16169 /* confdefs.h.  */
16170 _ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h.  */
16174 /* System header to define __stub macros and hopefully few prototypes,
16175     which can conflict with char $ac_func (); below.
16176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16177     <limits.h> exists even on freestanding compilers.  */
16178 #ifdef __STDC__
16179 # include <limits.h>
16180 #else
16181 # include <assert.h>
16182 #endif
16183 /* Override any gcc2 internal prototype to avoid an error.  */
16184 #ifdef __cplusplus
16185 extern "C"
16186 {
16187 #endif
16188 /* We use char because int might match the return type of a gcc2
16189    builtin and then its argument prototype would still apply.  */
16190 char $ac_func ();
16191 /* The GNU C library defines this for functions which it implements
16192     to always fail with ENOSYS.  Some functions are actually named
16193     something starting with __ and the normal name is an alias.  */
16194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16195 choke me
16196 #else
16197 char (*f) () = $ac_func;
16198 #endif
16199 #ifdef __cplusplus
16200 }
16201 #endif
16202
16203 int
16204 main ()
16205 {
16206 return f != $ac_func;
16207   ;
16208   return 0;
16209 }
16210 _ACEOF
16211 rm -f conftest.$ac_objext conftest$ac_exeext
16212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16213   (eval $ac_link) 2>&5
16214   ac_status=$?
16215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216   (exit $ac_status); } &&
16217          { ac_try='test -s conftest$ac_exeext'
16218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219   (eval $ac_try) 2>&5
16220   ac_status=$?
16221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222   (exit $ac_status); }; }; then
16223   eval "$as_ac_var=yes"
16224 else
16225   echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16227
16228 eval "$as_ac_var=no"
16229 fi
16230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16231 fi
16232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16234 if test `eval echo '${'$as_ac_var'}'` = yes; then
16235   cat >>confdefs.h <<_ACEOF
16236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16237 _ACEOF
16238  cat >>confdefs.h <<\_ACEOF
16239 #define HAVE_FCHDIR 1
16240 _ACEOF
16241
16242 fi
16243 done
16244
16245
16246 for ac_func in strtoll
16247 do
16248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16249 echo "$as_me:$LINENO: checking for $ac_func" >&5
16250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16251 if eval "test \"\${$as_ac_var+set}\" = set"; then
16252   echo $ECHO_N "(cached) $ECHO_C" >&6
16253 else
16254   cat >conftest.$ac_ext <<_ACEOF
16255 #line $LINENO "configure"
16256 /* confdefs.h.  */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h.  */
16261 /* System header to define __stub macros and hopefully few prototypes,
16262     which can conflict with char $ac_func (); below.
16263     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16264     <limits.h> exists even on freestanding compilers.  */
16265 #ifdef __STDC__
16266 # include <limits.h>
16267 #else
16268 # include <assert.h>
16269 #endif
16270 /* Override any gcc2 internal prototype to avoid an error.  */
16271 #ifdef __cplusplus
16272 extern "C"
16273 {
16274 #endif
16275 /* We use char because int might match the return type of a gcc2
16276    builtin and then its argument prototype would still apply.  */
16277 char $ac_func ();
16278 /* The GNU C library defines this for functions which it implements
16279     to always fail with ENOSYS.  Some functions are actually named
16280     something starting with __ and the normal name is an alias.  */
16281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16282 choke me
16283 #else
16284 char (*f) () = $ac_func;
16285 #endif
16286 #ifdef __cplusplus
16287 }
16288 #endif
16289
16290 int
16291 main ()
16292 {
16293 return f != $ac_func;
16294   ;
16295   return 0;
16296 }
16297 _ACEOF
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16300   (eval $ac_link) 2>&5
16301   ac_status=$?
16302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303   (exit $ac_status); } &&
16304          { ac_try='test -s conftest$ac_exeext'
16305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306   (eval $ac_try) 2>&5
16307   ac_status=$?
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); }; }; then
16310   eval "$as_ac_var=yes"
16311 else
16312   echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16314
16315 eval "$as_ac_var=no"
16316 fi
16317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16318 fi
16319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16321 if test `eval echo '${'$as_ac_var'}'` = yes; then
16322   cat >>confdefs.h <<_ACEOF
16323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16324 _ACEOF
16325  cat >>confdefs.h <<\_ACEOF
16326 #define HAVE_STRTOLL 1
16327 _ACEOF
16328
16329 fi
16330 done
16331
16332
16333
16334 for ac_func in chflags
16335 do
16336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16337 echo "$as_me:$LINENO: checking for $ac_func" >&5
16338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16339 if eval "test \"\${$as_ac_var+set}\" = set"; then
16340   echo $ECHO_N "(cached) $ECHO_C" >&6
16341 else
16342   cat >conftest.$ac_ext <<_ACEOF
16343 #line $LINENO "configure"
16344 /* confdefs.h.  */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h.  */
16349 /* System header to define __stub macros and hopefully few prototypes,
16350     which can conflict with char $ac_func (); below.
16351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16352     <limits.h> exists even on freestanding compilers.  */
16353 #ifdef __STDC__
16354 # include <limits.h>
16355 #else
16356 # include <assert.h>
16357 #endif
16358 /* Override any gcc2 internal prototype to avoid an error.  */
16359 #ifdef __cplusplus
16360 extern "C"
16361 {
16362 #endif
16363 /* We use char because int might match the return type of a gcc2
16364    builtin and then its argument prototype would still apply.  */
16365 char $ac_func ();
16366 /* The GNU C library defines this for functions which it implements
16367     to always fail with ENOSYS.  Some functions are actually named
16368     something starting with __ and the normal name is an alias.  */
16369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16370 choke me
16371 #else
16372 char (*f) () = $ac_func;
16373 #endif
16374 #ifdef __cplusplus
16375 }
16376 #endif
16377
16378 int
16379 main ()
16380 {
16381 return f != $ac_func;
16382   ;
16383   return 0;
16384 }
16385 _ACEOF
16386 rm -f conftest.$ac_objext conftest$ac_exeext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16388   (eval $ac_link) 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } &&
16392          { ac_try='test -s conftest$ac_exeext'
16393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394   (eval $ac_try) 2>&5
16395   ac_status=$?
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); }; }; then
16398   eval "$as_ac_var=yes"
16399 else
16400   echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16402
16403 eval "$as_ac_var=no"
16404 fi
16405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16406 fi
16407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16409 if test `eval echo '${'$as_ac_var'}'` = yes; then
16410   cat >>confdefs.h <<_ACEOF
16411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16412 _ACEOF
16413
16414 fi
16415 done
16416
16417
16418
16419
16420
16421
16422 for ac_func in snprintf vsnprintf gethostid getdomainname
16423 do
16424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16425 echo "$as_me:$LINENO: checking for $ac_func" >&5
16426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16427 if eval "test \"\${$as_ac_var+set}\" = set"; then
16428   echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430   cat >conftest.$ac_ext <<_ACEOF
16431 #line $LINENO "configure"
16432 /* confdefs.h.  */
16433 _ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h.  */
16437 /* System header to define __stub macros and hopefully few prototypes,
16438     which can conflict with char $ac_func (); below.
16439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16440     <limits.h> exists even on freestanding compilers.  */
16441 #ifdef __STDC__
16442 # include <limits.h>
16443 #else
16444 # include <assert.h>
16445 #endif
16446 /* Override any gcc2 internal prototype to avoid an error.  */
16447 #ifdef __cplusplus
16448 extern "C"
16449 {
16450 #endif
16451 /* We use char because int might match the return type of a gcc2
16452    builtin and then its argument prototype would still apply.  */
16453 char $ac_func ();
16454 /* The GNU C library defines this for functions which it implements
16455     to always fail with ENOSYS.  Some functions are actually named
16456     something starting with __ and the normal name is an alias.  */
16457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16458 choke me
16459 #else
16460 char (*f) () = $ac_func;
16461 #endif
16462 #ifdef __cplusplus
16463 }
16464 #endif
16465
16466 int
16467 main ()
16468 {
16469 return f != $ac_func;
16470   ;
16471   return 0;
16472 }
16473 _ACEOF
16474 rm -f conftest.$ac_objext conftest$ac_exeext
16475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16476   (eval $ac_link) 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); } &&
16480          { ac_try='test -s conftest$ac_exeext'
16481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482   (eval $ac_try) 2>&5
16483   ac_status=$?
16484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485   (exit $ac_status); }; }; then
16486   eval "$as_ac_var=yes"
16487 else
16488   echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16490
16491 eval "$as_ac_var=no"
16492 fi
16493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16494 fi
16495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16497 if test `eval echo '${'$as_ac_var'}'` = yes; then
16498   cat >>confdefs.h <<_ACEOF
16499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16500 _ACEOF
16501
16502 fi
16503 done
16504
16505
16506
16507
16508
16509
16510 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16511 do
16512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16513 echo "$as_me:$LINENO: checking for $ac_func" >&5
16514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16515 if eval "test \"\${$as_ac_var+set}\" = set"; then
16516   echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518   cat >conftest.$ac_ext <<_ACEOF
16519 #line $LINENO "configure"
16520 /* confdefs.h.  */
16521 _ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h.  */
16525 /* System header to define __stub macros and hopefully few prototypes,
16526     which can conflict with char $ac_func (); below.
16527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16528     <limits.h> exists even on freestanding compilers.  */
16529 #ifdef __STDC__
16530 # include <limits.h>
16531 #else
16532 # include <assert.h>
16533 #endif
16534 /* Override any gcc2 internal prototype to avoid an error.  */
16535 #ifdef __cplusplus
16536 extern "C"
16537 {
16538 #endif
16539 /* We use char because int might match the return type of a gcc2
16540    builtin and then its argument prototype would still apply.  */
16541 char $ac_func ();
16542 /* The GNU C library defines this for functions which it implements
16543     to always fail with ENOSYS.  Some functions are actually named
16544     something starting with __ and the normal name is an alias.  */
16545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16546 choke me
16547 #else
16548 char (*f) () = $ac_func;
16549 #endif
16550 #ifdef __cplusplus
16551 }
16552 #endif
16553
16554 int
16555 main ()
16556 {
16557 return f != $ac_func;
16558   ;
16559   return 0;
16560 }
16561 _ACEOF
16562 rm -f conftest.$ac_objext conftest$ac_exeext
16563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16564   (eval $ac_link) 2>&5
16565   ac_status=$?
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); } &&
16568          { ac_try='test -s conftest$ac_exeext'
16569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570   (eval $ac_try) 2>&5
16571   ac_status=$?
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); }; }; then
16574   eval "$as_ac_var=yes"
16575 else
16576   echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16578
16579 eval "$as_ac_var=no"
16580 fi
16581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16582 fi
16583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16585 if test `eval echo '${'$as_ac_var'}'` = yes; then
16586   cat >>confdefs.h <<_ACEOF
16587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16588 _ACEOF
16589
16590 fi
16591 done
16592
16593
16594 # If resolver functions are not in libc check for -lnsl or -lresolv.
16595 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16596 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16597 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16598   echo $ECHO_N "(cached) $ECHO_C" >&6
16599 else
16600   cat >conftest.$ac_ext <<_ACEOF
16601 #line $LINENO "configure"
16602 /* confdefs.h.  */
16603 _ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h.  */
16607 /* System header to define __stub macros and hopefully few prototypes,
16608     which can conflict with char gethostbyname_r (); below.
16609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16610     <limits.h> exists even on freestanding compilers.  */
16611 #ifdef __STDC__
16612 # include <limits.h>
16613 #else
16614 # include <assert.h>
16615 #endif
16616 /* Override any gcc2 internal prototype to avoid an error.  */
16617 #ifdef __cplusplus
16618 extern "C"
16619 {
16620 #endif
16621 /* We use char because int might match the return type of a gcc2
16622    builtin and then its argument prototype would still apply.  */
16623 char gethostbyname_r ();
16624 /* The GNU C library defines this for functions which it implements
16625     to always fail with ENOSYS.  Some functions are actually named
16626     something starting with __ and the normal name is an alias.  */
16627 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16628 choke me
16629 #else
16630 char (*f) () = gethostbyname_r;
16631 #endif
16632 #ifdef __cplusplus
16633 }
16634 #endif
16635
16636 int
16637 main ()
16638 {
16639 return f != gethostbyname_r;
16640   ;
16641   return 0;
16642 }
16643 _ACEOF
16644 rm -f conftest.$ac_objext conftest$ac_exeext
16645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16646   (eval $ac_link) 2>&5
16647   ac_status=$?
16648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); } &&
16650          { ac_try='test -s conftest$ac_exeext'
16651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652   (eval $ac_try) 2>&5
16653   ac_status=$?
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); }; }; then
16656   ac_cv_func_gethostbyname_r=yes
16657 else
16658   echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16660
16661 ac_cv_func_gethostbyname_r=no
16662 fi
16663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16664 fi
16665 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16666 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16667 if test $ac_cv_func_gethostbyname_r = yes; then
16668   echo "$as_me:$LINENO: result: using libc's resolver" >&5
16669 echo "${ECHO_T}using libc's resolver" >&6
16670 else
16671
16672 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16673 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16674 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16675   echo $ECHO_N "(cached) $ECHO_C" >&6
16676 else
16677   ac_check_lib_save_LIBS=$LIBS
16678 LIBS="-lnsl  $LIBS"
16679 cat >conftest.$ac_ext <<_ACEOF
16680 #line $LINENO "configure"
16681 /* confdefs.h.  */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h.  */
16686
16687 /* Override any gcc2 internal prototype to avoid an error.  */
16688 #ifdef __cplusplus
16689 extern "C"
16690 #endif
16691 /* We use char because int might match the return type of a gcc2
16692    builtin and then its argument prototype would still apply.  */
16693 char gethostbyname_r ();
16694 int
16695 main ()
16696 {
16697 gethostbyname_r ();
16698   ;
16699   return 0;
16700 }
16701 _ACEOF
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16704   (eval $ac_link) 2>&5
16705   ac_status=$?
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); } &&
16708          { ac_try='test -s conftest$ac_exeext'
16709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710   (eval $ac_try) 2>&5
16711   ac_status=$?
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); }; }; then
16714   ac_cv_lib_nsl_gethostbyname_r=yes
16715 else
16716   echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16718
16719 ac_cv_lib_nsl_gethostbyname_r=no
16720 fi
16721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16722 LIBS=$ac_check_lib_save_LIBS
16723 fi
16724 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16725 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16726 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16727   cat >>confdefs.h <<_ACEOF
16728 #define HAVE_LIBNSL 1
16729 _ACEOF
16730
16731   LIBS="-lnsl $LIBS"
16732
16733 fi
16734
16735
16736 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16737 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16738 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16739   echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741   ac_check_lib_save_LIBS=$LIBS
16742 LIBS="-lresolv  $LIBS"
16743 cat >conftest.$ac_ext <<_ACEOF
16744 #line $LINENO "configure"
16745 /* confdefs.h.  */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h.  */
16750
16751 /* Override any gcc2 internal prototype to avoid an error.  */
16752 #ifdef __cplusplus
16753 extern "C"
16754 #endif
16755 /* We use char because int might match the return type of a gcc2
16756    builtin and then its argument prototype would still apply.  */
16757 char gethostbyname_r ();
16758 int
16759 main ()
16760 {
16761 gethostbyname_r ();
16762   ;
16763   return 0;
16764 }
16765 _ACEOF
16766 rm -f conftest.$ac_objext conftest$ac_exeext
16767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16768   (eval $ac_link) 2>&5
16769   ac_status=$?
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } &&
16772          { ac_try='test -s conftest$ac_exeext'
16773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774   (eval $ac_try) 2>&5
16775   ac_status=$?
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); }; }; then
16778   ac_cv_lib_resolv_gethostbyname_r=yes
16779 else
16780   echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16782
16783 ac_cv_lib_resolv_gethostbyname_r=no
16784 fi
16785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16786 LIBS=$ac_check_lib_save_LIBS
16787 fi
16788 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16789 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16790 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16791   cat >>confdefs.h <<_ACEOF
16792 #define HAVE_LIBRESOLV 1
16793 _ACEOF
16794
16795   LIBS="-lresolv $LIBS"
16796
16797 fi
16798
16799 fi
16800
16801
16802
16803
16804
16805 for ac_func in inet_pton
16806 do
16807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16808 echo "$as_me:$LINENO: checking for $ac_func" >&5
16809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16810 if eval "test \"\${$as_ac_var+set}\" = set"; then
16811   echo $ECHO_N "(cached) $ECHO_C" >&6
16812 else
16813   cat >conftest.$ac_ext <<_ACEOF
16814 #line $LINENO "configure"
16815 /* confdefs.h.  */
16816 _ACEOF
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h.  */
16820 /* System header to define __stub macros and hopefully few prototypes,
16821     which can conflict with char $ac_func (); below.
16822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16823     <limits.h> exists even on freestanding compilers.  */
16824 #ifdef __STDC__
16825 # include <limits.h>
16826 #else
16827 # include <assert.h>
16828 #endif
16829 /* Override any gcc2 internal prototype to avoid an error.  */
16830 #ifdef __cplusplus
16831 extern "C"
16832 {
16833 #endif
16834 /* We use char because int might match the return type of a gcc2
16835    builtin and then its argument prototype would still apply.  */
16836 char $ac_func ();
16837 /* The GNU C library defines this for functions which it implements
16838     to always fail with ENOSYS.  Some functions are actually named
16839     something starting with __ and the normal name is an alias.  */
16840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16841 choke me
16842 #else
16843 char (*f) () = $ac_func;
16844 #endif
16845 #ifdef __cplusplus
16846 }
16847 #endif
16848
16849 int
16850 main ()
16851 {
16852 return f != $ac_func;
16853   ;
16854   return 0;
16855 }
16856 _ACEOF
16857 rm -f conftest.$ac_objext conftest$ac_exeext
16858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16859   (eval $ac_link) 2>&5
16860   ac_status=$?
16861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862   (exit $ac_status); } &&
16863          { ac_try='test -s conftest$ac_exeext'
16864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16865   (eval $ac_try) 2>&5
16866   ac_status=$?
16867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868   (exit $ac_status); }; }; then
16869   eval "$as_ac_var=yes"
16870 else
16871   echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16873
16874 eval "$as_ac_var=no"
16875 fi
16876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16877 fi
16878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16880 if test `eval echo '${'$as_ac_var'}'` = yes; then
16881   cat >>confdefs.h <<_ACEOF
16882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16883 _ACEOF
16884  cat >>confdefs.h <<\_ACEOF
16885 #define HAVE_INET_PTON 1
16886 _ACEOF
16887
16888 fi
16889 done
16890
16891
16892 for ac_func in inet_ntop
16893 do
16894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16895 echo "$as_me:$LINENO: checking for $ac_func" >&5
16896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16897 if eval "test \"\${$as_ac_var+set}\" = set"; then
16898   echo $ECHO_N "(cached) $ECHO_C" >&6
16899 else
16900   cat >conftest.$ac_ext <<_ACEOF
16901 #line $LINENO "configure"
16902 /* confdefs.h.  */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h.  */
16907 /* System header to define __stub macros and hopefully few prototypes,
16908     which can conflict with char $ac_func (); below.
16909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16910     <limits.h> exists even on freestanding compilers.  */
16911 #ifdef __STDC__
16912 # include <limits.h>
16913 #else
16914 # include <assert.h>
16915 #endif
16916 /* Override any gcc2 internal prototype to avoid an error.  */
16917 #ifdef __cplusplus
16918 extern "C"
16919 {
16920 #endif
16921 /* We use char because int might match the return type of a gcc2
16922    builtin and then its argument prototype would still apply.  */
16923 char $ac_func ();
16924 /* The GNU C library defines this for functions which it implements
16925     to always fail with ENOSYS.  Some functions are actually named
16926     something starting with __ and the normal name is an alias.  */
16927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16928 choke me
16929 #else
16930 char (*f) () = $ac_func;
16931 #endif
16932 #ifdef __cplusplus
16933 }
16934 #endif
16935
16936 int
16937 main ()
16938 {
16939 return f != $ac_func;
16940   ;
16941   return 0;
16942 }
16943 _ACEOF
16944 rm -f conftest.$ac_objext conftest$ac_exeext
16945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16946   (eval $ac_link) 2>&5
16947   ac_status=$?
16948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949   (exit $ac_status); } &&
16950          { ac_try='test -s conftest$ac_exeext'
16951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952   (eval $ac_try) 2>&5
16953   ac_status=$?
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); }; }; then
16956   eval "$as_ac_var=yes"
16957 else
16958   echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961 eval "$as_ac_var=no"
16962 fi
16963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16964 fi
16965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16967 if test `eval echo '${'$as_ac_var'}'` = yes; then
16968   cat >>confdefs.h <<_ACEOF
16969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16970 _ACEOF
16971  cat >>confdefs.h <<\_ACEOF
16972 #define HAVE_INET_NTOP 1
16973 _ACEOF
16974
16975 fi
16976 done
16977
16978
16979 for ac_func in gethostbyname2
16980 do
16981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16982 echo "$as_me:$LINENO: checking for $ac_func" >&5
16983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16984 if eval "test \"\${$as_ac_var+set}\" = set"; then
16985   echo $ECHO_N "(cached) $ECHO_C" >&6
16986 else
16987   cat >conftest.$ac_ext <<_ACEOF
16988 #line $LINENO "configure"
16989 /* confdefs.h.  */
16990 _ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h.  */
16994 /* System header to define __stub macros and hopefully few prototypes,
16995     which can conflict with char $ac_func (); below.
16996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16997     <limits.h> exists even on freestanding compilers.  */
16998 #ifdef __STDC__
16999 # include <limits.h>
17000 #else
17001 # include <assert.h>
17002 #endif
17003 /* Override any gcc2 internal prototype to avoid an error.  */
17004 #ifdef __cplusplus
17005 extern "C"
17006 {
17007 #endif
17008 /* We use char because int might match the return type of a gcc2
17009    builtin and then its argument prototype would still apply.  */
17010 char $ac_func ();
17011 /* The GNU C library defines this for functions which it implements
17012     to always fail with ENOSYS.  Some functions are actually named
17013     something starting with __ and the normal name is an alias.  */
17014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17015 choke me
17016 #else
17017 char (*f) () = $ac_func;
17018 #endif
17019 #ifdef __cplusplus
17020 }
17021 #endif
17022
17023 int
17024 main ()
17025 {
17026 return f != $ac_func;
17027   ;
17028   return 0;
17029 }
17030 _ACEOF
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17033   (eval $ac_link) 2>&5
17034   ac_status=$?
17035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036   (exit $ac_status); } &&
17037          { ac_try='test -s conftest$ac_exeext'
17038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039   (eval $ac_try) 2>&5
17040   ac_status=$?
17041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); }; }; then
17043   eval "$as_ac_var=yes"
17044 else
17045   echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17047
17048 eval "$as_ac_var=no"
17049 fi
17050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17051 fi
17052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17054 if test `eval echo '${'$as_ac_var'}'` = yes; then
17055   cat >>confdefs.h <<_ACEOF
17056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17057 _ACEOF
17058  cat >>confdefs.h <<\_ACEOF
17059 #define HAVE_GETHOSTBYNAME2 1
17060 _ACEOF
17061
17062 fi
17063 done
17064
17065
17066 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
17067 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
17068 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
17069   echo $ECHO_N "(cached) $ECHO_C" >&6
17070 else
17071   cat >conftest.$ac_ext <<_ACEOF
17072 #line $LINENO "configure"
17073 /* confdefs.h.  */
17074 _ACEOF
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h.  */
17078 #include <sys/socket.h>
17079 int
17080 main ()
17081 {
17082 struct sockaddr s; s.sa_len;
17083   ;
17084   return 0;
17085 }
17086 _ACEOF
17087 rm -f conftest.$ac_objext
17088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17089   (eval $ac_compile) 2>&5
17090   ac_status=$?
17091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); } &&
17093          { ac_try='test -s conftest.$ac_objext'
17094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095   (eval $ac_try) 2>&5
17096   ac_status=$?
17097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098   (exit $ac_status); }; }; then
17099   ac_cv_struct_sockaddr_sa_len=yes
17100 else
17101   echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17103
17104 ac_cv_struct_sockaddr_sa_len=no
17105 fi
17106 rm -f conftest.$ac_objext conftest.$ac_ext
17107 fi
17108 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
17109 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
17110
17111  if test $ac_cv_struct_sockaddr_sa_len = yes; then
17112
17113 cat >>confdefs.h <<\_ACEOF
17114 #define HAVE_SA_LEN 1
17115 _ACEOF
17116
17117  fi
17118
17119
17120 echo "$as_me:$LINENO: checking for IPv6 support" >&5
17121 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
17122 if test "${ac_cv_ipv6_support+set}" = set; then
17123   echo $ECHO_N "(cached) $ECHO_C" >&6
17124 else
17125   cat >conftest.$ac_ext <<_ACEOF
17126 #line $LINENO "configure"
17127 /* confdefs.h.  */
17128 _ACEOF
17129 cat confdefs.h >>conftest.$ac_ext
17130 cat >>conftest.$ac_ext <<_ACEOF
17131 /* end confdefs.h.  */
17132  #include <sys/types.h>
17133 #include <sys/socket.h>
17134 #include <netinet/in.h>
17135 int
17136 main ()
17137 {
17138 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
17139  0;
17140   ;
17141   return 0;
17142 }
17143 _ACEOF
17144 rm -f conftest.$ac_objext conftest$ac_exeext
17145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17146   (eval $ac_link) 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); } &&
17150          { ac_try='test -s conftest$ac_exeext'
17151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152   (eval $ac_try) 2>&5
17153   ac_status=$?
17154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155   (exit $ac_status); }; }; then
17156   ac_cv_ipv6_support=yes
17157 else
17158   echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17160
17161 ac_cv_ipv6_support=no
17162 fi
17163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17164 fi
17165 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
17166 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
17167
17168 if test "$ac_cv_ipv6_support" = yes; then
17169
17170 cat >>confdefs.h <<\_ACEOF
17171 #define HAVE_IPV6 1
17172 _ACEOF
17173
17174 fi
17175
17176
17177
17178
17179 for ac_func in strftime
17180 do
17181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17182 echo "$as_me:$LINENO: checking for $ac_func" >&5
17183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17184 if eval "test \"\${$as_ac_var+set}\" = set"; then
17185   echo $ECHO_N "(cached) $ECHO_C" >&6
17186 else
17187   cat >conftest.$ac_ext <<_ACEOF
17188 #line $LINENO "configure"
17189 /* confdefs.h.  */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h.  */
17194 /* System header to define __stub macros and hopefully few prototypes,
17195     which can conflict with char $ac_func (); below.
17196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17197     <limits.h> exists even on freestanding compilers.  */
17198 #ifdef __STDC__
17199 # include <limits.h>
17200 #else
17201 # include <assert.h>
17202 #endif
17203 /* Override any gcc2 internal prototype to avoid an error.  */
17204 #ifdef __cplusplus
17205 extern "C"
17206 {
17207 #endif
17208 /* We use char because int might match the return type of a gcc2
17209    builtin and then its argument prototype would still apply.  */
17210 char $ac_func ();
17211 /* The GNU C library defines this for functions which it implements
17212     to always fail with ENOSYS.  Some functions are actually named
17213     something starting with __ and the normal name is an alias.  */
17214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17215 choke me
17216 #else
17217 char (*f) () = $ac_func;
17218 #endif
17219 #ifdef __cplusplus
17220 }
17221 #endif
17222
17223 int
17224 main ()
17225 {
17226 return f != $ac_func;
17227   ;
17228   return 0;
17229 }
17230 _ACEOF
17231 rm -f conftest.$ac_objext conftest$ac_exeext
17232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17233   (eval $ac_link) 2>&5
17234   ac_status=$?
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); } &&
17237          { ac_try='test -s conftest$ac_exeext'
17238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239   (eval $ac_try) 2>&5
17240   ac_status=$?
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); }; }; then
17243   eval "$as_ac_var=yes"
17244 else
17245   echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248 eval "$as_ac_var=no"
17249 fi
17250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17251 fi
17252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17254 if test `eval echo '${'$as_ac_var'}'` = yes; then
17255   cat >>confdefs.h <<_ACEOF
17256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17257 _ACEOF
17258
17259 else
17260   # strftime is in -lintl on SCO UNIX.
17261 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17262 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17263 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17264   echo $ECHO_N "(cached) $ECHO_C" >&6
17265 else
17266   ac_check_lib_save_LIBS=$LIBS
17267 LIBS="-lintl  $LIBS"
17268 cat >conftest.$ac_ext <<_ACEOF
17269 #line $LINENO "configure"
17270 /* confdefs.h.  */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h.  */
17275
17276 /* Override any gcc2 internal prototype to avoid an error.  */
17277 #ifdef __cplusplus
17278 extern "C"
17279 #endif
17280 /* We use char because int might match the return type of a gcc2
17281    builtin and then its argument prototype would still apply.  */
17282 char strftime ();
17283 int
17284 main ()
17285 {
17286 strftime ();
17287   ;
17288   return 0;
17289 }
17290 _ACEOF
17291 rm -f conftest.$ac_objext conftest$ac_exeext
17292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17293   (eval $ac_link) 2>&5
17294   ac_status=$?
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); } &&
17297          { ac_try='test -s conftest$ac_exeext'
17298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299   (eval $ac_try) 2>&5
17300   ac_status=$?
17301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); }; }; then
17303   ac_cv_lib_intl_strftime=yes
17304 else
17305   echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17307
17308 ac_cv_lib_intl_strftime=no
17309 fi
17310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17311 LIBS=$ac_check_lib_save_LIBS
17312 fi
17313 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17314 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17315 if test $ac_cv_lib_intl_strftime = yes; then
17316   cat >>confdefs.h <<\_ACEOF
17317 #define HAVE_STRFTIME 1
17318 _ACEOF
17319
17320 LIBS="-lintl $LIBS"
17321 fi
17322
17323 fi
17324 done
17325
17326
17327 for ac_func in vprintf
17328 do
17329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17330 echo "$as_me:$LINENO: checking for $ac_func" >&5
17331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17332 if eval "test \"\${$as_ac_var+set}\" = set"; then
17333   echo $ECHO_N "(cached) $ECHO_C" >&6
17334 else
17335   cat >conftest.$ac_ext <<_ACEOF
17336 #line $LINENO "configure"
17337 /* confdefs.h.  */
17338 _ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h.  */
17342 /* System header to define __stub macros and hopefully few prototypes,
17343     which can conflict with char $ac_func (); below.
17344     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17345     <limits.h> exists even on freestanding compilers.  */
17346 #ifdef __STDC__
17347 # include <limits.h>
17348 #else
17349 # include <assert.h>
17350 #endif
17351 /* Override any gcc2 internal prototype to avoid an error.  */
17352 #ifdef __cplusplus
17353 extern "C"
17354 {
17355 #endif
17356 /* We use char because int might match the return type of a gcc2
17357    builtin and then its argument prototype would still apply.  */
17358 char $ac_func ();
17359 /* The GNU C library defines this for functions which it implements
17360     to always fail with ENOSYS.  Some functions are actually named
17361     something starting with __ and the normal name is an alias.  */
17362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17363 choke me
17364 #else
17365 char (*f) () = $ac_func;
17366 #endif
17367 #ifdef __cplusplus
17368 }
17369 #endif
17370
17371 int
17372 main ()
17373 {
17374 return f != $ac_func;
17375   ;
17376   return 0;
17377 }
17378 _ACEOF
17379 rm -f conftest.$ac_objext conftest$ac_exeext
17380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17381   (eval $ac_link) 2>&5
17382   ac_status=$?
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); } &&
17385          { ac_try='test -s conftest$ac_exeext'
17386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387   (eval $ac_try) 2>&5
17388   ac_status=$?
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); }; }; then
17391   eval "$as_ac_var=yes"
17392 else
17393   echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17395
17396 eval "$as_ac_var=no"
17397 fi
17398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17399 fi
17400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17402 if test `eval echo '${'$as_ac_var'}'` = yes; then
17403   cat >>confdefs.h <<_ACEOF
17404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17405 _ACEOF
17406
17407 echo "$as_me:$LINENO: checking for _doprnt" >&5
17408 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17409 if test "${ac_cv_func__doprnt+set}" = set; then
17410   echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412   cat >conftest.$ac_ext <<_ACEOF
17413 #line $LINENO "configure"
17414 /* confdefs.h.  */
17415 _ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h.  */
17419 /* System header to define __stub macros and hopefully few prototypes,
17420     which can conflict with char _doprnt (); below.
17421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17422     <limits.h> exists even on freestanding compilers.  */
17423 #ifdef __STDC__
17424 # include <limits.h>
17425 #else
17426 # include <assert.h>
17427 #endif
17428 /* Override any gcc2 internal prototype to avoid an error.  */
17429 #ifdef __cplusplus
17430 extern "C"
17431 {
17432 #endif
17433 /* We use char because int might match the return type of a gcc2
17434    builtin and then its argument prototype would still apply.  */
17435 char _doprnt ();
17436 /* The GNU C library defines this for functions which it implements
17437     to always fail with ENOSYS.  Some functions are actually named
17438     something starting with __ and the normal name is an alias.  */
17439 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17440 choke me
17441 #else
17442 char (*f) () = _doprnt;
17443 #endif
17444 #ifdef __cplusplus
17445 }
17446 #endif
17447
17448 int
17449 main ()
17450 {
17451 return f != _doprnt;
17452   ;
17453   return 0;
17454 }
17455 _ACEOF
17456 rm -f conftest.$ac_objext conftest$ac_exeext
17457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17458   (eval $ac_link) 2>&5
17459   ac_status=$?
17460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461   (exit $ac_status); } &&
17462          { ac_try='test -s conftest$ac_exeext'
17463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464   (eval $ac_try) 2>&5
17465   ac_status=$?
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); }; }; then
17468   ac_cv_func__doprnt=yes
17469 else
17470   echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17472
17473 ac_cv_func__doprnt=no
17474 fi
17475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17476 fi
17477 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17478 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17479 if test $ac_cv_func__doprnt = yes; then
17480
17481 cat >>confdefs.h <<\_ACEOF
17482 #define HAVE_DOPRNT 1
17483 _ACEOF
17484
17485 fi
17486
17487 fi
17488 done
17489
17490
17491 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17492 # for constant arguments.  Useless!
17493 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17494 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17495 if test "${ac_cv_working_alloca_h+set}" = set; then
17496   echo $ECHO_N "(cached) $ECHO_C" >&6
17497 else
17498   cat >conftest.$ac_ext <<_ACEOF
17499 #line $LINENO "configure"
17500 /* confdefs.h.  */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h.  */
17505 #include <alloca.h>
17506 int
17507 main ()
17508 {
17509 char *p = (char *) alloca (2 * sizeof (int));
17510   ;
17511   return 0;
17512 }
17513 _ACEOF
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17516   (eval $ac_link) 2>&5
17517   ac_status=$?
17518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519   (exit $ac_status); } &&
17520          { ac_try='test -s conftest$ac_exeext'
17521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522   (eval $ac_try) 2>&5
17523   ac_status=$?
17524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525   (exit $ac_status); }; }; then
17526   ac_cv_working_alloca_h=yes
17527 else
17528   echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17530
17531 ac_cv_working_alloca_h=no
17532 fi
17533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17534 fi
17535 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17536 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17537 if test $ac_cv_working_alloca_h = yes; then
17538
17539 cat >>confdefs.h <<\_ACEOF
17540 #define HAVE_ALLOCA_H 1
17541 _ACEOF
17542
17543 fi
17544
17545 echo "$as_me:$LINENO: checking for alloca" >&5
17546 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17547 if test "${ac_cv_func_alloca_works+set}" = set; then
17548   echo $ECHO_N "(cached) $ECHO_C" >&6
17549 else
17550   cat >conftest.$ac_ext <<_ACEOF
17551 #line $LINENO "configure"
17552 /* confdefs.h.  */
17553 _ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h.  */
17557 #ifdef __GNUC__
17558 # define alloca __builtin_alloca
17559 #else
17560 # ifdef _MSC_VER
17561 #  include <malloc.h>
17562 #  define alloca _alloca
17563 # else
17564 #  if HAVE_ALLOCA_H
17565 #   include <alloca.h>
17566 #  else
17567 #   ifdef _AIX
17568  #pragma alloca
17569 #   else
17570 #    ifndef alloca /* predefined by HP cc +Olibcalls */
17571 char *alloca ();
17572 #    endif
17573 #   endif
17574 #  endif
17575 # endif
17576 #endif
17577
17578 int
17579 main ()
17580 {
17581 char *p = (char *) alloca (1);
17582   ;
17583   return 0;
17584 }
17585 _ACEOF
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17588   (eval $ac_link) 2>&5
17589   ac_status=$?
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); } &&
17592          { ac_try='test -s conftest$ac_exeext'
17593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594   (eval $ac_try) 2>&5
17595   ac_status=$?
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); }; }; then
17598   ac_cv_func_alloca_works=yes
17599 else
17600   echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17602
17603 ac_cv_func_alloca_works=no
17604 fi
17605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17606 fi
17607 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17608 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17609
17610 if test $ac_cv_func_alloca_works = yes; then
17611
17612 cat >>confdefs.h <<\_ACEOF
17613 #define HAVE_ALLOCA 1
17614 _ACEOF
17615
17616 else
17617   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17618 # that cause trouble.  Some versions do not even contain alloca or
17619 # contain a buggy version.  If you still want to use their alloca,
17620 # use ar to extract alloca.o from them instead of compiling alloca.c.
17621
17622 ALLOCA=alloca.$ac_objext
17623
17624 cat >>confdefs.h <<\_ACEOF
17625 #define C_ALLOCA 1
17626 _ACEOF
17627
17628
17629 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17630 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17631 if test "${ac_cv_os_cray+set}" = set; then
17632   echo $ECHO_N "(cached) $ECHO_C" >&6
17633 else
17634   cat >conftest.$ac_ext <<_ACEOF
17635 #line $LINENO "configure"
17636 /* confdefs.h.  */
17637 _ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h.  */
17641 #if defined(CRAY) && ! defined(CRAY2)
17642 webecray
17643 #else
17644 wenotbecray
17645 #endif
17646
17647 _ACEOF
17648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17649   $EGREP "webecray" >/dev/null 2>&1; then
17650   ac_cv_os_cray=yes
17651 else
17652   ac_cv_os_cray=no
17653 fi
17654 rm -f conftest*
17655
17656 fi
17657 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17658 echo "${ECHO_T}$ac_cv_os_cray" >&6
17659 if test $ac_cv_os_cray = yes; then
17660   for ac_func in _getb67 GETB67 getb67; do
17661     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17662 echo "$as_me:$LINENO: checking for $ac_func" >&5
17663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17664 if eval "test \"\${$as_ac_var+set}\" = set"; then
17665   echo $ECHO_N "(cached) $ECHO_C" >&6
17666 else
17667   cat >conftest.$ac_ext <<_ACEOF
17668 #line $LINENO "configure"
17669 /* confdefs.h.  */
17670 _ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h.  */
17674 /* System header to define __stub macros and hopefully few prototypes,
17675     which can conflict with char $ac_func (); below.
17676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17677     <limits.h> exists even on freestanding compilers.  */
17678 #ifdef __STDC__
17679 # include <limits.h>
17680 #else
17681 # include <assert.h>
17682 #endif
17683 /* Override any gcc2 internal prototype to avoid an error.  */
17684 #ifdef __cplusplus
17685 extern "C"
17686 {
17687 #endif
17688 /* We use char because int might match the return type of a gcc2
17689    builtin and then its argument prototype would still apply.  */
17690 char $ac_func ();
17691 /* The GNU C library defines this for functions which it implements
17692     to always fail with ENOSYS.  Some functions are actually named
17693     something starting with __ and the normal name is an alias.  */
17694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17695 choke me
17696 #else
17697 char (*f) () = $ac_func;
17698 #endif
17699 #ifdef __cplusplus
17700 }
17701 #endif
17702
17703 int
17704 main ()
17705 {
17706 return f != $ac_func;
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17713   (eval $ac_link) 2>&5
17714   ac_status=$?
17715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716   (exit $ac_status); } &&
17717          { ac_try='test -s conftest$ac_exeext'
17718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719   (eval $ac_try) 2>&5
17720   ac_status=$?
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); }; }; then
17723   eval "$as_ac_var=yes"
17724 else
17725   echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17727
17728 eval "$as_ac_var=no"
17729 fi
17730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17731 fi
17732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17734 if test `eval echo '${'$as_ac_var'}'` = yes; then
17735
17736 cat >>confdefs.h <<_ACEOF
17737 #define CRAY_STACKSEG_END $ac_func
17738 _ACEOF
17739
17740     break
17741 fi
17742
17743   done
17744 fi
17745
17746 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17747 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17748 if test "${ac_cv_c_stack_direction+set}" = set; then
17749   echo $ECHO_N "(cached) $ECHO_C" >&6
17750 else
17751   if test "$cross_compiling" = yes; then
17752   ac_cv_c_stack_direction=0
17753 else
17754   cat >conftest.$ac_ext <<_ACEOF
17755 #line $LINENO "configure"
17756 /* confdefs.h.  */
17757 _ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h.  */
17761 int
17762 find_stack_direction ()
17763 {
17764   static char *addr = 0;
17765   auto char dummy;
17766   if (addr == 0)
17767     {
17768       addr = &dummy;
17769       return find_stack_direction ();
17770     }
17771   else
17772     return (&dummy > addr) ? 1 : -1;
17773 }
17774
17775 int
17776 main ()
17777 {
17778   exit (find_stack_direction () < 0);
17779 }
17780 _ACEOF
17781 rm -f conftest$ac_exeext
17782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17783   (eval $ac_link) 2>&5
17784   ac_status=$?
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788   (eval $ac_try) 2>&5
17789   ac_status=$?
17790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791   (exit $ac_status); }; }; then
17792   ac_cv_c_stack_direction=1
17793 else
17794   echo "$as_me: program exited with status $ac_status" >&5
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17797
17798 ( exit $ac_status )
17799 ac_cv_c_stack_direction=-1
17800 fi
17801 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17802 fi
17803 fi
17804 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17805 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17806
17807 cat >>confdefs.h <<_ACEOF
17808 #define STACK_DIRECTION $ac_cv_c_stack_direction
17809 _ACEOF
17810
17811
17812 fi
17813
17814 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17815 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17816 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17817 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17818   echo $ECHO_N "(cached) $ECHO_C" >&6
17819 else
17820   ac_check_lib_save_LIBS=$LIBS
17821 LIBS="-lsun  $LIBS"
17822 cat >conftest.$ac_ext <<_ACEOF
17823 #line $LINENO "configure"
17824 /* confdefs.h.  */
17825 _ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h.  */
17829
17830 /* Override any gcc2 internal prototype to avoid an error.  */
17831 #ifdef __cplusplus
17832 extern "C"
17833 #endif
17834 /* We use char because int might match the return type of a gcc2
17835    builtin and then its argument prototype would still apply.  */
17836 char getmntent ();
17837 int
17838 main ()
17839 {
17840 getmntent ();
17841   ;
17842   return 0;
17843 }
17844 _ACEOF
17845 rm -f conftest.$ac_objext conftest$ac_exeext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847   (eval $ac_link) 2>&5
17848   ac_status=$?
17849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850   (exit $ac_status); } &&
17851          { ac_try='test -s conftest$ac_exeext'
17852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853   (eval $ac_try) 2>&5
17854   ac_status=$?
17855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856   (exit $ac_status); }; }; then
17857   ac_cv_lib_sun_getmntent=yes
17858 else
17859   echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17861
17862 ac_cv_lib_sun_getmntent=no
17863 fi
17864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17865 LIBS=$ac_check_lib_save_LIBS
17866 fi
17867 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17868 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17869 if test $ac_cv_lib_sun_getmntent = yes; then
17870   LIBS="-lsun $LIBS"
17871 else
17872   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17873 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17874 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17875   echo $ECHO_N "(cached) $ECHO_C" >&6
17876 else
17877   ac_check_lib_save_LIBS=$LIBS
17878 LIBS="-lseq  $LIBS"
17879 cat >conftest.$ac_ext <<_ACEOF
17880 #line $LINENO "configure"
17881 /* confdefs.h.  */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h.  */
17886
17887 /* Override any gcc2 internal prototype to avoid an error.  */
17888 #ifdef __cplusplus
17889 extern "C"
17890 #endif
17891 /* We use char because int might match the return type of a gcc2
17892    builtin and then its argument prototype would still apply.  */
17893 char getmntent ();
17894 int
17895 main ()
17896 {
17897 getmntent ();
17898   ;
17899   return 0;
17900 }
17901 _ACEOF
17902 rm -f conftest.$ac_objext conftest$ac_exeext
17903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17904   (eval $ac_link) 2>&5
17905   ac_status=$?
17906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907   (exit $ac_status); } &&
17908          { ac_try='test -s conftest$ac_exeext'
17909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910   (eval $ac_try) 2>&5
17911   ac_status=$?
17912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913   (exit $ac_status); }; }; then
17914   ac_cv_lib_seq_getmntent=yes
17915 else
17916   echo "$as_me: failed program was:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17918
17919 ac_cv_lib_seq_getmntent=no
17920 fi
17921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17922 LIBS=$ac_check_lib_save_LIBS
17923 fi
17924 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17925 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17926 if test $ac_cv_lib_seq_getmntent = yes; then
17927   LIBS="-lseq $LIBS"
17928 else
17929   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17930 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17931 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17932   echo $ECHO_N "(cached) $ECHO_C" >&6
17933 else
17934   ac_check_lib_save_LIBS=$LIBS
17935 LIBS="-lgen  $LIBS"
17936 cat >conftest.$ac_ext <<_ACEOF
17937 #line $LINENO "configure"
17938 /* confdefs.h.  */
17939 _ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h.  */
17943
17944 /* Override any gcc2 internal prototype to avoid an error.  */
17945 #ifdef __cplusplus
17946 extern "C"
17947 #endif
17948 /* We use char because int might match the return type of a gcc2
17949    builtin and then its argument prototype would still apply.  */
17950 char getmntent ();
17951 int
17952 main ()
17953 {
17954 getmntent ();
17955   ;
17956   return 0;
17957 }
17958 _ACEOF
17959 rm -f conftest.$ac_objext conftest$ac_exeext
17960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17961   (eval $ac_link) 2>&5
17962   ac_status=$?
17963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964   (exit $ac_status); } &&
17965          { ac_try='test -s conftest$ac_exeext'
17966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967   (eval $ac_try) 2>&5
17968   ac_status=$?
17969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970   (exit $ac_status); }; }; then
17971   ac_cv_lib_gen_getmntent=yes
17972 else
17973   echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17975
17976 ac_cv_lib_gen_getmntent=no
17977 fi
17978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17979 LIBS=$ac_check_lib_save_LIBS
17980 fi
17981 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17982 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17983 if test $ac_cv_lib_gen_getmntent = yes; then
17984   LIBS="-lgen $LIBS"
17985 fi
17986
17987 fi
17988
17989 fi
17990
17991
17992 for ac_func in getmntent
17993 do
17994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17995 echo "$as_me:$LINENO: checking for $ac_func" >&5
17996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17997 if eval "test \"\${$as_ac_var+set}\" = set"; then
17998   echo $ECHO_N "(cached) $ECHO_C" >&6
17999 else
18000   cat >conftest.$ac_ext <<_ACEOF
18001 #line $LINENO "configure"
18002 /* confdefs.h.  */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h.  */
18007 /* System header to define __stub macros and hopefully few prototypes,
18008     which can conflict with char $ac_func (); below.
18009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18010     <limits.h> exists even on freestanding compilers.  */
18011 #ifdef __STDC__
18012 # include <limits.h>
18013 #else
18014 # include <assert.h>
18015 #endif
18016 /* Override any gcc2 internal prototype to avoid an error.  */
18017 #ifdef __cplusplus
18018 extern "C"
18019 {
18020 #endif
18021 /* We use char because int might match the return type of a gcc2
18022    builtin and then its argument prototype would still apply.  */
18023 char $ac_func ();
18024 /* The GNU C library defines this for functions which it implements
18025     to always fail with ENOSYS.  Some functions are actually named
18026     something starting with __ and the normal name is an alias.  */
18027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18028 choke me
18029 #else
18030 char (*f) () = $ac_func;
18031 #endif
18032 #ifdef __cplusplus
18033 }
18034 #endif
18035
18036 int
18037 main ()
18038 {
18039 return f != $ac_func;
18040   ;
18041   return 0;
18042 }
18043 _ACEOF
18044 rm -f conftest.$ac_objext conftest$ac_exeext
18045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18046   (eval $ac_link) 2>&5
18047   ac_status=$?
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); } &&
18050          { ac_try='test -s conftest$ac_exeext'
18051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052   (eval $ac_try) 2>&5
18053   ac_status=$?
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); }; }; then
18056   eval "$as_ac_var=yes"
18057 else
18058   echo "$as_me: failed program was:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18060
18061 eval "$as_ac_var=no"
18062 fi
18063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18064 fi
18065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18067 if test `eval echo '${'$as_ac_var'}'` = yes; then
18068   cat >>confdefs.h <<_ACEOF
18069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18070 _ACEOF
18071
18072 fi
18073 done
18074
18075
18076 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
18077 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
18078 if test "${ac_cv_func_closedir_void+set}" = set; then
18079   echo $ECHO_N "(cached) $ECHO_C" >&6
18080 else
18081   if test "$cross_compiling" = yes; then
18082   ac_cv_func_closedir_void=yes
18083 else
18084   cat >conftest.$ac_ext <<_ACEOF
18085 #line $LINENO "configure"
18086 /* confdefs.h.  */
18087 _ACEOF
18088 cat confdefs.h >>conftest.$ac_ext
18089 cat >>conftest.$ac_ext <<_ACEOF
18090 /* end confdefs.h.  */
18091 $ac_includes_default
18092 #include <$ac_header_dirent>
18093 #ifndef __cplusplus
18094 int closedir ();
18095 #endif
18096
18097 int
18098 main ()
18099 {
18100 exit (closedir (opendir (".")) != 0);
18101   ;
18102   return 0;
18103 }
18104 _ACEOF
18105 rm -f conftest$ac_exeext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18107   (eval $ac_link) 2>&5
18108   ac_status=$?
18109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112   (eval $ac_try) 2>&5
18113   ac_status=$?
18114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115   (exit $ac_status); }; }; then
18116   ac_cv_func_closedir_void=no
18117 else
18118   echo "$as_me: program exited with status $ac_status" >&5
18119 echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18121
18122 ( exit $ac_status )
18123 ac_cv_func_closedir_void=yes
18124 fi
18125 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18126 fi
18127 fi
18128 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
18129 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
18130 if test $ac_cv_func_closedir_void = yes; then
18131
18132 cat >>confdefs.h <<\_ACEOF
18133 #define CLOSEDIR_VOID 1
18134 _ACEOF
18135
18136 fi
18137
18138 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18139 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18140 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18141   echo $ECHO_N "(cached) $ECHO_C" >&6
18142 else
18143   if test "$cross_compiling" = yes; then
18144   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18145 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18146    { (exit 1); exit 1; }; }
18147 else
18148   cat >conftest.$ac_ext <<_ACEOF
18149 #line $LINENO "configure"
18150 /* confdefs.h.  */
18151 _ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h.  */
18155 #if HAVE_UNISTD_H
18156 # include <unistd.h>
18157 #endif
18158
18159 int
18160 main ()
18161 {
18162 /* If this system has a BSD-style setpgrp which takes arguments,
18163   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18164   exit successfully. */
18165   exit (setpgrp (1,1) == -1 ? 0 : 1);
18166   ;
18167   return 0;
18168 }
18169 _ACEOF
18170 rm -f conftest$ac_exeext
18171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18172   (eval $ac_link) 2>&5
18173   ac_status=$?
18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18177   (eval $ac_try) 2>&5
18178   ac_status=$?
18179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180   (exit $ac_status); }; }; then
18181   ac_cv_func_setpgrp_void=no
18182 else
18183   echo "$as_me: program exited with status $ac_status" >&5
18184 echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18186
18187 ( exit $ac_status )
18188 ac_cv_func_setpgrp_void=yes
18189 fi
18190 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18191 fi
18192 fi
18193 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18194 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18195 if test $ac_cv_func_setpgrp_void = yes; then
18196
18197 cat >>confdefs.h <<\_ACEOF
18198 #define SETPGRP_VOID 1
18199 _ACEOF
18200
18201 fi
18202                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
18203 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
18204 if test "${ac_cv_func_fnmatch_works+set}" = set; then
18205   echo $ECHO_N "(cached) $ECHO_C" >&6
18206 else
18207   # Some versions of Solaris, SCO, and the GNU C Library
18208    # have a broken or incompatible fnmatch.
18209    # So we run a test program.  If we are cross-compiling, take no chance.
18210    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
18211    if test "$cross_compiling" = yes; then
18212   ac_cv_func_fnmatch_works=cross
18213 else
18214   cat >conftest.$ac_ext <<_ACEOF
18215 #line $LINENO "configure"
18216 /* confdefs.h.  */
18217 _ACEOF
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h.  */
18221 #include <fnmatch.h>
18222 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
18223 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
18224
18225 int
18226 main ()
18227 {
18228 exit
18229            (!(y ("a*", "abc", 0)
18230               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
18231               && y ("a\\\\bc", "abc", 0)
18232               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
18233               && y ("*x", ".x", 0)
18234               && n ("*x", ".x", FNM_PERIOD)
18235               && 1));
18236   ;
18237   return 0;
18238 }
18239 _ACEOF
18240 rm -f conftest$ac_exeext
18241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18242   (eval $ac_link) 2>&5
18243   ac_status=$?
18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247   (eval $ac_try) 2>&5
18248   ac_status=$?
18249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250   (exit $ac_status); }; }; then
18251   ac_cv_func_fnmatch_works=yes
18252 else
18253   echo "$as_me: program exited with status $ac_status" >&5
18254 echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18256
18257 ( exit $ac_status )
18258 ac_cv_func_fnmatch_works=no
18259 fi
18260 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18261 fi
18262 fi
18263 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
18264 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
18265 if test $ac_cv_func_fnmatch_works = yes; then
18266
18267 cat >>confdefs.h <<\_ACEOF
18268 #define HAVE_FNMATCH 1
18269 _ACEOF
18270
18271 fi
18272
18273
18274
18275
18276
18277 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18278 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18279 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18280   echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282   ac_check_lib_save_LIBS=$LIBS
18283 LIBS="-lxpg4  $LIBS"
18284 cat >conftest.$ac_ext <<_ACEOF
18285 #line $LINENO "configure"
18286 /* confdefs.h.  */
18287 _ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h.  */
18291
18292 /* Override any gcc2 internal prototype to avoid an error.  */
18293 #ifdef __cplusplus
18294 extern "C"
18295 #endif
18296 /* We use char because int might match the return type of a gcc2
18297    builtin and then its argument prototype would still apply.  */
18298 char setlocale ();
18299 int
18300 main ()
18301 {
18302 setlocale ();
18303   ;
18304   return 0;
18305 }
18306 _ACEOF
18307 rm -f conftest.$ac_objext conftest$ac_exeext
18308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18309   (eval $ac_link) 2>&5
18310   ac_status=$?
18311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312   (exit $ac_status); } &&
18313          { ac_try='test -s conftest$ac_exeext'
18314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315   (eval $ac_try) 2>&5
18316   ac_status=$?
18317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318   (exit $ac_status); }; }; then
18319   ac_cv_lib_xpg4_setlocale=yes
18320 else
18321   echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18323
18324 ac_cv_lib_xpg4_setlocale=no
18325 fi
18326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18327 LIBS=$ac_check_lib_save_LIBS
18328 fi
18329 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18330 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18331 if test $ac_cv_lib_xpg4_setlocale = yes; then
18332   LIBS="$LIBS -lxpg4"
18333 fi
18334
18335
18336
18337
18338 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18339 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18340 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18341   echo $ECHO_N "(cached) $ECHO_C" >&6
18342 else
18343   ac_check_lib_save_LIBS=$LIBS
18344 LIBS="-lsun  $LIBS"
18345 cat >conftest.$ac_ext <<_ACEOF
18346 #line $LINENO "configure"
18347 /* confdefs.h.  */
18348 _ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h.  */
18352
18353 /* Override any gcc2 internal prototype to avoid an error.  */
18354 #ifdef __cplusplus
18355 extern "C"
18356 #endif
18357 /* We use char because int might match the return type of a gcc2
18358    builtin and then its argument prototype would still apply.  */
18359 char getpwnam ();
18360 int
18361 main ()
18362 {
18363 getpwnam ();
18364   ;
18365   return 0;
18366 }
18367 _ACEOF
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18370   (eval $ac_link) 2>&5
18371   ac_status=$?
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); } &&
18374          { ac_try='test -s conftest$ac_exeext'
18375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376   (eval $ac_try) 2>&5
18377   ac_status=$?
18378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379   (exit $ac_status); }; }; then
18380   ac_cv_lib_sun_getpwnam=yes
18381 else
18382   echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18384
18385 ac_cv_lib_sun_getpwnam=no
18386 fi
18387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18388 LIBS=$ac_check_lib_save_LIBS
18389 fi
18390 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18391 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18392 if test $ac_cv_lib_sun_getpwnam = yes; then
18393   cat >>confdefs.h <<_ACEOF
18394 #define HAVE_LIBSUN 1
18395 _ACEOF
18396
18397   LIBS="-lsun $LIBS"
18398
18399 fi
18400
18401
18402
18403 for ac_header in zlib.h
18404 do
18405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18407   echo "$as_me:$LINENO: checking for $ac_header" >&5
18408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18410   echo $ECHO_N "(cached) $ECHO_C" >&6
18411 fi
18412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18414 else
18415   # Is the header compilable?
18416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18418 cat >conftest.$ac_ext <<_ACEOF
18419 #line $LINENO "configure"
18420 /* confdefs.h.  */
18421 _ACEOF
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h.  */
18425 $ac_includes_default
18426 #include <$ac_header>
18427 _ACEOF
18428 rm -f conftest.$ac_objext
18429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18430   (eval $ac_compile) 2>&5
18431   ac_status=$?
18432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433   (exit $ac_status); } &&
18434          { ac_try='test -s conftest.$ac_objext'
18435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436   (eval $ac_try) 2>&5
18437   ac_status=$?
18438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439   (exit $ac_status); }; }; then
18440   ac_header_compiler=yes
18441 else
18442   echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18444
18445 ac_header_compiler=no
18446 fi
18447 rm -f conftest.$ac_objext conftest.$ac_ext
18448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18449 echo "${ECHO_T}$ac_header_compiler" >&6
18450
18451 # Is the header present?
18452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18454 cat >conftest.$ac_ext <<_ACEOF
18455 #line $LINENO "configure"
18456 /* confdefs.h.  */
18457 _ACEOF
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h.  */
18461 #include <$ac_header>
18462 _ACEOF
18463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18465   ac_status=$?
18466   grep -v '^ *+' conftest.er1 >conftest.err
18467   rm -f conftest.er1
18468   cat conftest.err >&5
18469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470   (exit $ac_status); } >/dev/null; then
18471   if test -s conftest.err; then
18472     ac_cpp_err=$ac_c_preproc_warn_flag
18473   else
18474     ac_cpp_err=
18475   fi
18476 else
18477   ac_cpp_err=yes
18478 fi
18479 if test -z "$ac_cpp_err"; then
18480   ac_header_preproc=yes
18481 else
18482   echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18484
18485   ac_header_preproc=no
18486 fi
18487 rm -f conftest.err conftest.$ac_ext
18488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18489 echo "${ECHO_T}$ac_header_preproc" >&6
18490
18491 # So?  What about this header?
18492 case $ac_header_compiler:$ac_header_preproc in
18493   yes:no )
18494     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18496     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18498     (
18499       cat <<\_ASBOX
18500 ## ------------------------------------ ##
18501 ## Report this to bug-autoconf@gnu.org. ##
18502 ## ------------------------------------ ##
18503 _ASBOX
18504     ) |
18505       sed "s/^/$as_me: WARNING:     /" >&2
18506     ;;
18507   no:yes )
18508     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18510     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18514     (
18515       cat <<\_ASBOX
18516 ## ------------------------------------ ##
18517 ## Report this to bug-autoconf@gnu.org. ##
18518 ## ------------------------------------ ##
18519 _ASBOX
18520     ) |
18521       sed "s/^/$as_me: WARNING:     /" >&2
18522     ;;
18523 esac
18524 echo "$as_me:$LINENO: checking for $ac_header" >&5
18525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18527   echo $ECHO_N "(cached) $ECHO_C" >&6
18528 else
18529   eval "$as_ac_Header=$ac_header_preproc"
18530 fi
18531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18533
18534 fi
18535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18536   cat >>confdefs.h <<_ACEOF
18537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18538 _ACEOF
18539
18540 fi
18541
18542 done
18543
18544 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18545 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18546 if test "${ac_cv_lib_z_deflate+set}" = set; then
18547   echo $ECHO_N "(cached) $ECHO_C" >&6
18548 else
18549   ac_check_lib_save_LIBS=$LIBS
18550 LIBS="-lz  $LIBS"
18551 cat >conftest.$ac_ext <<_ACEOF
18552 #line $LINENO "configure"
18553 /* confdefs.h.  */
18554 _ACEOF
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h.  */
18558
18559 /* Override any gcc2 internal prototype to avoid an error.  */
18560 #ifdef __cplusplus
18561 extern "C"
18562 #endif
18563 /* We use char because int might match the return type of a gcc2
18564    builtin and then its argument prototype would still apply.  */
18565 char deflate ();
18566 int
18567 main ()
18568 {
18569 deflate ();
18570   ;
18571   return 0;
18572 }
18573 _ACEOF
18574 rm -f conftest.$ac_objext conftest$ac_exeext
18575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18576   (eval $ac_link) 2>&5
18577   ac_status=$?
18578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579   (exit $ac_status); } &&
18580          { ac_try='test -s conftest$ac_exeext'
18581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582   (eval $ac_try) 2>&5
18583   ac_status=$?
18584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585   (exit $ac_status); }; }; then
18586   ac_cv_lib_z_deflate=yes
18587 else
18588   echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18590
18591 ac_cv_lib_z_deflate=no
18592 fi
18593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18594 LIBS=$ac_check_lib_save_LIBS
18595 fi
18596 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18597 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18598 if test $ac_cv_lib_z_deflate = yes; then
18599   FDLIBS="-lz"
18600 fi
18601
18602 have_zlib=no
18603 if test x$FDLIBS = x-lz; then
18604   cat >>confdefs.h <<\_ACEOF
18605 #define HAVE_LIBZ 1
18606 _ACEOF
18607
18608   have_zlib=yes
18609 fi
18610
18611 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18612   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18613 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18614 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18615   echo $ECHO_N "(cached) $ECHO_C" >&6
18616 fi
18617 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18618 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18619 else
18620   # Is the header compilable?
18621 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18622 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18623 cat >conftest.$ac_ext <<_ACEOF
18624 #line $LINENO "configure"
18625 /* confdefs.h.  */
18626 _ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h.  */
18630 $ac_includes_default
18631 #include <sys/acl.h>
18632 _ACEOF
18633 rm -f conftest.$ac_objext
18634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18635   (eval $ac_compile) 2>&5
18636   ac_status=$?
18637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638   (exit $ac_status); } &&
18639          { ac_try='test -s conftest.$ac_objext'
18640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641   (eval $ac_try) 2>&5
18642   ac_status=$?
18643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644   (exit $ac_status); }; }; then
18645   ac_header_compiler=yes
18646 else
18647   echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18649
18650 ac_header_compiler=no
18651 fi
18652 rm -f conftest.$ac_objext conftest.$ac_ext
18653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18654 echo "${ECHO_T}$ac_header_compiler" >&6
18655
18656 # Is the header present?
18657 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18658 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18659 cat >conftest.$ac_ext <<_ACEOF
18660 #line $LINENO "configure"
18661 /* confdefs.h.  */
18662 _ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h.  */
18666 #include <sys/acl.h>
18667 _ACEOF
18668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18669   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18670   ac_status=$?
18671   grep -v '^ *+' conftest.er1 >conftest.err
18672   rm -f conftest.er1
18673   cat conftest.err >&5
18674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); } >/dev/null; then
18676   if test -s conftest.err; then
18677     ac_cpp_err=$ac_c_preproc_warn_flag
18678   else
18679     ac_cpp_err=
18680   fi
18681 else
18682   ac_cpp_err=yes
18683 fi
18684 if test -z "$ac_cpp_err"; then
18685   ac_header_preproc=yes
18686 else
18687   echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.$ac_ext >&5
18689
18690   ac_header_preproc=no
18691 fi
18692 rm -f conftest.err conftest.$ac_ext
18693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18694 echo "${ECHO_T}$ac_header_preproc" >&6
18695
18696 # So?  What about this header?
18697 case $ac_header_compiler:$ac_header_preproc in
18698   yes:no )
18699     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18700 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18701     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18702 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18703     (
18704       cat <<\_ASBOX
18705 ## ------------------------------------ ##
18706 ## Report this to bug-autoconf@gnu.org. ##
18707 ## ------------------------------------ ##
18708 _ASBOX
18709     ) |
18710       sed "s/^/$as_me: WARNING:     /" >&2
18711     ;;
18712   no:yes )
18713     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18714 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18715     { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18716 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18717     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18718 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18719     (
18720       cat <<\_ASBOX
18721 ## ------------------------------------ ##
18722 ## Report this to bug-autoconf@gnu.org. ##
18723 ## ------------------------------------ ##
18724 _ASBOX
18725     ) |
18726       sed "s/^/$as_me: WARNING:     /" >&2
18727     ;;
18728 esac
18729 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18730 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18731 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18732   echo $ECHO_N "(cached) $ECHO_C" >&6
18733 else
18734   ac_cv_header_sys_acl_h=$ac_header_preproc
18735 fi
18736 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18737 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18738
18739 fi
18740
18741
18742 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18743 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18744 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18745   echo $ECHO_N "(cached) $ECHO_C" >&6
18746 else
18747   ac_check_lib_save_LIBS=$LIBS
18748 LIBS="-lacl  $LIBS"
18749 cat >conftest.$ac_ext <<_ACEOF
18750 #line $LINENO "configure"
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756
18757 /* Override any gcc2 internal prototype to avoid an error.  */
18758 #ifdef __cplusplus
18759 extern "C"
18760 #endif
18761 /* We use char because int might match the return type of a gcc2
18762    builtin and then its argument prototype would still apply.  */
18763 char acl_get_file ();
18764 int
18765 main ()
18766 {
18767 acl_get_file ();
18768   ;
18769   return 0;
18770 }
18771 _ACEOF
18772 rm -f conftest.$ac_objext conftest$ac_exeext
18773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18774   (eval $ac_link) 2>&5
18775   ac_status=$?
18776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777   (exit $ac_status); } &&
18778          { ac_try='test -s conftest$ac_exeext'
18779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780   (eval $ac_try) 2>&5
18781   ac_status=$?
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); }; }; then
18784   ac_cv_lib_acl_acl_get_file=yes
18785 else
18786   echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18788
18789 ac_cv_lib_acl_acl_get_file=no
18790 fi
18791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18792 LIBS=$ac_check_lib_save_LIBS
18793 fi
18794 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18795 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18796 if test $ac_cv_lib_acl_acl_get_file = yes; then
18797   FDLIBS="-lacl $FDLIBS"
18798 fi
18799
18800 have_acl=no
18801 if test $ac_cv_lib_acl_acl_get_file = yes; then
18802    cat >>confdefs.h <<\_ACEOF
18803 #define HAVE_ACL 1
18804 _ACEOF
18805
18806    have_acl=yes
18807 fi
18808
18809 PTHREAD_LIB=""
18810 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18811 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18812 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18813   echo $ECHO_N "(cached) $ECHO_C" >&6
18814 else
18815   ac_check_lib_save_LIBS=$LIBS
18816 LIBS="-lpthread  $LIBS"
18817 cat >conftest.$ac_ext <<_ACEOF
18818 #line $LINENO "configure"
18819 /* confdefs.h.  */
18820 _ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h.  */
18824
18825 /* Override any gcc2 internal prototype to avoid an error.  */
18826 #ifdef __cplusplus
18827 extern "C"
18828 #endif
18829 /* We use char because int might match the return type of a gcc2
18830    builtin and then its argument prototype would still apply.  */
18831 char pthread_create ();
18832 int
18833 main ()
18834 {
18835 pthread_create ();
18836   ;
18837   return 0;
18838 }
18839 _ACEOF
18840 rm -f conftest.$ac_objext conftest$ac_exeext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18842   (eval $ac_link) 2>&5
18843   ac_status=$?
18844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845   (exit $ac_status); } &&
18846          { ac_try='test -s conftest$ac_exeext'
18847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848   (eval $ac_try) 2>&5
18849   ac_status=$?
18850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851   (exit $ac_status); }; }; then
18852   ac_cv_lib_pthread_pthread_create=yes
18853 else
18854   echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18856
18857 ac_cv_lib_pthread_pthread_create=no
18858 fi
18859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18860 LIBS=$ac_check_lib_save_LIBS
18861 fi
18862 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18863 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18864 if test $ac_cv_lib_pthread_pthread_create = yes; then
18865   PTHREAD_LIB="-lpthread"
18866 else
18867   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18868 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18869 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18870   echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872   ac_check_lib_save_LIBS=$LIBS
18873 LIBS="-lpthreads  $LIBS"
18874 cat >conftest.$ac_ext <<_ACEOF
18875 #line $LINENO "configure"
18876 /* confdefs.h.  */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h.  */
18881
18882 /* Override any gcc2 internal prototype to avoid an error.  */
18883 #ifdef __cplusplus
18884 extern "C"
18885 #endif
18886 /* We use char because int might match the return type of a gcc2
18887    builtin and then its argument prototype would still apply.  */
18888 char pthread_create ();
18889 int
18890 main ()
18891 {
18892 pthread_create ();
18893   ;
18894   return 0;
18895 }
18896 _ACEOF
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18899   (eval $ac_link) 2>&5
18900   ac_status=$?
18901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902   (exit $ac_status); } &&
18903          { ac_try='test -s conftest$ac_exeext'
18904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905   (eval $ac_try) 2>&5
18906   ac_status=$?
18907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908   (exit $ac_status); }; }; then
18909   ac_cv_lib_pthreads_pthread_create=yes
18910 else
18911   echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18913
18914 ac_cv_lib_pthreads_pthread_create=no
18915 fi
18916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18917 LIBS=$ac_check_lib_save_LIBS
18918 fi
18919 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18920 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18921 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18922   PTHREAD_LIB="-lpthreads"
18923 else
18924   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18925 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18926 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18927   echo $ECHO_N "(cached) $ECHO_C" >&6
18928 else
18929   ac_check_lib_save_LIBS=$LIBS
18930 LIBS="-lc_r  $LIBS"
18931 cat >conftest.$ac_ext <<_ACEOF
18932 #line $LINENO "configure"
18933 /* confdefs.h.  */
18934 _ACEOF
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h.  */
18938
18939 /* Override any gcc2 internal prototype to avoid an error.  */
18940 #ifdef __cplusplus
18941 extern "C"
18942 #endif
18943 /* We use char because int might match the return type of a gcc2
18944    builtin and then its argument prototype would still apply.  */
18945 char pthread_create ();
18946 int
18947 main ()
18948 {
18949 pthread_create ();
18950   ;
18951   return 0;
18952 }
18953 _ACEOF
18954 rm -f conftest.$ac_objext conftest$ac_exeext
18955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18956   (eval $ac_link) 2>&5
18957   ac_status=$?
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); } &&
18960          { ac_try='test -s conftest$ac_exeext'
18961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962   (eval $ac_try) 2>&5
18963   ac_status=$?
18964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965   (exit $ac_status); }; }; then
18966   ac_cv_lib_c_r_pthread_create=yes
18967 else
18968   echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18970
18971 ac_cv_lib_c_r_pthread_create=no
18972 fi
18973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18974 LIBS=$ac_check_lib_save_LIBS
18975 fi
18976 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18977 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18978 if test $ac_cv_lib_c_r_pthread_create = yes; then
18979   PTHREAD_LIB="-lc_r"
18980 else
18981   echo "$as_me:$LINENO: checking for pthread_create" >&5
18982 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18983 if test "${ac_cv_func_pthread_create+set}" = set; then
18984   echo $ECHO_N "(cached) $ECHO_C" >&6
18985 else
18986   cat >conftest.$ac_ext <<_ACEOF
18987 #line $LINENO "configure"
18988 /* confdefs.h.  */
18989 _ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h.  */
18993 /* System header to define __stub macros and hopefully few prototypes,
18994     which can conflict with char pthread_create (); below.
18995     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18996     <limits.h> exists even on freestanding compilers.  */
18997 #ifdef __STDC__
18998 # include <limits.h>
18999 #else
19000 # include <assert.h>
19001 #endif
19002 /* Override any gcc2 internal prototype to avoid an error.  */
19003 #ifdef __cplusplus
19004 extern "C"
19005 {
19006 #endif
19007 /* We use char because int might match the return type of a gcc2
19008    builtin and then its argument prototype would still apply.  */
19009 char pthread_create ();
19010 /* The GNU C library defines this for functions which it implements
19011     to always fail with ENOSYS.  Some functions are actually named
19012     something starting with __ and the normal name is an alias.  */
19013 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
19014 choke me
19015 #else
19016 char (*f) () = pthread_create;
19017 #endif
19018 #ifdef __cplusplus
19019 }
19020 #endif
19021
19022 int
19023 main ()
19024 {
19025 return f != pthread_create;
19026   ;
19027   return 0;
19028 }
19029 _ACEOF
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19032   (eval $ac_link) 2>&5
19033   ac_status=$?
19034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035   (exit $ac_status); } &&
19036          { ac_try='test -s conftest$ac_exeext'
19037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038   (eval $ac_try) 2>&5
19039   ac_status=$?
19040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041   (exit $ac_status); }; }; then
19042   ac_cv_func_pthread_create=yes
19043 else
19044   echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19046
19047 ac_cv_func_pthread_create=no
19048 fi
19049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19050 fi
19051 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
19052 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
19053
19054
19055 fi
19056
19057
19058 fi
19059
19060
19061 fi
19062
19063
19064
19065 cat >>confdefs.h <<\_ACEOF
19066 #define FDLIBS 1
19067 _ACEOF
19068
19069
19070
19071 CFLAGS=${CFLAGS--O}
19072 LDFLAGS=${LDFLAGS--O}
19073 DB_LIBS="${SQL_LFLAGS}"
19074
19075 CPPFLAGS="$CPPFLAGS"
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090 OBJLIST=
19091
19092
19093 lld="lld"
19094 llu="llu"
19095
19096 WCFLAGS=
19097 WLDFLAGS=
19098
19099 #
19100 # Finally we set appropriate distribution specific
19101 #  variables and defaults
19102 #
19103 # PFILES are platform specific files
19104 PFILES="platforms/Makefile"
19105 PSCMD="ps -e"
19106 WIN32=
19107 MACOSX=
19108 hostname=`uname -n | cut -d '.' -f 1`
19109 case "$DISTNAME" in
19110 aix)
19111         DISTVER=`uname -r`
19112         PSCMD="ps -e -o pid,comm"
19113         PFILES="${PFILES} \
19114            platforms/aix/Makefile"
19115         TAPEDRIVE="/dev/rmt0.1"
19116   ;;
19117 alpha)
19118         DISTVER=`uname -r`
19119         PTHREAD_LIB="-lpthread -lexc"
19120         if test "${CC}" = "gcc" ; then
19121            lld="lld"
19122            llu="llu"
19123         else
19124            lld="ld"
19125            llu="lu"
19126         fi
19127         TAPEDRIVE="/dev/nrmt0"
19128   ;;
19129 bsdi)
19130         DISTVER=`uname -a |awk '{print $3}'`
19131         TAPEDRIVE="/dev/nrmt0"
19132         PTHREAD_LIB="-pthread"
19133         CFLAGS="${CFLAGS} -pthread"
19134         PSCMD="ps -x -o pid,command"
19135         lld="qd"
19136         llu="qu"
19137         PFILES="${PFILES} \
19138             platforms/bsdi/Makefile \
19139             platforms/bsdi/bacula-fd \
19140             platforms/bsdi/bacula-sd \
19141             platforms/bsdi/bacula-dir"
19142         largefile_support="yes"
19143   ;;
19144 cygwin)
19145         DISTVER=`uname -a |awk '{print $3}'`
19146         TAPEDRIVE="/dev/nrst0"
19147         WIN32=win32
19148         WCFLAGS="-mwindows"
19149         WLDFLAGS="-mwindows"
19150   ;;
19151 darwin)
19152         DISTVER=`uname -r`
19153         TAPEDRIVE="/dev/nst0"
19154         PSCMD="ps -e -o pid,command"
19155         MACOSX=macosx
19156         PFILES="${PFILES} \
19157            platforms/darwin/Makefile"
19158   ;;
19159 debian)
19160         DISTVER=`cat /etc/debian_version`
19161         TAPEDRIVE="/dev/nrst0"
19162         PSCMD="ps -e -o pid,command"
19163   ;;
19164 freebsd)
19165         DISTVER=`uname -a |awk '{print $3}'`
19166         VER=`echo $DISTVER | cut -c 1`
19167         if test x$VER = x4 ; then
19168            PTHREAD_LIB="-pthread"
19169            CFLAGS="${CFLAGS} -pthread"
19170         fi
19171         lld="qd"
19172         llu="qu"
19173         TAPEDRIVE="/dev/nrsa0"
19174         PSCMD="ps -x -o pid,command"
19175         PFILES="${PFILES} \
19176             platforms/freebsd/Makefile \
19177             platforms/freebsd/bacula-fd \
19178             platforms/freebsd/bacula-sd \
19179             platforms/freebsd/bacula-dir"
19180         largefile_support="yes"
19181   ;;
19182 hpux)
19183         PSCMD="UNIX95=1 ps -e -o pid,comm"
19184         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
19185         DISTVER=`uname -r`
19186         TAPEDRIVE="/dev/rmt/0hnb"
19187   ;;
19188 irix)
19189         DISTVER=`uname -r`
19190         TAPEDRIVE="/dev/rmt/0cbn"
19191         PSCMD="ps -e -o pid,comm"
19192         PFILES="${PFILES} \
19193             platforms/irix/Makefile \
19194             platforms/irix/bacula-fd \
19195             platforms/irix/bacula-sd \
19196             platforms/irix/bacula-dir"
19197   ;;
19198 netbsd)
19199         DISTVER=`uname -a |awk '{print $3}'`
19200         lld="qd"
19201         llu="qu"
19202         TAPEDRIVE="/dev/nrst0"
19203         PSCMD="ps -a -o pid,command"
19204         PTHREAD_LIB="-pthread"
19205         CFLAGS="${CFLAGS} -pthread"
19206   ;;
19207 openbsd)
19208         DISTVER=`uname -a |awk '{print $3}'`
19209         lld="qd"
19210         llu="qu"
19211         TAPEDRIVE="/dev/nrst0"
19212         PSCMD="ps -ax -o pid,command"
19213         PTHREAD_LIB="-pthread"
19214         CFLAGS="${CFLAGS} -pthread"
19215         PFILES="${PFILES} \
19216             platforms/openbsd/Makefile \
19217             platforms/openbsd/bacula-fd \
19218             platforms/openbsd/bacula-sd \
19219             platforms/openbsd/bacula-dir"
19220   ;;
19221 redhat)
19222         if test -f /etc/whitebox-release ; then
19223            f=/etc/whitebox-release
19224         else
19225            f=/etc/redhat-release
19226         fi
19227         if test `cat $f | grep release |\
19228                    cut -f 3 -d ' '`x = "Enterprise"x ; then
19229            DISTVER="Enterprise "`cat $f | grep release |\
19230                     cut -f 6 -d ' '`
19231         else
19232             DISTVER=`cat /etc/redhat-release | grep release |\
19233                      cut -f 5 -d ' '`
19234         fi
19235         TAPEDRIVE="/dev/nst0"
19236         PSCMD="ps -e -o pid,command"
19237         PFILES="${PFILES} \
19238             platforms/redhat/Makefile \
19239             platforms/redhat/bacula-fd \
19240             platforms/redhat/bacula-sd \
19241             platforms/redhat/bacula-dir \
19242             platforms/redhat/bacula.spec \
19243             "
19244         hostname=`hostname -s`
19245   ;;
19246 mandrake)
19247         DISTVER=`cat /etc/mandrake-release | grep release |\
19248            cut -f 5 -d ' '`
19249         TAPEDRIVE="/dev/nst0"
19250         PSCMD="ps -e -o pid,command"
19251         PFILES="${PFILES} \
19252             platforms/mandrake/Makefile \
19253             platforms/mandrake/bacula-fd \
19254             platforms/mandrake/bacula-sd \
19255             platforms/mandrake/bacula-dir \
19256             platforms/mandrake/bacula.spec \
19257             "
19258   ;;
19259 gentoo)
19260         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19261         TAPEDRIVE="/dev/nst0"
19262         PSCMD="ps -e -o pid,command"
19263         PFILES="${PFILES} \
19264             platforms/gentoo/Makefile \
19265          platforms/gentoo/bacula-init \
19266             platforms/gentoo/bacula-fd \
19267             platforms/gentoo/bacula-sd \
19268             platforms/gentoo/bacula-dir"
19269   ;;
19270 slackware)
19271         DISTVER=`cat /etc/slackware-version`
19272         TAPEDRIVE="/dev/nst0"
19273         PSCMD="ps -e -o pid,command"
19274         PFILES="${PFILES} \
19275             platforms/slackware/Makefile \
19276             platforms/slackware/rc.bacula-fd \
19277             platforms/slackware/rc.bacula-sd \
19278             platforms/slackware/rc.bacula-dir\
19279             platforms/slackware/functions.bacula"
19280   ;;
19281 solaris)
19282         DISTVER=`uname -r`
19283         TAPEDRIVE="/dev/rmt/0cbn"
19284         PSCMD="ps -e -o pid,comm"
19285         PFILES="${PFILES} \
19286             platforms/solaris/Makefile \
19287             platforms/solaris/bacula-fd \
19288             platforms/solaris/bacula-sd \
19289             platforms/solaris/bacula-dir"
19290         if test x$DISTVER = x5.6 ; then
19291             cat >>confdefs.h <<\_ACEOF
19292 #define HAVE_OLD_SOCKOPT 1
19293 _ACEOF
19294
19295         fi
19296   ;;
19297 suse)
19298         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19299             cut -f 3 -d ' '`
19300         TAPEDRIVE="/dev/nst0"
19301         PSCMD="ps -e -o pid,command"
19302         PFILES="${PFILES} \
19303             platforms/suse/Makefile \
19304             platforms/suse/bacula-fd \
19305             platforms/suse/bacula-sd \
19306             platforms/suse/bacula-dir \
19307             platforms/suse/bacula \
19308             platforms/suse/bacula.spec"
19309   ;;
19310 suse5)
19311         DISTNAME=suse
19312         DISTVER=5.x
19313         TAPEDRIVE="/dev/nst0"
19314         PSCMD="ps -e -o pid,command"
19315         PFILES="${PFILES} \
19316             platforms/suse/Makefile \
19317             platforms/suse/bacula-fd \
19318             platforms/suse/bacula-sd \
19319             platforms/suse/bacula-dir"
19320   ;;
19321 unknown)
19322         DISTVER=unknown
19323         TAPEDRIVE="/dev/nst0"
19324   ;;
19325 *)
19326   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19327   ;;
19328 esac
19329
19330
19331
19332 LIBS="$PTHREAD_LIB $LIBS"
19333
19334 cat >>confdefs.h <<_ACEOF
19335 #define lld "$lld"
19336 _ACEOF
19337
19338 cat >>confdefs.h <<_ACEOF
19339 #define llu "$llu"
19340 _ACEOF
19341
19342
19343
19344
19345
19346
19347
19348
19349 MCOMMON=./autoconf/Make.common
19350
19351
19352 if test "x${subsysdir}" = "x${sbindir}" ; then
19353    echo " "
19354    echo " "
19355    echo "You have set both --sbindir and --with-subsys-dir"
19356    echo "  equal to: ${subsysdir} "
19357    echo "This is not permitted. Please reconfigure."
19358    echo " "
19359    echo "Aborting configuration ..."
19360    echo " "
19361    echo " "
19362    exit 1
19363 fi
19364
19365                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 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"
19366           ac_config_commands="$ac_config_commands default"
19367 cat >confcache <<\_ACEOF
19368 # This file is a shell script that caches the results of configure
19369 # tests run on this system so they can be shared between configure
19370 # scripts and configure runs, see configure's option --config-cache.
19371 # It is not useful on other systems.  If it contains results you don't
19372 # want to keep, you may remove or edit it.
19373 #
19374 # config.status only pays attention to the cache file if you give it
19375 # the --recheck option to rerun configure.
19376 #
19377 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19378 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19379 # following values.
19380
19381 _ACEOF
19382
19383 # The following way of writing the cache mishandles newlines in values,
19384 # but we know of no workaround that is simple, portable, and efficient.
19385 # So, don't put newlines in cache variables' values.
19386 # Ultrix sh set writes to stderr and can't be redirected directly,
19387 # and sets the high bit in the cache file unless we assign to the vars.
19388 {
19389   (set) 2>&1 |
19390     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19391     *ac_space=\ *)
19392       # `set' does not quote correctly, so add quotes (double-quote
19393       # substitution turns \\\\ into \\, and sed turns \\ into \).
19394       sed -n \
19395         "s/'/'\\\\''/g;
19396           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19397       ;;
19398     *)
19399       # `set' quotes correctly as required by POSIX, so do not add quotes.
19400       sed -n \
19401         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19402       ;;
19403     esac;
19404 } |
19405   sed '
19406      t clear
19407      : clear
19408      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19409      t end
19410      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19411      : end' >>confcache
19412 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19413   if test -w $cache_file; then
19414     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19415     cat confcache >$cache_file
19416   else
19417     echo "not updating unwritable cache $cache_file"
19418   fi
19419 fi
19420 rm -f confcache
19421
19422 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19423 # Let make expand exec_prefix.
19424 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19425
19426 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19427 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19428 # trailing colons and then remove the whole line if VPATH becomes empty
19429 # (actually we leave an empty line to preserve line numbers).
19430 if test "x$srcdir" = x.; then
19431   ac_vpsub='/^[         ]*VPATH[        ]*=/{
19432 s/:*\$(srcdir):*/:/;
19433 s/:*\${srcdir}:*/:/;
19434 s/:*@srcdir@:*/:/;
19435 s/^\([^=]*=[    ]*\):*/\1/;
19436 s/:*$//;
19437 s/^[^=]*=[      ]*$//;
19438 }'
19439 fi
19440
19441 DEFS=-DHAVE_CONFIG_H
19442
19443 ac_libobjs=
19444 ac_ltlibobjs=
19445 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19446   # 1. Remove the extension, and $U if already installed.
19447   ac_i=`echo "$ac_i" |
19448          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19449   # 2. Add them.
19450   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19451   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19452 done
19453 LIBOBJS=$ac_libobjs
19454
19455 LTLIBOBJS=$ac_ltlibobjs
19456
19457
19458
19459 : ${CONFIG_STATUS=./config.status}
19460 ac_clean_files_save=$ac_clean_files
19461 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19462 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19463 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19464 cat >$CONFIG_STATUS <<_ACEOF
19465 #! $SHELL
19466 # Generated by $as_me.
19467 # Run this file to recreate the current configuration.
19468 # Compiler output produced by configure, useful for debugging
19469 # configure, is in config.log if it exists.
19470
19471 debug=false
19472 ac_cs_recheck=false
19473 ac_cs_silent=false
19474 SHELL=\${CONFIG_SHELL-$SHELL}
19475 _ACEOF
19476
19477 cat >>$CONFIG_STATUS <<\_ACEOF
19478 ## --------------------- ##
19479 ## M4sh Initialization.  ##
19480 ## --------------------- ##
19481
19482 # Be Bourne compatible
19483 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19484   emulate sh
19485   NULLCMD=:
19486   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19487   # is contrary to our usage.  Disable this feature.
19488   alias -g '${1+"$@"}'='"$@"'
19489 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19490   set -o posix
19491 fi
19492
19493 # Support unset when possible.
19494 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19495   as_unset=unset
19496 else
19497   as_unset=false
19498 fi
19499
19500
19501 # Work around bugs in pre-3.0 UWIN ksh.
19502 $as_unset ENV MAIL MAILPATH
19503 PS1='$ '
19504 PS2='> '
19505 PS4='+ '
19506
19507 # NLS nuisances.
19508 for as_var in \
19509   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19510   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19511   LC_TELEPHONE LC_TIME
19512 do
19513   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19514     eval $as_var=C; export $as_var
19515   else
19516     $as_unset $as_var
19517   fi
19518 done
19519
19520 # Required to use basename.
19521 if expr a : '\(a\)' >/dev/null 2>&1; then
19522   as_expr=expr
19523 else
19524   as_expr=false
19525 fi
19526
19527 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19528   as_basename=basename
19529 else
19530   as_basename=false
19531 fi
19532
19533
19534 # Name of the executable.
19535 as_me=`$as_basename "$0" ||
19536 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19537          X"$0" : 'X\(//\)$' \| \
19538          X"$0" : 'X\(/\)$' \| \
19539          .     : '\(.\)' 2>/dev/null ||
19540 echo X/"$0" |
19541     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19542           /^X\/\(\/\/\)$/{ s//\1/; q; }
19543           /^X\/\(\/\).*/{ s//\1/; q; }
19544           s/.*/./; q'`
19545
19546
19547 # PATH needs CR, and LINENO needs CR and PATH.
19548 # Avoid depending upon Character Ranges.
19549 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19550 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19551 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19552 as_cr_digits='0123456789'
19553 as_cr_alnum=$as_cr_Letters$as_cr_digits
19554
19555 # The user is always right.
19556 if test "${PATH_SEPARATOR+set}" != set; then
19557   echo "#! /bin/sh" >conf$$.sh
19558   echo  "exit 0"   >>conf$$.sh
19559   chmod +x conf$$.sh
19560   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19561     PATH_SEPARATOR=';'
19562   else
19563     PATH_SEPARATOR=:
19564   fi
19565   rm -f conf$$.sh
19566 fi
19567
19568
19569   as_lineno_1=$LINENO
19570   as_lineno_2=$LINENO
19571   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19572   test "x$as_lineno_1" != "x$as_lineno_2" &&
19573   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19574   # Find who we are.  Look in the path if we contain no path at all
19575   # relative or not.
19576   case $0 in
19577     *[\\/]* ) as_myself=$0 ;;
19578     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19579 for as_dir in $PATH
19580 do
19581   IFS=$as_save_IFS
19582   test -z "$as_dir" && as_dir=.
19583   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19584 done
19585
19586        ;;
19587   esac
19588   # We did not find ourselves, most probably we were run as `sh COMMAND'
19589   # in which case we are not to be found in the path.
19590   if test "x$as_myself" = x; then
19591     as_myself=$0
19592   fi
19593   if test ! -f "$as_myself"; then
19594     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19595 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19596    { (exit 1); exit 1; }; }
19597   fi
19598   case $CONFIG_SHELL in
19599   '')
19600     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19601 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19602 do
19603   IFS=$as_save_IFS
19604   test -z "$as_dir" && as_dir=.
19605   for as_base in sh bash ksh sh5; do
19606          case $as_dir in
19607          /*)
19608            if ("$as_dir/$as_base" -c '
19609   as_lineno_1=$LINENO
19610   as_lineno_2=$LINENO
19611   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19612   test "x$as_lineno_1" != "x$as_lineno_2" &&
19613   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19614              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19615              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19616              CONFIG_SHELL=$as_dir/$as_base
19617              export CONFIG_SHELL
19618              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19619            fi;;
19620          esac
19621        done
19622 done
19623 ;;
19624   esac
19625
19626   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19627   # uniformly replaced by the line number.  The first 'sed' inserts a
19628   # line-number line before each line; the second 'sed' does the real
19629   # work.  The second script uses 'N' to pair each line-number line
19630   # with the numbered line, and appends trailing '-' during
19631   # substitution so that $LINENO is not a special case at line end.
19632   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19633   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19634   sed '=' <$as_myself |
19635     sed '
19636       N
19637       s,$,-,
19638       : loop
19639       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19640       t loop
19641       s,-$,,
19642       s,^['$as_cr_digits']*\n,,
19643     ' >$as_me.lineno &&
19644   chmod +x $as_me.lineno ||
19645     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19646 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19647    { (exit 1); exit 1; }; }
19648
19649   # Don't try to exec as it changes $[0], causing all sort of problems
19650   # (the dirname of $[0] is not the place where we might find the
19651   # original and so on.  Autoconf is especially sensible to this).
19652   . ./$as_me.lineno
19653   # Exit status is that of the last command.
19654   exit
19655 }
19656
19657
19658 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19659   *c*,-n*) ECHO_N= ECHO_C='
19660 ' ECHO_T='      ' ;;
19661   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19662   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19663 esac
19664
19665 if expr a : '\(a\)' >/dev/null 2>&1; then
19666   as_expr=expr
19667 else
19668   as_expr=false
19669 fi
19670
19671 rm -f conf$$ conf$$.exe conf$$.file
19672 echo >conf$$.file
19673 if ln -s conf$$.file conf$$ 2>/dev/null; then
19674   # We could just check for DJGPP; but this test a) works b) is more generic
19675   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19676   if test -f conf$$.exe; then
19677     # Don't use ln at all; we don't have any links
19678     as_ln_s='cp -p'
19679   else
19680     as_ln_s='ln -s'
19681   fi
19682 elif ln conf$$.file conf$$ 2>/dev/null; then
19683   as_ln_s=ln
19684 else
19685   as_ln_s='cp -p'
19686 fi
19687 rm -f conf$$ conf$$.exe conf$$.file
19688
19689 if mkdir -p . 2>/dev/null; then
19690   as_mkdir_p=:
19691 else
19692   as_mkdir_p=false
19693 fi
19694
19695 as_executable_p="test -f"
19696
19697 # Sed expression to map a string onto a valid CPP name.
19698 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19699
19700 # Sed expression to map a string onto a valid variable name.
19701 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19702
19703
19704 # IFS
19705 # We need space, tab and new line, in precisely that order.
19706 as_nl='
19707 '
19708 IFS="   $as_nl"
19709
19710 # CDPATH.
19711 $as_unset CDPATH
19712
19713 exec 6>&1
19714
19715 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19716 # report actual input values of CONFIG_FILES etc. instead of their
19717 # values after options handling.  Logging --version etc. is OK.
19718 exec 5>>config.log
19719 {
19720   echo
19721   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19722 ## Running $as_me. ##
19723 _ASBOX
19724 } >&5
19725 cat >&5 <<_CSEOF
19726
19727 This file was extended by $as_me, which was
19728 generated by GNU Autoconf 2.57.  Invocation command line was
19729
19730   CONFIG_FILES    = $CONFIG_FILES
19731   CONFIG_HEADERS  = $CONFIG_HEADERS
19732   CONFIG_LINKS    = $CONFIG_LINKS
19733   CONFIG_COMMANDS = $CONFIG_COMMANDS
19734   $ $0 $@
19735
19736 _CSEOF
19737 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19738 echo >&5
19739 _ACEOF
19740
19741 # Files that config.status was made for.
19742 if test -n "$ac_config_files"; then
19743   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19744 fi
19745
19746 if test -n "$ac_config_headers"; then
19747   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19748 fi
19749
19750 if test -n "$ac_config_links"; then
19751   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19752 fi
19753
19754 if test -n "$ac_config_commands"; then
19755   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19756 fi
19757
19758 cat >>$CONFIG_STATUS <<\_ACEOF
19759
19760 ac_cs_usage="\
19761 \`$as_me' instantiates files from templates according to the
19762 current configuration.
19763
19764 Usage: $0 [OPTIONS] [FILE]...
19765
19766   -h, --help       print this help, then exit
19767   -V, --version    print version number, then exit
19768   -q, --quiet      do not print progress messages
19769   -d, --debug      don't remove temporary files
19770       --recheck    update $as_me by reconfiguring in the same conditions
19771   --file=FILE[:TEMPLATE]
19772                    instantiate the configuration file FILE
19773   --header=FILE[:TEMPLATE]
19774                    instantiate the configuration header FILE
19775
19776 Configuration files:
19777 $config_files
19778
19779 Configuration headers:
19780 $config_headers
19781
19782 Configuration commands:
19783 $config_commands
19784
19785 Report bugs to <bug-autoconf@gnu.org>."
19786 _ACEOF
19787
19788 cat >>$CONFIG_STATUS <<_ACEOF
19789 ac_cs_version="\\
19790 config.status
19791 configured by $0, generated by GNU Autoconf 2.57,
19792   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19793
19794 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19795 Free Software Foundation, Inc.
19796 This config.status script is free software; the Free Software Foundation
19797 gives unlimited permission to copy, distribute and modify it."
19798 srcdir=$srcdir
19799 INSTALL="$INSTALL"
19800 _ACEOF
19801
19802 cat >>$CONFIG_STATUS <<\_ACEOF
19803 # If no file are specified by the user, then we need to provide default
19804 # value.  By we need to know if files were specified by the user.
19805 ac_need_defaults=:
19806 while test $# != 0
19807 do
19808   case $1 in
19809   --*=*)
19810     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19811     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19812     ac_shift=:
19813     ;;
19814   -*)
19815     ac_option=$1
19816     ac_optarg=$2
19817     ac_shift=shift
19818     ;;
19819   *) # This is not an option, so the user has probably given explicit
19820      # arguments.
19821      ac_option=$1
19822      ac_need_defaults=false;;
19823   esac
19824
19825   case $ac_option in
19826   # Handling of the options.
19827 _ACEOF
19828 cat >>$CONFIG_STATUS <<\_ACEOF
19829   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19830     ac_cs_recheck=: ;;
19831   --version | --vers* | -V )
19832     echo "$ac_cs_version"; exit 0 ;;
19833   --he | --h)
19834     # Conflict between --help and --header
19835     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19836 Try \`$0 --help' for more information." >&5
19837 echo "$as_me: error: ambiguous option: $1
19838 Try \`$0 --help' for more information." >&2;}
19839    { (exit 1); exit 1; }; };;
19840   --help | --hel | -h )
19841     echo "$ac_cs_usage"; exit 0 ;;
19842   --debug | --d* | -d )
19843     debug=: ;;
19844   --file | --fil | --fi | --f )
19845     $ac_shift
19846     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19847     ac_need_defaults=false;;
19848   --header | --heade | --head | --hea )
19849     $ac_shift
19850     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19851     ac_need_defaults=false;;
19852   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19853   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19854     ac_cs_silent=: ;;
19855
19856   # This is an error.
19857   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19858 Try \`$0 --help' for more information." >&5
19859 echo "$as_me: error: unrecognized option: $1
19860 Try \`$0 --help' for more information." >&2;}
19861    { (exit 1); exit 1; }; } ;;
19862
19863   *) ac_config_targets="$ac_config_targets $1" ;;
19864
19865   esac
19866   shift
19867 done
19868
19869 ac_configure_extra_args=
19870
19871 if $ac_cs_silent; then
19872   exec 6>/dev/null
19873   ac_configure_extra_args="$ac_configure_extra_args --silent"
19874 fi
19875
19876 _ACEOF
19877 cat >>$CONFIG_STATUS <<_ACEOF
19878 if \$ac_cs_recheck; then
19879   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19880   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19881 fi
19882
19883 _ACEOF
19884
19885
19886
19887
19888
19889 cat >>$CONFIG_STATUS <<\_ACEOF
19890 for ac_config_target in $ac_config_targets
19891 do
19892   case "$ac_config_target" in
19893   # Handling of arguments.
19894   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19895   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19896   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19897   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19898   "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19899   "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19900   "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
19901   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19902   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19903   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19904   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19905   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19906   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19907   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19908   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19909   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19910   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19911   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19912   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19913   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19914   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19915   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19916   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19917   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19918   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19919   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19920   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19921   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19922   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
19923   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19924   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19925   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19926   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19927   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19928   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19929   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19930   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19931   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19932   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19933   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19934   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19935   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19936   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19937   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19938   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19939   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19940   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19941   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19942   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19943   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19944   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19945   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19946   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19947   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19948   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19949   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19950   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19951   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19952   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19953   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19954   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19955   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19956   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19957   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19958   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19959   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19960   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19961   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19962   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19963   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19964   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19965   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19966   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19967   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19968   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19969   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19970   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19971   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19972   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19973   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19974   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19975   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19976   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19977   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19978   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19979   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19980   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19981   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19982   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19983   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19984   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19985   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19986   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
19987   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
19988   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
19989   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19990   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19991   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19992   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19993 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19994    { (exit 1); exit 1; }; };;
19995   esac
19996 done
19997
19998 # If the user did not use the arguments to specify the items to instantiate,
19999 # then the envvar interface is used.  Set only those that are not.
20000 # We use the long form for the default assignment because of an extremely
20001 # bizarre bug on SunOS 4.1.3.
20002 if $ac_need_defaults; then
20003   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20004   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20005   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20006 fi
20007
20008 # Have a temporary directory for convenience.  Make it in the build tree
20009 # simply because there is no reason to put it here, and in addition,
20010 # creating and moving files from /tmp can sometimes cause problems.
20011 # Create a temporary directory, and hook for its removal unless debugging.
20012 $debug ||
20013 {
20014   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20015   trap '{ (exit 1); exit 1; }' 1 2 13 15
20016 }
20017
20018 # Create a (secure) tmp directory for tmp files.
20019
20020 {
20021   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20022   test -n "$tmp" && test -d "$tmp"
20023 }  ||
20024 {
20025   tmp=./confstat$$-$RANDOM
20026   (umask 077 && mkdir $tmp)
20027 } ||
20028 {
20029    echo "$me: cannot create a temporary directory in ." >&2
20030    { (exit 1); exit 1; }
20031 }
20032
20033 _ACEOF
20034
20035 cat >>$CONFIG_STATUS <<_ACEOF
20036
20037 #
20038 # CONFIG_FILES section.
20039 #
20040
20041 # No need to generate the scripts if there are no CONFIG_FILES.
20042 # This happens for instance when ./config.status config.h
20043 if test -n "\$CONFIG_FILES"; then
20044   # Protect against being on the right side of a sed subst in config.status.
20045   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20046    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20047 s,@SHELL@,$SHELL,;t t
20048 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20049 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20050 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20051 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20052 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20053 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20054 s,@exec_prefix@,$exec_prefix,;t t
20055 s,@prefix@,$prefix,;t t
20056 s,@program_transform_name@,$program_transform_name,;t t
20057 s,@bindir@,$bindir,;t t
20058 s,@sbindir@,$sbindir,;t t
20059 s,@libexecdir@,$libexecdir,;t t
20060 s,@datadir@,$datadir,;t t
20061 s,@sysconfdir@,$sysconfdir,;t t
20062 s,@sharedstatedir@,$sharedstatedir,;t t
20063 s,@localstatedir@,$localstatedir,;t t
20064 s,@libdir@,$libdir,;t t
20065 s,@includedir@,$includedir,;t t
20066 s,@oldincludedir@,$oldincludedir,;t t
20067 s,@infodir@,$infodir,;t t
20068 s,@mandir@,$mandir,;t t
20069 s,@build_alias@,$build_alias,;t t
20070 s,@host_alias@,$host_alias,;t t
20071 s,@target_alias@,$target_alias,;t t
20072 s,@DEFS@,$DEFS,;t t
20073 s,@ECHO_C@,$ECHO_C,;t t
20074 s,@ECHO_N@,$ECHO_N,;t t
20075 s,@ECHO_T@,$ECHO_T,;t t
20076 s,@LIBS@,$LIBS,;t t
20077 s,@BUILD_DIR@,$BUILD_DIR,;t t
20078 s,@TRUEPRG@,$TRUEPRG,;t t
20079 s,@FALSEPRG@,$FALSEPRG,;t t
20080 s,@VERSION@,$VERSION,;t t
20081 s,@DATE@,$DATE,;t t
20082 s,@LSMDATE@,$LSMDATE,;t t
20083 s,@CC@,$CC,;t t
20084 s,@CFLAGS@,$CFLAGS,;t t
20085 s,@LDFLAGS@,$LDFLAGS,;t t
20086 s,@CPPFLAGS@,$CPPFLAGS,;t t
20087 s,@ac_ct_CC@,$ac_ct_CC,;t t
20088 s,@EXEEXT@,$EXEEXT,;t t
20089 s,@OBJEXT@,$OBJEXT,;t t
20090 s,@CXX@,$CXX,;t t
20091 s,@CXXFLAGS@,$CXXFLAGS,;t t
20092 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20093 s,@CPP@,$CPP,;t t
20094 s,@EGREP@,$EGREP,;t t
20095 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20096 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20097 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20098 s,@RANLIB@,$RANLIB,;t t
20099 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20100 s,@MV@,$MV,;t t
20101 s,@RM@,$RM,;t t
20102 s,@CP@,$CP,;t t
20103 s,@SED@,$SED,;t t
20104 s,@AWK@,$AWK,;t t
20105 s,@ECHO@,$ECHO,;t t
20106 s,@CMP@,$CMP,;t t
20107 s,@TBL@,$TBL,;t t
20108 s,@AR@,$AR,;t t
20109 s,@OPENSSL@,$OPENSSL,;t t
20110 s,@MTX@,$MTX,;t t
20111 s,@PKGCONFIG@,$PKGCONFIG,;t t
20112 s,@WXCONFIG@,$WXCONFIG,;t t
20113 s,@CDRECORD@,$CDRECORD,;t t
20114 s,@ARFLAGS@,$ARFLAGS,;t t
20115 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
20116 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
20117 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
20118 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
20119 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
20120 s,@build@,$build,;t t
20121 s,@build_cpu@,$build_cpu,;t t
20122 s,@build_vendor@,$build_vendor,;t t
20123 s,@build_os@,$build_os,;t t
20124 s,@host@,$host,;t t
20125 s,@host_cpu@,$host_cpu,;t t
20126 s,@host_vendor@,$host_vendor,;t t
20127 s,@host_os@,$host_os,;t t
20128 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
20129 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
20130 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
20131 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
20132 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
20133 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
20134 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
20135 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
20136 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
20137 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
20138 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
20139 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
20140 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
20141 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
20142 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
20143 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
20144 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
20145 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
20146 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
20147 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
20148 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
20149 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
20150 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
20151 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
20152 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
20153 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
20154 s,@MSGFMT@,$MSGFMT,;t t
20155 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
20156 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
20157 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
20158 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
20159 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
20160 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
20161 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
20162 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
20163 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
20164 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
20165 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
20166 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
20167 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
20168 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
20169 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
20170 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
20171 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
20172 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
20173 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
20174 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
20175 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
20176 s,@GNOME_DIR@,$GNOME_DIR,;t t
20177 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
20178 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
20179 s,@WX_DIR@,$WX_DIR,;t t
20180 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
20181 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
20182 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
20183 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
20184 s,@STATIC_FD@,$STATIC_FD,;t t
20185 s,@STATIC_SD@,$STATIC_SD,;t t
20186 s,@STATIC_DIR@,$STATIC_DIR,;t t
20187 s,@STATIC_CONS@,$STATIC_CONS,;t t
20188 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
20189 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
20190 s,@ALL_DIRS@,$ALL_DIRS,;t t
20191 s,@CONS_INC@,$CONS_INC,;t t
20192 s,@CONS_OBJ@,$CONS_OBJ,;t t
20193 s,@CONS_SRC@,$CONS_SRC,;t t
20194 s,@CONS_LIBS@,$CONS_LIBS,;t t
20195 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
20196 s,@READLINE_SRC@,$READLINE_SRC,;t t
20197 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
20198 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
20199 s,@CDSTL@,$CDSTL,;t t
20200 s,@working_dir@,$working_dir,;t t
20201 s,@scriptdir@,$scriptdir,;t t
20202 s,@dump_email@,$dump_email,;t t
20203 s,@job_email@,$job_email,;t t
20204 s,@smtp_host@,$smtp_host,;t t
20205 s,@piddir@,$piddir,;t t
20206 s,@subsysdir@,$subsysdir,;t t
20207 s,@baseport@,$baseport,;t t
20208 s,@dir_port@,$dir_port,;t t
20209 s,@fd_port@,$fd_port,;t t
20210 s,@sd_port@,$sd_port,;t t
20211 s,@dir_password@,$dir_password,;t t
20212 s,@fd_password@,$fd_password,;t t
20213 s,@sd_password@,$sd_password,;t t
20214 s,@mon_dir_password@,$mon_dir_password,;t t
20215 s,@mon_fd_password@,$mon_fd_password,;t t
20216 s,@mon_sd_password@,$mon_sd_password,;t t
20217 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
20218 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
20219 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
20220 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
20221 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
20222 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
20223 s,@dir_user@,$dir_user,;t t
20224 s,@dir_group@,$dir_group,;t t
20225 s,@sd_user@,$sd_user,;t t
20226 s,@sd_group@,$sd_group,;t t
20227 s,@fd_user@,$fd_user,;t t
20228 s,@fd_group@,$fd_group,;t t
20229 s,@SBINPERM@,$SBINPERM,;t t
20230 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
20231 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
20232 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
20233 s,@cats@,$cats,;t t
20234 s,@DB_NAME@,$DB_NAME,;t t
20235 s,@GETCONF@,$GETCONF,;t t
20236 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20237 s,@X_CFLAGS@,$X_CFLAGS,;t t
20238 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20239 s,@X_LIBS@,$X_LIBS,;t t
20240 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20241 s,@LIBOBJS@,$LIBOBJS,;t t
20242 s,@ALLOCA@,$ALLOCA,;t t
20243 s,@FDLIBS@,$FDLIBS,;t t
20244 s,@DEBUG@,$DEBUG,;t t
20245 s,@DINCLUDE@,$DINCLUDE,;t t
20246 s,@DLIB@,$DLIB,;t t
20247 s,@DB_LIBS@,$DB_LIBS,;t t
20248 s,@WCFLAGS@,$WCFLAGS,;t t
20249 s,@WLDFLAGS@,$WLDFLAGS,;t t
20250 s,@OBJLIST@,$OBJLIST,;t t
20251 s,@hostname@,$hostname,;t t
20252 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20253 s,@PSCMD@,$PSCMD,;t t
20254 s,@WIN32@,$WIN32,;t t
20255 s,@MACOSX@,$MACOSX,;t t
20256 s,@DISTNAME@,$DISTNAME,;t t
20257 s,@DISTVER@,$DISTVER,;t t
20258 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20259 /@MCOMMON@/r $MCOMMON
20260 s,@MCOMMON@,,;t t
20261 CEOF
20262
20263 _ACEOF
20264
20265   cat >>$CONFIG_STATUS <<\_ACEOF
20266   # Split the substitutions into bite-sized pieces for seds with
20267   # small command number limits, like on Digital OSF/1 and HP-UX.
20268   ac_max_sed_lines=48
20269   ac_sed_frag=1 # Number of current file.
20270   ac_beg=1 # First line for current file.
20271   ac_end=$ac_max_sed_lines # Line after last line for current file.
20272   ac_more_lines=:
20273   ac_sed_cmds=
20274   while $ac_more_lines; do
20275     if test $ac_beg -gt 1; then
20276       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20277     else
20278       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20279     fi
20280     if test ! -s $tmp/subs.frag; then
20281       ac_more_lines=false
20282     else
20283       # The purpose of the label and of the branching condition is to
20284       # speed up the sed processing (if there are no `@' at all, there
20285       # is no need to browse any of the substitutions).
20286       # These are the two extra sed commands mentioned above.
20287       (echo ':t
20288   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20289       if test -z "$ac_sed_cmds"; then
20290         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20291       else
20292         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20293       fi
20294       ac_sed_frag=`expr $ac_sed_frag + 1`
20295       ac_beg=$ac_end
20296       ac_end=`expr $ac_end + $ac_max_sed_lines`
20297     fi
20298   done
20299   if test -z "$ac_sed_cmds"; then
20300     ac_sed_cmds=cat
20301   fi
20302 fi # test -n "$CONFIG_FILES"
20303
20304 _ACEOF
20305 cat >>$CONFIG_STATUS <<\_ACEOF
20306 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20307   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20308   case $ac_file in
20309   - | *:- | *:-:* ) # input from stdin
20310         cat >$tmp/stdin
20311         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20312         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20313   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20314         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20315   * )   ac_file_in=$ac_file.in ;;
20316   esac
20317
20318   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20319   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20320 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20321          X"$ac_file" : 'X\(//\)[^/]' \| \
20322          X"$ac_file" : 'X\(//\)$' \| \
20323          X"$ac_file" : 'X\(/\)' \| \
20324          .     : '\(.\)' 2>/dev/null ||
20325 echo X"$ac_file" |
20326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20327           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20328           /^X\(\/\/\)$/{ s//\1/; q; }
20329           /^X\(\/\).*/{ s//\1/; q; }
20330           s/.*/./; q'`
20331   { if $as_mkdir_p; then
20332     mkdir -p "$ac_dir"
20333   else
20334     as_dir="$ac_dir"
20335     as_dirs=
20336     while test ! -d "$as_dir"; do
20337       as_dirs="$as_dir $as_dirs"
20338       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20340          X"$as_dir" : 'X\(//\)[^/]' \| \
20341          X"$as_dir" : 'X\(//\)$' \| \
20342          X"$as_dir" : 'X\(/\)' \| \
20343          .     : '\(.\)' 2>/dev/null ||
20344 echo X"$as_dir" |
20345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20346           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20347           /^X\(\/\/\)$/{ s//\1/; q; }
20348           /^X\(\/\).*/{ s//\1/; q; }
20349           s/.*/./; q'`
20350     done
20351     test ! -n "$as_dirs" || mkdir $as_dirs
20352   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20353 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20354    { (exit 1); exit 1; }; }; }
20355
20356   ac_builddir=.
20357
20358 if test "$ac_dir" != .; then
20359   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20360   # A "../" for each directory in $ac_dir_suffix.
20361   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20362 else
20363   ac_dir_suffix= ac_top_builddir=
20364 fi
20365
20366 case $srcdir in
20367   .)  # No --srcdir option.  We are building in place.
20368     ac_srcdir=.
20369     if test -z "$ac_top_builddir"; then
20370        ac_top_srcdir=.
20371     else
20372        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20373     fi ;;
20374   [\\/]* | ?:[\\/]* )  # Absolute path.
20375     ac_srcdir=$srcdir$ac_dir_suffix;
20376     ac_top_srcdir=$srcdir ;;
20377   *) # Relative path.
20378     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20379     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20380 esac
20381 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20382 # absolute.
20383 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20384 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20385 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20386 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20387
20388
20389   case $INSTALL in
20390   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20391   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20392   esac
20393
20394   if test x"$ac_file" != x-; then
20395     { echo "$as_me:$LINENO: creating $ac_file" >&5
20396 echo "$as_me: creating $ac_file" >&6;}
20397     rm -f "$ac_file"
20398   fi
20399   # Let's still pretend it is `configure' which instantiates (i.e., don't
20400   # use $as_me), people would be surprised to read:
20401   #    /* config.h.  Generated by config.status.  */
20402   if test x"$ac_file" = x-; then
20403     configure_input=
20404   else
20405     configure_input="$ac_file.  "
20406   fi
20407   configure_input=$configure_input"Generated from `echo $ac_file_in |
20408                                      sed 's,.*/,,'` by configure."
20409
20410   # First look for the input files in the build tree, otherwise in the
20411   # src tree.
20412   ac_file_inputs=`IFS=:
20413     for f in $ac_file_in; do
20414       case $f in
20415       -) echo $tmp/stdin ;;
20416       [\\/$]*)
20417          # Absolute (can't be DOS-style, as IFS=:)
20418          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20419 echo "$as_me: error: cannot find input file: $f" >&2;}
20420    { (exit 1); exit 1; }; }
20421          echo $f;;
20422       *) # Relative
20423          if test -f "$f"; then
20424            # Build tree
20425            echo $f
20426          elif test -f "$srcdir/$f"; then
20427            # Source tree
20428            echo $srcdir/$f
20429          else
20430            # /dev/null tree
20431            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20432 echo "$as_me: error: cannot find input file: $f" >&2;}
20433    { (exit 1); exit 1; }; }
20434          fi;;
20435       esac
20436     done` || { (exit 1); exit 1; }
20437 _ACEOF
20438 cat >>$CONFIG_STATUS <<_ACEOF
20439   sed "$ac_vpsub
20440 $extrasub
20441 _ACEOF
20442 cat >>$CONFIG_STATUS <<\_ACEOF
20443 :t
20444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20445 s,@configure_input@,$configure_input,;t t
20446 s,@srcdir@,$ac_srcdir,;t t
20447 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20448 s,@top_srcdir@,$ac_top_srcdir,;t t
20449 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20450 s,@builddir@,$ac_builddir,;t t
20451 s,@abs_builddir@,$ac_abs_builddir,;t t
20452 s,@top_builddir@,$ac_top_builddir,;t t
20453 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20454 s,@INSTALL@,$ac_INSTALL,;t t
20455 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20456   rm -f $tmp/stdin
20457   if test x"$ac_file" != x-; then
20458     mv $tmp/out $ac_file
20459   else
20460     cat $tmp/out
20461     rm -f $tmp/out
20462   fi
20463
20464 done
20465 _ACEOF
20466 cat >>$CONFIG_STATUS <<\_ACEOF
20467
20468 #
20469 # CONFIG_HEADER section.
20470 #
20471
20472 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20473 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20474 #
20475 # ac_d sets the value in "#define NAME VALUE" lines.
20476 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20477 ac_dB='[        ].*$,\1#\2'
20478 ac_dC=' '
20479 ac_dD=',;t'
20480 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20481 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20482 ac_uB='$,\1#\2define\3'
20483 ac_uC=' '
20484 ac_uD=',;t'
20485
20486 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20487   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20488   case $ac_file in
20489   - | *:- | *:-:* ) # input from stdin
20490         cat >$tmp/stdin
20491         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20492         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20493   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20494         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20495   * )   ac_file_in=$ac_file.in ;;
20496   esac
20497
20498   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20499 echo "$as_me: creating $ac_file" >&6;}
20500
20501   # First look for the input files in the build tree, otherwise in the
20502   # src tree.
20503   ac_file_inputs=`IFS=:
20504     for f in $ac_file_in; do
20505       case $f in
20506       -) echo $tmp/stdin ;;
20507       [\\/$]*)
20508          # Absolute (can't be DOS-style, as IFS=:)
20509          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20510 echo "$as_me: error: cannot find input file: $f" >&2;}
20511    { (exit 1); exit 1; }; }
20512          echo $f;;
20513       *) # Relative
20514          if test -f "$f"; then
20515            # Build tree
20516            echo $f
20517          elif test -f "$srcdir/$f"; then
20518            # Source tree
20519            echo $srcdir/$f
20520          else
20521            # /dev/null tree
20522            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20523 echo "$as_me: error: cannot find input file: $f" >&2;}
20524    { (exit 1); exit 1; }; }
20525          fi;;
20526       esac
20527     done` || { (exit 1); exit 1; }
20528   # Remove the trailing spaces.
20529   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20530
20531 _ACEOF
20532
20533 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20534 # `conftest.undefs', that substitutes the proper values into
20535 # config.h.in to produce config.h.  The first handles `#define'
20536 # templates, and the second `#undef' templates.
20537 # And first: Protect against being on the right side of a sed subst in
20538 # config.status.  Protect against being in an unquoted here document
20539 # in config.status.
20540 rm -f conftest.defines conftest.undefs
20541 # Using a here document instead of a string reduces the quoting nightmare.
20542 # Putting comments in sed scripts is not portable.
20543 #
20544 # `end' is used to avoid that the second main sed command (meant for
20545 # 0-ary CPP macros) applies to n-ary macro definitions.
20546 # See the Autoconf documentation for `clear'.
20547 cat >confdef2sed.sed <<\_ACEOF
20548 s/[\\&,]/\\&/g
20549 s,[\\$`],\\&,g
20550 t clear
20551 : clear
20552 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20553 t end
20554 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20555 : end
20556 _ACEOF
20557 # If some macros were called several times there might be several times
20558 # the same #defines, which is useless.  Nevertheless, we may not want to
20559 # sort them, since we want the *last* AC-DEFINE to be honored.
20560 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20561 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20562 rm -f confdef2sed.sed
20563
20564 # This sed command replaces #undef with comments.  This is necessary, for
20565 # example, in the case of _POSIX_SOURCE, which is predefined and required
20566 # on some systems where configure will not decide to define it.
20567 cat >>conftest.undefs <<\_ACEOF
20568 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20569 _ACEOF
20570
20571 # Break up conftest.defines 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 #define templates only if necessary.' >>$CONFIG_STATUS
20574 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20575 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20576 echo '  :' >>$CONFIG_STATUS
20577 rm -f conftest.tail
20578 while grep . conftest.defines >/dev/null
20579 do
20580   # Write a limited-size here document to $tmp/defines.sed.
20581   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20582   # Speed up: don't consider the non `#define' lines.
20583   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20584   # Work around the forget-to-reset-the-flag bug.
20585   echo 't clr' >>$CONFIG_STATUS
20586   echo ': clr' >>$CONFIG_STATUS
20587   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20588   echo 'CEOF
20589   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20590   rm -f $tmp/in
20591   mv $tmp/out $tmp/in
20592 ' >>$CONFIG_STATUS
20593   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20594   rm -f conftest.defines
20595   mv conftest.tail conftest.defines
20596 done
20597 rm -f conftest.defines
20598 echo '  fi # grep' >>$CONFIG_STATUS
20599 echo >>$CONFIG_STATUS
20600
20601 # Break up conftest.undefs because some shells have a limit on the size
20602 # of here documents, and old seds have small limits too (100 cmds).
20603 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20604 rm -f conftest.tail
20605 while grep . conftest.undefs >/dev/null
20606 do
20607   # Write a limited-size here document to $tmp/undefs.sed.
20608   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20609   # Speed up: don't consider the non `#undef'
20610   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20611   # Work around the forget-to-reset-the-flag bug.
20612   echo 't clr' >>$CONFIG_STATUS
20613   echo ': clr' >>$CONFIG_STATUS
20614   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20615   echo 'CEOF
20616   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20617   rm -f $tmp/in
20618   mv $tmp/out $tmp/in
20619 ' >>$CONFIG_STATUS
20620   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20621   rm -f conftest.undefs
20622   mv conftest.tail conftest.undefs
20623 done
20624 rm -f conftest.undefs
20625
20626 cat >>$CONFIG_STATUS <<\_ACEOF
20627   # Let's still pretend it is `configure' which instantiates (i.e., don't
20628   # use $as_me), people would be surprised to read:
20629   #    /* config.h.  Generated by config.status.  */
20630   if test x"$ac_file" = x-; then
20631     echo "/* Generated by configure.  */" >$tmp/config.h
20632   else
20633     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20634   fi
20635   cat $tmp/in >>$tmp/config.h
20636   rm -f $tmp/in
20637   if test x"$ac_file" != x-; then
20638     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20639       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20640 echo "$as_me: $ac_file is unchanged" >&6;}
20641     else
20642       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20644          X"$ac_file" : 'X\(//\)[^/]' \| \
20645          X"$ac_file" : 'X\(//\)$' \| \
20646          X"$ac_file" : 'X\(/\)' \| \
20647          .     : '\(.\)' 2>/dev/null ||
20648 echo X"$ac_file" |
20649     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20650           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20651           /^X\(\/\/\)$/{ s//\1/; q; }
20652           /^X\(\/\).*/{ s//\1/; q; }
20653           s/.*/./; q'`
20654       { if $as_mkdir_p; then
20655     mkdir -p "$ac_dir"
20656   else
20657     as_dir="$ac_dir"
20658     as_dirs=
20659     while test ! -d "$as_dir"; do
20660       as_dirs="$as_dir $as_dirs"
20661       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20663          X"$as_dir" : 'X\(//\)[^/]' \| \
20664          X"$as_dir" : 'X\(//\)$' \| \
20665          X"$as_dir" : 'X\(/\)' \| \
20666          .     : '\(.\)' 2>/dev/null ||
20667 echo X"$as_dir" |
20668     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20669           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20670           /^X\(\/\/\)$/{ s//\1/; q; }
20671           /^X\(\/\).*/{ s//\1/; q; }
20672           s/.*/./; q'`
20673     done
20674     test ! -n "$as_dirs" || mkdir $as_dirs
20675   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20676 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20677    { (exit 1); exit 1; }; }; }
20678
20679       rm -f $ac_file
20680       mv $tmp/config.h $ac_file
20681     fi
20682   else
20683     cat $tmp/config.h
20684     rm -f $tmp/config.h
20685   fi
20686 done
20687 _ACEOF
20688 cat >>$CONFIG_STATUS <<\_ACEOF
20689
20690 #
20691 # CONFIG_COMMANDS section.
20692 #
20693 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20694   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20695   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20696   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20697 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20698          X"$ac_dest" : 'X\(//\)[^/]' \| \
20699          X"$ac_dest" : 'X\(//\)$' \| \
20700          X"$ac_dest" : 'X\(/\)' \| \
20701          .     : '\(.\)' 2>/dev/null ||
20702 echo X"$ac_dest" |
20703     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20704           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20705           /^X\(\/\/\)$/{ s//\1/; q; }
20706           /^X\(\/\).*/{ s//\1/; q; }
20707           s/.*/./; q'`
20708   ac_builddir=.
20709
20710 if test "$ac_dir" != .; then
20711   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20712   # A "../" for each directory in $ac_dir_suffix.
20713   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20714 else
20715   ac_dir_suffix= ac_top_builddir=
20716 fi
20717
20718 case $srcdir in
20719   .)  # No --srcdir option.  We are building in place.
20720     ac_srcdir=.
20721     if test -z "$ac_top_builddir"; then
20722        ac_top_srcdir=.
20723     else
20724        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20725     fi ;;
20726   [\\/]* | ?:[\\/]* )  # Absolute path.
20727     ac_srcdir=$srcdir$ac_dir_suffix;
20728     ac_top_srcdir=$srcdir ;;
20729   *) # Relative path.
20730     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20731     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20732 esac
20733 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20734 # absolute.
20735 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20736 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20737 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20738 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20739
20740
20741   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20742 echo "$as_me: executing $ac_dest commands" >&6;}
20743   case $ac_dest in
20744     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20745  ;;
20746   esac
20747 done
20748 _ACEOF
20749
20750 cat >>$CONFIG_STATUS <<\_ACEOF
20751
20752 { (exit 0); exit 0; }
20753 _ACEOF
20754 chmod +x $CONFIG_STATUS
20755 ac_clean_files=$ac_clean_files_save
20756
20757
20758 # configure is writing to config.log, and then calls config.status.
20759 # config.status does its own redirection, appending to config.log.
20760 # Unfortunately, on DOS this fails, as config.log is still kept open
20761 # by configure, so config.status won't be able to write to it; its
20762 # output is simply discarded.  So we exec the FD to /dev/null,
20763 # effectively closing config.log, so it can be properly (re)opened and
20764 # appended to by config.status.  When coming back to configure, we
20765 # need to make the FD available again.
20766 if test "$no_create" != yes; then
20767   ac_cs_success=:
20768   ac_config_status_args=
20769   test "$silent" = yes &&
20770     ac_config_status_args="$ac_config_status_args --quiet"
20771   exec 5>/dev/null
20772   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20773   exec 5>>config.log
20774   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20775   # would make configure fail if this is the last instruction.
20776   $ac_cs_success || { (exit 1); exit 1; }
20777 fi
20778
20779
20780 cd scripts
20781 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20782 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20783 cd ..
20784
20785 c=src/cats
20786
20787 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
20788 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
20789
20790 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
20791 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
20792
20793 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
20794 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
20795
20796 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
20797 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
20798
20799 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
20800 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
20801
20802 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20803 chmod 755 $c/sqlite
20804 chmod 755 $c/mysql
20805
20806 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20807    largefile_support="yes"
20808 fi
20809
20810 #
20811 # A whole lot of hand springs to get the compiler version.
20812 #  This is because gcc changed the output in version 3.0
20813 #
20814 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20815 if test "x${CCVERSION}" = "x" ; then
20816   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20817 fi
20818 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20819 if test x"${CXXVERSION}" = x ; then
20820   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20821 fi
20822
20823 if test "x${subsysdir}" = "x${sbindir}" ; then
20824    echo " "
20825    echo " "
20826    echo "You have set --sbindir and --with-subsys-dir"
20827    echo "  both equal to: ${subsysdir} "
20828    echo "  This is not permitted. Please reconfigure."
20829    echo " "
20830    echo "Aborting configuration ..."
20831    echo " "
20832    echo " "
20833    exit 1
20834 fi
20835
20836 if test "x${db_name}" = "xInternal" ; then
20837    echo " "
20838    echo " "
20839    echo "You have not specified either --enable-client-only or one of the"
20840    echo "  supported databases: MySQL, PostgreSQL, or SQLite".
20841    echo "  This is not permitted. Please reconfigure."
20842    echo " "
20843    echo "Aborting the configuration ..."
20844    echo " "
20845    echo " "
20846    exit 1
20847 fi
20848
20849 echo "
20850 Configuration on `date`:
20851
20852   Host:                       $host -- ${DISTNAME} ${DISTVER}
20853   Bacula version:             ${VERSION} (${DATE})
20854   Source code location:       ${srcdir}
20855   Install binaries:           ${sbindir}
20856   Install config files:       ${sysconfdir}
20857   Scripts directory:          ${scriptdir}
20858   Working directory:          ${working_dir}
20859   PID directory:              ${piddir}
20860   Subsys directory:           ${subsysdir}
20861   C Compiler:                 ${CC} ${CCVERSION}
20862   C++ Compiler:               ${CXX} ${CXXVERSION}
20863   Compiler flags:             ${WCFLAGS} ${CFLAGS}
20864   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
20865   Libraries:                  ${LIBS}
20866   Statically Linked Tools:    ${support_static_tools}
20867   Statically Linked FD:       ${support_static_fd}
20868   Statically Linked SD:       ${support_static_sd}
20869   Statically Linked DIR:      ${support_static_dir}
20870   Statically Linked CONS:     ${support_static_cons}
20871   Database type:              ${db_name}
20872   Database lib:               ${DB_LIBS}
20873
20874   Job Output Email:           ${job_email}
20875   Traceback Email:            ${dump_email}
20876   SMTP Host Address:          ${smtp_host}
20877
20878   Director Port:              ${dir_port}
20879   File daemon Port:           ${fd_port}
20880   Storage daemon Port:        ${sd_port}
20881
20882   Director User:              ${dir_user}
20883   Director Group:             ${dir_group}
20884   Storage Daemon User:        ${sd_user}
20885   Storage DaemonGroup:        ${sd_group}
20886   File Daemon User:           ${fd_user}
20887   File Daemon Group:          ${fd_group}
20888
20889   SQL binaries Directory      ${SQL_BINDIR}
20890
20891   Large file support:         $largefile_support
20892   Bacula conio support:       ${got_conio} ${CONS_LIBS}
20893   readline support:           ${got_readline} ${PRTREADLINE_SRC}
20894   TCP Wrappers support:       ${TCPW_MSG}
20895   ZLIB support:               ${have_zlib}
20896   enable-smartalloc:          ${support_smartalloc}
20897   enable-gnome:               ${support_gnome} ${gnome_version}
20898   enable-wx-console:          ${support_wx_console}
20899   enable-tray-monitor:        ${support_tray_monitor}
20900   client-only:                ${build_client_only}
20901   ACL support:                ${have_acl}
20902   Python support:             ${support_python} ${PYTHON_LIBS}
20903
20904   " > config.out
20905
20906 cat config.out
20907
20908 # old stuff
20909 # cweb support:               ${got_cweb} ${CWEB_SRC}
20910 # gmp support:                ${got_gmp} ${GMP_SRC}