]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Add WXCONFIG and WXFLAGS env variables to configure script.
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK 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 OPENSSL_LIBS OPENSSL_INC 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'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --enable-gnome          enable build of gnome-console GUI disabled
868   --enable-wx-console     enable build of wxWidgets console disabled
869   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
870   --enable-smartalloc     enable smartalloc debugging support disabled
871   --enable-static-tools   enable static tape tools disabled
872   --enable-static-fd      enable static File daemon disabled
873   --enable-static-sd      enable static Storage daemon disabled
874   --enable-static-dir     enable static Director disabled
875   --enable-static-cons    enable static Console disabled
876   --enable-client-only    build client (File daemon) only disabled
877   --disable-conio            disable conio support enabled
878
879   --disable-readline      disable readline support disable
880
881   --disable-largefile     omit support for large files
882
883 Optional Packages:
884   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
885   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
886   --with-gnome-includes   Specify location of GNOME headers
887   --with-gnome-libs       Specify location of GNOME libs
888   --with-gnome            Specify prefix for GNOME files
889  --with-readline=DIR             specify readline library directory
890
891   --with-python=DIR       Include Python support.  DIR is the Python base
892                           install directory, default is to search through
893                           a number of common places for the Python files.
894   --with-tcp-wrappers=DIR        enable tcpwrappers support
895   --with-openssl[=DIR]
896                           Include OpenSSL support. DIR is the OpenSSL base
897   --with-working-dir=PATH        specify path of Bacula working directory
898   --with-scriptdir=PATH    specify path of Bacula scripts directory
899   --with-dump-email=EMAIL        dump email address
900   --with-job-email=EMAIL         job output email address
901   --with-smtp-host=HOST          SMTP mail host address
902   --with-pid-dir=PATH            specify location of Bacula pid files
903   --with-subsys-dir=PATH         specify location of Bacula subsys file
904   --with-baseport=PORT           specify base port address for daemons
905   --with-dir-password=PASSWORD   specify Director's password
906   --with-fd-password=PASSWORD    specify Client's password
907   --with-sd-password=PASSWORD    specify Storage daemon's password
908   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
909   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
910   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
911   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
912   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
913   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
914   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
915   --with-bimagemgr-dataowner=USER       specify bimagemgr data file owner
916   --with-bimagemgr-datagroup=USER       specify bimagemgr data file group
917   --with-dir-user=USER           specify user for Director daemon
918   --with-dir-group=GROUP                 specify group for Director daemon
919   --with-sd-user=USER            specify user for Storage daemon
920   --with-sd-group=GROUP          specify group for Storage daemon
921   --with-fd-user=USER            specify user for File daemon
922   --with-fd-group=GROUP          specify group for File daemon
923   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
924   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
925                           base install directory, defaults to /usr/local/pgsql
926
927   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
928                           install directory, default is to search through
929                           a number of common places for the MySQL files.
930
931   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
932                           install directory, default is to search through
933                           a number of common places for the MySQL files.
934
935   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
936                           install directory, default is to search through
937                           a number of common places for the SQLite3 files.
938
939   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
940                           install directory, default is to search through
941                           a number of common places for the SQLite files.
942   --with-x                use the X Window System
943
944 Some influential environment variables:
945   CC          C compiler command
946   CFLAGS      C compiler flags
947   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
948               nonstandard directory <lib dir>
949   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
950               headers in a nonstandard directory <include dir>
951   CXX         C++ compiler command
952   CXXFLAGS    C++ compiler flags
953   CPP         C preprocessor
954   WXCONFIG    wx-config command. On some systems, you must set it to
955               wx-config-2.6 to use wxWidgets 2.6.
956   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
957
958 Use these variables to override the choices made by `configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
960
961 _ACEOF
962 fi
963
964 if test "$ac_init_help" = "recursive"; then
965   # If there are subdirs, report their specific --help.
966   ac_popdir=`pwd`
967   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968     test -d $ac_dir || continue
969     ac_builddir=.
970
971 if test "$ac_dir" != .; then
972   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
973   # A "../" for each directory in $ac_dir_suffix.
974   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
975 else
976   ac_dir_suffix= ac_top_builddir=
977 fi
978
979 case $srcdir in
980   .)  # No --srcdir option.  We are building in place.
981     ac_srcdir=.
982     if test -z "$ac_top_builddir"; then
983        ac_top_srcdir=.
984     else
985        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
986     fi ;;
987   [\\/]* | ?:[\\/]* )  # Absolute path.
988     ac_srcdir=$srcdir$ac_dir_suffix;
989     ac_top_srcdir=$srcdir ;;
990   *) # Relative path.
991     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992     ac_top_srcdir=$ac_top_builddir$srcdir ;;
993 esac
994
995 # Do not use `cd foo && pwd` to compute absolute paths, because
996 # the directories may not exist.
997 case `pwd` in
998 .) ac_abs_builddir="$ac_dir";;
999 *)
1000   case "$ac_dir" in
1001   .) ac_abs_builddir=`pwd`;;
1002   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1004   esac;;
1005 esac
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1008 *)
1009   case ${ac_top_builddir}. in
1010   .) ac_abs_top_builddir=$ac_abs_builddir;;
1011   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1013   esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1017 *)
1018   case $ac_srcdir in
1019   .) ac_abs_srcdir=$ac_abs_builddir;;
1020   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1022   esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1026 *)
1027   case $ac_top_srcdir in
1028   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1031   esac;;
1032 esac
1033
1034     cd $ac_dir
1035     # Check for guested configure; otherwise get Cygnus style configure.
1036     if test -f $ac_srcdir/configure.gnu; then
1037       echo
1038       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1039     elif test -f $ac_srcdir/configure; then
1040       echo
1041       $SHELL $ac_srcdir/configure  --help=recursive
1042     elif test -f $ac_srcdir/configure.ac ||
1043            test -f $ac_srcdir/configure.in; then
1044       echo
1045       $ac_configure --help
1046     else
1047       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1048     fi
1049     cd $ac_popdir
1050   done
1051 fi
1052
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1055   cat <<\_ACEOF
1056
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1060 _ACEOF
1061   exit 0
1062 fi
1063 exec 5>config.log
1064 cat >&5 <<_ACEOF
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1067
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59.  Invocation command line was
1070
1071   $ $0 $@
1072
1073 _ACEOF
1074 {
1075 cat <<_ASUNAME
1076 ## --------- ##
1077 ## Platform. ##
1078 ## --------- ##
1079
1080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1085
1086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1087 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1088
1089 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1090 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1092 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1093 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1094 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1095 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1096
1097 _ASUNAME
1098
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1100 for as_dir in $PATH
1101 do
1102   IFS=$as_save_IFS
1103   test -z "$as_dir" && as_dir=.
1104   echo "PATH: $as_dir"
1105 done
1106
1107 } >&5
1108
1109 cat >&5 <<_ACEOF
1110
1111
1112 ## ----------- ##
1113 ## Core tests. ##
1114 ## ----------- ##
1115
1116 _ACEOF
1117
1118
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1124 ac_configure_args=
1125 ac_configure_args0=
1126 ac_configure_args1=
1127 ac_sep=
1128 ac_must_keep_next=false
1129 for ac_pass in 1 2
1130 do
1131   for ac_arg
1132   do
1133     case $ac_arg in
1134     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136     | -silent | --silent | --silen | --sile | --sil)
1137       continue ;;
1138     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1140     esac
1141     case $ac_pass in
1142     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1143     2)
1144       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145       if test $ac_must_keep_next = true; then
1146         ac_must_keep_next=false # Got value, back to normal.
1147       else
1148         case $ac_arg in
1149           *=* | --config-cache | -C | -disable-* | --disable-* \
1150           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152           | -with-* | --with-* | -without-* | --without-* | --x)
1153             case "$ac_configure_args0 " in
1154               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1155             esac
1156             ;;
1157           -* ) ac_must_keep_next=true ;;
1158         esac
1159       fi
1160       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161       # Get rid of the leading space.
1162       ac_sep=" "
1163       ;;
1164     esac
1165   done
1166 done
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1169
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log.  We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close' the trap.
1175 trap 'exit_status=$?
1176   # Save into config.log some information that might help in debugging.
1177   {
1178     echo
1179
1180     cat <<\_ASBOX
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1184 _ASBOX
1185     echo
1186     # The following way of writing the cache mishandles newlines in values,
1187 {
1188   (set) 2>&1 |
1189     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1190     *ac_space=\ *)
1191       sed -n \
1192         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1194       ;;
1195     *)
1196       sed -n \
1197         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1198       ;;
1199     esac;
1200 }
1201     echo
1202
1203     cat <<\_ASBOX
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1207 _ASBOX
1208     echo
1209     for ac_var in $ac_subst_vars
1210     do
1211       eval ac_val=$`echo $ac_var`
1212       echo "$ac_var='"'"'$ac_val'"'"'"
1213     done | sort
1214     echo
1215
1216     if test -n "$ac_subst_files"; then
1217       cat <<\_ASBOX
1218 ## ------------- ##
1219 ## Output files. ##
1220 ## ------------- ##
1221 _ASBOX
1222       echo
1223       for ac_var in $ac_subst_files
1224       do
1225         eval ac_val=$`echo $ac_var`
1226         echo "$ac_var='"'"'$ac_val'"'"'"
1227       done | sort
1228       echo
1229     fi
1230
1231     if test -s confdefs.h; then
1232       cat <<\_ASBOX
1233 ## ----------- ##
1234 ## confdefs.h. ##
1235 ## ----------- ##
1236 _ASBOX
1237       echo
1238       sed "/^$/d" confdefs.h | sort
1239       echo
1240     fi
1241     test "$ac_signal" != 0 &&
1242       echo "$as_me: caught signal $ac_signal"
1243     echo "$as_me: exit $exit_status"
1244   } >&5
1245   rm -f core *.core &&
1246   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1247     exit $exit_status
1248      ' 0
1249 for ac_signal in 1 2 13 15; do
1250   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1251 done
1252 ac_signal=0
1253
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1257 echo >confdefs.h
1258
1259 # Predefined preprocessor variables.
1260
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1263 _ACEOF
1264
1265
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1268 _ACEOF
1269
1270
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1273 _ACEOF
1274
1275
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1278 _ACEOF
1279
1280
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1283 _ACEOF
1284
1285
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289   if test "x$prefix" != xNONE; then
1290     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1291   else
1292     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1293   fi
1294 fi
1295 for ac_site_file in $CONFIG_SITE; do
1296   if test -r "$ac_site_file"; then
1297     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299     sed 's/^/| /' "$ac_site_file" >&5
1300     . "$ac_site_file"
1301   fi
1302 done
1303
1304 if test -r "$cache_file"; then
1305   # Some versions of bash will fail to source /dev/null (special
1306   # files actually), so we avoid doing that.
1307   if test -f "$cache_file"; then
1308     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1310     case $cache_file in
1311       [\\/]* | ?:[\\/]* ) . $cache_file;;
1312       *)                      . ./$cache_file;;
1313     esac
1314   fi
1315 else
1316   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1318   >$cache_file
1319 fi
1320
1321 # Check that the precious variables saved in the cache have kept the same
1322 # value.
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327   eval ac_new_set=\$ac_env_${ac_var}_set
1328   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329   eval ac_new_val="\$ac_env_${ac_var}_value"
1330   case $ac_old_set,$ac_new_set in
1331     set,)
1332       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334       ac_cache_corrupted=: ;;
1335     ,set)
1336       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338       ac_cache_corrupted=: ;;
1339     ,);;
1340     *)
1341       if test "x$ac_old_val" != "x$ac_new_val"; then
1342         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1345 echo "$as_me:   former value:  $ac_old_val" >&2;}
1346         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1347 echo "$as_me:   current value: $ac_new_val" >&2;}
1348         ac_cache_corrupted=:
1349       fi;;
1350   esac
1351   # Pass precious variables to config.status.
1352   if test "$ac_new_set" = set; then
1353     case $ac_new_val in
1354     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356     *) ac_arg=$ac_var=$ac_new_val ;;
1357     esac
1358     case " $ac_configure_args " in
1359       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1360       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1361     esac
1362   fi
1363 done
1364 if $ac_cache_corrupted; then
1365   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369    { (exit 1); exit 1; }; }
1370 fi
1371
1372 ac_ext=c
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396 BUILD_DIR=`pwd`
1397 cd ..
1398 TOP_DIR=`pwd`
1399 cd ${BUILD_DIR}
1400
1401 ac_aux_dir=
1402 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1403   if test -f $ac_dir/install-sh; then
1404     ac_aux_dir=$ac_dir
1405     ac_install_sh="$ac_aux_dir/install-sh -c"
1406     break
1407   elif test -f $ac_dir/install.sh; then
1408     ac_aux_dir=$ac_dir
1409     ac_install_sh="$ac_aux_dir/install.sh -c"
1410     break
1411   elif test -f $ac_dir/shtool; then
1412     ac_aux_dir=$ac_dir
1413     ac_install_sh="$ac_aux_dir/shtool install -c"
1414     break
1415   fi
1416 done
1417 if test -z "$ac_aux_dir"; then
1418   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1419 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1420    { (exit 1); exit 1; }; }
1421 fi
1422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1425
1426           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1427
1428
1429
1430
1431
1432 for ac_prog in true
1433 do
1434   # Extract the first word of "$ac_prog", so it can be a program name with args.
1435 set dummy $ac_prog; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1439   echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441   case $TRUEPRG in
1442   [\\/]* | ?:[\\/]*)
1443   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1444   ;;
1445   *)
1446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
1449   IFS=$as_save_IFS
1450   test -z "$as_dir" && as_dir=.
1451   for ac_exec_ext in '' $ac_executable_extensions; do
1452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455     break 2
1456   fi
1457 done
1458 done
1459
1460   ;;
1461 esac
1462 fi
1463 TRUEPRG=$ac_cv_path_TRUEPRG
1464
1465 if test -n "$TRUEPRG"; then
1466   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1467 echo "${ECHO_T}$TRUEPRG" >&6
1468 else
1469   echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1471 fi
1472
1473   test -n "$TRUEPRG" && break
1474 done
1475 test -n "$TRUEPRG" || TRUEPRG=":"
1476
1477 for ac_prog in false
1478 do
1479   # Extract the first word of "$ac_prog", so it can be a program name with args.
1480 set dummy $ac_prog; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   case $FALSEPRG in
1487   [\\/]* | ?:[\\/]*)
1488   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1489   ;;
1490   *)
1491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494   IFS=$as_save_IFS
1495   test -z "$as_dir" && as_dir=.
1496   for ac_exec_ext in '' $ac_executable_extensions; do
1497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500     break 2
1501   fi
1502 done
1503 done
1504
1505   ;;
1506 esac
1507 fi
1508 FALSEPRG=$ac_cv_path_FALSEPRG
1509
1510 if test -n "$FALSEPRG"; then
1511   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1512 echo "${ECHO_T}$FALSEPRG" >&6
1513 else
1514   echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1516 fi
1517
1518   test -n "$FALSEPRG" && break
1519 done
1520 test -n "$FALSEPRG" || FALSEPRG=":"
1521
1522
1523 #AC_CANONICAL_HOST
1524
1525 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1526 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1527 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 echo "configuring for bacula $VERSION ($DATE)"
1529
1530
1531
1532 ac_ext=c
1533 ac_cpp='$CPP $CPPFLAGS'
1534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1537 if test -n "$ac_tool_prefix"; then
1538   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543   echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545   if test -n "$CC"; then
1546   ac_cv_prog_CC="$CC" # Let the user override the test.
1547 else
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1550 do
1551   IFS=$as_save_IFS
1552   test -z "$as_dir" && as_dir=.
1553   for ac_exec_ext in '' $ac_executable_extensions; do
1554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557     break 2
1558   fi
1559 done
1560 done
1561
1562 fi
1563 fi
1564 CC=$ac_cv_prog_CC
1565 if test -n "$CC"; then
1566   echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1568 else
1569   echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 fi
1572
1573 fi
1574 if test -z "$ac_cv_prog_CC"; then
1575   ac_ct_CC=$CC
1576   # Extract the first word of "gcc", so it can be a program name with args.
1577 set dummy gcc; ac_word=$2
1578 echo "$as_me:$LINENO: checking for $ac_word" >&5
1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1581   echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583   if test -n "$ac_ct_CC"; then
1584   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589   IFS=$as_save_IFS
1590   test -z "$as_dir" && as_dir=.
1591   for ac_exec_ext in '' $ac_executable_extensions; do
1592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593     ac_cv_prog_ac_ct_CC="gcc"
1594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595     break 2
1596   fi
1597 done
1598 done
1599
1600 fi
1601 fi
1602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1603 if test -n "$ac_ct_CC"; then
1604   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1605 echo "${ECHO_T}$ac_ct_CC" >&6
1606 else
1607   echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1609 fi
1610
1611   CC=$ac_ct_CC
1612 else
1613   CC="$ac_cv_prog_CC"
1614 fi
1615
1616 if test -z "$CC"; then
1617   if test -n "$ac_tool_prefix"; then
1618   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1619 set dummy ${ac_tool_prefix}cc; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623   echo $ECHO_N "(cached) $ECHO_C" >&6
1624 else
1625   if test -n "$CC"; then
1626   ac_cv_prog_CC="$CC" # Let the user override the test.
1627 else
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631   IFS=$as_save_IFS
1632   test -z "$as_dir" && as_dir=.
1633   for ac_exec_ext in '' $ac_executable_extensions; do
1634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635     ac_cv_prog_CC="${ac_tool_prefix}cc"
1636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637     break 2
1638   fi
1639 done
1640 done
1641
1642 fi
1643 fi
1644 CC=$ac_cv_prog_CC
1645 if test -n "$CC"; then
1646   echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1648 else
1649   echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1651 fi
1652
1653 fi
1654 if test -z "$ac_cv_prog_CC"; then
1655   ac_ct_CC=$CC
1656   # Extract the first word of "cc", so it can be a program name with args.
1657 set dummy cc; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   if test -n "$ac_ct_CC"; then
1664   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1665 else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   for ac_exec_ext in '' $ac_executable_extensions; do
1672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673     ac_cv_prog_ac_ct_CC="cc"
1674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675     break 2
1676   fi
1677 done
1678 done
1679
1680 fi
1681 fi
1682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1683 if test -n "$ac_ct_CC"; then
1684   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1685 echo "${ECHO_T}$ac_ct_CC" >&6
1686 else
1687   echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1689 fi
1690
1691   CC=$ac_ct_CC
1692 else
1693   CC="$ac_cv_prog_CC"
1694 fi
1695
1696 fi
1697 if test -z "$CC"; then
1698   # Extract the first word of "cc", so it can be a program name with args.
1699 set dummy cc; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_CC+set}" = set; then
1703   echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705   if test -n "$CC"; then
1706   ac_cv_prog_CC="$CC" # Let the user override the test.
1707 else
1708   ac_prog_rejected=no
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712   IFS=$as_save_IFS
1713   test -z "$as_dir" && as_dir=.
1714   for ac_exec_ext in '' $ac_executable_extensions; do
1715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1717        ac_prog_rejected=yes
1718        continue
1719      fi
1720     ac_cv_prog_CC="cc"
1721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722     break 2
1723   fi
1724 done
1725 done
1726
1727 if test $ac_prog_rejected = yes; then
1728   # We found a bogon in the path, so make sure we never use it.
1729   set dummy $ac_cv_prog_CC
1730   shift
1731   if test $# != 0; then
1732     # We chose a different compiler from the bogus one.
1733     # However, it has the same basename, so the bogon will be chosen
1734     # first if we set CC to just the basename; use the full file name.
1735     shift
1736     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1737   fi
1738 fi
1739 fi
1740 fi
1741 CC=$ac_cv_prog_CC
1742 if test -n "$CC"; then
1743   echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750 fi
1751 if test -z "$CC"; then
1752   if test -n "$ac_tool_prefix"; then
1753   for ac_prog in cl
1754   do
1755     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_CC+set}" = set; then
1760   echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762   if test -n "$CC"; then
1763   ac_cv_prog_CC="$CC" # Let the user override the test.
1764 else
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766 for as_dir in $PATH
1767 do
1768   IFS=$as_save_IFS
1769   test -z "$as_dir" && as_dir=.
1770   for ac_exec_ext in '' $ac_executable_extensions; do
1771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774     break 2
1775   fi
1776 done
1777 done
1778
1779 fi
1780 fi
1781 CC=$ac_cv_prog_CC
1782 if test -n "$CC"; then
1783   echo "$as_me:$LINENO: result: $CC" >&5
1784 echo "${ECHO_T}$CC" >&6
1785 else
1786   echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1788 fi
1789
1790     test -n "$CC" && break
1791   done
1792 fi
1793 if test -z "$CC"; then
1794   ac_ct_CC=$CC
1795   for ac_prog in cl
1796 do
1797   # Extract the first word of "$ac_prog", so it can be a program name with args.
1798 set dummy $ac_prog; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1802   echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804   if test -n "$ac_ct_CC"; then
1805   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1806 else
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 for as_dir in $PATH
1809 do
1810   IFS=$as_save_IFS
1811   test -z "$as_dir" && as_dir=.
1812   for ac_exec_ext in '' $ac_executable_extensions; do
1813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814     ac_cv_prog_ac_ct_CC="$ac_prog"
1815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1816     break 2
1817   fi
1818 done
1819 done
1820
1821 fi
1822 fi
1823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1824 if test -n "$ac_ct_CC"; then
1825   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1826 echo "${ECHO_T}$ac_ct_CC" >&6
1827 else
1828   echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1830 fi
1831
1832   test -n "$ac_ct_CC" && break
1833 done
1834
1835   CC=$ac_ct_CC
1836 fi
1837
1838 fi
1839
1840
1841 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&2;}
1845    { (exit 1); exit 1; }; }
1846
1847 # Provide some information about the compiler.
1848 echo "$as_me:$LINENO:" \
1849      "checking for C compiler version" >&5
1850 ac_compiler=`set X $ac_compile; echo $2`
1851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1852   (eval $ac_compiler --version </dev/null >&5) 2>&5
1853   ac_status=$?
1854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855   (exit $ac_status); }
1856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1857   (eval $ac_compiler -v </dev/null >&5) 2>&5
1858   ac_status=$?
1859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860   (exit $ac_status); }
1861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1862   (eval $ac_compiler -V </dev/null >&5) 2>&5
1863   ac_status=$?
1864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865   (exit $ac_status); }
1866
1867 cat >conftest.$ac_ext <<_ACEOF
1868 /* confdefs.h.  */
1869 _ACEOF
1870 cat confdefs.h >>conftest.$ac_ext
1871 cat >>conftest.$ac_ext <<_ACEOF
1872 /* end confdefs.h.  */
1873
1874 int
1875 main ()
1876 {
1877
1878   ;
1879   return 0;
1880 }
1881 _ACEOF
1882 ac_clean_files_save=$ac_clean_files
1883 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1884 # Try to create an executable without -o first, disregard a.out.
1885 # It will help us diagnose broken compilers, and finding out an intuition
1886 # of exeext.
1887 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1888 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1889 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1890 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1891   (eval $ac_link_default) 2>&5
1892   ac_status=$?
1893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894   (exit $ac_status); }; then
1895   # Find the output, starting from the most likely.  This scheme is
1896 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1897 # resort.
1898
1899 # Be careful to initialize this variable, since it used to be cached.
1900 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1901 ac_cv_exeext=
1902 # b.out is created by i960 compilers.
1903 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1904 do
1905   test -f "$ac_file" || continue
1906   case $ac_file in
1907     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1908         ;;
1909     conftest.$ac_ext )
1910         # This is the source file.
1911         ;;
1912     [ab].out )
1913         # We found the default executable, but exeext='' is most
1914         # certainly right.
1915         break;;
1916     *.* )
1917         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1918         # FIXME: I believe we export ac_cv_exeext for Libtool,
1919         # but it would be cool to find out if it's true.  Does anybody
1920         # maintain Libtool? --akim.
1921         export ac_cv_exeext
1922         break;;
1923     * )
1924         break;;
1925   esac
1926 done
1927 else
1928   echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1932 See \`config.log' for more details." >&5
1933 echo "$as_me: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&2;}
1935    { (exit 77); exit 77; }; }
1936 fi
1937
1938 ac_exeext=$ac_cv_exeext
1939 echo "$as_me:$LINENO: result: $ac_file" >&5
1940 echo "${ECHO_T}$ac_file" >&6
1941
1942 # Check the compiler produces executables we can run.  If not, either
1943 # the compiler is broken, or we cross compile.
1944 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1945 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1946 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1947 # If not cross compiling, check that we can run a simple program.
1948 if test "$cross_compiling" != yes; then
1949   if { ac_try='./$ac_file'
1950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951   (eval $ac_try) 2>&5
1952   ac_status=$?
1953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954   (exit $ac_status); }; }; then
1955     cross_compiling=no
1956   else
1957     if test "$cross_compiling" = maybe; then
1958         cross_compiling=yes
1959     else
1960         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1961 If you meant to cross compile, use \`--host'.
1962 See \`config.log' for more details." >&5
1963 echo "$as_me: error: cannot run C compiled programs.
1964 If you meant to cross compile, use \`--host'.
1965 See \`config.log' for more details." >&2;}
1966    { (exit 1); exit 1; }; }
1967     fi
1968   fi
1969 fi
1970 echo "$as_me:$LINENO: result: yes" >&5
1971 echo "${ECHO_T}yes" >&6
1972
1973 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1974 ac_clean_files=$ac_clean_files_save
1975 # Check the compiler produces executables we can run.  If not, either
1976 # the compiler is broken, or we cross compile.
1977 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1978 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1979 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1980 echo "${ECHO_T}$cross_compiling" >&6
1981
1982 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1983 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1985   (eval $ac_link) 2>&5
1986   ac_status=$?
1987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988   (exit $ac_status); }; then
1989   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1990 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1991 # work properly (i.e., refer to `conftest.exe'), while it won't with
1992 # `rm'.
1993 for ac_file in conftest.exe conftest conftest.*; do
1994   test -f "$ac_file" || continue
1995   case $ac_file in
1996     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1997     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1998           export ac_cv_exeext
1999           break;;
2000     * ) break;;
2001   esac
2002 done
2003 else
2004   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2005 See \`config.log' for more details." >&5
2006 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&2;}
2008    { (exit 1); exit 1; }; }
2009 fi
2010
2011 rm -f conftest$ac_cv_exeext
2012 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2013 echo "${ECHO_T}$ac_cv_exeext" >&6
2014
2015 rm -f conftest.$ac_ext
2016 EXEEXT=$ac_cv_exeext
2017 ac_exeext=$EXEEXT
2018 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2019 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2020 if test "${ac_cv_objext+set}" = set; then
2021   echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023   cat >conftest.$ac_ext <<_ACEOF
2024 /* confdefs.h.  */
2025 _ACEOF
2026 cat confdefs.h >>conftest.$ac_ext
2027 cat >>conftest.$ac_ext <<_ACEOF
2028 /* end confdefs.h.  */
2029
2030 int
2031 main ()
2032 {
2033
2034   ;
2035   return 0;
2036 }
2037 _ACEOF
2038 rm -f conftest.o conftest.obj
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040   (eval $ac_compile) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }; then
2044   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2045   case $ac_file in
2046     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2047     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2048        break;;
2049   esac
2050 done
2051 else
2052   echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2054
2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&5
2057 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&2;}
2059    { (exit 1); exit 1; }; }
2060 fi
2061
2062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2063 fi
2064 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2065 echo "${ECHO_T}$ac_cv_objext" >&6
2066 OBJEXT=$ac_cv_objext
2067 ac_objext=$OBJEXT
2068 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2069 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2070 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   cat >conftest.$ac_ext <<_ACEOF
2074 /* confdefs.h.  */
2075 _ACEOF
2076 cat confdefs.h >>conftest.$ac_ext
2077 cat >>conftest.$ac_ext <<_ACEOF
2078 /* end confdefs.h.  */
2079
2080 int
2081 main ()
2082 {
2083 #ifndef __GNUC__
2084        choke me
2085 #endif
2086
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 rm -f conftest.$ac_objext
2092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093   (eval $ac_compile) 2>conftest.er1
2094   ac_status=$?
2095   grep -v '^ *+' conftest.er1 >conftest.err
2096   rm -f conftest.er1
2097   cat conftest.err >&5
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); } &&
2100          { ac_try='test -z "$ac_c_werror_flag"
2101                          || test ! -s conftest.err'
2102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103   (eval $ac_try) 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); }; } &&
2107          { ac_try='test -s conftest.$ac_objext'
2108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109   (eval $ac_try) 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }; }; then
2113   ac_compiler_gnu=yes
2114 else
2115   echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2117
2118 ac_compiler_gnu=no
2119 fi
2120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2122
2123 fi
2124 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2125 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2126 GCC=`test $ac_compiler_gnu = yes && echo yes`
2127 ac_test_CFLAGS=${CFLAGS+set}
2128 ac_save_CFLAGS=$CFLAGS
2129 CFLAGS="-g"
2130 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2132 if test "${ac_cv_prog_cc_g+set}" = set; then
2133   echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135   cat >conftest.$ac_ext <<_ACEOF
2136 /* confdefs.h.  */
2137 _ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h.  */
2141
2142 int
2143 main ()
2144 {
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152   (eval $ac_compile) 2>conftest.er1
2153   ac_status=$?
2154   grep -v '^ *+' conftest.er1 >conftest.err
2155   rm -f conftest.er1
2156   cat conftest.err >&5
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); } &&
2159          { ac_try='test -z "$ac_c_werror_flag"
2160                          || test ! -s conftest.err'
2161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162   (eval $ac_try) 2>&5
2163   ac_status=$?
2164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165   (exit $ac_status); }; } &&
2166          { ac_try='test -s conftest.$ac_objext'
2167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168   (eval $ac_try) 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }; }; then
2172   ac_cv_prog_cc_g=yes
2173 else
2174   echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177 ac_cv_prog_cc_g=no
2178 fi
2179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2180 fi
2181 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2182 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2183 if test "$ac_test_CFLAGS" = set; then
2184   CFLAGS=$ac_save_CFLAGS
2185 elif test $ac_cv_prog_cc_g = yes; then
2186   if test "$GCC" = yes; then
2187     CFLAGS="-g -O2"
2188   else
2189     CFLAGS="-g"
2190   fi
2191 else
2192   if test "$GCC" = yes; then
2193     CFLAGS="-O2"
2194   else
2195     CFLAGS=
2196   fi
2197 fi
2198 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2199 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2200 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   ac_cv_prog_cc_stdc=no
2204 ac_save_CC=$CC
2205 cat >conftest.$ac_ext <<_ACEOF
2206 /* confdefs.h.  */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h.  */
2211 #include <stdarg.h>
2212 #include <stdio.h>
2213 #include <sys/types.h>
2214 #include <sys/stat.h>
2215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2216 struct buf { int x; };
2217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2218 static char *e (p, i)
2219      char **p;
2220      int i;
2221 {
2222   return p[i];
2223 }
2224 static char *f (char * (*g) (char **, int), char **p, ...)
2225 {
2226   char *s;
2227   va_list v;
2228   va_start (v,p);
2229   s = g (p, va_arg (v,int));
2230   va_end (v);
2231   return s;
2232 }
2233
2234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2235    function prototypes and stuff, but not '\xHH' hex character constants.
2236    These don't provoke an error unfortunately, instead are silently treated
2237    as 'x'.  The following induces an error, until -std1 is added to get
2238    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2239    array size at least.  It's necessary to write '\x00'==0 to get something
2240    that's true only with -std1.  */
2241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2242
2243 int test (int i, double x);
2244 struct s1 {int (*f) (int a);};
2245 struct s2 {int (*f) (double a);};
2246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2247 int argc;
2248 char **argv;
2249 int
2250 main ()
2251 {
2252 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 # Don't try gcc -ansi; that turns off useful extensions and
2258 # breaks some systems' header files.
2259 # AIX                   -qlanglvl=ansi
2260 # Ultrix and OSF/1      -std1
2261 # HP-UX 10.20 and later -Ae
2262 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2263 # SVR4                  -Xc -D__EXTENSIONS__
2264 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2265 do
2266   CC="$ac_save_CC $ac_arg"
2267   rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269   (eval $ac_compile) 2>conftest.er1
2270   ac_status=$?
2271   grep -v '^ *+' conftest.er1 >conftest.err
2272   rm -f conftest.er1
2273   cat conftest.err >&5
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); } &&
2276          { ac_try='test -z "$ac_c_werror_flag"
2277                          || test ! -s conftest.err'
2278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279   (eval $ac_try) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }; } &&
2283          { ac_try='test -s conftest.$ac_objext'
2284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285   (eval $ac_try) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }; }; then
2289   ac_cv_prog_cc_stdc=$ac_arg
2290 break
2291 else
2292   echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 fi
2296 rm -f conftest.err conftest.$ac_objext
2297 done
2298 rm -f conftest.$ac_ext conftest.$ac_objext
2299 CC=$ac_save_CC
2300
2301 fi
2302
2303 case "x$ac_cv_prog_cc_stdc" in
2304   x|xno)
2305     echo "$as_me:$LINENO: result: none needed" >&5
2306 echo "${ECHO_T}none needed" >&6 ;;
2307   *)
2308     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2309 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2310     CC="$CC $ac_cv_prog_cc_stdc" ;;
2311 esac
2312
2313 # Some people use a C++ compiler to compile C.  Since we use `exit',
2314 # in C++ we need to declare it.  In case someone uses the same compiler
2315 # for both compiling C and C++ we need to have the C++ compiler decide
2316 # the declaration of exit, since it's the most demanding environment.
2317 cat >conftest.$ac_ext <<_ACEOF
2318 #ifndef __cplusplus
2319   choke me
2320 #endif
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324   (eval $ac_compile) 2>conftest.er1
2325   ac_status=$?
2326   grep -v '^ *+' conftest.er1 >conftest.err
2327   rm -f conftest.er1
2328   cat conftest.err >&5
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); } &&
2331          { ac_try='test -z "$ac_c_werror_flag"
2332                          || test ! -s conftest.err'
2333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334   (eval $ac_try) 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; } &&
2338          { ac_try='test -s conftest.$ac_objext'
2339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340   (eval $ac_try) 2>&5
2341   ac_status=$?
2342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343   (exit $ac_status); }; }; then
2344   for ac_declaration in \
2345    '' \
2346    'extern "C" void std::exit (int) throw (); using std::exit;' \
2347    'extern "C" void std::exit (int); using std::exit;' \
2348    'extern "C" void exit (int) throw ();' \
2349    'extern "C" void exit (int);' \
2350    'void exit (int);'
2351 do
2352   cat >conftest.$ac_ext <<_ACEOF
2353 /* confdefs.h.  */
2354 _ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h.  */
2358 $ac_declaration
2359 #include <stdlib.h>
2360 int
2361 main ()
2362 {
2363 exit (42);
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370   (eval $ac_compile) 2>conftest.er1
2371   ac_status=$?
2372   grep -v '^ *+' conftest.er1 >conftest.err
2373   rm -f conftest.er1
2374   cat conftest.err >&5
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); } &&
2377          { ac_try='test -z "$ac_c_werror_flag"
2378                          || test ! -s conftest.err'
2379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380   (eval $ac_try) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); }; } &&
2384          { ac_try='test -s conftest.$ac_objext'
2385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386   (eval $ac_try) 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; }; then
2390   :
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 continue
2396 fi
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398   cat >conftest.$ac_ext <<_ACEOF
2399 /* confdefs.h.  */
2400 _ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h.  */
2404 $ac_declaration
2405 int
2406 main ()
2407 {
2408 exit (42);
2409   ;
2410   return 0;
2411 }
2412 _ACEOF
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415   (eval $ac_compile) 2>conftest.er1
2416   ac_status=$?
2417   grep -v '^ *+' conftest.er1 >conftest.err
2418   rm -f conftest.er1
2419   cat conftest.err >&5
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); } &&
2422          { ac_try='test -z "$ac_c_werror_flag"
2423                          || test ! -s conftest.err'
2424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425   (eval $ac_try) 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; }; then
2435   break
2436 else
2437   echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439
2440 fi
2441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2442 done
2443 rm -f conftest*
2444 if test -n "$ac_declaration"; then
2445   echo '#ifdef __cplusplus' >>confdefs.h
2446   echo $ac_declaration      >>confdefs.h
2447   echo '#endif'             >>confdefs.h
2448 fi
2449
2450 else
2451   echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454 fi
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456 ac_ext=c
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461
2462 ac_ext=cc
2463 ac_cpp='$CXXCPP $CPPFLAGS'
2464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2467 if test -n "$ac_tool_prefix"; then
2468   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2469   do
2470     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2472 echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_CXX+set}" = set; then
2475   echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477   if test -n "$CXX"; then
2478   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483   IFS=$as_save_IFS
2484   test -z "$as_dir" && as_dir=.
2485   for ac_exec_ext in '' $ac_executable_extensions; do
2486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489     break 2
2490   fi
2491 done
2492 done
2493
2494 fi
2495 fi
2496 CXX=$ac_cv_prog_CXX
2497 if test -n "$CXX"; then
2498   echo "$as_me:$LINENO: result: $CXX" >&5
2499 echo "${ECHO_T}$CXX" >&6
2500 else
2501   echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2503 fi
2504
2505     test -n "$CXX" && break
2506   done
2507 fi
2508 if test -z "$CXX"; then
2509   ac_ct_CXX=$CXX
2510   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2511 do
2512   # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test -n "$ac_ct_CXX"; then
2520   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527   for ac_exec_ext in '' $ac_executable_extensions; do
2528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529     ac_cv_prog_ac_ct_CXX="$ac_prog"
2530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534 done
2535
2536 fi
2537 fi
2538 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2539 if test -n "$ac_ct_CXX"; then
2540   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2541 echo "${ECHO_T}$ac_ct_CXX" >&6
2542 else
2543   echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2545 fi
2546
2547   test -n "$ac_ct_CXX" && break
2548 done
2549 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2550
2551   CXX=$ac_ct_CXX
2552 fi
2553
2554
2555 # Provide some information about the compiler.
2556 echo "$as_me:$LINENO:" \
2557      "checking for C++ compiler version" >&5
2558 ac_compiler=`set X $ac_compile; echo $2`
2559 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2560   (eval $ac_compiler --version </dev/null >&5) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }
2564 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2565   (eval $ac_compiler -v </dev/null >&5) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }
2569 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2570   (eval $ac_compiler -V </dev/null >&5) 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }
2574
2575 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2576 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2577 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2578   echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580   cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h.  */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h.  */
2586
2587 int
2588 main ()
2589 {
2590 #ifndef __GNUC__
2591        choke me
2592 #endif
2593
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600   (eval $ac_compile) 2>conftest.er1
2601   ac_status=$?
2602   grep -v '^ *+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -z "$ac_cxx_werror_flag"
2608                          || test ! -s conftest.err'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; } &&
2614          { ac_try='test -s conftest.$ac_objext'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; }; then
2620   ac_compiler_gnu=yes
2621 else
2622   echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2624
2625 ac_compiler_gnu=no
2626 fi
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2629
2630 fi
2631 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2632 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2633 GXX=`test $ac_compiler_gnu = yes && echo yes`
2634 ac_test_CXXFLAGS=${CXXFLAGS+set}
2635 ac_save_CXXFLAGS=$CXXFLAGS
2636 CXXFLAGS="-g"
2637 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2638 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2639 if test "${ac_cv_prog_cxx_g+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648
2649 int
2650 main ()
2651 {
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659   (eval $ac_compile) 2>conftest.er1
2660   ac_status=$?
2661   grep -v '^ *+' conftest.er1 >conftest.err
2662   rm -f conftest.er1
2663   cat conftest.err >&5
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); } &&
2666          { ac_try='test -z "$ac_cxx_werror_flag"
2667                          || test ! -s conftest.err'
2668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669   (eval $ac_try) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); }; } &&
2673          { ac_try='test -s conftest.$ac_objext'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; }; then
2679   ac_cv_prog_cxx_g=yes
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 ac_cv_prog_cxx_g=no
2685 fi
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 fi
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2690 if test "$ac_test_CXXFLAGS" = set; then
2691   CXXFLAGS=$ac_save_CXXFLAGS
2692 elif test $ac_cv_prog_cxx_g = yes; then
2693   if test "$GXX" = yes; then
2694     CXXFLAGS="-g -O2"
2695   else
2696     CXXFLAGS="-g"
2697   fi
2698 else
2699   if test "$GXX" = yes; then
2700     CXXFLAGS="-O2"
2701   else
2702     CXXFLAGS=
2703   fi
2704 fi
2705 for ac_declaration in \
2706    '' \
2707    'extern "C" void std::exit (int) throw (); using std::exit;' \
2708    'extern "C" void std::exit (int); using std::exit;' \
2709    'extern "C" void exit (int) throw ();' \
2710    'extern "C" void exit (int);' \
2711    'void exit (int);'
2712 do
2713   cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h.  */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h.  */
2719 $ac_declaration
2720 #include <stdlib.h>
2721 int
2722 main ()
2723 {
2724 exit (42);
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731   (eval $ac_compile) 2>conftest.er1
2732   ac_status=$?
2733   grep -v '^ *+' conftest.er1 >conftest.err
2734   rm -f conftest.er1
2735   cat conftest.err >&5
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); } &&
2738          { ac_try='test -z "$ac_cxx_werror_flag"
2739                          || test ! -s conftest.err'
2740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741   (eval $ac_try) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; } &&
2745          { ac_try='test -s conftest.$ac_objext'
2746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747   (eval $ac_try) 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; }; then
2751   :
2752 else
2753   echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 continue
2757 fi
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759   cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h.  */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h.  */
2765 $ac_declaration
2766 int
2767 main ()
2768 {
2769 exit (42);
2770   ;
2771   return 0;
2772 }
2773 _ACEOF
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776   (eval $ac_compile) 2>conftest.er1
2777   ac_status=$?
2778   grep -v '^ *+' conftest.er1 >conftest.err
2779   rm -f conftest.er1
2780   cat conftest.err >&5
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); } &&
2783          { ac_try='test -z "$ac_cxx_werror_flag"
2784                          || test ! -s conftest.err'
2785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; } &&
2790          { ac_try='test -s conftest.$ac_objext'
2791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792   (eval $ac_try) 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }; }; then
2796   break
2797 else
2798   echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801 fi
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803 done
2804 rm -f conftest*
2805 if test -n "$ac_declaration"; then
2806   echo '#ifdef __cplusplus' >>confdefs.h
2807   echo $ac_declaration      >>confdefs.h
2808   echo '#endif'             >>confdefs.h
2809 fi
2810
2811 ac_ext=c
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816
2817 if test "x$CC" != xcc; then
2818   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2819 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2820 else
2821   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2822 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2823 fi
2824 set dummy $CC; ac_cc=`echo $2 |
2825                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2826 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   cat >conftest.$ac_ext <<_ACEOF
2830 /* confdefs.h.  */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h.  */
2835
2836 int
2837 main ()
2838 {
2839
2840   ;
2841   return 0;
2842 }
2843 _ACEOF
2844 # Make sure it works both with $CC and with simple cc.
2845 # We do the test twice because some compilers refuse to overwrite an
2846 # existing .o file with -o, though they will create one.
2847 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); } &&
2853    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); };
2858 then
2859   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2860   if test "x$CC" != xcc; then
2861     # Test first that cc exists at all.
2862     if { ac_try='cc -c conftest.$ac_ext >&5'
2863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; }; then
2868       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2869       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); } &&
2874          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875   (eval $ac_try) 2>&5
2876   ac_status=$?
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); };
2879       then
2880         # cc works too.
2881         :
2882       else
2883         # cc exists but doesn't like -o.
2884         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2885       fi
2886     fi
2887   fi
2888 else
2889   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2890 fi
2891 rm -f conftest*
2892
2893 fi
2894 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2895   echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6
2897 else
2898   echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2900
2901 cat >>confdefs.h <<\_ACEOF
2902 #define NO_MINUS_C_MINUS_O 1
2903 _ACEOF
2904
2905 fi
2906
2907 ac_ext=c
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2913 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2914 # On Suns, sometimes $CPP names a directory.
2915 if test -n "$CPP" && test -d "$CPP"; then
2916   CPP=
2917 fi
2918 if test -z "$CPP"; then
2919   if test "${ac_cv_prog_CPP+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922       # Double quotes because CPP needs to be expanded
2923     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2924     do
2925       ac_preproc_ok=false
2926 for ac_c_preproc_warn_flag in '' yes
2927 do
2928   # Use a header file that comes with gcc, so configuring glibc
2929   # with a fresh cross-compiler works.
2930   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2931   # <limits.h> exists even on freestanding compilers.
2932   # On the NeXT, cc -E runs the code through the compiler's parser,
2933   # not just through cpp. "Syntax error" is here to catch this case.
2934   cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h.  */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h.  */
2940 #ifdef __STDC__
2941 # include <limits.h>
2942 #else
2943 # include <assert.h>
2944 #endif
2945                      Syntax error
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     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2958   else
2959     ac_cpp_err=
2960   fi
2961 else
2962   ac_cpp_err=yes
2963 fi
2964 if test -z "$ac_cpp_err"; then
2965   :
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970   # Broken: fails on valid input.
2971 continue
2972 fi
2973 rm -f conftest.err conftest.$ac_ext
2974
2975   # OK, works on sane cases.  Now check whether non-existent headers
2976   # can be detected and how.
2977   cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h.  */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h.  */
2983 #include <ac_nonexistent.h>
2984 _ACEOF
2985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } >/dev/null; then
2993   if test -s conftest.err; then
2994     ac_cpp_err=$ac_c_preproc_warn_flag
2995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2996   else
2997     ac_cpp_err=
2998   fi
2999 else
3000   ac_cpp_err=yes
3001 fi
3002 if test -z "$ac_cpp_err"; then
3003   # Broken: success on invalid input.
3004 continue
3005 else
3006   echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009   # Passes both tests.
3010 ac_preproc_ok=:
3011 break
3012 fi
3013 rm -f conftest.err conftest.$ac_ext
3014
3015 done
3016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3017 rm -f conftest.err conftest.$ac_ext
3018 if $ac_preproc_ok; then
3019   break
3020 fi
3021
3022     done
3023     ac_cv_prog_CPP=$CPP
3024
3025 fi
3026   CPP=$ac_cv_prog_CPP
3027 else
3028   ac_cv_prog_CPP=$CPP
3029 fi
3030 echo "$as_me:$LINENO: result: $CPP" >&5
3031 echo "${ECHO_T}$CPP" >&6
3032 ac_preproc_ok=false
3033 for ac_c_preproc_warn_flag in '' yes
3034 do
3035   # Use a header file that comes with gcc, so configuring glibc
3036   # with a fresh cross-compiler works.
3037   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3038   # <limits.h> exists even on freestanding compilers.
3039   # On the NeXT, cc -E runs the code through the compiler's parser,
3040   # not just through cpp. "Syntax error" is here to catch this case.
3041   cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h.  */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h.  */
3047 #ifdef __STDC__
3048 # include <limits.h>
3049 #else
3050 # include <assert.h>
3051 #endif
3052                      Syntax error
3053 _ACEOF
3054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3056   ac_status=$?
3057   grep -v '^ *+' conftest.er1 >conftest.err
3058   rm -f conftest.er1
3059   cat conftest.err >&5
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); } >/dev/null; then
3062   if test -s conftest.err; then
3063     ac_cpp_err=$ac_c_preproc_warn_flag
3064     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3065   else
3066     ac_cpp_err=
3067   fi
3068 else
3069   ac_cpp_err=yes
3070 fi
3071 if test -z "$ac_cpp_err"; then
3072   :
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077   # Broken: fails on valid input.
3078 continue
3079 fi
3080 rm -f conftest.err conftest.$ac_ext
3081
3082   # OK, works on sane cases.  Now check whether non-existent headers
3083   # can be detected and how.
3084   cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090 #include <ac_nonexistent.h>
3091 _ACEOF
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094   ac_status=$?
3095   grep -v '^ *+' conftest.er1 >conftest.err
3096   rm -f conftest.er1
3097   cat conftest.err >&5
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); } >/dev/null; then
3100   if test -s conftest.err; then
3101     ac_cpp_err=$ac_c_preproc_warn_flag
3102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103   else
3104     ac_cpp_err=
3105   fi
3106 else
3107   ac_cpp_err=yes
3108 fi
3109 if test -z "$ac_cpp_err"; then
3110   # Broken: success on invalid input.
3111 continue
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116   # Passes both tests.
3117 ac_preproc_ok=:
3118 break
3119 fi
3120 rm -f conftest.err conftest.$ac_ext
3121
3122 done
3123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3124 rm -f conftest.err conftest.$ac_ext
3125 if $ac_preproc_ok; then
3126   :
3127 else
3128   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&2;}
3132    { (exit 1); exit 1; }; }
3133 fi
3134
3135 ac_ext=c
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140
3141
3142 echo "$as_me:$LINENO: checking for egrep" >&5
3143 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3144 if test "${ac_cv_prog_egrep+set}" = set; then
3145   echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3148     then ac_cv_prog_egrep='grep -E'
3149     else ac_cv_prog_egrep='egrep'
3150     fi
3151 fi
3152 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3153 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3154  EGREP=$ac_cv_prog_egrep
3155
3156
3157 if test $ac_cv_c_compiler_gnu = yes; then
3158     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3159 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3160 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3161   echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163     ac_pattern="Autoconf.*'x'"
3164   cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h.  */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h.  */
3170 #include <sgtty.h>
3171 Autoconf TIOCGETP
3172 _ACEOF
3173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3174   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3175   ac_cv_prog_gcc_traditional=yes
3176 else
3177   ac_cv_prog_gcc_traditional=no
3178 fi
3179 rm -f conftest*
3180
3181
3182   if test $ac_cv_prog_gcc_traditional = no; then
3183     cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h.  */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h.  */
3189 #include <termio.h>
3190 Autoconf TCGETA
3191 _ACEOF
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3194   ac_cv_prog_gcc_traditional=yes
3195 fi
3196 rm -f conftest*
3197
3198   fi
3199 fi
3200 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3201 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3202   if test $ac_cv_prog_gcc_traditional = yes; then
3203     CC="$CC -traditional"
3204   fi
3205 fi
3206
3207 if test "x$CC" = xgcc
3208 then
3209    cat >>confdefs.h <<\_ACEOF
3210 #define HAVE_GCC 1
3211 _ACEOF
3212
3213 fi
3214
3215 # Find a good install program.  We prefer a C program (faster),
3216 # so one script is as good as another.  But avoid the broken or
3217 # incompatible versions:
3218 # SysV /etc/install, /usr/sbin/install
3219 # SunOS /usr/etc/install
3220 # IRIX /sbin/install
3221 # AIX /bin/install
3222 # AmigaOS /C/install, which installs bootblocks on floppy discs
3223 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3224 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3225 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3226 # OS/2's system install, which has a completely different semantic
3227 # ./install, which can be erroneously created by make from ./install.sh.
3228 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3229 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3230 if test -z "$INSTALL"; then
3231 if test "${ac_cv_path_install+set}" = set; then
3232   echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237   IFS=$as_save_IFS
3238   test -z "$as_dir" && as_dir=.
3239   # Account for people who put trailing slashes in PATH elements.
3240 case $as_dir/ in
3241   ./ | .// | /cC/* | \
3242   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3243   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3244   /usr/ucb/* ) ;;
3245   *)
3246     # OSF1 and SCO ODT 3.0 have their own names for install.
3247     # Don't use installbsd from OSF since it installs stuff as root
3248     # by default.
3249     for ac_prog in ginstall scoinst install; do
3250       for ac_exec_ext in '' $ac_executable_extensions; do
3251         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3252           if test $ac_prog = install &&
3253             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3254             # AIX install.  It has an incompatible calling convention.
3255             :
3256           elif test $ac_prog = install &&
3257             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3258             # program-specific install script used by HP pwplus--don't use.
3259             :
3260           else
3261             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3262             break 3
3263           fi
3264         fi
3265       done
3266     done
3267     ;;
3268 esac
3269 done
3270
3271
3272 fi
3273   if test "${ac_cv_path_install+set}" = set; then
3274     INSTALL=$ac_cv_path_install
3275   else
3276     # As a last resort, use the slow shell script.  We don't cache a
3277     # path for INSTALL within a source directory, because that will
3278     # break other packages using the cache if that directory is
3279     # removed, or if the path is relative.
3280     INSTALL=$ac_install_sh
3281   fi
3282 fi
3283 echo "$as_me:$LINENO: result: $INSTALL" >&5
3284 echo "${ECHO_T}$INSTALL" >&6
3285
3286 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3287 # It thinks the first close brace ends the variable substitution.
3288 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3289
3290 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3291
3292 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3293
3294 if test -n "$ac_tool_prefix"; then
3295   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3297 echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3299 if test "${ac_cv_prog_RANLIB+set}" = set; then
3300   echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302   if test -n "$RANLIB"; then
3303   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308   IFS=$as_save_IFS
3309   test -z "$as_dir" && as_dir=.
3310   for ac_exec_ext in '' $ac_executable_extensions; do
3311   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314     break 2
3315   fi
3316 done
3317 done
3318
3319 fi
3320 fi
3321 RANLIB=$ac_cv_prog_RANLIB
3322 if test -n "$RANLIB"; then
3323   echo "$as_me:$LINENO: result: $RANLIB" >&5
3324 echo "${ECHO_T}$RANLIB" >&6
3325 else
3326   echo "$as_me:$LINENO: result: no" >&5
3327 echo "${ECHO_T}no" >&6
3328 fi
3329
3330 fi
3331 if test -z "$ac_cv_prog_RANLIB"; then
3332   ac_ct_RANLIB=$RANLIB
3333   # Extract the first word of "ranlib", so it can be a program name with args.
3334 set dummy ranlib; ac_word=$2
3335 echo "$as_me:$LINENO: checking for $ac_word" >&5
3336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3337 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3338   echo $ECHO_N "(cached) $ECHO_C" >&6
3339 else
3340   if test -n "$ac_ct_RANLIB"; then
3341   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3342 else
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3345 do
3346   IFS=$as_save_IFS
3347   test -z "$as_dir" && as_dir=.
3348   for ac_exec_ext in '' $ac_executable_extensions; do
3349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350     ac_cv_prog_ac_ct_RANLIB="ranlib"
3351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352     break 2
3353   fi
3354 done
3355 done
3356
3357   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3358 fi
3359 fi
3360 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3361 if test -n "$ac_ct_RANLIB"; then
3362   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3363 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3364 else
3365   echo "$as_me:$LINENO: result: no" >&5
3366 echo "${ECHO_T}no" >&6
3367 fi
3368
3369   RANLIB=$ac_ct_RANLIB
3370 else
3371   RANLIB="$ac_cv_prog_RANLIB"
3372 fi
3373
3374 # Extract the first word of "mv", so it can be a program name with args.
3375 set dummy mv; ac_word=$2
3376 echo "$as_me:$LINENO: checking for $ac_word" >&5
3377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378 if test "${ac_cv_path_MV+set}" = set; then
3379   echo $ECHO_N "(cached) $ECHO_C" >&6
3380 else
3381   case $MV in
3382   [\\/]* | ?:[\\/]*)
3383   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3384   ;;
3385   *)
3386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399
3400   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3401   ;;
3402 esac
3403 fi
3404 MV=$ac_cv_path_MV
3405
3406 if test -n "$MV"; then
3407   echo "$as_me:$LINENO: result: $MV" >&5
3408 echo "${ECHO_T}$MV" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414 # Extract the first word of "rm", so it can be a program name with args.
3415 set dummy rm; ac_word=$2
3416 echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3418 if test "${ac_cv_path_RM+set}" = set; then
3419   echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421   case $RM in
3422   [\\/]* | ?:[\\/]*)
3423   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3424   ;;
3425   *)
3426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for ac_exec_ext in '' $ac_executable_extensions; do
3432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435     break 2
3436   fi
3437 done
3438 done
3439
3440   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3441   ;;
3442 esac
3443 fi
3444 RM=$ac_cv_path_RM
3445
3446 if test -n "$RM"; then
3447   echo "$as_me:$LINENO: result: $RM" >&5
3448 echo "${ECHO_T}$RM" >&6
3449 else
3450   echo "$as_me:$LINENO: result: no" >&5
3451 echo "${ECHO_T}no" >&6
3452 fi
3453
3454 # Extract the first word of "cp", so it can be a program name with args.
3455 set dummy cp; ac_word=$2
3456 echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458 if test "${ac_cv_path_CP+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   case $CP in
3462   [\\/]* | ?:[\\/]*)
3463   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3464   ;;
3465   *)
3466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3468 do
3469   IFS=$as_save_IFS
3470   test -z "$as_dir" && as_dir=.
3471   for ac_exec_ext in '' $ac_executable_extensions; do
3472   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475     break 2
3476   fi
3477 done
3478 done
3479
3480   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3481   ;;
3482 esac
3483 fi
3484 CP=$ac_cv_path_CP
3485
3486 if test -n "$CP"; then
3487   echo "$as_me:$LINENO: result: $CP" >&5
3488 echo "${ECHO_T}$CP" >&6
3489 else
3490   echo "$as_me:$LINENO: result: no" >&5
3491 echo "${ECHO_T}no" >&6
3492 fi
3493
3494 # Extract the first word of "sed", so it can be a program name with args.
3495 set dummy sed; ac_word=$2
3496 echo "$as_me:$LINENO: checking for $ac_word" >&5
3497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3498 if test "${ac_cv_path_SED+set}" = set; then
3499   echo $ECHO_N "(cached) $ECHO_C" >&6
3500 else
3501   case $SED in
3502   [\\/]* | ?:[\\/]*)
3503   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3504   ;;
3505   *)
3506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511   for ac_exec_ext in '' $ac_executable_extensions; do
3512   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515     break 2
3516   fi
3517 done
3518 done
3519
3520   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3521   ;;
3522 esac
3523 fi
3524 SED=$ac_cv_path_SED
3525
3526 if test -n "$SED"; then
3527   echo "$as_me:$LINENO: result: $SED" >&5
3528 echo "${ECHO_T}$SED" >&6
3529 else
3530   echo "$as_me:$LINENO: result: no" >&5
3531 echo "${ECHO_T}no" >&6
3532 fi
3533
3534 # Extract the first word of "echo", so it can be a program name with args.
3535 set dummy echo; ac_word=$2
3536 echo "$as_me:$LINENO: checking for $ac_word" >&5
3537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3538 if test "${ac_cv_path_ECHO+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   case $ECHO in
3542   [\\/]* | ?:[\\/]*)
3543   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3544   ;;
3545   *)
3546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551   for ac_exec_ext in '' $ac_executable_extensions; do
3552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558 done
3559
3560   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3561   ;;
3562 esac
3563 fi
3564 ECHO=$ac_cv_path_ECHO
3565
3566 if test -n "$ECHO"; then
3567   echo "$as_me:$LINENO: result: $ECHO" >&5
3568 echo "${ECHO_T}$ECHO" >&6
3569 else
3570   echo "$as_me:$LINENO: result: no" >&5
3571 echo "${ECHO_T}no" >&6
3572 fi
3573
3574 # Extract the first word of "cmp", so it can be a program name with args.
3575 set dummy cmp; ac_word=$2
3576 echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_path_CMP+set}" = set; then
3579   echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581   case $CMP in
3582   [\\/]* | ?:[\\/]*)
3583   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3584   ;;
3585   *)
3586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599
3600   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3601   ;;
3602 esac
3603 fi
3604 CMP=$ac_cv_path_CMP
3605
3606 if test -n "$CMP"; then
3607   echo "$as_me:$LINENO: result: $CMP" >&5
3608 echo "${ECHO_T}$CMP" >&6
3609 else
3610   echo "$as_me:$LINENO: result: no" >&5
3611 echo "${ECHO_T}no" >&6
3612 fi
3613
3614 # Extract the first word of "tbl", so it can be a program name with args.
3615 set dummy tbl; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_path_TBL+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   case $TBL in
3622   [\\/]* | ?:[\\/]*)
3623   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3624   ;;
3625   *)
3626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3628 do
3629   IFS=$as_save_IFS
3630   test -z "$as_dir" && as_dir=.
3631   for ac_exec_ext in '' $ac_executable_extensions; do
3632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635     break 2
3636   fi
3637 done
3638 done
3639
3640   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3641   ;;
3642 esac
3643 fi
3644 TBL=$ac_cv_path_TBL
3645
3646 if test -n "$TBL"; then
3647   echo "$as_me:$LINENO: result: $TBL" >&5
3648 echo "${ECHO_T}$TBL" >&6
3649 else
3650   echo "$as_me:$LINENO: result: no" >&5
3651 echo "${ECHO_T}no" >&6
3652 fi
3653
3654 # Extract the first word of "ar", so it can be a program name with args.
3655 set dummy ar; ac_word=$2
3656 echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3658 if test "${ac_cv_path_AR+set}" = set; then
3659   echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661   case $AR in
3662   [\\/]* | ?:[\\/]*)
3663   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3664   ;;
3665   *)
3666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671   for ac_exec_ext in '' $ac_executable_extensions; do
3672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3673     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675     break 2
3676   fi
3677 done
3678 done
3679
3680   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3681   ;;
3682 esac
3683 fi
3684 AR=$ac_cv_path_AR
3685
3686 if test -n "$AR"; then
3687   echo "$as_me:$LINENO: result: $AR" >&5
3688 echo "${ECHO_T}$AR" >&6
3689 else
3690   echo "$as_me:$LINENO: result: no" >&5
3691 echo "${ECHO_T}no" >&6
3692 fi
3693
3694 # Extract the first word of "openssl", so it can be a program name with args.
3695 set dummy openssl; ac_word=$2
3696 echo "$as_me:$LINENO: checking for $ac_word" >&5
3697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3698 if test "${ac_cv_path_OPENSSL+set}" = set; then
3699   echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701   case $OPENSSL in
3702   [\\/]* | ?:[\\/]*)
3703   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3704   ;;
3705   *)
3706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH
3708 do
3709   IFS=$as_save_IFS
3710   test -z "$as_dir" && as_dir=.
3711   for ac_exec_ext in '' $ac_executable_extensions; do
3712   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3713     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715     break 2
3716   fi
3717 done
3718 done
3719
3720   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3721   ;;
3722 esac
3723 fi
3724 OPENSSL=$ac_cv_path_OPENSSL
3725
3726 if test -n "$OPENSSL"; then
3727   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3728 echo "${ECHO_T}$OPENSSL" >&6
3729 else
3730   echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3732 fi
3733
3734 # Extract the first word of "mtx", so it can be a program name with args.
3735 set dummy mtx; ac_word=$2
3736 echo "$as_me:$LINENO: checking for $ac_word" >&5
3737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3738 if test "${ac_cv_path_MTX+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   case $MTX in
3742   [\\/]* | ?:[\\/]*)
3743   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3744   ;;
3745   *)
3746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3748 do
3749   IFS=$as_save_IFS
3750   test -z "$as_dir" && as_dir=.
3751   for ac_exec_ext in '' $ac_executable_extensions; do
3752   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3754     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755     break 2
3756   fi
3757 done
3758 done
3759
3760   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3761   ;;
3762 esac
3763 fi
3764 MTX=$ac_cv_path_MTX
3765
3766 if test -n "$MTX"; then
3767   echo "$as_me:$LINENO: result: $MTX" >&5
3768 echo "${ECHO_T}$MTX" >&6
3769 else
3770   echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3772 fi
3773
3774 # Extract the first word of "mkisofs", so it can be a program name with args.
3775 set dummy mkisofs; ac_word=$2
3776 echo "$as_me:$LINENO: checking for $ac_word" >&5
3777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3778 if test "${ac_cv_path_MKISOFS+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   case $MKISOFS in
3782   [\\/]* | ?:[\\/]*)
3783   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3784   ;;
3785   *)
3786   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3788 do
3789   IFS=$as_save_IFS
3790   test -z "$as_dir" && as_dir=.
3791   for ac_exec_ext in '' $ac_executable_extensions; do
3792   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3794     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795     break 2
3796   fi
3797 done
3798 done
3799
3800   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3801   ;;
3802 esac
3803 fi
3804 MKISOFS=$ac_cv_path_MKISOFS
3805
3806 if test -n "$MKISOFS"; then
3807   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3808 echo "${ECHO_T}$MKISOFS" >&6
3809 else
3810   echo "$as_me:$LINENO: result: no" >&5
3811 echo "${ECHO_T}no" >&6
3812 fi
3813
3814 # Extract the first word of "python", so it can be a program name with args.
3815 set dummy python; ac_word=$2
3816 echo "$as_me:$LINENO: checking for $ac_word" >&5
3817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3818 if test "${ac_cv_path_PYTHON+set}" = set; then
3819   echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821   case $PYTHON in
3822   [\\/]* | ?:[\\/]*)
3823   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3824   ;;
3825   *)
3826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH
3828 do
3829   IFS=$as_save_IFS
3830   test -z "$as_dir" && as_dir=.
3831   for ac_exec_ext in '' $ac_executable_extensions; do
3832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835     break 2
3836   fi
3837 done
3838 done
3839
3840   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3841   ;;
3842 esac
3843 fi
3844 PYTHON=$ac_cv_path_PYTHON
3845
3846 if test -n "$PYTHON"; then
3847   echo "$as_me:$LINENO: result: $PYTHON" >&5
3848 echo "${ECHO_T}$PYTHON" >&6
3849 else
3850   echo "$as_me:$LINENO: result: no" >&5
3851 echo "${ECHO_T}no" >&6
3852 fi
3853
3854 # Extract the first word of "growisofs", so it can be a program name with args.
3855 set dummy growisofs; ac_word=$2
3856 echo "$as_me:$LINENO: checking for $ac_word" >&5
3857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3858 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3859   echo $ECHO_N "(cached) $ECHO_C" >&6
3860 else
3861   case $GROWISOFS in
3862   [\\/]* | ?:[\\/]*)
3863   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3864   ;;
3865   *)
3866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH
3868 do
3869   IFS=$as_save_IFS
3870   test -z "$as_dir" && as_dir=.
3871   for ac_exec_ext in '' $ac_executable_extensions; do
3872   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3873     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3875     break 2
3876   fi
3877 done
3878 done
3879
3880   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3881   ;;
3882 esac
3883 fi
3884 GROWISOFS=$ac_cv_path_GROWISOFS
3885
3886 if test -n "$GROWISOFS"; then
3887   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3888 echo "${ECHO_T}$GROWISOFS" >&6
3889 else
3890   echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6
3892 fi
3893
3894 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3895 set dummy dvd+rw-mediainfo; ac_word=$2
3896 echo "$as_me:$LINENO: checking for $ac_word" >&5
3897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3899   echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901   case $DVDRWMEDIAINFO in
3902   [\\/]* | ?:[\\/]*)
3903   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3904   ;;
3905   *)
3906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909   IFS=$as_save_IFS
3910   test -z "$as_dir" && as_dir=.
3911   for ac_exec_ext in '' $ac_executable_extensions; do
3912   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915     break 2
3916   fi
3917 done
3918 done
3919
3920   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3921   ;;
3922 esac
3923 fi
3924 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3925
3926 if test -n "$DVDRWMEDIAINFO"; then
3927   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3928 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3929 else
3930   echo "$as_me:$LINENO: result: no" >&5
3931 echo "${ECHO_T}no" >&6
3932 fi
3933
3934 # Extract the first word of "pkg-config", so it can be a program name with args.
3935 set dummy pkg-config; ac_word=$2
3936 echo "$as_me:$LINENO: checking for $ac_word" >&5
3937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3938 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3939   echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941   case $PKGCONFIG in
3942   [\\/]* | ?:[\\/]*)
3943   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3944   ;;
3945   *)
3946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3948 do
3949   IFS=$as_save_IFS
3950   test -z "$as_dir" && as_dir=.
3951   for ac_exec_ext in '' $ac_executable_extensions; do
3952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955     break 2
3956   fi
3957 done
3958 done
3959
3960   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3961   ;;
3962 esac
3963 fi
3964 PKGCONFIG=$ac_cv_path_PKGCONFIG
3965
3966 if test -n "$PKGCONFIG"; then
3967   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3968 echo "${ECHO_T}$PKGCONFIG" >&6
3969 else
3970   echo "$as_me:$LINENO: result: no" >&5
3971 echo "${ECHO_T}no" >&6
3972 fi
3973
3974
3975 if test "x$WXCONFIG" = x; then
3976   WXCONFIG=wx-config
3977 fi
3978 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
3979 set dummy ${WXCONFIG}; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   case $WXCONFIG in
3986   [\\/]* | ?:[\\/]*)
3987   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3988   ;;
3989   *)
3990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002 done
4003
4004   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4005   ;;
4006 esac
4007 fi
4008 WXCONFIG=$ac_cv_path_WXCONFIG
4009
4010 if test -n "$WXCONFIG"; then
4011   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4012 echo "${ECHO_T}$WXCONFIG" >&6
4013 else
4014   echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4016 fi
4017
4018
4019 # Extract the first word of "cdrecord", so it can be a program name with args.
4020 set dummy cdrecord; ac_word=$2
4021 echo "$as_me:$LINENO: checking for $ac_word" >&5
4022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4023 if test "${ac_cv_path_CDRECORD+set}" = set; then
4024   echo $ECHO_N "(cached) $ECHO_C" >&6
4025 else
4026   case $CDRECORD in
4027   [\\/]* | ?:[\\/]*)
4028   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4029   ;;
4030   *)
4031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034   IFS=$as_save_IFS
4035   test -z "$as_dir" && as_dir=.
4036   for ac_exec_ext in '' $ac_executable_extensions; do
4037   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4040     break 2
4041   fi
4042 done
4043 done
4044
4045   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4046   ;;
4047 esac
4048 fi
4049 CDRECORD=$ac_cv_path_CDRECORD
4050
4051 if test -n "$CDRECORD"; then
4052   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4053 echo "${ECHO_T}$CDRECORD" >&6
4054 else
4055   echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4057 fi
4058
4059 # Extract the first word of "pidof", so it can be a program name with args.
4060 set dummy pidof; ac_word=$2
4061 echo "$as_me:$LINENO: checking for $ac_word" >&5
4062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4063 if test "${ac_cv_path_PIDOF+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066   case $PIDOF in
4067   [\\/]* | ?:[\\/]*)
4068   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4069   ;;
4070   *)
4071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074   IFS=$as_save_IFS
4075   test -z "$as_dir" && as_dir=.
4076   for ac_exec_ext in '' $ac_executable_extensions; do
4077   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080     break 2
4081   fi
4082 done
4083 done
4084
4085   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4086   ;;
4087 esac
4088 fi
4089 PIDOF=$ac_cv_path_PIDOF
4090
4091 if test -n "$PIDOF"; then
4092   echo "$as_me:$LINENO: result: $PIDOF" >&5
4093 echo "${ECHO_T}$PIDOF" >&6
4094 else
4095   echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4097 fi
4098
4099 for ac_prog in gawk mawk nawk awk
4100 do
4101   # Extract the first word of "$ac_prog", so it can be a program name with args.
4102 set dummy $ac_prog; ac_word=$2
4103 echo "$as_me:$LINENO: checking for $ac_word" >&5
4104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4105 if test "${ac_cv_prog_AWK+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   if test -n "$AWK"; then
4109   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4113 do
4114   IFS=$as_save_IFS
4115   test -z "$as_dir" && as_dir=.
4116   for ac_exec_ext in '' $ac_executable_extensions; do
4117   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118     ac_cv_prog_AWK="$ac_prog"
4119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120     break 2
4121   fi
4122 done
4123 done
4124
4125 fi
4126 fi
4127 AWK=$ac_cv_prog_AWK
4128 if test -n "$AWK"; then
4129   echo "$as_me:$LINENO: result: $AWK" >&5
4130 echo "${ECHO_T}$AWK" >&6
4131 else
4132   echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4134 fi
4135
4136   test -n "$AWK" && break
4137 done
4138
4139 # Some AWK programs fail, so test it and warn the user
4140 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4141       { if ((prog == $2) || (("(" prog ")") == $2) ||
4142            (("" prog "") == $2) ||
4143            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4144 else
4145   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4146    The regex engine of $AWK is too broken to be used you
4147    might want to install GNU AWK.
4148    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4149 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4150    The regex engine of $AWK is too broken to be used you
4151    might want to install GNU AWK.
4152    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4153    { (exit 1); exit 1; }; }
4154 fi
4155 THE_AWK=$AWK
4156 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4157 set dummy $THE_AWK; ac_word=$2
4158 echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4160 if test "${ac_cv_path_AWK+set}" = set; then
4161   echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163   case $AWK in
4164   [\\/]* | ?:[\\/]*)
4165   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4166   ;;
4167   *)
4168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH
4170 do
4171   IFS=$as_save_IFS
4172   test -z "$as_dir" && as_dir=.
4173   for ac_exec_ext in '' $ac_executable_extensions; do
4174   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4176     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4177     break 2
4178   fi
4179 done
4180 done
4181
4182   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4183   ;;
4184 esac
4185 fi
4186 AWK=$ac_cv_path_AWK
4187
4188 if test -n "$AWK"; then
4189   echo "$as_me:$LINENO: result: $AWK" >&5
4190 echo "${ECHO_T}$AWK" >&6
4191 else
4192   echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4194 fi
4195
4196
4197 test -n "$ARFLAG" || ARFLAGS="cr"
4198
4199
4200 MAKE_SHELL=/bin/sh
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210 # Make sure we can run config.sub.
4211 $ac_config_sub sun4 >/dev/null 2>&1 ||
4212   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4213 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4214    { (exit 1); exit 1; }; }
4215
4216 echo "$as_me:$LINENO: checking build system type" >&5
4217 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4218 if test "${ac_cv_build+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   ac_cv_build_alias=$build_alias
4222 test -z "$ac_cv_build_alias" &&
4223   ac_cv_build_alias=`$ac_config_guess`
4224 test -z "$ac_cv_build_alias" &&
4225   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4226 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4227    { (exit 1); exit 1; }; }
4228 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4229   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4230 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4231    { (exit 1); exit 1; }; }
4232
4233 fi
4234 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4235 echo "${ECHO_T}$ac_cv_build" >&6
4236 build=$ac_cv_build
4237 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4238 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4239 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4240
4241
4242
4243 echo "$as_me:$LINENO: checking host system type" >&5
4244 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4245 if test "${ac_cv_host+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   ac_cv_host_alias=$host_alias
4249 test -z "$ac_cv_host_alias" &&
4250   ac_cv_host_alias=$ac_cv_build_alias
4251 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4252   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4253 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4254    { (exit 1); exit 1; }; }
4255
4256 fi
4257 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4258 echo "${ECHO_T}$ac_cv_host" >&6
4259 host=$ac_cv_host
4260 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4261 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4262 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4263
4264
4265 case $host_os in
4266   *cygwin* ) CYGWIN=yes;;
4267          * ) CYGWIN=no;;
4268 esac
4269
4270 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4271 then
4272
4273
4274 if $TRUEPRG; then
4275   HAVE_SUN_OS_TRUE=
4276   HAVE_SUN_OS_FALSE='#'
4277 else
4278   HAVE_SUN_OS_TRUE='#'
4279   HAVE_SUN_OS_FALSE=
4280 fi
4281         cat >>confdefs.h <<\_ACEOF
4282 #define HAVE_SUN_OS 1
4283 _ACEOF
4284
4285 else
4286
4287
4288 if $FALSEPRG; then
4289   HAVE_SUN_OS_TRUE=
4290   HAVE_SUN_OS_FALSE='#'
4291 else
4292   HAVE_SUN_OS_TRUE='#'
4293   HAVE_SUN_OS_FALSE=
4294 fi
4295 fi
4296
4297 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4298 then
4299
4300
4301 if $TRUEPRG; then
4302   HAVE_OSF1_OS_TRUE=
4303   HAVE_OSF1_OS_FALSE='#'
4304 else
4305   HAVE_OSF1_OS_TRUE='#'
4306   HAVE_OSF1_OS_FALSE=
4307 fi
4308         cat >>confdefs.h <<\_ACEOF
4309 #define HAVE_OSF1_OS 1
4310 _ACEOF
4311
4312 else
4313
4314
4315 if $FALSEPRG; then
4316   HAVE_OSF1_OS_TRUE=
4317   HAVE_OSF1_OS_FALSE='#'
4318 else
4319   HAVE_OSF1_OS_TRUE='#'
4320   HAVE_OSF1_OS_FALSE=
4321 fi
4322 fi
4323
4324 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4325 then
4326
4327
4328 if $TRUEPRG; then
4329   HAVE_AIX_OS_TRUE=
4330   HAVE_AIX_OS_FALSE='#'
4331 else
4332   HAVE_AIX_OS_TRUE='#'
4333   HAVE_AIX_OS_FALSE=
4334 fi
4335         cat >>confdefs.h <<\_ACEOF
4336 #define HAVE_AIX_OS 1
4337 _ACEOF
4338
4339 else
4340
4341
4342 if $FALSEPRG; then
4343   HAVE_AIX_OS_TRUE=
4344   HAVE_AIX_OS_FALSE='#'
4345 else
4346   HAVE_AIX_OS_TRUE='#'
4347   HAVE_AIX_OS_FALSE=
4348 fi
4349 fi
4350
4351 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4352 then
4353
4354
4355 if $TRUEPRG; then
4356   HAVE_HPUX_OS_TRUE=
4357   HAVE_HPUX_OS_FALSE='#'
4358 else
4359   HAVE_HPUX_OS_TRUE='#'
4360   HAVE_HPUX_OS_FALSE=
4361 fi
4362         cat >>confdefs.h <<\_ACEOF
4363 #define HAVE_HPUX_OS 1
4364 _ACEOF
4365
4366 else
4367
4368
4369 if $FALSEPRG; then
4370   HAVE_HPUX_OS_TRUE=
4371   HAVE_HPUX_OS_FALSE='#'
4372 else
4373   HAVE_HPUX_OS_TRUE='#'
4374   HAVE_HPUX_OS_FALSE=
4375 fi
4376 fi
4377
4378 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4379 then
4380
4381
4382 if $TRUEPRG; then
4383   HAVE_LINUX_OS_TRUE=
4384   HAVE_LINUX_OS_FALSE='#'
4385 else
4386   HAVE_LINUX_OS_TRUE='#'
4387   HAVE_LINUX_OS_FALSE=
4388 fi
4389         cat >>confdefs.h <<\_ACEOF
4390 #define HAVE_LINUX_OS 1
4391 _ACEOF
4392
4393 else
4394
4395
4396 if $FALSEPRG; then
4397   HAVE_LINUX_OS_TRUE=
4398   HAVE_LINUX_OS_FALSE='#'
4399 else
4400   HAVE_LINUX_OS_TRUE='#'
4401   HAVE_LINUX_OS_FALSE=
4402 fi
4403 fi
4404
4405 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4406 then
4407
4408
4409 if $TRUEPRG; then
4410   HAVE_FREEBSD_OS_TRUE=
4411   HAVE_FREEBSD_OS_FALSE='#'
4412 else
4413   HAVE_FREEBSD_OS_TRUE='#'
4414   HAVE_FREEBSD_OS_FALSE=
4415 fi
4416         cat >>confdefs.h <<\_ACEOF
4417 #define HAVE_FREEBSD_OS 1
4418 _ACEOF
4419
4420 else
4421
4422
4423 if $FALSEPRG; then
4424   HAVE_FREEBSD_OS_TRUE=
4425   HAVE_FREEBSD_OS_FALSE='#'
4426 else
4427   HAVE_FREEBSD_OS_TRUE='#'
4428   HAVE_FREEBSD_OS_FALSE=
4429 fi
4430 fi
4431
4432 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4433 then
4434
4435
4436 if $TRUEPRG; then
4437   HAVE_NETBSD_OS_TRUE=
4438   HAVE_NETBSD_OS_FALSE='#'
4439 else
4440   HAVE_NETBSD_OS_TRUE='#'
4441   HAVE_NETBSD_OS_FALSE=
4442 fi
4443         cat >>confdefs.h <<\_ACEOF
4444 #define HAVE_NETBSD_OS 1
4445 _ACEOF
4446
4447 else
4448
4449
4450 if $FALSEPRG; then
4451   HAVE_NETBSD_OS_TRUE=
4452   HAVE_NETBSD_OS_FALSE='#'
4453 else
4454   HAVE_NETBSD_OS_TRUE='#'
4455   HAVE_NETBSD_OS_FALSE=
4456 fi
4457 fi
4458
4459 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4460 then
4461
4462
4463 if $TRUEPRG; then
4464   HAVE_OPENBSD_OS_TRUE=
4465   HAVE_OPENBSD_OS_FALSE='#'
4466 else
4467   HAVE_OPENBSD_OS_TRUE='#'
4468   HAVE_OPENBSD_OS_FALSE=
4469 fi
4470         cat >>confdefs.h <<\_ACEOF
4471 #define HAVE_OPENBSD_OS 1
4472 _ACEOF
4473
4474 else
4475
4476
4477 if $FALSEPRG; then
4478   HAVE_OPENBSD_OS_TRUE=
4479   HAVE_OPENBSD_OS_FALSE='#'
4480 else
4481   HAVE_OPENBSD_OS_TRUE='#'
4482   HAVE_OPENBSD_OS_FALSE=
4483 fi
4484 fi
4485
4486 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4487 then
4488
4489
4490 if $TRUEPRG; then
4491   HAVE_BSDI_OS_TRUE=
4492   HAVE_BSDI_OS_FALSE='#'
4493 else
4494   HAVE_BSDI_OS_TRUE='#'
4495   HAVE_BSDI_OS_FALSE=
4496 fi
4497         cat >>confdefs.h <<\_ACEOF
4498 #define HAVE_BSDI_OS 1
4499 _ACEOF
4500
4501 else
4502
4503
4504 if $FALSEPRG; then
4505   HAVE_BSDI_OS_TRUE=
4506   HAVE_BSDI_OS_FALSE='#'
4507 else
4508   HAVE_BSDI_OS_TRUE='#'
4509   HAVE_BSDI_OS_FALSE=
4510 fi
4511 fi
4512
4513 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4514 then
4515
4516
4517 if $TRUEPRG; then
4518   HAVE_SGI_OS_TRUE=
4519   HAVE_SGI_OS_FALSE='#'
4520 else
4521   HAVE_SGI_OS_TRUE='#'
4522   HAVE_SGI_OS_FALSE=
4523 fi
4524         cat >>confdefs.h <<\_ACEOF
4525 #define HAVE_SGI_OS 1
4526 _ACEOF
4527
4528 else
4529
4530
4531 if $FALSEPRG; then
4532   HAVE_SGI_OS_TRUE=
4533   HAVE_SGI_OS_FALSE='#'
4534 else
4535   HAVE_SGI_OS_TRUE='#'
4536   HAVE_SGI_OS_FALSE=
4537 fi
4538 fi
4539
4540 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4541 then
4542
4543
4544 if $TRUEPRG; then
4545   HAVE_IRIX_OS_TRUE=
4546   HAVE_IRIX_OS_FALSE='#'
4547 else
4548   HAVE_IRIX_OS_TRUE='#'
4549   HAVE_IRIX_OS_FALSE=
4550 fi
4551         cat >>confdefs.h <<\_ACEOF
4552 #define HAVE_IRIX_OS 1
4553 _ACEOF
4554
4555 else
4556
4557
4558 if $FALSEPRG; then
4559   HAVE_IRIX_OS_TRUE=
4560   HAVE_IRIX_OS_FALSE='#'
4561 else
4562   HAVE_IRIX_OS_TRUE='#'
4563   HAVE_IRIX_OS_FALSE=
4564 fi
4565 fi
4566
4567 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4568 then
4569
4570
4571 if $TRUEPRG; then
4572   HAVE_DARWIN_OS_TRUE=
4573   HAVE_DARWIN_OS_FALSE='#'
4574 else
4575   HAVE_DARWIN_OS_TRUE='#'
4576   HAVE_DARWIN_OS_FALSE=
4577 fi
4578     cat >>confdefs.h <<\_ACEOF
4579 #define HAVE_DARWIN_OS 1
4580 _ACEOF
4581
4582 else
4583
4584
4585 if $FALSEPRG; then
4586   HAVE_DARWIN_OS_TRUE=
4587   HAVE_DARWIN_OS_FALSE='#'
4588 else
4589   HAVE_DARWIN_OS_TRUE='#'
4590   HAVE_DARWIN_OS_FALSE=
4591 fi
4592 fi
4593
4594
4595 # -----------------------------------------------------------
4596 # ----------------------------------------------------------
4597 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4598 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4599 if test "x$DISTNAME" != "x"
4600 then
4601         echo "distname set to $DISTNAME"
4602 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4603 then
4604         DISTNAME=alpha
4605 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4606 then
4607         DISTNAME=aix
4608 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4609 then
4610         DISTNAME=hpux
4611 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4612 then
4613         DISTNAME=solaris
4614 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4615 then
4616         DISTNAME=freebsd
4617 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4618 then
4619         DISTNAME=netbsd
4620 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4621 then
4622         DISTNAME=openbsd
4623 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4624 then
4625         DISTNAME=irix
4626 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4627 then
4628         DISTNAME=bsdi
4629 elif test -f /etc/SuSE-release
4630 then
4631         DISTNAME=suse
4632 elif test -d /etc/SuSEconfig
4633 then
4634         DISTNAME=suse5
4635 elif test -f /etc/mandrake-release
4636 then
4637         DISTNAME=mandrake
4638 elif test -f /etc/whitebox-release
4639 then
4640        DISTNAME=redhat
4641 elif test -f /etc/redhat-release
4642 then
4643         DISTNAME=redhat
4644 elif test -f /etc/gentoo-release
4645 then
4646         DISTNAME=gentoo
4647 elif test -f /etc/debian_version
4648 then
4649         DISTNAME=debian
4650 elif test -f /etc/slackware-version
4651 then
4652         DISTNAME=slackware
4653 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4654 then
4655     DISTNAME=darwin
4656 elif test -f /etc/engarde-version
4657 then
4658         DISTNAME=engarde
4659 elif test "$CYGWIN" = yes
4660 then
4661         DISTNAME=cygwin
4662         cat >>confdefs.h <<\_ACEOF
4663 #define HAVE_CYGWIN 1
4664 _ACEOF
4665
4666 else
4667         DISTNAME=unknown
4668 fi
4669 echo "$as_me:$LINENO: result: done" >&5
4670 echo "${ECHO_T}done" >&6
4671
4672
4673 # -----------------------------------------------------------
4674 # ----------------------------------------------------------
4675
4676
4677
4678 if false; then
4679   INSIDE_GNOME_COMMON_TRUE=
4680   INSIDE_GNOME_COMMON_FALSE='#'
4681 else
4682   INSIDE_GNOME_COMMON_TRUE='#'
4683   INSIDE_GNOME_COMMON_FALSE=
4684 fi
4685
4686         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4687
4688         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4689
4690
4691 # ------------------------------------------------------------------
4692 #  If the user has not set --prefix, we set our default to nothing.
4693 #  In this case, if the user has not set --sysconfdir, we set it
4694 #  to the package default of /etc/bacula.  If either --prefix or
4695 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4696 # ------------------------------------------------------------------
4697 if test x${prefix} = xNONE ; then
4698     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4699         sysconfdir=/etc/bacula
4700     fi
4701     prefix=
4702 fi
4703 sysconfdir=`eval echo ${sysconfdir}`
4704
4705 # -------------------------------------------------------------------------
4706 #  If the user has not set --exec-prefix, we default to ${prefix}
4707 # -------------------------------------------------------------------------
4708 if test x${exec_prefix} = xNONE ; then
4709     exec_prefix=${prefix}
4710 fi
4711
4712 # ------------------------------------------------------------------
4713 # If the user has not set --sbindir, we set our default as /sbin
4714 # ------------------------------------------------------------------
4715 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4716     sbindir=${exec_prefix}/sbin
4717 fi
4718 sbindir=`eval echo ${sbindir}`
4719
4720 # ------------------------------------------------------------------
4721 # All list of languages for which a translation exist. Each
4722 #  language is separated by a space.
4723 # ------------------------------------------------------------------
4724 ALL_LINGUAS=""
4725
4726 for ac_prog in msgfmt
4727 do
4728   # Extract the first word of "$ac_prog", so it can be a program name with args.
4729 set dummy $ac_prog; ac_word=$2
4730 echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4732 if test "${ac_cv_path_MSGFMT+set}" = set; then
4733   echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735   case $MSGFMT in
4736   [\\/]* | ?:[\\/]*)
4737   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4738   ;;
4739   *)
4740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 for as_dir in $PATH
4742 do
4743   IFS=$as_save_IFS
4744   test -z "$as_dir" && as_dir=.
4745   for ac_exec_ext in '' $ac_executable_extensions; do
4746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749     break 2
4750   fi
4751 done
4752 done
4753
4754   ;;
4755 esac
4756 fi
4757 MSGFMT=$ac_cv_path_MSGFMT
4758
4759 if test -n "$MSGFMT"; then
4760   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4761 echo "${ECHO_T}$MSGFMT" >&6
4762 else
4763   echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6
4765 fi
4766
4767   test -n "$MSGFMT" && break
4768 done
4769 test -n "$MSGFMT" || MSGFMT="no"
4770
4771 if test "$MSGFMT" = "no"
4772 then
4773    echo 'msgfmt program not found, disabling NLS !'
4774    USE_NLS=no
4775    USE_INCLUDED_LIBINTL=no
4776 #else
4777 #   AM_GNU_GETTEXT
4778 fi
4779
4780
4781 support_mysql=no
4782 support_sqlite=no
4783 support_sqlite3=no
4784 support_postgresql=no
4785 support_smartalloc=yes
4786 support_readline=yes
4787 support_conio=yes
4788 support_gnome=no
4789 support_wx_console=no
4790 support_tls=no
4791 gnome_version=
4792 wx_version=
4793 support_static_tools=no
4794 support_static_fd=no
4795 support_static_sd=no
4796 support_static_dir=no
4797 support_static_cons=no
4798 support_python=no
4799 build_client_only=no
4800 cats=
4801 db_name=Internal
4802 DB_NAME=bdb
4803
4804
4805 # -------------------------------------------
4806 # gnome (default off)
4807 # -------------------------------------------
4808 # Check whether --enable-gnome or --disable-gnome was given.
4809 if test "${enable_gnome+set}" = set; then
4810   enableval="$enable_gnome"
4811   if test x$enableval = xyes; then
4812     support_gnome=yes
4813   fi
4814 fi;
4815
4816 GNOME_DIR=
4817 if test x$support_gnome = xyes; then
4818   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4819   pkg=$?
4820   if test $pkg = 0; then
4821      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4822      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4823      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4824      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4825
4826
4827
4828
4829      GNOME_DIR=src/gnome2-console
4830      gnome_version="Version 2.x"
4831   else
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4844 if test "${with_gnome_includes+set}" = set; then
4845   withval="$with_gnome_includes"
4846
4847         CFLAGS="$CFLAGS -I$withval"
4848
4849 fi;
4850
4851
4852 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4853 if test "${with_gnome_libs+set}" = set; then
4854   withval="$with_gnome_libs"
4855
4856         LDFLAGS="$LDFLAGS -L$withval"
4857         gnome_prefix=$withval
4858
4859 fi;
4860
4861
4862 # Check whether --with-gnome or --without-gnome was given.
4863 if test "${with_gnome+set}" = set; then
4864   withval="$with_gnome"
4865   if test x$withval = xyes; then
4866                         want_gnome=yes
4867                                                                         :
4868                 else
4869                         if test "x$withval" = xno; then
4870                                 want_gnome=no
4871                         else
4872                                 want_gnome=yes
4873                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4874                                 CFLAGS="$CFLAGS -I$withval/include"
4875                                 gnome_prefix=$withval/lib
4876                         fi
4877                 fi
4878 else
4879   want_gnome=yes
4880 fi;
4881
4882         if test "x$want_gnome" = xyes; then
4883
4884             # Extract the first word of "gnome-config", so it can be a program name with args.
4885 set dummy gnome-config; ac_word=$2
4886 echo "$as_me:$LINENO: checking for $ac_word" >&5
4887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4888 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4889   echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891   case $GNOME_CONFIG in
4892   [\\/]* | ?:[\\/]*)
4893   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4894   ;;
4895   *)
4896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901   for ac_exec_ext in '' $ac_executable_extensions; do
4902   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905     break 2
4906   fi
4907 done
4908 done
4909
4910   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4911   ;;
4912 esac
4913 fi
4914 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4915
4916 if test -n "$GNOME_CONFIG"; then
4917   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4918 echo "${ECHO_T}$GNOME_CONFIG" >&6
4919 else
4920   echo "$as_me:$LINENO: result: no" >&5
4921 echo "${ECHO_T}no" >&6
4922 fi
4923
4924             if test "$GNOME_CONFIG" = "no"; then
4925               no_gnome_config="yes"
4926             else
4927               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4928 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4929               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4930                 echo "$as_me:$LINENO: result: yes" >&5
4931 echo "${ECHO_T}yes" >&6
4932
4933
4934         # Extract the first word of "orbit-config", so it can be a program name with args.
4935 set dummy orbit-config; ac_word=$2
4936 echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941   case $ORBIT_CONFIG in
4942   [\\/]* | ?:[\\/]*)
4943   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4944   ;;
4945   *)
4946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949   IFS=$as_save_IFS
4950   test -z "$as_dir" && as_dir=.
4951   for ac_exec_ext in '' $ac_executable_extensions; do
4952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955     break 2
4956   fi
4957 done
4958 done
4959
4960   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4961   ;;
4962 esac
4963 fi
4964 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4965
4966 if test -n "$ORBIT_CONFIG"; then
4967   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4968 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4969 else
4970   echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6
4972 fi
4973
4974         # Extract the first word of "orbit-idl", so it can be a program name with args.
4975 set dummy orbit-idl; ac_word=$2
4976 echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4978 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4979   echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981   case $ORBIT_IDL in
4982   [\\/]* | ?:[\\/]*)
4983   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4984   ;;
4985   *)
4986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989   IFS=$as_save_IFS
4990   test -z "$as_dir" && as_dir=.
4991   for ac_exec_ext in '' $ac_executable_extensions; do
4992   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995     break 2
4996   fi
4997 done
4998 done
4999
5000   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
5001   ;;
5002 esac
5003 fi
5004 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
5005
5006 if test -n "$ORBIT_IDL"; then
5007   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
5008 echo "${ECHO_T}$ORBIT_IDL" >&6
5009 else
5010   echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5012 fi
5013
5014         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
5015 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
5016 if test "${gnome_cv_orbit_found+set}" = set; then
5017   echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019
5020                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
5021                         gnome_cv_orbit_found=no
5022                 else
5023                         gnome_cv_orbit_found=yes
5024                 fi
5025
5026 fi
5027 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
5028 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
5029
5030
5031 if test x$gnome_cv_orbit_found = xyes; then
5032   HAVE_ORBIT_TRUE=
5033   HAVE_ORBIT_FALSE='#'
5034 else
5035   HAVE_ORBIT_TRUE='#'
5036   HAVE_ORBIT_FALSE=
5037 fi
5038         if test x$gnome_cv_orbit_found = xyes; then
5039
5040                 ORBIT_CFLAGS=`orbit-config --cflags client server`
5041                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
5042
5043
5044         else
5045                 if test xfail = xfailure; then
5046                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
5047 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
5048    { (exit 1); exit 1; }; }
5049                 fi
5050         fi
5051
5052         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
5053 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
5054 if test "${gnome_cv_gnorba_found+set}" = set; then
5055   echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057
5058                 gnome_cv_gnorba_found=no
5059                 if test x$gnome_cv_orbit_found = xyes; then
5060                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5061                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5062                         if test -n "$GNORBA_LIBS"; then
5063                                 gnome_cv_gnorba_found=yes
5064                         fi
5065                 fi
5066
5067 fi
5068 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
5069 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
5070
5071
5072 if test x$gnome_cv_gnorba_found = xyes; then
5073   HAVE_GNORBA_TRUE=
5074   HAVE_GNORBA_FALSE='#'
5075 else
5076   HAVE_GNORBA_TRUE='#'
5077   HAVE_GNORBA_FALSE=
5078 fi
5079         if test x$gnome_cv_orbit_found = xyes; then
5080
5081                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5082                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5083
5084
5085         else
5086                 if test xfail = xfailure; then
5087                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5088 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5089    { (exit 1); exit 1; }; }
5090                 fi
5091         fi
5092
5093                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5094                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5095                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5096                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5097                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5098                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5099                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5100
5101               else
5102                 echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6
5104                 no_gnome_config="yes"
5105               fi
5106             fi
5107
5108             if test x$exec_prefix = xNONE; then
5109                 if test x$prefix = xNONE; then
5110                     gnome_prefix=$ac_default_prefix/lib
5111                 else
5112                     gnome_prefix=$prefix/lib
5113                 fi
5114             else
5115                 gnome_prefix=`eval echo \`echo $libdir\``
5116             fi
5117
5118             if test "$no_gnome_config" = "yes"; then
5119               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5120 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5121               if test -f $gnome_prefix/gnomeConf.sh; then
5122                 echo "$as_me:$LINENO: result: found" >&5
5123 echo "${ECHO_T}found" >&6
5124                 echo "loading gnome configuration from" \
5125                      "$gnome_prefix/gnomeConf.sh"
5126                 . $gnome_prefix/gnomeConf.sh
5127
5128               else
5129                 echo "$as_me:$LINENO: result: not found" >&5
5130 echo "${ECHO_T}not found" >&6
5131                 if test xfail = xfail; then
5132                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5133 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5134    { (exit 1); exit 1; }; }
5135                 fi
5136               fi
5137             fi
5138         fi
5139
5140         if test -n ""; then
5141           n=""
5142           for i in $n; do
5143             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5144 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5145             case $i in
5146               applets)
5147
5148                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5149                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5150 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5151               docklets)
5152
5153                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5154                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5155 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5156               capplet)
5157
5158                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5159                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5160 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5161               *)
5162                 echo "$as_me:$LINENO: result: unknown library" >&5
5163 echo "${ECHO_T}unknown library" >&6
5164             esac
5165             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5166             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5167           done
5168         fi
5169
5170
5171      GNOME_DIR=src/gnome-console
5172      gnome_version="Version 1.4"
5173   fi
5174 fi
5175
5176
5177
5178 # -------------------------------------------
5179 # wx-console (default off)
5180 # -------------------------------------------
5181 # Check whether --enable-wx-console or --disable-wx-console was given.
5182 if test "${enable_wx_console+set}" = set; then
5183   enableval="$enable_wx_console"
5184   if test x$enableval = xyes; then
5185     support_wx_console=yes
5186   fi
5187 fi;
5188
5189 WX_DIR=
5190 if test x$support_wx_console = xyes; then
5191   abc=`$WXCONFIG $WXFLAGS --cppflags`
5192   pkg=$?
5193   if test $pkg = 0; then
5194      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
5195      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
5196      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
5197
5198
5199
5200      WX_DIR=src/wx-console
5201   else
5202      echo " "
5203      echo "wx-config program not found. wx-console disabled."
5204      echo " "
5205      support_wx_console=no
5206   fi
5207 fi
5208
5209
5210
5211 # -------------------------------------------
5212 # tray-monitor (default off)
5213 # -------------------------------------------
5214 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5215 if test "${enable_tray_monitor+set}" = set; then
5216   enableval="$enable_tray_monitor"
5217   if test x$enableval = xyes; then
5218     support_tray_monitor=yes
5219   fi
5220 fi;
5221
5222 TRAY_MONITOR_DIR=
5223 if test x$support_tray_monitor = xyes; then
5224   abc=`$PKGCONFIG --exists gtk+-2.0`
5225   pkg=$?
5226   if test $pkg = 0; then
5227      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5228      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5229
5230
5231      TRAY_MONITOR_DIR=src/tray-monitor
5232      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5233      pkg=$?
5234      if test $pkg = 0; then
5235         cat >>confdefs.h <<\_ACEOF
5236 #define HAVE_GTK_2_4 1
5237 _ACEOF
5238
5239      fi
5240   fi
5241 fi
5242
5243
5244 # -------------------------------------------
5245 # smartalloc (default off)
5246 # -------------------------------------------
5247 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5248 if test "${enable_smartalloc+set}" = set; then
5249   enableval="$enable_smartalloc"
5250   if test x$enableval = xno; then
5251     support_smartalloc=no
5252   fi
5253 fi;
5254
5255 if test x$support_smartalloc = xyes; then
5256    cat >>confdefs.h <<\_ACEOF
5257 #define SMARTALLOC 1
5258 _ACEOF
5259
5260 fi
5261
5262 # -------------------------------------------
5263 # static-tools (default off)
5264 # -------------------------------------------
5265 # Check whether --enable-static-tools or --disable-static-tools was given.
5266 if test "${enable_static_tools+set}" = set; then
5267   enableval="$enable_static_tools"
5268   if test x$enableval = xyes; then
5269      support_static_tools=yes
5270    fi
5271 fi;
5272
5273 TTOOL_LDFLAGS=
5274 if test x$support_static_tools = xyes; then
5275    TTOOL_LDFLAGS="-static"
5276 fi
5277
5278
5279 # -------------------------------------------
5280 # static-fd    (default off)
5281 # -------------------------------------------
5282 # Check whether --enable-static-fd or --disable-static-fd was given.
5283 if test "${enable_static_fd+set}" = set; then
5284   enableval="$enable_static_fd"
5285   if test x$enableval = xyes; then
5286      support_static_fd=yes
5287    fi
5288 fi;
5289
5290 STATIC_FD=
5291 if test x$support_static_fd = xyes; then
5292    STATIC_FD="static-bacula-fd"
5293 fi
5294
5295
5296 # -------------------------------------------
5297 # static-sd    (default off)
5298 # -------------------------------------------
5299 # Check whether --enable-static-sd or --disable-static-sd was given.
5300 if test "${enable_static_sd+set}" = set; then
5301   enableval="$enable_static_sd"
5302   if test x$enableval = xyes; then
5303      support_static_sd=yes
5304    fi
5305 fi;
5306
5307 STATIC_SD=
5308 if test x$support_static_sd = xyes; then
5309    STATIC_SD="static-bacula-sd"
5310 fi
5311
5312
5313 # -------------------------------------------
5314 # static-dir   (default off)
5315 # -------------------------------------------
5316 # Check whether --enable-static-dir or --disable-static-dir was given.
5317 if test "${enable_static_dir+set}" = set; then
5318   enableval="$enable_static_dir"
5319   if test x$enableval = xyes; then
5320      support_static_dir=yes
5321    fi
5322 fi;
5323
5324 STATIC_DIR=
5325 if test x$support_static_dir = xyes; then
5326    STATIC_DIR="static-bacula-dir"
5327 fi
5328
5329
5330 # -------------------------------------------
5331 # static-cons  (default off)
5332 # -------------------------------------------
5333 # Check whether --enable-static-cons or --disable-static-cons was given.
5334 if test "${enable_static_cons+set}" = set; then
5335   enableval="$enable_static_cons"
5336   if test x$enableval = xyes; then
5337      support_static_cons=yes
5338    fi
5339 fi;
5340
5341 STATIC_CONS=
5342 STATIC_GNOME_CONS=
5343 STATIC_WX_CONS=
5344 if test x$support_static_cons = xyes; then
5345    STATIC_CONS="static-bconsole"
5346    STATIC_GNOME_CONS="static-gnome-console"
5347    STATIC_WX_CONS="static-wx-console"
5348 fi
5349
5350
5351
5352
5353 # -------------------------------------------
5354 # client_only  (default off)
5355 # -------------------------------------------
5356 # Check whether --enable-client-only or --disable-client-only was given.
5357 if test "${enable_client_only+set}" = set; then
5358   enableval="$enable_client_only"
5359   if test x$enableval = xyes; then
5360      build_client_only=yes
5361     db_name=None
5362     DB_NAME=none
5363    fi
5364 fi;
5365 if test x$build_client_only = xno; then
5366    ALL_DIRS="subdirs"
5367 else
5368    ALL_DIRS=""
5369 fi
5370
5371
5372 # ---------------------------------------------------
5373 # Check for conio (Bacula readline substitute)(
5374 # ---------------------------------------------------
5375 # this allows you to turn it completely off
5376 # Check whether --enable-conio or --disable-conio was given.
5377 if test "${enable_conio+set}" = set; then
5378   enableval="$enable_conio"
5379   if test x$enableval = xno; then
5380     support_conio=no
5381   fi
5382 fi;
5383
5384 got_conio="no"
5385 if test x$support_conio = xyes; then
5386    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5387 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5388 if test "${ac_cv_header_stdc+set}" = set; then
5389   echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391   cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h.  */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h.  */
5397 #include <stdlib.h>
5398 #include <stdarg.h>
5399 #include <string.h>
5400 #include <float.h>
5401
5402 int
5403 main ()
5404 {
5405
5406   ;
5407   return 0;
5408 }
5409 _ACEOF
5410 rm -f conftest.$ac_objext
5411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5412   (eval $ac_compile) 2>conftest.er1
5413   ac_status=$?
5414   grep -v '^ *+' conftest.er1 >conftest.err
5415   rm -f conftest.er1
5416   cat conftest.err >&5
5417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418   (exit $ac_status); } &&
5419          { ac_try='test -z "$ac_c_werror_flag"
5420                          || test ! -s conftest.err'
5421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5422   (eval $ac_try) 2>&5
5423   ac_status=$?
5424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); }; } &&
5426          { ac_try='test -s conftest.$ac_objext'
5427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428   (eval $ac_try) 2>&5
5429   ac_status=$?
5430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431   (exit $ac_status); }; }; then
5432   ac_cv_header_stdc=yes
5433 else
5434   echo "$as_me: failed program was:" >&5
5435 sed 's/^/| /' conftest.$ac_ext >&5
5436
5437 ac_cv_header_stdc=no
5438 fi
5439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5440
5441 if test $ac_cv_header_stdc = yes; then
5442   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5443   cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h.  */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h.  */
5449 #include <string.h>
5450
5451 _ACEOF
5452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5453   $EGREP "memchr" >/dev/null 2>&1; then
5454   :
5455 else
5456   ac_cv_header_stdc=no
5457 fi
5458 rm -f conftest*
5459
5460 fi
5461
5462 if test $ac_cv_header_stdc = yes; then
5463   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5464   cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h.  */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h.  */
5470 #include <stdlib.h>
5471
5472 _ACEOF
5473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5474   $EGREP "free" >/dev/null 2>&1; then
5475   :
5476 else
5477   ac_cv_header_stdc=no
5478 fi
5479 rm -f conftest*
5480
5481 fi
5482
5483 if test $ac_cv_header_stdc = yes; then
5484   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5485   if test "$cross_compiling" = yes; then
5486   :
5487 else
5488   cat >conftest.$ac_ext <<_ACEOF
5489 /* confdefs.h.  */
5490 _ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h.  */
5494 #include <ctype.h>
5495 #if ((' ' & 0x0FF) == 0x020)
5496 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5497 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5498 #else
5499 # define ISLOWER(c) \
5500                    (('a' <= (c) && (c) <= 'i') \
5501                      || ('j' <= (c) && (c) <= 'r') \
5502                      || ('s' <= (c) && (c) <= 'z'))
5503 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5504 #endif
5505
5506 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5507 int
5508 main ()
5509 {
5510   int i;
5511   for (i = 0; i < 256; i++)
5512     if (XOR (islower (i), ISLOWER (i))
5513         || toupper (i) != TOUPPER (i))
5514       exit(2);
5515   exit (0);
5516 }
5517 _ACEOF
5518 rm -f conftest$ac_exeext
5519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520   (eval $ac_link) 2>&5
5521   ac_status=$?
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525   (eval $ac_try) 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; }; then
5529   :
5530 else
5531   echo "$as_me: program exited with status $ac_status" >&5
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535 ( exit $ac_status )
5536 ac_cv_header_stdc=no
5537 fi
5538 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5539 fi
5540 fi
5541 fi
5542 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5543 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5544 if test $ac_cv_header_stdc = yes; then
5545
5546 cat >>confdefs.h <<\_ACEOF
5547 #define STDC_HEADERS 1
5548 _ACEOF
5549
5550 fi
5551
5552 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5563                   inttypes.h stdint.h unistd.h
5564 do
5565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5566 echo "$as_me:$LINENO: checking for $ac_header" >&5
5567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5569   echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571   cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h.  */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h.  */
5577 $ac_includes_default
5578
5579 #include <$ac_header>
5580 _ACEOF
5581 rm -f conftest.$ac_objext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583   (eval $ac_compile) 2>conftest.er1
5584   ac_status=$?
5585   grep -v '^ *+' conftest.er1 >conftest.err
5586   rm -f conftest.er1
5587   cat conftest.err >&5
5588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); } &&
5590          { ac_try='test -z "$ac_c_werror_flag"
5591                          || test ! -s conftest.err'
5592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593   (eval $ac_try) 2>&5
5594   ac_status=$?
5595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596   (exit $ac_status); }; } &&
5597          { ac_try='test -s conftest.$ac_objext'
5598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5599   (eval $ac_try) 2>&5
5600   ac_status=$?
5601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); }; }; then
5603   eval "$as_ac_Header=yes"
5604 else
5605   echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5607
5608 eval "$as_ac_Header=no"
5609 fi
5610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5611 fi
5612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5615   cat >>confdefs.h <<_ACEOF
5616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5617 _ACEOF
5618
5619 fi
5620
5621 done
5622
5623
5624 if test "${ac_cv_header_termcap_h+set}" = set; then
5625   echo "$as_me:$LINENO: checking for termcap.h" >&5
5626 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5627 if test "${ac_cv_header_termcap_h+set}" = set; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 fi
5630 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5631 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5632 else
5633   # Is the header compilable?
5634 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5635 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5636 cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h.  */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h.  */
5642 $ac_includes_default
5643 #include <termcap.h>
5644 _ACEOF
5645 rm -f conftest.$ac_objext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647   (eval $ac_compile) 2>conftest.er1
5648   ac_status=$?
5649   grep -v '^ *+' conftest.er1 >conftest.err
5650   rm -f conftest.er1
5651   cat conftest.err >&5
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); } &&
5654          { ac_try='test -z "$ac_c_werror_flag"
5655                          || test ! -s conftest.err'
5656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657   (eval $ac_try) 2>&5
5658   ac_status=$?
5659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660   (exit $ac_status); }; } &&
5661          { ac_try='test -s conftest.$ac_objext'
5662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663   (eval $ac_try) 2>&5
5664   ac_status=$?
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); }; }; then
5667   ac_header_compiler=yes
5668 else
5669   echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5671
5672 ac_header_compiler=no
5673 fi
5674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5676 echo "${ECHO_T}$ac_header_compiler" >&6
5677
5678 # Is the header present?
5679 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5680 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5681 cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h.  */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h.  */
5687 #include <termcap.h>
5688 _ACEOF
5689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5690   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5691   ac_status=$?
5692   grep -v '^ *+' conftest.er1 >conftest.err
5693   rm -f conftest.er1
5694   cat conftest.err >&5
5695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); } >/dev/null; then
5697   if test -s conftest.err; then
5698     ac_cpp_err=$ac_c_preproc_warn_flag
5699     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5700   else
5701     ac_cpp_err=
5702   fi
5703 else
5704   ac_cpp_err=yes
5705 fi
5706 if test -z "$ac_cpp_err"; then
5707   ac_header_preproc=yes
5708 else
5709   echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712   ac_header_preproc=no
5713 fi
5714 rm -f conftest.err conftest.$ac_ext
5715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5716 echo "${ECHO_T}$ac_header_preproc" >&6
5717
5718 # So?  What about this header?
5719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5720   yes:no: )
5721     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5722 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5723     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5724 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5725     ac_header_preproc=yes
5726     ;;
5727   no:yes:* )
5728     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5729 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5730     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5731 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5732     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5733 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5734     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5735 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5736     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5737 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5738     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5739 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5740     (
5741       cat <<\_ASBOX
5742 ## ------------------------------------------ ##
5743 ## Report this to the AC_PACKAGE_NAME lists.  ##
5744 ## ------------------------------------------ ##
5745 _ASBOX
5746     ) |
5747       sed "s/^/$as_me: WARNING:     /" >&2
5748     ;;
5749 esac
5750 echo "$as_me:$LINENO: checking for termcap.h" >&5
5751 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5752 if test "${ac_cv_header_termcap_h+set}" = set; then
5753   echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755   ac_cv_header_termcap_h=$ac_header_preproc
5756 fi
5757 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5758 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5759
5760 fi
5761 if test $ac_cv_header_termcap_h = yes; then
5762    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5763 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5764 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5765   echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767   ac_check_lib_save_LIBS=$LIBS
5768 LIBS="-ltermcap  $LIBS"
5769 cat >conftest.$ac_ext <<_ACEOF
5770 /* confdefs.h.  */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h.  */
5775
5776 /* Override any gcc2 internal prototype to avoid an error.  */
5777 #ifdef __cplusplus
5778 extern "C"
5779 #endif
5780 /* We use char because int might match the return type of a gcc2
5781    builtin and then its argument prototype would still apply.  */
5782 char tgetent ();
5783 int
5784 main ()
5785 {
5786 tgetent ();
5787   ;
5788   return 0;
5789 }
5790 _ACEOF
5791 rm -f conftest.$ac_objext conftest$ac_exeext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5793   (eval $ac_link) 2>conftest.er1
5794   ac_status=$?
5795   grep -v '^ *+' conftest.er1 >conftest.err
5796   rm -f conftest.er1
5797   cat conftest.err >&5
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); } &&
5800          { ac_try='test -z "$ac_c_werror_flag"
5801                          || test ! -s conftest.err'
5802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803   (eval $ac_try) 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); }; } &&
5807          { ac_try='test -s conftest$ac_exeext'
5808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809   (eval $ac_try) 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); }; }; then
5813   ac_cv_lib_termcap_tgetent=yes
5814 else
5815   echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5817
5818 ac_cv_lib_termcap_tgetent=no
5819 fi
5820 rm -f conftest.err conftest.$ac_objext \
5821       conftest$ac_exeext conftest.$ac_ext
5822 LIBS=$ac_check_lib_save_LIBS
5823 fi
5824 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5825 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5826 if test $ac_cv_lib_termcap_tgetent = yes; then
5827    CONS_LIBS="-ltermcap"
5828          CONS_OBJ="conio.o"
5829          CONS_SRC="conio.c"
5830          got_conio="yes"
5831          support_readline=no
5832
5833 cat >>confdefs.h <<\_ACEOF
5834 #define HAVE_CONIO 1
5835 _ACEOF
5836
5837
5838 else
5839    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5840 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5841 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5842   echo $ECHO_N "(cached) $ECHO_C" >&6
5843 else
5844   ac_check_lib_save_LIBS=$LIBS
5845 LIBS="-lncurses  $LIBS"
5846 cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h.  */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h.  */
5852
5853 /* Override any gcc2 internal prototype to avoid an error.  */
5854 #ifdef __cplusplus
5855 extern "C"
5856 #endif
5857 /* We use char because int might match the return type of a gcc2
5858    builtin and then its argument prototype would still apply.  */
5859 char tgetent ();
5860 int
5861 main ()
5862 {
5863 tgetent ();
5864   ;
5865   return 0;
5866 }
5867 _ACEOF
5868 rm -f conftest.$ac_objext conftest$ac_exeext
5869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5870   (eval $ac_link) 2>conftest.er1
5871   ac_status=$?
5872   grep -v '^ *+' conftest.er1 >conftest.err
5873   rm -f conftest.er1
5874   cat conftest.err >&5
5875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876   (exit $ac_status); } &&
5877          { ac_try='test -z "$ac_c_werror_flag"
5878                          || test ! -s conftest.err'
5879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880   (eval $ac_try) 2>&5
5881   ac_status=$?
5882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883   (exit $ac_status); }; } &&
5884          { ac_try='test -s conftest$ac_exeext'
5885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886   (eval $ac_try) 2>&5
5887   ac_status=$?
5888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889   (exit $ac_status); }; }; then
5890   ac_cv_lib_ncurses_tgetent=yes
5891 else
5892   echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5894
5895 ac_cv_lib_ncurses_tgetent=no
5896 fi
5897 rm -f conftest.err conftest.$ac_objext \
5898       conftest$ac_exeext conftest.$ac_ext
5899 LIBS=$ac_check_lib_save_LIBS
5900 fi
5901 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5902 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5903 if test $ac_cv_lib_ncurses_tgetent = yes; then
5904    CONS_LIBS="-lncurses"
5905            CONS_OBJ="conio.o"
5906            CONS_SRC="conio.c"
5907            got_conio="yes"
5908            support_readline=no
5909
5910 cat >>confdefs.h <<\_ACEOF
5911 #define HAVE_CONIO 1
5912 _ACEOF
5913
5914
5915 fi
5916
5917
5918 fi
5919
5920
5921 else
5922
5923
5924 for ac_header in curses.h
5925 do
5926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5928   echo "$as_me:$LINENO: checking for $ac_header" >&5
5929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5931   echo $ECHO_N "(cached) $ECHO_C" >&6
5932 fi
5933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5935 else
5936   # Is the header compilable?
5937 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5939 cat >conftest.$ac_ext <<_ACEOF
5940 /* confdefs.h.  */
5941 _ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h.  */
5945 $ac_includes_default
5946 #include <$ac_header>
5947 _ACEOF
5948 rm -f conftest.$ac_objext
5949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5950   (eval $ac_compile) 2>conftest.er1
5951   ac_status=$?
5952   grep -v '^ *+' conftest.er1 >conftest.err
5953   rm -f conftest.er1
5954   cat conftest.err >&5
5955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956   (exit $ac_status); } &&
5957          { ac_try='test -z "$ac_c_werror_flag"
5958                          || test ! -s conftest.err'
5959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960   (eval $ac_try) 2>&5
5961   ac_status=$?
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); }; } &&
5964          { ac_try='test -s conftest.$ac_objext'
5965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5966   (eval $ac_try) 2>&5
5967   ac_status=$?
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); }; }; then
5970   ac_header_compiler=yes
5971 else
5972   echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5974
5975 ac_header_compiler=no
5976 fi
5977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5979 echo "${ECHO_T}$ac_header_compiler" >&6
5980
5981 # Is the header present?
5982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5984 cat >conftest.$ac_ext <<_ACEOF
5985 /* confdefs.h.  */
5986 _ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h.  */
5990 #include <$ac_header>
5991 _ACEOF
5992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5994   ac_status=$?
5995   grep -v '^ *+' conftest.er1 >conftest.err
5996   rm -f conftest.er1
5997   cat conftest.err >&5
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); } >/dev/null; then
6000   if test -s conftest.err; then
6001     ac_cpp_err=$ac_c_preproc_warn_flag
6002     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6003   else
6004     ac_cpp_err=
6005   fi
6006 else
6007   ac_cpp_err=yes
6008 fi
6009 if test -z "$ac_cpp_err"; then
6010   ac_header_preproc=yes
6011 else
6012   echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015   ac_header_preproc=no
6016 fi
6017 rm -f conftest.err conftest.$ac_ext
6018 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6019 echo "${ECHO_T}$ac_header_preproc" >&6
6020
6021 # So?  What about this header?
6022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6023   yes:no: )
6024     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6028     ac_header_preproc=yes
6029     ;;
6030   no:yes:* )
6031     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6033     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6034 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6035     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6037     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6038 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6041     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6043     (
6044       cat <<\_ASBOX
6045 ## ------------------------------------------ ##
6046 ## Report this to the AC_PACKAGE_NAME lists.  ##
6047 ## ------------------------------------------ ##
6048 _ASBOX
6049     ) |
6050       sed "s/^/$as_me: WARNING:     /" >&2
6051     ;;
6052 esac
6053 echo "$as_me:$LINENO: checking for $ac_header" >&5
6054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6055 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   eval "$as_ac_Header=\$ac_header_preproc"
6059 fi
6060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6062
6063 fi
6064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6065   cat >>confdefs.h <<_ACEOF
6066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6067 _ACEOF
6068
6069 fi
6070
6071 done
6072
6073          echo "$as_me:$LINENO: checking for term.h" >&5
6074 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
6075 if test "${ac_cv_header_term_h+set}" = set; then
6076   echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078   cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h.  */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h.  */
6084 #if HAVE_CURSES_H
6085 #include <curses.h>
6086 #endif
6087
6088
6089 #include <term.h>
6090 _ACEOF
6091 rm -f conftest.$ac_objext
6092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6093   (eval $ac_compile) 2>conftest.er1
6094   ac_status=$?
6095   grep -v '^ *+' conftest.er1 >conftest.err
6096   rm -f conftest.er1
6097   cat conftest.err >&5
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); } &&
6100          { ac_try='test -z "$ac_c_werror_flag"
6101                          || test ! -s conftest.err'
6102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103   (eval $ac_try) 2>&5
6104   ac_status=$?
6105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106   (exit $ac_status); }; } &&
6107          { ac_try='test -s conftest.$ac_objext'
6108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109   (eval $ac_try) 2>&5
6110   ac_status=$?
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); }; }; then
6113   ac_cv_header_term_h=yes
6114 else
6115   echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6117
6118 ac_cv_header_term_h=no
6119 fi
6120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6121 fi
6122 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6123 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6124 if test $ac_cv_header_term_h = yes; then
6125    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6126 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6127 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   ac_check_lib_save_LIBS=$LIBS
6131 LIBS="-lcurses  $LIBS"
6132 cat >conftest.$ac_ext <<_ACEOF
6133 /* confdefs.h.  */
6134 _ACEOF
6135 cat confdefs.h >>conftest.$ac_ext
6136 cat >>conftest.$ac_ext <<_ACEOF
6137 /* end confdefs.h.  */
6138
6139 /* Override any gcc2 internal prototype to avoid an error.  */
6140 #ifdef __cplusplus
6141 extern "C"
6142 #endif
6143 /* We use char because int might match the return type of a gcc2
6144    builtin and then its argument prototype would still apply.  */
6145 char tgetent ();
6146 int
6147 main ()
6148 {
6149 tgetent ();
6150   ;
6151   return 0;
6152 }
6153 _ACEOF
6154 rm -f conftest.$ac_objext conftest$ac_exeext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6156   (eval $ac_link) 2>conftest.er1
6157   ac_status=$?
6158   grep -v '^ *+' conftest.er1 >conftest.err
6159   rm -f conftest.er1
6160   cat conftest.err >&5
6161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162   (exit $ac_status); } &&
6163          { ac_try='test -z "$ac_c_werror_flag"
6164                          || test ! -s conftest.err'
6165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166   (eval $ac_try) 2>&5
6167   ac_status=$?
6168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169   (exit $ac_status); }; } &&
6170          { ac_try='test -s conftest$ac_exeext'
6171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172   (eval $ac_try) 2>&5
6173   ac_status=$?
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); }; }; then
6176   ac_cv_lib_curses_tgetent=yes
6177 else
6178   echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181 ac_cv_lib_curses_tgetent=no
6182 fi
6183 rm -f conftest.err conftest.$ac_objext \
6184       conftest$ac_exeext conftest.$ac_ext
6185 LIBS=$ac_check_lib_save_LIBS
6186 fi
6187 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6188 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6189 if test $ac_cv_lib_curses_tgetent = yes; then
6190    CONS_LIBS="-lcurses"
6191                    CONS_OBJ="conio.o"
6192                    CONS_SRC="conio.c"
6193                    got_conio="yes"
6194                    support_readline=no
6195
6196 cat >>confdefs.h <<\_ACEOF
6197 #define HAVE_CONIO 1
6198 _ACEOF
6199
6200
6201 fi
6202
6203
6204 else
6205    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6206 fi
6207
6208
6209
6210 fi
6211
6212
6213 fi
6214
6215
6216 # ---------------------------------------------------
6217 # Check for readline support/directory (default off)
6218 # ---------------------------------------------------
6219 # this allows you to turn it completely off
6220 # Check whether --enable-readline or --disable-readline was given.
6221 if test "${enable_readline+set}" = set; then
6222   enableval="$enable_readline"
6223   if test x$enableval = xno; then
6224     support_readline=no
6225   fi
6226 fi;
6227
6228 got_readline="no"
6229 READLINE_SRC=
6230 if test x$support_readline = xyes; then
6231
6232 # Check whether --with-readline or --without-readline was given.
6233 if test "${with_readline+set}" = set; then
6234   withval="$with_readline"
6235
6236         case "$with_readline" in
6237         no) : ;;
6238         yes|*)
6239           if test "$with_readline" != "yes"; then
6240             CONS_INC="-I${with_readline}"
6241             CONS_LDFLAGS="-L$with_readline"
6242           else
6243              with_readline="/usr/include/readline"
6244           fi
6245           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6247   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6248 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6250   echo $ECHO_N "(cached) $ECHO_C" >&6
6251 fi
6252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6254 else
6255   # Is the header compilable?
6256 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6257 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6258 cat >conftest.$ac_ext <<_ACEOF
6259 /* confdefs.h.  */
6260 _ACEOF
6261 cat confdefs.h >>conftest.$ac_ext
6262 cat >>conftest.$ac_ext <<_ACEOF
6263 /* end confdefs.h.  */
6264 $ac_includes_default
6265 #include <${with_readline}/readline.h>
6266 _ACEOF
6267 rm -f conftest.$ac_objext
6268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6269   (eval $ac_compile) 2>conftest.er1
6270   ac_status=$?
6271   grep -v '^ *+' conftest.er1 >conftest.err
6272   rm -f conftest.er1
6273   cat conftest.err >&5
6274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275   (exit $ac_status); } &&
6276          { ac_try='test -z "$ac_c_werror_flag"
6277                          || test ! -s conftest.err'
6278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279   (eval $ac_try) 2>&5
6280   ac_status=$?
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); }; } &&
6283          { ac_try='test -s conftest.$ac_objext'
6284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285   (eval $ac_try) 2>&5
6286   ac_status=$?
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); }; }; then
6289   ac_header_compiler=yes
6290 else
6291   echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6293
6294 ac_header_compiler=no
6295 fi
6296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6298 echo "${ECHO_T}$ac_header_compiler" >&6
6299
6300 # Is the header present?
6301 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6302 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6303 cat >conftest.$ac_ext <<_ACEOF
6304 /* confdefs.h.  */
6305 _ACEOF
6306 cat confdefs.h >>conftest.$ac_ext
6307 cat >>conftest.$ac_ext <<_ACEOF
6308 /* end confdefs.h.  */
6309 #include <${with_readline}/readline.h>
6310 _ACEOF
6311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6313   ac_status=$?
6314   grep -v '^ *+' conftest.er1 >conftest.err
6315   rm -f conftest.er1
6316   cat conftest.err >&5
6317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318   (exit $ac_status); } >/dev/null; then
6319   if test -s conftest.err; then
6320     ac_cpp_err=$ac_c_preproc_warn_flag
6321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6322   else
6323     ac_cpp_err=
6324   fi
6325 else
6326   ac_cpp_err=yes
6327 fi
6328 if test -z "$ac_cpp_err"; then
6329   ac_header_preproc=yes
6330 else
6331   echo "$as_me: failed program was:" >&5
6332 sed 's/^/| /' conftest.$ac_ext >&5
6333
6334   ac_header_preproc=no
6335 fi
6336 rm -f conftest.err conftest.$ac_ext
6337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6338 echo "${ECHO_T}$ac_header_preproc" >&6
6339
6340 # So?  What about this header?
6341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6342   yes:no: )
6343     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6344 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6345     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6346 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6347     ac_header_preproc=yes
6348     ;;
6349   no:yes:* )
6350     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6351 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6352     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6353 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6354     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6355 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6356     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6357 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6358     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6359 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6360     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6361 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6362     (
6363       cat <<\_ASBOX
6364 ## ------------------------------------------ ##
6365 ## Report this to the AC_PACKAGE_NAME lists.  ##
6366 ## ------------------------------------------ ##
6367 _ASBOX
6368     ) |
6369       sed "s/^/$as_me: WARNING:     /" >&2
6370     ;;
6371 esac
6372 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6373 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6375   echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377   eval "$as_ac_Header=\$ac_header_preproc"
6378 fi
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6381
6382 fi
6383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6384    cat >>confdefs.h <<\_ACEOF
6385 #define HAVE_READLINE 1
6386 _ACEOF
6387
6388                CONS_LIBS="-lreadline -ltermcap"
6389                got_readline="yes"
6390
6391 else
6392    echo " "
6393                echo "readline.h not found. readline turned off ..."
6394                echo " "
6395
6396
6397 fi
6398
6399
6400           ;;
6401         esac
6402
6403 else
6404
6405        # check for standard readline library
6406        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6407   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6408 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6409 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6410   echo $ECHO_N "(cached) $ECHO_C" >&6
6411 fi
6412 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6413 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6414 else
6415   # Is the header compilable?
6416 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6417 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6418 cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h.  */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h.  */
6424 $ac_includes_default
6425 #include </usr/include/readline/readline.h>
6426 _ACEOF
6427 rm -f conftest.$ac_objext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6429   (eval $ac_compile) 2>conftest.er1
6430   ac_status=$?
6431   grep -v '^ *+' conftest.er1 >conftest.err
6432   rm -f conftest.er1
6433   cat conftest.err >&5
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); } &&
6436          { ac_try='test -z "$ac_c_werror_flag"
6437                          || test ! -s conftest.err'
6438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439   (eval $ac_try) 2>&5
6440   ac_status=$?
6441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442   (exit $ac_status); }; } &&
6443          { ac_try='test -s conftest.$ac_objext'
6444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445   (eval $ac_try) 2>&5
6446   ac_status=$?
6447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448   (exit $ac_status); }; }; then
6449   ac_header_compiler=yes
6450 else
6451   echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6453
6454 ac_header_compiler=no
6455 fi
6456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6458 echo "${ECHO_T}$ac_header_compiler" >&6
6459
6460 # Is the header present?
6461 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6462 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h.  */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h.  */
6469 #include </usr/include/readline/readline.h>
6470 _ACEOF
6471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6472   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6473   ac_status=$?
6474   grep -v '^ *+' conftest.er1 >conftest.err
6475   rm -f conftest.er1
6476   cat conftest.err >&5
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); } >/dev/null; then
6479   if test -s conftest.err; then
6480     ac_cpp_err=$ac_c_preproc_warn_flag
6481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6482   else
6483     ac_cpp_err=
6484   fi
6485 else
6486   ac_cpp_err=yes
6487 fi
6488 if test -z "$ac_cpp_err"; then
6489   ac_header_preproc=yes
6490 else
6491   echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6493
6494   ac_header_preproc=no
6495 fi
6496 rm -f conftest.err conftest.$ac_ext
6497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6498 echo "${ECHO_T}$ac_header_preproc" >&6
6499
6500 # So?  What about this header?
6501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6502   yes:no: )
6503     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6504 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6505     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6506 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6507     ac_header_preproc=yes
6508     ;;
6509   no:yes:* )
6510     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6511 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6512     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6513 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6514     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6515 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6516     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6517 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6518     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6519 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6520     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6521 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6522     (
6523       cat <<\_ASBOX
6524 ## ------------------------------------------ ##
6525 ## Report this to the AC_PACKAGE_NAME lists.  ##
6526 ## ------------------------------------------ ##
6527 _ASBOX
6528     ) |
6529       sed "s/^/$as_me: WARNING:     /" >&2
6530     ;;
6531 esac
6532 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6533 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6534 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6535   echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6538 fi
6539 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6540 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6541
6542 fi
6543 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6544    cat >>confdefs.h <<\_ACEOF
6545 #define HAVE_READLINE 1
6546 _ACEOF
6547
6548            got_readline="yes"
6549            CONS_INC="-I/usr/include/readline"
6550            CONS_LIBS="-lreadline -ltermcap"
6551
6552 else
6553
6554            # Did not find standard library, so try Bacula's default
6555             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6557   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6558 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6560   echo $ECHO_N "(cached) $ECHO_C" >&6
6561 fi
6562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6564 else
6565   # Is the header compilable?
6566 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6567 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6568 cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h.  */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h.  */
6574 $ac_includes_default
6575 #include <${TOP_DIR}/depkgs/readline/readline.h>
6576 _ACEOF
6577 rm -f conftest.$ac_objext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579   (eval $ac_compile) 2>conftest.er1
6580   ac_status=$?
6581   grep -v '^ *+' conftest.er1 >conftest.err
6582   rm -f conftest.er1
6583   cat conftest.err >&5
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); } &&
6586          { ac_try='test -z "$ac_c_werror_flag"
6587                          || test ! -s conftest.err'
6588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589   (eval $ac_try) 2>&5
6590   ac_status=$?
6591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592   (exit $ac_status); }; } &&
6593          { ac_try='test -s conftest.$ac_objext'
6594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6595   (eval $ac_try) 2>&5
6596   ac_status=$?
6597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598   (exit $ac_status); }; }; then
6599   ac_header_compiler=yes
6600 else
6601   echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6603
6604 ac_header_compiler=no
6605 fi
6606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6607 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6608 echo "${ECHO_T}$ac_header_compiler" >&6
6609
6610 # Is the header present?
6611 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6612 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6613 cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h.  */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h.  */
6619 #include <${TOP_DIR}/depkgs/readline/readline.h>
6620 _ACEOF
6621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6623   ac_status=$?
6624   grep -v '^ *+' conftest.er1 >conftest.err
6625   rm -f conftest.er1
6626   cat conftest.err >&5
6627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628   (exit $ac_status); } >/dev/null; then
6629   if test -s conftest.err; then
6630     ac_cpp_err=$ac_c_preproc_warn_flag
6631     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6632   else
6633     ac_cpp_err=
6634   fi
6635 else
6636   ac_cpp_err=yes
6637 fi
6638 if test -z "$ac_cpp_err"; then
6639   ac_header_preproc=yes
6640 else
6641   echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6643
6644   ac_header_preproc=no
6645 fi
6646 rm -f conftest.err conftest.$ac_ext
6647 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6648 echo "${ECHO_T}$ac_header_preproc" >&6
6649
6650 # So?  What about this header?
6651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6652   yes:no: )
6653     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6654 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6655     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6656 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6657     ac_header_preproc=yes
6658     ;;
6659   no:yes:* )
6660     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6661 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6662     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6663 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6664     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6665 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6666     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6667 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6668     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6669 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6670     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6671 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6672     (
6673       cat <<\_ASBOX
6674 ## ------------------------------------------ ##
6675 ## Report this to the AC_PACKAGE_NAME lists.  ##
6676 ## ------------------------------------------ ##
6677 _ASBOX
6678     ) |
6679       sed "s/^/$as_me: WARNING:     /" >&2
6680     ;;
6681 esac
6682 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6683 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6685   echo $ECHO_N "(cached) $ECHO_C" >&6
6686 else
6687   eval "$as_ac_Header=\$ac_header_preproc"
6688 fi
6689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6691
6692 fi
6693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6694    cat >>confdefs.h <<\_ACEOF
6695 #define HAVE_READLINE 1
6696 _ACEOF
6697
6698                  got_readline="yes"
6699                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6700                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6701                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6702                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6703
6704 else
6705    echo " "
6706                 echo "readline.h not found. readline turned off ..."
6707                 echo " "
6708
6709
6710 fi
6711
6712
6713
6714
6715 fi
6716
6717
6718
6719
6720 fi;
6721 fi
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732 # Minimal stuff for readline Makefile configuration
6733 MAKE_SHELL=/bin/sh
6734
6735 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6736 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6737 if test "${ac_cv_header_stat_broken+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   cat >conftest.$ac_ext <<_ACEOF
6741 /* confdefs.h.  */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h.  */
6746 #include <sys/types.h>
6747 #include <sys/stat.h>
6748
6749 #if defined(S_ISBLK) && defined(S_IFDIR)
6750 # if S_ISBLK (S_IFDIR)
6751 You lose.
6752 # endif
6753 #endif
6754
6755 #if defined(S_ISBLK) && defined(S_IFCHR)
6756 # if S_ISBLK (S_IFCHR)
6757 You lose.
6758 # endif
6759 #endif
6760
6761 #if defined(S_ISLNK) && defined(S_IFREG)
6762 # if S_ISLNK (S_IFREG)
6763 You lose.
6764 # endif
6765 #endif
6766
6767 #if defined(S_ISSOCK) && defined(S_IFREG)
6768 # if S_ISSOCK (S_IFREG)
6769 You lose.
6770 # endif
6771 #endif
6772
6773 _ACEOF
6774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6775   $EGREP "You lose" >/dev/null 2>&1; then
6776   ac_cv_header_stat_broken=yes
6777 else
6778   ac_cv_header_stat_broken=no
6779 fi
6780 rm -f conftest*
6781
6782 fi
6783 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6784 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6785 if test $ac_cv_header_stat_broken = yes; then
6786
6787 cat >>confdefs.h <<\_ACEOF
6788 #define STAT_MACROS_BROKEN 1
6789 _ACEOF
6790
6791 fi
6792
6793
6794
6795
6796
6797
6798 ac_header_dirent=no
6799 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6800   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6801 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6802 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6804   echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806   cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h.  */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h.  */
6812 #include <sys/types.h>
6813 #include <$ac_hdr>
6814
6815 int
6816 main ()
6817 {
6818 if ((DIR *) 0)
6819 return 0;
6820   ;
6821   return 0;
6822 }
6823 _ACEOF
6824 rm -f conftest.$ac_objext
6825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6826   (eval $ac_compile) 2>conftest.er1
6827   ac_status=$?
6828   grep -v '^ *+' conftest.er1 >conftest.err
6829   rm -f conftest.er1
6830   cat conftest.err >&5
6831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832   (exit $ac_status); } &&
6833          { ac_try='test -z "$ac_c_werror_flag"
6834                          || test ! -s conftest.err'
6835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836   (eval $ac_try) 2>&5
6837   ac_status=$?
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); }; } &&
6840          { ac_try='test -s conftest.$ac_objext'
6841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842   (eval $ac_try) 2>&5
6843   ac_status=$?
6844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845   (exit $ac_status); }; }; then
6846   eval "$as_ac_Header=yes"
6847 else
6848   echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6850
6851 eval "$as_ac_Header=no"
6852 fi
6853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6854 fi
6855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6858   cat >>confdefs.h <<_ACEOF
6859 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6860 _ACEOF
6861
6862 ac_header_dirent=$ac_hdr; break
6863 fi
6864
6865 done
6866 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6867 if test $ac_header_dirent = dirent.h; then
6868   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6869 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6870 if test "${ac_cv_search_opendir+set}" = set; then
6871   echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873   ac_func_search_save_LIBS=$LIBS
6874 ac_cv_search_opendir=no
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h.  */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h.  */
6881
6882 /* Override any gcc2 internal prototype to avoid an error.  */
6883 #ifdef __cplusplus
6884 extern "C"
6885 #endif
6886 /* We use char because int might match the return type of a gcc2
6887    builtin and then its argument prototype would still apply.  */
6888 char opendir ();
6889 int
6890 main ()
6891 {
6892 opendir ();
6893   ;
6894   return 0;
6895 }
6896 _ACEOF
6897 rm -f conftest.$ac_objext conftest$ac_exeext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6899   (eval $ac_link) 2>conftest.er1
6900   ac_status=$?
6901   grep -v '^ *+' conftest.er1 >conftest.err
6902   rm -f conftest.er1
6903   cat conftest.err >&5
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); } &&
6906          { ac_try='test -z "$ac_c_werror_flag"
6907                          || test ! -s conftest.err'
6908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909   (eval $ac_try) 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); }; } &&
6913          { ac_try='test -s conftest$ac_exeext'
6914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915   (eval $ac_try) 2>&5
6916   ac_status=$?
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); }; }; then
6919   ac_cv_search_opendir="none required"
6920 else
6921   echo "$as_me: failed program was:" >&5
6922 sed 's/^/| /' conftest.$ac_ext >&5
6923
6924 fi
6925 rm -f conftest.err conftest.$ac_objext \
6926       conftest$ac_exeext conftest.$ac_ext
6927 if test "$ac_cv_search_opendir" = no; then
6928   for ac_lib in dir; do
6929     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6930     cat >conftest.$ac_ext <<_ACEOF
6931 /* confdefs.h.  */
6932 _ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h.  */
6936
6937 /* Override any gcc2 internal prototype to avoid an error.  */
6938 #ifdef __cplusplus
6939 extern "C"
6940 #endif
6941 /* We use char because int might match the return type of a gcc2
6942    builtin and then its argument prototype would still apply.  */
6943 char opendir ();
6944 int
6945 main ()
6946 {
6947 opendir ();
6948   ;
6949   return 0;
6950 }
6951 _ACEOF
6952 rm -f conftest.$ac_objext conftest$ac_exeext
6953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6954   (eval $ac_link) 2>conftest.er1
6955   ac_status=$?
6956   grep -v '^ *+' conftest.er1 >conftest.err
6957   rm -f conftest.er1
6958   cat conftest.err >&5
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); } &&
6961          { ac_try='test -z "$ac_c_werror_flag"
6962                          || test ! -s conftest.err'
6963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964   (eval $ac_try) 2>&5
6965   ac_status=$?
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); }; } &&
6968          { ac_try='test -s conftest$ac_exeext'
6969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970   (eval $ac_try) 2>&5
6971   ac_status=$?
6972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973   (exit $ac_status); }; }; then
6974   ac_cv_search_opendir="-l$ac_lib"
6975 break
6976 else
6977   echo "$as_me: failed program was:" >&5
6978 sed 's/^/| /' conftest.$ac_ext >&5
6979
6980 fi
6981 rm -f conftest.err conftest.$ac_objext \
6982       conftest$ac_exeext conftest.$ac_ext
6983   done
6984 fi
6985 LIBS=$ac_func_search_save_LIBS
6986 fi
6987 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6988 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6989 if test "$ac_cv_search_opendir" != no; then
6990   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6991
6992 fi
6993
6994 else
6995   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6996 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6997 if test "${ac_cv_search_opendir+set}" = set; then
6998   echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000   ac_func_search_save_LIBS=$LIBS
7001 ac_cv_search_opendir=no
7002 cat >conftest.$ac_ext <<_ACEOF
7003 /* confdefs.h.  */
7004 _ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h.  */
7008
7009 /* Override any gcc2 internal prototype to avoid an error.  */
7010 #ifdef __cplusplus
7011 extern "C"
7012 #endif
7013 /* We use char because int might match the return type of a gcc2
7014    builtin and then its argument prototype would still apply.  */
7015 char opendir ();
7016 int
7017 main ()
7018 {
7019 opendir ();
7020   ;
7021   return 0;
7022 }
7023 _ACEOF
7024 rm -f conftest.$ac_objext conftest$ac_exeext
7025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7026   (eval $ac_link) 2>conftest.er1
7027   ac_status=$?
7028   grep -v '^ *+' conftest.er1 >conftest.err
7029   rm -f conftest.er1
7030   cat conftest.err >&5
7031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032   (exit $ac_status); } &&
7033          { ac_try='test -z "$ac_c_werror_flag"
7034                          || test ! -s conftest.err'
7035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036   (eval $ac_try) 2>&5
7037   ac_status=$?
7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039   (exit $ac_status); }; } &&
7040          { ac_try='test -s conftest$ac_exeext'
7041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042   (eval $ac_try) 2>&5
7043   ac_status=$?
7044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045   (exit $ac_status); }; }; then
7046   ac_cv_search_opendir="none required"
7047 else
7048   echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7050
7051 fi
7052 rm -f conftest.err conftest.$ac_objext \
7053       conftest$ac_exeext conftest.$ac_ext
7054 if test "$ac_cv_search_opendir" = no; then
7055   for ac_lib in x; do
7056     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7057     cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h.  */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h.  */
7063
7064 /* Override any gcc2 internal prototype to avoid an error.  */
7065 #ifdef __cplusplus
7066 extern "C"
7067 #endif
7068 /* We use char because int might match the return type of a gcc2
7069    builtin and then its argument prototype would still apply.  */
7070 char opendir ();
7071 int
7072 main ()
7073 {
7074 opendir ();
7075   ;
7076   return 0;
7077 }
7078 _ACEOF
7079 rm -f conftest.$ac_objext conftest$ac_exeext
7080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081   (eval $ac_link) 2>conftest.er1
7082   ac_status=$?
7083   grep -v '^ *+' conftest.er1 >conftest.err
7084   rm -f conftest.er1
7085   cat conftest.err >&5
7086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087   (exit $ac_status); } &&
7088          { ac_try='test -z "$ac_c_werror_flag"
7089                          || test ! -s conftest.err'
7090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7091   (eval $ac_try) 2>&5
7092   ac_status=$?
7093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094   (exit $ac_status); }; } &&
7095          { ac_try='test -s conftest$ac_exeext'
7096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097   (eval $ac_try) 2>&5
7098   ac_status=$?
7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100   (exit $ac_status); }; }; then
7101   ac_cv_search_opendir="-l$ac_lib"
7102 break
7103 else
7104   echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7106
7107 fi
7108 rm -f conftest.err conftest.$ac_objext \
7109       conftest$ac_exeext conftest.$ac_ext
7110   done
7111 fi
7112 LIBS=$ac_func_search_save_LIBS
7113 fi
7114 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7115 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7116 if test "$ac_cv_search_opendir" != no; then
7117   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7118
7119 fi
7120
7121 fi
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7132 do
7133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7134 echo "$as_me:$LINENO: checking for $ac_func" >&5
7135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7136 if eval "test \"\${$as_ac_var+set}\" = set"; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h.  */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h.  */
7145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7147 #define $ac_func innocuous_$ac_func
7148
7149 /* System header to define __stub macros and hopefully few prototypes,
7150     which can conflict with char $ac_func (); below.
7151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7152     <limits.h> exists even on freestanding compilers.  */
7153
7154 #ifdef __STDC__
7155 # include <limits.h>
7156 #else
7157 # include <assert.h>
7158 #endif
7159
7160 #undef $ac_func
7161
7162 /* Override any gcc2 internal prototype to avoid an error.  */
7163 #ifdef __cplusplus
7164 extern "C"
7165 {
7166 #endif
7167 /* We use char because int might match the return type of a gcc2
7168    builtin and then its argument prototype would still apply.  */
7169 char $ac_func ();
7170 /* The GNU C library defines this for functions which it implements
7171     to always fail with ENOSYS.  Some functions are actually named
7172     something starting with __ and the normal name is an alias.  */
7173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7174 choke me
7175 #else
7176 char (*f) () = $ac_func;
7177 #endif
7178 #ifdef __cplusplus
7179 }
7180 #endif
7181
7182 int
7183 main ()
7184 {
7185 return f != $ac_func;
7186   ;
7187   return 0;
7188 }
7189 _ACEOF
7190 rm -f conftest.$ac_objext conftest$ac_exeext
7191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7192   (eval $ac_link) 2>conftest.er1
7193   ac_status=$?
7194   grep -v '^ *+' conftest.er1 >conftest.err
7195   rm -f conftest.er1
7196   cat conftest.err >&5
7197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198   (exit $ac_status); } &&
7199          { ac_try='test -z "$ac_c_werror_flag"
7200                          || test ! -s conftest.err'
7201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202   (eval $ac_try) 2>&5
7203   ac_status=$?
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); }; } &&
7206          { ac_try='test -s conftest$ac_exeext'
7207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208   (eval $ac_try) 2>&5
7209   ac_status=$?
7210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211   (exit $ac_status); }; }; then
7212   eval "$as_ac_var=yes"
7213 else
7214   echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7216
7217 eval "$as_ac_var=no"
7218 fi
7219 rm -f conftest.err conftest.$ac_objext \
7220       conftest$ac_exeext conftest.$ac_ext
7221 fi
7222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7224 if test `eval echo '${'$as_ac_var'}'` = yes; then
7225   cat >>confdefs.h <<_ACEOF
7226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7227 _ACEOF
7228
7229 fi
7230 done
7231
7232
7233
7234 for ac_func in nanosleep nl_langinfo
7235 do
7236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7237 echo "$as_me:$LINENO: checking for $ac_func" >&5
7238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7239 if eval "test \"\${$as_ac_var+set}\" = set"; then
7240   echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242   cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h.  */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h.  */
7248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7250 #define $ac_func innocuous_$ac_func
7251
7252 /* System header to define __stub macros and hopefully few prototypes,
7253     which can conflict with char $ac_func (); below.
7254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7255     <limits.h> exists even on freestanding compilers.  */
7256
7257 #ifdef __STDC__
7258 # include <limits.h>
7259 #else
7260 # include <assert.h>
7261 #endif
7262
7263 #undef $ac_func
7264
7265 /* Override any gcc2 internal prototype to avoid an error.  */
7266 #ifdef __cplusplus
7267 extern "C"
7268 {
7269 #endif
7270 /* We use char because int might match the return type of a gcc2
7271    builtin and then its argument prototype would still apply.  */
7272 char $ac_func ();
7273 /* The GNU C library defines this for functions which it implements
7274     to always fail with ENOSYS.  Some functions are actually named
7275     something starting with __ and the normal name is an alias.  */
7276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7277 choke me
7278 #else
7279 char (*f) () = $ac_func;
7280 #endif
7281 #ifdef __cplusplus
7282 }
7283 #endif
7284
7285 int
7286 main ()
7287 {
7288 return f != $ac_func;
7289   ;
7290   return 0;
7291 }
7292 _ACEOF
7293 rm -f conftest.$ac_objext conftest$ac_exeext
7294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7295   (eval $ac_link) 2>conftest.er1
7296   ac_status=$?
7297   grep -v '^ *+' conftest.er1 >conftest.err
7298   rm -f conftest.er1
7299   cat conftest.err >&5
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); } &&
7302          { ac_try='test -z "$ac_c_werror_flag"
7303                          || test ! -s conftest.err'
7304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7305   (eval $ac_try) 2>&5
7306   ac_status=$?
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); }; } &&
7309          { ac_try='test -s conftest$ac_exeext'
7310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7311   (eval $ac_try) 2>&5
7312   ac_status=$?
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); }; }; then
7315   eval "$as_ac_var=yes"
7316 else
7317   echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7319
7320 eval "$as_ac_var=no"
7321 fi
7322 rm -f conftest.err conftest.$ac_objext \
7323       conftest$ac_exeext conftest.$ac_ext
7324 fi
7325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7327 if test `eval echo '${'$as_ac_var'}'` = yes; then
7328   cat >>confdefs.h <<_ACEOF
7329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7330 _ACEOF
7331
7332 fi
7333 done
7334
7335
7336 for ac_header in varargs.h
7337 do
7338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7340   echo "$as_me:$LINENO: checking for $ac_header" >&5
7341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7343   echo $ECHO_N "(cached) $ECHO_C" >&6
7344 fi
7345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7347 else
7348   # Is the header compilable?
7349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7351 cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h.  */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h.  */
7357 $ac_includes_default
7358 #include <$ac_header>
7359 _ACEOF
7360 rm -f conftest.$ac_objext
7361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7362   (eval $ac_compile) 2>conftest.er1
7363   ac_status=$?
7364   grep -v '^ *+' conftest.er1 >conftest.err
7365   rm -f conftest.er1
7366   cat conftest.err >&5
7367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368   (exit $ac_status); } &&
7369          { ac_try='test -z "$ac_c_werror_flag"
7370                          || test ! -s conftest.err'
7371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372   (eval $ac_try) 2>&5
7373   ac_status=$?
7374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375   (exit $ac_status); }; } &&
7376          { ac_try='test -s conftest.$ac_objext'
7377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378   (eval $ac_try) 2>&5
7379   ac_status=$?
7380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); }; }; then
7382   ac_header_compiler=yes
7383 else
7384   echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7386
7387 ac_header_compiler=no
7388 fi
7389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7391 echo "${ECHO_T}$ac_header_compiler" >&6
7392
7393 # Is the header present?
7394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7396 cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h.  */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h.  */
7402 #include <$ac_header>
7403 _ACEOF
7404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7406   ac_status=$?
7407   grep -v '^ *+' conftest.er1 >conftest.err
7408   rm -f conftest.er1
7409   cat conftest.err >&5
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); } >/dev/null; then
7412   if test -s conftest.err; then
7413     ac_cpp_err=$ac_c_preproc_warn_flag
7414     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7415   else
7416     ac_cpp_err=
7417   fi
7418 else
7419   ac_cpp_err=yes
7420 fi
7421 if test -z "$ac_cpp_err"; then
7422   ac_header_preproc=yes
7423 else
7424   echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7426
7427   ac_header_preproc=no
7428 fi
7429 rm -f conftest.err conftest.$ac_ext
7430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7431 echo "${ECHO_T}$ac_header_preproc" >&6
7432
7433 # So?  What about this header?
7434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7435   yes:no: )
7436     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7440     ac_header_preproc=yes
7441     ;;
7442   no:yes:* )
7443     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7445     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7446 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7447     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7449     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7450 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7453     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7455     (
7456       cat <<\_ASBOX
7457 ## ------------------------------------------ ##
7458 ## Report this to the AC_PACKAGE_NAME lists.  ##
7459 ## ------------------------------------------ ##
7460 _ASBOX
7461     ) |
7462       sed "s/^/$as_me: WARNING:     /" >&2
7463     ;;
7464 esac
7465 echo "$as_me:$LINENO: checking for $ac_header" >&5
7466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7468   echo $ECHO_N "(cached) $ECHO_C" >&6
7469 else
7470   eval "$as_ac_Header=\$ac_header_preproc"
7471 fi
7472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7474
7475 fi
7476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7477   cat >>confdefs.h <<_ACEOF
7478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7479 _ACEOF
7480
7481 fi
7482
7483 done
7484
7485
7486 # End of readline/conio stuff
7487 # -----------------------------------------------------------------------
7488
7489 # -----------------------------------------------------------------------
7490 #  Check for Python support
7491 #
7492 echo "$as_me:$LINENO: checking for Python support" >&5
7493 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7494
7495 # Check whether --with-python or --without-python was given.
7496 if test "${with_python+set}" = set; then
7497   withval="$with_python"
7498
7499   PYTHON_INCDIR=
7500   PYTHON_LIBS=
7501   if test "$withval" != "no"; then
7502      if test "$withval" = "yes"; then
7503         if test -f /usr/include/python2.2/Python.h; then
7504            PYTHON_INCDIR=-I/usr/include/python2.2
7505            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7506         elif test -f /usr/include/python2.3/Python.h; then
7507            PYTHON_INCDIR=-I/usr/include/python2.3
7508            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7509         elif test -f /usr/include/python2.4/Python.h; then
7510            PYTHON_INCDIR=-I/usr/include/python2.4
7511            PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7512         elif test -f $prefix/include/Python.h; then
7513            PYTHON_INCDIR=-I$prefix/include
7514            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7515         else
7516            echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6
7518            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7519 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7520    { (exit 1); exit 1; }; }
7521         fi
7522      else
7523         if test -f $withval/Python.h; then
7524            PYTHON_INCDIR=-I$withval
7525            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7526         elif test -f $withval/include/Python.h; then
7527            PYTHON_INCDIR=-I$withval/include
7528            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7529         else
7530            echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6
7532            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7533 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7534    { (exit 1); exit 1; }; }
7535         fi
7536      fi
7537      cat >>confdefs.h <<\_ACEOF
7538 #define HAVE_PYTHON 1
7539 _ACEOF
7540
7541      echo "$as_me:$LINENO: result: yes" >&5
7542 echo "${ECHO_T}yes" >&6
7543      support_python=yes
7544
7545   else
7546      echo "$as_me:$LINENO: result: no" >&5
7547 echo "${ECHO_T}no" >&6
7548   fi
7549
7550 else
7551
7552   echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6
7554
7555 fi;
7556
7557
7558
7559
7560 #
7561 # Find where sockets are (especially for Solaris)
7562 # Do this before the TCP Wrappers test since tcp wrappers
7563 # uses the socket library and some linkers are stupid.
7564 #
7565 echo "$as_me:$LINENO: checking for socket" >&5
7566 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7567 if test "${ac_cv_func_socket+set}" = set; then
7568   echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570   cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h.  */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h.  */
7576 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7578 #define socket innocuous_socket
7579
7580 /* System header to define __stub macros and hopefully few prototypes,
7581     which can conflict with char socket (); below.
7582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7583     <limits.h> exists even on freestanding compilers.  */
7584
7585 #ifdef __STDC__
7586 # include <limits.h>
7587 #else
7588 # include <assert.h>
7589 #endif
7590
7591 #undef socket
7592
7593 /* Override any gcc2 internal prototype to avoid an error.  */
7594 #ifdef __cplusplus
7595 extern "C"
7596 {
7597 #endif
7598 /* We use char because int might match the return type of a gcc2
7599    builtin and then its argument prototype would still apply.  */
7600 char socket ();
7601 /* The GNU C library defines this for functions which it implements
7602     to always fail with ENOSYS.  Some functions are actually named
7603     something starting with __ and the normal name is an alias.  */
7604 #if defined (__stub_socket) || defined (__stub___socket)
7605 choke me
7606 #else
7607 char (*f) () = socket;
7608 #endif
7609 #ifdef __cplusplus
7610 }
7611 #endif
7612
7613 int
7614 main ()
7615 {
7616 return f != socket;
7617   ;
7618   return 0;
7619 }
7620 _ACEOF
7621 rm -f conftest.$ac_objext conftest$ac_exeext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7623   (eval $ac_link) 2>conftest.er1
7624   ac_status=$?
7625   grep -v '^ *+' conftest.er1 >conftest.err
7626   rm -f conftest.er1
7627   cat conftest.err >&5
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); } &&
7630          { ac_try='test -z "$ac_c_werror_flag"
7631                          || test ! -s conftest.err'
7632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633   (eval $ac_try) 2>&5
7634   ac_status=$?
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); }; } &&
7637          { ac_try='test -s conftest$ac_exeext'
7638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639   (eval $ac_try) 2>&5
7640   ac_status=$?
7641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); }; }; then
7643   ac_cv_func_socket=yes
7644 else
7645   echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7647
7648 ac_cv_func_socket=no
7649 fi
7650 rm -f conftest.err conftest.$ac_objext \
7651       conftest$ac_exeext conftest.$ac_ext
7652 fi
7653 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7654 echo "${ECHO_T}$ac_cv_func_socket" >&6
7655 if test $ac_cv_func_socket = yes; then
7656   echo "$as_me:$LINENO: result: using libc's socket" >&5
7657 echo "${ECHO_T}using libc's socket" >&6
7658 else
7659
7660 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7661 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7662 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7663   echo $ECHO_N "(cached) $ECHO_C" >&6
7664 else
7665   ac_check_lib_save_LIBS=$LIBS
7666 LIBS="-lxnet  $LIBS"
7667 cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h.  */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h.  */
7673
7674 /* Override any gcc2 internal prototype to avoid an error.  */
7675 #ifdef __cplusplus
7676 extern "C"
7677 #endif
7678 /* We use char because int might match the return type of a gcc2
7679    builtin and then its argument prototype would still apply.  */
7680 char socket ();
7681 int
7682 main ()
7683 {
7684 socket ();
7685   ;
7686   return 0;
7687 }
7688 _ACEOF
7689 rm -f conftest.$ac_objext conftest$ac_exeext
7690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7691   (eval $ac_link) 2>conftest.er1
7692   ac_status=$?
7693   grep -v '^ *+' conftest.er1 >conftest.err
7694   rm -f conftest.er1
7695   cat conftest.err >&5
7696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697   (exit $ac_status); } &&
7698          { ac_try='test -z "$ac_c_werror_flag"
7699                          || test ! -s conftest.err'
7700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701   (eval $ac_try) 2>&5
7702   ac_status=$?
7703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704   (exit $ac_status); }; } &&
7705          { ac_try='test -s conftest$ac_exeext'
7706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7707   (eval $ac_try) 2>&5
7708   ac_status=$?
7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710   (exit $ac_status); }; }; then
7711   ac_cv_lib_xnet_socket=yes
7712 else
7713   echo "$as_me: failed program was:" >&5
7714 sed 's/^/| /' conftest.$ac_ext >&5
7715
7716 ac_cv_lib_xnet_socket=no
7717 fi
7718 rm -f conftest.err conftest.$ac_objext \
7719       conftest$ac_exeext conftest.$ac_ext
7720 LIBS=$ac_check_lib_save_LIBS
7721 fi
7722 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7723 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7724 if test $ac_cv_lib_xnet_socket = yes; then
7725   cat >>confdefs.h <<_ACEOF
7726 #define HAVE_LIBXNET 1
7727 _ACEOF
7728
7729   LIBS="-lxnet $LIBS"
7730
7731 fi
7732
7733
7734 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7735 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7736 if test "${ac_cv_lib_socket_socket+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   ac_check_lib_save_LIBS=$LIBS
7740 LIBS="-lsocket  $LIBS"
7741 cat >conftest.$ac_ext <<_ACEOF
7742 /* confdefs.h.  */
7743 _ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h.  */
7747
7748 /* Override any gcc2 internal prototype to avoid an error.  */
7749 #ifdef __cplusplus
7750 extern "C"
7751 #endif
7752 /* We use char because int might match the return type of a gcc2
7753    builtin and then its argument prototype would still apply.  */
7754 char socket ();
7755 int
7756 main ()
7757 {
7758 socket ();
7759   ;
7760   return 0;
7761 }
7762 _ACEOF
7763 rm -f conftest.$ac_objext conftest$ac_exeext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765   (eval $ac_link) 2>conftest.er1
7766   ac_status=$?
7767   grep -v '^ *+' conftest.er1 >conftest.err
7768   rm -f conftest.er1
7769   cat conftest.err >&5
7770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771   (exit $ac_status); } &&
7772          { ac_try='test -z "$ac_c_werror_flag"
7773                          || test ! -s conftest.err'
7774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775   (eval $ac_try) 2>&5
7776   ac_status=$?
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); }; } &&
7779          { ac_try='test -s conftest$ac_exeext'
7780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781   (eval $ac_try) 2>&5
7782   ac_status=$?
7783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784   (exit $ac_status); }; }; then
7785   ac_cv_lib_socket_socket=yes
7786 else
7787   echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7789
7790 ac_cv_lib_socket_socket=no
7791 fi
7792 rm -f conftest.err conftest.$ac_objext \
7793       conftest$ac_exeext conftest.$ac_ext
7794 LIBS=$ac_check_lib_save_LIBS
7795 fi
7796 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7797 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7798 if test $ac_cv_lib_socket_socket = yes; then
7799   cat >>confdefs.h <<_ACEOF
7800 #define HAVE_LIBSOCKET 1
7801 _ACEOF
7802
7803   LIBS="-lsocket $LIBS"
7804
7805 fi
7806
7807
7808 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7809 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7810 if test "${ac_cv_lib_inet_socket+set}" = set; then
7811   echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813   ac_check_lib_save_LIBS=$LIBS
7814 LIBS="-linet  $LIBS"
7815 cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h.  */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h.  */
7821
7822 /* Override any gcc2 internal prototype to avoid an error.  */
7823 #ifdef __cplusplus
7824 extern "C"
7825 #endif
7826 /* We use char because int might match the return type of a gcc2
7827    builtin and then its argument prototype would still apply.  */
7828 char socket ();
7829 int
7830 main ()
7831 {
7832 socket ();
7833   ;
7834   return 0;
7835 }
7836 _ACEOF
7837 rm -f conftest.$ac_objext conftest$ac_exeext
7838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839   (eval $ac_link) 2>conftest.er1
7840   ac_status=$?
7841   grep -v '^ *+' conftest.er1 >conftest.err
7842   rm -f conftest.er1
7843   cat conftest.err >&5
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); } &&
7846          { ac_try='test -z "$ac_c_werror_flag"
7847                          || test ! -s conftest.err'
7848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849   (eval $ac_try) 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }; } &&
7853          { ac_try='test -s conftest$ac_exeext'
7854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855   (eval $ac_try) 2>&5
7856   ac_status=$?
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); }; }; then
7859   ac_cv_lib_inet_socket=yes
7860 else
7861   echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7863
7864 ac_cv_lib_inet_socket=no
7865 fi
7866 rm -f conftest.err conftest.$ac_objext \
7867       conftest$ac_exeext conftest.$ac_ext
7868 LIBS=$ac_check_lib_save_LIBS
7869 fi
7870 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7871 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7872 if test $ac_cv_lib_inet_socket = yes; then
7873   cat >>confdefs.h <<_ACEOF
7874 #define HAVE_LIBINET 1
7875 _ACEOF
7876
7877   LIBS="-linet $LIBS"
7878
7879 fi
7880
7881 fi
7882
7883
7884
7885 # -----------------------------------------------------------
7886 # Check whether user wants TCP wrappers support (default off)
7887 # -----------------------------------------------------------
7888 TCPW_MSG="no"
7889
7890 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7891 if test "${with_tcp_wrappers+set}" = set; then
7892   withval="$with_tcp_wrappers"
7893
7894     if test "x$withval" != "xno" ; then
7895        saved_LIBS="$LIBS"
7896        LIBS="$saved_LIBS -lwrap"
7897        echo "$as_me:$LINENO: checking for libwrap" >&5
7898 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7899        cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905  #include <tcpd.h>
7906              int deny_severity = 0;
7907              int allow_severity = 0;
7908              struct request_info *req;
7909 int
7910 main ()
7911 {
7912  hosts_access(req);
7913   ;
7914   return 0;
7915 }
7916 _ACEOF
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7919   (eval $ac_link) 2>conftest.er1
7920   ac_status=$?
7921   grep -v '^ *+' conftest.er1 >conftest.err
7922   rm -f conftest.er1
7923   cat conftest.err >&5
7924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925   (exit $ac_status); } &&
7926          { ac_try='test -z "$ac_c_werror_flag"
7927                          || test ! -s conftest.err'
7928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7929   (eval $ac_try) 2>&5
7930   ac_status=$?
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); }; } &&
7933          { ac_try='test -s conftest$ac_exeext'
7934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7935   (eval $ac_try) 2>&5
7936   ac_status=$?
7937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938   (exit $ac_status); }; }; then
7939
7940             echo "$as_me:$LINENO: result: yes" >&5
7941 echo "${ECHO_T}yes" >&6
7942             cat >>confdefs.h <<\_ACEOF
7943 #define HAVE_LIBWRAP 1
7944 _ACEOF
7945
7946             TCPW_MSG="yes"
7947
7948 else
7949   echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7951
7952
7953             LIBS="$saved_LIBS -lwrap -lnsl"
7954             cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960  #include <tcpd.h>
7961                  int deny_severity = 0;
7962                  int allow_severity = 0;
7963                  struct request_info *req;
7964 int
7965 main ()
7966 {
7967  hosts_access(req);
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7974   (eval $ac_link) 2>conftest.er1
7975   ac_status=$?
7976   grep -v '^ *+' conftest.er1 >conftest.err
7977   rm -f conftest.er1
7978   cat conftest.err >&5
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } &&
7981          { ac_try='test -z "$ac_c_werror_flag"
7982                          || test ! -s conftest.err'
7983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984   (eval $ac_try) 2>&5
7985   ac_status=$?
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); }; } &&
7988          { ac_try='test -s conftest$ac_exeext'
7989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990   (eval $ac_try) 2>&5
7991   ac_status=$?
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); }; }; then
7994
7995                  echo "$as_me:$LINENO: result: yes" >&5
7996 echo "${ECHO_T}yes" >&6
7997                  cat >>confdefs.h <<\_ACEOF
7998 #define HAVE_LIBWRAP 1
7999 _ACEOF
8000
8001                  TCPW_MSG="yes"
8002
8003 else
8004   echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8006
8007 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
8008 echo "$as_me: error: *** libwrap missing" >&2;}
8009    { (exit 1); exit 1; }; }
8010
8011 fi
8012 rm -f conftest.err conftest.$ac_objext \
8013       conftest$ac_exeext conftest.$ac_ext
8014
8015 fi
8016 rm -f conftest.err conftest.$ac_objext \
8017       conftest$ac_exeext conftest.$ac_ext
8018     fi
8019
8020
8021 fi;
8022
8023 # -----------------------------------------------------------
8024 # Check whether OpenSSL is available
8025 # -----------------------------------------------------------
8026 echo "$as_me:$LINENO: checking for OpenSSL" >&5
8027 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
8028
8029 # Check whether --with-openssl or --without-openssl was given.
8030 if test "${with_openssl+set}" = set; then
8031   withval="$with_openssl"
8032   with_openssl_directory=${withval}
8033 fi;
8034
8035 if test "x$with_openssl_directory" != "x"; then
8036         OPENSSL_LIBS="-lssl -lcrypto"
8037         OPENSSL_INC=""
8038
8039         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
8040                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
8041                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
8042         fi
8043
8044         saved_LIBS="$LIBS"
8045         saved_CFLAGS="$CFLAGS"
8046         LIBS="$saved_LIBS $OPENSSL_LIBS"
8047         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
8048
8049         cat >conftest.$ac_ext <<_ACEOF
8050 /* confdefs.h.  */
8051 _ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h.  */
8055  #include <openssl/ssl.h>
8056 int
8057 main ()
8058 {
8059  CRYPTO_set_id_callback(NULL);
8060   ;
8061   return 0;
8062 }
8063 _ACEOF
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8066   (eval $ac_link) 2>conftest.er1
8067   ac_status=$?
8068   grep -v '^ *+' conftest.er1 >conftest.err
8069   rm -f conftest.er1
8070   cat conftest.err >&5
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); } &&
8073          { ac_try='test -z "$ac_c_werror_flag"
8074                          || test ! -s conftest.err'
8075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076   (eval $ac_try) 2>&5
8077   ac_status=$?
8078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); }; } &&
8080          { ac_try='test -s conftest$ac_exeext'
8081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082   (eval $ac_try) 2>&5
8083   ac_status=$?
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); }; }; then
8086    support_tls="yes"
8087 else
8088   echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8090
8091  support_tls="no"
8092
8093 fi
8094 rm -f conftest.err conftest.$ac_objext \
8095       conftest$ac_exeext conftest.$ac_ext
8096
8097         LIBS="$saved_LIBS"
8098         CFLAGS="$saved_CFLAGS"
8099
8100         if test "$support_tls" = "yes"; then
8101
8102 cat >>confdefs.h <<\_ACEOF
8103 #define HAVE_OPENSSL 1
8104 _ACEOF
8105
8106
8107 cat >>confdefs.h <<\_ACEOF
8108 #define HAVE_TLS 1
8109 _ACEOF
8110
8111         fi
8112 else
8113         support_tls="no"
8114         OPENSSL_LIBS=""
8115         OPENSSL_INC=""
8116 fi
8117
8118 echo "$as_me:$LINENO: result: $support_tls" >&5
8119 echo "${ECHO_T}$support_tls" >&6
8120
8121
8122
8123
8124
8125 # ------------------------------------------
8126 # Where to place working dir
8127 # ------------------------------------------
8128 working_dir=`eval echo ${prefix}/var/bacula/working`
8129
8130 # Check whether --with-working-dir or --without-working-dir was given.
8131 if test "${with_working_dir+set}" = set; then
8132   withval="$with_working_dir"
8133
8134        if test "x$withval" != "xno" ; then
8135               working_dir=$withval
8136        fi
8137
8138
8139 fi;
8140
8141
8142
8143
8144 # ------------------------------------------
8145 # Where to place scriptdir (script files)
8146 # ------------------------------------------
8147 scriptdir=`eval echo ${sysconfdir}`
8148
8149 # Check whether --with-scriptdir or --without-scriptdir was given.
8150 if test "${with_scriptdir+set}" = set; then
8151   withval="$with_scriptdir"
8152
8153        if test "x$withval" != "xno" ; then
8154               scriptdir=$withval
8155        fi
8156
8157
8158 fi;
8159
8160
8161
8162
8163 # ------------------------------------------
8164 # Where to send dump email
8165 # ------------------------------------------
8166 dump_email=root@localhost
8167
8168 # Check whether --with-dump-email or --without-dump-email was given.
8169 if test "${with_dump_email+set}" = set; then
8170   withval="$with_dump_email"
8171
8172        if test "x$withval" != "xno" ; then
8173               dump_email=$withval
8174        fi
8175
8176
8177 fi;
8178
8179
8180
8181 # ------------------------------------------
8182 # Where to send job email
8183 # ------------------------------------------
8184 job_email=root@localhost
8185
8186 # Check whether --with-job-email or --without-job-email was given.
8187 if test "${with_job_email+set}" = set; then
8188   withval="$with_job_email"
8189
8190        if test "x$withval" != "xno" ; then
8191               job_email=$withval
8192        fi
8193
8194
8195 fi;
8196
8197
8198
8199 # ------------------------------------------
8200 # Where to find smtp host
8201 # ------------------------------------------
8202 smtp_host=localhost
8203
8204 # Check whether --with-smtp_host or --without-smtp_host was given.
8205 if test "${with_smtp_host+set}" = set; then
8206   withval="$with_smtp_host"
8207
8208        if test "x$withval" != "xno" ; then
8209               smtp_host=$withval
8210        fi
8211
8212
8213 fi;
8214
8215
8216
8217
8218 # ------------------------------------
8219 # Where to place pid files
8220 # ------------------------------------
8221 piddir=/var/run
8222
8223 # Check whether --with-pid-dir or --without-pid-dir was given.
8224 if test "${with_pid_dir+set}" = set; then
8225   withval="$with_pid_dir"
8226
8227         if test "x$withval" != "xno" ; then
8228             piddir=$withval
8229         fi
8230
8231
8232 fi;
8233
8234 cat >>confdefs.h <<_ACEOF
8235 #define _PATH_BACULA_PIDDIR "$piddir"
8236 _ACEOF
8237
8238
8239
8240
8241 # ------------------------------------
8242 # Where to place subsys "lock file"
8243 # ------------------------------------
8244 subsysdir=/var/run/subsys
8245
8246 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8247 if test "${with_subsys_dir+set}" = set; then
8248   withval="$with_subsys_dir"
8249
8250         if test "x$withval" != "xno" ; then
8251             subsysdir=$withval
8252         fi
8253
8254
8255 fi;
8256
8257
8258
8259
8260
8261 # ------------------------------------
8262 # Where to start assigning ports
8263 # ------------------------------------
8264 baseport=9101
8265
8266 # Check whether --with-baseport or --without-baseport was given.
8267 if test "${with_baseport+set}" = set; then
8268   withval="$with_baseport"
8269
8270         if test "x$withval" != "xno" ; then
8271              baseport=$withval
8272         fi
8273
8274
8275 fi;
8276
8277
8278 dir_port=`expr $baseport`
8279 fd_port=`expr $baseport + 1`
8280 sd_port=`expr $fd_port + 1`
8281
8282
8283
8284
8285
8286
8287 # ------------------------------------------
8288 # Generate passwords
8289 # ------------------------------------------
8290 dir_password=
8291
8292 # Check whether --with-dir-password or --without-dir-password was given.
8293 if test "${with_dir_password+set}" = set; then
8294   withval="$with_dir_password"
8295
8296        if test "x$withval" != "xno" ; then
8297            dir_password=$withval
8298        fi
8299
8300
8301 fi;
8302
8303 if test "x$dir_password" = "x" ; then
8304    if test "x$OPENSSL" = "xnone" ; then
8305 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8306       key=`autoconf/randpass 33`
8307    else
8308       key=`openssl rand -base64 33`
8309    fi
8310    dir_password=$key
8311 fi
8312
8313 fd_password=
8314
8315 # Check whether --with-fd-password or --without-fd-password was given.
8316 if test "${with_fd_password+set}" = set; then
8317   withval="$with_fd_password"
8318
8319        if test "x$withval" != "xno" ; then
8320            fd_password=$withval
8321        fi
8322
8323
8324 fi;
8325
8326 if test "x$fd_password" = "x" ; then
8327    if test "x$OPENSSL" = "xnone" ; then
8328 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8329       key=`autoconf/randpass 37`
8330    else
8331       key=`openssl rand -base64 33`
8332    fi
8333    fd_password=$key
8334 fi
8335
8336 sd_password=
8337
8338 # Check whether --with-sd-password or --without-sd-password was given.
8339 if test "${with_sd_password+set}" = set; then
8340   withval="$with_sd_password"
8341
8342        if test "x$withval" != "xno" ; then
8343            sd_password=$withval
8344        fi
8345
8346
8347 fi;
8348
8349 if test "x$sd_password" = "x" ; then
8350    if test "x$OPENSSL" = "xnone" ; then
8351 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8352       key=`autoconf/randpass 41`
8353    else
8354       key=`openssl rand -base64 33`
8355    fi
8356    sd_password=$key
8357 fi
8358
8359 mon_dir_password=
8360
8361 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8362 if test "${with_mon_dir_password+set}" = set; then
8363   withval="$with_mon_dir_password"
8364
8365        if test "x$withval" != "xno" ; then
8366            mon_dir_password=$withval
8367        fi
8368
8369
8370 fi;
8371
8372 if test "x$mon_dir_password" = "x" ; then
8373    if test "x$OPENSSL" = "xnone" ; then
8374 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8375       key=`autoconf/randpass 33`
8376    else
8377       key=`openssl rand -base64 33`
8378    fi
8379    mon_dir_password=$key
8380 fi
8381
8382 mon_fd_password=
8383
8384 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8385 if test "${with_mon_fd_password+set}" = set; then
8386   withval="$with_mon_fd_password"
8387
8388        if test "x$withval" != "xno" ; then
8389            mon_fd_password=$withval
8390        fi
8391
8392
8393 fi;
8394
8395 if test "x$mon_fd_password" = "x" ; then
8396    if test "x$OPENSSL" = "xnone" ; then
8397 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8398       key=`autoconf/randpass 37`
8399    else
8400       key=`openssl rand -base64 33`
8401    fi
8402    mon_fd_password=$key
8403 fi
8404
8405 mon_sd_password=
8406
8407 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8408 if test "${with_mon_sd_password+set}" = set; then
8409   withval="$with_mon_sd_password"
8410
8411        if test "x$withval" != "xno" ; then
8412            mon_sd_password=$withval
8413        fi
8414
8415
8416 fi;
8417
8418 if test "x$mon_sd_password" = "x" ; then
8419    if test "x$OPENSSL" = "xnone" ; then
8420 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8421       key=`autoconf/randpass 41`
8422    else
8423       key=`openssl rand -base64 33`
8424    fi
8425    mon_sd_password=$key
8426 fi
8427
8428
8429
8430
8431
8432
8433
8434
8435 # -------------------------------------------------------------------------
8436 #  Set variables for bimagemgr installation
8437 # -------------------------------------------------------------------------
8438 bimagemgr_cgidir=/var/www/cgi-bin
8439
8440 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8441 if test "${with_bimagemgr_cgidir+set}" = set; then
8442   withval="$with_bimagemgr_cgidir"
8443
8444        if test "x$withval" != "xno" ; then
8445            bimagemgr_cgidir=$withval
8446        fi
8447
8448
8449 fi;
8450
8451 bimagemgr_docdir=/var/www/html
8452
8453 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8454 if test "${with_bimagemgr_docdir+set}" = set; then
8455   withval="$with_bimagemgr_docdir"
8456
8457        if test "x$withval" != "xno" ; then
8458            bimagemgr_docdir=$withval
8459        fi
8460
8461
8462 fi;
8463
8464 bimagemgr_binowner=root
8465
8466 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8467 if test "${with_bimagemgr_binowner+set}" = set; then
8468   withval="$with_bimagemgr_binowner"
8469
8470        if test "x$withval" != "xno" ; then
8471            bimagemgr_binowner=$withval
8472        fi
8473
8474
8475 fi;
8476
8477 bimagemgr_bingroup=root
8478
8479 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8480 if test "${with_bimagemgr_bingroup+set}" = set; then
8481   withval="$with_bimagemgr_bingroup"
8482
8483        if test "x$withval" != "xno" ; then
8484            bimagemgr_bingroup=$withval
8485        fi
8486
8487
8488 fi;
8489
8490 bimagemgr_dataowner=apache
8491
8492 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8493 if test "${with_bimagemgr_dataowner+set}" = set; then
8494   withval="$with_bimagemgr_dataowner"
8495
8496        if test "x$withval" != "xno" ; then
8497            bimagemgr_dataowner=$withval
8498        fi
8499
8500
8501 fi;
8502
8503 bimagemgr_datagroup=apache
8504
8505 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8506 if test "${with_bimagemgr_datagroup+set}" = set; then
8507   withval="$with_bimagemgr_datagroup"
8508
8509        if test "x$withval" != "xno" ; then
8510            bimagemgr_datagroup=$withval
8511        fi
8512
8513
8514 fi;
8515
8516
8517
8518
8519
8520
8521
8522
8523 #
8524 # Handle users and groups for each daemon
8525 #
8526 dir_user=
8527
8528 # Check whether --with-dir_user or --without-dir_user was given.
8529 if test "${with_dir_user+set}" = set; then
8530   withval="$with_dir_user"
8531
8532         if test "x$withval" != "x" ; then
8533              dir_user=$withval
8534         fi
8535
8536
8537 fi;
8538
8539 dir_group=
8540
8541 # Check whether --with-dir_group or --without-dir_group was given.
8542 if test "${with_dir_group+set}" = set; then
8543   withval="$with_dir_group"
8544
8545         if test "x$withval" != "x" ; then
8546              dir_group=$withval
8547         fi
8548
8549
8550 fi;
8551
8552 sd_user=
8553
8554 # Check whether --with-sd_user or --without-sd_user was given.
8555 if test "${with_sd_user+set}" = set; then
8556   withval="$with_sd_user"
8557
8558         if test "x$withval" != "x" ; then
8559              sd_user=$withval
8560         fi
8561
8562
8563 fi;
8564
8565 sd_group=
8566
8567 # Check whether --with-sd_group or --without-sd_group was given.
8568 if test "${with_sd_group+set}" = set; then
8569   withval="$with_sd_group"
8570
8571         if test "x$withval" != "x" ; then
8572              sd_group=$withval
8573         fi
8574
8575
8576 fi;
8577
8578 fd_user=
8579
8580 # Check whether --with-fd_user or --without-fd_user was given.
8581 if test "${with_fd_user+set}" = set; then
8582   withval="$with_fd_user"
8583
8584         if test "x$withval" != "x" ; then
8585              fd_user=$withval
8586         fi
8587
8588
8589 fi;
8590
8591 fd_group=
8592
8593 # Check whether --with-fd_group or --without-fd_group was given.
8594 if test "${with_fd_group+set}" = set; then
8595   withval="$with_fd_group"
8596
8597         if test "x$withval" != "x" ; then
8598              fd_group=$withval
8599         fi
8600
8601
8602 fi;
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614 #
8615 # allow setting default executable permissions
8616 #
8617 SBINPERM=0754
8618
8619 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8620 if test "${with_sbin_perm+set}" = set; then
8621   withval="$with_sbin_perm"
8622
8623         if test "x$withval" != "x" ; then
8624             SBINPERM=$withval
8625         fi
8626
8627
8628 fi;
8629
8630
8631
8632 # ------------------------------------------------
8633 # Bacula check for various SQL database engines
8634 # ------------------------------------------------
8635
8636 db_found=no
8637 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8638 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8639
8640 # Check whether --with-postgresql or --without-postgresql was given.
8641 if test "${with_postgresql+set}" = set; then
8642   withval="$with_postgresql"
8643
8644   if test "$withval" != "no"; then
8645       if test "$db_found" = "yes"; then
8646           echo "$as_me:$LINENO: result: error" >&5
8647 echo "${ECHO_T}error" >&6
8648           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8649 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8650    { (exit 1); exit 1; }; };
8651       fi
8652       if test "$withval" = "yes"; then
8653           if test -f /usr/local/include/libpq-fe.h; then
8654               POSTGRESQL_INCDIR=/usr/local/include
8655               POSTGRESQL_LIBDIR=/usr/local/lib
8656               POSTGRESQL_BINDIR=/usr/local/bin
8657           elif test -f /usr/include/libpq-fe.h; then
8658               POSTGRESQL_INCDIR=/usr/include
8659               POSTGRESQL_LIBDIR=/usr/lib
8660               POSTGRESQL_BINDIR=/usr/bin
8661           elif test -f /usr/include/pgsql/libpq-fe.h; then
8662               POSTGRESQL_INCDIR=/usr/include/pgsql
8663               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8664               POSTGRESQL_BINDIR=/usr/bin
8665           elif test -f /usr/include/postgresql/libpq-fe.h; then
8666               POSTGRESQL_INCDIR=/usr/include/postgresql
8667               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8668               POSTGRESQL_BINDIR=/usr/bin
8669           else
8670               echo "$as_me:$LINENO: result: no" >&5
8671 echo "${ECHO_T}no" >&6
8672               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8673 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8674    { (exit 1); exit 1; }; }
8675           fi
8676       elif test -f $withval/include/libpq-fe.h; then
8677           POSTGRESQL_INCDIR=$withval/include
8678           POSTGRESQL_LIBDIR=$withval/lib
8679           POSTGRESQL_BINDIR=$withval/bin
8680       elif test -f $withval/include/postgresql/libpq-fe.h; then
8681           POSTGRESQL_INCDIR=$withval/include/postgresql
8682           POSTGRESQL_LIBDIR=$withval/lib
8683           POSTGRESQL_BINDIR=$withval/bin
8684       else
8685           echo "$as_me:$LINENO: result: no" >&5
8686 echo "${ECHO_T}no" >&6
8687           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8688 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8689    { (exit 1); exit 1; }; }
8690       fi
8691       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8692       echo "$as_me:$LINENO: checking for crypt" >&5
8693 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8694 if test "${ac_cv_func_crypt+set}" = set; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697   cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h.  */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h.  */
8703 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8704    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8705 #define crypt innocuous_crypt
8706
8707 /* System header to define __stub macros and hopefully few prototypes,
8708     which can conflict with char crypt (); below.
8709     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8710     <limits.h> exists even on freestanding compilers.  */
8711
8712 #ifdef __STDC__
8713 # include <limits.h>
8714 #else
8715 # include <assert.h>
8716 #endif
8717
8718 #undef crypt
8719
8720 /* Override any gcc2 internal prototype to avoid an error.  */
8721 #ifdef __cplusplus
8722 extern "C"
8723 {
8724 #endif
8725 /* We use char because int might match the return type of a gcc2
8726    builtin and then its argument prototype would still apply.  */
8727 char crypt ();
8728 /* The GNU C library defines this for functions which it implements
8729     to always fail with ENOSYS.  Some functions are actually named
8730     something starting with __ and the normal name is an alias.  */
8731 #if defined (__stub_crypt) || defined (__stub___crypt)
8732 choke me
8733 #else
8734 char (*f) () = crypt;
8735 #endif
8736 #ifdef __cplusplus
8737 }
8738 #endif
8739
8740 int
8741 main ()
8742 {
8743 return f != crypt;
8744   ;
8745   return 0;
8746 }
8747 _ACEOF
8748 rm -f conftest.$ac_objext conftest$ac_exeext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8750   (eval $ac_link) 2>conftest.er1
8751   ac_status=$?
8752   grep -v '^ *+' conftest.er1 >conftest.err
8753   rm -f conftest.er1
8754   cat conftest.err >&5
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); } &&
8757          { ac_try='test -z "$ac_c_werror_flag"
8758                          || test ! -s conftest.err'
8759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760   (eval $ac_try) 2>&5
8761   ac_status=$?
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); }; } &&
8764          { ac_try='test -s conftest$ac_exeext'
8765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766   (eval $ac_try) 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); }; }; then
8770   ac_cv_func_crypt=yes
8771 else
8772   echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775 ac_cv_func_crypt=no
8776 fi
8777 rm -f conftest.err conftest.$ac_objext \
8778       conftest$ac_exeext conftest.$ac_ext
8779 fi
8780 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8781 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8782 if test $ac_cv_func_crypt = yes; then
8783   :
8784 else
8785   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8786 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8787 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8788   echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790   ac_check_lib_save_LIBS=$LIBS
8791 LIBS="-lcrypt  $LIBS"
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h.  */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h.  */
8798
8799 /* Override any gcc2 internal prototype to avoid an error.  */
8800 #ifdef __cplusplus
8801 extern "C"
8802 #endif
8803 /* We use char because int might match the return type of a gcc2
8804    builtin and then its argument prototype would still apply.  */
8805 char crypt ();
8806 int
8807 main ()
8808 {
8809 crypt ();
8810   ;
8811   return 0;
8812 }
8813 _ACEOF
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816   (eval $ac_link) 2>conftest.er1
8817   ac_status=$?
8818   grep -v '^ *+' conftest.er1 >conftest.err
8819   rm -f conftest.er1
8820   cat conftest.err >&5
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); } &&
8823          { ac_try='test -z "$ac_c_werror_flag"
8824                          || test ! -s conftest.err'
8825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826   (eval $ac_try) 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; } &&
8830          { ac_try='test -s conftest$ac_exeext'
8831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832   (eval $ac_try) 2>&5
8833   ac_status=$?
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); }; }; then
8836   ac_cv_lib_crypt_crypt=yes
8837 else
8838   echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8840
8841 ac_cv_lib_crypt_crypt=no
8842 fi
8843 rm -f conftest.err conftest.$ac_objext \
8844       conftest$ac_exeext conftest.$ac_ext
8845 LIBS=$ac_check_lib_save_LIBS
8846 fi
8847 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8848 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8849 if test $ac_cv_lib_crypt_crypt = yes; then
8850   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8851 fi
8852
8853 fi
8854
8855       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8856       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8857       SQL_BINDIR=$POSTGRESQL_BINDIR
8858       cat >>confdefs.h <<\_ACEOF
8859 #define HAVE_POSTGRESQL 1
8860 _ACEOF
8861
8862       echo "$as_me:$LINENO: result: yes" >&5
8863 echo "${ECHO_T}yes" >&6
8864       db_found=yes
8865       support_postgresql=yes
8866       db_name=PostgreSQL
8867       DB_NAME=postgresql
8868   else
8869       echo "$as_me:$LINENO: result: no" >&5
8870 echo "${ECHO_T}no" >&6
8871   fi
8872
8873 else
8874
8875   echo "$as_me:$LINENO: result: no" >&5
8876 echo "${ECHO_T}no" >&6
8877
8878 fi;
8879
8880
8881
8882
8883
8884
8885
8886 db_found=no
8887 echo "$as_me:$LINENO: checking for MySQL support" >&5
8888 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8889
8890 # Check whether --with-mysql or --without-mysql was given.
8891 if test "${with_mysql+set}" = set; then
8892   withval="$with_mysql"
8893
8894   if test "$withval" != "no"; then
8895         if test "$withval" = "yes"; then
8896                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8897                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8898                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8899                         MYSQL_BINDIR=/usr/local/mysql/bin
8900                 elif test -f /usr/include/mysql/mysql.h; then
8901                         MYSQL_INCDIR=/usr/include/mysql
8902                         MYSQL_LIBDIR=/usr/lib/mysql
8903                         MYSQL_BINDIR=/usr/bin
8904                 elif test -f /usr/include/mysql.h; then
8905                         MYSQL_INCDIR=/usr/include
8906                         MYSQL_LIBDIR=/usr/lib
8907                         MYSQL_BINDIR=/usr/bin
8908                 elif test -f /usr/local/include/mysql/mysql.h; then
8909                         MYSQL_INCDIR=/usr/local/include/mysql
8910                         MYSQL_LIBDIR=/usr/local/lib/mysql
8911                         MYSQL_BINDIR=/usr/local/bin
8912                 elif test -f /usr/local/include/mysql.h; then
8913                         MYSQL_INCDIR=/usr/local/include
8914                         MYSQL_LIBDIR=/usr/local/lib
8915                         MYSQL_BINDIR=/usr/local/bin
8916                 else
8917                    echo "$as_me:$LINENO: result: no" >&5
8918 echo "${ECHO_T}no" >&6
8919                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8920 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8921    { (exit 1); exit 1; }; }
8922                 fi
8923         else
8924                 if test -f $withval/include/mysql/mysql.h; then
8925                         MYSQL_INCDIR=$withval/include/mysql
8926                         MYSQL_LIBDIR=$withval/lib/mysql
8927                         MYSQL_BINDIR=$withval/bin
8928                 elif test -f $withval/include/mysql.h; then
8929                         MYSQL_INCDIR=$withval/include
8930                         MYSQL_LIBDIR=$withval/lib
8931                         MYSQL_BINDIR=$withval/bin
8932                 else
8933                    echo "$as_me:$LINENO: result: no" >&5
8934 echo "${ECHO_T}no" >&6
8935                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8936 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8937    { (exit 1); exit 1; }; }
8938                 fi
8939         fi
8940     SQL_INCLUDE=-I$MYSQL_INCDIR
8941     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8942        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8943        cat >>confdefs.h <<\_ACEOF
8944 #define HAVE_THREAD_SAFE_MYSQL 1
8945 _ACEOF
8946
8947     else
8948        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8949     fi
8950     SQL_BINDIR=$MYSQL_BINDIR
8951
8952     cat >>confdefs.h <<\_ACEOF
8953 #define HAVE_MYSQL 1
8954 _ACEOF
8955
8956     echo "$as_me:$LINENO: result: yes" >&5
8957 echo "${ECHO_T}yes" >&6
8958     db_found=yes
8959     support_mysql=yes
8960     db_name=MySQL
8961     DB_NAME=mysql
8962
8963   else
8964         echo "$as_me:$LINENO: result: no" >&5
8965 echo "${ECHO_T}no" >&6
8966   fi
8967
8968
8969 fi;
8970
8971
8972 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8973 if test "${with_embedded_mysql+set}" = set; then
8974   withval="$with_embedded_mysql"
8975
8976   if test "$withval" != "no"; then
8977         if test "$withval" = "yes"; then
8978                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8979                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8980                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8981                         MYSQL_BINDIR=/usr/local/mysql/bin
8982                 elif test -f /usr/include/mysql/mysql.h; then
8983                         MYSQL_INCDIR=/usr/include/mysql
8984                         MYSQL_LIBDIR=/usr/lib/mysql
8985                         MYSQL_BINDIR=/usr/bin
8986                 elif test -f /usr/include/mysql.h; then
8987                         MYSQL_INCDIR=/usr/include
8988                         MYSQL_LIBDIR=/usr/lib
8989                         MYSQL_BINDIR=/usr/bin
8990                 elif test -f /usr/local/include/mysql/mysql.h; then
8991                         MYSQL_INCDIR=/usr/local/include/mysql
8992                         MYSQL_LIBDIR=/usr/local/lib/mysql
8993                         MYSQL_BINDIR=/usr/local/bin
8994                 elif test -f /usr/local/include/mysql.h; then
8995                         MYSQL_INCDIR=/usr/local/include
8996                         MYSQL_LIBDIR=/usr/local/lib
8997                         MYSQL_BINDIR=/usr/local/bin
8998                 else
8999                    echo "$as_me:$LINENO: result: no" >&5
9000 echo "${ECHO_T}no" >&6
9001                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
9002 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
9003    { (exit 1); exit 1; }; }
9004                 fi
9005         else
9006                 if test -f $withval/include/mysql/mysql.h; then
9007                         MYSQL_INCDIR=$withval/include/mysql
9008                         MYSQL_LIBDIR=$withval/lib/mysql
9009                         MYSQL_BINDIR=$withval/bin
9010                 elif test -f $withval/include/mysql.h; then
9011                         MYSQL_INCDIR=$withval/include
9012                         MYSQL_LIBDIR=$withval/lib
9013                         MYSQL_BINDIR=$withval/bin
9014                 else
9015                    echo "$as_me:$LINENO: result: no" >&5
9016 echo "${ECHO_T}no" >&6
9017                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
9018 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
9019    { (exit 1); exit 1; }; }
9020                 fi
9021         fi
9022     SQL_INCLUDE=-I$MYSQL_INCDIR
9023     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
9024     SQL_BINDIR=$MYSQL_BINDIR
9025
9026     cat >>confdefs.h <<\_ACEOF
9027 #define HAVE_MYSQL 1
9028 _ACEOF
9029
9030     cat >>confdefs.h <<\_ACEOF
9031 #define HAVE_EMBEDDED_MYSQL 1
9032 _ACEOF
9033
9034     echo "$as_me:$LINENO: result: yes" >&5
9035 echo "${ECHO_T}yes" >&6
9036     db_found=yes
9037     support_mysql=yes
9038     db_name=MySQL
9039     DB_NAME=mysql
9040
9041   else
9042         echo "$as_me:$LINENO: result: no" >&5
9043 echo "${ECHO_T}no" >&6
9044   fi
9045
9046
9047 fi;
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057 db_found=no
9058 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9059 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9060
9061 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9062 if test "${with_sqlite3+set}" = set; then
9063   withval="$with_sqlite3"
9064
9065   if test "$withval" != "no"; then
9066      if test "$withval" = "yes"; then
9067         if test -f /usr/local/include/sqlite3.h; then
9068            SQLITE_INCDIR=/usr/local/include
9069            SQLITE_LIBDIR=/usr/local/lib
9070            SQLITE_BINDIR=/usr/local/bin
9071         elif test -f /usr/include/sqlite3.h; then
9072            SQLITE_INCDIR=/usr/include
9073            SQLITE_LIBDIR=/usr/lib
9074            SQLITE_BINDIR=/usr/bin
9075         elif test -f $prefix/include/sqlite3.h; then
9076            SQLITE_INCDIR=$prefix/include
9077            SQLITE_LIBDIR=$prefix/lib
9078            SQLITE_BINDIR=$prefix/bin
9079         else
9080            echo "$as_me:$LINENO: result: no" >&5
9081 echo "${ECHO_T}no" >&6
9082            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9083 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9084    { (exit 1); exit 1; }; }
9085         fi
9086      else
9087         if test -f $withval/sqlite3.h; then
9088            SQLITE_INCDIR=$withval
9089            SQLITE_LIBDIR=$withval
9090            SQLITE_BINDIR=$withval
9091         elif test -f $withval/include/sqlite3.h; then
9092            SQLITE_INCDIR=$withval/include
9093            SQLITE_LIBDIR=$withval/lib
9094            SQLITE_BINDIR=$withval/bin
9095         else
9096            echo "$as_me:$LINENO: result: no" >&5
9097 echo "${ECHO_T}no" >&6
9098            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9099 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9100    { (exit 1); exit 1; }; }
9101         fi
9102      fi
9103      SQL_INCLUDE=-I$SQLITE_INCDIR
9104      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9105      SQL_BINDIR=$SQLITE_BINDIR
9106
9107      cat >>confdefs.h <<\_ACEOF
9108 #define HAVE_SQLITE3 1
9109 _ACEOF
9110
9111      echo "$as_me:$LINENO: result: yes" >&5
9112 echo "${ECHO_T}yes" >&6
9113      db_found=yes
9114      support_sqlite3=yes
9115      db_name=SQLite3
9116      DB_NAME=sqlite3
9117
9118   else
9119      echo "$as_me:$LINENO: result: no" >&5
9120 echo "${ECHO_T}no" >&6
9121   fi
9122
9123 else
9124
9125   echo "$as_me:$LINENO: result: no" >&5
9126 echo "${ECHO_T}no" >&6
9127
9128 fi;
9129
9130
9131
9132
9133
9134
9135
9136 db_found=no
9137 echo "$as_me:$LINENO: checking for SQLite support" >&5
9138 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9139
9140 # Check whether --with-sqlite or --without-sqlite was given.
9141 if test "${with_sqlite+set}" = set; then
9142   withval="$with_sqlite"
9143
9144   if test "$withval" != "no"; then
9145      if test "$withval" = "yes"; then
9146         if test -f /usr/local/include/sqlite.h; then
9147            SQLITE_INCDIR=/usr/local/include
9148            SQLITE_LIBDIR=/usr/local/lib
9149            SQLITE_BINDIR=/usr/local/bin
9150         elif test -f /usr/include/sqlite.h; then
9151            SQLITE_INCDIR=/usr/include
9152            SQLITE_LIBDIR=/usr/lib
9153            SQLITE_BINDIR=/usr/bin
9154         elif test -f $prefix/include/sqlite.h; then
9155            SQLITE_INCDIR=$prefix/include
9156            SQLITE_LIBDIR=$prefix/lib
9157            SQLITE_BINDIR=$prefix/bin
9158         else
9159            echo "$as_me:$LINENO: result: no" >&5
9160 echo "${ECHO_T}no" >&6
9161            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9162 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9163    { (exit 1); exit 1; }; }
9164         fi
9165      else
9166         if test -f $withval/sqlite.h; then
9167            SQLITE_INCDIR=$withval
9168            SQLITE_LIBDIR=$withval
9169            SQLITE_BINDIR=$withval
9170         elif test -f $withval/include/sqlite.h; then
9171            SQLITE_INCDIR=$withval/include
9172            SQLITE_LIBDIR=$withval/lib
9173            SQLITE_BINDIR=$withval/bin
9174         else
9175            echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6
9177            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9178 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9179    { (exit 1); exit 1; }; }
9180         fi
9181      fi
9182      SQL_INCLUDE=-I$SQLITE_INCDIR
9183      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9184      SQL_BINDIR=$SQLITE_BINDIR
9185
9186      cat >>confdefs.h <<\_ACEOF
9187 #define HAVE_SQLITE 1
9188 _ACEOF
9189
9190      echo "$as_me:$LINENO: result: yes" >&5
9191 echo "${ECHO_T}yes" >&6
9192      db_found=yes
9193      support_sqlite=yes
9194      db_name=SQLite
9195      DB_NAME=sqlite
9196
9197   else
9198      echo "$as_me:$LINENO: result: no" >&5
9199 echo "${ECHO_T}no" >&6
9200   fi
9201
9202 else
9203
9204   echo "$as_me:$LINENO: result: no" >&5
9205 echo "${ECHO_T}no" >&6
9206
9207 fi;
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217 cat >>confdefs.h <<\_ACEOF
9218 #define PROTOTYPES 1
9219 _ACEOF
9220
9221
9222 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9223     if test -z "$CCOPTS"; then
9224         CCOPTS='-g -O2 -Wall'
9225     fi
9226     CFLAGS="$CCOPTS"
9227 fi
9228
9229
9230
9231
9232 largefile_support="no"
9233
9234    # Check whether --enable-largefile or --disable-largefile was given.
9235 if test "${enable_largefile+set}" = set; then
9236   enableval="$enable_largefile"
9237
9238 fi;
9239    if test "$enable_largefile" != no; then
9240      if test -n "$ac_tool_prefix"; then
9241   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9242 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9243 echo "$as_me:$LINENO: checking for $ac_word" >&5
9244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9245 if test "${ac_cv_prog_GETCONF+set}" = set; then
9246   echo $ECHO_N "(cached) $ECHO_C" >&6
9247 else
9248   if test -n "$GETCONF"; then
9249   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9250 else
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252 for as_dir in $PATH
9253 do
9254   IFS=$as_save_IFS
9255   test -z "$as_dir" && as_dir=.
9256   for ac_exec_ext in '' $ac_executable_extensions; do
9257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9258     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9260     break 2
9261   fi
9262 done
9263 done
9264
9265 fi
9266 fi
9267 GETCONF=$ac_cv_prog_GETCONF
9268 if test -n "$GETCONF"; then
9269   echo "$as_me:$LINENO: result: $GETCONF" >&5
9270 echo "${ECHO_T}$GETCONF" >&6
9271 else
9272   echo "$as_me:$LINENO: result: no" >&5
9273 echo "${ECHO_T}no" >&6
9274 fi
9275
9276 fi
9277 if test -z "$ac_cv_prog_GETCONF"; then
9278   ac_ct_GETCONF=$GETCONF
9279   # Extract the first word of "getconf", so it can be a program name with args.
9280 set dummy getconf; ac_word=$2
9281 echo "$as_me:$LINENO: checking for $ac_word" >&5
9282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9283 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9284   echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286   if test -n "$ac_ct_GETCONF"; then
9287   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9288 else
9289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290 for as_dir in $PATH
9291 do
9292   IFS=$as_save_IFS
9293   test -z "$as_dir" && as_dir=.
9294   for ac_exec_ext in '' $ac_executable_extensions; do
9295   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9296     ac_cv_prog_ac_ct_GETCONF="getconf"
9297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9298     break 2
9299   fi
9300 done
9301 done
9302
9303 fi
9304 fi
9305 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9306 if test -n "$ac_ct_GETCONF"; then
9307   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9308 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9309 else
9310   echo "$as_me:$LINENO: result: no" >&5
9311 echo "${ECHO_T}no" >&6
9312 fi
9313
9314   GETCONF=$ac_ct_GETCONF
9315 else
9316   GETCONF="$ac_cv_prog_GETCONF"
9317 fi
9318
9319      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9320 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9321 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9325         ac_cv_sys_largefile_CFLAGS=no
9326         case "$host_os" in
9327            # IRIX 6.2 and later require cc -n32.
9328            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9329              if test "$GCC" != yes; then
9330                ac_cv_sys_largefile_CFLAGS=-n32
9331              fi
9332              ac_save_CC="$CC"
9333              CC="$CC $ac_cv_sys_largefile_CFLAGS"
9334              cat >conftest.$ac_ext <<_ACEOF
9335 /* confdefs.h.  */
9336 _ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h.  */
9340
9341 int
9342 main ()
9343 {
9344
9345   ;
9346   return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351   (eval $ac_link) 2>conftest.er1
9352   ac_status=$?
9353   grep -v '^ *+' conftest.er1 >conftest.err
9354   rm -f conftest.er1
9355   cat conftest.err >&5
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); } &&
9358          { ac_try='test -z "$ac_c_werror_flag"
9359                          || test ! -s conftest.err'
9360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361   (eval $ac_try) 2>&5
9362   ac_status=$?
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); }; } &&
9365          { ac_try='test -s conftest$ac_exeext'
9366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367   (eval $ac_try) 2>&5
9368   ac_status=$?
9369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370   (exit $ac_status); }; }; then
9371   :
9372 else
9373   echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9375
9376 ac_cv_sys_largefile_CFLAGS=no
9377 fi
9378 rm -f conftest.err conftest.$ac_objext \
9379       conftest$ac_exeext conftest.$ac_ext
9380              CC="$ac_save_CC"
9381            esac
9382       }
9383 fi
9384 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9385 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9386      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9387 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9388 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9389   echo $ECHO_N "(cached) $ECHO_C" >&6
9390 else
9391   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9392         ac_cv_sys_largefile_LDFLAGS=no
9393
9394       }
9395 fi
9396 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9397 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9398      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9399 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9400 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9401   echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9404         ac_cv_sys_largefile_LIBS=no
9405
9406       }
9407 fi
9408 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9409 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9410
9411      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9412        case "$ac_flag" in
9413        no) ;;
9414        -D_FILE_OFFSET_BITS=*) ;;
9415        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9416        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9417        -D?* | -I?*)
9418          case "$ac_flag" in
9419    no) ;;
9420    ?*)
9421      case "$CPPFLAGS" in
9422      '') CPPFLAGS="$ac_flag" ;;
9423      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9424      esac ;;
9425    esac ;;
9426        *)
9427          case "$ac_flag" in
9428    no) ;;
9429    ?*)
9430      case "$CFLAGS" in
9431      '') CFLAGS="$ac_flag" ;;
9432      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9433      esac ;;
9434    esac ;;
9435        esac
9436      done
9437      case "$ac_cv_sys_largefile_LDFLAGS" in
9438    no) ;;
9439    ?*)
9440      case "$LDFLAGS" in
9441      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9442      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9443      esac ;;
9444    esac
9445      case "$ac_cv_sys_largefile_LIBS" in
9446    no) ;;
9447    ?*)
9448      case "$LIBS" in
9449      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9450      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9451      esac ;;
9452    esac
9453      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9454 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9455 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9456   echo $ECHO_N "(cached) $ECHO_C" >&6
9457 else
9458   ac_cv_sys_file_offset_bits=no
9459       ac_cv_sys_file_offset_bits=64
9460       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9461         case "$ac_flag" in
9462         -D_FILE_OFFSET_BITS)
9463           ac_cv_sys_file_offset_bits=1 ;;
9464         -D_FILE_OFFSET_BITS=*)
9465           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9466         esac
9467       done
9468
9469 fi
9470 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9471 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9472    if test "$ac_cv_sys_file_offset_bits" != no; then
9473
9474 cat >>confdefs.h <<_ACEOF
9475 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9476 _ACEOF
9477
9478    fi
9479      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9480 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9481 if test "${ac_cv_sys_largefile_source+set}" = set; then
9482   echo $ECHO_N "(cached) $ECHO_C" >&6
9483 else
9484   ac_cv_sys_largefile_source=no
9485       ac_cv_sys_largefile_source=1
9486       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9487         case "$ac_flag" in
9488         -D_LARGEFILE_SOURCE)
9489           ac_cv_sys_largefile_source=1 ;;
9490         -D_LARGEFILE_SOURCE=*)
9491           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9492         esac
9493       done
9494
9495 fi
9496 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9497 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9498    if test "$ac_cv_sys_largefile_source" != no; then
9499
9500 cat >>confdefs.h <<_ACEOF
9501 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9502 _ACEOF
9503
9504    fi
9505      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9506 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9507 if test "${ac_cv_sys_large_files+set}" = set; then
9508   echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510   ac_cv_sys_large_files=no
9511       ac_cv_sys_large_files=1
9512       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9513         case "$ac_flag" in
9514         -D_LARGE_FILES)
9515           ac_cv_sys_large_files=1 ;;
9516         -D_LARGE_FILES=*)
9517           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9518         esac
9519       done
9520
9521 fi
9522 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9523 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9524    if test "$ac_cv_sys_large_files" != no; then
9525
9526 cat >>confdefs.h <<_ACEOF
9527 #define _LARGE_FILES $ac_cv_sys_large_files
9528 _ACEOF
9529
9530    fi
9531    fi
9532
9533
9534
9535 echo "$as_me:$LINENO: checking for X" >&5
9536 echo $ECHO_N "checking for X... $ECHO_C" >&6
9537
9538
9539 # Check whether --with-x or --without-x was given.
9540 if test "${with_x+set}" = set; then
9541   withval="$with_x"
9542
9543 fi;
9544 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9545 if test "x$with_x" = xno; then
9546   # The user explicitly disabled X.
9547   have_x=disabled
9548 else
9549   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9550     # Both variables are already set.
9551     have_x=yes
9552   else
9553     if test "${ac_cv_have_x+set}" = set; then
9554   echo $ECHO_N "(cached) $ECHO_C" >&6
9555 else
9556   # One or both of the vars are not set, and there is no cached value.
9557 ac_x_includes=no ac_x_libraries=no
9558 rm -fr conftest.dir
9559 if mkdir conftest.dir; then
9560   cd conftest.dir
9561   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9562   cat >Imakefile <<'_ACEOF'
9563 acfindx:
9564         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9565 _ACEOF
9566   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9567     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9568     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9569     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9570     for ac_extension in a so sl; do
9571       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9572          test -f $ac_im_libdir/libX11.$ac_extension; then
9573         ac_im_usrlibdir=$ac_im_libdir; break
9574       fi
9575     done
9576     # Screen out bogus values from the imake configuration.  They are
9577     # bogus both because they are the default anyway, and because
9578     # using them would break gcc on systems where it needs fixed includes.
9579     case $ac_im_incroot in
9580         /usr/include) ;;
9581         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9582     esac
9583     case $ac_im_usrlibdir in
9584         /usr/lib | /lib) ;;
9585         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9586     esac
9587   fi
9588   cd ..
9589   rm -fr conftest.dir
9590 fi
9591
9592 # Standard set of common directories for X headers.
9593 # Check X11 before X11Rn because it is often a symlink to the current release.
9594 ac_x_header_dirs='
9595 /usr/X11/include
9596 /usr/X11R6/include
9597 /usr/X11R5/include
9598 /usr/X11R4/include
9599
9600 /usr/include/X11
9601 /usr/include/X11R6
9602 /usr/include/X11R5
9603 /usr/include/X11R4
9604
9605 /usr/local/X11/include
9606 /usr/local/X11R6/include
9607 /usr/local/X11R5/include
9608 /usr/local/X11R4/include
9609
9610 /usr/local/include/X11
9611 /usr/local/include/X11R6
9612 /usr/local/include/X11R5
9613 /usr/local/include/X11R4
9614
9615 /usr/X386/include
9616 /usr/x386/include
9617 /usr/XFree86/include/X11
9618
9619 /usr/include
9620 /usr/local/include
9621 /usr/unsupported/include
9622 /usr/athena/include
9623 /usr/local/x11r5/include
9624 /usr/lpp/Xamples/include
9625
9626 /usr/openwin/include
9627 /usr/openwin/share/include'
9628
9629 if test "$ac_x_includes" = no; then
9630   # Guess where to find include files, by looking for Intrinsic.h.
9631   # First, try using that file with no special directory specified.
9632   cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h.  */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h.  */
9638 #include <X11/Intrinsic.h>
9639 _ACEOF
9640 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9641   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9642   ac_status=$?
9643   grep -v '^ *+' conftest.er1 >conftest.err
9644   rm -f conftest.er1
9645   cat conftest.err >&5
9646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647   (exit $ac_status); } >/dev/null; then
9648   if test -s conftest.err; then
9649     ac_cpp_err=$ac_c_preproc_warn_flag
9650     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9651   else
9652     ac_cpp_err=
9653   fi
9654 else
9655   ac_cpp_err=yes
9656 fi
9657 if test -z "$ac_cpp_err"; then
9658   # We can compile using X headers with no special include directory.
9659 ac_x_includes=
9660 else
9661   echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9663
9664   for ac_dir in $ac_x_header_dirs; do
9665   if test -r "$ac_dir/X11/Intrinsic.h"; then
9666     ac_x_includes=$ac_dir
9667     break
9668   fi
9669 done
9670 fi
9671 rm -f conftest.err conftest.$ac_ext
9672 fi # $ac_x_includes = no
9673
9674 if test "$ac_x_libraries" = no; then
9675   # Check for the libraries.
9676   # See if we find them without any special options.
9677   # Don't add to $LIBS permanently.
9678   ac_save_LIBS=$LIBS
9679   LIBS="-lXt $LIBS"
9680   cat >conftest.$ac_ext <<_ACEOF
9681 /* confdefs.h.  */
9682 _ACEOF
9683 cat confdefs.h >>conftest.$ac_ext
9684 cat >>conftest.$ac_ext <<_ACEOF
9685 /* end confdefs.h.  */
9686 #include <X11/Intrinsic.h>
9687 int
9688 main ()
9689 {
9690 XtMalloc (0)
9691   ;
9692   return 0;
9693 }
9694 _ACEOF
9695 rm -f conftest.$ac_objext conftest$ac_exeext
9696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9697   (eval $ac_link) 2>conftest.er1
9698   ac_status=$?
9699   grep -v '^ *+' conftest.er1 >conftest.err
9700   rm -f conftest.er1
9701   cat conftest.err >&5
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); } &&
9704          { ac_try='test -z "$ac_c_werror_flag"
9705                          || test ! -s conftest.err'
9706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707   (eval $ac_try) 2>&5
9708   ac_status=$?
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); }; } &&
9711          { ac_try='test -s conftest$ac_exeext'
9712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713   (eval $ac_try) 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); }; }; then
9717   LIBS=$ac_save_LIBS
9718 # We can link X programs with no special library path.
9719 ac_x_libraries=
9720 else
9721   echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9723
9724 LIBS=$ac_save_LIBS
9725 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9726 do
9727   # Don't even attempt the hair of trying to link an X program!
9728   for ac_extension in a so sl; do
9729     if test -r $ac_dir/libXt.$ac_extension; then
9730       ac_x_libraries=$ac_dir
9731       break 2
9732     fi
9733   done
9734 done
9735 fi
9736 rm -f conftest.err conftest.$ac_objext \
9737       conftest$ac_exeext conftest.$ac_ext
9738 fi # $ac_x_libraries = no
9739
9740 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9741   # Didn't find X anywhere.  Cache the known absence of X.
9742   ac_cv_have_x="have_x=no"
9743 else
9744   # Record where we found X for the cache.
9745   ac_cv_have_x="have_x=yes \
9746                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9747 fi
9748 fi
9749
9750   fi
9751   eval "$ac_cv_have_x"
9752 fi # $with_x != no
9753
9754 if test "$have_x" != yes; then
9755   echo "$as_me:$LINENO: result: $have_x" >&5
9756 echo "${ECHO_T}$have_x" >&6
9757   no_x=yes
9758 else
9759   # If each of the values was on the command line, it overrides each guess.
9760   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9761   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9762   # Update the cache value to reflect the command line values.
9763   ac_cv_have_x="have_x=yes \
9764                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9765   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9766 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9767 fi
9768
9769 if test "$no_x" = yes; then
9770   # Not all programs may use this symbol, but it does not hurt to define it.
9771
9772 cat >>confdefs.h <<\_ACEOF
9773 #define X_DISPLAY_MISSING 1
9774 _ACEOF
9775
9776   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9777 else
9778   if test -n "$x_includes"; then
9779     X_CFLAGS="$X_CFLAGS -I$x_includes"
9780   fi
9781
9782   # It would also be nice to do this for all -L options, not just this one.
9783   if test -n "$x_libraries"; then
9784     X_LIBS="$X_LIBS -L$x_libraries"
9785     # For Solaris; some versions of Sun CC require a space after -R and
9786     # others require no space.  Words are not sufficient . . . .
9787     case `(uname -sr) 2>/dev/null` in
9788     "SunOS 5"*)
9789       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9790 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9791       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9792       cat >conftest.$ac_ext <<_ACEOF
9793 /* confdefs.h.  */
9794 _ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h.  */
9798
9799 int
9800 main ()
9801 {
9802
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext conftest$ac_exeext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9809   (eval $ac_link) 2>conftest.er1
9810   ac_status=$?
9811   grep -v '^ *+' conftest.er1 >conftest.err
9812   rm -f conftest.er1
9813   cat conftest.err >&5
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); } &&
9816          { ac_try='test -z "$ac_c_werror_flag"
9817                          || test ! -s conftest.err'
9818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819   (eval $ac_try) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; } &&
9823          { ac_try='test -s conftest$ac_exeext'
9824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825   (eval $ac_try) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }; }; then
9829   ac_R_nospace=yes
9830 else
9831   echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 ac_R_nospace=no
9835 fi
9836 rm -f conftest.err conftest.$ac_objext \
9837       conftest$ac_exeext conftest.$ac_ext
9838       if test $ac_R_nospace = yes; then
9839         echo "$as_me:$LINENO: result: no" >&5
9840 echo "${ECHO_T}no" >&6
9841         X_LIBS="$X_LIBS -R$x_libraries"
9842       else
9843         LIBS="$ac_xsave_LIBS -R $x_libraries"
9844         cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h.  */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h.  */
9850
9851 int
9852 main ()
9853 {
9854
9855   ;
9856   return 0;
9857 }
9858 _ACEOF
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9861   (eval $ac_link) 2>conftest.er1
9862   ac_status=$?
9863   grep -v '^ *+' conftest.er1 >conftest.err
9864   rm -f conftest.er1
9865   cat conftest.err >&5
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); } &&
9868          { ac_try='test -z "$ac_c_werror_flag"
9869                          || test ! -s conftest.err'
9870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871   (eval $ac_try) 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; } &&
9875          { ac_try='test -s conftest$ac_exeext'
9876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877   (eval $ac_try) 2>&5
9878   ac_status=$?
9879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880   (exit $ac_status); }; }; then
9881   ac_R_space=yes
9882 else
9883   echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9885
9886 ac_R_space=no
9887 fi
9888 rm -f conftest.err conftest.$ac_objext \
9889       conftest$ac_exeext conftest.$ac_ext
9890         if test $ac_R_space = yes; then
9891           echo "$as_me:$LINENO: result: yes" >&5
9892 echo "${ECHO_T}yes" >&6
9893           X_LIBS="$X_LIBS -R $x_libraries"
9894         else
9895           echo "$as_me:$LINENO: result: neither works" >&5
9896 echo "${ECHO_T}neither works" >&6
9897         fi
9898       fi
9899       LIBS=$ac_xsave_LIBS
9900     esac
9901   fi
9902
9903   # Check for system-dependent libraries X programs must link with.
9904   # Do this before checking for the system-independent R6 libraries
9905   # (-lICE), since we may need -lsocket or whatever for X linking.
9906
9907   if test "$ISC" = yes; then
9908     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9909   else
9910     # Martyn Johnson says this is needed for Ultrix, if the X
9911     # libraries were built with DECnet support.  And Karl Berry says
9912     # the Alpha needs dnet_stub (dnet does not exist).
9913     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9914     cat >conftest.$ac_ext <<_ACEOF
9915 /* confdefs.h.  */
9916 _ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h.  */
9920
9921 /* Override any gcc2 internal prototype to avoid an error.  */
9922 #ifdef __cplusplus
9923 extern "C"
9924 #endif
9925 /* We use char because int might match the return type of a gcc2
9926    builtin and then its argument prototype would still apply.  */
9927 char XOpenDisplay ();
9928 int
9929 main ()
9930 {
9931 XOpenDisplay ();
9932   ;
9933   return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938   (eval $ac_link) 2>conftest.er1
9939   ac_status=$?
9940   grep -v '^ *+' conftest.er1 >conftest.err
9941   rm -f conftest.er1
9942   cat conftest.err >&5
9943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944   (exit $ac_status); } &&
9945          { ac_try='test -z "$ac_c_werror_flag"
9946                          || test ! -s conftest.err'
9947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948   (eval $ac_try) 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   :
9959 else
9960   echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9962
9963 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9964 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9965 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9966   echo $ECHO_N "(cached) $ECHO_C" >&6
9967 else
9968   ac_check_lib_save_LIBS=$LIBS
9969 LIBS="-ldnet  $LIBS"
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h.  */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h.  */
9976
9977 /* Override any gcc2 internal prototype to avoid an error.  */
9978 #ifdef __cplusplus
9979 extern "C"
9980 #endif
9981 /* We use char because int might match the return type of a gcc2
9982    builtin and then its argument prototype would still apply.  */
9983 char dnet_ntoa ();
9984 int
9985 main ()
9986 {
9987 dnet_ntoa ();
9988   ;
9989   return 0;
9990 }
9991 _ACEOF
9992 rm -f conftest.$ac_objext conftest$ac_exeext
9993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9994   (eval $ac_link) 2>conftest.er1
9995   ac_status=$?
9996   grep -v '^ *+' conftest.er1 >conftest.err
9997   rm -f conftest.er1
9998   cat conftest.err >&5
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); } &&
10001          { ac_try='test -z "$ac_c_werror_flag"
10002                          || test ! -s conftest.err'
10003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004   (eval $ac_try) 2>&5
10005   ac_status=$?
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); }; } &&
10008          { ac_try='test -s conftest$ac_exeext'
10009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010   (eval $ac_try) 2>&5
10011   ac_status=$?
10012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013   (exit $ac_status); }; }; then
10014   ac_cv_lib_dnet_dnet_ntoa=yes
10015 else
10016   echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10018
10019 ac_cv_lib_dnet_dnet_ntoa=no
10020 fi
10021 rm -f conftest.err conftest.$ac_objext \
10022       conftest$ac_exeext conftest.$ac_ext
10023 LIBS=$ac_check_lib_save_LIBS
10024 fi
10025 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10026 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10027 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10028   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10029 fi
10030
10031     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10032       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10033 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10034 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10035   echo $ECHO_N "(cached) $ECHO_C" >&6
10036 else
10037   ac_check_lib_save_LIBS=$LIBS
10038 LIBS="-ldnet_stub  $LIBS"
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h.  */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h.  */
10045
10046 /* Override any gcc2 internal prototype to avoid an error.  */
10047 #ifdef __cplusplus
10048 extern "C"
10049 #endif
10050 /* We use char because int might match the return type of a gcc2
10051    builtin and then its argument prototype would still apply.  */
10052 char dnet_ntoa ();
10053 int
10054 main ()
10055 {
10056 dnet_ntoa ();
10057   ;
10058   return 0;
10059 }
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063   (eval $ac_link) 2>conftest.er1
10064   ac_status=$?
10065   grep -v '^ *+' conftest.er1 >conftest.err
10066   rm -f conftest.er1
10067   cat conftest.err >&5
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } &&
10070          { ac_try='test -z "$ac_c_werror_flag"
10071                          || test ! -s conftest.err'
10072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073   (eval $ac_try) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; } &&
10077          { ac_try='test -s conftest$ac_exeext'
10078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079   (eval $ac_try) 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }; }; then
10083   ac_cv_lib_dnet_stub_dnet_ntoa=yes
10084 else
10085   echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10087
10088 ac_cv_lib_dnet_stub_dnet_ntoa=no
10089 fi
10090 rm -f conftest.err conftest.$ac_objext \
10091       conftest$ac_exeext conftest.$ac_ext
10092 LIBS=$ac_check_lib_save_LIBS
10093 fi
10094 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10095 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10096 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10097   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10098 fi
10099
10100     fi
10101 fi
10102 rm -f conftest.err conftest.$ac_objext \
10103       conftest$ac_exeext conftest.$ac_ext
10104     LIBS="$ac_xsave_LIBS"
10105
10106     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10107     # to get the SysV transport functions.
10108     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10109     # needs -lnsl.
10110     # The nsl library prevents programs from opening the X display
10111     # on Irix 5.2, according to T.E. Dickey.
10112     # The functions gethostbyname, getservbyname, and inet_addr are
10113     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10114     echo "$as_me:$LINENO: checking for gethostbyname" >&5
10115 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10116 if test "${ac_cv_func_gethostbyname+set}" = set; then
10117   echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119   cat >conftest.$ac_ext <<_ACEOF
10120 /* confdefs.h.  */
10121 _ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h.  */
10125 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10127 #define gethostbyname innocuous_gethostbyname
10128
10129 /* System header to define __stub macros and hopefully few prototypes,
10130     which can conflict with char gethostbyname (); below.
10131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10132     <limits.h> exists even on freestanding compilers.  */
10133
10134 #ifdef __STDC__
10135 # include <limits.h>
10136 #else
10137 # include <assert.h>
10138 #endif
10139
10140 #undef gethostbyname
10141
10142 /* Override any gcc2 internal prototype to avoid an error.  */
10143 #ifdef __cplusplus
10144 extern "C"
10145 {
10146 #endif
10147 /* We use char because int might match the return type of a gcc2
10148    builtin and then its argument prototype would still apply.  */
10149 char gethostbyname ();
10150 /* The GNU C library defines this for functions which it implements
10151     to always fail with ENOSYS.  Some functions are actually named
10152     something starting with __ and the normal name is an alias.  */
10153 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10154 choke me
10155 #else
10156 char (*f) () = gethostbyname;
10157 #endif
10158 #ifdef __cplusplus
10159 }
10160 #endif
10161
10162 int
10163 main ()
10164 {
10165 return f != gethostbyname;
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10172   (eval $ac_link) 2>conftest.er1
10173   ac_status=$?
10174   grep -v '^ *+' conftest.er1 >conftest.err
10175   rm -f conftest.er1
10176   cat conftest.err >&5
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); } &&
10179          { ac_try='test -z "$ac_c_werror_flag"
10180                          || test ! -s conftest.err'
10181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182   (eval $ac_try) 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); }; } &&
10186          { ac_try='test -s conftest$ac_exeext'
10187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188   (eval $ac_try) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; }; then
10192   ac_cv_func_gethostbyname=yes
10193 else
10194   echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10196
10197 ac_cv_func_gethostbyname=no
10198 fi
10199 rm -f conftest.err conftest.$ac_objext \
10200       conftest$ac_exeext conftest.$ac_ext
10201 fi
10202 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10203 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10204
10205     if test $ac_cv_func_gethostbyname = no; then
10206       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10207 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10208 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211   ac_check_lib_save_LIBS=$LIBS
10212 LIBS="-lnsl  $LIBS"
10213 cat >conftest.$ac_ext <<_ACEOF
10214 /* confdefs.h.  */
10215 _ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h.  */
10219
10220 /* Override any gcc2 internal prototype to avoid an error.  */
10221 #ifdef __cplusplus
10222 extern "C"
10223 #endif
10224 /* We use char because int might match the return type of a gcc2
10225    builtin and then its argument prototype would still apply.  */
10226 char gethostbyname ();
10227 int
10228 main ()
10229 {
10230 gethostbyname ();
10231   ;
10232   return 0;
10233 }
10234 _ACEOF
10235 rm -f conftest.$ac_objext conftest$ac_exeext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10237   (eval $ac_link) 2>conftest.er1
10238   ac_status=$?
10239   grep -v '^ *+' conftest.er1 >conftest.err
10240   rm -f conftest.er1
10241   cat conftest.err >&5
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); } &&
10244          { ac_try='test -z "$ac_c_werror_flag"
10245                          || test ! -s conftest.err'
10246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247   (eval $ac_try) 2>&5
10248   ac_status=$?
10249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250   (exit $ac_status); }; } &&
10251          { ac_try='test -s conftest$ac_exeext'
10252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253   (eval $ac_try) 2>&5
10254   ac_status=$?
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); }; }; then
10257   ac_cv_lib_nsl_gethostbyname=yes
10258 else
10259   echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10261
10262 ac_cv_lib_nsl_gethostbyname=no
10263 fi
10264 rm -f conftest.err conftest.$ac_objext \
10265       conftest$ac_exeext conftest.$ac_ext
10266 LIBS=$ac_check_lib_save_LIBS
10267 fi
10268 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10269 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10270 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10271   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10272 fi
10273
10274       if test $ac_cv_lib_nsl_gethostbyname = no; then
10275         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10276 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10277 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10278   echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280   ac_check_lib_save_LIBS=$LIBS
10281 LIBS="-lbsd  $LIBS"
10282 cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h.  */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h.  */
10288
10289 /* Override any gcc2 internal prototype to avoid an error.  */
10290 #ifdef __cplusplus
10291 extern "C"
10292 #endif
10293 /* We use char because int might match the return type of a gcc2
10294    builtin and then its argument prototype would still apply.  */
10295 char gethostbyname ();
10296 int
10297 main ()
10298 {
10299 gethostbyname ();
10300   ;
10301   return 0;
10302 }
10303 _ACEOF
10304 rm -f conftest.$ac_objext conftest$ac_exeext
10305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10306   (eval $ac_link) 2>conftest.er1
10307   ac_status=$?
10308   grep -v '^ *+' conftest.er1 >conftest.err
10309   rm -f conftest.er1
10310   cat conftest.err >&5
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); } &&
10313          { ac_try='test -z "$ac_c_werror_flag"
10314                          || test ! -s conftest.err'
10315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316   (eval $ac_try) 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); }; } &&
10320          { ac_try='test -s conftest$ac_exeext'
10321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322   (eval $ac_try) 2>&5
10323   ac_status=$?
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); }; }; then
10326   ac_cv_lib_bsd_gethostbyname=yes
10327 else
10328   echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331 ac_cv_lib_bsd_gethostbyname=no
10332 fi
10333 rm -f conftest.err conftest.$ac_objext \
10334       conftest$ac_exeext conftest.$ac_ext
10335 LIBS=$ac_check_lib_save_LIBS
10336 fi
10337 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10338 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10339 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10340   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10341 fi
10342
10343       fi
10344     fi
10345
10346     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10347     # socket/setsockopt and other routines are undefined under SCO ODT
10348     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10349     # on later versions), says Simon Leinen: it contains gethostby*
10350     # variants that don't use the name server (or something).  -lsocket
10351     # must be given before -lnsl if both are needed.  We assume that
10352     # if connect needs -lnsl, so does gethostbyname.
10353     echo "$as_me:$LINENO: checking for connect" >&5
10354 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10355 if test "${ac_cv_func_connect+set}" = set; then
10356   echo $ECHO_N "(cached) $ECHO_C" >&6
10357 else
10358   cat >conftest.$ac_ext <<_ACEOF
10359 /* confdefs.h.  */
10360 _ACEOF
10361 cat confdefs.h >>conftest.$ac_ext
10362 cat >>conftest.$ac_ext <<_ACEOF
10363 /* end confdefs.h.  */
10364 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10366 #define connect innocuous_connect
10367
10368 /* System header to define __stub macros and hopefully few prototypes,
10369     which can conflict with char connect (); below.
10370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10371     <limits.h> exists even on freestanding compilers.  */
10372
10373 #ifdef __STDC__
10374 # include <limits.h>
10375 #else
10376 # include <assert.h>
10377 #endif
10378
10379 #undef connect
10380
10381 /* Override any gcc2 internal prototype to avoid an error.  */
10382 #ifdef __cplusplus
10383 extern "C"
10384 {
10385 #endif
10386 /* We use char because int might match the return type of a gcc2
10387    builtin and then its argument prototype would still apply.  */
10388 char connect ();
10389 /* The GNU C library defines this for functions which it implements
10390     to always fail with ENOSYS.  Some functions are actually named
10391     something starting with __ and the normal name is an alias.  */
10392 #if defined (__stub_connect) || defined (__stub___connect)
10393 choke me
10394 #else
10395 char (*f) () = connect;
10396 #endif
10397 #ifdef __cplusplus
10398 }
10399 #endif
10400
10401 int
10402 main ()
10403 {
10404 return f != connect;
10405   ;
10406   return 0;
10407 }
10408 _ACEOF
10409 rm -f conftest.$ac_objext conftest$ac_exeext
10410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10411   (eval $ac_link) 2>conftest.er1
10412   ac_status=$?
10413   grep -v '^ *+' conftest.er1 >conftest.err
10414   rm -f conftest.er1
10415   cat conftest.err >&5
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); } &&
10418          { ac_try='test -z "$ac_c_werror_flag"
10419                          || test ! -s conftest.err'
10420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421   (eval $ac_try) 2>&5
10422   ac_status=$?
10423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424   (exit $ac_status); }; } &&
10425          { ac_try='test -s conftest$ac_exeext'
10426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427   (eval $ac_try) 2>&5
10428   ac_status=$?
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); }; }; then
10431   ac_cv_func_connect=yes
10432 else
10433   echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10435
10436 ac_cv_func_connect=no
10437 fi
10438 rm -f conftest.err conftest.$ac_objext \
10439       conftest$ac_exeext conftest.$ac_ext
10440 fi
10441 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10442 echo "${ECHO_T}$ac_cv_func_connect" >&6
10443
10444     if test $ac_cv_func_connect = no; then
10445       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10446 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10447 if test "${ac_cv_lib_socket_connect+set}" = set; then
10448   echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450   ac_check_lib_save_LIBS=$LIBS
10451 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10452 cat >conftest.$ac_ext <<_ACEOF
10453 /* confdefs.h.  */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h.  */
10458
10459 /* Override any gcc2 internal prototype to avoid an error.  */
10460 #ifdef __cplusplus
10461 extern "C"
10462 #endif
10463 /* We use char because int might match the return type of a gcc2
10464    builtin and then its argument prototype would still apply.  */
10465 char connect ();
10466 int
10467 main ()
10468 {
10469 connect ();
10470   ;
10471   return 0;
10472 }
10473 _ACEOF
10474 rm -f conftest.$ac_objext conftest$ac_exeext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476   (eval $ac_link) 2>conftest.er1
10477   ac_status=$?
10478   grep -v '^ *+' conftest.er1 >conftest.err
10479   rm -f conftest.er1
10480   cat conftest.err >&5
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); } &&
10483          { ac_try='test -z "$ac_c_werror_flag"
10484                          || test ! -s conftest.err'
10485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486   (eval $ac_try) 2>&5
10487   ac_status=$?
10488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); }; } &&
10490          { ac_try='test -s conftest$ac_exeext'
10491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492   (eval $ac_try) 2>&5
10493   ac_status=$?
10494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495   (exit $ac_status); }; }; then
10496   ac_cv_lib_socket_connect=yes
10497 else
10498   echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10500
10501 ac_cv_lib_socket_connect=no
10502 fi
10503 rm -f conftest.err conftest.$ac_objext \
10504       conftest$ac_exeext conftest.$ac_ext
10505 LIBS=$ac_check_lib_save_LIBS
10506 fi
10507 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10508 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10509 if test $ac_cv_lib_socket_connect = yes; then
10510   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10511 fi
10512
10513     fi
10514
10515     # Guillermo Gomez says -lposix is necessary on A/UX.
10516     echo "$as_me:$LINENO: checking for remove" >&5
10517 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10518 if test "${ac_cv_func_remove+set}" = set; then
10519   echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521   cat >conftest.$ac_ext <<_ACEOF
10522 /* confdefs.h.  */
10523 _ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h.  */
10527 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10529 #define remove innocuous_remove
10530
10531 /* System header to define __stub macros and hopefully few prototypes,
10532     which can conflict with char remove (); below.
10533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10534     <limits.h> exists even on freestanding compilers.  */
10535
10536 #ifdef __STDC__
10537 # include <limits.h>
10538 #else
10539 # include <assert.h>
10540 #endif
10541
10542 #undef remove
10543
10544 /* Override any gcc2 internal prototype to avoid an error.  */
10545 #ifdef __cplusplus
10546 extern "C"
10547 {
10548 #endif
10549 /* We use char because int might match the return type of a gcc2
10550    builtin and then its argument prototype would still apply.  */
10551 char remove ();
10552 /* The GNU C library defines this for functions which it implements
10553     to always fail with ENOSYS.  Some functions are actually named
10554     something starting with __ and the normal name is an alias.  */
10555 #if defined (__stub_remove) || defined (__stub___remove)
10556 choke me
10557 #else
10558 char (*f) () = remove;
10559 #endif
10560 #ifdef __cplusplus
10561 }
10562 #endif
10563
10564 int
10565 main ()
10566 {
10567 return f != remove;
10568   ;
10569   return 0;
10570 }
10571 _ACEOF
10572 rm -f conftest.$ac_objext conftest$ac_exeext
10573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10574   (eval $ac_link) 2>conftest.er1
10575   ac_status=$?
10576   grep -v '^ *+' conftest.er1 >conftest.err
10577   rm -f conftest.er1
10578   cat conftest.err >&5
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); } &&
10581          { ac_try='test -z "$ac_c_werror_flag"
10582                          || test ! -s conftest.err'
10583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584   (eval $ac_try) 2>&5
10585   ac_status=$?
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); }; } &&
10588          { ac_try='test -s conftest$ac_exeext'
10589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590   (eval $ac_try) 2>&5
10591   ac_status=$?
10592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593   (exit $ac_status); }; }; then
10594   ac_cv_func_remove=yes
10595 else
10596   echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10598
10599 ac_cv_func_remove=no
10600 fi
10601 rm -f conftest.err conftest.$ac_objext \
10602       conftest$ac_exeext conftest.$ac_ext
10603 fi
10604 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10605 echo "${ECHO_T}$ac_cv_func_remove" >&6
10606
10607     if test $ac_cv_func_remove = no; then
10608       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10609 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10610 if test "${ac_cv_lib_posix_remove+set}" = set; then
10611   echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613   ac_check_lib_save_LIBS=$LIBS
10614 LIBS="-lposix  $LIBS"
10615 cat >conftest.$ac_ext <<_ACEOF
10616 /* confdefs.h.  */
10617 _ACEOF
10618 cat confdefs.h >>conftest.$ac_ext
10619 cat >>conftest.$ac_ext <<_ACEOF
10620 /* end confdefs.h.  */
10621
10622 /* Override any gcc2 internal prototype to avoid an error.  */
10623 #ifdef __cplusplus
10624 extern "C"
10625 #endif
10626 /* We use char because int might match the return type of a gcc2
10627    builtin and then its argument prototype would still apply.  */
10628 char remove ();
10629 int
10630 main ()
10631 {
10632 remove ();
10633   ;
10634   return 0;
10635 }
10636 _ACEOF
10637 rm -f conftest.$ac_objext conftest$ac_exeext
10638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10639   (eval $ac_link) 2>conftest.er1
10640   ac_status=$?
10641   grep -v '^ *+' conftest.er1 >conftest.err
10642   rm -f conftest.er1
10643   cat conftest.err >&5
10644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645   (exit $ac_status); } &&
10646          { ac_try='test -z "$ac_c_werror_flag"
10647                          || test ! -s conftest.err'
10648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649   (eval $ac_try) 2>&5
10650   ac_status=$?
10651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652   (exit $ac_status); }; } &&
10653          { ac_try='test -s conftest$ac_exeext'
10654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655   (eval $ac_try) 2>&5
10656   ac_status=$?
10657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658   (exit $ac_status); }; }; then
10659   ac_cv_lib_posix_remove=yes
10660 else
10661   echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10663
10664 ac_cv_lib_posix_remove=no
10665 fi
10666 rm -f conftest.err conftest.$ac_objext \
10667       conftest$ac_exeext conftest.$ac_ext
10668 LIBS=$ac_check_lib_save_LIBS
10669 fi
10670 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10671 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10672 if test $ac_cv_lib_posix_remove = yes; then
10673   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10674 fi
10675
10676     fi
10677
10678     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10679     echo "$as_me:$LINENO: checking for shmat" >&5
10680 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10681 if test "${ac_cv_func_shmat+set}" = set; then
10682   echo $ECHO_N "(cached) $ECHO_C" >&6
10683 else
10684   cat >conftest.$ac_ext <<_ACEOF
10685 /* confdefs.h.  */
10686 _ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h.  */
10690 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10692 #define shmat innocuous_shmat
10693
10694 /* System header to define __stub macros and hopefully few prototypes,
10695     which can conflict with char shmat (); below.
10696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10697     <limits.h> exists even on freestanding compilers.  */
10698
10699 #ifdef __STDC__
10700 # include <limits.h>
10701 #else
10702 # include <assert.h>
10703 #endif
10704
10705 #undef shmat
10706
10707 /* Override any gcc2 internal prototype to avoid an error.  */
10708 #ifdef __cplusplus
10709 extern "C"
10710 {
10711 #endif
10712 /* We use char because int might match the return type of a gcc2
10713    builtin and then its argument prototype would still apply.  */
10714 char shmat ();
10715 /* The GNU C library defines this for functions which it implements
10716     to always fail with ENOSYS.  Some functions are actually named
10717     something starting with __ and the normal name is an alias.  */
10718 #if defined (__stub_shmat) || defined (__stub___shmat)
10719 choke me
10720 #else
10721 char (*f) () = shmat;
10722 #endif
10723 #ifdef __cplusplus
10724 }
10725 #endif
10726
10727 int
10728 main ()
10729 {
10730 return f != shmat;
10731   ;
10732   return 0;
10733 }
10734 _ACEOF
10735 rm -f conftest.$ac_objext conftest$ac_exeext
10736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10737   (eval $ac_link) 2>conftest.er1
10738   ac_status=$?
10739   grep -v '^ *+' conftest.er1 >conftest.err
10740   rm -f conftest.er1
10741   cat conftest.err >&5
10742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743   (exit $ac_status); } &&
10744          { ac_try='test -z "$ac_c_werror_flag"
10745                          || test ! -s conftest.err'
10746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747   (eval $ac_try) 2>&5
10748   ac_status=$?
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); }; } &&
10751          { ac_try='test -s conftest$ac_exeext'
10752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753   (eval $ac_try) 2>&5
10754   ac_status=$?
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); }; }; then
10757   ac_cv_func_shmat=yes
10758 else
10759   echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10761
10762 ac_cv_func_shmat=no
10763 fi
10764 rm -f conftest.err conftest.$ac_objext \
10765       conftest$ac_exeext conftest.$ac_ext
10766 fi
10767 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10768 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10769
10770     if test $ac_cv_func_shmat = no; then
10771       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10772 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10773 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10774   echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776   ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-lipc  $LIBS"
10778 cat >conftest.$ac_ext <<_ACEOF
10779 /* confdefs.h.  */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h.  */
10784
10785 /* Override any gcc2 internal prototype to avoid an error.  */
10786 #ifdef __cplusplus
10787 extern "C"
10788 #endif
10789 /* We use char because int might match the return type of a gcc2
10790    builtin and then its argument prototype would still apply.  */
10791 char shmat ();
10792 int
10793 main ()
10794 {
10795 shmat ();
10796   ;
10797   return 0;
10798 }
10799 _ACEOF
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10802   (eval $ac_link) 2>conftest.er1
10803   ac_status=$?
10804   grep -v '^ *+' conftest.er1 >conftest.err
10805   rm -f conftest.er1
10806   cat conftest.err >&5
10807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808   (exit $ac_status); } &&
10809          { ac_try='test -z "$ac_c_werror_flag"
10810                          || test ! -s conftest.err'
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); }; } &&
10816          { ac_try='test -s conftest$ac_exeext'
10817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818   (eval $ac_try) 2>&5
10819   ac_status=$?
10820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821   (exit $ac_status); }; }; then
10822   ac_cv_lib_ipc_shmat=yes
10823 else
10824   echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10826
10827 ac_cv_lib_ipc_shmat=no
10828 fi
10829 rm -f conftest.err conftest.$ac_objext \
10830       conftest$ac_exeext conftest.$ac_ext
10831 LIBS=$ac_check_lib_save_LIBS
10832 fi
10833 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10834 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10835 if test $ac_cv_lib_ipc_shmat = yes; then
10836   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10837 fi
10838
10839     fi
10840   fi
10841
10842   # Check for libraries that X11R6 Xt/Xaw programs need.
10843   ac_save_LDFLAGS=$LDFLAGS
10844   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10845   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10846   # check for ICE first), but we must link in the order -lSM -lICE or
10847   # we get undefined symbols.  So assume we have SM if we have ICE.
10848   # These have to be linked with before -lX11, unlike the other
10849   # libraries we check for below, so use a different variable.
10850   # John Interrante, Karl Berry
10851   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10852 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10853 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10854   echo $ECHO_N "(cached) $ECHO_C" >&6
10855 else
10856   ac_check_lib_save_LIBS=$LIBS
10857 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10858 cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h.  */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h.  */
10864
10865 /* Override any gcc2 internal prototype to avoid an error.  */
10866 #ifdef __cplusplus
10867 extern "C"
10868 #endif
10869 /* We use char because int might match the return type of a gcc2
10870    builtin and then its argument prototype would still apply.  */
10871 char IceConnectionNumber ();
10872 int
10873 main ()
10874 {
10875 IceConnectionNumber ();
10876   ;
10877   return 0;
10878 }
10879 _ACEOF
10880 rm -f conftest.$ac_objext conftest$ac_exeext
10881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10882   (eval $ac_link) 2>conftest.er1
10883   ac_status=$?
10884   grep -v '^ *+' conftest.er1 >conftest.err
10885   rm -f conftest.er1
10886   cat conftest.err >&5
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); } &&
10889          { ac_try='test -z "$ac_c_werror_flag"
10890                          || test ! -s conftest.err'
10891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892   (eval $ac_try) 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); }; } &&
10896          { ac_try='test -s conftest$ac_exeext'
10897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898   (eval $ac_try) 2>&5
10899   ac_status=$?
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); }; }; then
10902   ac_cv_lib_ICE_IceConnectionNumber=yes
10903 else
10904   echo "$as_me: failed program was:" >&5
10905 sed 's/^/| /' conftest.$ac_ext >&5
10906
10907 ac_cv_lib_ICE_IceConnectionNumber=no
10908 fi
10909 rm -f conftest.err conftest.$ac_objext \
10910       conftest$ac_exeext conftest.$ac_ext
10911 LIBS=$ac_check_lib_save_LIBS
10912 fi
10913 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10914 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10915 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10916   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10917 fi
10918
10919   LDFLAGS=$ac_save_LDFLAGS
10920
10921 fi
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951 for ac_header in \
10952         assert.h \
10953         fcntl.h \
10954         grp.h \
10955         pwd.h \
10956         libc.h \
10957         limits.h \
10958         stdarg.h \
10959         stdlib.h \
10960         stdint.h \
10961         string.h \
10962         termios.h \
10963         termcap.h \
10964         term.h \
10965         unistd.h \
10966         sys/bitypes.h \
10967         sys/byteorder.h \
10968         sys/ioctl.h \
10969         sys/select.h \
10970         sys/sockio.h \
10971         sys/time.h \
10972         sys/socket.h \
10973         arpa/nameser.h \
10974         resolv.h \
10975         mtio.h \
10976         sys/mtio.h \
10977         sys/tape.h \
10978         regex.h \
10979
10980 do
10981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10983   echo "$as_me:$LINENO: checking for $ac_header" >&5
10984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10986   echo $ECHO_N "(cached) $ECHO_C" >&6
10987 fi
10988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10990 else
10991   # Is the header compilable?
10992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h.  */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h.  */
11000 $ac_includes_default
11001 #include <$ac_header>
11002 _ACEOF
11003 rm -f conftest.$ac_objext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005   (eval $ac_compile) 2>conftest.er1
11006   ac_status=$?
11007   grep -v '^ *+' conftest.er1 >conftest.err
11008   rm -f conftest.er1
11009   cat conftest.err >&5
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); } &&
11012          { ac_try='test -z "$ac_c_werror_flag"
11013                          || test ! -s conftest.err'
11014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015   (eval $ac_try) 2>&5
11016   ac_status=$?
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); }; } &&
11019          { ac_try='test -s conftest.$ac_objext'
11020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021   (eval $ac_try) 2>&5
11022   ac_status=$?
11023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024   (exit $ac_status); }; }; then
11025   ac_header_compiler=yes
11026 else
11027   echo "$as_me: failed program was:" >&5
11028 sed 's/^/| /' conftest.$ac_ext >&5
11029
11030 ac_header_compiler=no
11031 fi
11032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11034 echo "${ECHO_T}$ac_header_compiler" >&6
11035
11036 # Is the header present?
11037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h.  */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h.  */
11045 #include <$ac_header>
11046 _ACEOF
11047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11048   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11049   ac_status=$?
11050   grep -v '^ *+' conftest.er1 >conftest.err
11051   rm -f conftest.er1
11052   cat conftest.err >&5
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); } >/dev/null; then
11055   if test -s conftest.err; then
11056     ac_cpp_err=$ac_c_preproc_warn_flag
11057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11058   else
11059     ac_cpp_err=
11060   fi
11061 else
11062   ac_cpp_err=yes
11063 fi
11064 if test -z "$ac_cpp_err"; then
11065   ac_header_preproc=yes
11066 else
11067   echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070   ac_header_preproc=no
11071 fi
11072 rm -f conftest.err conftest.$ac_ext
11073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11074 echo "${ECHO_T}$ac_header_preproc" >&6
11075
11076 # So?  What about this header?
11077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11078   yes:no: )
11079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11083     ac_header_preproc=yes
11084     ;;
11085   no:yes:* )
11086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11098     (
11099       cat <<\_ASBOX
11100 ## ------------------------------------------ ##
11101 ## Report this to the AC_PACKAGE_NAME lists.  ##
11102 ## ------------------------------------------ ##
11103 _ASBOX
11104     ) |
11105       sed "s/^/$as_me: WARNING:     /" >&2
11106     ;;
11107 esac
11108 echo "$as_me:$LINENO: checking for $ac_header" >&5
11109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11111   echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113   eval "$as_ac_Header=\$ac_header_preproc"
11114 fi
11115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11117
11118 fi
11119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11120   cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11122 _ACEOF
11123
11124 fi
11125
11126 done
11127
11128 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11129 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11130 if test "${ac_cv_header_stdc+set}" = set; then
11131   echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133   cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h.  */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h.  */
11139 #include <stdlib.h>
11140 #include <stdarg.h>
11141 #include <string.h>
11142 #include <float.h>
11143
11144 int
11145 main ()
11146 {
11147
11148   ;
11149   return 0;
11150 }
11151 _ACEOF
11152 rm -f conftest.$ac_objext
11153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11154   (eval $ac_compile) 2>conftest.er1
11155   ac_status=$?
11156   grep -v '^ *+' conftest.er1 >conftest.err
11157   rm -f conftest.er1
11158   cat conftest.err >&5
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); } &&
11161          { ac_try='test -z "$ac_c_werror_flag"
11162                          || test ! -s conftest.err'
11163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164   (eval $ac_try) 2>&5
11165   ac_status=$?
11166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167   (exit $ac_status); }; } &&
11168          { ac_try='test -s conftest.$ac_objext'
11169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170   (eval $ac_try) 2>&5
11171   ac_status=$?
11172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173   (exit $ac_status); }; }; then
11174   ac_cv_header_stdc=yes
11175 else
11176   echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11178
11179 ac_cv_header_stdc=no
11180 fi
11181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11182
11183 if test $ac_cv_header_stdc = yes; then
11184   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11185   cat >conftest.$ac_ext <<_ACEOF
11186 /* confdefs.h.  */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h.  */
11191 #include <string.h>
11192
11193 _ACEOF
11194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11195   $EGREP "memchr" >/dev/null 2>&1; then
11196   :
11197 else
11198   ac_cv_header_stdc=no
11199 fi
11200 rm -f conftest*
11201
11202 fi
11203
11204 if test $ac_cv_header_stdc = yes; then
11205   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11206   cat >conftest.$ac_ext <<_ACEOF
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212 #include <stdlib.h>
11213
11214 _ACEOF
11215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11216   $EGREP "free" >/dev/null 2>&1; then
11217   :
11218 else
11219   ac_cv_header_stdc=no
11220 fi
11221 rm -f conftest*
11222
11223 fi
11224
11225 if test $ac_cv_header_stdc = yes; then
11226   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11227   if test "$cross_compiling" = yes; then
11228   :
11229 else
11230   cat >conftest.$ac_ext <<_ACEOF
11231 /* confdefs.h.  */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h.  */
11236 #include <ctype.h>
11237 #if ((' ' & 0x0FF) == 0x020)
11238 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11239 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11240 #else
11241 # define ISLOWER(c) \
11242                    (('a' <= (c) && (c) <= 'i') \
11243                      || ('j' <= (c) && (c) <= 'r') \
11244                      || ('s' <= (c) && (c) <= 'z'))
11245 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11246 #endif
11247
11248 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11249 int
11250 main ()
11251 {
11252   int i;
11253   for (i = 0; i < 256; i++)
11254     if (XOR (islower (i), ISLOWER (i))
11255         || toupper (i) != TOUPPER (i))
11256       exit(2);
11257   exit (0);
11258 }
11259 _ACEOF
11260 rm -f conftest$ac_exeext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11262   (eval $ac_link) 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267   (eval $ac_try) 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); }; }; then
11271   :
11272 else
11273   echo "$as_me: program exited with status $ac_status" >&5
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11276
11277 ( exit $ac_status )
11278 ac_cv_header_stdc=no
11279 fi
11280 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11281 fi
11282 fi
11283 fi
11284 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11285 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11286 if test $ac_cv_header_stdc = yes; then
11287
11288 cat >>confdefs.h <<\_ACEOF
11289 #define STDC_HEADERS 1
11290 _ACEOF
11291
11292 fi
11293
11294 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11295 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11296 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11297   echo $ECHO_N "(cached) $ECHO_C" >&6
11298 else
11299   cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h.  */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h.  */
11305 #include <sys/types.h>
11306 int
11307 main ()
11308 {
11309 return makedev(0, 0);
11310   ;
11311   return 0;
11312 }
11313 _ACEOF
11314 rm -f conftest.$ac_objext conftest$ac_exeext
11315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11316   (eval $ac_link) 2>conftest.er1
11317   ac_status=$?
11318   grep -v '^ *+' conftest.er1 >conftest.err
11319   rm -f conftest.er1
11320   cat conftest.err >&5
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); } &&
11323          { ac_try='test -z "$ac_c_werror_flag"
11324                          || test ! -s conftest.err'
11325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326   (eval $ac_try) 2>&5
11327   ac_status=$?
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); }; } &&
11330          { ac_try='test -s conftest$ac_exeext'
11331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11332   (eval $ac_try) 2>&5
11333   ac_status=$?
11334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335   (exit $ac_status); }; }; then
11336   ac_cv_header_sys_types_h_makedev=yes
11337 else
11338   echo "$as_me: failed program was:" >&5
11339 sed 's/^/| /' conftest.$ac_ext >&5
11340
11341 ac_cv_header_sys_types_h_makedev=no
11342 fi
11343 rm -f conftest.err conftest.$ac_objext \
11344       conftest$ac_exeext conftest.$ac_ext
11345
11346 fi
11347 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11348 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11349
11350 if test $ac_cv_header_sys_types_h_makedev = no; then
11351 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11352   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11353 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11354 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11355   echo $ECHO_N "(cached) $ECHO_C" >&6
11356 fi
11357 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11358 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11359 else
11360   # Is the header compilable?
11361 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11362 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11363 cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h.  */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h.  */
11369 $ac_includes_default
11370 #include <sys/mkdev.h>
11371 _ACEOF
11372 rm -f conftest.$ac_objext
11373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11374   (eval $ac_compile) 2>conftest.er1
11375   ac_status=$?
11376   grep -v '^ *+' conftest.er1 >conftest.err
11377   rm -f conftest.er1
11378   cat conftest.err >&5
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); } &&
11381          { ac_try='test -z "$ac_c_werror_flag"
11382                          || test ! -s conftest.err'
11383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384   (eval $ac_try) 2>&5
11385   ac_status=$?
11386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387   (exit $ac_status); }; } &&
11388          { ac_try='test -s conftest.$ac_objext'
11389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11390   (eval $ac_try) 2>&5
11391   ac_status=$?
11392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393   (exit $ac_status); }; }; then
11394   ac_header_compiler=yes
11395 else
11396   echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.$ac_ext >&5
11398
11399 ac_header_compiler=no
11400 fi
11401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11403 echo "${ECHO_T}$ac_header_compiler" >&6
11404
11405 # Is the header present?
11406 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11407 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11408 cat >conftest.$ac_ext <<_ACEOF
11409 /* confdefs.h.  */
11410 _ACEOF
11411 cat confdefs.h >>conftest.$ac_ext
11412 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h.  */
11414 #include <sys/mkdev.h>
11415 _ACEOF
11416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11418   ac_status=$?
11419   grep -v '^ *+' conftest.er1 >conftest.err
11420   rm -f conftest.er1
11421   cat conftest.err >&5
11422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423   (exit $ac_status); } >/dev/null; then
11424   if test -s conftest.err; then
11425     ac_cpp_err=$ac_c_preproc_warn_flag
11426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11427   else
11428     ac_cpp_err=
11429   fi
11430 else
11431   ac_cpp_err=yes
11432 fi
11433 if test -z "$ac_cpp_err"; then
11434   ac_header_preproc=yes
11435 else
11436   echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439   ac_header_preproc=no
11440 fi
11441 rm -f conftest.err conftest.$ac_ext
11442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11443 echo "${ECHO_T}$ac_header_preproc" >&6
11444
11445 # So?  What about this header?
11446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11447   yes:no: )
11448     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11449 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11450     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11451 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11452     ac_header_preproc=yes
11453     ;;
11454   no:yes:* )
11455     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11456 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11457     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11458 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11459     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11460 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11461     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11462 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11463     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11464 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11465     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11466 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11467     (
11468       cat <<\_ASBOX
11469 ## ------------------------------------------ ##
11470 ## Report this to the AC_PACKAGE_NAME lists.  ##
11471 ## ------------------------------------------ ##
11472 _ASBOX
11473     ) |
11474       sed "s/^/$as_me: WARNING:     /" >&2
11475     ;;
11476 esac
11477 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11478 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11479 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11480   echo $ECHO_N "(cached) $ECHO_C" >&6
11481 else
11482   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11483 fi
11484 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11485 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11486
11487 fi
11488 if test $ac_cv_header_sys_mkdev_h = yes; then
11489
11490 cat >>confdefs.h <<\_ACEOF
11491 #define MAJOR_IN_MKDEV 1
11492 _ACEOF
11493
11494 fi
11495
11496
11497
11498   if test $ac_cv_header_sys_mkdev_h = no; then
11499     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11500   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11501 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11502 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11503   echo $ECHO_N "(cached) $ECHO_C" >&6
11504 fi
11505 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11506 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11507 else
11508   # Is the header compilable?
11509 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11510 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11511 cat >conftest.$ac_ext <<_ACEOF
11512 /* confdefs.h.  */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h.  */
11517 $ac_includes_default
11518 #include <sys/sysmacros.h>
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11522   (eval $ac_compile) 2>conftest.er1
11523   ac_status=$?
11524   grep -v '^ *+' conftest.er1 >conftest.err
11525   rm -f conftest.er1
11526   cat conftest.err >&5
11527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); } &&
11529          { ac_try='test -z "$ac_c_werror_flag"
11530                          || test ! -s conftest.err'
11531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532   (eval $ac_try) 2>&5
11533   ac_status=$?
11534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535   (exit $ac_status); }; } &&
11536          { ac_try='test -s conftest.$ac_objext'
11537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538   (eval $ac_try) 2>&5
11539   ac_status=$?
11540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541   (exit $ac_status); }; }; then
11542   ac_header_compiler=yes
11543 else
11544   echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11546
11547 ac_header_compiler=no
11548 fi
11549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11551 echo "${ECHO_T}$ac_header_compiler" >&6
11552
11553 # Is the header present?
11554 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11555 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11556 cat >conftest.$ac_ext <<_ACEOF
11557 /* confdefs.h.  */
11558 _ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h.  */
11562 #include <sys/sysmacros.h>
11563 _ACEOF
11564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11565   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11566   ac_status=$?
11567   grep -v '^ *+' conftest.er1 >conftest.err
11568   rm -f conftest.er1
11569   cat conftest.err >&5
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); } >/dev/null; then
11572   if test -s conftest.err; then
11573     ac_cpp_err=$ac_c_preproc_warn_flag
11574     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11575   else
11576     ac_cpp_err=
11577   fi
11578 else
11579   ac_cpp_err=yes
11580 fi
11581 if test -z "$ac_cpp_err"; then
11582   ac_header_preproc=yes
11583 else
11584   echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11586
11587   ac_header_preproc=no
11588 fi
11589 rm -f conftest.err conftest.$ac_ext
11590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11591 echo "${ECHO_T}$ac_header_preproc" >&6
11592
11593 # So?  What about this header?
11594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11595   yes:no: )
11596     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11597 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11598     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11599 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11600     ac_header_preproc=yes
11601     ;;
11602   no:yes:* )
11603     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11604 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11605     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11606 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11607     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11608 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11609     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11610 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11611     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11612 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11613     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11614 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11615     (
11616       cat <<\_ASBOX
11617 ## ------------------------------------------ ##
11618 ## Report this to the AC_PACKAGE_NAME lists.  ##
11619 ## ------------------------------------------ ##
11620 _ASBOX
11621     ) |
11622       sed "s/^/$as_me: WARNING:     /" >&2
11623     ;;
11624 esac
11625 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11626 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11627 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11628   echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11631 fi
11632 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11633 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11634
11635 fi
11636 if test $ac_cv_header_sys_sysmacros_h = yes; then
11637
11638 cat >>confdefs.h <<\_ACEOF
11639 #define MAJOR_IN_SYSMACROS 1
11640 _ACEOF
11641
11642 fi
11643
11644
11645   fi
11646 fi
11647
11648
11649
11650
11651
11652
11653 ac_header_dirent=no
11654 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11655   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11656 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11657 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11659   echo $ECHO_N "(cached) $ECHO_C" >&6
11660 else
11661   cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h.  */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h.  */
11667 #include <sys/types.h>
11668 #include <$ac_hdr>
11669
11670 int
11671 main ()
11672 {
11673 if ((DIR *) 0)
11674 return 0;
11675   ;
11676   return 0;
11677 }
11678 _ACEOF
11679 rm -f conftest.$ac_objext
11680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11681   (eval $ac_compile) 2>conftest.er1
11682   ac_status=$?
11683   grep -v '^ *+' conftest.er1 >conftest.err
11684   rm -f conftest.er1
11685   cat conftest.err >&5
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); } &&
11688          { ac_try='test -z "$ac_c_werror_flag"
11689                          || test ! -s conftest.err'
11690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691   (eval $ac_try) 2>&5
11692   ac_status=$?
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); }; } &&
11695          { ac_try='test -s conftest.$ac_objext'
11696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697   (eval $ac_try) 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; }; then
11701   eval "$as_ac_Header=yes"
11702 else
11703   echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11705
11706 eval "$as_ac_Header=no"
11707 fi
11708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11709 fi
11710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11713   cat >>confdefs.h <<_ACEOF
11714 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11715 _ACEOF
11716
11717 ac_header_dirent=$ac_hdr; break
11718 fi
11719
11720 done
11721 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11722 if test $ac_header_dirent = dirent.h; then
11723   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11724 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11725 if test "${ac_cv_search_opendir+set}" = set; then
11726   echo $ECHO_N "(cached) $ECHO_C" >&6
11727 else
11728   ac_func_search_save_LIBS=$LIBS
11729 ac_cv_search_opendir=no
11730 cat >conftest.$ac_ext <<_ACEOF
11731 /* confdefs.h.  */
11732 _ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h.  */
11736
11737 /* Override any gcc2 internal prototype to avoid an error.  */
11738 #ifdef __cplusplus
11739 extern "C"
11740 #endif
11741 /* We use char because int might match the return type of a gcc2
11742    builtin and then its argument prototype would still apply.  */
11743 char opendir ();
11744 int
11745 main ()
11746 {
11747 opendir ();
11748   ;
11749   return 0;
11750 }
11751 _ACEOF
11752 rm -f conftest.$ac_objext conftest$ac_exeext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11754   (eval $ac_link) 2>conftest.er1
11755   ac_status=$?
11756   grep -v '^ *+' conftest.er1 >conftest.err
11757   rm -f conftest.er1
11758   cat conftest.err >&5
11759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760   (exit $ac_status); } &&
11761          { ac_try='test -z "$ac_c_werror_flag"
11762                          || test ! -s conftest.err'
11763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764   (eval $ac_try) 2>&5
11765   ac_status=$?
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); }; } &&
11768          { ac_try='test -s conftest$ac_exeext'
11769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770   (eval $ac_try) 2>&5
11771   ac_status=$?
11772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773   (exit $ac_status); }; }; then
11774   ac_cv_search_opendir="none required"
11775 else
11776   echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.$ac_ext >&5
11778
11779 fi
11780 rm -f conftest.err conftest.$ac_objext \
11781       conftest$ac_exeext conftest.$ac_ext
11782 if test "$ac_cv_search_opendir" = no; then
11783   for ac_lib in dir; do
11784     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11785     cat >conftest.$ac_ext <<_ACEOF
11786 /* confdefs.h.  */
11787 _ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h.  */
11791
11792 /* Override any gcc2 internal prototype to avoid an error.  */
11793 #ifdef __cplusplus
11794 extern "C"
11795 #endif
11796 /* We use char because int might match the return type of a gcc2
11797    builtin and then its argument prototype would still apply.  */
11798 char opendir ();
11799 int
11800 main ()
11801 {
11802 opendir ();
11803   ;
11804   return 0;
11805 }
11806 _ACEOF
11807 rm -f conftest.$ac_objext conftest$ac_exeext
11808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11809   (eval $ac_link) 2>conftest.er1
11810   ac_status=$?
11811   grep -v '^ *+' conftest.er1 >conftest.err
11812   rm -f conftest.er1
11813   cat conftest.err >&5
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); } &&
11816          { ac_try='test -z "$ac_c_werror_flag"
11817                          || test ! -s conftest.err'
11818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819   (eval $ac_try) 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); }; } &&
11823          { ac_try='test -s conftest$ac_exeext'
11824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825   (eval $ac_try) 2>&5
11826   ac_status=$?
11827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828   (exit $ac_status); }; }; then
11829   ac_cv_search_opendir="-l$ac_lib"
11830 break
11831 else
11832   echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11834
11835 fi
11836 rm -f conftest.err conftest.$ac_objext \
11837       conftest$ac_exeext conftest.$ac_ext
11838   done
11839 fi
11840 LIBS=$ac_func_search_save_LIBS
11841 fi
11842 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11843 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11844 if test "$ac_cv_search_opendir" != no; then
11845   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11846
11847 fi
11848
11849 else
11850   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11851 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11852 if test "${ac_cv_search_opendir+set}" = set; then
11853   echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855   ac_func_search_save_LIBS=$LIBS
11856 ac_cv_search_opendir=no
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h.  */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h.  */
11863
11864 /* Override any gcc2 internal prototype to avoid an error.  */
11865 #ifdef __cplusplus
11866 extern "C"
11867 #endif
11868 /* We use char because int might match the return type of a gcc2
11869    builtin and then its argument prototype would still apply.  */
11870 char opendir ();
11871 int
11872 main ()
11873 {
11874 opendir ();
11875   ;
11876   return 0;
11877 }
11878 _ACEOF
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11881   (eval $ac_link) 2>conftest.er1
11882   ac_status=$?
11883   grep -v '^ *+' conftest.er1 >conftest.err
11884   rm -f conftest.er1
11885   cat conftest.err >&5
11886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887   (exit $ac_status); } &&
11888          { ac_try='test -z "$ac_c_werror_flag"
11889                          || test ! -s conftest.err'
11890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891   (eval $ac_try) 2>&5
11892   ac_status=$?
11893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894   (exit $ac_status); }; } &&
11895          { ac_try='test -s conftest$ac_exeext'
11896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897   (eval $ac_try) 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; }; then
11901   ac_cv_search_opendir="none required"
11902 else
11903   echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906 fi
11907 rm -f conftest.err conftest.$ac_objext \
11908       conftest$ac_exeext conftest.$ac_ext
11909 if test "$ac_cv_search_opendir" = no; then
11910   for ac_lib in x; do
11911     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11912     cat >conftest.$ac_ext <<_ACEOF
11913 /* confdefs.h.  */
11914 _ACEOF
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h.  */
11918
11919 /* Override any gcc2 internal prototype to avoid an error.  */
11920 #ifdef __cplusplus
11921 extern "C"
11922 #endif
11923 /* We use char because int might match the return type of a gcc2
11924    builtin and then its argument prototype would still apply.  */
11925 char opendir ();
11926 int
11927 main ()
11928 {
11929 opendir ();
11930   ;
11931   return 0;
11932 }
11933 _ACEOF
11934 rm -f conftest.$ac_objext conftest$ac_exeext
11935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11936   (eval $ac_link) 2>conftest.er1
11937   ac_status=$?
11938   grep -v '^ *+' conftest.er1 >conftest.err
11939   rm -f conftest.er1
11940   cat conftest.err >&5
11941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942   (exit $ac_status); } &&
11943          { ac_try='test -z "$ac_c_werror_flag"
11944                          || test ! -s conftest.err'
11945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946   (eval $ac_try) 2>&5
11947   ac_status=$?
11948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949   (exit $ac_status); }; } &&
11950          { ac_try='test -s conftest$ac_exeext'
11951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952   (eval $ac_try) 2>&5
11953   ac_status=$?
11954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955   (exit $ac_status); }; }; then
11956   ac_cv_search_opendir="-l$ac_lib"
11957 break
11958 else
11959   echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11961
11962 fi
11963 rm -f conftest.err conftest.$ac_objext \
11964       conftest$ac_exeext conftest.$ac_ext
11965   done
11966 fi
11967 LIBS=$ac_func_search_save_LIBS
11968 fi
11969 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11970 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11971 if test "$ac_cv_search_opendir" != no; then
11972   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11973
11974 fi
11975
11976 fi
11977
11978 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11979 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11980 if test "${ac_cv_header_stat_broken+set}" = set; then
11981   echo $ECHO_N "(cached) $ECHO_C" >&6
11982 else
11983   cat >conftest.$ac_ext <<_ACEOF
11984 /* confdefs.h.  */
11985 _ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h.  */
11989 #include <sys/types.h>
11990 #include <sys/stat.h>
11991
11992 #if defined(S_ISBLK) && defined(S_IFDIR)
11993 # if S_ISBLK (S_IFDIR)
11994 You lose.
11995 # endif
11996 #endif
11997
11998 #if defined(S_ISBLK) && defined(S_IFCHR)
11999 # if S_ISBLK (S_IFCHR)
12000 You lose.
12001 # endif
12002 #endif
12003
12004 #if defined(S_ISLNK) && defined(S_IFREG)
12005 # if S_ISLNK (S_IFREG)
12006 You lose.
12007 # endif
12008 #endif
12009
12010 #if defined(S_ISSOCK) && defined(S_IFREG)
12011 # if S_ISSOCK (S_IFREG)
12012 You lose.
12013 # endif
12014 #endif
12015
12016 _ACEOF
12017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12018   $EGREP "You lose" >/dev/null 2>&1; then
12019   ac_cv_header_stat_broken=yes
12020 else
12021   ac_cv_header_stat_broken=no
12022 fi
12023 rm -f conftest*
12024
12025 fi
12026 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12027 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12028 if test $ac_cv_header_stat_broken = yes; then
12029
12030 cat >>confdefs.h <<\_ACEOF
12031 #define STAT_MACROS_BROKEN 1
12032 _ACEOF
12033
12034 fi
12035
12036 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12037 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12038 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12039   echo $ECHO_N "(cached) $ECHO_C" >&6
12040 else
12041   cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h.  */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h.  */
12047 #include <sys/types.h>
12048 #include <sys/wait.h>
12049 #ifndef WEXITSTATUS
12050 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12051 #endif
12052 #ifndef WIFEXITED
12053 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12054 #endif
12055
12056 int
12057 main ()
12058 {
12059   int s;
12060   wait (&s);
12061   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12062   ;
12063   return 0;
12064 }
12065 _ACEOF
12066 rm -f conftest.$ac_objext
12067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12068   (eval $ac_compile) 2>conftest.er1
12069   ac_status=$?
12070   grep -v '^ *+' conftest.er1 >conftest.err
12071   rm -f conftest.er1
12072   cat conftest.err >&5
12073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074   (exit $ac_status); } &&
12075          { ac_try='test -z "$ac_c_werror_flag"
12076                          || test ! -s conftest.err'
12077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078   (eval $ac_try) 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; } &&
12082          { ac_try='test -s conftest.$ac_objext'
12083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084   (eval $ac_try) 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); }; }; then
12088   ac_cv_header_sys_wait_h=yes
12089 else
12090   echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12092
12093 ac_cv_header_sys_wait_h=no
12094 fi
12095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12096 fi
12097 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12098 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12099 if test $ac_cv_header_sys_wait_h = yes; then
12100
12101 cat >>confdefs.h <<\_ACEOF
12102 #define HAVE_SYS_WAIT_H 1
12103 _ACEOF
12104
12105 fi
12106
12107 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12108 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12109 if test "${ac_cv_header_time+set}" = set; then
12110   echo $ECHO_N "(cached) $ECHO_C" >&6
12111 else
12112   cat >conftest.$ac_ext <<_ACEOF
12113 /* confdefs.h.  */
12114 _ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h.  */
12118 #include <sys/types.h>
12119 #include <sys/time.h>
12120 #include <time.h>
12121
12122 int
12123 main ()
12124 {
12125 if ((struct tm *) 0)
12126 return 0;
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 rm -f conftest.$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133   (eval $ac_compile) 2>conftest.er1
12134   ac_status=$?
12135   grep -v '^ *+' conftest.er1 >conftest.err
12136   rm -f conftest.er1
12137   cat conftest.err >&5
12138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139   (exit $ac_status); } &&
12140          { ac_try='test -z "$ac_c_werror_flag"
12141                          || test ! -s conftest.err'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; } &&
12147          { ac_try='test -s conftest.$ac_objext'
12148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149   (eval $ac_try) 2>&5
12150   ac_status=$?
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); }; }; then
12153   ac_cv_header_time=yes
12154 else
12155   echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12157
12158 ac_cv_header_time=no
12159 fi
12160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12161 fi
12162 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12163 echo "${ECHO_T}$ac_cv_header_time" >&6
12164 if test $ac_cv_header_time = yes; then
12165
12166 cat >>confdefs.h <<\_ACEOF
12167 #define TIME_WITH_SYS_TIME 1
12168 _ACEOF
12169
12170 fi
12171
12172
12173 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12174 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12175 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12176   echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178   cat >conftest.$ac_ext <<_ACEOF
12179 /* confdefs.h.  */
12180 _ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h.  */
12184 $ac_includes_default
12185 int
12186 main ()
12187 {
12188 static struct stat ac_aggr;
12189 if (ac_aggr.st_blksize)
12190 return 0;
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext
12196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12197   (eval $ac_compile) 2>conftest.er1
12198   ac_status=$?
12199   grep -v '^ *+' conftest.er1 >conftest.err
12200   rm -f conftest.er1
12201   cat conftest.err >&5
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } &&
12204          { ac_try='test -z "$ac_c_werror_flag"
12205                          || test ! -s conftest.err'
12206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207   (eval $ac_try) 2>&5
12208   ac_status=$?
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); }; } &&
12211          { ac_try='test -s conftest.$ac_objext'
12212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12213   (eval $ac_try) 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; }; then
12217   ac_cv_member_struct_stat_st_blksize=yes
12218 else
12219   echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12221
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h.  */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h.  */
12228 $ac_includes_default
12229 int
12230 main ()
12231 {
12232 static struct stat ac_aggr;
12233 if (sizeof ac_aggr.st_blksize)
12234 return 0;
12235   ;
12236   return 0;
12237 }
12238 _ACEOF
12239 rm -f conftest.$ac_objext
12240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12241   (eval $ac_compile) 2>conftest.er1
12242   ac_status=$?
12243   grep -v '^ *+' conftest.er1 >conftest.err
12244   rm -f conftest.er1
12245   cat conftest.err >&5
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); } &&
12248          { ac_try='test -z "$ac_c_werror_flag"
12249                          || test ! -s conftest.err'
12250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251   (eval $ac_try) 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); }; } &&
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_member_struct_stat_st_blksize=yes
12262 else
12263   echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12265
12266 ac_cv_member_struct_stat_st_blksize=no
12267 fi
12268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12269 fi
12270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12271 fi
12272 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12273 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12274 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12275
12276 cat >>confdefs.h <<_ACEOF
12277 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12278 _ACEOF
12279
12280
12281 cat >>confdefs.h <<\_ACEOF
12282 #define HAVE_ST_BLKSIZE 1
12283 _ACEOF
12284
12285 fi
12286
12287
12288 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12289 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12290 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12291   echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293   cat >conftest.$ac_ext <<_ACEOF
12294 /* confdefs.h.  */
12295 _ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h.  */
12299 $ac_includes_default
12300 int
12301 main ()
12302 {
12303 static struct stat ac_aggr;
12304 if (ac_aggr.st_blocks)
12305 return 0;
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext
12311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12312   (eval $ac_compile) 2>conftest.er1
12313   ac_status=$?
12314   grep -v '^ *+' conftest.er1 >conftest.err
12315   rm -f conftest.er1
12316   cat conftest.err >&5
12317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318   (exit $ac_status); } &&
12319          { ac_try='test -z "$ac_c_werror_flag"
12320                          || test ! -s conftest.err'
12321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322   (eval $ac_try) 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; } &&
12326          { ac_try='test -s conftest.$ac_objext'
12327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12328   (eval $ac_try) 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); }; }; then
12332   ac_cv_member_struct_stat_st_blocks=yes
12333 else
12334   echo "$as_me: failed program was:" >&5
12335 sed 's/^/| /' conftest.$ac_ext >&5
12336
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h.  */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h.  */
12343 $ac_includes_default
12344 int
12345 main ()
12346 {
12347 static struct stat ac_aggr;
12348 if (sizeof ac_aggr.st_blocks)
12349 return 0;
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 rm -f conftest.$ac_objext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12356   (eval $ac_compile) 2>conftest.er1
12357   ac_status=$?
12358   grep -v '^ *+' conftest.er1 >conftest.err
12359   rm -f conftest.er1
12360   cat conftest.err >&5
12361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362   (exit $ac_status); } &&
12363          { ac_try='test -z "$ac_c_werror_flag"
12364                          || test ! -s conftest.err'
12365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366   (eval $ac_try) 2>&5
12367   ac_status=$?
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); }; } &&
12370          { ac_try='test -s conftest.$ac_objext'
12371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372   (eval $ac_try) 2>&5
12373   ac_status=$?
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); }; }; then
12376   ac_cv_member_struct_stat_st_blocks=yes
12377 else
12378   echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381 ac_cv_member_struct_stat_st_blocks=no
12382 fi
12383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12384 fi
12385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12386 fi
12387 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12388 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12389 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12390
12391 cat >>confdefs.h <<_ACEOF
12392 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12393 _ACEOF
12394
12395
12396 cat >>confdefs.h <<\_ACEOF
12397 #define HAVE_ST_BLOCKS 1
12398 _ACEOF
12399
12400 else
12401   case $LIBOBJS in
12402     "fileblocks.$ac_objext"   | \
12403   *" fileblocks.$ac_objext"   | \
12404     "fileblocks.$ac_objext "* | \
12405   *" fileblocks.$ac_objext "* ) ;;
12406   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12407 esac
12408
12409 fi
12410
12411
12412 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12413 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12414 if test "${ac_cv_struct_tm+set}" = set; then
12415   echo $ECHO_N "(cached) $ECHO_C" >&6
12416 else
12417   cat >conftest.$ac_ext <<_ACEOF
12418 /* confdefs.h.  */
12419 _ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h.  */
12423 #include <sys/types.h>
12424 #include <time.h>
12425
12426 int
12427 main ()
12428 {
12429 struct tm *tp; tp->tm_sec;
12430   ;
12431   return 0;
12432 }
12433 _ACEOF
12434 rm -f conftest.$ac_objext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12436   (eval $ac_compile) 2>conftest.er1
12437   ac_status=$?
12438   grep -v '^ *+' conftest.er1 >conftest.err
12439   rm -f conftest.er1
12440   cat conftest.err >&5
12441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442   (exit $ac_status); } &&
12443          { ac_try='test -z "$ac_c_werror_flag"
12444                          || test ! -s conftest.err'
12445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446   (eval $ac_try) 2>&5
12447   ac_status=$?
12448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449   (exit $ac_status); }; } &&
12450          { ac_try='test -s conftest.$ac_objext'
12451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452   (eval $ac_try) 2>&5
12453   ac_status=$?
12454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455   (exit $ac_status); }; }; then
12456   ac_cv_struct_tm=time.h
12457 else
12458   echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12460
12461 ac_cv_struct_tm=sys/time.h
12462 fi
12463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12464 fi
12465 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12466 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12467 if test $ac_cv_struct_tm = sys/time.h; then
12468
12469 cat >>confdefs.h <<\_ACEOF
12470 #define TM_IN_SYS_TIME 1
12471 _ACEOF
12472
12473 fi
12474
12475 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12476 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12477 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12478   echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480   cat >conftest.$ac_ext <<_ACEOF
12481 /* confdefs.h.  */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h.  */
12486 #include <sys/types.h>
12487 #include <$ac_cv_struct_tm>
12488
12489
12490 int
12491 main ()
12492 {
12493 static struct tm ac_aggr;
12494 if (ac_aggr.tm_zone)
12495 return 0;
12496   ;
12497   return 0;
12498 }
12499 _ACEOF
12500 rm -f conftest.$ac_objext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502   (eval $ac_compile) 2>conftest.er1
12503   ac_status=$?
12504   grep -v '^ *+' conftest.er1 >conftest.err
12505   rm -f conftest.er1
12506   cat conftest.err >&5
12507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); } &&
12509          { ac_try='test -z "$ac_c_werror_flag"
12510                          || test ! -s conftest.err'
12511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512   (eval $ac_try) 2>&5
12513   ac_status=$?
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); }; } &&
12516          { ac_try='test -s conftest.$ac_objext'
12517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518   (eval $ac_try) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); }; }; then
12522   ac_cv_member_struct_tm_tm_zone=yes
12523 else
12524   echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12526
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533 #include <sys/types.h>
12534 #include <$ac_cv_struct_tm>
12535
12536
12537 int
12538 main ()
12539 {
12540 static struct tm ac_aggr;
12541 if (sizeof ac_aggr.tm_zone)
12542 return 0;
12543   ;
12544   return 0;
12545 }
12546 _ACEOF
12547 rm -f conftest.$ac_objext
12548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12549   (eval $ac_compile) 2>conftest.er1
12550   ac_status=$?
12551   grep -v '^ *+' conftest.er1 >conftest.err
12552   rm -f conftest.er1
12553   cat conftest.err >&5
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); } &&
12556          { ac_try='test -z "$ac_c_werror_flag"
12557                          || test ! -s conftest.err'
12558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559   (eval $ac_try) 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); }; } &&
12563          { ac_try='test -s conftest.$ac_objext'
12564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565   (eval $ac_try) 2>&5
12566   ac_status=$?
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); }; }; then
12569   ac_cv_member_struct_tm_tm_zone=yes
12570 else
12571   echo "$as_me: failed program was:" >&5
12572 sed 's/^/| /' conftest.$ac_ext >&5
12573
12574 ac_cv_member_struct_tm_tm_zone=no
12575 fi
12576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12577 fi
12578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12579 fi
12580 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12581 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12582 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12583
12584 cat >>confdefs.h <<_ACEOF
12585 #define HAVE_STRUCT_TM_TM_ZONE 1
12586 _ACEOF
12587
12588
12589 fi
12590
12591 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12592
12593 cat >>confdefs.h <<\_ACEOF
12594 #define HAVE_TM_ZONE 1
12595 _ACEOF
12596
12597 else
12598   echo "$as_me:$LINENO: checking for tzname" >&5
12599 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12600 if test "${ac_cv_var_tzname+set}" = set; then
12601   echo $ECHO_N "(cached) $ECHO_C" >&6
12602 else
12603   cat >conftest.$ac_ext <<_ACEOF
12604 /* confdefs.h.  */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h.  */
12609 #include <time.h>
12610 #ifndef tzname /* For SGI.  */
12611 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12612 #endif
12613
12614 int
12615 main ()
12616 {
12617 atoi(*tzname);
12618   ;
12619   return 0;
12620 }
12621 _ACEOF
12622 rm -f conftest.$ac_objext conftest$ac_exeext
12623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12624   (eval $ac_link) 2>conftest.er1
12625   ac_status=$?
12626   grep -v '^ *+' conftest.er1 >conftest.err
12627   rm -f conftest.er1
12628   cat conftest.err >&5
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); } &&
12631          { ac_try='test -z "$ac_c_werror_flag"
12632                          || test ! -s conftest.err'
12633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634   (eval $ac_try) 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); }; } &&
12638          { ac_try='test -s conftest$ac_exeext'
12639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640   (eval $ac_try) 2>&5
12641   ac_status=$?
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); }; }; then
12644   ac_cv_var_tzname=yes
12645 else
12646   echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12648
12649 ac_cv_var_tzname=no
12650 fi
12651 rm -f conftest.err conftest.$ac_objext \
12652       conftest$ac_exeext conftest.$ac_ext
12653 fi
12654 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12655 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12656   if test $ac_cv_var_tzname = yes; then
12657
12658 cat >>confdefs.h <<\_ACEOF
12659 #define HAVE_TZNAME 1
12660 _ACEOF
12661
12662   fi
12663 fi
12664
12665
12666 echo "$as_me:$LINENO: checking for utime.h" >&5
12667 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12668 if test "${ba_cv_header_utime_h+set}" = set; then
12669   echo $ECHO_N "(cached) $ECHO_C" >&6
12670 else
12671   cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h.  */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h.  */
12677
12678 #include <sys/types.h>
12679 #include <utime.h>
12680 int
12681 main ()
12682 {
12683 struct utimbuf foo
12684   ;
12685   return 0;
12686 }
12687 _ACEOF
12688 rm -f conftest.$ac_objext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690   (eval $ac_compile) 2>conftest.er1
12691   ac_status=$?
12692   grep -v '^ *+' conftest.er1 >conftest.err
12693   rm -f conftest.er1
12694   cat conftest.err >&5
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); } &&
12697          { ac_try='test -z "$ac_c_werror_flag"
12698                          || test ! -s conftest.err'
12699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700   (eval $ac_try) 2>&5
12701   ac_status=$?
12702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703   (exit $ac_status); }; } &&
12704          { ac_try='test -s conftest.$ac_objext'
12705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706   (eval $ac_try) 2>&5
12707   ac_status=$?
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); }; }; then
12710   ba_cv_header_utime_h=yes
12711 else
12712   echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12714
12715 ba_cv_header_utime_h=no
12716 fi
12717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12718 fi
12719 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12720 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12721 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12722 #define HAVE_UTIME_H 1
12723 _ACEOF
12724
12725
12726 echo "$as_me:$LINENO: checking for socklen_t" >&5
12727 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12728 if test "${ba_cv_header_socklen_t+set}" = set; then
12729   echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731   cat >conftest.$ac_ext <<_ACEOF
12732 /* confdefs.h.  */
12733 _ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h.  */
12737
12738 #include <sys/types.h>
12739 #include <sys/socket.h>
12740 int
12741 main ()
12742 {
12743 socklen_t x
12744   ;
12745   return 0;
12746 }
12747 _ACEOF
12748 rm -f conftest.$ac_objext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12750   (eval $ac_compile) 2>conftest.er1
12751   ac_status=$?
12752   grep -v '^ *+' conftest.er1 >conftest.err
12753   rm -f conftest.er1
12754   cat conftest.err >&5
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); } &&
12757          { ac_try='test -z "$ac_c_werror_flag"
12758                          || test ! -s conftest.err'
12759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760   (eval $ac_try) 2>&5
12761   ac_status=$?
12762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763   (exit $ac_status); }; } &&
12764          { ac_try='test -s conftest.$ac_objext'
12765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766   (eval $ac_try) 2>&5
12767   ac_status=$?
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); }; }; then
12770   ba_cv_header_socklen_t=yes
12771 else
12772   echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12774
12775 ba_cv_header_socklen_t=no
12776 fi
12777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12778 fi
12779 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12780 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12781 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12782 #define HAVE_SOCKLEN_T 1
12783 _ACEOF
12784
12785
12786 echo "$as_me:$LINENO: checking for bigendian" >&5
12787 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12788 if test "${ba_cv_bigendian+set}" = set; then
12789   echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791   if test "$cross_compiling" = yes; then
12792   ba_cv_bigendian=no
12793 else
12794   cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h.  */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h.  */
12800 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12801 _ACEOF
12802 rm -f conftest$ac_exeext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12804   (eval $ac_link) 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   ba_cv_bigendian=yes
12814 else
12815   echo "$as_me: program exited with status $ac_status" >&5
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12818
12819 ( exit $ac_status )
12820 ba_cv_bigendian=no
12821 fi
12822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12823 fi
12824 fi
12825 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12826 echo "${ECHO_T}$ba_cv_bigendian" >&6
12827 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12828 #define HAVE_BIGENDIAN 1
12829 _ACEOF
12830
12831
12832
12833 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12834 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12835 if test "${ac_cv_c_const+set}" = set; then
12836   echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838   cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h.  */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h.  */
12844
12845 int
12846 main ()
12847 {
12848 /* FIXME: Include the comments suggested by Paul. */
12849 #ifndef __cplusplus
12850   /* Ultrix mips cc rejects this.  */
12851   typedef int charset[2];
12852   const charset x;
12853   /* SunOS 4.1.1 cc rejects this.  */
12854   char const *const *ccp;
12855   char **p;
12856   /* NEC SVR4.0.2 mips cc rejects this.  */
12857   struct point {int x, y;};
12858   static struct point const zero = {0,0};
12859   /* AIX XL C 1.02.0.0 rejects this.
12860      It does not let you subtract one const X* pointer from another in
12861      an arm of an if-expression whose if-part is not a constant
12862      expression */
12863   const char *g = "string";
12864   ccp = &g + (g ? g-g : 0);
12865   /* HPUX 7.0 cc rejects these. */
12866   ++ccp;
12867   p = (char**) ccp;
12868   ccp = (char const *const *) p;
12869   { /* SCO 3.2v4 cc rejects this.  */
12870     char *t;
12871     char const *s = 0 ? (char *) 0 : (char const *) 0;
12872
12873     *t++ = 0;
12874   }
12875   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12876     int x[] = {25, 17};
12877     const int *foo = &x[0];
12878     ++foo;
12879   }
12880   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12881     typedef const int *iptr;
12882     iptr p = 0;
12883     ++p;
12884   }
12885   { /* AIX XL C 1.02.0.0 rejects this saying
12886        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12887     struct s { int j; const int *ap[3]; };
12888     struct s *b; b->j = 5;
12889   }
12890   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12891     const int foo = 10;
12892   }
12893 #endif
12894
12895   ;
12896   return 0;
12897 }
12898 _ACEOF
12899 rm -f conftest.$ac_objext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901   (eval $ac_compile) 2>conftest.er1
12902   ac_status=$?
12903   grep -v '^ *+' conftest.er1 >conftest.err
12904   rm -f conftest.er1
12905   cat conftest.err >&5
12906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907   (exit $ac_status); } &&
12908          { ac_try='test -z "$ac_c_werror_flag"
12909                          || test ! -s conftest.err'
12910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911   (eval $ac_try) 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); }; } &&
12915          { ac_try='test -s conftest.$ac_objext'
12916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917   (eval $ac_try) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); }; }; then
12921   ac_cv_c_const=yes
12922 else
12923   echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12925
12926 ac_cv_c_const=no
12927 fi
12928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12929 fi
12930 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12931 echo "${ECHO_T}$ac_cv_c_const" >&6
12932 if test $ac_cv_c_const = no; then
12933
12934 cat >>confdefs.h <<\_ACEOF
12935 #define const
12936 _ACEOF
12937
12938 fi
12939
12940
12941
12942 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12943 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12944 fstype=no
12945 # The order of these tests is important.
12946 cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h.  */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h.  */
12952 #include <sys/statvfs.h>
12953 #include <sys/fstyp.h>
12954 _ACEOF
12955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12957   ac_status=$?
12958   grep -v '^ *+' conftest.er1 >conftest.err
12959   rm -f conftest.er1
12960   cat conftest.err >&5
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); } >/dev/null; then
12963   if test -s conftest.err; then
12964     ac_cpp_err=$ac_c_preproc_warn_flag
12965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12966   else
12967     ac_cpp_err=
12968   fi
12969 else
12970   ac_cpp_err=yes
12971 fi
12972 if test -z "$ac_cpp_err"; then
12973   cat >>confdefs.h <<\_ACEOF
12974 #define FSTYPE_STATVFS 1
12975 _ACEOF
12976  fstype=SVR4
12977 else
12978   echo "$as_me: failed program was:" >&5
12979 sed 's/^/| /' conftest.$ac_ext >&5
12980
12981
12982 fi
12983 rm -f conftest.err conftest.$ac_ext
12984 if test $fstype = no; then
12985 cat >conftest.$ac_ext <<_ACEOF
12986 /* confdefs.h.  */
12987 _ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h.  */
12991 #include <sys/statfs.h>
12992 #include <sys/fstyp.h>
12993 _ACEOF
12994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12996   ac_status=$?
12997   grep -v '^ *+' conftest.er1 >conftest.err
12998   rm -f conftest.er1
12999   cat conftest.err >&5
13000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); } >/dev/null; then
13002   if test -s conftest.err; then
13003     ac_cpp_err=$ac_c_preproc_warn_flag
13004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13005   else
13006     ac_cpp_err=
13007   fi
13008 else
13009   ac_cpp_err=yes
13010 fi
13011 if test -z "$ac_cpp_err"; then
13012   cat >>confdefs.h <<\_ACEOF
13013 #define FSTYPE_USG_STATFS 1
13014 _ACEOF
13015  fstype=SVR3
13016 else
13017   echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13019
13020
13021 fi
13022 rm -f conftest.err conftest.$ac_ext
13023 fi
13024 if test $fstype = no; then
13025 cat >conftest.$ac_ext <<_ACEOF
13026 /* confdefs.h.  */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h.  */
13031 #include <sys/statfs.h>
13032 #include <sys/vmount.h>
13033 _ACEOF
13034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13036   ac_status=$?
13037   grep -v '^ *+' conftest.er1 >conftest.err
13038   rm -f conftest.er1
13039   cat conftest.err >&5
13040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041   (exit $ac_status); } >/dev/null; then
13042   if test -s conftest.err; then
13043     ac_cpp_err=$ac_c_preproc_warn_flag
13044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13045   else
13046     ac_cpp_err=
13047   fi
13048 else
13049   ac_cpp_err=yes
13050 fi
13051 if test -z "$ac_cpp_err"; then
13052   cat >>confdefs.h <<\_ACEOF
13053 #define FSTYPE_AIX_STATFS 1
13054 _ACEOF
13055  fstype=AIX
13056 else
13057   echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13059
13060
13061 fi
13062 rm -f conftest.err conftest.$ac_ext
13063 fi
13064 if test $fstype = no; then
13065 cat >conftest.$ac_ext <<_ACEOF
13066 /* confdefs.h.  */
13067 _ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h.  */
13071 #include <mntent.h>
13072 _ACEOF
13073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13074   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13075   ac_status=$?
13076   grep -v '^ *+' conftest.er1 >conftest.err
13077   rm -f conftest.er1
13078   cat conftest.err >&5
13079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080   (exit $ac_status); } >/dev/null; then
13081   if test -s conftest.err; then
13082     ac_cpp_err=$ac_c_preproc_warn_flag
13083     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13084   else
13085     ac_cpp_err=
13086   fi
13087 else
13088   ac_cpp_err=yes
13089 fi
13090 if test -z "$ac_cpp_err"; then
13091   cat >>confdefs.h <<\_ACEOF
13092 #define FSTYPE_MNTENT 1
13093 _ACEOF
13094  fstype=4.3BSD
13095 else
13096   echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13098
13099
13100 fi
13101 rm -f conftest.err conftest.$ac_ext
13102 fi
13103 if test $fstype = no; then
13104 cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h.  */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h.  */
13110 #include <sys/mount.h>
13111
13112 _ACEOF
13113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13114   $EGREP "f_type;" >/dev/null 2>&1; then
13115   cat >>confdefs.h <<\_ACEOF
13116 #define FSTYPE_STATFS 1
13117 _ACEOF
13118  fstype=4.4BSD/OSF1
13119 fi
13120 rm -f conftest*
13121
13122 fi
13123 if test $fstype = no; then
13124 cat >conftest.$ac_ext <<_ACEOF
13125 /* confdefs.h.  */
13126 _ACEOF
13127 cat confdefs.h >>conftest.$ac_ext
13128 cat >>conftest.$ac_ext <<_ACEOF
13129 /* end confdefs.h.  */
13130 #include <sys/mount.h>
13131 #include <sys/fs_types.h>
13132 _ACEOF
13133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13135   ac_status=$?
13136   grep -v '^ *+' conftest.er1 >conftest.err
13137   rm -f conftest.er1
13138   cat conftest.err >&5
13139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140   (exit $ac_status); } >/dev/null; then
13141   if test -s conftest.err; then
13142     ac_cpp_err=$ac_c_preproc_warn_flag
13143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13144   else
13145     ac_cpp_err=
13146   fi
13147 else
13148   ac_cpp_err=yes
13149 fi
13150 if test -z "$ac_cpp_err"; then
13151   cat >>confdefs.h <<\_ACEOF
13152 #define FSTYPE_GETMNT 1
13153 _ACEOF
13154  fstype=Ultrix
13155 else
13156   echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13158
13159
13160 fi
13161 rm -f conftest.err conftest.$ac_ext
13162 fi
13163 echo "$as_me:$LINENO: result: $fstype" >&5
13164 echo "${ECHO_T}$fstype" >&6
13165
13166 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13167 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13168 if test "${ac_cv_type_signal+set}" = set; then
13169   echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171   cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h.  */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h.  */
13177 #include <sys/types.h>
13178 #include <signal.h>
13179 #ifdef signal
13180 # undef signal
13181 #endif
13182 #ifdef __cplusplus
13183 extern "C" void (*signal (int, void (*)(int)))(int);
13184 #else
13185 void (*signal ()) ();
13186 #endif
13187
13188 int
13189 main ()
13190 {
13191 int i;
13192   ;
13193   return 0;
13194 }
13195 _ACEOF
13196 rm -f conftest.$ac_objext
13197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198   (eval $ac_compile) 2>conftest.er1
13199   ac_status=$?
13200   grep -v '^ *+' conftest.er1 >conftest.err
13201   rm -f conftest.er1
13202   cat conftest.err >&5
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); } &&
13205          { ac_try='test -z "$ac_c_werror_flag"
13206                          || test ! -s conftest.err'
13207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208   (eval $ac_try) 2>&5
13209   ac_status=$?
13210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211   (exit $ac_status); }; } &&
13212          { ac_try='test -s conftest.$ac_objext'
13213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214   (eval $ac_try) 2>&5
13215   ac_status=$?
13216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217   (exit $ac_status); }; }; then
13218   ac_cv_type_signal=void
13219 else
13220   echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13222
13223 ac_cv_type_signal=int
13224 fi
13225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13226 fi
13227 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13228 echo "${ECHO_T}$ac_cv_type_signal" >&6
13229
13230 cat >>confdefs.h <<_ACEOF
13231 #define RETSIGTYPE $ac_cv_type_signal
13232 _ACEOF
13233
13234
13235
13236 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13237 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13238 if test "${bash_cv_signal_vintage+set}" = set; then
13239   echo $ECHO_N "(cached) $ECHO_C" >&6
13240 else
13241
13242   cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h.  */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h.  */
13248 #include <signal.h>
13249 int
13250 main ()
13251 {
13252
13253     sigset_t ss;
13254     struct sigaction sa;
13255     sigemptyset(&ss); sigsuspend(&ss);
13256     sigaction(SIGINT, &sa, (struct sigaction *) 0);
13257     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13258
13259   ;
13260   return 0;
13261 }
13262 _ACEOF
13263 rm -f conftest.$ac_objext conftest$ac_exeext
13264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13265   (eval $ac_link) 2>conftest.er1
13266   ac_status=$?
13267   grep -v '^ *+' conftest.er1 >conftest.err
13268   rm -f conftest.er1
13269   cat conftest.err >&5
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); } &&
13272          { ac_try='test -z "$ac_c_werror_flag"
13273                          || test ! -s conftest.err'
13274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275   (eval $ac_try) 2>&5
13276   ac_status=$?
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); }; } &&
13279          { ac_try='test -s conftest$ac_exeext'
13280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281   (eval $ac_try) 2>&5
13282   ac_status=$?
13283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   (exit $ac_status); }; }; then
13285   bash_cv_signal_vintage=posix
13286 else
13287   echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13289
13290
13291     cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h.  */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h.  */
13297 #include <signal.h>
13298 int
13299 main ()
13300 {
13301
13302         int mask = sigmask(SIGINT);
13303         sigsetmask(mask); sigblock(mask); sigpause(mask);
13304
13305   ;
13306   return 0;
13307 }
13308 _ACEOF
13309 rm -f conftest.$ac_objext conftest$ac_exeext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13311   (eval $ac_link) 2>conftest.er1
13312   ac_status=$?
13313   grep -v '^ *+' conftest.er1 >conftest.err
13314   rm -f conftest.er1
13315   cat conftest.err >&5
13316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317   (exit $ac_status); } &&
13318          { ac_try='test -z "$ac_c_werror_flag"
13319                          || test ! -s conftest.err'
13320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321   (eval $ac_try) 2>&5
13322   ac_status=$?
13323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324   (exit $ac_status); }; } &&
13325          { ac_try='test -s conftest$ac_exeext'
13326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327   (eval $ac_try) 2>&5
13328   ac_status=$?
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); }; }; then
13331   bash_cv_signal_vintage=4.2bsd
13332 else
13333   echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13335
13336
13337       cat >conftest.$ac_ext <<_ACEOF
13338 /* confdefs.h.  */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h.  */
13343
13344         #include <signal.h>
13345         RETSIGTYPE foo() { }
13346 int
13347 main ()
13348 {
13349
13350                 int mask = sigmask(SIGINT);
13351                 sigset(SIGINT, foo); sigrelse(SIGINT);
13352                 sighold(SIGINT); sigpause(SIGINT);
13353
13354   ;
13355   return 0;
13356 }
13357 _ACEOF
13358 rm -f conftest.$ac_objext conftest$ac_exeext
13359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13360   (eval $ac_link) 2>conftest.er1
13361   ac_status=$?
13362   grep -v '^ *+' conftest.er1 >conftest.err
13363   rm -f conftest.er1
13364   cat conftest.err >&5
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); } &&
13367          { ac_try='test -z "$ac_c_werror_flag"
13368                          || test ! -s conftest.err'
13369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370   (eval $ac_try) 2>&5
13371   ac_status=$?
13372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373   (exit $ac_status); }; } &&
13374          { ac_try='test -s conftest$ac_exeext'
13375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13376   (eval $ac_try) 2>&5
13377   ac_status=$?
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); }; }; then
13380   bash_cv_signal_vintage=svr3
13381 else
13382   echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13384
13385 bash_cv_signal_vintage=v7
13386
13387 fi
13388 rm -f conftest.err conftest.$ac_objext \
13389       conftest$ac_exeext conftest.$ac_ext
13390
13391 fi
13392 rm -f conftest.err conftest.$ac_objext \
13393       conftest$ac_exeext conftest.$ac_ext
13394
13395 fi
13396 rm -f conftest.err conftest.$ac_objext \
13397       conftest$ac_exeext conftest.$ac_ext
13398
13399 fi
13400
13401 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13402 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13403 if test "$bash_cv_signal_vintage" = posix; then
13404 cat >>confdefs.h <<\_ACEOF
13405 #define HAVE_POSIX_SIGNALS 1
13406 _ACEOF
13407
13408 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13409 cat >>confdefs.h <<\_ACEOF
13410 #define HAVE_BSD_SIGNALS 1
13411 _ACEOF
13412
13413 elif test "$bash_cv_signal_vintage" = svr3; then
13414 cat >>confdefs.h <<\_ACEOF
13415 #define HAVE_USG_SIGHOLD 1
13416 _ACEOF
13417
13418 fi
13419
13420 echo "$as_me:$LINENO: checking for mode_t" >&5
13421 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13422 if test "${ac_cv_type_mode_t+set}" = set; then
13423   echo $ECHO_N "(cached) $ECHO_C" >&6
13424 else
13425   cat >conftest.$ac_ext <<_ACEOF
13426 /* confdefs.h.  */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h.  */
13431 $ac_includes_default
13432 int
13433 main ()
13434 {
13435 if ((mode_t *) 0)
13436   return 0;
13437 if (sizeof (mode_t))
13438   return 0;
13439   ;
13440   return 0;
13441 }
13442 _ACEOF
13443 rm -f conftest.$ac_objext
13444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13445   (eval $ac_compile) 2>conftest.er1
13446   ac_status=$?
13447   grep -v '^ *+' conftest.er1 >conftest.err
13448   rm -f conftest.er1
13449   cat conftest.err >&5
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); } &&
13452          { ac_try='test -z "$ac_c_werror_flag"
13453                          || test ! -s conftest.err'
13454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455   (eval $ac_try) 2>&5
13456   ac_status=$?
13457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458   (exit $ac_status); }; } &&
13459          { ac_try='test -s conftest.$ac_objext'
13460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13461   (eval $ac_try) 2>&5
13462   ac_status=$?
13463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464   (exit $ac_status); }; }; then
13465   ac_cv_type_mode_t=yes
13466 else
13467   echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13469
13470 ac_cv_type_mode_t=no
13471 fi
13472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13473 fi
13474 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13475 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13476 if test $ac_cv_type_mode_t = yes; then
13477   :
13478 else
13479
13480 cat >>confdefs.h <<_ACEOF
13481 #define mode_t int
13482 _ACEOF
13483
13484 fi
13485
13486 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13487 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13488 if test "${ac_cv_type_uid_t+set}" = set; then
13489   echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491   cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h.  */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h.  */
13497 #include <sys/types.h>
13498
13499 _ACEOF
13500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13501   $EGREP "uid_t" >/dev/null 2>&1; then
13502   ac_cv_type_uid_t=yes
13503 else
13504   ac_cv_type_uid_t=no
13505 fi
13506 rm -f conftest*
13507
13508 fi
13509 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13510 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13511 if test $ac_cv_type_uid_t = no; then
13512
13513 cat >>confdefs.h <<\_ACEOF
13514 #define uid_t int
13515 _ACEOF
13516
13517
13518 cat >>confdefs.h <<\_ACEOF
13519 #define gid_t int
13520 _ACEOF
13521
13522 fi
13523
13524 echo "$as_me:$LINENO: checking for size_t" >&5
13525 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13526 if test "${ac_cv_type_size_t+set}" = set; then
13527   echo $ECHO_N "(cached) $ECHO_C" >&6
13528 else
13529   cat >conftest.$ac_ext <<_ACEOF
13530 /* confdefs.h.  */
13531 _ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h.  */
13535 $ac_includes_default
13536 int
13537 main ()
13538 {
13539 if ((size_t *) 0)
13540   return 0;
13541 if (sizeof (size_t))
13542   return 0;
13543   ;
13544   return 0;
13545 }
13546 _ACEOF
13547 rm -f conftest.$ac_objext
13548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13549   (eval $ac_compile) 2>conftest.er1
13550   ac_status=$?
13551   grep -v '^ *+' conftest.er1 >conftest.err
13552   rm -f conftest.er1
13553   cat conftest.err >&5
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); } &&
13556          { ac_try='test -z "$ac_c_werror_flag"
13557                          || test ! -s conftest.err'
13558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559   (eval $ac_try) 2>&5
13560   ac_status=$?
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); }; } &&
13563          { ac_try='test -s conftest.$ac_objext'
13564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565   (eval $ac_try) 2>&5
13566   ac_status=$?
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); }; }; then
13569   ac_cv_type_size_t=yes
13570 else
13571   echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.$ac_ext >&5
13573
13574 ac_cv_type_size_t=no
13575 fi
13576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13577 fi
13578 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13579 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13580 if test $ac_cv_type_size_t = yes; then
13581   :
13582 else
13583
13584 cat >>confdefs.h <<_ACEOF
13585 #define size_t unsigned
13586 _ACEOF
13587
13588 fi
13589
13590 echo "$as_me:$LINENO: checking for pid_t" >&5
13591 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13592 if test "${ac_cv_type_pid_t+set}" = set; then
13593   echo $ECHO_N "(cached) $ECHO_C" >&6
13594 else
13595   cat >conftest.$ac_ext <<_ACEOF
13596 /* confdefs.h.  */
13597 _ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h.  */
13601 $ac_includes_default
13602 int
13603 main ()
13604 {
13605 if ((pid_t *) 0)
13606   return 0;
13607 if (sizeof (pid_t))
13608   return 0;
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 rm -f conftest.$ac_objext
13614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13615   (eval $ac_compile) 2>conftest.er1
13616   ac_status=$?
13617   grep -v '^ *+' conftest.er1 >conftest.err
13618   rm -f conftest.er1
13619   cat conftest.err >&5
13620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621   (exit $ac_status); } &&
13622          { ac_try='test -z "$ac_c_werror_flag"
13623                          || test ! -s conftest.err'
13624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625   (eval $ac_try) 2>&5
13626   ac_status=$?
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); }; } &&
13629          { ac_try='test -s conftest.$ac_objext'
13630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631   (eval $ac_try) 2>&5
13632   ac_status=$?
13633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634   (exit $ac_status); }; }; then
13635   ac_cv_type_pid_t=yes
13636 else
13637   echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13639
13640 ac_cv_type_pid_t=no
13641 fi
13642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13643 fi
13644 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13645 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13646 if test $ac_cv_type_pid_t = yes; then
13647   :
13648 else
13649
13650 cat >>confdefs.h <<_ACEOF
13651 #define pid_t int
13652 _ACEOF
13653
13654 fi
13655
13656 echo "$as_me:$LINENO: checking for off_t" >&5
13657 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13658 if test "${ac_cv_type_off_t+set}" = set; then
13659   echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13661   cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h.  */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h.  */
13667 $ac_includes_default
13668 int
13669 main ()
13670 {
13671 if ((off_t *) 0)
13672   return 0;
13673 if (sizeof (off_t))
13674   return 0;
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 rm -f conftest.$ac_objext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681   (eval $ac_compile) 2>conftest.er1
13682   ac_status=$?
13683   grep -v '^ *+' conftest.er1 >conftest.err
13684   rm -f conftest.er1
13685   cat conftest.err >&5
13686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687   (exit $ac_status); } &&
13688          { ac_try='test -z "$ac_c_werror_flag"
13689                          || test ! -s conftest.err'
13690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691   (eval $ac_try) 2>&5
13692   ac_status=$?
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); }; } &&
13695          { ac_try='test -s conftest.$ac_objext'
13696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697   (eval $ac_try) 2>&5
13698   ac_status=$?
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); }; }; then
13701   ac_cv_type_off_t=yes
13702 else
13703   echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13705
13706 ac_cv_type_off_t=no
13707 fi
13708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13709 fi
13710 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13711 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13712 if test $ac_cv_type_off_t = yes; then
13713   :
13714 else
13715
13716 cat >>confdefs.h <<_ACEOF
13717 #define off_t long
13718 _ACEOF
13719
13720 fi
13721
13722 echo "$as_me:$LINENO: checking for ino_t" >&5
13723 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13724 if test "${ac_cv_type_ino_t+set}" = set; then
13725   echo $ECHO_N "(cached) $ECHO_C" >&6
13726 else
13727   cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733 $ac_includes_default
13734 int
13735 main ()
13736 {
13737 if ((ino_t *) 0)
13738   return 0;
13739 if (sizeof (ino_t))
13740   return 0;
13741   ;
13742   return 0;
13743 }
13744 _ACEOF
13745 rm -f conftest.$ac_objext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747   (eval $ac_compile) 2>conftest.er1
13748   ac_status=$?
13749   grep -v '^ *+' conftest.er1 >conftest.err
13750   rm -f conftest.er1
13751   cat conftest.err >&5
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); } &&
13754          { ac_try='test -z "$ac_c_werror_flag"
13755                          || test ! -s conftest.err'
13756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757   (eval $ac_try) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; } &&
13761          { ac_try='test -s conftest.$ac_objext'
13762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763   (eval $ac_try) 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; }; then
13767   ac_cv_type_ino_t=yes
13768 else
13769   echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13771
13772 ac_cv_type_ino_t=no
13773 fi
13774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13775 fi
13776 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13777 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13778 if test $ac_cv_type_ino_t = yes; then
13779   :
13780 else
13781
13782 cat >>confdefs.h <<_ACEOF
13783 #define ino_t unsigned long
13784 _ACEOF
13785
13786 fi
13787
13788 echo "$as_me:$LINENO: checking for dev_t" >&5
13789 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13790 if test "${ac_cv_type_dev_t+set}" = set; then
13791   echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793   cat >conftest.$ac_ext <<_ACEOF
13794 /* confdefs.h.  */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h.  */
13799 $ac_includes_default
13800 int
13801 main ()
13802 {
13803 if ((dev_t *) 0)
13804   return 0;
13805 if (sizeof (dev_t))
13806   return 0;
13807   ;
13808   return 0;
13809 }
13810 _ACEOF
13811 rm -f conftest.$ac_objext
13812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13813   (eval $ac_compile) 2>conftest.er1
13814   ac_status=$?
13815   grep -v '^ *+' conftest.er1 >conftest.err
13816   rm -f conftest.er1
13817   cat conftest.err >&5
13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); } &&
13820          { ac_try='test -z "$ac_c_werror_flag"
13821                          || test ! -s conftest.err'
13822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823   (eval $ac_try) 2>&5
13824   ac_status=$?
13825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826   (exit $ac_status); }; } &&
13827          { ac_try='test -s conftest.$ac_objext'
13828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829   (eval $ac_try) 2>&5
13830   ac_status=$?
13831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832   (exit $ac_status); }; }; then
13833   ac_cv_type_dev_t=yes
13834 else
13835   echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13837
13838 ac_cv_type_dev_t=no
13839 fi
13840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13841 fi
13842 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13843 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13844 if test $ac_cv_type_dev_t = yes; then
13845   :
13846 else
13847
13848 cat >>confdefs.h <<_ACEOF
13849 #define dev_t unsigned long
13850 _ACEOF
13851
13852 fi
13853
13854 echo "$as_me:$LINENO: checking for daddr_t" >&5
13855 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13856 if test "${ac_cv_type_daddr_t+set}" = set; then
13857   echo $ECHO_N "(cached) $ECHO_C" >&6
13858 else
13859   cat >conftest.$ac_ext <<_ACEOF
13860 /* confdefs.h.  */
13861 _ACEOF
13862 cat confdefs.h >>conftest.$ac_ext
13863 cat >>conftest.$ac_ext <<_ACEOF
13864 /* end confdefs.h.  */
13865 $ac_includes_default
13866 int
13867 main ()
13868 {
13869 if ((daddr_t *) 0)
13870   return 0;
13871 if (sizeof (daddr_t))
13872   return 0;
13873   ;
13874   return 0;
13875 }
13876 _ACEOF
13877 rm -f conftest.$ac_objext
13878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13879   (eval $ac_compile) 2>conftest.er1
13880   ac_status=$?
13881   grep -v '^ *+' conftest.er1 >conftest.err
13882   rm -f conftest.er1
13883   cat conftest.err >&5
13884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885   (exit $ac_status); } &&
13886          { ac_try='test -z "$ac_c_werror_flag"
13887                          || test ! -s conftest.err'
13888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889   (eval $ac_try) 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); }; } &&
13893          { ac_try='test -s conftest.$ac_objext'
13894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895   (eval $ac_try) 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); }; }; then
13899   ac_cv_type_daddr_t=yes
13900 else
13901   echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13903
13904 ac_cv_type_daddr_t=no
13905 fi
13906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13907 fi
13908 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13909 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13910 if test $ac_cv_type_daddr_t = yes; then
13911   :
13912 else
13913
13914 cat >>confdefs.h <<_ACEOF
13915 #define daddr_t long
13916 _ACEOF
13917
13918 fi
13919
13920 echo "$as_me:$LINENO: checking for major_t" >&5
13921 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13922 if test "${ac_cv_type_major_t+set}" = set; then
13923   echo $ECHO_N "(cached) $ECHO_C" >&6
13924 else
13925   cat >conftest.$ac_ext <<_ACEOF
13926 /* confdefs.h.  */
13927 _ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h.  */
13931 $ac_includes_default
13932 int
13933 main ()
13934 {
13935 if ((major_t *) 0)
13936   return 0;
13937 if (sizeof (major_t))
13938   return 0;
13939   ;
13940   return 0;
13941 }
13942 _ACEOF
13943 rm -f conftest.$ac_objext
13944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13945   (eval $ac_compile) 2>conftest.er1
13946   ac_status=$?
13947   grep -v '^ *+' conftest.er1 >conftest.err
13948   rm -f conftest.er1
13949   cat conftest.err >&5
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); } &&
13952          { ac_try='test -z "$ac_c_werror_flag"
13953                          || test ! -s conftest.err'
13954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955   (eval $ac_try) 2>&5
13956   ac_status=$?
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); }; } &&
13959          { ac_try='test -s conftest.$ac_objext'
13960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961   (eval $ac_try) 2>&5
13962   ac_status=$?
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); }; }; then
13965   ac_cv_type_major_t=yes
13966 else
13967   echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13969
13970 ac_cv_type_major_t=no
13971 fi
13972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13973 fi
13974 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13975 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13976 if test $ac_cv_type_major_t = yes; then
13977   :
13978 else
13979
13980 cat >>confdefs.h <<_ACEOF
13981 #define major_t int
13982 _ACEOF
13983
13984 fi
13985
13986 echo "$as_me:$LINENO: checking for minor_t" >&5
13987 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13988 if test "${ac_cv_type_minor_t+set}" = set; then
13989   echo $ECHO_N "(cached) $ECHO_C" >&6
13990 else
13991   cat >conftest.$ac_ext <<_ACEOF
13992 /* confdefs.h.  */
13993 _ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h.  */
13997 $ac_includes_default
13998 int
13999 main ()
14000 {
14001 if ((minor_t *) 0)
14002   return 0;
14003 if (sizeof (minor_t))
14004   return 0;
14005   ;
14006   return 0;
14007 }
14008 _ACEOF
14009 rm -f conftest.$ac_objext
14010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14011   (eval $ac_compile) 2>conftest.er1
14012   ac_status=$?
14013   grep -v '^ *+' conftest.er1 >conftest.err
14014   rm -f conftest.er1
14015   cat conftest.err >&5
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); } &&
14018          { ac_try='test -z "$ac_c_werror_flag"
14019                          || test ! -s conftest.err'
14020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021   (eval $ac_try) 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); }; } &&
14025          { ac_try='test -s conftest.$ac_objext'
14026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027   (eval $ac_try) 2>&5
14028   ac_status=$?
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); }; }; then
14031   ac_cv_type_minor_t=yes
14032 else
14033   echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14035
14036 ac_cv_type_minor_t=no
14037 fi
14038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14039 fi
14040 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14041 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14042 if test $ac_cv_type_minor_t = yes; then
14043   :
14044 else
14045
14046 cat >>confdefs.h <<_ACEOF
14047 #define minor_t int
14048 _ACEOF
14049
14050 fi
14051
14052 echo "$as_me:$LINENO: checking for ssize_t" >&5
14053 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14054 if test "${ac_cv_type_ssize_t+set}" = set; then
14055   echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057   cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063 $ac_includes_default
14064 int
14065 main ()
14066 {
14067 if ((ssize_t *) 0)
14068   return 0;
14069 if (sizeof (ssize_t))
14070   return 0;
14071   ;
14072   return 0;
14073 }
14074 _ACEOF
14075 rm -f conftest.$ac_objext
14076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14077   (eval $ac_compile) 2>conftest.er1
14078   ac_status=$?
14079   grep -v '^ *+' conftest.er1 >conftest.err
14080   rm -f conftest.er1
14081   cat conftest.err >&5
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); } &&
14084          { ac_try='test -z "$ac_c_werror_flag"
14085                          || test ! -s conftest.err'
14086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087   (eval $ac_try) 2>&5
14088   ac_status=$?
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); }; } &&
14091          { ac_try='test -s conftest.$ac_objext'
14092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14093   (eval $ac_try) 2>&5
14094   ac_status=$?
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); }; }; then
14097   ac_cv_type_ssize_t=yes
14098 else
14099   echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14101
14102 ac_cv_type_ssize_t=no
14103 fi
14104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14105 fi
14106 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14107 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14108 if test $ac_cv_type_ssize_t = yes; then
14109   :
14110 else
14111
14112 cat >>confdefs.h <<_ACEOF
14113 #define ssize_t int
14114 _ACEOF
14115
14116 fi
14117
14118 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14119 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14120 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14121   echo $ECHO_N "(cached) $ECHO_C" >&6
14122 else
14123   cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h.  */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h.  */
14129 $ac_includes_default
14130 int
14131 main ()
14132 {
14133 static struct stat ac_aggr;
14134 if (ac_aggr.st_blocks)
14135 return 0;
14136   ;
14137   return 0;
14138 }
14139 _ACEOF
14140 rm -f conftest.$ac_objext
14141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14142   (eval $ac_compile) 2>conftest.er1
14143   ac_status=$?
14144   grep -v '^ *+' conftest.er1 >conftest.err
14145   rm -f conftest.er1
14146   cat conftest.err >&5
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); } &&
14149          { ac_try='test -z "$ac_c_werror_flag"
14150                          || test ! -s conftest.err'
14151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152   (eval $ac_try) 2>&5
14153   ac_status=$?
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); }; } &&
14156          { ac_try='test -s conftest.$ac_objext'
14157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158   (eval $ac_try) 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); }; }; then
14162   ac_cv_member_struct_stat_st_blocks=yes
14163 else
14164   echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14166
14167 cat >conftest.$ac_ext <<_ACEOF
14168 /* confdefs.h.  */
14169 _ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h.  */
14173 $ac_includes_default
14174 int
14175 main ()
14176 {
14177 static struct stat ac_aggr;
14178 if (sizeof ac_aggr.st_blocks)
14179 return 0;
14180   ;
14181   return 0;
14182 }
14183 _ACEOF
14184 rm -f conftest.$ac_objext
14185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14186   (eval $ac_compile) 2>conftest.er1
14187   ac_status=$?
14188   grep -v '^ *+' conftest.er1 >conftest.err
14189   rm -f conftest.er1
14190   cat conftest.err >&5
14191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192   (exit $ac_status); } &&
14193          { ac_try='test -z "$ac_c_werror_flag"
14194                          || test ! -s conftest.err'
14195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196   (eval $ac_try) 2>&5
14197   ac_status=$?
14198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199   (exit $ac_status); }; } &&
14200          { ac_try='test -s conftest.$ac_objext'
14201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202   (eval $ac_try) 2>&5
14203   ac_status=$?
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); }; }; then
14206   ac_cv_member_struct_stat_st_blocks=yes
14207 else
14208   echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14210
14211 ac_cv_member_struct_stat_st_blocks=no
14212 fi
14213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14214 fi
14215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14216 fi
14217 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14218 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14219 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14220
14221 cat >>confdefs.h <<_ACEOF
14222 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14223 _ACEOF
14224
14225
14226 cat >>confdefs.h <<\_ACEOF
14227 #define HAVE_ST_BLOCKS 1
14228 _ACEOF
14229
14230 else
14231   case $LIBOBJS in
14232     "fileblocks.$ac_objext"   | \
14233   *" fileblocks.$ac_objext"   | \
14234     "fileblocks.$ac_objext "* | \
14235   *" fileblocks.$ac_objext "* ) ;;
14236   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14237 esac
14238
14239 fi
14240
14241
14242
14243 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14244 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14245 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14246   echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248   cat >conftest.$ac_ext <<_ACEOF
14249 /* confdefs.h.  */
14250 _ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h.  */
14254 $ac_includes_default
14255 int
14256 main ()
14257 {
14258 static struct stat ac_aggr;
14259 if (ac_aggr.st_rdev)
14260 return 0;
14261   ;
14262   return 0;
14263 }
14264 _ACEOF
14265 rm -f conftest.$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267   (eval $ac_compile) 2>conftest.er1
14268   ac_status=$?
14269   grep -v '^ *+' conftest.er1 >conftest.err
14270   rm -f conftest.er1
14271   cat conftest.err >&5
14272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273   (exit $ac_status); } &&
14274          { ac_try='test -z "$ac_c_werror_flag"
14275                          || test ! -s conftest.err'
14276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277   (eval $ac_try) 2>&5
14278   ac_status=$?
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); }; } &&
14281          { ac_try='test -s conftest.$ac_objext'
14282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283   (eval $ac_try) 2>&5
14284   ac_status=$?
14285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286   (exit $ac_status); }; }; then
14287   ac_cv_member_struct_stat_st_rdev=yes
14288 else
14289   echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.$ac_ext >&5
14291
14292 cat >conftest.$ac_ext <<_ACEOF
14293 /* confdefs.h.  */
14294 _ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h.  */
14298 $ac_includes_default
14299 int
14300 main ()
14301 {
14302 static struct stat ac_aggr;
14303 if (sizeof ac_aggr.st_rdev)
14304 return 0;
14305   ;
14306   return 0;
14307 }
14308 _ACEOF
14309 rm -f conftest.$ac_objext
14310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14311   (eval $ac_compile) 2>conftest.er1
14312   ac_status=$?
14313   grep -v '^ *+' conftest.er1 >conftest.err
14314   rm -f conftest.er1
14315   cat conftest.err >&5
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); } &&
14318          { ac_try='test -z "$ac_c_werror_flag"
14319                          || test ! -s conftest.err'
14320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321   (eval $ac_try) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; } &&
14325          { ac_try='test -s conftest.$ac_objext'
14326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327   (eval $ac_try) 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; }; then
14331   ac_cv_member_struct_stat_st_rdev=yes
14332 else
14333   echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14335
14336 ac_cv_member_struct_stat_st_rdev=no
14337 fi
14338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14339 fi
14340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14341 fi
14342 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14343 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14344 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14345
14346 cat >>confdefs.h <<_ACEOF
14347 #define HAVE_STRUCT_STAT_ST_RDEV 1
14348 _ACEOF
14349
14350
14351 cat >>confdefs.h <<\_ACEOF
14352 #define HAVE_ST_RDEV 1
14353 _ACEOF
14354
14355 fi
14356
14357
14358 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14359 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14360 if test "${ac_cv_struct_tm+set}" = set; then
14361   echo $ECHO_N "(cached) $ECHO_C" >&6
14362 else
14363   cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h.  */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h.  */
14369 #include <sys/types.h>
14370 #include <time.h>
14371
14372 int
14373 main ()
14374 {
14375 struct tm *tp; tp->tm_sec;
14376   ;
14377   return 0;
14378 }
14379 _ACEOF
14380 rm -f conftest.$ac_objext
14381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14382   (eval $ac_compile) 2>conftest.er1
14383   ac_status=$?
14384   grep -v '^ *+' conftest.er1 >conftest.err
14385   rm -f conftest.er1
14386   cat conftest.err >&5
14387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388   (exit $ac_status); } &&
14389          { ac_try='test -z "$ac_c_werror_flag"
14390                          || test ! -s conftest.err'
14391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392   (eval $ac_try) 2>&5
14393   ac_status=$?
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); }; } &&
14396          { ac_try='test -s conftest.$ac_objext'
14397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398   (eval $ac_try) 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }; }; then
14402   ac_cv_struct_tm=time.h
14403 else
14404   echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14406
14407 ac_cv_struct_tm=sys/time.h
14408 fi
14409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14410 fi
14411 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14412 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14413 if test $ac_cv_struct_tm = sys/time.h; then
14414
14415 cat >>confdefs.h <<\_ACEOF
14416 #define TM_IN_SYS_TIME 1
14417 _ACEOF
14418
14419 fi
14420
14421 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14422 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14423 if test "${ac_cv_c_const+set}" = set; then
14424   echo $ECHO_N "(cached) $ECHO_C" >&6
14425 else
14426   cat >conftest.$ac_ext <<_ACEOF
14427 /* confdefs.h.  */
14428 _ACEOF
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h.  */
14432
14433 int
14434 main ()
14435 {
14436 /* FIXME: Include the comments suggested by Paul. */
14437 #ifndef __cplusplus
14438   /* Ultrix mips cc rejects this.  */
14439   typedef int charset[2];
14440   const charset x;
14441   /* SunOS 4.1.1 cc rejects this.  */
14442   char const *const *ccp;
14443   char **p;
14444   /* NEC SVR4.0.2 mips cc rejects this.  */
14445   struct point {int x, y;};
14446   static struct point const zero = {0,0};
14447   /* AIX XL C 1.02.0.0 rejects this.
14448      It does not let you subtract one const X* pointer from another in
14449      an arm of an if-expression whose if-part is not a constant
14450      expression */
14451   const char *g = "string";
14452   ccp = &g + (g ? g-g : 0);
14453   /* HPUX 7.0 cc rejects these. */
14454   ++ccp;
14455   p = (char**) ccp;
14456   ccp = (char const *const *) p;
14457   { /* SCO 3.2v4 cc rejects this.  */
14458     char *t;
14459     char const *s = 0 ? (char *) 0 : (char const *) 0;
14460
14461     *t++ = 0;
14462   }
14463   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14464     int x[] = {25, 17};
14465     const int *foo = &x[0];
14466     ++foo;
14467   }
14468   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14469     typedef const int *iptr;
14470     iptr p = 0;
14471     ++p;
14472   }
14473   { /* AIX XL C 1.02.0.0 rejects this saying
14474        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14475     struct s { int j; const int *ap[3]; };
14476     struct s *b; b->j = 5;
14477   }
14478   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14479     const int foo = 10;
14480   }
14481 #endif
14482
14483   ;
14484   return 0;
14485 }
14486 _ACEOF
14487 rm -f conftest.$ac_objext
14488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14489   (eval $ac_compile) 2>conftest.er1
14490   ac_status=$?
14491   grep -v '^ *+' conftest.er1 >conftest.err
14492   rm -f conftest.er1
14493   cat conftest.err >&5
14494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); } &&
14496          { ac_try='test -z "$ac_c_werror_flag"
14497                          || test ! -s conftest.err'
14498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499   (eval $ac_try) 2>&5
14500   ac_status=$?
14501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502   (exit $ac_status); }; } &&
14503          { ac_try='test -s conftest.$ac_objext'
14504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505   (eval $ac_try) 2>&5
14506   ac_status=$?
14507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508   (exit $ac_status); }; }; then
14509   ac_cv_c_const=yes
14510 else
14511   echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14513
14514 ac_cv_c_const=no
14515 fi
14516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14517 fi
14518 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14519 echo "${ECHO_T}$ac_cv_c_const" >&6
14520 if test $ac_cv_c_const = no; then
14521
14522 cat >>confdefs.h <<\_ACEOF
14523 #define const
14524 _ACEOF
14525
14526 fi
14527
14528
14529
14530 echo "$as_me:$LINENO: checking for char" >&5
14531 echo $ECHO_N "checking for char... $ECHO_C" >&6
14532 if test "${ac_cv_type_char+set}" = set; then
14533   echo $ECHO_N "(cached) $ECHO_C" >&6
14534 else
14535   cat >conftest.$ac_ext <<_ACEOF
14536 /* confdefs.h.  */
14537 _ACEOF
14538 cat confdefs.h >>conftest.$ac_ext
14539 cat >>conftest.$ac_ext <<_ACEOF
14540 /* end confdefs.h.  */
14541 $ac_includes_default
14542 int
14543 main ()
14544 {
14545 if ((char *) 0)
14546   return 0;
14547 if (sizeof (char))
14548   return 0;
14549   ;
14550   return 0;
14551 }
14552 _ACEOF
14553 rm -f conftest.$ac_objext
14554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14555   (eval $ac_compile) 2>conftest.er1
14556   ac_status=$?
14557   grep -v '^ *+' conftest.er1 >conftest.err
14558   rm -f conftest.er1
14559   cat conftest.err >&5
14560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561   (exit $ac_status); } &&
14562          { ac_try='test -z "$ac_c_werror_flag"
14563                          || test ! -s conftest.err'
14564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565   (eval $ac_try) 2>&5
14566   ac_status=$?
14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); }; } &&
14569          { ac_try='test -s conftest.$ac_objext'
14570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14571   (eval $ac_try) 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); }; }; then
14575   ac_cv_type_char=yes
14576 else
14577   echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14579
14580 ac_cv_type_char=no
14581 fi
14582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14583 fi
14584 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14585 echo "${ECHO_T}$ac_cv_type_char" >&6
14586
14587 echo "$as_me:$LINENO: checking size of char" >&5
14588 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14589 if test "${ac_cv_sizeof_char+set}" = set; then
14590   echo $ECHO_N "(cached) $ECHO_C" >&6
14591 else
14592   if test "$ac_cv_type_char" = yes; then
14593   # The cast to unsigned long works around a bug in the HP C Compiler
14594   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14595   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14596   # This bug is HP SR number 8606223364.
14597   if test "$cross_compiling" = yes; then
14598   # Depending upon the size, compute the lo and hi bounds.
14599 cat >conftest.$ac_ext <<_ACEOF
14600 /* confdefs.h.  */
14601 _ACEOF
14602 cat confdefs.h >>conftest.$ac_ext
14603 cat >>conftest.$ac_ext <<_ACEOF
14604 /* end confdefs.h.  */
14605 $ac_includes_default
14606 int
14607 main ()
14608 {
14609 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14610 test_array [0] = 0
14611
14612   ;
14613   return 0;
14614 }
14615 _ACEOF
14616 rm -f conftest.$ac_objext
14617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14618   (eval $ac_compile) 2>conftest.er1
14619   ac_status=$?
14620   grep -v '^ *+' conftest.er1 >conftest.err
14621   rm -f conftest.er1
14622   cat conftest.err >&5
14623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624   (exit $ac_status); } &&
14625          { ac_try='test -z "$ac_c_werror_flag"
14626                          || test ! -s conftest.err'
14627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628   (eval $ac_try) 2>&5
14629   ac_status=$?
14630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631   (exit $ac_status); }; } &&
14632          { ac_try='test -s conftest.$ac_objext'
14633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634   (eval $ac_try) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); }; }; then
14638   ac_lo=0 ac_mid=0
14639   while :; do
14640     cat >conftest.$ac_ext <<_ACEOF
14641 /* confdefs.h.  */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h.  */
14646 $ac_includes_default
14647 int
14648 main ()
14649 {
14650 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14651 test_array [0] = 0
14652
14653   ;
14654   return 0;
14655 }
14656 _ACEOF
14657 rm -f conftest.$ac_objext
14658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14659   (eval $ac_compile) 2>conftest.er1
14660   ac_status=$?
14661   grep -v '^ *+' conftest.er1 >conftest.err
14662   rm -f conftest.er1
14663   cat conftest.err >&5
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); } &&
14666          { ac_try='test -z "$ac_c_werror_flag"
14667                          || test ! -s conftest.err'
14668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669   (eval $ac_try) 2>&5
14670   ac_status=$?
14671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672   (exit $ac_status); }; } &&
14673          { ac_try='test -s conftest.$ac_objext'
14674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675   (eval $ac_try) 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); }; }; then
14679   ac_hi=$ac_mid; break
14680 else
14681   echo "$as_me: failed program was:" >&5
14682 sed 's/^/| /' conftest.$ac_ext >&5
14683
14684 ac_lo=`expr $ac_mid + 1`
14685                     if test $ac_lo -le $ac_mid; then
14686                       ac_lo= ac_hi=
14687                       break
14688                     fi
14689                     ac_mid=`expr 2 '*' $ac_mid + 1`
14690 fi
14691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14692   done
14693 else
14694   echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14696
14697 cat >conftest.$ac_ext <<_ACEOF
14698 /* confdefs.h.  */
14699 _ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h.  */
14703 $ac_includes_default
14704 int
14705 main ()
14706 {
14707 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14708 test_array [0] = 0
14709
14710   ;
14711   return 0;
14712 }
14713 _ACEOF
14714 rm -f conftest.$ac_objext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14716   (eval $ac_compile) 2>conftest.er1
14717   ac_status=$?
14718   grep -v '^ *+' conftest.er1 >conftest.err
14719   rm -f conftest.er1
14720   cat conftest.err >&5
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); } &&
14723          { ac_try='test -z "$ac_c_werror_flag"
14724                          || test ! -s conftest.err'
14725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726   (eval $ac_try) 2>&5
14727   ac_status=$?
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); }; } &&
14730          { ac_try='test -s conftest.$ac_objext'
14731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732   (eval $ac_try) 2>&5
14733   ac_status=$?
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); }; }; then
14736   ac_hi=-1 ac_mid=-1
14737   while :; do
14738     cat >conftest.$ac_ext <<_ACEOF
14739 /* confdefs.h.  */
14740 _ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h.  */
14744 $ac_includes_default
14745 int
14746 main ()
14747 {
14748 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14749 test_array [0] = 0
14750
14751   ;
14752   return 0;
14753 }
14754 _ACEOF
14755 rm -f conftest.$ac_objext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14757   (eval $ac_compile) 2>conftest.er1
14758   ac_status=$?
14759   grep -v '^ *+' conftest.er1 >conftest.err
14760   rm -f conftest.er1
14761   cat conftest.err >&5
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); } &&
14764          { ac_try='test -z "$ac_c_werror_flag"
14765                          || test ! -s conftest.err'
14766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767   (eval $ac_try) 2>&5
14768   ac_status=$?
14769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770   (exit $ac_status); }; } &&
14771          { ac_try='test -s conftest.$ac_objext'
14772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773   (eval $ac_try) 2>&5
14774   ac_status=$?
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); }; }; then
14777   ac_lo=$ac_mid; break
14778 else
14779   echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14781
14782 ac_hi=`expr '(' $ac_mid ')' - 1`
14783                        if test $ac_mid -le $ac_hi; then
14784                          ac_lo= ac_hi=
14785                          break
14786                        fi
14787                        ac_mid=`expr 2 '*' $ac_mid`
14788 fi
14789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14790   done
14791 else
14792   echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14794
14795 ac_lo= ac_hi=
14796 fi
14797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14798 fi
14799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14800 # Binary search between lo and hi bounds.
14801 while test "x$ac_lo" != "x$ac_hi"; do
14802   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14803   cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h.  */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h.  */
14809 $ac_includes_default
14810 int
14811 main ()
14812 {
14813 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14814 test_array [0] = 0
14815
14816   ;
14817   return 0;
14818 }
14819 _ACEOF
14820 rm -f conftest.$ac_objext
14821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14822   (eval $ac_compile) 2>conftest.er1
14823   ac_status=$?
14824   grep -v '^ *+' conftest.er1 >conftest.err
14825   rm -f conftest.er1
14826   cat conftest.err >&5
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); } &&
14829          { ac_try='test -z "$ac_c_werror_flag"
14830                          || test ! -s conftest.err'
14831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832   (eval $ac_try) 2>&5
14833   ac_status=$?
14834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835   (exit $ac_status); }; } &&
14836          { ac_try='test -s conftest.$ac_objext'
14837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14838   (eval $ac_try) 2>&5
14839   ac_status=$?
14840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841   (exit $ac_status); }; }; then
14842   ac_hi=$ac_mid
14843 else
14844   echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14846
14847 ac_lo=`expr '(' $ac_mid ')' + 1`
14848 fi
14849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14850 done
14851 case $ac_lo in
14852 ?*) ac_cv_sizeof_char=$ac_lo;;
14853 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14854 See \`config.log' for more details." >&5
14855 echo "$as_me: error: cannot compute sizeof (char), 77
14856 See \`config.log' for more details." >&2;}
14857    { (exit 1); exit 1; }; } ;;
14858 esac
14859 else
14860   if test "$cross_compiling" = yes; then
14861   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14862 See \`config.log' for more details." >&5
14863 echo "$as_me: error: cannot run test program while cross compiling
14864 See \`config.log' for more details." >&2;}
14865    { (exit 1); exit 1; }; }
14866 else
14867   cat >conftest.$ac_ext <<_ACEOF
14868 /* confdefs.h.  */
14869 _ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h.  */
14873 $ac_includes_default
14874 long longval () { return (long) (sizeof (char)); }
14875 unsigned long ulongval () { return (long) (sizeof (char)); }
14876 #include <stdio.h>
14877 #include <stdlib.h>
14878 int
14879 main ()
14880 {
14881
14882   FILE *f = fopen ("conftest.val", "w");
14883   if (! f)
14884     exit (1);
14885   if (((long) (sizeof (char))) < 0)
14886     {
14887       long i = longval ();
14888       if (i != ((long) (sizeof (char))))
14889         exit (1);
14890       fprintf (f, "%ld\n", i);
14891     }
14892   else
14893     {
14894       unsigned long i = ulongval ();
14895       if (i != ((long) (sizeof (char))))
14896         exit (1);
14897       fprintf (f, "%lu\n", i);
14898     }
14899   exit (ferror (f) || fclose (f) != 0);
14900
14901   ;
14902   return 0;
14903 }
14904 _ACEOF
14905 rm -f conftest$ac_exeext
14906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14907   (eval $ac_link) 2>&5
14908   ac_status=$?
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912   (eval $ac_try) 2>&5
14913   ac_status=$?
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); }; }; then
14916   ac_cv_sizeof_char=`cat conftest.val`
14917 else
14918   echo "$as_me: program exited with status $ac_status" >&5
14919 echo "$as_me: failed program was:" >&5
14920 sed 's/^/| /' conftest.$ac_ext >&5
14921
14922 ( exit $ac_status )
14923 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14924 See \`config.log' for more details." >&5
14925 echo "$as_me: error: cannot compute sizeof (char), 77
14926 See \`config.log' for more details." >&2;}
14927    { (exit 1); exit 1; }; }
14928 fi
14929 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14930 fi
14931 fi
14932 rm -f conftest.val
14933 else
14934   ac_cv_sizeof_char=0
14935 fi
14936 fi
14937 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14938 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14939 cat >>confdefs.h <<_ACEOF
14940 #define SIZEOF_CHAR $ac_cv_sizeof_char
14941 _ACEOF
14942
14943
14944 echo "$as_me:$LINENO: checking for short int" >&5
14945 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14946 if test "${ac_cv_type_short_int+set}" = set; then
14947   echo $ECHO_N "(cached) $ECHO_C" >&6
14948 else
14949   cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h.  */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h.  */
14955 $ac_includes_default
14956 int
14957 main ()
14958 {
14959 if ((short int *) 0)
14960   return 0;
14961 if (sizeof (short int))
14962   return 0;
14963   ;
14964   return 0;
14965 }
14966 _ACEOF
14967 rm -f conftest.$ac_objext
14968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14969   (eval $ac_compile) 2>conftest.er1
14970   ac_status=$?
14971   grep -v '^ *+' conftest.er1 >conftest.err
14972   rm -f conftest.er1
14973   cat conftest.err >&5
14974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975   (exit $ac_status); } &&
14976          { ac_try='test -z "$ac_c_werror_flag"
14977                          || test ! -s conftest.err'
14978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979   (eval $ac_try) 2>&5
14980   ac_status=$?
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); }; } &&
14983          { ac_try='test -s conftest.$ac_objext'
14984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14985   (eval $ac_try) 2>&5
14986   ac_status=$?
14987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988   (exit $ac_status); }; }; then
14989   ac_cv_type_short_int=yes
14990 else
14991   echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14993
14994 ac_cv_type_short_int=no
14995 fi
14996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14997 fi
14998 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14999 echo "${ECHO_T}$ac_cv_type_short_int" >&6
15000
15001 echo "$as_me:$LINENO: checking size of short int" >&5
15002 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
15003 if test "${ac_cv_sizeof_short_int+set}" = set; then
15004   echo $ECHO_N "(cached) $ECHO_C" >&6
15005 else
15006   if test "$ac_cv_type_short_int" = yes; then
15007   # The cast to unsigned long works around a bug in the HP C Compiler
15008   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15009   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15010   # This bug is HP SR number 8606223364.
15011   if test "$cross_compiling" = yes; then
15012   # Depending upon the size, compute the lo and hi bounds.
15013 cat >conftest.$ac_ext <<_ACEOF
15014 /* confdefs.h.  */
15015 _ACEOF
15016 cat confdefs.h >>conftest.$ac_ext
15017 cat >>conftest.$ac_ext <<_ACEOF
15018 /* end confdefs.h.  */
15019 $ac_includes_default
15020 int
15021 main ()
15022 {
15023 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15024 test_array [0] = 0
15025
15026   ;
15027   return 0;
15028 }
15029 _ACEOF
15030 rm -f conftest.$ac_objext
15031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15032   (eval $ac_compile) 2>conftest.er1
15033   ac_status=$?
15034   grep -v '^ *+' conftest.er1 >conftest.err
15035   rm -f conftest.er1
15036   cat conftest.err >&5
15037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   (exit $ac_status); } &&
15039          { ac_try='test -z "$ac_c_werror_flag"
15040                          || test ! -s conftest.err'
15041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042   (eval $ac_try) 2>&5
15043   ac_status=$?
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); }; } &&
15046          { ac_try='test -s conftest.$ac_objext'
15047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15048   (eval $ac_try) 2>&5
15049   ac_status=$?
15050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051   (exit $ac_status); }; }; then
15052   ac_lo=0 ac_mid=0
15053   while :; do
15054     cat >conftest.$ac_ext <<_ACEOF
15055 /* confdefs.h.  */
15056 _ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h.  */
15060 $ac_includes_default
15061 int
15062 main ()
15063 {
15064 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15065 test_array [0] = 0
15066
15067   ;
15068   return 0;
15069 }
15070 _ACEOF
15071 rm -f conftest.$ac_objext
15072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15073   (eval $ac_compile) 2>conftest.er1
15074   ac_status=$?
15075   grep -v '^ *+' conftest.er1 >conftest.err
15076   rm -f conftest.er1
15077   cat conftest.err >&5
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); } &&
15080          { ac_try='test -z "$ac_c_werror_flag"
15081                          || test ! -s conftest.err'
15082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083   (eval $ac_try) 2>&5
15084   ac_status=$?
15085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086   (exit $ac_status); }; } &&
15087          { ac_try='test -s conftest.$ac_objext'
15088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15089   (eval $ac_try) 2>&5
15090   ac_status=$?
15091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092   (exit $ac_status); }; }; then
15093   ac_hi=$ac_mid; break
15094 else
15095   echo "$as_me: failed program was:" >&5
15096 sed 's/^/| /' conftest.$ac_ext >&5
15097
15098 ac_lo=`expr $ac_mid + 1`
15099                     if test $ac_lo -le $ac_mid; then
15100                       ac_lo= ac_hi=
15101                       break
15102                     fi
15103                     ac_mid=`expr 2 '*' $ac_mid + 1`
15104 fi
15105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15106   done
15107 else
15108   echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15110
15111 cat >conftest.$ac_ext <<_ACEOF
15112 /* confdefs.h.  */
15113 _ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h.  */
15117 $ac_includes_default
15118 int
15119 main ()
15120 {
15121 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15122 test_array [0] = 0
15123
15124   ;
15125   return 0;
15126 }
15127 _ACEOF
15128 rm -f conftest.$ac_objext
15129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15130   (eval $ac_compile) 2>conftest.er1
15131   ac_status=$?
15132   grep -v '^ *+' conftest.er1 >conftest.err
15133   rm -f conftest.er1
15134   cat conftest.err >&5
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); } &&
15137          { ac_try='test -z "$ac_c_werror_flag"
15138                          || test ! -s conftest.err'
15139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140   (eval $ac_try) 2>&5
15141   ac_status=$?
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); }; } &&
15144          { ac_try='test -s conftest.$ac_objext'
15145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146   (eval $ac_try) 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); }; }; then
15150   ac_hi=-1 ac_mid=-1
15151   while :; do
15152     cat >conftest.$ac_ext <<_ACEOF
15153 /* confdefs.h.  */
15154 _ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h.  */
15158 $ac_includes_default
15159 int
15160 main ()
15161 {
15162 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15163 test_array [0] = 0
15164
15165   ;
15166   return 0;
15167 }
15168 _ACEOF
15169 rm -f conftest.$ac_objext
15170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15171   (eval $ac_compile) 2>conftest.er1
15172   ac_status=$?
15173   grep -v '^ *+' conftest.er1 >conftest.err
15174   rm -f conftest.er1
15175   cat conftest.err >&5
15176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177   (exit $ac_status); } &&
15178          { ac_try='test -z "$ac_c_werror_flag"
15179                          || test ! -s conftest.err'
15180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181   (eval $ac_try) 2>&5
15182   ac_status=$?
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); }; } &&
15185          { ac_try='test -s conftest.$ac_objext'
15186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187   (eval $ac_try) 2>&5
15188   ac_status=$?
15189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190   (exit $ac_status); }; }; then
15191   ac_lo=$ac_mid; break
15192 else
15193   echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15195
15196 ac_hi=`expr '(' $ac_mid ')' - 1`
15197                        if test $ac_mid -le $ac_hi; then
15198                          ac_lo= ac_hi=
15199                          break
15200                        fi
15201                        ac_mid=`expr 2 '*' $ac_mid`
15202 fi
15203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15204   done
15205 else
15206   echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15208
15209 ac_lo= ac_hi=
15210 fi
15211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15212 fi
15213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15214 # Binary search between lo and hi bounds.
15215 while test "x$ac_lo" != "x$ac_hi"; do
15216   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15217   cat >conftest.$ac_ext <<_ACEOF
15218 /* confdefs.h.  */
15219 _ACEOF
15220 cat confdefs.h >>conftest.$ac_ext
15221 cat >>conftest.$ac_ext <<_ACEOF
15222 /* end confdefs.h.  */
15223 $ac_includes_default
15224 int
15225 main ()
15226 {
15227 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15228 test_array [0] = 0
15229
15230   ;
15231   return 0;
15232 }
15233 _ACEOF
15234 rm -f conftest.$ac_objext
15235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15236   (eval $ac_compile) 2>conftest.er1
15237   ac_status=$?
15238   grep -v '^ *+' conftest.er1 >conftest.err
15239   rm -f conftest.er1
15240   cat conftest.err >&5
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); } &&
15243          { ac_try='test -z "$ac_c_werror_flag"
15244                          || test ! -s conftest.err'
15245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246   (eval $ac_try) 2>&5
15247   ac_status=$?
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   (exit $ac_status); }; } &&
15250          { ac_try='test -s conftest.$ac_objext'
15251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252   (eval $ac_try) 2>&5
15253   ac_status=$?
15254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255   (exit $ac_status); }; }; then
15256   ac_hi=$ac_mid
15257 else
15258   echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15260
15261 ac_lo=`expr '(' $ac_mid ')' + 1`
15262 fi
15263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15264 done
15265 case $ac_lo in
15266 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15267 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15268 See \`config.log' for more details." >&5
15269 echo "$as_me: error: cannot compute sizeof (short int), 77
15270 See \`config.log' for more details." >&2;}
15271    { (exit 1); exit 1; }; } ;;
15272 esac
15273 else
15274   if test "$cross_compiling" = yes; then
15275   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15276 See \`config.log' for more details." >&5
15277 echo "$as_me: error: cannot run test program while cross compiling
15278 See \`config.log' for more details." >&2;}
15279    { (exit 1); exit 1; }; }
15280 else
15281   cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h.  */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h.  */
15287 $ac_includes_default
15288 long longval () { return (long) (sizeof (short int)); }
15289 unsigned long ulongval () { return (long) (sizeof (short int)); }
15290 #include <stdio.h>
15291 #include <stdlib.h>
15292 int
15293 main ()
15294 {
15295
15296   FILE *f = fopen ("conftest.val", "w");
15297   if (! f)
15298     exit (1);
15299   if (((long) (sizeof (short int))) < 0)
15300     {
15301       long i = longval ();
15302       if (i != ((long) (sizeof (short int))))
15303         exit (1);
15304       fprintf (f, "%ld\n", i);
15305     }
15306   else
15307     {
15308       unsigned long i = ulongval ();
15309       if (i != ((long) (sizeof (short int))))
15310         exit (1);
15311       fprintf (f, "%lu\n", i);
15312     }
15313   exit (ferror (f) || fclose (f) != 0);
15314
15315   ;
15316   return 0;
15317 }
15318 _ACEOF
15319 rm -f conftest$ac_exeext
15320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15321   (eval $ac_link) 2>&5
15322   ac_status=$?
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326   (eval $ac_try) 2>&5
15327   ac_status=$?
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); }; }; then
15330   ac_cv_sizeof_short_int=`cat conftest.val`
15331 else
15332   echo "$as_me: program exited with status $ac_status" >&5
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15335
15336 ( exit $ac_status )
15337 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15338 See \`config.log' for more details." >&5
15339 echo "$as_me: error: cannot compute sizeof (short int), 77
15340 See \`config.log' for more details." >&2;}
15341    { (exit 1); exit 1; }; }
15342 fi
15343 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15344 fi
15345 fi
15346 rm -f conftest.val
15347 else
15348   ac_cv_sizeof_short_int=0
15349 fi
15350 fi
15351 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15352 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15353 cat >>confdefs.h <<_ACEOF
15354 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15355 _ACEOF
15356
15357
15358 echo "$as_me:$LINENO: checking for int" >&5
15359 echo $ECHO_N "checking for int... $ECHO_C" >&6
15360 if test "${ac_cv_type_int+set}" = set; then
15361   echo $ECHO_N "(cached) $ECHO_C" >&6
15362 else
15363   cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h.  */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h.  */
15369 $ac_includes_default
15370 int
15371 main ()
15372 {
15373 if ((int *) 0)
15374   return 0;
15375 if (sizeof (int))
15376   return 0;
15377   ;
15378   return 0;
15379 }
15380 _ACEOF
15381 rm -f conftest.$ac_objext
15382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15383   (eval $ac_compile) 2>conftest.er1
15384   ac_status=$?
15385   grep -v '^ *+' conftest.er1 >conftest.err
15386   rm -f conftest.er1
15387   cat conftest.err >&5
15388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389   (exit $ac_status); } &&
15390          { ac_try='test -z "$ac_c_werror_flag"
15391                          || test ! -s conftest.err'
15392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393   (eval $ac_try) 2>&5
15394   ac_status=$?
15395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396   (exit $ac_status); }; } &&
15397          { ac_try='test -s conftest.$ac_objext'
15398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399   (eval $ac_try) 2>&5
15400   ac_status=$?
15401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402   (exit $ac_status); }; }; then
15403   ac_cv_type_int=yes
15404 else
15405   echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15407
15408 ac_cv_type_int=no
15409 fi
15410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15411 fi
15412 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15413 echo "${ECHO_T}$ac_cv_type_int" >&6
15414
15415 echo "$as_me:$LINENO: checking size of int" >&5
15416 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15417 if test "${ac_cv_sizeof_int+set}" = set; then
15418   echo $ECHO_N "(cached) $ECHO_C" >&6
15419 else
15420   if test "$ac_cv_type_int" = yes; then
15421   # The cast to unsigned long works around a bug in the HP C Compiler
15422   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15423   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15424   # This bug is HP SR number 8606223364.
15425   if test "$cross_compiling" = yes; then
15426   # Depending upon the size, compute the lo and hi bounds.
15427 cat >conftest.$ac_ext <<_ACEOF
15428 /* confdefs.h.  */
15429 _ACEOF
15430 cat confdefs.h >>conftest.$ac_ext
15431 cat >>conftest.$ac_ext <<_ACEOF
15432 /* end confdefs.h.  */
15433 $ac_includes_default
15434 int
15435 main ()
15436 {
15437 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15438 test_array [0] = 0
15439
15440   ;
15441   return 0;
15442 }
15443 _ACEOF
15444 rm -f conftest.$ac_objext
15445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15446   (eval $ac_compile) 2>conftest.er1
15447   ac_status=$?
15448   grep -v '^ *+' conftest.er1 >conftest.err
15449   rm -f conftest.er1
15450   cat conftest.err >&5
15451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452   (exit $ac_status); } &&
15453          { ac_try='test -z "$ac_c_werror_flag"
15454                          || test ! -s conftest.err'
15455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456   (eval $ac_try) 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); }; } &&
15460          { ac_try='test -s conftest.$ac_objext'
15461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462   (eval $ac_try) 2>&5
15463   ac_status=$?
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); }; }; then
15466   ac_lo=0 ac_mid=0
15467   while :; do
15468     cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h.  */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h.  */
15474 $ac_includes_default
15475 int
15476 main ()
15477 {
15478 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15479 test_array [0] = 0
15480
15481   ;
15482   return 0;
15483 }
15484 _ACEOF
15485 rm -f conftest.$ac_objext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15487   (eval $ac_compile) 2>conftest.er1
15488   ac_status=$?
15489   grep -v '^ *+' conftest.er1 >conftest.err
15490   rm -f conftest.er1
15491   cat conftest.err >&5
15492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493   (exit $ac_status); } &&
15494          { ac_try='test -z "$ac_c_werror_flag"
15495                          || test ! -s conftest.err'
15496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497   (eval $ac_try) 2>&5
15498   ac_status=$?
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); }; } &&
15501          { ac_try='test -s conftest.$ac_objext'
15502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503   (eval $ac_try) 2>&5
15504   ac_status=$?
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); }; }; then
15507   ac_hi=$ac_mid; break
15508 else
15509   echo "$as_me: failed program was:" >&5
15510 sed 's/^/| /' conftest.$ac_ext >&5
15511
15512 ac_lo=`expr $ac_mid + 1`
15513                     if test $ac_lo -le $ac_mid; then
15514                       ac_lo= ac_hi=
15515                       break
15516                     fi
15517                     ac_mid=`expr 2 '*' $ac_mid + 1`
15518 fi
15519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15520   done
15521 else
15522   echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15524
15525 cat >conftest.$ac_ext <<_ACEOF
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531 $ac_includes_default
15532 int
15533 main ()
15534 {
15535 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15536 test_array [0] = 0
15537
15538   ;
15539   return 0;
15540 }
15541 _ACEOF
15542 rm -f conftest.$ac_objext
15543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544   (eval $ac_compile) 2>conftest.er1
15545   ac_status=$?
15546   grep -v '^ *+' conftest.er1 >conftest.err
15547   rm -f conftest.er1
15548   cat conftest.err >&5
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); } &&
15551          { ac_try='test -z "$ac_c_werror_flag"
15552                          || test ! -s conftest.err'
15553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554   (eval $ac_try) 2>&5
15555   ac_status=$?
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); }; } &&
15558          { ac_try='test -s conftest.$ac_objext'
15559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15560   (eval $ac_try) 2>&5
15561   ac_status=$?
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); }; }; then
15564   ac_hi=-1 ac_mid=-1
15565   while :; do
15566     cat >conftest.$ac_ext <<_ACEOF
15567 /* confdefs.h.  */
15568 _ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h.  */
15572 $ac_includes_default
15573 int
15574 main ()
15575 {
15576 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15577 test_array [0] = 0
15578
15579   ;
15580   return 0;
15581 }
15582 _ACEOF
15583 rm -f conftest.$ac_objext
15584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15585   (eval $ac_compile) 2>conftest.er1
15586   ac_status=$?
15587   grep -v '^ *+' conftest.er1 >conftest.err
15588   rm -f conftest.er1
15589   cat conftest.err >&5
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); } &&
15592          { ac_try='test -z "$ac_c_werror_flag"
15593                          || test ! -s conftest.err'
15594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595   (eval $ac_try) 2>&5
15596   ac_status=$?
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); }; } &&
15599          { ac_try='test -s conftest.$ac_objext'
15600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601   (eval $ac_try) 2>&5
15602   ac_status=$?
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); }; }; then
15605   ac_lo=$ac_mid; break
15606 else
15607   echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15609
15610 ac_hi=`expr '(' $ac_mid ')' - 1`
15611                        if test $ac_mid -le $ac_hi; then
15612                          ac_lo= ac_hi=
15613                          break
15614                        fi
15615                        ac_mid=`expr 2 '*' $ac_mid`
15616 fi
15617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15618   done
15619 else
15620   echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15622
15623 ac_lo= ac_hi=
15624 fi
15625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15626 fi
15627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15628 # Binary search between lo and hi bounds.
15629 while test "x$ac_lo" != "x$ac_hi"; do
15630   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15631   cat >conftest.$ac_ext <<_ACEOF
15632 /* confdefs.h.  */
15633 _ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h.  */
15637 $ac_includes_default
15638 int
15639 main ()
15640 {
15641 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15642 test_array [0] = 0
15643
15644   ;
15645   return 0;
15646 }
15647 _ACEOF
15648 rm -f conftest.$ac_objext
15649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15650   (eval $ac_compile) 2>conftest.er1
15651   ac_status=$?
15652   grep -v '^ *+' conftest.er1 >conftest.err
15653   rm -f conftest.er1
15654   cat conftest.err >&5
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); } &&
15657          { ac_try='test -z "$ac_c_werror_flag"
15658                          || test ! -s conftest.err'
15659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660   (eval $ac_try) 2>&5
15661   ac_status=$?
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); }; } &&
15664          { ac_try='test -s conftest.$ac_objext'
15665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666   (eval $ac_try) 2>&5
15667   ac_status=$?
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); }; }; then
15670   ac_hi=$ac_mid
15671 else
15672   echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15674
15675 ac_lo=`expr '(' $ac_mid ')' + 1`
15676 fi
15677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15678 done
15679 case $ac_lo in
15680 ?*) ac_cv_sizeof_int=$ac_lo;;
15681 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15682 See \`config.log' for more details." >&5
15683 echo "$as_me: error: cannot compute sizeof (int), 77
15684 See \`config.log' for more details." >&2;}
15685    { (exit 1); exit 1; }; } ;;
15686 esac
15687 else
15688   if test "$cross_compiling" = yes; then
15689   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15690 See \`config.log' for more details." >&5
15691 echo "$as_me: error: cannot run test program while cross compiling
15692 See \`config.log' for more details." >&2;}
15693    { (exit 1); exit 1; }; }
15694 else
15695   cat >conftest.$ac_ext <<_ACEOF
15696 /* confdefs.h.  */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h.  */
15701 $ac_includes_default
15702 long longval () { return (long) (sizeof (int)); }
15703 unsigned long ulongval () { return (long) (sizeof (int)); }
15704 #include <stdio.h>
15705 #include <stdlib.h>
15706 int
15707 main ()
15708 {
15709
15710   FILE *f = fopen ("conftest.val", "w");
15711   if (! f)
15712     exit (1);
15713   if (((long) (sizeof (int))) < 0)
15714     {
15715       long i = longval ();
15716       if (i != ((long) (sizeof (int))))
15717         exit (1);
15718       fprintf (f, "%ld\n", i);
15719     }
15720   else
15721     {
15722       unsigned long i = ulongval ();
15723       if (i != ((long) (sizeof (int))))
15724         exit (1);
15725       fprintf (f, "%lu\n", i);
15726     }
15727   exit (ferror (f) || fclose (f) != 0);
15728
15729   ;
15730   return 0;
15731 }
15732 _ACEOF
15733 rm -f conftest$ac_exeext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15735   (eval $ac_link) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15740   (eval $ac_try) 2>&5
15741   ac_status=$?
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); }; }; then
15744   ac_cv_sizeof_int=`cat conftest.val`
15745 else
15746   echo "$as_me: program exited with status $ac_status" >&5
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15749
15750 ( exit $ac_status )
15751 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15752 See \`config.log' for more details." >&5
15753 echo "$as_me: error: cannot compute sizeof (int), 77
15754 See \`config.log' for more details." >&2;}
15755    { (exit 1); exit 1; }; }
15756 fi
15757 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15758 fi
15759 fi
15760 rm -f conftest.val
15761 else
15762   ac_cv_sizeof_int=0
15763 fi
15764 fi
15765 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15766 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15767 cat >>confdefs.h <<_ACEOF
15768 #define SIZEOF_INT $ac_cv_sizeof_int
15769 _ACEOF
15770
15771
15772 echo "$as_me:$LINENO: checking for long int" >&5
15773 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15774 if test "${ac_cv_type_long_int+set}" = set; then
15775   echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777   cat >conftest.$ac_ext <<_ACEOF
15778 /* confdefs.h.  */
15779 _ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
15782 /* end confdefs.h.  */
15783 $ac_includes_default
15784 int
15785 main ()
15786 {
15787 if ((long int *) 0)
15788   return 0;
15789 if (sizeof (long int))
15790   return 0;
15791   ;
15792   return 0;
15793 }
15794 _ACEOF
15795 rm -f conftest.$ac_objext
15796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15797   (eval $ac_compile) 2>conftest.er1
15798   ac_status=$?
15799   grep -v '^ *+' conftest.er1 >conftest.err
15800   rm -f conftest.er1
15801   cat conftest.err >&5
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); } &&
15804          { ac_try='test -z "$ac_c_werror_flag"
15805                          || test ! -s conftest.err'
15806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807   (eval $ac_try) 2>&5
15808   ac_status=$?
15809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810   (exit $ac_status); }; } &&
15811          { ac_try='test -s conftest.$ac_objext'
15812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813   (eval $ac_try) 2>&5
15814   ac_status=$?
15815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816   (exit $ac_status); }; }; then
15817   ac_cv_type_long_int=yes
15818 else
15819   echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15821
15822 ac_cv_type_long_int=no
15823 fi
15824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15825 fi
15826 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15827 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15828
15829 echo "$as_me:$LINENO: checking size of long int" >&5
15830 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15831 if test "${ac_cv_sizeof_long_int+set}" = set; then
15832   echo $ECHO_N "(cached) $ECHO_C" >&6
15833 else
15834   if test "$ac_cv_type_long_int" = yes; then
15835   # The cast to unsigned long works around a bug in the HP C Compiler
15836   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15837   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15838   # This bug is HP SR number 8606223364.
15839   if test "$cross_compiling" = yes; then
15840   # Depending upon the size, compute the lo and hi bounds.
15841 cat >conftest.$ac_ext <<_ACEOF
15842 /* confdefs.h.  */
15843 _ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h.  */
15847 $ac_includes_default
15848 int
15849 main ()
15850 {
15851 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15852 test_array [0] = 0
15853
15854   ;
15855   return 0;
15856 }
15857 _ACEOF
15858 rm -f conftest.$ac_objext
15859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15860   (eval $ac_compile) 2>conftest.er1
15861   ac_status=$?
15862   grep -v '^ *+' conftest.er1 >conftest.err
15863   rm -f conftest.er1
15864   cat conftest.err >&5
15865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866   (exit $ac_status); } &&
15867          { ac_try='test -z "$ac_c_werror_flag"
15868                          || test ! -s conftest.err'
15869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870   (eval $ac_try) 2>&5
15871   ac_status=$?
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); }; } &&
15874          { ac_try='test -s conftest.$ac_objext'
15875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876   (eval $ac_try) 2>&5
15877   ac_status=$?
15878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879   (exit $ac_status); }; }; then
15880   ac_lo=0 ac_mid=0
15881   while :; do
15882     cat >conftest.$ac_ext <<_ACEOF
15883 /* confdefs.h.  */
15884 _ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h.  */
15888 $ac_includes_default
15889 int
15890 main ()
15891 {
15892 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15893 test_array [0] = 0
15894
15895   ;
15896   return 0;
15897 }
15898 _ACEOF
15899 rm -f conftest.$ac_objext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15901   (eval $ac_compile) 2>conftest.er1
15902   ac_status=$?
15903   grep -v '^ *+' conftest.er1 >conftest.err
15904   rm -f conftest.er1
15905   cat conftest.err >&5
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); } &&
15908          { ac_try='test -z "$ac_c_werror_flag"
15909                          || test ! -s conftest.err'
15910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911   (eval $ac_try) 2>&5
15912   ac_status=$?
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); }; } &&
15915          { ac_try='test -s conftest.$ac_objext'
15916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917   (eval $ac_try) 2>&5
15918   ac_status=$?
15919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); }; }; then
15921   ac_hi=$ac_mid; break
15922 else
15923   echo "$as_me: failed program was:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15925
15926 ac_lo=`expr $ac_mid + 1`
15927                     if test $ac_lo -le $ac_mid; then
15928                       ac_lo= ac_hi=
15929                       break
15930                     fi
15931                     ac_mid=`expr 2 '*' $ac_mid + 1`
15932 fi
15933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15934   done
15935 else
15936   echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15938
15939 cat >conftest.$ac_ext <<_ACEOF
15940 /* confdefs.h.  */
15941 _ACEOF
15942 cat confdefs.h >>conftest.$ac_ext
15943 cat >>conftest.$ac_ext <<_ACEOF
15944 /* end confdefs.h.  */
15945 $ac_includes_default
15946 int
15947 main ()
15948 {
15949 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15950 test_array [0] = 0
15951
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>conftest.er1
15959   ac_status=$?
15960   grep -v '^ *+' conftest.er1 >conftest.err
15961   rm -f conftest.er1
15962   cat conftest.err >&5
15963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964   (exit $ac_status); } &&
15965          { ac_try='test -z "$ac_c_werror_flag"
15966                          || test ! -s conftest.err'
15967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968   (eval $ac_try) 2>&5
15969   ac_status=$?
15970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971   (exit $ac_status); }; } &&
15972          { ac_try='test -s conftest.$ac_objext'
15973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15974   (eval $ac_try) 2>&5
15975   ac_status=$?
15976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977   (exit $ac_status); }; }; then
15978   ac_hi=-1 ac_mid=-1
15979   while :; do
15980     cat >conftest.$ac_ext <<_ACEOF
15981 /* confdefs.h.  */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h.  */
15986 $ac_includes_default
15987 int
15988 main ()
15989 {
15990 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15991 test_array [0] = 0
15992
15993   ;
15994   return 0;
15995 }
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15999   (eval $ac_compile) 2>conftest.er1
16000   ac_status=$?
16001   grep -v '^ *+' conftest.er1 >conftest.err
16002   rm -f conftest.er1
16003   cat conftest.err >&5
16004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005   (exit $ac_status); } &&
16006          { ac_try='test -z "$ac_c_werror_flag"
16007                          || test ! -s conftest.err'
16008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009   (eval $ac_try) 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); }; } &&
16013          { ac_try='test -s conftest.$ac_objext'
16014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015   (eval $ac_try) 2>&5
16016   ac_status=$?
16017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018   (exit $ac_status); }; }; then
16019   ac_lo=$ac_mid; break
16020 else
16021   echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16023
16024 ac_hi=`expr '(' $ac_mid ')' - 1`
16025                        if test $ac_mid -le $ac_hi; then
16026                          ac_lo= ac_hi=
16027                          break
16028                        fi
16029                        ac_mid=`expr 2 '*' $ac_mid`
16030 fi
16031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16032   done
16033 else
16034   echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16036
16037 ac_lo= ac_hi=
16038 fi
16039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16040 fi
16041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16042 # Binary search between lo and hi bounds.
16043 while test "x$ac_lo" != "x$ac_hi"; do
16044   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16045   cat >conftest.$ac_ext <<_ACEOF
16046 /* confdefs.h.  */
16047 _ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h.  */
16051 $ac_includes_default
16052 int
16053 main ()
16054 {
16055 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16056 test_array [0] = 0
16057
16058   ;
16059   return 0;
16060 }
16061 _ACEOF
16062 rm -f conftest.$ac_objext
16063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16064   (eval $ac_compile) 2>conftest.er1
16065   ac_status=$?
16066   grep -v '^ *+' conftest.er1 >conftest.err
16067   rm -f conftest.er1
16068   cat conftest.err >&5
16069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); } &&
16071          { ac_try='test -z "$ac_c_werror_flag"
16072                          || test ! -s conftest.err'
16073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074   (eval $ac_try) 2>&5
16075   ac_status=$?
16076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077   (exit $ac_status); }; } &&
16078          { ac_try='test -s conftest.$ac_objext'
16079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080   (eval $ac_try) 2>&5
16081   ac_status=$?
16082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083   (exit $ac_status); }; }; then
16084   ac_hi=$ac_mid
16085 else
16086   echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16088
16089 ac_lo=`expr '(' $ac_mid ')' + 1`
16090 fi
16091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16092 done
16093 case $ac_lo in
16094 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16095 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16096 See \`config.log' for more details." >&5
16097 echo "$as_me: error: cannot compute sizeof (long int), 77
16098 See \`config.log' for more details." >&2;}
16099    { (exit 1); exit 1; }; } ;;
16100 esac
16101 else
16102   if test "$cross_compiling" = yes; then
16103   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16104 See \`config.log' for more details." >&5
16105 echo "$as_me: error: cannot run test program while cross compiling
16106 See \`config.log' for more details." >&2;}
16107    { (exit 1); exit 1; }; }
16108 else
16109   cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h.  */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h.  */
16115 $ac_includes_default
16116 long longval () { return (long) (sizeof (long int)); }
16117 unsigned long ulongval () { return (long) (sizeof (long int)); }
16118 #include <stdio.h>
16119 #include <stdlib.h>
16120 int
16121 main ()
16122 {
16123
16124   FILE *f = fopen ("conftest.val", "w");
16125   if (! f)
16126     exit (1);
16127   if (((long) (sizeof (long int))) < 0)
16128     {
16129       long i = longval ();
16130       if (i != ((long) (sizeof (long int))))
16131         exit (1);
16132       fprintf (f, "%ld\n", i);
16133     }
16134   else
16135     {
16136       unsigned long i = ulongval ();
16137       if (i != ((long) (sizeof (long int))))
16138         exit (1);
16139       fprintf (f, "%lu\n", i);
16140     }
16141   exit (ferror (f) || fclose (f) != 0);
16142
16143   ;
16144   return 0;
16145 }
16146 _ACEOF
16147 rm -f conftest$ac_exeext
16148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16149   (eval $ac_link) 2>&5
16150   ac_status=$?
16151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154   (eval $ac_try) 2>&5
16155   ac_status=$?
16156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157   (exit $ac_status); }; }; then
16158   ac_cv_sizeof_long_int=`cat conftest.val`
16159 else
16160   echo "$as_me: program exited with status $ac_status" >&5
16161 echo "$as_me: failed program was:" >&5
16162 sed 's/^/| /' conftest.$ac_ext >&5
16163
16164 ( exit $ac_status )
16165 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16166 See \`config.log' for more details." >&5
16167 echo "$as_me: error: cannot compute sizeof (long int), 77
16168 See \`config.log' for more details." >&2;}
16169    { (exit 1); exit 1; }; }
16170 fi
16171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16172 fi
16173 fi
16174 rm -f conftest.val
16175 else
16176   ac_cv_sizeof_long_int=0
16177 fi
16178 fi
16179 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16180 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16181 cat >>confdefs.h <<_ACEOF
16182 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16183 _ACEOF
16184
16185
16186 echo "$as_me:$LINENO: checking for long long int" >&5
16187 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16188 if test "${ac_cv_type_long_long_int+set}" = set; then
16189   echo $ECHO_N "(cached) $ECHO_C" >&6
16190 else
16191   cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h.  */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h.  */
16197 $ac_includes_default
16198 int
16199 main ()
16200 {
16201 if ((long long int *) 0)
16202   return 0;
16203 if (sizeof (long long int))
16204   return 0;
16205   ;
16206   return 0;
16207 }
16208 _ACEOF
16209 rm -f conftest.$ac_objext
16210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16211   (eval $ac_compile) 2>conftest.er1
16212   ac_status=$?
16213   grep -v '^ *+' conftest.er1 >conftest.err
16214   rm -f conftest.er1
16215   cat conftest.err >&5
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); } &&
16218          { ac_try='test -z "$ac_c_werror_flag"
16219                          || test ! -s conftest.err'
16220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221   (eval $ac_try) 2>&5
16222   ac_status=$?
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); }; } &&
16225          { ac_try='test -s conftest.$ac_objext'
16226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227   (eval $ac_try) 2>&5
16228   ac_status=$?
16229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); }; }; then
16231   ac_cv_type_long_long_int=yes
16232 else
16233   echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16235
16236 ac_cv_type_long_long_int=no
16237 fi
16238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16239 fi
16240 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16241 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16242
16243 echo "$as_me:$LINENO: checking size of long long int" >&5
16244 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16245 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16246   echo $ECHO_N "(cached) $ECHO_C" >&6
16247 else
16248   if test "$ac_cv_type_long_long_int" = yes; then
16249   # The cast to unsigned long works around a bug in the HP C Compiler
16250   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16251   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16252   # This bug is HP SR number 8606223364.
16253   if test "$cross_compiling" = yes; then
16254   # Depending upon the size, compute the lo and hi bounds.
16255 cat >conftest.$ac_ext <<_ACEOF
16256 /* confdefs.h.  */
16257 _ACEOF
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h.  */
16261 $ac_includes_default
16262 int
16263 main ()
16264 {
16265 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16266 test_array [0] = 0
16267
16268   ;
16269   return 0;
16270 }
16271 _ACEOF
16272 rm -f conftest.$ac_objext
16273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16274   (eval $ac_compile) 2>conftest.er1
16275   ac_status=$?
16276   grep -v '^ *+' conftest.er1 >conftest.err
16277   rm -f conftest.er1
16278   cat conftest.err >&5
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); } &&
16281          { ac_try='test -z "$ac_c_werror_flag"
16282                          || test ! -s conftest.err'
16283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284   (eval $ac_try) 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; } &&
16288          { ac_try='test -s conftest.$ac_objext'
16289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290   (eval $ac_try) 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; }; then
16294   ac_lo=0 ac_mid=0
16295   while :; do
16296     cat >conftest.$ac_ext <<_ACEOF
16297 /* confdefs.h.  */
16298 _ACEOF
16299 cat confdefs.h >>conftest.$ac_ext
16300 cat >>conftest.$ac_ext <<_ACEOF
16301 /* end confdefs.h.  */
16302 $ac_includes_default
16303 int
16304 main ()
16305 {
16306 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16307 test_array [0] = 0
16308
16309   ;
16310   return 0;
16311 }
16312 _ACEOF
16313 rm -f conftest.$ac_objext
16314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16315   (eval $ac_compile) 2>conftest.er1
16316   ac_status=$?
16317   grep -v '^ *+' conftest.er1 >conftest.err
16318   rm -f conftest.er1
16319   cat conftest.err >&5
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); } &&
16322          { ac_try='test -z "$ac_c_werror_flag"
16323                          || test ! -s conftest.err'
16324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325   (eval $ac_try) 2>&5
16326   ac_status=$?
16327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); }; } &&
16329          { ac_try='test -s conftest.$ac_objext'
16330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331   (eval $ac_try) 2>&5
16332   ac_status=$?
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); }; }; then
16335   ac_hi=$ac_mid; break
16336 else
16337   echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 ac_lo=`expr $ac_mid + 1`
16341                     if test $ac_lo -le $ac_mid; then
16342                       ac_lo= ac_hi=
16343                       break
16344                     fi
16345                     ac_mid=`expr 2 '*' $ac_mid + 1`
16346 fi
16347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16348   done
16349 else
16350   echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16352
16353 cat >conftest.$ac_ext <<_ACEOF
16354 /* confdefs.h.  */
16355 _ACEOF
16356 cat confdefs.h >>conftest.$ac_ext
16357 cat >>conftest.$ac_ext <<_ACEOF
16358 /* end confdefs.h.  */
16359 $ac_includes_default
16360 int
16361 main ()
16362 {
16363 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16364 test_array [0] = 0
16365
16366   ;
16367   return 0;
16368 }
16369 _ACEOF
16370 rm -f conftest.$ac_objext
16371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16372   (eval $ac_compile) 2>conftest.er1
16373   ac_status=$?
16374   grep -v '^ *+' conftest.er1 >conftest.err
16375   rm -f conftest.er1
16376   cat conftest.err >&5
16377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378   (exit $ac_status); } &&
16379          { ac_try='test -z "$ac_c_werror_flag"
16380                          || test ! -s conftest.err'
16381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382   (eval $ac_try) 2>&5
16383   ac_status=$?
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); }; } &&
16386          { ac_try='test -s conftest.$ac_objext'
16387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16388   (eval $ac_try) 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); }; }; then
16392   ac_hi=-1 ac_mid=-1
16393   while :; do
16394     cat >conftest.$ac_ext <<_ACEOF
16395 /* confdefs.h.  */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h.  */
16400 $ac_includes_default
16401 int
16402 main ()
16403 {
16404 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16405 test_array [0] = 0
16406
16407   ;
16408   return 0;
16409 }
16410 _ACEOF
16411 rm -f conftest.$ac_objext
16412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16413   (eval $ac_compile) 2>conftest.er1
16414   ac_status=$?
16415   grep -v '^ *+' conftest.er1 >conftest.err
16416   rm -f conftest.er1
16417   cat conftest.err >&5
16418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419   (exit $ac_status); } &&
16420          { ac_try='test -z "$ac_c_werror_flag"
16421                          || test ! -s conftest.err'
16422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423   (eval $ac_try) 2>&5
16424   ac_status=$?
16425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   (exit $ac_status); }; } &&
16427          { ac_try='test -s conftest.$ac_objext'
16428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429   (eval $ac_try) 2>&5
16430   ac_status=$?
16431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); }; }; then
16433   ac_lo=$ac_mid; break
16434 else
16435   echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16437
16438 ac_hi=`expr '(' $ac_mid ')' - 1`
16439                        if test $ac_mid -le $ac_hi; then
16440                          ac_lo= ac_hi=
16441                          break
16442                        fi
16443                        ac_mid=`expr 2 '*' $ac_mid`
16444 fi
16445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16446   done
16447 else
16448   echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451 ac_lo= ac_hi=
16452 fi
16453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16454 fi
16455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16456 # Binary search between lo and hi bounds.
16457 while test "x$ac_lo" != "x$ac_hi"; do
16458   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16459   cat >conftest.$ac_ext <<_ACEOF
16460 /* confdefs.h.  */
16461 _ACEOF
16462 cat confdefs.h >>conftest.$ac_ext
16463 cat >>conftest.$ac_ext <<_ACEOF
16464 /* end confdefs.h.  */
16465 $ac_includes_default
16466 int
16467 main ()
16468 {
16469 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16470 test_array [0] = 0
16471
16472   ;
16473   return 0;
16474 }
16475 _ACEOF
16476 rm -f conftest.$ac_objext
16477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16478   (eval $ac_compile) 2>conftest.er1
16479   ac_status=$?
16480   grep -v '^ *+' conftest.er1 >conftest.err
16481   rm -f conftest.er1
16482   cat conftest.err >&5
16483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); } &&
16485          { ac_try='test -z "$ac_c_werror_flag"
16486                          || test ! -s conftest.err'
16487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488   (eval $ac_try) 2>&5
16489   ac_status=$?
16490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491   (exit $ac_status); }; } &&
16492          { ac_try='test -s conftest.$ac_objext'
16493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494   (eval $ac_try) 2>&5
16495   ac_status=$?
16496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); }; }; then
16498   ac_hi=$ac_mid
16499 else
16500   echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16502
16503 ac_lo=`expr '(' $ac_mid ')' + 1`
16504 fi
16505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16506 done
16507 case $ac_lo in
16508 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16509 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16510 See \`config.log' for more details." >&5
16511 echo "$as_me: error: cannot compute sizeof (long long int), 77
16512 See \`config.log' for more details." >&2;}
16513    { (exit 1); exit 1; }; } ;;
16514 esac
16515 else
16516   if test "$cross_compiling" = yes; then
16517   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16518 See \`config.log' for more details." >&5
16519 echo "$as_me: error: cannot run test program while cross compiling
16520 See \`config.log' for more details." >&2;}
16521    { (exit 1); exit 1; }; }
16522 else
16523   cat >conftest.$ac_ext <<_ACEOF
16524 /* confdefs.h.  */
16525 _ACEOF
16526 cat confdefs.h >>conftest.$ac_ext
16527 cat >>conftest.$ac_ext <<_ACEOF
16528 /* end confdefs.h.  */
16529 $ac_includes_default
16530 long longval () { return (long) (sizeof (long long int)); }
16531 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16532 #include <stdio.h>
16533 #include <stdlib.h>
16534 int
16535 main ()
16536 {
16537
16538   FILE *f = fopen ("conftest.val", "w");
16539   if (! f)
16540     exit (1);
16541   if (((long) (sizeof (long long int))) < 0)
16542     {
16543       long i = longval ();
16544       if (i != ((long) (sizeof (long long int))))
16545         exit (1);
16546       fprintf (f, "%ld\n", i);
16547     }
16548   else
16549     {
16550       unsigned long i = ulongval ();
16551       if (i != ((long) (sizeof (long long int))))
16552         exit (1);
16553       fprintf (f, "%lu\n", i);
16554     }
16555   exit (ferror (f) || fclose (f) != 0);
16556
16557   ;
16558   return 0;
16559 }
16560 _ACEOF
16561 rm -f conftest$ac_exeext
16562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16563   (eval $ac_link) 2>&5
16564   ac_status=$?
16565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568   (eval $ac_try) 2>&5
16569   ac_status=$?
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); }; }; then
16572   ac_cv_sizeof_long_long_int=`cat conftest.val`
16573 else
16574   echo "$as_me: program exited with status $ac_status" >&5
16575 echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16577
16578 ( exit $ac_status )
16579 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16580 See \`config.log' for more details." >&5
16581 echo "$as_me: error: cannot compute sizeof (long long int), 77
16582 See \`config.log' for more details." >&2;}
16583    { (exit 1); exit 1; }; }
16584 fi
16585 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16586 fi
16587 fi
16588 rm -f conftest.val
16589 else
16590   ac_cv_sizeof_long_long_int=0
16591 fi
16592 fi
16593 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16594 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16595 cat >>confdefs.h <<_ACEOF
16596 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16597 _ACEOF
16598
16599
16600 echo "$as_me:$LINENO: checking for int *" >&5
16601 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16602 if test "${ac_cv_type_int_p+set}" = set; then
16603   echo $ECHO_N "(cached) $ECHO_C" >&6
16604 else
16605   cat >conftest.$ac_ext <<_ACEOF
16606 /* confdefs.h.  */
16607 _ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h.  */
16611 $ac_includes_default
16612 int
16613 main ()
16614 {
16615 if ((int * *) 0)
16616   return 0;
16617 if (sizeof (int *))
16618   return 0;
16619   ;
16620   return 0;
16621 }
16622 _ACEOF
16623 rm -f conftest.$ac_objext
16624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16625   (eval $ac_compile) 2>conftest.er1
16626   ac_status=$?
16627   grep -v '^ *+' conftest.er1 >conftest.err
16628   rm -f conftest.er1
16629   cat conftest.err >&5
16630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631   (exit $ac_status); } &&
16632          { ac_try='test -z "$ac_c_werror_flag"
16633                          || test ! -s conftest.err'
16634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635   (eval $ac_try) 2>&5
16636   ac_status=$?
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); }; } &&
16639          { ac_try='test -s conftest.$ac_objext'
16640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16641   (eval $ac_try) 2>&5
16642   ac_status=$?
16643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644   (exit $ac_status); }; }; then
16645   ac_cv_type_int_p=yes
16646 else
16647   echo "$as_me: failed program was:" >&5
16648 sed 's/^/| /' conftest.$ac_ext >&5
16649
16650 ac_cv_type_int_p=no
16651 fi
16652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16653 fi
16654 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16655 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16656
16657 echo "$as_me:$LINENO: checking size of int *" >&5
16658 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16659 if test "${ac_cv_sizeof_int_p+set}" = set; then
16660   echo $ECHO_N "(cached) $ECHO_C" >&6
16661 else
16662   if test "$ac_cv_type_int_p" = yes; then
16663   # The cast to unsigned long works around a bug in the HP C Compiler
16664   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16665   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16666   # This bug is HP SR number 8606223364.
16667   if test "$cross_compiling" = yes; then
16668   # Depending upon the size, compute the lo and hi bounds.
16669 cat >conftest.$ac_ext <<_ACEOF
16670 /* confdefs.h.  */
16671 _ACEOF
16672 cat confdefs.h >>conftest.$ac_ext
16673 cat >>conftest.$ac_ext <<_ACEOF
16674 /* end confdefs.h.  */
16675 $ac_includes_default
16676 int
16677 main ()
16678 {
16679 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16680 test_array [0] = 0
16681
16682   ;
16683   return 0;
16684 }
16685 _ACEOF
16686 rm -f conftest.$ac_objext
16687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16688   (eval $ac_compile) 2>conftest.er1
16689   ac_status=$?
16690   grep -v '^ *+' conftest.er1 >conftest.err
16691   rm -f conftest.er1
16692   cat conftest.err >&5
16693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694   (exit $ac_status); } &&
16695          { ac_try='test -z "$ac_c_werror_flag"
16696                          || test ! -s conftest.err'
16697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698   (eval $ac_try) 2>&5
16699   ac_status=$?
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); }; } &&
16702          { ac_try='test -s conftest.$ac_objext'
16703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704   (eval $ac_try) 2>&5
16705   ac_status=$?
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); }; }; then
16708   ac_lo=0 ac_mid=0
16709   while :; do
16710     cat >conftest.$ac_ext <<_ACEOF
16711 /* confdefs.h.  */
16712 _ACEOF
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h.  */
16716 $ac_includes_default
16717 int
16718 main ()
16719 {
16720 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16721 test_array [0] = 0
16722
16723   ;
16724   return 0;
16725 }
16726 _ACEOF
16727 rm -f conftest.$ac_objext
16728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16729   (eval $ac_compile) 2>conftest.er1
16730   ac_status=$?
16731   grep -v '^ *+' conftest.er1 >conftest.err
16732   rm -f conftest.er1
16733   cat conftest.err >&5
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); } &&
16736          { ac_try='test -z "$ac_c_werror_flag"
16737                          || test ! -s conftest.err'
16738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739   (eval $ac_try) 2>&5
16740   ac_status=$?
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); }; } &&
16743          { ac_try='test -s conftest.$ac_objext'
16744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745   (eval $ac_try) 2>&5
16746   ac_status=$?
16747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); }; }; then
16749   ac_hi=$ac_mid; break
16750 else
16751   echo "$as_me: failed program was:" >&5
16752 sed 's/^/| /' conftest.$ac_ext >&5
16753
16754 ac_lo=`expr $ac_mid + 1`
16755                     if test $ac_lo -le $ac_mid; then
16756                       ac_lo= ac_hi=
16757                       break
16758                     fi
16759                     ac_mid=`expr 2 '*' $ac_mid + 1`
16760 fi
16761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16762   done
16763 else
16764   echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16766
16767 cat >conftest.$ac_ext <<_ACEOF
16768 /* confdefs.h.  */
16769 _ACEOF
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h.  */
16773 $ac_includes_default
16774 int
16775 main ()
16776 {
16777 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16778 test_array [0] = 0
16779
16780   ;
16781   return 0;
16782 }
16783 _ACEOF
16784 rm -f conftest.$ac_objext
16785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16786   (eval $ac_compile) 2>conftest.er1
16787   ac_status=$?
16788   grep -v '^ *+' conftest.er1 >conftest.err
16789   rm -f conftest.er1
16790   cat conftest.err >&5
16791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792   (exit $ac_status); } &&
16793          { ac_try='test -z "$ac_c_werror_flag"
16794                          || test ! -s conftest.err'
16795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796   (eval $ac_try) 2>&5
16797   ac_status=$?
16798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799   (exit $ac_status); }; } &&
16800          { ac_try='test -s conftest.$ac_objext'
16801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16802   (eval $ac_try) 2>&5
16803   ac_status=$?
16804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805   (exit $ac_status); }; }; then
16806   ac_hi=-1 ac_mid=-1
16807   while :; do
16808     cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h.  */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h.  */
16814 $ac_includes_default
16815 int
16816 main ()
16817 {
16818 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16819 test_array [0] = 0
16820
16821   ;
16822   return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext
16826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16827   (eval $ac_compile) 2>conftest.er1
16828   ac_status=$?
16829   grep -v '^ *+' conftest.er1 >conftest.err
16830   rm -f conftest.er1
16831   cat conftest.err >&5
16832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); } &&
16834          { ac_try='test -z "$ac_c_werror_flag"
16835                          || test ! -s conftest.err'
16836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837   (eval $ac_try) 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }; } &&
16841          { ac_try='test -s conftest.$ac_objext'
16842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16843   (eval $ac_try) 2>&5
16844   ac_status=$?
16845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846   (exit $ac_status); }; }; then
16847   ac_lo=$ac_mid; break
16848 else
16849   echo "$as_me: failed program was:" >&5
16850 sed 's/^/| /' conftest.$ac_ext >&5
16851
16852 ac_hi=`expr '(' $ac_mid ')' - 1`
16853                        if test $ac_mid -le $ac_hi; then
16854                          ac_lo= ac_hi=
16855                          break
16856                        fi
16857                        ac_mid=`expr 2 '*' $ac_mid`
16858 fi
16859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16860   done
16861 else
16862   echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16864
16865 ac_lo= ac_hi=
16866 fi
16867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16868 fi
16869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16870 # Binary search between lo and hi bounds.
16871 while test "x$ac_lo" != "x$ac_hi"; do
16872   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16873   cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h.  */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h.  */
16879 $ac_includes_default
16880 int
16881 main ()
16882 {
16883 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16884 test_array [0] = 0
16885
16886   ;
16887   return 0;
16888 }
16889 _ACEOF
16890 rm -f conftest.$ac_objext
16891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16892   (eval $ac_compile) 2>conftest.er1
16893   ac_status=$?
16894   grep -v '^ *+' conftest.er1 >conftest.err
16895   rm -f conftest.er1
16896   cat conftest.err >&5
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); } &&
16899          { ac_try='test -z "$ac_c_werror_flag"
16900                          || test ! -s conftest.err'
16901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16902   (eval $ac_try) 2>&5
16903   ac_status=$?
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); }; } &&
16906          { ac_try='test -s conftest.$ac_objext'
16907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908   (eval $ac_try) 2>&5
16909   ac_status=$?
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); }; }; then
16912   ac_hi=$ac_mid
16913 else
16914   echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16916
16917 ac_lo=`expr '(' $ac_mid ')' + 1`
16918 fi
16919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16920 done
16921 case $ac_lo in
16922 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16923 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16924 See \`config.log' for more details." >&5
16925 echo "$as_me: error: cannot compute sizeof (int *), 77
16926 See \`config.log' for more details." >&2;}
16927    { (exit 1); exit 1; }; } ;;
16928 esac
16929 else
16930   if test "$cross_compiling" = yes; then
16931   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16932 See \`config.log' for more details." >&5
16933 echo "$as_me: error: cannot run test program while cross compiling
16934 See \`config.log' for more details." >&2;}
16935    { (exit 1); exit 1; }; }
16936 else
16937   cat >conftest.$ac_ext <<_ACEOF
16938 /* confdefs.h.  */
16939 _ACEOF
16940 cat confdefs.h >>conftest.$ac_ext
16941 cat >>conftest.$ac_ext <<_ACEOF
16942 /* end confdefs.h.  */
16943 $ac_includes_default
16944 long longval () { return (long) (sizeof (int *)); }
16945 unsigned long ulongval () { return (long) (sizeof (int *)); }
16946 #include <stdio.h>
16947 #include <stdlib.h>
16948 int
16949 main ()
16950 {
16951
16952   FILE *f = fopen ("conftest.val", "w");
16953   if (! f)
16954     exit (1);
16955   if (((long) (sizeof (int *))) < 0)
16956     {
16957       long i = longval ();
16958       if (i != ((long) (sizeof (int *))))
16959         exit (1);
16960       fprintf (f, "%ld\n", i);
16961     }
16962   else
16963     {
16964       unsigned long i = ulongval ();
16965       if (i != ((long) (sizeof (int *))))
16966         exit (1);
16967       fprintf (f, "%lu\n", i);
16968     }
16969   exit (ferror (f) || fclose (f) != 0);
16970
16971   ;
16972   return 0;
16973 }
16974 _ACEOF
16975 rm -f conftest$ac_exeext
16976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16977   (eval $ac_link) 2>&5
16978   ac_status=$?
16979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982   (eval $ac_try) 2>&5
16983   ac_status=$?
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); }; }; then
16986   ac_cv_sizeof_int_p=`cat conftest.val`
16987 else
16988   echo "$as_me: program exited with status $ac_status" >&5
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992 ( exit $ac_status )
16993 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16994 See \`config.log' for more details." >&5
16995 echo "$as_me: error: cannot compute sizeof (int *), 77
16996 See \`config.log' for more details." >&2;}
16997    { (exit 1); exit 1; }; }
16998 fi
16999 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17000 fi
17001 fi
17002 rm -f conftest.val
17003 else
17004   ac_cv_sizeof_int_p=0
17005 fi
17006 fi
17007 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
17008 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
17009 cat >>confdefs.h <<_ACEOF
17010 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
17011 _ACEOF
17012
17013
17014
17015 # Check for sys/types.h types
17016 echo "$as_me:$LINENO: checking for u_int type" >&5
17017 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17018 if test "${ac_cv_have_u_int+set}" = set; then
17019   echo $ECHO_N "(cached) $ECHO_C" >&6
17020 else
17021
17022     cat >conftest.$ac_ext <<_ACEOF
17023 /* confdefs.h.  */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h.  */
17028  #include <sys/types.h>
17029 int
17030 main ()
17031 {
17032  u_int a; a = 1;
17033   ;
17034   return 0;
17035 }
17036 _ACEOF
17037 rm -f conftest.$ac_objext
17038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17039   (eval $ac_compile) 2>conftest.er1
17040   ac_status=$?
17041   grep -v '^ *+' conftest.er1 >conftest.err
17042   rm -f conftest.er1
17043   cat conftest.err >&5
17044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045   (exit $ac_status); } &&
17046          { ac_try='test -z "$ac_c_werror_flag"
17047                          || test ! -s conftest.err'
17048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049   (eval $ac_try) 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }; } &&
17053          { ac_try='test -s conftest.$ac_objext'
17054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055   (eval $ac_try) 2>&5
17056   ac_status=$?
17057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058   (exit $ac_status); }; }; then
17059    ac_cv_have_u_int="yes"
17060 else
17061   echo "$as_me: failed program was:" >&5
17062 sed 's/^/| /' conftest.$ac_ext >&5
17063
17064  ac_cv_have_u_int="no"
17065
17066 fi
17067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17068
17069 fi
17070 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17071 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17072 if test "x$ac_cv_have_u_int" = "xyes" ; then
17073    cat >>confdefs.h <<\_ACEOF
17074 #define HAVE_U_INT 1
17075 _ACEOF
17076
17077    have_u_int=1
17078 fi
17079
17080 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17081 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17082 if test "${ac_cv_have_intmax_t+set}" = set; then
17083   echo $ECHO_N "(cached) $ECHO_C" >&6
17084 else
17085
17086    cat >conftest.$ac_ext <<_ACEOF
17087 /* confdefs.h.  */
17088 _ACEOF
17089 cat confdefs.h >>conftest.$ac_ext
17090 cat >>conftest.$ac_ext <<_ACEOF
17091 /* end confdefs.h.  */
17092  #include <sys/types.h>
17093 int
17094 main ()
17095 {
17096  intmax_t a; a = 1;
17097   ;
17098   return 0;
17099 }
17100 _ACEOF
17101 rm -f conftest.$ac_objext
17102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17103   (eval $ac_compile) 2>conftest.er1
17104   ac_status=$?
17105   grep -v '^ *+' conftest.er1 >conftest.err
17106   rm -f conftest.er1
17107   cat conftest.err >&5
17108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109   (exit $ac_status); } &&
17110          { ac_try='test -z "$ac_c_werror_flag"
17111                          || test ! -s conftest.err'
17112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113   (eval $ac_try) 2>&5
17114   ac_status=$?
17115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116   (exit $ac_status); }; } &&
17117          { ac_try='test -s conftest.$ac_objext'
17118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119   (eval $ac_try) 2>&5
17120   ac_status=$?
17121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122   (exit $ac_status); }; }; then
17123    ac_cv_have_intmax_t="yes"
17124 else
17125   echo "$as_me: failed program was:" >&5
17126 sed 's/^/| /' conftest.$ac_ext >&5
17127
17128
17129          cat >conftest.$ac_ext <<_ACEOF
17130 /* confdefs.h.  */
17131 _ACEOF
17132 cat confdefs.h >>conftest.$ac_ext
17133 cat >>conftest.$ac_ext <<_ACEOF
17134 /* end confdefs.h.  */
17135  #include <stdint.h>
17136 int
17137 main ()
17138 {
17139  intmax_t a; a = 1;
17140   ;
17141   return 0;
17142 }
17143 _ACEOF
17144 rm -f conftest.$ac_objext
17145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17146   (eval $ac_compile) 2>conftest.er1
17147   ac_status=$?
17148   grep -v '^ *+' conftest.er1 >conftest.err
17149   rm -f conftest.er1
17150   cat conftest.err >&5
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); } &&
17153          { ac_try='test -z "$ac_c_werror_flag"
17154                          || test ! -s conftest.err'
17155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156   (eval $ac_try) 2>&5
17157   ac_status=$?
17158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159   (exit $ac_status); }; } &&
17160          { ac_try='test -s conftest.$ac_objext'
17161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162   (eval $ac_try) 2>&5
17163   ac_status=$?
17164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165   (exit $ac_status); }; }; then
17166    ac_cv_have_intmax_t="yes"
17167 else
17168   echo "$as_me: failed program was:" >&5
17169 sed 's/^/| /' conftest.$ac_ext >&5
17170
17171  ac_cv_have_intmax_t="no"
17172
17173 fi
17174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17175
17176
17177 fi
17178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17179
17180
17181 fi
17182 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17183 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17184 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17185    cat >>confdefs.h <<\_ACEOF
17186 #define HAVE_INTMAX_T 1
17187 _ACEOF
17188
17189    have_intmax_t=1
17190 fi
17191
17192
17193 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17194 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17195 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17196   echo $ECHO_N "(cached) $ECHO_C" >&6
17197 else
17198
17199    cat >conftest.$ac_ext <<_ACEOF
17200 /* confdefs.h.  */
17201 _ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h.  */
17205  #include <sys/types.h>
17206 int
17207 main ()
17208 {
17209  u_intmax_t a; a = 1;
17210   ;
17211   return 0;
17212 }
17213 _ACEOF
17214 rm -f conftest.$ac_objext
17215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17216   (eval $ac_compile) 2>conftest.er1
17217   ac_status=$?
17218   grep -v '^ *+' conftest.er1 >conftest.err
17219   rm -f conftest.er1
17220   cat conftest.err >&5
17221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222   (exit $ac_status); } &&
17223          { ac_try='test -z "$ac_c_werror_flag"
17224                          || test ! -s conftest.err'
17225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226   (eval $ac_try) 2>&5
17227   ac_status=$?
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); }; } &&
17230          { ac_try='test -s conftest.$ac_objext'
17231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232   (eval $ac_try) 2>&5
17233   ac_status=$?
17234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235   (exit $ac_status); }; }; then
17236    ac_cv_have_u_intmax_t="yes"
17237 else
17238   echo "$as_me: failed program was:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17240
17241
17242          cat >conftest.$ac_ext <<_ACEOF
17243 /* confdefs.h.  */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h.  */
17248  #include <stdint.h>
17249 int
17250 main ()
17251 {
17252  u_intmax_t a; a = 1;
17253   ;
17254   return 0;
17255 }
17256 _ACEOF
17257 rm -f conftest.$ac_objext
17258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17259   (eval $ac_compile) 2>conftest.er1
17260   ac_status=$?
17261   grep -v '^ *+' conftest.er1 >conftest.err
17262   rm -f conftest.er1
17263   cat conftest.err >&5
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); } &&
17266          { ac_try='test -z "$ac_c_werror_flag"
17267                          || test ! -s conftest.err'
17268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269   (eval $ac_try) 2>&5
17270   ac_status=$?
17271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272   (exit $ac_status); }; } &&
17273          { ac_try='test -s conftest.$ac_objext'
17274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17275   (eval $ac_try) 2>&5
17276   ac_status=$?
17277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278   (exit $ac_status); }; }; then
17279    ac_cv_have_u_intmax_t="yes"
17280 else
17281   echo "$as_me: failed program was:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17283
17284  ac_cv_have_u_intmax_t="no"
17285
17286 fi
17287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17288
17289
17290 fi
17291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17292
17293 fi
17294 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17295 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17296 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17297    cat >>confdefs.h <<\_ACEOF
17298 #define HAVE_U_INTMAX_T 1
17299 _ACEOF
17300
17301    have_u_intmax_t=1
17302 fi
17303
17304
17305 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17306 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17307 if test "${ac_cv_have_intxx_t+set}" = set; then
17308   echo $ECHO_N "(cached) $ECHO_C" >&6
17309 else
17310
17311    cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h.  */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h.  */
17317  #include <sys/types.h>
17318 int
17319 main ()
17320 {
17321  int8_t a; int16_t b; int32_t c; a = b = c = 1;
17322   ;
17323   return 0;
17324 }
17325 _ACEOF
17326 rm -f conftest.$ac_objext
17327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17328   (eval $ac_compile) 2>conftest.er1
17329   ac_status=$?
17330   grep -v '^ *+' conftest.er1 >conftest.err
17331   rm -f conftest.er1
17332   cat conftest.err >&5
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); } &&
17335          { ac_try='test -z "$ac_c_werror_flag"
17336                          || test ! -s conftest.err'
17337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338   (eval $ac_try) 2>&5
17339   ac_status=$?
17340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341   (exit $ac_status); }; } &&
17342          { ac_try='test -s conftest.$ac_objext'
17343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344   (eval $ac_try) 2>&5
17345   ac_status=$?
17346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347   (exit $ac_status); }; }; then
17348    ac_cv_have_intxx_t="yes"
17349 else
17350   echo "$as_me: failed program was:" >&5
17351 sed 's/^/| /' conftest.$ac_ext >&5
17352
17353  ac_cv_have_intxx_t="no"
17354
17355 fi
17356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17357
17358 fi
17359 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17360 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17361 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17362    cat >>confdefs.h <<\_ACEOF
17363 #define HAVE_INTXX_T 1
17364 _ACEOF
17365
17366    have_intxx_t=1
17367 fi
17368
17369 echo "$as_me:$LINENO: checking for int64_t type" >&5
17370 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17371 if test "${ac_cv_have_int64_t+set}" = set; then
17372   echo $ECHO_N "(cached) $ECHO_C" >&6
17373 else
17374
17375    cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h.  */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h.  */
17381  #include <sys/types.h>
17382 int
17383 main ()
17384 {
17385  int64_t a; a = 1;
17386   ;
17387   return 0;
17388 }
17389 _ACEOF
17390 rm -f conftest.$ac_objext
17391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17392   (eval $ac_compile) 2>conftest.er1
17393   ac_status=$?
17394   grep -v '^ *+' conftest.er1 >conftest.err
17395   rm -f conftest.er1
17396   cat conftest.err >&5
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); } &&
17399          { ac_try='test -z "$ac_c_werror_flag"
17400                          || test ! -s conftest.err'
17401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402   (eval $ac_try) 2>&5
17403   ac_status=$?
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); }; } &&
17406          { ac_try='test -s conftest.$ac_objext'
17407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17408   (eval $ac_try) 2>&5
17409   ac_status=$?
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); }; }; then
17412    ac_cv_have_int64_t="yes"
17413 else
17414   echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
17417  ac_cv_have_int64_t="no"
17418
17419 fi
17420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17421
17422 fi
17423 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17424 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17425 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17426    cat >>confdefs.h <<\_ACEOF
17427 #define HAVE_INT64_T 1
17428 _ACEOF
17429
17430    have_int64_t=1
17431 fi
17432
17433 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17434 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17435 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17436   echo $ECHO_N "(cached) $ECHO_C" >&6
17437 else
17438
17439    cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h.  */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h.  */
17445  #include <sys/types.h>
17446 int
17447 main ()
17448 {
17449  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17450   ;
17451   return 0;
17452 }
17453 _ACEOF
17454 rm -f conftest.$ac_objext
17455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17456   (eval $ac_compile) 2>conftest.er1
17457   ac_status=$?
17458   grep -v '^ *+' conftest.er1 >conftest.err
17459   rm -f conftest.er1
17460   cat conftest.err >&5
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); } &&
17463          { ac_try='test -z "$ac_c_werror_flag"
17464                          || test ! -s conftest.err'
17465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466   (eval $ac_try) 2>&5
17467   ac_status=$?
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); }; } &&
17470          { ac_try='test -s conftest.$ac_objext'
17471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472   (eval $ac_try) 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; }; then
17476    ac_cv_have_u_intxx_t="yes"
17477 else
17478   echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17480
17481  ac_cv_have_u_intxx_t="no"
17482
17483 fi
17484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17485
17486 fi
17487 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17488 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17489 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17490    cat >>confdefs.h <<\_ACEOF
17491 #define HAVE_U_INTXX_T 1
17492 _ACEOF
17493
17494    have_u_intxx_t=1
17495 fi
17496
17497 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17498 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17499 if test "${ac_cv_have_u_int64_t+set}" = set; then
17500   echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502
17503    cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h.  */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h.  */
17509  #include <sys/types.h>
17510 int
17511 main ()
17512 {
17513  u_int64_t a; a = 1;
17514   ;
17515   return 0;
17516 }
17517 _ACEOF
17518 rm -f conftest.$ac_objext
17519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17520   (eval $ac_compile) 2>conftest.er1
17521   ac_status=$?
17522   grep -v '^ *+' conftest.er1 >conftest.err
17523   rm -f conftest.er1
17524   cat conftest.err >&5
17525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526   (exit $ac_status); } &&
17527          { ac_try='test -z "$ac_c_werror_flag"
17528                          || test ! -s conftest.err'
17529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530   (eval $ac_try) 2>&5
17531   ac_status=$?
17532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533   (exit $ac_status); }; } &&
17534          { ac_try='test -s conftest.$ac_objext'
17535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536   (eval $ac_try) 2>&5
17537   ac_status=$?
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); }; }; then
17540    ac_cv_have_u_int64_t="yes"
17541 else
17542   echo "$as_me: failed program was:" >&5
17543 sed 's/^/| /' conftest.$ac_ext >&5
17544
17545  ac_cv_have_u_int64_t="no"
17546
17547 fi
17548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17549
17550 fi
17551 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17552 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17553 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17554    cat >>confdefs.h <<\_ACEOF
17555 #define HAVE_U_INT64_T 1
17556 _ACEOF
17557
17558    have_u_int64_t=1
17559 fi
17560
17561 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17562            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17563 then
17564    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17565 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17566    cat >conftest.$ac_ext <<_ACEOF
17567 /* confdefs.h.  */
17568 _ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h.  */
17572  #include <sys/bitypes.h>
17573 int
17574 main ()
17575 {
17576  int8_t a; int16_t b; int32_t c;
17577         u_int8_t e; u_int16_t f; u_int32_t g;
17578         a = b = c = e = f = g = 1;
17579   ;
17580   return 0;
17581 }
17582 _ACEOF
17583 rm -f conftest.$ac_objext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17585   (eval $ac_compile) 2>conftest.er1
17586   ac_status=$?
17587   grep -v '^ *+' conftest.er1 >conftest.err
17588   rm -f conftest.er1
17589   cat conftest.err >&5
17590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591   (exit $ac_status); } &&
17592          { ac_try='test -z "$ac_c_werror_flag"
17593                          || test ! -s conftest.err'
17594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595   (eval $ac_try) 2>&5
17596   ac_status=$?
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); }; } &&
17599          { ac_try='test -s conftest.$ac_objext'
17600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601   (eval $ac_try) 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); }; }; then
17605    cat >>confdefs.h <<\_ACEOF
17606 #define HAVE_U_INTXX_T 1
17607 _ACEOF
17608
17609         cat >>confdefs.h <<\_ACEOF
17610 #define HAVE_INTXX_T 1
17611 _ACEOF
17612
17613         cat >>confdefs.h <<\_ACEOF
17614 #define HAVE_SYS_BITYPES_H 1
17615 _ACEOF
17616
17617         echo "$as_me:$LINENO: result: yes" >&5
17618 echo "${ECHO_T}yes" >&6
17619 else
17620   echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17622
17623  echo "$as_me:$LINENO: result: no" >&5
17624 echo "${ECHO_T}no" >&6
17625
17626 fi
17627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17628 fi
17629
17630 if test -z "$have_u_intxx_t" ; then
17631    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17632 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17633 if test "${ac_cv_have_uintxx_t+set}" = set; then
17634   echo $ECHO_N "(cached) $ECHO_C" >&6
17635 else
17636
17637       cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h.  */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h.  */
17643  #include <sys/types.h>
17644 int
17645 main ()
17646 {
17647  uint8_t a; uint16_t b;
17648            uint32_t c; a = b = c = 1;
17649   ;
17650   return 0;
17651 }
17652 _ACEOF
17653 rm -f conftest.$ac_objext
17654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17655   (eval $ac_compile) 2>conftest.er1
17656   ac_status=$?
17657   grep -v '^ *+' conftest.er1 >conftest.err
17658   rm -f conftest.er1
17659   cat conftest.err >&5
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); } &&
17662          { ac_try='test -z "$ac_c_werror_flag"
17663                          || test ! -s conftest.err'
17664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665   (eval $ac_try) 2>&5
17666   ac_status=$?
17667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668   (exit $ac_status); }; } &&
17669          { ac_try='test -s conftest.$ac_objext'
17670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671   (eval $ac_try) 2>&5
17672   ac_status=$?
17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674   (exit $ac_status); }; }; then
17675    ac_cv_have_uintxx_t="yes"
17676 else
17677   echo "$as_me: failed program was:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17679
17680  ac_cv_have_uintxx_t="no"
17681
17682 fi
17683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17684
17685 fi
17686 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17687 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17688    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17689       cat >>confdefs.h <<\_ACEOF
17690 #define HAVE_UINTXX_T 1
17691 _ACEOF
17692
17693    fi
17694 fi
17695
17696 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17697           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17698 then
17699    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17700 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17701    cat >conftest.$ac_ext <<_ACEOF
17702 /* confdefs.h.  */
17703 _ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h.  */
17707  #include <sys/bitypes.h>
17708 int
17709 main ()
17710 {
17711  int64_t a; u_int64_t b;
17712        a = b = 1;
17713   ;
17714   return 0;
17715 }
17716 _ACEOF
17717 rm -f conftest.$ac_objext
17718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17719   (eval $ac_compile) 2>conftest.er1
17720   ac_status=$?
17721   grep -v '^ *+' conftest.er1 >conftest.err
17722   rm -f conftest.er1
17723   cat conftest.err >&5
17724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725   (exit $ac_status); } &&
17726          { ac_try='test -z "$ac_c_werror_flag"
17727                          || test ! -s conftest.err'
17728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729   (eval $ac_try) 2>&5
17730   ac_status=$?
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); }; } &&
17733          { ac_try='test -s conftest.$ac_objext'
17734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735   (eval $ac_try) 2>&5
17736   ac_status=$?
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); }; }; then
17739    cat >>confdefs.h <<\_ACEOF
17740 #define HAVE_U_INT64_T 1
17741 _ACEOF
17742
17743        cat >>confdefs.h <<\_ACEOF
17744 #define HAVE_INT64_T 1
17745 _ACEOF
17746
17747        echo "$as_me:$LINENO: result: yes" >&5
17748 echo "${ECHO_T}yes" >&6
17749 else
17750   echo "$as_me: failed program was:" >&5
17751 sed 's/^/| /' conftest.$ac_ext >&5
17752
17753  echo "$as_me:$LINENO: result: no" >&5
17754 echo "${ECHO_T}no" >&6
17755
17756 fi
17757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17758 fi
17759
17760 if (test -z "$have_uintxx_t" && \
17761           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17762 then
17763    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17764 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17765    cat >conftest.$ac_ext <<_ACEOF
17766 /* confdefs.h.  */
17767 _ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h.  */
17771  #include <sys/bitypes.h>
17772 int
17773 main ()
17774 {
17775  uint8_t a; uint16_t b;
17776           uint32_t c; a = b = c = 1;
17777   ;
17778   return 0;
17779 }
17780 _ACEOF
17781 rm -f conftest.$ac_objext
17782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17783   (eval $ac_compile) 2>conftest.er1
17784   ac_status=$?
17785   grep -v '^ *+' conftest.er1 >conftest.err
17786   rm -f conftest.er1
17787   cat conftest.err >&5
17788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789   (exit $ac_status); } &&
17790          { ac_try='test -z "$ac_c_werror_flag"
17791                          || test ! -s conftest.err'
17792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793   (eval $ac_try) 2>&5
17794   ac_status=$?
17795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796   (exit $ac_status); }; } &&
17797          { ac_try='test -s conftest.$ac_objext'
17798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799   (eval $ac_try) 2>&5
17800   ac_status=$?
17801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802   (exit $ac_status); }; }; then
17803    cat >>confdefs.h <<\_ACEOF
17804 #define HAVE_UINTXX_T 1
17805 _ACEOF
17806
17807        echo "$as_me:$LINENO: result: yes" >&5
17808 echo "${ECHO_T}yes" >&6
17809 else
17810   echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17812
17813  echo "$as_me:$LINENO: result: no" >&5
17814 echo "${ECHO_T}no" >&6
17815
17816 fi
17817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17818
17819 fi
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837 for ac_func in \
17838         fork \
17839         getcwd \
17840         gethostname \
17841         getpid \
17842         gettimeofday \
17843         setpgid \
17844         setpgrp \
17845         setsid \
17846         signal \
17847         strerror \
17848         strncmp \
17849         strncpy \
17850         vfprintf \
17851
17852 do
17853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17854 echo "$as_me:$LINENO: checking for $ac_func" >&5
17855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17856 if eval "test \"\${$as_ac_var+set}\" = set"; then
17857   echo $ECHO_N "(cached) $ECHO_C" >&6
17858 else
17859   cat >conftest.$ac_ext <<_ACEOF
17860 /* confdefs.h.  */
17861 _ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h.  */
17865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17867 #define $ac_func innocuous_$ac_func
17868
17869 /* System header to define __stub macros and hopefully few prototypes,
17870     which can conflict with char $ac_func (); below.
17871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17872     <limits.h> exists even on freestanding compilers.  */
17873
17874 #ifdef __STDC__
17875 # include <limits.h>
17876 #else
17877 # include <assert.h>
17878 #endif
17879
17880 #undef $ac_func
17881
17882 /* Override any gcc2 internal prototype to avoid an error.  */
17883 #ifdef __cplusplus
17884 extern "C"
17885 {
17886 #endif
17887 /* We use char because int might match the return type of a gcc2
17888    builtin and then its argument prototype would still apply.  */
17889 char $ac_func ();
17890 /* The GNU C library defines this for functions which it implements
17891     to always fail with ENOSYS.  Some functions are actually named
17892     something starting with __ and the normal name is an alias.  */
17893 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17894 choke me
17895 #else
17896 char (*f) () = $ac_func;
17897 #endif
17898 #ifdef __cplusplus
17899 }
17900 #endif
17901
17902 int
17903 main ()
17904 {
17905 return f != $ac_func;
17906   ;
17907   return 0;
17908 }
17909 _ACEOF
17910 rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17912   (eval $ac_link) 2>conftest.er1
17913   ac_status=$?
17914   grep -v '^ *+' conftest.er1 >conftest.err
17915   rm -f conftest.er1
17916   cat conftest.err >&5
17917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918   (exit $ac_status); } &&
17919          { ac_try='test -z "$ac_c_werror_flag"
17920                          || test ! -s conftest.err'
17921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922   (eval $ac_try) 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; } &&
17926          { ac_try='test -s conftest$ac_exeext'
17927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928   (eval $ac_try) 2>&5
17929   ac_status=$?
17930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931   (exit $ac_status); }; }; then
17932   eval "$as_ac_var=yes"
17933 else
17934   echo "$as_me: failed program was:" >&5
17935 sed 's/^/| /' conftest.$ac_ext >&5
17936
17937 eval "$as_ac_var=no"
17938 fi
17939 rm -f conftest.err conftest.$ac_objext \
17940       conftest$ac_exeext conftest.$ac_ext
17941 fi
17942 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17943 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17944 if test `eval echo '${'$as_ac_var'}'` = yes; then
17945   cat >>confdefs.h <<_ACEOF
17946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17947 _ACEOF
17948
17949 else
17950   echo 'configure: cannot find needed function.'; exit 1
17951
17952 fi
17953 done
17954
17955
17956
17957 for ac_func in fchdir
17958 do
17959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17960 echo "$as_me:$LINENO: checking for $ac_func" >&5
17961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17962 if eval "test \"\${$as_ac_var+set}\" = set"; then
17963   echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965   cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h.  */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h.  */
17971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17973 #define $ac_func innocuous_$ac_func
17974
17975 /* System header to define __stub macros and hopefully few prototypes,
17976     which can conflict with char $ac_func (); below.
17977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17978     <limits.h> exists even on freestanding compilers.  */
17979
17980 #ifdef __STDC__
17981 # include <limits.h>
17982 #else
17983 # include <assert.h>
17984 #endif
17985
17986 #undef $ac_func
17987
17988 /* Override any gcc2 internal prototype to avoid an error.  */
17989 #ifdef __cplusplus
17990 extern "C"
17991 {
17992 #endif
17993 /* We use char because int might match the return type of a gcc2
17994    builtin and then its argument prototype would still apply.  */
17995 char $ac_func ();
17996 /* The GNU C library defines this for functions which it implements
17997     to always fail with ENOSYS.  Some functions are actually named
17998     something starting with __ and the normal name is an alias.  */
17999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18000 choke me
18001 #else
18002 char (*f) () = $ac_func;
18003 #endif
18004 #ifdef __cplusplus
18005 }
18006 #endif
18007
18008 int
18009 main ()
18010 {
18011 return f != $ac_func;
18012   ;
18013   return 0;
18014 }
18015 _ACEOF
18016 rm -f conftest.$ac_objext conftest$ac_exeext
18017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18018   (eval $ac_link) 2>conftest.er1
18019   ac_status=$?
18020   grep -v '^ *+' conftest.er1 >conftest.err
18021   rm -f conftest.er1
18022   cat conftest.err >&5
18023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024   (exit $ac_status); } &&
18025          { ac_try='test -z "$ac_c_werror_flag"
18026                          || test ! -s conftest.err'
18027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028   (eval $ac_try) 2>&5
18029   ac_status=$?
18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031   (exit $ac_status); }; } &&
18032          { ac_try='test -s conftest$ac_exeext'
18033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034   (eval $ac_try) 2>&5
18035   ac_status=$?
18036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037   (exit $ac_status); }; }; then
18038   eval "$as_ac_var=yes"
18039 else
18040   echo "$as_me: failed program was:" >&5
18041 sed 's/^/| /' conftest.$ac_ext >&5
18042
18043 eval "$as_ac_var=no"
18044 fi
18045 rm -f conftest.err conftest.$ac_objext \
18046       conftest$ac_exeext conftest.$ac_ext
18047 fi
18048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18050 if test `eval echo '${'$as_ac_var'}'` = yes; then
18051   cat >>confdefs.h <<_ACEOF
18052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18053 _ACEOF
18054  cat >>confdefs.h <<\_ACEOF
18055 #define HAVE_FCHDIR 1
18056 _ACEOF
18057
18058 fi
18059 done
18060
18061
18062 for ac_func in strtoll
18063 do
18064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18065 echo "$as_me:$LINENO: checking for $ac_func" >&5
18066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18067 if eval "test \"\${$as_ac_var+set}\" = set"; then
18068   echo $ECHO_N "(cached) $ECHO_C" >&6
18069 else
18070   cat >conftest.$ac_ext <<_ACEOF
18071 /* confdefs.h.  */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h.  */
18076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18078 #define $ac_func innocuous_$ac_func
18079
18080 /* System header to define __stub macros and hopefully few prototypes,
18081     which can conflict with char $ac_func (); below.
18082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18083     <limits.h> exists even on freestanding compilers.  */
18084
18085 #ifdef __STDC__
18086 # include <limits.h>
18087 #else
18088 # include <assert.h>
18089 #endif
18090
18091 #undef $ac_func
18092
18093 /* Override any gcc2 internal prototype to avoid an error.  */
18094 #ifdef __cplusplus
18095 extern "C"
18096 {
18097 #endif
18098 /* We use char because int might match the return type of a gcc2
18099    builtin and then its argument prototype would still apply.  */
18100 char $ac_func ();
18101 /* The GNU C library defines this for functions which it implements
18102     to always fail with ENOSYS.  Some functions are actually named
18103     something starting with __ and the normal name is an alias.  */
18104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18105 choke me
18106 #else
18107 char (*f) () = $ac_func;
18108 #endif
18109 #ifdef __cplusplus
18110 }
18111 #endif
18112
18113 int
18114 main ()
18115 {
18116 return f != $ac_func;
18117   ;
18118   return 0;
18119 }
18120 _ACEOF
18121 rm -f conftest.$ac_objext conftest$ac_exeext
18122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18123   (eval $ac_link) 2>conftest.er1
18124   ac_status=$?
18125   grep -v '^ *+' conftest.er1 >conftest.err
18126   rm -f conftest.er1
18127   cat conftest.err >&5
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); } &&
18130          { ac_try='test -z "$ac_c_werror_flag"
18131                          || test ! -s conftest.err'
18132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133   (eval $ac_try) 2>&5
18134   ac_status=$?
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); }; } &&
18137          { ac_try='test -s conftest$ac_exeext'
18138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139   (eval $ac_try) 2>&5
18140   ac_status=$?
18141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142   (exit $ac_status); }; }; then
18143   eval "$as_ac_var=yes"
18144 else
18145   echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18147
18148 eval "$as_ac_var=no"
18149 fi
18150 rm -f conftest.err conftest.$ac_objext \
18151       conftest$ac_exeext conftest.$ac_ext
18152 fi
18153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18155 if test `eval echo '${'$as_ac_var'}'` = yes; then
18156   cat >>confdefs.h <<_ACEOF
18157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18158 _ACEOF
18159  cat >>confdefs.h <<\_ACEOF
18160 #define HAVE_STRTOLL 1
18161 _ACEOF
18162
18163 fi
18164 done
18165
18166
18167
18168 for ac_func in chflags
18169 do
18170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18171 echo "$as_me:$LINENO: checking for $ac_func" >&5
18172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18173 if eval "test \"\${$as_ac_var+set}\" = set"; then
18174   echo $ECHO_N "(cached) $ECHO_C" >&6
18175 else
18176   cat >conftest.$ac_ext <<_ACEOF
18177 /* confdefs.h.  */
18178 _ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h.  */
18182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18184 #define $ac_func innocuous_$ac_func
18185
18186 /* System header to define __stub macros and hopefully few prototypes,
18187     which can conflict with char $ac_func (); below.
18188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18189     <limits.h> exists even on freestanding compilers.  */
18190
18191 #ifdef __STDC__
18192 # include <limits.h>
18193 #else
18194 # include <assert.h>
18195 #endif
18196
18197 #undef $ac_func
18198
18199 /* Override any gcc2 internal prototype to avoid an error.  */
18200 #ifdef __cplusplus
18201 extern "C"
18202 {
18203 #endif
18204 /* We use char because int might match the return type of a gcc2
18205    builtin and then its argument prototype would still apply.  */
18206 char $ac_func ();
18207 /* The GNU C library defines this for functions which it implements
18208     to always fail with ENOSYS.  Some functions are actually named
18209     something starting with __ and the normal name is an alias.  */
18210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18211 choke me
18212 #else
18213 char (*f) () = $ac_func;
18214 #endif
18215 #ifdef __cplusplus
18216 }
18217 #endif
18218
18219 int
18220 main ()
18221 {
18222 return f != $ac_func;
18223   ;
18224   return 0;
18225 }
18226 _ACEOF
18227 rm -f conftest.$ac_objext conftest$ac_exeext
18228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18229   (eval $ac_link) 2>conftest.er1
18230   ac_status=$?
18231   grep -v '^ *+' conftest.er1 >conftest.err
18232   rm -f conftest.er1
18233   cat conftest.err >&5
18234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235   (exit $ac_status); } &&
18236          { ac_try='test -z "$ac_c_werror_flag"
18237                          || test ! -s conftest.err'
18238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239   (eval $ac_try) 2>&5
18240   ac_status=$?
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); }; } &&
18243          { ac_try='test -s conftest$ac_exeext'
18244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245   (eval $ac_try) 2>&5
18246   ac_status=$?
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); }; }; then
18249   eval "$as_ac_var=yes"
18250 else
18251   echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18253
18254 eval "$as_ac_var=no"
18255 fi
18256 rm -f conftest.err conftest.$ac_objext \
18257       conftest$ac_exeext conftest.$ac_ext
18258 fi
18259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18260 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18261 if test `eval echo '${'$as_ac_var'}'` = yes; then
18262   cat >>confdefs.h <<_ACEOF
18263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18264 _ACEOF
18265
18266 fi
18267 done
18268
18269
18270
18271
18272
18273
18274 for ac_func in snprintf vsnprintf gethostid fseeko
18275 do
18276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18277 echo "$as_me:$LINENO: checking for $ac_func" >&5
18278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18279 if eval "test \"\${$as_ac_var+set}\" = set"; then
18280   echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282   cat >conftest.$ac_ext <<_ACEOF
18283 /* confdefs.h.  */
18284 _ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h.  */
18288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18290 #define $ac_func innocuous_$ac_func
18291
18292 /* System header to define __stub macros and hopefully few prototypes,
18293     which can conflict with char $ac_func (); below.
18294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18295     <limits.h> exists even on freestanding compilers.  */
18296
18297 #ifdef __STDC__
18298 # include <limits.h>
18299 #else
18300 # include <assert.h>
18301 #endif
18302
18303 #undef $ac_func
18304
18305 /* Override any gcc2 internal prototype to avoid an error.  */
18306 #ifdef __cplusplus
18307 extern "C"
18308 {
18309 #endif
18310 /* We use char because int might match the return type of a gcc2
18311    builtin and then its argument prototype would still apply.  */
18312 char $ac_func ();
18313 /* The GNU C library defines this for functions which it implements
18314     to always fail with ENOSYS.  Some functions are actually named
18315     something starting with __ and the normal name is an alias.  */
18316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18317 choke me
18318 #else
18319 char (*f) () = $ac_func;
18320 #endif
18321 #ifdef __cplusplus
18322 }
18323 #endif
18324
18325 int
18326 main ()
18327 {
18328 return f != $ac_func;
18329   ;
18330   return 0;
18331 }
18332 _ACEOF
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18335   (eval $ac_link) 2>conftest.er1
18336   ac_status=$?
18337   grep -v '^ *+' conftest.er1 >conftest.err
18338   rm -f conftest.er1
18339   cat conftest.err >&5
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); } &&
18342          { ac_try='test -z "$ac_c_werror_flag"
18343                          || test ! -s conftest.err'
18344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345   (eval $ac_try) 2>&5
18346   ac_status=$?
18347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348   (exit $ac_status); }; } &&
18349          { ac_try='test -s conftest$ac_exeext'
18350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351   (eval $ac_try) 2>&5
18352   ac_status=$?
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); }; }; then
18355   eval "$as_ac_var=yes"
18356 else
18357   echo "$as_me: failed program was:" >&5
18358 sed 's/^/| /' conftest.$ac_ext >&5
18359
18360 eval "$as_ac_var=no"
18361 fi
18362 rm -f conftest.err conftest.$ac_objext \
18363       conftest$ac_exeext conftest.$ac_ext
18364 fi
18365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18367 if test `eval echo '${'$as_ac_var'}'` = yes; then
18368   cat >>confdefs.h <<_ACEOF
18369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18370 _ACEOF
18371
18372 fi
18373 done
18374
18375
18376
18377
18378
18379
18380 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18381 do
18382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18383 echo "$as_me:$LINENO: checking for $ac_func" >&5
18384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18385 if eval "test \"\${$as_ac_var+set}\" = set"; then
18386   echo $ECHO_N "(cached) $ECHO_C" >&6
18387 else
18388   cat >conftest.$ac_ext <<_ACEOF
18389 /* confdefs.h.  */
18390 _ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h.  */
18394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18395    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18396 #define $ac_func innocuous_$ac_func
18397
18398 /* System header to define __stub macros and hopefully few prototypes,
18399     which can conflict with char $ac_func (); below.
18400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18401     <limits.h> exists even on freestanding compilers.  */
18402
18403 #ifdef __STDC__
18404 # include <limits.h>
18405 #else
18406 # include <assert.h>
18407 #endif
18408
18409 #undef $ac_func
18410
18411 /* Override any gcc2 internal prototype to avoid an error.  */
18412 #ifdef __cplusplus
18413 extern "C"
18414 {
18415 #endif
18416 /* We use char because int might match the return type of a gcc2
18417    builtin and then its argument prototype would still apply.  */
18418 char $ac_func ();
18419 /* The GNU C library defines this for functions which it implements
18420     to always fail with ENOSYS.  Some functions are actually named
18421     something starting with __ and the normal name is an alias.  */
18422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18423 choke me
18424 #else
18425 char (*f) () = $ac_func;
18426 #endif
18427 #ifdef __cplusplus
18428 }
18429 #endif
18430
18431 int
18432 main ()
18433 {
18434 return f != $ac_func;
18435   ;
18436   return 0;
18437 }
18438 _ACEOF
18439 rm -f conftest.$ac_objext conftest$ac_exeext
18440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18441   (eval $ac_link) 2>conftest.er1
18442   ac_status=$?
18443   grep -v '^ *+' conftest.er1 >conftest.err
18444   rm -f conftest.er1
18445   cat conftest.err >&5
18446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); } &&
18448          { ac_try='test -z "$ac_c_werror_flag"
18449                          || test ! -s conftest.err'
18450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451   (eval $ac_try) 2>&5
18452   ac_status=$?
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); }; } &&
18455          { ac_try='test -s conftest$ac_exeext'
18456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457   (eval $ac_try) 2>&5
18458   ac_status=$?
18459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460   (exit $ac_status); }; }; then
18461   eval "$as_ac_var=yes"
18462 else
18463   echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18465
18466 eval "$as_ac_var=no"
18467 fi
18468 rm -f conftest.err conftest.$ac_objext \
18469       conftest$ac_exeext conftest.$ac_ext
18470 fi
18471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18472 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18473 if test `eval echo '${'$as_ac_var'}'` = yes; then
18474   cat >>confdefs.h <<_ACEOF
18475 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18476 _ACEOF
18477
18478 fi
18479 done
18480
18481
18482 # If resolver functions are not in libc check for -lnsl or -lresolv.
18483 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18484 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18485 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18486   echo $ECHO_N "(cached) $ECHO_C" >&6
18487 else
18488   cat >conftest.$ac_ext <<_ACEOF
18489 /* confdefs.h.  */
18490 _ACEOF
18491 cat confdefs.h >>conftest.$ac_ext
18492 cat >>conftest.$ac_ext <<_ACEOF
18493 /* end confdefs.h.  */
18494 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18496 #define gethostbyname_r innocuous_gethostbyname_r
18497
18498 /* System header to define __stub macros and hopefully few prototypes,
18499     which can conflict with char gethostbyname_r (); below.
18500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18501     <limits.h> exists even on freestanding compilers.  */
18502
18503 #ifdef __STDC__
18504 # include <limits.h>
18505 #else
18506 # include <assert.h>
18507 #endif
18508
18509 #undef gethostbyname_r
18510
18511 /* Override any gcc2 internal prototype to avoid an error.  */
18512 #ifdef __cplusplus
18513 extern "C"
18514 {
18515 #endif
18516 /* We use char because int might match the return type of a gcc2
18517    builtin and then its argument prototype would still apply.  */
18518 char gethostbyname_r ();
18519 /* The GNU C library defines this for functions which it implements
18520     to always fail with ENOSYS.  Some functions are actually named
18521     something starting with __ and the normal name is an alias.  */
18522 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18523 choke me
18524 #else
18525 char (*f) () = gethostbyname_r;
18526 #endif
18527 #ifdef __cplusplus
18528 }
18529 #endif
18530
18531 int
18532 main ()
18533 {
18534 return f != gethostbyname_r;
18535   ;
18536   return 0;
18537 }
18538 _ACEOF
18539 rm -f conftest.$ac_objext conftest$ac_exeext
18540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18541   (eval $ac_link) 2>conftest.er1
18542   ac_status=$?
18543   grep -v '^ *+' conftest.er1 >conftest.err
18544   rm -f conftest.er1
18545   cat conftest.err >&5
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); } &&
18548          { ac_try='test -z "$ac_c_werror_flag"
18549                          || test ! -s conftest.err'
18550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551   (eval $ac_try) 2>&5
18552   ac_status=$?
18553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554   (exit $ac_status); }; } &&
18555          { ac_try='test -s conftest$ac_exeext'
18556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18557   (eval $ac_try) 2>&5
18558   ac_status=$?
18559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560   (exit $ac_status); }; }; then
18561   ac_cv_func_gethostbyname_r=yes
18562 else
18563   echo "$as_me: failed program was:" >&5
18564 sed 's/^/| /' conftest.$ac_ext >&5
18565
18566 ac_cv_func_gethostbyname_r=no
18567 fi
18568 rm -f conftest.err conftest.$ac_objext \
18569       conftest$ac_exeext conftest.$ac_ext
18570 fi
18571 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18572 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18573 if test $ac_cv_func_gethostbyname_r = yes; then
18574   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18575 echo "${ECHO_T}using libc's resolver" >&6
18576 else
18577
18578 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18579 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18580 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18581   echo $ECHO_N "(cached) $ECHO_C" >&6
18582 else
18583   ac_check_lib_save_LIBS=$LIBS
18584 LIBS="-lnsl  $LIBS"
18585 cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h.  */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h.  */
18591
18592 /* Override any gcc2 internal prototype to avoid an error.  */
18593 #ifdef __cplusplus
18594 extern "C"
18595 #endif
18596 /* We use char because int might match the return type of a gcc2
18597    builtin and then its argument prototype would still apply.  */
18598 char gethostbyname_r ();
18599 int
18600 main ()
18601 {
18602 gethostbyname_r ();
18603   ;
18604   return 0;
18605 }
18606 _ACEOF
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609   (eval $ac_link) 2>conftest.er1
18610   ac_status=$?
18611   grep -v '^ *+' conftest.er1 >conftest.err
18612   rm -f conftest.er1
18613   cat conftest.err >&5
18614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615   (exit $ac_status); } &&
18616          { ac_try='test -z "$ac_c_werror_flag"
18617                          || test ! -s conftest.err'
18618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619   (eval $ac_try) 2>&5
18620   ac_status=$?
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); }; } &&
18623          { ac_try='test -s conftest$ac_exeext'
18624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625   (eval $ac_try) 2>&5
18626   ac_status=$?
18627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628   (exit $ac_status); }; }; then
18629   ac_cv_lib_nsl_gethostbyname_r=yes
18630 else
18631   echo "$as_me: failed program was:" >&5
18632 sed 's/^/| /' conftest.$ac_ext >&5
18633
18634 ac_cv_lib_nsl_gethostbyname_r=no
18635 fi
18636 rm -f conftest.err conftest.$ac_objext \
18637       conftest$ac_exeext conftest.$ac_ext
18638 LIBS=$ac_check_lib_save_LIBS
18639 fi
18640 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18641 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18642 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18643   cat >>confdefs.h <<_ACEOF
18644 #define HAVE_LIBNSL 1
18645 _ACEOF
18646
18647   LIBS="-lnsl $LIBS"
18648
18649 fi
18650
18651
18652 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18653 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18654 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18655   echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657   ac_check_lib_save_LIBS=$LIBS
18658 LIBS="-lresolv  $LIBS"
18659 cat >conftest.$ac_ext <<_ACEOF
18660 /* confdefs.h.  */
18661 _ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h.  */
18665
18666 /* Override any gcc2 internal prototype to avoid an error.  */
18667 #ifdef __cplusplus
18668 extern "C"
18669 #endif
18670 /* We use char because int might match the return type of a gcc2
18671    builtin and then its argument prototype would still apply.  */
18672 char gethostbyname_r ();
18673 int
18674 main ()
18675 {
18676 gethostbyname_r ();
18677   ;
18678   return 0;
18679 }
18680 _ACEOF
18681 rm -f conftest.$ac_objext conftest$ac_exeext
18682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18683   (eval $ac_link) 2>conftest.er1
18684   ac_status=$?
18685   grep -v '^ *+' conftest.er1 >conftest.err
18686   rm -f conftest.er1
18687   cat conftest.err >&5
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); } &&
18690          { ac_try='test -z "$ac_c_werror_flag"
18691                          || test ! -s conftest.err'
18692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693   (eval $ac_try) 2>&5
18694   ac_status=$?
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); }; } &&
18697          { ac_try='test -s conftest$ac_exeext'
18698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699   (eval $ac_try) 2>&5
18700   ac_status=$?
18701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702   (exit $ac_status); }; }; then
18703   ac_cv_lib_resolv_gethostbyname_r=yes
18704 else
18705   echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18707
18708 ac_cv_lib_resolv_gethostbyname_r=no
18709 fi
18710 rm -f conftest.err conftest.$ac_objext \
18711       conftest$ac_exeext conftest.$ac_ext
18712 LIBS=$ac_check_lib_save_LIBS
18713 fi
18714 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18715 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18716 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18717   cat >>confdefs.h <<_ACEOF
18718 #define HAVE_LIBRESOLV 1
18719 _ACEOF
18720
18721   LIBS="-lresolv $LIBS"
18722
18723 fi
18724
18725 fi
18726
18727
18728
18729
18730
18731 for ac_func in inet_pton
18732 do
18733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18734 echo "$as_me:$LINENO: checking for $ac_func" >&5
18735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18736 if eval "test \"\${$as_ac_var+set}\" = set"; then
18737   echo $ECHO_N "(cached) $ECHO_C" >&6
18738 else
18739   cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h.  */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h.  */
18745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18746    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18747 #define $ac_func innocuous_$ac_func
18748
18749 /* System header to define __stub macros and hopefully few prototypes,
18750     which can conflict with char $ac_func (); below.
18751     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18752     <limits.h> exists even on freestanding compilers.  */
18753
18754 #ifdef __STDC__
18755 # include <limits.h>
18756 #else
18757 # include <assert.h>
18758 #endif
18759
18760 #undef $ac_func
18761
18762 /* Override any gcc2 internal prototype to avoid an error.  */
18763 #ifdef __cplusplus
18764 extern "C"
18765 {
18766 #endif
18767 /* We use char because int might match the return type of a gcc2
18768    builtin and then its argument prototype would still apply.  */
18769 char $ac_func ();
18770 /* The GNU C library defines this for functions which it implements
18771     to always fail with ENOSYS.  Some functions are actually named
18772     something starting with __ and the normal name is an alias.  */
18773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18774 choke me
18775 #else
18776 char (*f) () = $ac_func;
18777 #endif
18778 #ifdef __cplusplus
18779 }
18780 #endif
18781
18782 int
18783 main ()
18784 {
18785 return f != $ac_func;
18786   ;
18787   return 0;
18788 }
18789 _ACEOF
18790 rm -f conftest.$ac_objext conftest$ac_exeext
18791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18792   (eval $ac_link) 2>conftest.er1
18793   ac_status=$?
18794   grep -v '^ *+' conftest.er1 >conftest.err
18795   rm -f conftest.er1
18796   cat conftest.err >&5
18797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798   (exit $ac_status); } &&
18799          { ac_try='test -z "$ac_c_werror_flag"
18800                          || test ! -s conftest.err'
18801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802   (eval $ac_try) 2>&5
18803   ac_status=$?
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   (exit $ac_status); }; } &&
18806          { ac_try='test -s conftest$ac_exeext'
18807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18808   (eval $ac_try) 2>&5
18809   ac_status=$?
18810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811   (exit $ac_status); }; }; then
18812   eval "$as_ac_var=yes"
18813 else
18814   echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18816
18817 eval "$as_ac_var=no"
18818 fi
18819 rm -f conftest.err conftest.$ac_objext \
18820       conftest$ac_exeext conftest.$ac_ext
18821 fi
18822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18824 if test `eval echo '${'$as_ac_var'}'` = yes; then
18825   cat >>confdefs.h <<_ACEOF
18826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18827 _ACEOF
18828  cat >>confdefs.h <<\_ACEOF
18829 #define HAVE_INET_PTON 1
18830 _ACEOF
18831
18832 fi
18833 done
18834
18835
18836 for ac_func in inet_ntop
18837 do
18838 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18839 echo "$as_me:$LINENO: checking for $ac_func" >&5
18840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18841 if eval "test \"\${$as_ac_var+set}\" = set"; then
18842   echo $ECHO_N "(cached) $ECHO_C" >&6
18843 else
18844   cat >conftest.$ac_ext <<_ACEOF
18845 /* confdefs.h.  */
18846 _ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h.  */
18850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18852 #define $ac_func innocuous_$ac_func
18853
18854 /* System header to define __stub macros and hopefully few prototypes,
18855     which can conflict with char $ac_func (); below.
18856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18857     <limits.h> exists even on freestanding compilers.  */
18858
18859 #ifdef __STDC__
18860 # include <limits.h>
18861 #else
18862 # include <assert.h>
18863 #endif
18864
18865 #undef $ac_func
18866
18867 /* Override any gcc2 internal prototype to avoid an error.  */
18868 #ifdef __cplusplus
18869 extern "C"
18870 {
18871 #endif
18872 /* We use char because int might match the return type of a gcc2
18873    builtin and then its argument prototype would still apply.  */
18874 char $ac_func ();
18875 /* The GNU C library defines this for functions which it implements
18876     to always fail with ENOSYS.  Some functions are actually named
18877     something starting with __ and the normal name is an alias.  */
18878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18879 choke me
18880 #else
18881 char (*f) () = $ac_func;
18882 #endif
18883 #ifdef __cplusplus
18884 }
18885 #endif
18886
18887 int
18888 main ()
18889 {
18890 return f != $ac_func;
18891   ;
18892   return 0;
18893 }
18894 _ACEOF
18895 rm -f conftest.$ac_objext conftest$ac_exeext
18896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18897   (eval $ac_link) 2>conftest.er1
18898   ac_status=$?
18899   grep -v '^ *+' conftest.er1 >conftest.err
18900   rm -f conftest.er1
18901   cat conftest.err >&5
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); } &&
18904          { ac_try='test -z "$ac_c_werror_flag"
18905                          || test ! -s conftest.err'
18906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907   (eval $ac_try) 2>&5
18908   ac_status=$?
18909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910   (exit $ac_status); }; } &&
18911          { ac_try='test -s conftest$ac_exeext'
18912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18913   (eval $ac_try) 2>&5
18914   ac_status=$?
18915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916   (exit $ac_status); }; }; then
18917   eval "$as_ac_var=yes"
18918 else
18919   echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18921
18922 eval "$as_ac_var=no"
18923 fi
18924 rm -f conftest.err conftest.$ac_objext \
18925       conftest$ac_exeext conftest.$ac_ext
18926 fi
18927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18928 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18929 if test `eval echo '${'$as_ac_var'}'` = yes; then
18930   cat >>confdefs.h <<_ACEOF
18931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18932 _ACEOF
18933  cat >>confdefs.h <<\_ACEOF
18934 #define HAVE_INET_NTOP 1
18935 _ACEOF
18936
18937 fi
18938 done
18939
18940
18941 for ac_func in gethostbyname2
18942 do
18943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18944 echo "$as_me:$LINENO: checking for $ac_func" >&5
18945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18946 if eval "test \"\${$as_ac_var+set}\" = set"; then
18947   echo $ECHO_N "(cached) $ECHO_C" >&6
18948 else
18949   cat >conftest.$ac_ext <<_ACEOF
18950 /* confdefs.h.  */
18951 _ACEOF
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h.  */
18955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18957 #define $ac_func innocuous_$ac_func
18958
18959 /* System header to define __stub macros and hopefully few prototypes,
18960     which can conflict with char $ac_func (); below.
18961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18962     <limits.h> exists even on freestanding compilers.  */
18963
18964 #ifdef __STDC__
18965 # include <limits.h>
18966 #else
18967 # include <assert.h>
18968 #endif
18969
18970 #undef $ac_func
18971
18972 /* Override any gcc2 internal prototype to avoid an error.  */
18973 #ifdef __cplusplus
18974 extern "C"
18975 {
18976 #endif
18977 /* We use char because int might match the return type of a gcc2
18978    builtin and then its argument prototype would still apply.  */
18979 char $ac_func ();
18980 /* The GNU C library defines this for functions which it implements
18981     to always fail with ENOSYS.  Some functions are actually named
18982     something starting with __ and the normal name is an alias.  */
18983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18984 choke me
18985 #else
18986 char (*f) () = $ac_func;
18987 #endif
18988 #ifdef __cplusplus
18989 }
18990 #endif
18991
18992 int
18993 main ()
18994 {
18995 return f != $ac_func;
18996   ;
18997   return 0;
18998 }
18999 _ACEOF
19000 rm -f conftest.$ac_objext conftest$ac_exeext
19001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19002   (eval $ac_link) 2>conftest.er1
19003   ac_status=$?
19004   grep -v '^ *+' conftest.er1 >conftest.err
19005   rm -f conftest.er1
19006   cat conftest.err >&5
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); } &&
19009          { ac_try='test -z "$ac_c_werror_flag"
19010                          || test ! -s conftest.err'
19011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012   (eval $ac_try) 2>&5
19013   ac_status=$?
19014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015   (exit $ac_status); }; } &&
19016          { ac_try='test -s conftest$ac_exeext'
19017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19018   (eval $ac_try) 2>&5
19019   ac_status=$?
19020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021   (exit $ac_status); }; }; then
19022   eval "$as_ac_var=yes"
19023 else
19024   echo "$as_me: failed program was:" >&5
19025 sed 's/^/| /' conftest.$ac_ext >&5
19026
19027 eval "$as_ac_var=no"
19028 fi
19029 rm -f conftest.err conftest.$ac_objext \
19030       conftest$ac_exeext conftest.$ac_ext
19031 fi
19032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19034 if test `eval echo '${'$as_ac_var'}'` = yes; then
19035   cat >>confdefs.h <<_ACEOF
19036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19037 _ACEOF
19038  cat >>confdefs.h <<\_ACEOF
19039 #define HAVE_GETHOSTBYNAME2 1
19040 _ACEOF
19041
19042 fi
19043 done
19044
19045
19046 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19047 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19048 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19049   echo $ECHO_N "(cached) $ECHO_C" >&6
19050 else
19051   cat >conftest.$ac_ext <<_ACEOF
19052 /* confdefs.h.  */
19053 _ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h.  */
19057 #include <sys/socket.h>
19058 int
19059 main ()
19060 {
19061 struct sockaddr s; s.sa_len;
19062   ;
19063   return 0;
19064 }
19065 _ACEOF
19066 rm -f conftest.$ac_objext
19067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19068   (eval $ac_compile) 2>conftest.er1
19069   ac_status=$?
19070   grep -v '^ *+' conftest.er1 >conftest.err
19071   rm -f conftest.er1
19072   cat conftest.err >&5
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); } &&
19075          { ac_try='test -z "$ac_c_werror_flag"
19076                          || test ! -s conftest.err'
19077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078   (eval $ac_try) 2>&5
19079   ac_status=$?
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); }; } &&
19082          { ac_try='test -s conftest.$ac_objext'
19083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084   (eval $ac_try) 2>&5
19085   ac_status=$?
19086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087   (exit $ac_status); }; }; then
19088   ac_cv_struct_sockaddr_sa_len=yes
19089 else
19090   echo "$as_me: failed program was:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19092
19093 ac_cv_struct_sockaddr_sa_len=no
19094 fi
19095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19096 fi
19097 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19098 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19099
19100  if test $ac_cv_struct_sockaddr_sa_len = yes; then
19101
19102 cat >>confdefs.h <<\_ACEOF
19103 #define HAVE_SA_LEN 1
19104 _ACEOF
19105
19106  fi
19107
19108
19109 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19110 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19111 if test "${ac_cv_ipv6_support+set}" = set; then
19112   echo $ECHO_N "(cached) $ECHO_C" >&6
19113 else
19114   cat >conftest.$ac_ext <<_ACEOF
19115 /* confdefs.h.  */
19116 _ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h.  */
19120  #include <sys/types.h>
19121 #include <sys/socket.h>
19122 #include <netinet/in.h>
19123 int
19124 main ()
19125 {
19126 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19127  0;
19128   ;
19129   return 0;
19130 }
19131 _ACEOF
19132 rm -f conftest.$ac_objext conftest$ac_exeext
19133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19134   (eval $ac_link) 2>conftest.er1
19135   ac_status=$?
19136   grep -v '^ *+' conftest.er1 >conftest.err
19137   rm -f conftest.er1
19138   cat conftest.err >&5
19139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); } &&
19141          { ac_try='test -z "$ac_c_werror_flag"
19142                          || test ! -s conftest.err'
19143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144   (eval $ac_try) 2>&5
19145   ac_status=$?
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); }; } &&
19148          { ac_try='test -s conftest$ac_exeext'
19149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150   (eval $ac_try) 2>&5
19151   ac_status=$?
19152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153   (exit $ac_status); }; }; then
19154   ac_cv_ipv6_support=yes
19155 else
19156   echo "$as_me: failed program was:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19158
19159 ac_cv_ipv6_support=no
19160 fi
19161 rm -f conftest.err conftest.$ac_objext \
19162       conftest$ac_exeext conftest.$ac_ext
19163 fi
19164 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19165 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19166
19167 if test "$ac_cv_ipv6_support" = yes; then
19168
19169 cat >>confdefs.h <<\_ACEOF
19170 #define HAVE_IPV6 1
19171 _ACEOF
19172
19173 fi
19174
19175
19176
19177
19178 for ac_func in strftime
19179 do
19180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19181 echo "$as_me:$LINENO: checking for $ac_func" >&5
19182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19183 if eval "test \"\${$as_ac_var+set}\" = set"; then
19184   echo $ECHO_N "(cached) $ECHO_C" >&6
19185 else
19186   cat >conftest.$ac_ext <<_ACEOF
19187 /* confdefs.h.  */
19188 _ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h.  */
19192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19194 #define $ac_func innocuous_$ac_func
19195
19196 /* System header to define __stub macros and hopefully few prototypes,
19197     which can conflict with char $ac_func (); below.
19198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19199     <limits.h> exists even on freestanding compilers.  */
19200
19201 #ifdef __STDC__
19202 # include <limits.h>
19203 #else
19204 # include <assert.h>
19205 #endif
19206
19207 #undef $ac_func
19208
19209 /* Override any gcc2 internal prototype to avoid an error.  */
19210 #ifdef __cplusplus
19211 extern "C"
19212 {
19213 #endif
19214 /* We use char because int might match the return type of a gcc2
19215    builtin and then its argument prototype would still apply.  */
19216 char $ac_func ();
19217 /* The GNU C library defines this for functions which it implements
19218     to always fail with ENOSYS.  Some functions are actually named
19219     something starting with __ and the normal name is an alias.  */
19220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19221 choke me
19222 #else
19223 char (*f) () = $ac_func;
19224 #endif
19225 #ifdef __cplusplus
19226 }
19227 #endif
19228
19229 int
19230 main ()
19231 {
19232 return f != $ac_func;
19233   ;
19234   return 0;
19235 }
19236 _ACEOF
19237 rm -f conftest.$ac_objext conftest$ac_exeext
19238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19239   (eval $ac_link) 2>conftest.er1
19240   ac_status=$?
19241   grep -v '^ *+' conftest.er1 >conftest.err
19242   rm -f conftest.er1
19243   cat conftest.err >&5
19244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245   (exit $ac_status); } &&
19246          { ac_try='test -z "$ac_c_werror_flag"
19247                          || test ! -s conftest.err'
19248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249   (eval $ac_try) 2>&5
19250   ac_status=$?
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); }; } &&
19253          { ac_try='test -s conftest$ac_exeext'
19254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255   (eval $ac_try) 2>&5
19256   ac_status=$?
19257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258   (exit $ac_status); }; }; then
19259   eval "$as_ac_var=yes"
19260 else
19261   echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19263
19264 eval "$as_ac_var=no"
19265 fi
19266 rm -f conftest.err conftest.$ac_objext \
19267       conftest$ac_exeext conftest.$ac_ext
19268 fi
19269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19271 if test `eval echo '${'$as_ac_var'}'` = yes; then
19272   cat >>confdefs.h <<_ACEOF
19273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19274 _ACEOF
19275
19276 else
19277   # strftime is in -lintl on SCO UNIX.
19278 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19279 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19280 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19281   echo $ECHO_N "(cached) $ECHO_C" >&6
19282 else
19283   ac_check_lib_save_LIBS=$LIBS
19284 LIBS="-lintl  $LIBS"
19285 cat >conftest.$ac_ext <<_ACEOF
19286 /* confdefs.h.  */
19287 _ACEOF
19288 cat confdefs.h >>conftest.$ac_ext
19289 cat >>conftest.$ac_ext <<_ACEOF
19290 /* end confdefs.h.  */
19291
19292 /* Override any gcc2 internal prototype to avoid an error.  */
19293 #ifdef __cplusplus
19294 extern "C"
19295 #endif
19296 /* We use char because int might match the return type of a gcc2
19297    builtin and then its argument prototype would still apply.  */
19298 char strftime ();
19299 int
19300 main ()
19301 {
19302 strftime ();
19303   ;
19304   return 0;
19305 }
19306 _ACEOF
19307 rm -f conftest.$ac_objext conftest$ac_exeext
19308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19309   (eval $ac_link) 2>conftest.er1
19310   ac_status=$?
19311   grep -v '^ *+' conftest.er1 >conftest.err
19312   rm -f conftest.er1
19313   cat conftest.err >&5
19314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315   (exit $ac_status); } &&
19316          { ac_try='test -z "$ac_c_werror_flag"
19317                          || test ! -s conftest.err'
19318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319   (eval $ac_try) 2>&5
19320   ac_status=$?
19321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322   (exit $ac_status); }; } &&
19323          { ac_try='test -s conftest$ac_exeext'
19324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325   (eval $ac_try) 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); }; }; then
19329   ac_cv_lib_intl_strftime=yes
19330 else
19331   echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19333
19334 ac_cv_lib_intl_strftime=no
19335 fi
19336 rm -f conftest.err conftest.$ac_objext \
19337       conftest$ac_exeext conftest.$ac_ext
19338 LIBS=$ac_check_lib_save_LIBS
19339 fi
19340 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19341 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19342 if test $ac_cv_lib_intl_strftime = yes; then
19343   cat >>confdefs.h <<\_ACEOF
19344 #define HAVE_STRFTIME 1
19345 _ACEOF
19346
19347 LIBS="-lintl $LIBS"
19348 fi
19349
19350 fi
19351 done
19352
19353
19354 for ac_func in vprintf
19355 do
19356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19357 echo "$as_me:$LINENO: checking for $ac_func" >&5
19358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19359 if eval "test \"\${$as_ac_var+set}\" = set"; then
19360   echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362   cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h.  */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h.  */
19368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19370 #define $ac_func innocuous_$ac_func
19371
19372 /* System header to define __stub macros and hopefully few prototypes,
19373     which can conflict with char $ac_func (); below.
19374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19375     <limits.h> exists even on freestanding compilers.  */
19376
19377 #ifdef __STDC__
19378 # include <limits.h>
19379 #else
19380 # include <assert.h>
19381 #endif
19382
19383 #undef $ac_func
19384
19385 /* Override any gcc2 internal prototype to avoid an error.  */
19386 #ifdef __cplusplus
19387 extern "C"
19388 {
19389 #endif
19390 /* We use char because int might match the return type of a gcc2
19391    builtin and then its argument prototype would still apply.  */
19392 char $ac_func ();
19393 /* The GNU C library defines this for functions which it implements
19394     to always fail with ENOSYS.  Some functions are actually named
19395     something starting with __ and the normal name is an alias.  */
19396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19397 choke me
19398 #else
19399 char (*f) () = $ac_func;
19400 #endif
19401 #ifdef __cplusplus
19402 }
19403 #endif
19404
19405 int
19406 main ()
19407 {
19408 return f != $ac_func;
19409   ;
19410   return 0;
19411 }
19412 _ACEOF
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19415   (eval $ac_link) 2>conftest.er1
19416   ac_status=$?
19417   grep -v '^ *+' conftest.er1 >conftest.err
19418   rm -f conftest.er1
19419   cat conftest.err >&5
19420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421   (exit $ac_status); } &&
19422          { ac_try='test -z "$ac_c_werror_flag"
19423                          || test ! -s conftest.err'
19424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425   (eval $ac_try) 2>&5
19426   ac_status=$?
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); }; } &&
19429          { ac_try='test -s conftest$ac_exeext'
19430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431   (eval $ac_try) 2>&5
19432   ac_status=$?
19433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434   (exit $ac_status); }; }; then
19435   eval "$as_ac_var=yes"
19436 else
19437   echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19439
19440 eval "$as_ac_var=no"
19441 fi
19442 rm -f conftest.err conftest.$ac_objext \
19443       conftest$ac_exeext conftest.$ac_ext
19444 fi
19445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19447 if test `eval echo '${'$as_ac_var'}'` = yes; then
19448   cat >>confdefs.h <<_ACEOF
19449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19450 _ACEOF
19451
19452 echo "$as_me:$LINENO: checking for _doprnt" >&5
19453 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19454 if test "${ac_cv_func__doprnt+set}" = set; then
19455   echo $ECHO_N "(cached) $ECHO_C" >&6
19456 else
19457   cat >conftest.$ac_ext <<_ACEOF
19458 /* confdefs.h.  */
19459 _ACEOF
19460 cat confdefs.h >>conftest.$ac_ext
19461 cat >>conftest.$ac_ext <<_ACEOF
19462 /* end confdefs.h.  */
19463 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19465 #define _doprnt innocuous__doprnt
19466
19467 /* System header to define __stub macros and hopefully few prototypes,
19468     which can conflict with char _doprnt (); below.
19469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19470     <limits.h> exists even on freestanding compilers.  */
19471
19472 #ifdef __STDC__
19473 # include <limits.h>
19474 #else
19475 # include <assert.h>
19476 #endif
19477
19478 #undef _doprnt
19479
19480 /* Override any gcc2 internal prototype to avoid an error.  */
19481 #ifdef __cplusplus
19482 extern "C"
19483 {
19484 #endif
19485 /* We use char because int might match the return type of a gcc2
19486    builtin and then its argument prototype would still apply.  */
19487 char _doprnt ();
19488 /* The GNU C library defines this for functions which it implements
19489     to always fail with ENOSYS.  Some functions are actually named
19490     something starting with __ and the normal name is an alias.  */
19491 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19492 choke me
19493 #else
19494 char (*f) () = _doprnt;
19495 #endif
19496 #ifdef __cplusplus
19497 }
19498 #endif
19499
19500 int
19501 main ()
19502 {
19503 return f != _doprnt;
19504   ;
19505   return 0;
19506 }
19507 _ACEOF
19508 rm -f conftest.$ac_objext conftest$ac_exeext
19509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19510   (eval $ac_link) 2>conftest.er1
19511   ac_status=$?
19512   grep -v '^ *+' conftest.er1 >conftest.err
19513   rm -f conftest.er1
19514   cat conftest.err >&5
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); } &&
19517          { ac_try='test -z "$ac_c_werror_flag"
19518                          || test ! -s conftest.err'
19519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520   (eval $ac_try) 2>&5
19521   ac_status=$?
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); }; } &&
19524          { ac_try='test -s conftest$ac_exeext'
19525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526   (eval $ac_try) 2>&5
19527   ac_status=$?
19528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529   (exit $ac_status); }; }; then
19530   ac_cv_func__doprnt=yes
19531 else
19532   echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19534
19535 ac_cv_func__doprnt=no
19536 fi
19537 rm -f conftest.err conftest.$ac_objext \
19538       conftest$ac_exeext conftest.$ac_ext
19539 fi
19540 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19541 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19542 if test $ac_cv_func__doprnt = yes; then
19543
19544 cat >>confdefs.h <<\_ACEOF
19545 #define HAVE_DOPRNT 1
19546 _ACEOF
19547
19548 fi
19549
19550 fi
19551 done
19552
19553
19554 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19555 # for constant arguments.  Useless!
19556 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19557 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19558 if test "${ac_cv_working_alloca_h+set}" = set; then
19559   echo $ECHO_N "(cached) $ECHO_C" >&6
19560 else
19561   cat >conftest.$ac_ext <<_ACEOF
19562 /* confdefs.h.  */
19563 _ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h.  */
19567 #include <alloca.h>
19568 int
19569 main ()
19570 {
19571 char *p = (char *) alloca (2 * sizeof (int));
19572   ;
19573   return 0;
19574 }
19575 _ACEOF
19576 rm -f conftest.$ac_objext conftest$ac_exeext
19577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19578   (eval $ac_link) 2>conftest.er1
19579   ac_status=$?
19580   grep -v '^ *+' conftest.er1 >conftest.err
19581   rm -f conftest.er1
19582   cat conftest.err >&5
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); } &&
19585          { ac_try='test -z "$ac_c_werror_flag"
19586                          || test ! -s conftest.err'
19587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588   (eval $ac_try) 2>&5
19589   ac_status=$?
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); }; } &&
19592          { ac_try='test -s conftest$ac_exeext'
19593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594   (eval $ac_try) 2>&5
19595   ac_status=$?
19596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597   (exit $ac_status); }; }; then
19598   ac_cv_working_alloca_h=yes
19599 else
19600   echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603 ac_cv_working_alloca_h=no
19604 fi
19605 rm -f conftest.err conftest.$ac_objext \
19606       conftest$ac_exeext conftest.$ac_ext
19607 fi
19608 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19609 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19610 if test $ac_cv_working_alloca_h = yes; then
19611
19612 cat >>confdefs.h <<\_ACEOF
19613 #define HAVE_ALLOCA_H 1
19614 _ACEOF
19615
19616 fi
19617
19618 echo "$as_me:$LINENO: checking for alloca" >&5
19619 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19620 if test "${ac_cv_func_alloca_works+set}" = set; then
19621   echo $ECHO_N "(cached) $ECHO_C" >&6
19622 else
19623   cat >conftest.$ac_ext <<_ACEOF
19624 /* confdefs.h.  */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h.  */
19629 #ifdef __GNUC__
19630 # define alloca __builtin_alloca
19631 #else
19632 # ifdef _MSC_VER
19633 #  include <malloc.h>
19634 #  define alloca _alloca
19635 # else
19636 #  if HAVE_ALLOCA_H
19637 #   include <alloca.h>
19638 #  else
19639 #   ifdef _AIX
19640  #pragma alloca
19641 #   else
19642 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19643 char *alloca ();
19644 #    endif
19645 #   endif
19646 #  endif
19647 # endif
19648 #endif
19649
19650 int
19651 main ()
19652 {
19653 char *p = (char *) alloca (1);
19654   ;
19655   return 0;
19656 }
19657 _ACEOF
19658 rm -f conftest.$ac_objext conftest$ac_exeext
19659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19660   (eval $ac_link) 2>conftest.er1
19661   ac_status=$?
19662   grep -v '^ *+' conftest.er1 >conftest.err
19663   rm -f conftest.er1
19664   cat conftest.err >&5
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); } &&
19667          { ac_try='test -z "$ac_c_werror_flag"
19668                          || test ! -s conftest.err'
19669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670   (eval $ac_try) 2>&5
19671   ac_status=$?
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); }; } &&
19674          { ac_try='test -s conftest$ac_exeext'
19675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19676   (eval $ac_try) 2>&5
19677   ac_status=$?
19678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679   (exit $ac_status); }; }; then
19680   ac_cv_func_alloca_works=yes
19681 else
19682   echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.$ac_ext >&5
19684
19685 ac_cv_func_alloca_works=no
19686 fi
19687 rm -f conftest.err conftest.$ac_objext \
19688       conftest$ac_exeext conftest.$ac_ext
19689 fi
19690 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19691 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19692
19693 if test $ac_cv_func_alloca_works = yes; then
19694
19695 cat >>confdefs.h <<\_ACEOF
19696 #define HAVE_ALLOCA 1
19697 _ACEOF
19698
19699 else
19700   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19701 # that cause trouble.  Some versions do not even contain alloca or
19702 # contain a buggy version.  If you still want to use their alloca,
19703 # use ar to extract alloca.o from them instead of compiling alloca.c.
19704
19705 ALLOCA=alloca.$ac_objext
19706
19707 cat >>confdefs.h <<\_ACEOF
19708 #define C_ALLOCA 1
19709 _ACEOF
19710
19711
19712 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19713 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19714 if test "${ac_cv_os_cray+set}" = set; then
19715   echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717   cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723 #if defined(CRAY) && ! defined(CRAY2)
19724 webecray
19725 #else
19726 wenotbecray
19727 #endif
19728
19729 _ACEOF
19730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19731   $EGREP "webecray" >/dev/null 2>&1; then
19732   ac_cv_os_cray=yes
19733 else
19734   ac_cv_os_cray=no
19735 fi
19736 rm -f conftest*
19737
19738 fi
19739 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19740 echo "${ECHO_T}$ac_cv_os_cray" >&6
19741 if test $ac_cv_os_cray = yes; then
19742   for ac_func in _getb67 GETB67 getb67; do
19743     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19744 echo "$as_me:$LINENO: checking for $ac_func" >&5
19745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19746 if eval "test \"\${$as_ac_var+set}\" = set"; then
19747   echo $ECHO_N "(cached) $ECHO_C" >&6
19748 else
19749   cat >conftest.$ac_ext <<_ACEOF
19750 /* confdefs.h.  */
19751 _ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h.  */
19755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19757 #define $ac_func innocuous_$ac_func
19758
19759 /* System header to define __stub macros and hopefully few prototypes,
19760     which can conflict with char $ac_func (); below.
19761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19762     <limits.h> exists even on freestanding compilers.  */
19763
19764 #ifdef __STDC__
19765 # include <limits.h>
19766 #else
19767 # include <assert.h>
19768 #endif
19769
19770 #undef $ac_func
19771
19772 /* Override any gcc2 internal prototype to avoid an error.  */
19773 #ifdef __cplusplus
19774 extern "C"
19775 {
19776 #endif
19777 /* We use char because int might match the return type of a gcc2
19778    builtin and then its argument prototype would still apply.  */
19779 char $ac_func ();
19780 /* The GNU C library defines this for functions which it implements
19781     to always fail with ENOSYS.  Some functions are actually named
19782     something starting with __ and the normal name is an alias.  */
19783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19784 choke me
19785 #else
19786 char (*f) () = $ac_func;
19787 #endif
19788 #ifdef __cplusplus
19789 }
19790 #endif
19791
19792 int
19793 main ()
19794 {
19795 return f != $ac_func;
19796   ;
19797   return 0;
19798 }
19799 _ACEOF
19800 rm -f conftest.$ac_objext conftest$ac_exeext
19801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19802   (eval $ac_link) 2>conftest.er1
19803   ac_status=$?
19804   grep -v '^ *+' conftest.er1 >conftest.err
19805   rm -f conftest.er1
19806   cat conftest.err >&5
19807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808   (exit $ac_status); } &&
19809          { ac_try='test -z "$ac_c_werror_flag"
19810                          || test ! -s conftest.err'
19811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812   (eval $ac_try) 2>&5
19813   ac_status=$?
19814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815   (exit $ac_status); }; } &&
19816          { ac_try='test -s conftest$ac_exeext'
19817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19818   (eval $ac_try) 2>&5
19819   ac_status=$?
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); }; }; then
19822   eval "$as_ac_var=yes"
19823 else
19824   echo "$as_me: failed program was:" >&5
19825 sed 's/^/| /' conftest.$ac_ext >&5
19826
19827 eval "$as_ac_var=no"
19828 fi
19829 rm -f conftest.err conftest.$ac_objext \
19830       conftest$ac_exeext conftest.$ac_ext
19831 fi
19832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19834 if test `eval echo '${'$as_ac_var'}'` = yes; then
19835
19836 cat >>confdefs.h <<_ACEOF
19837 #define CRAY_STACKSEG_END $ac_func
19838 _ACEOF
19839
19840     break
19841 fi
19842
19843   done
19844 fi
19845
19846 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19847 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19848 if test "${ac_cv_c_stack_direction+set}" = set; then
19849   echo $ECHO_N "(cached) $ECHO_C" >&6
19850 else
19851   if test "$cross_compiling" = yes; then
19852   ac_cv_c_stack_direction=0
19853 else
19854   cat >conftest.$ac_ext <<_ACEOF
19855 /* confdefs.h.  */
19856 _ACEOF
19857 cat confdefs.h >>conftest.$ac_ext
19858 cat >>conftest.$ac_ext <<_ACEOF
19859 /* end confdefs.h.  */
19860 int
19861 find_stack_direction ()
19862 {
19863   static char *addr = 0;
19864   auto char dummy;
19865   if (addr == 0)
19866     {
19867       addr = &dummy;
19868       return find_stack_direction ();
19869     }
19870   else
19871     return (&dummy > addr) ? 1 : -1;
19872 }
19873
19874 int
19875 main ()
19876 {
19877   exit (find_stack_direction () < 0);
19878 }
19879 _ACEOF
19880 rm -f conftest$ac_exeext
19881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19882   (eval $ac_link) 2>&5
19883   ac_status=$?
19884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887   (eval $ac_try) 2>&5
19888   ac_status=$?
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); }; }; then
19891   ac_cv_c_stack_direction=1
19892 else
19893   echo "$as_me: program exited with status $ac_status" >&5
19894 echo "$as_me: failed program was:" >&5
19895 sed 's/^/| /' conftest.$ac_ext >&5
19896
19897 ( exit $ac_status )
19898 ac_cv_c_stack_direction=-1
19899 fi
19900 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19901 fi
19902 fi
19903 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19904 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19905
19906 cat >>confdefs.h <<_ACEOF
19907 #define STACK_DIRECTION $ac_cv_c_stack_direction
19908 _ACEOF
19909
19910
19911 fi
19912
19913 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19914 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19915 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19916 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19917   echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919   ac_check_lib_save_LIBS=$LIBS
19920 LIBS="-lsun  $LIBS"
19921 cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h.  */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h.  */
19927
19928 /* Override any gcc2 internal prototype to avoid an error.  */
19929 #ifdef __cplusplus
19930 extern "C"
19931 #endif
19932 /* We use char because int might match the return type of a gcc2
19933    builtin and then its argument prototype would still apply.  */
19934 char getmntent ();
19935 int
19936 main ()
19937 {
19938 getmntent ();
19939   ;
19940   return 0;
19941 }
19942 _ACEOF
19943 rm -f conftest.$ac_objext conftest$ac_exeext
19944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19945   (eval $ac_link) 2>conftest.er1
19946   ac_status=$?
19947   grep -v '^ *+' conftest.er1 >conftest.err
19948   rm -f conftest.er1
19949   cat conftest.err >&5
19950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951   (exit $ac_status); } &&
19952          { ac_try='test -z "$ac_c_werror_flag"
19953                          || test ! -s conftest.err'
19954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955   (eval $ac_try) 2>&5
19956   ac_status=$?
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); }; } &&
19959          { ac_try='test -s conftest$ac_exeext'
19960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19961   (eval $ac_try) 2>&5
19962   ac_status=$?
19963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964   (exit $ac_status); }; }; then
19965   ac_cv_lib_sun_getmntent=yes
19966 else
19967   echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.$ac_ext >&5
19969
19970 ac_cv_lib_sun_getmntent=no
19971 fi
19972 rm -f conftest.err conftest.$ac_objext \
19973       conftest$ac_exeext conftest.$ac_ext
19974 LIBS=$ac_check_lib_save_LIBS
19975 fi
19976 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19977 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19978 if test $ac_cv_lib_sun_getmntent = yes; then
19979   LIBS="-lsun $LIBS"
19980 else
19981   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19982 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19983 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19984   echo $ECHO_N "(cached) $ECHO_C" >&6
19985 else
19986   ac_check_lib_save_LIBS=$LIBS
19987 LIBS="-lseq  $LIBS"
19988 cat >conftest.$ac_ext <<_ACEOF
19989 /* confdefs.h.  */
19990 _ACEOF
19991 cat confdefs.h >>conftest.$ac_ext
19992 cat >>conftest.$ac_ext <<_ACEOF
19993 /* end confdefs.h.  */
19994
19995 /* Override any gcc2 internal prototype to avoid an error.  */
19996 #ifdef __cplusplus
19997 extern "C"
19998 #endif
19999 /* We use char because int might match the return type of a gcc2
20000    builtin and then its argument prototype would still apply.  */
20001 char getmntent ();
20002 int
20003 main ()
20004 {
20005 getmntent ();
20006   ;
20007   return 0;
20008 }
20009 _ACEOF
20010 rm -f conftest.$ac_objext conftest$ac_exeext
20011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20012   (eval $ac_link) 2>conftest.er1
20013   ac_status=$?
20014   grep -v '^ *+' conftest.er1 >conftest.err
20015   rm -f conftest.er1
20016   cat conftest.err >&5
20017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018   (exit $ac_status); } &&
20019          { ac_try='test -z "$ac_c_werror_flag"
20020                          || test ! -s conftest.err'
20021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022   (eval $ac_try) 2>&5
20023   ac_status=$?
20024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025   (exit $ac_status); }; } &&
20026          { ac_try='test -s conftest$ac_exeext'
20027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20028   (eval $ac_try) 2>&5
20029   ac_status=$?
20030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031   (exit $ac_status); }; }; then
20032   ac_cv_lib_seq_getmntent=yes
20033 else
20034   echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20036
20037 ac_cv_lib_seq_getmntent=no
20038 fi
20039 rm -f conftest.err conftest.$ac_objext \
20040       conftest$ac_exeext conftest.$ac_ext
20041 LIBS=$ac_check_lib_save_LIBS
20042 fi
20043 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20044 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20045 if test $ac_cv_lib_seq_getmntent = yes; then
20046   LIBS="-lseq $LIBS"
20047 else
20048   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20049 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20050 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20051   echo $ECHO_N "(cached) $ECHO_C" >&6
20052 else
20053   ac_check_lib_save_LIBS=$LIBS
20054 LIBS="-lgen  $LIBS"
20055 cat >conftest.$ac_ext <<_ACEOF
20056 /* confdefs.h.  */
20057 _ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h.  */
20061
20062 /* Override any gcc2 internal prototype to avoid an error.  */
20063 #ifdef __cplusplus
20064 extern "C"
20065 #endif
20066 /* We use char because int might match the return type of a gcc2
20067    builtin and then its argument prototype would still apply.  */
20068 char getmntent ();
20069 int
20070 main ()
20071 {
20072 getmntent ();
20073   ;
20074   return 0;
20075 }
20076 _ACEOF
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20079   (eval $ac_link) 2>conftest.er1
20080   ac_status=$?
20081   grep -v '^ *+' conftest.er1 >conftest.err
20082   rm -f conftest.er1
20083   cat conftest.err >&5
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); } &&
20086          { ac_try='test -z "$ac_c_werror_flag"
20087                          || test ! -s conftest.err'
20088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089   (eval $ac_try) 2>&5
20090   ac_status=$?
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); }; } &&
20093          { ac_try='test -s conftest$ac_exeext'
20094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095   (eval $ac_try) 2>&5
20096   ac_status=$?
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); }; }; then
20099   ac_cv_lib_gen_getmntent=yes
20100 else
20101   echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20103
20104 ac_cv_lib_gen_getmntent=no
20105 fi
20106 rm -f conftest.err conftest.$ac_objext \
20107       conftest$ac_exeext conftest.$ac_ext
20108 LIBS=$ac_check_lib_save_LIBS
20109 fi
20110 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20111 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20112 if test $ac_cv_lib_gen_getmntent = yes; then
20113   LIBS="-lgen $LIBS"
20114 fi
20115
20116 fi
20117
20118 fi
20119
20120
20121 for ac_func in getmntent
20122 do
20123 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20124 echo "$as_me:$LINENO: checking for $ac_func" >&5
20125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20126 if eval "test \"\${$as_ac_var+set}\" = set"; then
20127   echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129   cat >conftest.$ac_ext <<_ACEOF
20130 /* confdefs.h.  */
20131 _ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h.  */
20135 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20136    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20137 #define $ac_func innocuous_$ac_func
20138
20139 /* System header to define __stub macros and hopefully few prototypes,
20140     which can conflict with char $ac_func (); below.
20141     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20142     <limits.h> exists even on freestanding compilers.  */
20143
20144 #ifdef __STDC__
20145 # include <limits.h>
20146 #else
20147 # include <assert.h>
20148 #endif
20149
20150 #undef $ac_func
20151
20152 /* Override any gcc2 internal prototype to avoid an error.  */
20153 #ifdef __cplusplus
20154 extern "C"
20155 {
20156 #endif
20157 /* We use char because int might match the return type of a gcc2
20158    builtin and then its argument prototype would still apply.  */
20159 char $ac_func ();
20160 /* The GNU C library defines this for functions which it implements
20161     to always fail with ENOSYS.  Some functions are actually named
20162     something starting with __ and the normal name is an alias.  */
20163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20164 choke me
20165 #else
20166 char (*f) () = $ac_func;
20167 #endif
20168 #ifdef __cplusplus
20169 }
20170 #endif
20171
20172 int
20173 main ()
20174 {
20175 return f != $ac_func;
20176   ;
20177   return 0;
20178 }
20179 _ACEOF
20180 rm -f conftest.$ac_objext conftest$ac_exeext
20181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20182   (eval $ac_link) 2>conftest.er1
20183   ac_status=$?
20184   grep -v '^ *+' conftest.er1 >conftest.err
20185   rm -f conftest.er1
20186   cat conftest.err >&5
20187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188   (exit $ac_status); } &&
20189          { ac_try='test -z "$ac_c_werror_flag"
20190                          || test ! -s conftest.err'
20191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192   (eval $ac_try) 2>&5
20193   ac_status=$?
20194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195   (exit $ac_status); }; } &&
20196          { ac_try='test -s conftest$ac_exeext'
20197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198   (eval $ac_try) 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; }; then
20202   eval "$as_ac_var=yes"
20203 else
20204   echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20206
20207 eval "$as_ac_var=no"
20208 fi
20209 rm -f conftest.err conftest.$ac_objext \
20210       conftest$ac_exeext conftest.$ac_ext
20211 fi
20212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20213 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20214 if test `eval echo '${'$as_ac_var'}'` = yes; then
20215   cat >>confdefs.h <<_ACEOF
20216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20217 _ACEOF
20218
20219 fi
20220 done
20221
20222
20223 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20224 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20225 if test "${ac_cv_func_closedir_void+set}" = set; then
20226   echo $ECHO_N "(cached) $ECHO_C" >&6
20227 else
20228   if test "$cross_compiling" = yes; then
20229   ac_cv_func_closedir_void=yes
20230 else
20231   cat >conftest.$ac_ext <<_ACEOF
20232 /* confdefs.h.  */
20233 _ACEOF
20234 cat confdefs.h >>conftest.$ac_ext
20235 cat >>conftest.$ac_ext <<_ACEOF
20236 /* end confdefs.h.  */
20237 $ac_includes_default
20238 #include <$ac_header_dirent>
20239 #ifndef __cplusplus
20240 int closedir ();
20241 #endif
20242
20243 int
20244 main ()
20245 {
20246 exit (closedir (opendir (".")) != 0);
20247   ;
20248   return 0;
20249 }
20250 _ACEOF
20251 rm -f conftest$ac_exeext
20252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20253   (eval $ac_link) 2>&5
20254   ac_status=$?
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258   (eval $ac_try) 2>&5
20259   ac_status=$?
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); }; }; then
20262   ac_cv_func_closedir_void=no
20263 else
20264   echo "$as_me: program exited with status $ac_status" >&5
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20267
20268 ( exit $ac_status )
20269 ac_cv_func_closedir_void=yes
20270 fi
20271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20272 fi
20273 fi
20274 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20275 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20276 if test $ac_cv_func_closedir_void = yes; then
20277
20278 cat >>confdefs.h <<\_ACEOF
20279 #define CLOSEDIR_VOID 1
20280 _ACEOF
20281
20282 fi
20283
20284 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20285 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20286 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20287   echo $ECHO_N "(cached) $ECHO_C" >&6
20288 else
20289   if test "$cross_compiling" = yes; then
20290   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20291 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20292    { (exit 1); exit 1; }; }
20293 else
20294   cat >conftest.$ac_ext <<_ACEOF
20295 /* confdefs.h.  */
20296 _ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h.  */
20300 #if HAVE_UNISTD_H
20301 # include <unistd.h>
20302 #endif
20303
20304 int
20305 main ()
20306 {
20307 /* If this system has a BSD-style setpgrp which takes arguments,
20308   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20309   exit successfully. */
20310   exit (setpgrp (1,1) == -1 ? 0 : 1);
20311   ;
20312   return 0;
20313 }
20314 _ACEOF
20315 rm -f conftest$ac_exeext
20316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20317   (eval $ac_link) 2>&5
20318   ac_status=$?
20319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20322   (eval $ac_try) 2>&5
20323   ac_status=$?
20324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325   (exit $ac_status); }; }; then
20326   ac_cv_func_setpgrp_void=no
20327 else
20328   echo "$as_me: program exited with status $ac_status" >&5
20329 echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20331
20332 ( exit $ac_status )
20333 ac_cv_func_setpgrp_void=yes
20334 fi
20335 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20336 fi
20337 fi
20338 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20339 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20340 if test $ac_cv_func_setpgrp_void = yes; then
20341
20342 cat >>confdefs.h <<\_ACEOF
20343 #define SETPGRP_VOID 1
20344 _ACEOF
20345
20346 fi
20347                       # AC_FUNC_FNMATCH    dnl use local version
20348
20349
20350 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20351 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20352 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20353   echo $ECHO_N "(cached) $ECHO_C" >&6
20354 else
20355   ac_check_lib_save_LIBS=$LIBS
20356 LIBS="-lxpg4  $LIBS"
20357 cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h.  */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h.  */
20363
20364 /* Override any gcc2 internal prototype to avoid an error.  */
20365 #ifdef __cplusplus
20366 extern "C"
20367 #endif
20368 /* We use char because int might match the return type of a gcc2
20369    builtin and then its argument prototype would still apply.  */
20370 char setlocale ();
20371 int
20372 main ()
20373 {
20374 setlocale ();
20375   ;
20376   return 0;
20377 }
20378 _ACEOF
20379 rm -f conftest.$ac_objext conftest$ac_exeext
20380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20381   (eval $ac_link) 2>conftest.er1
20382   ac_status=$?
20383   grep -v '^ *+' conftest.er1 >conftest.err
20384   rm -f conftest.er1
20385   cat conftest.err >&5
20386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387   (exit $ac_status); } &&
20388          { ac_try='test -z "$ac_c_werror_flag"
20389                          || test ! -s conftest.err'
20390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391   (eval $ac_try) 2>&5
20392   ac_status=$?
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); }; } &&
20395          { ac_try='test -s conftest$ac_exeext'
20396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397   (eval $ac_try) 2>&5
20398   ac_status=$?
20399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400   (exit $ac_status); }; }; then
20401   ac_cv_lib_xpg4_setlocale=yes
20402 else
20403   echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20405
20406 ac_cv_lib_xpg4_setlocale=no
20407 fi
20408 rm -f conftest.err conftest.$ac_objext \
20409       conftest$ac_exeext conftest.$ac_ext
20410 LIBS=$ac_check_lib_save_LIBS
20411 fi
20412 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20413 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20414 if test $ac_cv_lib_xpg4_setlocale = yes; then
20415   LIBS="$LIBS -lxpg4"
20416 fi
20417
20418
20419
20420
20421 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20422 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20423 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20424   echo $ECHO_N "(cached) $ECHO_C" >&6
20425 else
20426   ac_check_lib_save_LIBS=$LIBS
20427 LIBS="-lsun  $LIBS"
20428 cat >conftest.$ac_ext <<_ACEOF
20429 /* confdefs.h.  */
20430 _ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h.  */
20434
20435 /* Override any gcc2 internal prototype to avoid an error.  */
20436 #ifdef __cplusplus
20437 extern "C"
20438 #endif
20439 /* We use char because int might match the return type of a gcc2
20440    builtin and then its argument prototype would still apply.  */
20441 char getpwnam ();
20442 int
20443 main ()
20444 {
20445 getpwnam ();
20446   ;
20447   return 0;
20448 }
20449 _ACEOF
20450 rm -f conftest.$ac_objext conftest$ac_exeext
20451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20452   (eval $ac_link) 2>conftest.er1
20453   ac_status=$?
20454   grep -v '^ *+' conftest.er1 >conftest.err
20455   rm -f conftest.er1
20456   cat conftest.err >&5
20457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458   (exit $ac_status); } &&
20459          { ac_try='test -z "$ac_c_werror_flag"
20460                          || test ! -s conftest.err'
20461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462   (eval $ac_try) 2>&5
20463   ac_status=$?
20464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465   (exit $ac_status); }; } &&
20466          { ac_try='test -s conftest$ac_exeext'
20467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468   (eval $ac_try) 2>&5
20469   ac_status=$?
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); }; }; then
20472   ac_cv_lib_sun_getpwnam=yes
20473 else
20474   echo "$as_me: failed program was:" >&5
20475 sed 's/^/| /' conftest.$ac_ext >&5
20476
20477 ac_cv_lib_sun_getpwnam=no
20478 fi
20479 rm -f conftest.err conftest.$ac_objext \
20480       conftest$ac_exeext conftest.$ac_ext
20481 LIBS=$ac_check_lib_save_LIBS
20482 fi
20483 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20484 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20485 if test $ac_cv_lib_sun_getpwnam = yes; then
20486   cat >>confdefs.h <<_ACEOF
20487 #define HAVE_LIBSUN 1
20488 _ACEOF
20489
20490   LIBS="-lsun $LIBS"
20491
20492 fi
20493
20494
20495
20496 for ac_header in zlib.h
20497 do
20498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20500   echo "$as_me:$LINENO: checking for $ac_header" >&5
20501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20503   echo $ECHO_N "(cached) $ECHO_C" >&6
20504 fi
20505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20507 else
20508   # Is the header compilable?
20509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20511 cat >conftest.$ac_ext <<_ACEOF
20512 /* confdefs.h.  */
20513 _ACEOF
20514 cat confdefs.h >>conftest.$ac_ext
20515 cat >>conftest.$ac_ext <<_ACEOF
20516 /* end confdefs.h.  */
20517 $ac_includes_default
20518 #include <$ac_header>
20519 _ACEOF
20520 rm -f conftest.$ac_objext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20522   (eval $ac_compile) 2>conftest.er1
20523   ac_status=$?
20524   grep -v '^ *+' conftest.er1 >conftest.err
20525   rm -f conftest.er1
20526   cat conftest.err >&5
20527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528   (exit $ac_status); } &&
20529          { ac_try='test -z "$ac_c_werror_flag"
20530                          || test ! -s conftest.err'
20531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532   (eval $ac_try) 2>&5
20533   ac_status=$?
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); }; } &&
20536          { ac_try='test -s conftest.$ac_objext'
20537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538   (eval $ac_try) 2>&5
20539   ac_status=$?
20540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541   (exit $ac_status); }; }; then
20542   ac_header_compiler=yes
20543 else
20544   echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20546
20547 ac_header_compiler=no
20548 fi
20549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20551 echo "${ECHO_T}$ac_header_compiler" >&6
20552
20553 # Is the header present?
20554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20556 cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h.  */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h.  */
20562 #include <$ac_header>
20563 _ACEOF
20564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20565   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20566   ac_status=$?
20567   grep -v '^ *+' conftest.er1 >conftest.err
20568   rm -f conftest.er1
20569   cat conftest.err >&5
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); } >/dev/null; then
20572   if test -s conftest.err; then
20573     ac_cpp_err=$ac_c_preproc_warn_flag
20574     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20575   else
20576     ac_cpp_err=
20577   fi
20578 else
20579   ac_cpp_err=yes
20580 fi
20581 if test -z "$ac_cpp_err"; then
20582   ac_header_preproc=yes
20583 else
20584   echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.$ac_ext >&5
20586
20587   ac_header_preproc=no
20588 fi
20589 rm -f conftest.err conftest.$ac_ext
20590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20591 echo "${ECHO_T}$ac_header_preproc" >&6
20592
20593 # So?  What about this header?
20594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20595   yes:no: )
20596     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20600     ac_header_preproc=yes
20601     ;;
20602   no:yes:* )
20603     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20605     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20606 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20607     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20609     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20610 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20613     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20615     (
20616       cat <<\_ASBOX
20617 ## ------------------------------------------ ##
20618 ## Report this to the AC_PACKAGE_NAME lists.  ##
20619 ## ------------------------------------------ ##
20620 _ASBOX
20621     ) |
20622       sed "s/^/$as_me: WARNING:     /" >&2
20623     ;;
20624 esac
20625 echo "$as_me:$LINENO: checking for $ac_header" >&5
20626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20628   echo $ECHO_N "(cached) $ECHO_C" >&6
20629 else
20630   eval "$as_ac_Header=\$ac_header_preproc"
20631 fi
20632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20634
20635 fi
20636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20637   cat >>confdefs.h <<_ACEOF
20638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20639 _ACEOF
20640
20641 fi
20642
20643 done
20644
20645 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20646 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20647 if test "${ac_cv_lib_z_deflate+set}" = set; then
20648   echo $ECHO_N "(cached) $ECHO_C" >&6
20649 else
20650   ac_check_lib_save_LIBS=$LIBS
20651 LIBS="-lz  $LIBS"
20652 cat >conftest.$ac_ext <<_ACEOF
20653 /* confdefs.h.  */
20654 _ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h.  */
20658
20659 /* Override any gcc2 internal prototype to avoid an error.  */
20660 #ifdef __cplusplus
20661 extern "C"
20662 #endif
20663 /* We use char because int might match the return type of a gcc2
20664    builtin and then its argument prototype would still apply.  */
20665 char deflate ();
20666 int
20667 main ()
20668 {
20669 deflate ();
20670   ;
20671   return 0;
20672 }
20673 _ACEOF
20674 rm -f conftest.$ac_objext conftest$ac_exeext
20675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20676   (eval $ac_link) 2>conftest.er1
20677   ac_status=$?
20678   grep -v '^ *+' conftest.er1 >conftest.err
20679   rm -f conftest.er1
20680   cat conftest.err >&5
20681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682   (exit $ac_status); } &&
20683          { ac_try='test -z "$ac_c_werror_flag"
20684                          || test ! -s conftest.err'
20685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686   (eval $ac_try) 2>&5
20687   ac_status=$?
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); }; } &&
20690          { ac_try='test -s conftest$ac_exeext'
20691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692   (eval $ac_try) 2>&5
20693   ac_status=$?
20694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695   (exit $ac_status); }; }; then
20696   ac_cv_lib_z_deflate=yes
20697 else
20698   echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701 ac_cv_lib_z_deflate=no
20702 fi
20703 rm -f conftest.err conftest.$ac_objext \
20704       conftest$ac_exeext conftest.$ac_ext
20705 LIBS=$ac_check_lib_save_LIBS
20706 fi
20707 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20708 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20709 if test $ac_cv_lib_z_deflate = yes; then
20710   FDLIBS="-lz"
20711 fi
20712
20713 have_zlib=no
20714 if test x$FDLIBS = x-lz; then
20715   cat >>confdefs.h <<\_ACEOF
20716 #define HAVE_LIBZ 1
20717 _ACEOF
20718
20719   have_zlib=yes
20720 fi
20721
20722 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20723   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20724 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20725 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20726   echo $ECHO_N "(cached) $ECHO_C" >&6
20727 fi
20728 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20729 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20730 else
20731   # Is the header compilable?
20732 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20733 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20734 cat >conftest.$ac_ext <<_ACEOF
20735 /* confdefs.h.  */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h.  */
20740 $ac_includes_default
20741 #include <sys/acl.h>
20742 _ACEOF
20743 rm -f conftest.$ac_objext
20744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20745   (eval $ac_compile) 2>conftest.er1
20746   ac_status=$?
20747   grep -v '^ *+' conftest.er1 >conftest.err
20748   rm -f conftest.er1
20749   cat conftest.err >&5
20750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751   (exit $ac_status); } &&
20752          { ac_try='test -z "$ac_c_werror_flag"
20753                          || test ! -s conftest.err'
20754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755   (eval $ac_try) 2>&5
20756   ac_status=$?
20757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758   (exit $ac_status); }; } &&
20759          { ac_try='test -s conftest.$ac_objext'
20760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761   (eval $ac_try) 2>&5
20762   ac_status=$?
20763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764   (exit $ac_status); }; }; then
20765   ac_header_compiler=yes
20766 else
20767   echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20769
20770 ac_header_compiler=no
20771 fi
20772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20774 echo "${ECHO_T}$ac_header_compiler" >&6
20775
20776 # Is the header present?
20777 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20778 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20779 cat >conftest.$ac_ext <<_ACEOF
20780 /* confdefs.h.  */
20781 _ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h.  */
20785 #include <sys/acl.h>
20786 _ACEOF
20787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20788   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20789   ac_status=$?
20790   grep -v '^ *+' conftest.er1 >conftest.err
20791   rm -f conftest.er1
20792   cat conftest.err >&5
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); } >/dev/null; then
20795   if test -s conftest.err; then
20796     ac_cpp_err=$ac_c_preproc_warn_flag
20797     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20798   else
20799     ac_cpp_err=
20800   fi
20801 else
20802   ac_cpp_err=yes
20803 fi
20804 if test -z "$ac_cpp_err"; then
20805   ac_header_preproc=yes
20806 else
20807   echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20809
20810   ac_header_preproc=no
20811 fi
20812 rm -f conftest.err conftest.$ac_ext
20813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20814 echo "${ECHO_T}$ac_header_preproc" >&6
20815
20816 # So?  What about this header?
20817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20818   yes:no: )
20819     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20820 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20821     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20822 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20823     ac_header_preproc=yes
20824     ;;
20825   no:yes:* )
20826     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20827 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20828     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20829 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20830     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20831 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20832     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20833 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20834     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20835 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20836     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20837 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20838     (
20839       cat <<\_ASBOX
20840 ## ------------------------------------------ ##
20841 ## Report this to the AC_PACKAGE_NAME lists.  ##
20842 ## ------------------------------------------ ##
20843 _ASBOX
20844     ) |
20845       sed "s/^/$as_me: WARNING:     /" >&2
20846     ;;
20847 esac
20848 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20849 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20850 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20851   echo $ECHO_N "(cached) $ECHO_C" >&6
20852 else
20853   ac_cv_header_sys_acl_h=$ac_header_preproc
20854 fi
20855 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20856 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20857
20858 fi
20859
20860
20861 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20862 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20863 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20864   echo $ECHO_N "(cached) $ECHO_C" >&6
20865 else
20866   ac_check_lib_save_LIBS=$LIBS
20867 LIBS="-lacl  $LIBS"
20868 cat >conftest.$ac_ext <<_ACEOF
20869 /* confdefs.h.  */
20870 _ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h.  */
20874
20875 /* Override any gcc2 internal prototype to avoid an error.  */
20876 #ifdef __cplusplus
20877 extern "C"
20878 #endif
20879 /* We use char because int might match the return type of a gcc2
20880    builtin and then its argument prototype would still apply.  */
20881 char acl_get_file ();
20882 int
20883 main ()
20884 {
20885 acl_get_file ();
20886   ;
20887   return 0;
20888 }
20889 _ACEOF
20890 rm -f conftest.$ac_objext conftest$ac_exeext
20891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20892   (eval $ac_link) 2>conftest.er1
20893   ac_status=$?
20894   grep -v '^ *+' conftest.er1 >conftest.err
20895   rm -f conftest.er1
20896   cat conftest.err >&5
20897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898   (exit $ac_status); } &&
20899          { ac_try='test -z "$ac_c_werror_flag"
20900                          || test ! -s conftest.err'
20901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902   (eval $ac_try) 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; } &&
20906          { ac_try='test -s conftest$ac_exeext'
20907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20908   (eval $ac_try) 2>&5
20909   ac_status=$?
20910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911   (exit $ac_status); }; }; then
20912   ac_cv_lib_acl_acl_get_file=yes
20913 else
20914   echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20916
20917 ac_cv_lib_acl_acl_get_file=no
20918 fi
20919 rm -f conftest.err conftest.$ac_objext \
20920       conftest$ac_exeext conftest.$ac_ext
20921 LIBS=$ac_check_lib_save_LIBS
20922 fi
20923 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20924 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20925 if test $ac_cv_lib_acl_acl_get_file = yes; then
20926   FDLIBS="-lacl $FDLIBS"
20927 fi
20928
20929 have_acl=no
20930 if test $ac_cv_lib_acl_acl_get_file = yes; then
20931    cat >>confdefs.h <<\_ACEOF
20932 #define HAVE_ACL 1
20933 _ACEOF
20934
20935    have_acl=yes
20936 fi
20937
20938 PTHREAD_LIB=""
20939 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20940 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20941 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20942   echo $ECHO_N "(cached) $ECHO_C" >&6
20943 else
20944   ac_check_lib_save_LIBS=$LIBS
20945 LIBS="-lpthread  $LIBS"
20946 cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h.  */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h.  */
20952
20953 /* Override any gcc2 internal prototype to avoid an error.  */
20954 #ifdef __cplusplus
20955 extern "C"
20956 #endif
20957 /* We use char because int might match the return type of a gcc2
20958    builtin and then its argument prototype would still apply.  */
20959 char pthread_create ();
20960 int
20961 main ()
20962 {
20963 pthread_create ();
20964   ;
20965   return 0;
20966 }
20967 _ACEOF
20968 rm -f conftest.$ac_objext conftest$ac_exeext
20969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20970   (eval $ac_link) 2>conftest.er1
20971   ac_status=$?
20972   grep -v '^ *+' conftest.er1 >conftest.err
20973   rm -f conftest.er1
20974   cat conftest.err >&5
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); } &&
20977          { ac_try='test -z "$ac_c_werror_flag"
20978                          || test ! -s conftest.err'
20979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980   (eval $ac_try) 2>&5
20981   ac_status=$?
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); }; } &&
20984          { ac_try='test -s conftest$ac_exeext'
20985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20986   (eval $ac_try) 2>&5
20987   ac_status=$?
20988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989   (exit $ac_status); }; }; then
20990   ac_cv_lib_pthread_pthread_create=yes
20991 else
20992   echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20994
20995 ac_cv_lib_pthread_pthread_create=no
20996 fi
20997 rm -f conftest.err conftest.$ac_objext \
20998       conftest$ac_exeext conftest.$ac_ext
20999 LIBS=$ac_check_lib_save_LIBS
21000 fi
21001 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21002 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
21003 if test $ac_cv_lib_pthread_pthread_create = yes; then
21004   PTHREAD_LIB="-lpthread"
21005 else
21006   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
21007 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
21008 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
21009   echo $ECHO_N "(cached) $ECHO_C" >&6
21010 else
21011   ac_check_lib_save_LIBS=$LIBS
21012 LIBS="-lpthreads  $LIBS"
21013 cat >conftest.$ac_ext <<_ACEOF
21014 /* confdefs.h.  */
21015 _ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h.  */
21019
21020 /* Override any gcc2 internal prototype to avoid an error.  */
21021 #ifdef __cplusplus
21022 extern "C"
21023 #endif
21024 /* We use char because int might match the return type of a gcc2
21025    builtin and then its argument prototype would still apply.  */
21026 char pthread_create ();
21027 int
21028 main ()
21029 {
21030 pthread_create ();
21031   ;
21032   return 0;
21033 }
21034 _ACEOF
21035 rm -f conftest.$ac_objext conftest$ac_exeext
21036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21037   (eval $ac_link) 2>conftest.er1
21038   ac_status=$?
21039   grep -v '^ *+' conftest.er1 >conftest.err
21040   rm -f conftest.er1
21041   cat conftest.err >&5
21042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043   (exit $ac_status); } &&
21044          { ac_try='test -z "$ac_c_werror_flag"
21045                          || test ! -s conftest.err'
21046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047   (eval $ac_try) 2>&5
21048   ac_status=$?
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); }; } &&
21051          { ac_try='test -s conftest$ac_exeext'
21052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053   (eval $ac_try) 2>&5
21054   ac_status=$?
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); }; }; then
21057   ac_cv_lib_pthreads_pthread_create=yes
21058 else
21059   echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21061
21062 ac_cv_lib_pthreads_pthread_create=no
21063 fi
21064 rm -f conftest.err conftest.$ac_objext \
21065       conftest$ac_exeext conftest.$ac_ext
21066 LIBS=$ac_check_lib_save_LIBS
21067 fi
21068 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21069 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21070 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21071   PTHREAD_LIB="-lpthreads"
21072 else
21073   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21074 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21075 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21076   echo $ECHO_N "(cached) $ECHO_C" >&6
21077 else
21078   ac_check_lib_save_LIBS=$LIBS
21079 LIBS="-lc_r  $LIBS"
21080 cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h.  */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h.  */
21086
21087 /* Override any gcc2 internal prototype to avoid an error.  */
21088 #ifdef __cplusplus
21089 extern "C"
21090 #endif
21091 /* We use char because int might match the return type of a gcc2
21092    builtin and then its argument prototype would still apply.  */
21093 char pthread_create ();
21094 int
21095 main ()
21096 {
21097 pthread_create ();
21098   ;
21099   return 0;
21100 }
21101 _ACEOF
21102 rm -f conftest.$ac_objext conftest$ac_exeext
21103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21104   (eval $ac_link) 2>conftest.er1
21105   ac_status=$?
21106   grep -v '^ *+' conftest.er1 >conftest.err
21107   rm -f conftest.er1
21108   cat conftest.err >&5
21109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110   (exit $ac_status); } &&
21111          { ac_try='test -z "$ac_c_werror_flag"
21112                          || test ! -s conftest.err'
21113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114   (eval $ac_try) 2>&5
21115   ac_status=$?
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); }; } &&
21118          { ac_try='test -s conftest$ac_exeext'
21119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120   (eval $ac_try) 2>&5
21121   ac_status=$?
21122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123   (exit $ac_status); }; }; then
21124   ac_cv_lib_c_r_pthread_create=yes
21125 else
21126   echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21128
21129 ac_cv_lib_c_r_pthread_create=no
21130 fi
21131 rm -f conftest.err conftest.$ac_objext \
21132       conftest$ac_exeext conftest.$ac_ext
21133 LIBS=$ac_check_lib_save_LIBS
21134 fi
21135 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21136 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21137 if test $ac_cv_lib_c_r_pthread_create = yes; then
21138   PTHREAD_LIB="-lc_r"
21139 else
21140   echo "$as_me:$LINENO: checking for pthread_create" >&5
21141 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21142 if test "${ac_cv_func_pthread_create+set}" = set; then
21143   echo $ECHO_N "(cached) $ECHO_C" >&6
21144 else
21145   cat >conftest.$ac_ext <<_ACEOF
21146 /* confdefs.h.  */
21147 _ACEOF
21148 cat confdefs.h >>conftest.$ac_ext
21149 cat >>conftest.$ac_ext <<_ACEOF
21150 /* end confdefs.h.  */
21151 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21153 #define pthread_create innocuous_pthread_create
21154
21155 /* System header to define __stub macros and hopefully few prototypes,
21156     which can conflict with char pthread_create (); below.
21157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21158     <limits.h> exists even on freestanding compilers.  */
21159
21160 #ifdef __STDC__
21161 # include <limits.h>
21162 #else
21163 # include <assert.h>
21164 #endif
21165
21166 #undef pthread_create
21167
21168 /* Override any gcc2 internal prototype to avoid an error.  */
21169 #ifdef __cplusplus
21170 extern "C"
21171 {
21172 #endif
21173 /* We use char because int might match the return type of a gcc2
21174    builtin and then its argument prototype would still apply.  */
21175 char pthread_create ();
21176 /* The GNU C library defines this for functions which it implements
21177     to always fail with ENOSYS.  Some functions are actually named
21178     something starting with __ and the normal name is an alias.  */
21179 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21180 choke me
21181 #else
21182 char (*f) () = pthread_create;
21183 #endif
21184 #ifdef __cplusplus
21185 }
21186 #endif
21187
21188 int
21189 main ()
21190 {
21191 return f != pthread_create;
21192   ;
21193   return 0;
21194 }
21195 _ACEOF
21196 rm -f conftest.$ac_objext conftest$ac_exeext
21197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21198   (eval $ac_link) 2>conftest.er1
21199   ac_status=$?
21200   grep -v '^ *+' conftest.er1 >conftest.err
21201   rm -f conftest.er1
21202   cat conftest.err >&5
21203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21204   (exit $ac_status); } &&
21205          { ac_try='test -z "$ac_c_werror_flag"
21206                          || test ! -s conftest.err'
21207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208   (eval $ac_try) 2>&5
21209   ac_status=$?
21210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211   (exit $ac_status); }; } &&
21212          { ac_try='test -s conftest$ac_exeext'
21213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214   (eval $ac_try) 2>&5
21215   ac_status=$?
21216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217   (exit $ac_status); }; }; then
21218   ac_cv_func_pthread_create=yes
21219 else
21220   echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21222
21223 ac_cv_func_pthread_create=no
21224 fi
21225 rm -f conftest.err conftest.$ac_objext \
21226       conftest$ac_exeext conftest.$ac_ext
21227 fi
21228 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21229 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21230
21231
21232 fi
21233
21234
21235 fi
21236
21237
21238 fi
21239
21240
21241
21242 cat >>confdefs.h <<\_ACEOF
21243 #define FDLIBS 1
21244 _ACEOF
21245
21246
21247
21248 CFLAGS=${CFLAGS--O}
21249 LDFLAGS=${LDFLAGS--O}
21250 DB_LIBS="${SQL_LFLAGS}"
21251
21252 CPPFLAGS="$CPPFLAGS"
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267 OBJLIST=
21268
21269
21270 lld="lld"
21271 llu="llu"
21272
21273 WCFLAGS=
21274 WLDFLAGS=
21275
21276 #
21277 # Finally we set appropriate distribution specific
21278 #  variables and defaults
21279 #
21280 # PFILES are platform specific files
21281 PFILES="platforms/Makefile"
21282 PSCMD="ps -e"
21283 WIN32=
21284 MACOSX=
21285 hostname=`uname -n | cut -d '.' -f 1`
21286 case "$DISTNAME" in
21287 aix)
21288         DISTVER=`uname -r`
21289         PSCMD="ps -e -o pid,comm"
21290         PFILES="${PFILES} \
21291            platforms/aix/Makefile"
21292         TAPEDRIVE="/dev/rmt0.1"
21293   ;;
21294 alpha)
21295         DISTVER=`uname -r`
21296         PTHREAD_LIB="-lpthread -lexc"
21297         if test "${CC}" = "gcc" ; then
21298            lld="lld"
21299            llu="llu"
21300         else
21301            lld="ld"
21302            llu="lu"
21303         fi
21304         TAPEDRIVE="/dev/nrmt0"
21305   ;;
21306 bsdi)
21307         DISTVER=`uname -a |awk '{print $3}'`
21308         TAPEDRIVE="/dev/nrmt0"
21309         PTHREAD_LIB="-pthread"
21310         CFLAGS="${CFLAGS} -pthread"
21311         PSCMD="ps -x -o pid,command"
21312         lld="qd"
21313         llu="qu"
21314         PFILES="${PFILES} \
21315             platforms/bsdi/Makefile \
21316             platforms/bsdi/bacula-fd \
21317             platforms/bsdi/bacula-sd \
21318             platforms/bsdi/bacula-dir"
21319         largefile_support="yes"
21320   ;;
21321 cygwin)
21322         DISTVER=`uname -a |awk '{print $3}'`
21323         TAPEDRIVE="/dev/nrst0"
21324         WIN32=win32
21325         WCFLAGS="-mwindows"
21326         WLDFLAGS="-mwindows"
21327   ;;
21328 darwin)
21329         DISTVER=`uname -r`
21330         TAPEDRIVE="/dev/nst0"
21331         PSCMD="ps -e -o pid,command"
21332         MACOSX=macosx
21333         PFILES="${PFILES} \
21334            platforms/darwin/Makefile"
21335   ;;
21336 debian)
21337         DISTVER=`cat /etc/debian_version`
21338         TAPEDRIVE="/dev/nrst0"
21339         PSCMD="ps -e -o pid,command"
21340   ;;
21341 freebsd)
21342         DISTVER=`uname -a |awk '{print $3}'`
21343         VER=`echo $DISTVER | cut -c 1`
21344         if test x$VER = x4 ; then
21345            PTHREAD_LIB="-pthread"
21346            CFLAGS="${CFLAGS} -pthread"
21347         fi
21348         lld="qd"
21349         llu="qu"
21350         TAPEDRIVE="/dev/nrsa0"
21351         PSCMD="ps -x -o pid,command"
21352         PFILES="${PFILES} \
21353             platforms/freebsd/Makefile \
21354             platforms/freebsd/bacula-fd \
21355             platforms/freebsd/bacula-sd \
21356             platforms/freebsd/bacula-dir"
21357         largefile_support="yes"
21358   ;;
21359 hpux)
21360         PSCMD="UNIX95=1 ps -e -o pid,comm"
21361         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21362         DISTVER=`uname -r`
21363         TAPEDRIVE="/dev/rmt/0hnb"
21364         PTHREAD_LIB="-lpthread"
21365         cat >>confdefs.h <<\_ACEOF
21366 #define _INCLUDE_LONGLONG 1
21367 _ACEOF
21368
21369   ;;
21370 irix)
21371         DISTVER=`uname -r`
21372         TAPEDRIVE="/dev/rmt/0cbn"
21373         PSCMD="ps -e -o pid,comm"
21374         PFILES="${PFILES} \
21375             platforms/irix/Makefile \
21376             platforms/irix/bacula-fd \
21377             platforms/irix/bacula-sd \
21378             platforms/irix/bacula-dir"
21379   ;;
21380 netbsd)
21381         DISTVER=`uname -a |awk '{print $3}'`
21382         lld="qd"
21383         llu="qu"
21384         TAPEDRIVE="/dev/nrst0"
21385         PSCMD="ps -a -o pid,command"
21386         PTHREAD_LIB="-pthread"
21387         CFLAGS="${CFLAGS} -pthread"
21388   ;;
21389 openbsd)
21390         DISTVER=`uname -a |awk '{print $3}'`
21391         lld="qd"
21392         llu="qu"
21393         TAPEDRIVE="/dev/nrst0"
21394         PSCMD="ps -ax -o pid,command"
21395         PTHREAD_LIB="-pthread"
21396         CFLAGS="${CFLAGS} -pthread"
21397         PFILES="${PFILES} \
21398             platforms/openbsd/Makefile \
21399             platforms/openbsd/bacula-fd \
21400             platforms/openbsd/bacula-sd \
21401             platforms/openbsd/bacula-dir"
21402   ;;
21403 redhat)
21404         if test -f /etc/whitebox-release ; then
21405            f=/etc/whitebox-release
21406         else
21407            f=/etc/redhat-release
21408         fi
21409         if test `cat $f | grep release |\
21410                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21411            DISTVER="Enterprise "`cat $f | grep release |\
21412                     cut -f 6 -d ' '`
21413         else
21414             DISTVER=`cat /etc/redhat-release | grep release |\
21415                      cut -f 5 -d ' '`
21416         fi
21417         TAPEDRIVE="/dev/nst0"
21418         PSCMD="ps -e -o pid,command"
21419         PFILES="${PFILES} \
21420             platforms/redhat/Makefile \
21421             platforms/redhat/bacula-fd \
21422             platforms/redhat/bacula-sd \
21423             platforms/redhat/bacula-dir \
21424             platforms/redhat/bacula.spec \
21425             "
21426         hostname=`hostname -s`
21427   ;;
21428 mandrake)
21429         DISTVER=`cat /etc/mandrake-release | grep release |\
21430            cut -f 5 -d ' '`
21431         TAPEDRIVE="/dev/nst0"
21432         PSCMD="ps -e -o pid,command"
21433         PFILES="${PFILES} \
21434             platforms/mandrake/Makefile \
21435             platforms/mandrake/bacula-fd \
21436             platforms/mandrake/bacula-sd \
21437             platforms/mandrake/bacula-dir \
21438             platforms/mandrake/bacula.spec \
21439             "
21440   ;;
21441 gentoo)
21442         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21443         TAPEDRIVE="/dev/nst0"
21444         PSCMD="ps -e -o pid,command"
21445         PFILES="${PFILES} \
21446             platforms/gentoo/Makefile \
21447          platforms/gentoo/bacula-init \
21448             platforms/gentoo/bacula-fd \
21449             platforms/gentoo/bacula-sd \
21450             platforms/gentoo/bacula-dir"
21451   ;;
21452 slackware)
21453         DISTVER=`cat /etc/slackware-version`
21454         TAPEDRIVE="/dev/nst0"
21455         PSCMD="ps -e -o pid,command"
21456         PFILES="${PFILES} \
21457             platforms/slackware/Makefile \
21458             platforms/slackware/rc.bacula-fd \
21459             platforms/slackware/rc.bacula-sd \
21460             platforms/slackware/rc.bacula-dir\
21461             platforms/slackware/functions.bacula"
21462   ;;
21463 solaris)
21464         DISTVER=`uname -r`
21465         TAPEDRIVE="/dev/rmt/0cbn"
21466         PSCMD="ps -e -o pid,comm"
21467         PFILES="${PFILES} \
21468             platforms/solaris/Makefile \
21469             platforms/solaris/bacula-fd \
21470             platforms/solaris/bacula-sd \
21471             platforms/solaris/bacula-dir"
21472         if test x$DISTVER = x5.6 ; then
21473             cat >>confdefs.h <<\_ACEOF
21474 #define HAVE_OLD_SOCKOPT 1
21475 _ACEOF
21476
21477         fi
21478         LIBS="$LIBS -lresolv"
21479   ;;
21480 suse)
21481         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21482             cut -f 3 -d ' '`
21483         TAPEDRIVE="/dev/nst0"
21484         PSCMD="ps -e -o pid,command"
21485         PFILES="${PFILES} \
21486             platforms/suse/Makefile \
21487             platforms/suse/bacula-fd \
21488             platforms/suse/bacula-sd \
21489             platforms/suse/bacula-dir \
21490             platforms/suse/bacula \
21491             platforms/suse/bacula.spec"
21492   ;;
21493 suse5)
21494         DISTNAME=suse
21495         DISTVER=5.x
21496         TAPEDRIVE="/dev/nst0"
21497         PSCMD="ps -e -o pid,command"
21498         PFILES="${PFILES} \
21499             platforms/suse/Makefile \
21500             platforms/suse/bacula-fd \
21501             platforms/suse/bacula-sd \
21502             platforms/suse/bacula-dir"
21503   ;;
21504 unknown)
21505         DISTVER=unknown
21506         TAPEDRIVE="/dev/nst0"
21507   ;;
21508 *)
21509   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21510   ;;
21511 esac
21512
21513
21514
21515 LIBS="$PTHREAD_LIB $LIBS"
21516
21517 cat >>confdefs.h <<_ACEOF
21518 #define lld "$lld"
21519 _ACEOF
21520
21521 cat >>confdefs.h <<_ACEOF
21522 #define llu "$llu"
21523 _ACEOF
21524
21525
21526
21527
21528
21529
21530
21531
21532 MCOMMON=./autoconf/Make.common
21533
21534
21535 if test "x${subsysdir}" = "x${sbindir}" ; then
21536    echo " "
21537    echo " "
21538    echo "You have set both --sbindir and --with-subsys-dir"
21539    echo "  equal to: ${subsysdir} "
21540    echo "This is not permitted. Please reconfigure."
21541    echo " "
21542    echo "Aborting configuration ..."
21543    echo " "
21544    echo " "
21545    exit 1
21546 fi
21547
21548                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     ac_config_files="$ac_config_files autoconf/Make.common 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/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf 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/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_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"
21549           ac_config_commands="$ac_config_commands default"
21550 cat >confcache <<\_ACEOF
21551 # This file is a shell script that caches the results of configure
21552 # tests run on this system so they can be shared between configure
21553 # scripts and configure runs, see configure's option --config-cache.
21554 # It is not useful on other systems.  If it contains results you don't
21555 # want to keep, you may remove or edit it.
21556 #
21557 # config.status only pays attention to the cache file if you give it
21558 # the --recheck option to rerun configure.
21559 #
21560 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21561 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21562 # following values.
21563
21564 _ACEOF
21565
21566 # The following way of writing the cache mishandles newlines in values,
21567 # but we know of no workaround that is simple, portable, and efficient.
21568 # So, don't put newlines in cache variables' values.
21569 # Ultrix sh set writes to stderr and can't be redirected directly,
21570 # and sets the high bit in the cache file unless we assign to the vars.
21571 {
21572   (set) 2>&1 |
21573     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21574     *ac_space=\ *)
21575       # `set' does not quote correctly, so add quotes (double-quote
21576       # substitution turns \\\\ into \\, and sed turns \\ into \).
21577       sed -n \
21578         "s/'/'\\\\''/g;
21579           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21580       ;;
21581     *)
21582       # `set' quotes correctly as required by POSIX, so do not add quotes.
21583       sed -n \
21584         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21585       ;;
21586     esac;
21587 } |
21588   sed '
21589      t clear
21590      : clear
21591      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21592      t end
21593      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21594      : end' >>confcache
21595 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21596   if test -w $cache_file; then
21597     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21598     cat confcache >$cache_file
21599   else
21600     echo "not updating unwritable cache $cache_file"
21601   fi
21602 fi
21603 rm -f confcache
21604
21605 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21606 # Let make expand exec_prefix.
21607 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21608
21609 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21610 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21611 # trailing colons and then remove the whole line if VPATH becomes empty
21612 # (actually we leave an empty line to preserve line numbers).
21613 if test "x$srcdir" = x.; then
21614   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21615 s/:*\$(srcdir):*/:/;
21616 s/:*\${srcdir}:*/:/;
21617 s/:*@srcdir@:*/:/;
21618 s/^\([^=]*=[     ]*\):*/\1/;
21619 s/:*$//;
21620 s/^[^=]*=[       ]*$//;
21621 }'
21622 fi
21623
21624 DEFS=-DHAVE_CONFIG_H
21625
21626 ac_libobjs=
21627 ac_ltlibobjs=
21628 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21629   # 1. Remove the extension, and $U if already installed.
21630   ac_i=`echo "$ac_i" |
21631          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21632   # 2. Add them.
21633   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21634   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21635 done
21636 LIBOBJS=$ac_libobjs
21637
21638 LTLIBOBJS=$ac_ltlibobjs
21639
21640
21641
21642 : ${CONFIG_STATUS=./config.status}
21643 ac_clean_files_save=$ac_clean_files
21644 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21645 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21646 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21647 cat >$CONFIG_STATUS <<_ACEOF
21648 #! $SHELL
21649 # Generated by $as_me.
21650 # Run this file to recreate the current configuration.
21651 # Compiler output produced by configure, useful for debugging
21652 # configure, is in config.log if it exists.
21653
21654 debug=false
21655 ac_cs_recheck=false
21656 ac_cs_silent=false
21657 SHELL=\${CONFIG_SHELL-$SHELL}
21658 _ACEOF
21659
21660 cat >>$CONFIG_STATUS <<\_ACEOF
21661 ## --------------------- ##
21662 ## M4sh Initialization.  ##
21663 ## --------------------- ##
21664
21665 # Be Bourne compatible
21666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21667   emulate sh
21668   NULLCMD=:
21669   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21670   # is contrary to our usage.  Disable this feature.
21671   alias -g '${1+"$@"}'='"$@"'
21672 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21673   set -o posix
21674 fi
21675 DUALCASE=1; export DUALCASE # for MKS sh
21676
21677 # Support unset when possible.
21678 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21679   as_unset=unset
21680 else
21681   as_unset=false
21682 fi
21683
21684
21685 # Work around bugs in pre-3.0 UWIN ksh.
21686 $as_unset ENV MAIL MAILPATH
21687 PS1='$ '
21688 PS2='> '
21689 PS4='+ '
21690
21691 # NLS nuisances.
21692 for as_var in \
21693   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21694   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21695   LC_TELEPHONE LC_TIME
21696 do
21697   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21698     eval $as_var=C; export $as_var
21699   else
21700     $as_unset $as_var
21701   fi
21702 done
21703
21704 # Required to use basename.
21705 if expr a : '\(a\)' >/dev/null 2>&1; then
21706   as_expr=expr
21707 else
21708   as_expr=false
21709 fi
21710
21711 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21712   as_basename=basename
21713 else
21714   as_basename=false
21715 fi
21716
21717
21718 # Name of the executable.
21719 as_me=`$as_basename "$0" ||
21720 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21721          X"$0" : 'X\(//\)$' \| \
21722          X"$0" : 'X\(/\)$' \| \
21723          .     : '\(.\)' 2>/dev/null ||
21724 echo X/"$0" |
21725     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21726           /^X\/\(\/\/\)$/{ s//\1/; q; }
21727           /^X\/\(\/\).*/{ s//\1/; q; }
21728           s/.*/./; q'`
21729
21730
21731 # PATH needs CR, and LINENO needs CR and PATH.
21732 # Avoid depending upon Character Ranges.
21733 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21734 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21735 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21736 as_cr_digits='0123456789'
21737 as_cr_alnum=$as_cr_Letters$as_cr_digits
21738
21739 # The user is always right.
21740 if test "${PATH_SEPARATOR+set}" != set; then
21741   echo "#! /bin/sh" >conf$$.sh
21742   echo  "exit 0"   >>conf$$.sh
21743   chmod +x conf$$.sh
21744   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21745     PATH_SEPARATOR=';'
21746   else
21747     PATH_SEPARATOR=:
21748   fi
21749   rm -f conf$$.sh
21750 fi
21751
21752
21753   as_lineno_1=$LINENO
21754   as_lineno_2=$LINENO
21755   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21756   test "x$as_lineno_1" != "x$as_lineno_2" &&
21757   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21758   # Find who we are.  Look in the path if we contain no path at all
21759   # relative or not.
21760   case $0 in
21761     *[\\/]* ) as_myself=$0 ;;
21762     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21763 for as_dir in $PATH
21764 do
21765   IFS=$as_save_IFS
21766   test -z "$as_dir" && as_dir=.
21767   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21768 done
21769
21770        ;;
21771   esac
21772   # We did not find ourselves, most probably we were run as `sh COMMAND'
21773   # in which case we are not to be found in the path.
21774   if test "x$as_myself" = x; then
21775     as_myself=$0
21776   fi
21777   if test ! -f "$as_myself"; then
21778     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21779 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21780    { (exit 1); exit 1; }; }
21781   fi
21782   case $CONFIG_SHELL in
21783   '')
21784     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21785 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21786 do
21787   IFS=$as_save_IFS
21788   test -z "$as_dir" && as_dir=.
21789   for as_base in sh bash ksh sh5; do
21790          case $as_dir in
21791          /*)
21792            if ("$as_dir/$as_base" -c '
21793   as_lineno_1=$LINENO
21794   as_lineno_2=$LINENO
21795   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21796   test "x$as_lineno_1" != "x$as_lineno_2" &&
21797   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21798              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21799              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21800              CONFIG_SHELL=$as_dir/$as_base
21801              export CONFIG_SHELL
21802              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21803            fi;;
21804          esac
21805        done
21806 done
21807 ;;
21808   esac
21809
21810   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21811   # uniformly replaced by the line number.  The first 'sed' inserts a
21812   # line-number line before each line; the second 'sed' does the real
21813   # work.  The second script uses 'N' to pair each line-number line
21814   # with the numbered line, and appends trailing '-' during
21815   # substitution so that $LINENO is not a special case at line end.
21816   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21817   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21818   sed '=' <$as_myself |
21819     sed '
21820       N
21821       s,$,-,
21822       : loop
21823       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21824       t loop
21825       s,-$,,
21826       s,^['$as_cr_digits']*\n,,
21827     ' >$as_me.lineno &&
21828   chmod +x $as_me.lineno ||
21829     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21830 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21831    { (exit 1); exit 1; }; }
21832
21833   # Don't try to exec as it changes $[0], causing all sort of problems
21834   # (the dirname of $[0] is not the place where we might find the
21835   # original and so on.  Autoconf is especially sensible to this).
21836   . ./$as_me.lineno
21837   # Exit status is that of the last command.
21838   exit
21839 }
21840
21841
21842 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21843   *c*,-n*) ECHO_N= ECHO_C='
21844 ' ECHO_T='      ' ;;
21845   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21846   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21847 esac
21848
21849 if expr a : '\(a\)' >/dev/null 2>&1; then
21850   as_expr=expr
21851 else
21852   as_expr=false
21853 fi
21854
21855 rm -f conf$$ conf$$.exe conf$$.file
21856 echo >conf$$.file
21857 if ln -s conf$$.file conf$$ 2>/dev/null; then
21858   # We could just check for DJGPP; but this test a) works b) is more generic
21859   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21860   if test -f conf$$.exe; then
21861     # Don't use ln at all; we don't have any links
21862     as_ln_s='cp -p'
21863   else
21864     as_ln_s='ln -s'
21865   fi
21866 elif ln conf$$.file conf$$ 2>/dev/null; then
21867   as_ln_s=ln
21868 else
21869   as_ln_s='cp -p'
21870 fi
21871 rm -f conf$$ conf$$.exe conf$$.file
21872
21873 if mkdir -p . 2>/dev/null; then
21874   as_mkdir_p=:
21875 else
21876   test -d ./-p && rmdir ./-p
21877   as_mkdir_p=false
21878 fi
21879
21880 as_executable_p="test -f"
21881
21882 # Sed expression to map a string onto a valid CPP name.
21883 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21884
21885 # Sed expression to map a string onto a valid variable name.
21886 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21887
21888
21889 # IFS
21890 # We need space, tab and new line, in precisely that order.
21891 as_nl='
21892 '
21893 IFS="   $as_nl"
21894
21895 # CDPATH.
21896 $as_unset CDPATH
21897
21898 exec 6>&1
21899
21900 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21901 # report actual input values of CONFIG_FILES etc. instead of their
21902 # values after options handling.  Logging --version etc. is OK.
21903 exec 5>>config.log
21904 {
21905   echo
21906   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21907 ## Running $as_me. ##
21908 _ASBOX
21909 } >&5
21910 cat >&5 <<_CSEOF
21911
21912 This file was extended by $as_me, which was
21913 generated by GNU Autoconf 2.59.  Invocation command line was
21914
21915   CONFIG_FILES    = $CONFIG_FILES
21916   CONFIG_HEADERS  = $CONFIG_HEADERS
21917   CONFIG_LINKS    = $CONFIG_LINKS
21918   CONFIG_COMMANDS = $CONFIG_COMMANDS
21919   $ $0 $@
21920
21921 _CSEOF
21922 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21923 echo >&5
21924 _ACEOF
21925
21926 # Files that config.status was made for.
21927 if test -n "$ac_config_files"; then
21928   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21929 fi
21930
21931 if test -n "$ac_config_headers"; then
21932   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21933 fi
21934
21935 if test -n "$ac_config_links"; then
21936   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21937 fi
21938
21939 if test -n "$ac_config_commands"; then
21940   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21941 fi
21942
21943 cat >>$CONFIG_STATUS <<\_ACEOF
21944
21945 ac_cs_usage="\
21946 \`$as_me' instantiates files from templates according to the
21947 current configuration.
21948
21949 Usage: $0 [OPTIONS] [FILE]...
21950
21951   -h, --help       print this help, then exit
21952   -V, --version    print version number, then exit
21953   -q, --quiet      do not print progress messages
21954   -d, --debug      don't remove temporary files
21955       --recheck    update $as_me by reconfiguring in the same conditions
21956   --file=FILE[:TEMPLATE]
21957                    instantiate the configuration file FILE
21958   --header=FILE[:TEMPLATE]
21959                    instantiate the configuration header FILE
21960
21961 Configuration files:
21962 $config_files
21963
21964 Configuration headers:
21965 $config_headers
21966
21967 Configuration commands:
21968 $config_commands
21969
21970 Report bugs to <bug-autoconf@gnu.org>."
21971 _ACEOF
21972
21973 cat >>$CONFIG_STATUS <<_ACEOF
21974 ac_cs_version="\\
21975 config.status
21976 configured by $0, generated by GNU Autoconf 2.59,
21977   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21978
21979 Copyright (C) 2003 Free Software Foundation, Inc.
21980 This config.status script is free software; the Free Software Foundation
21981 gives unlimited permission to copy, distribute and modify it."
21982 srcdir=$srcdir
21983 INSTALL="$INSTALL"
21984 _ACEOF
21985
21986 cat >>$CONFIG_STATUS <<\_ACEOF
21987 # If no file are specified by the user, then we need to provide default
21988 # value.  By we need to know if files were specified by the user.
21989 ac_need_defaults=:
21990 while test $# != 0
21991 do
21992   case $1 in
21993   --*=*)
21994     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21995     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21996     ac_shift=:
21997     ;;
21998   -*)
21999     ac_option=$1
22000     ac_optarg=$2
22001     ac_shift=shift
22002     ;;
22003   *) # This is not an option, so the user has probably given explicit
22004      # arguments.
22005      ac_option=$1
22006      ac_need_defaults=false;;
22007   esac
22008
22009   case $ac_option in
22010   # Handling of the options.
22011 _ACEOF
22012 cat >>$CONFIG_STATUS <<\_ACEOF
22013   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22014     ac_cs_recheck=: ;;
22015   --version | --vers* | -V )
22016     echo "$ac_cs_version"; exit 0 ;;
22017   --he | --h)
22018     # Conflict between --help and --header
22019     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22020 Try \`$0 --help' for more information." >&5
22021 echo "$as_me: error: ambiguous option: $1
22022 Try \`$0 --help' for more information." >&2;}
22023    { (exit 1); exit 1; }; };;
22024   --help | --hel | -h )
22025     echo "$ac_cs_usage"; exit 0 ;;
22026   --debug | --d* | -d )
22027     debug=: ;;
22028   --file | --fil | --fi | --f )
22029     $ac_shift
22030     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22031     ac_need_defaults=false;;
22032   --header | --heade | --head | --hea )
22033     $ac_shift
22034     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22035     ac_need_defaults=false;;
22036   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22037   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22038     ac_cs_silent=: ;;
22039
22040   # This is an error.
22041   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22042 Try \`$0 --help' for more information." >&5
22043 echo "$as_me: error: unrecognized option: $1
22044 Try \`$0 --help' for more information." >&2;}
22045    { (exit 1); exit 1; }; } ;;
22046
22047   *) ac_config_targets="$ac_config_targets $1" ;;
22048
22049   esac
22050   shift
22051 done
22052
22053 ac_configure_extra_args=
22054
22055 if $ac_cs_silent; then
22056   exec 6>/dev/null
22057   ac_configure_extra_args="$ac_configure_extra_args --silent"
22058 fi
22059
22060 _ACEOF
22061 cat >>$CONFIG_STATUS <<_ACEOF
22062 if \$ac_cs_recheck; then
22063   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22064   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22065 fi
22066
22067 _ACEOF
22068
22069
22070
22071
22072
22073 cat >>$CONFIG_STATUS <<\_ACEOF
22074 for ac_config_target in $ac_config_targets
22075 do
22076   case "$ac_config_target" in
22077   # Handling of arguments.
22078   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22079   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22080   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22081   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22082   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22083   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22084   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22085   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22086   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22087   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22088   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22089   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22090   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22091   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22092   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22093   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22094   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22095   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22096   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22097   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22098   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22099   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22100   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22101   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22102   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22103   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22104   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22105   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22106   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22107   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22108   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
22109   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
22110   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22111   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22112   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22113   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22114   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22115   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22116   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22117   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22118   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22119   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22120   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22121   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22122   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22123   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22124   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22125   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22126   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22127   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22128   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22129   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22130   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22131   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22132   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22133   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22134   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22135   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22136   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22137   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22138   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22139   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22140   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22141   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22142   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22143   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22144   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22145   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22146   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22147   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22148   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22149   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22150   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22151   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22152   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22153   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22154   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22155   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22156   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22157   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22158   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22159   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22160   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22161   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22162   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22163   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22164   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22165   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22166   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22167   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22168   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22169   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22170   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22171   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22172   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22173   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22174   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22175   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22176   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22177   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22178   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22179 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22180    { (exit 1); exit 1; }; };;
22181   esac
22182 done
22183
22184 # If the user did not use the arguments to specify the items to instantiate,
22185 # then the envvar interface is used.  Set only those that are not.
22186 # We use the long form for the default assignment because of an extremely
22187 # bizarre bug on SunOS 4.1.3.
22188 if $ac_need_defaults; then
22189   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22190   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22191   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22192 fi
22193
22194 # Have a temporary directory for convenience.  Make it in the build tree
22195 # simply because there is no reason to put it here, and in addition,
22196 # creating and moving files from /tmp can sometimes cause problems.
22197 # Create a temporary directory, and hook for its removal unless debugging.
22198 $debug ||
22199 {
22200   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22201   trap '{ (exit 1); exit 1; }' 1 2 13 15
22202 }
22203
22204 # Create a (secure) tmp directory for tmp files.
22205
22206 {
22207   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22208   test -n "$tmp" && test -d "$tmp"
22209 }  ||
22210 {
22211   tmp=./confstat$$-$RANDOM
22212   (umask 077 && mkdir $tmp)
22213 } ||
22214 {
22215    echo "$me: cannot create a temporary directory in ." >&2
22216    { (exit 1); exit 1; }
22217 }
22218
22219 _ACEOF
22220
22221 cat >>$CONFIG_STATUS <<_ACEOF
22222
22223 #
22224 # CONFIG_FILES section.
22225 #
22226
22227 # No need to generate the scripts if there are no CONFIG_FILES.
22228 # This happens for instance when ./config.status config.h
22229 if test -n "\$CONFIG_FILES"; then
22230   # Protect against being on the right side of a sed subst in config.status.
22231   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22232    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22233 s,@SHELL@,$SHELL,;t t
22234 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22235 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22236 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22237 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22238 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22239 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22240 s,@exec_prefix@,$exec_prefix,;t t
22241 s,@prefix@,$prefix,;t t
22242 s,@program_transform_name@,$program_transform_name,;t t
22243 s,@bindir@,$bindir,;t t
22244 s,@sbindir@,$sbindir,;t t
22245 s,@libexecdir@,$libexecdir,;t t
22246 s,@datadir@,$datadir,;t t
22247 s,@sysconfdir@,$sysconfdir,;t t
22248 s,@sharedstatedir@,$sharedstatedir,;t t
22249 s,@localstatedir@,$localstatedir,;t t
22250 s,@libdir@,$libdir,;t t
22251 s,@includedir@,$includedir,;t t
22252 s,@oldincludedir@,$oldincludedir,;t t
22253 s,@infodir@,$infodir,;t t
22254 s,@mandir@,$mandir,;t t
22255 s,@build_alias@,$build_alias,;t t
22256 s,@host_alias@,$host_alias,;t t
22257 s,@target_alias@,$target_alias,;t t
22258 s,@DEFS@,$DEFS,;t t
22259 s,@ECHO_C@,$ECHO_C,;t t
22260 s,@ECHO_N@,$ECHO_N,;t t
22261 s,@ECHO_T@,$ECHO_T,;t t
22262 s,@LIBS@,$LIBS,;t t
22263 s,@BUILD_DIR@,$BUILD_DIR,;t t
22264 s,@TRUEPRG@,$TRUEPRG,;t t
22265 s,@FALSEPRG@,$FALSEPRG,;t t
22266 s,@VERSION@,$VERSION,;t t
22267 s,@DATE@,$DATE,;t t
22268 s,@LSMDATE@,$LSMDATE,;t t
22269 s,@CC@,$CC,;t t
22270 s,@CFLAGS@,$CFLAGS,;t t
22271 s,@LDFLAGS@,$LDFLAGS,;t t
22272 s,@CPPFLAGS@,$CPPFLAGS,;t t
22273 s,@ac_ct_CC@,$ac_ct_CC,;t t
22274 s,@EXEEXT@,$EXEEXT,;t t
22275 s,@OBJEXT@,$OBJEXT,;t t
22276 s,@CXX@,$CXX,;t t
22277 s,@CXXFLAGS@,$CXXFLAGS,;t t
22278 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22279 s,@CPP@,$CPP,;t t
22280 s,@EGREP@,$EGREP,;t t
22281 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22282 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22283 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22284 s,@RANLIB@,$RANLIB,;t t
22285 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22286 s,@MV@,$MV,;t t
22287 s,@RM@,$RM,;t t
22288 s,@CP@,$CP,;t t
22289 s,@SED@,$SED,;t t
22290 s,@ECHO@,$ECHO,;t t
22291 s,@CMP@,$CMP,;t t
22292 s,@TBL@,$TBL,;t t
22293 s,@AR@,$AR,;t t
22294 s,@OPENSSL@,$OPENSSL,;t t
22295 s,@MTX@,$MTX,;t t
22296 s,@MKISOFS@,$MKISOFS,;t t
22297 s,@PYTHON@,$PYTHON,;t t
22298 s,@GROWISOFS@,$GROWISOFS,;t t
22299 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22300 s,@PKGCONFIG@,$PKGCONFIG,;t t
22301 s,@WXCONFIG@,$WXCONFIG,;t t
22302 s,@WXFLAGS@,$WXFLAGS,;t t
22303 s,@CDRECORD@,$CDRECORD,;t t
22304 s,@PIDOF@,$PIDOF,;t t
22305 s,@AWK@,$AWK,;t t
22306 s,@ARFLAGS@,$ARFLAGS,;t t
22307 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22308 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22309 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22310 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22311 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22312 s,@build@,$build,;t t
22313 s,@build_cpu@,$build_cpu,;t t
22314 s,@build_vendor@,$build_vendor,;t t
22315 s,@build_os@,$build_os,;t t
22316 s,@host@,$host,;t t
22317 s,@host_cpu@,$host_cpu,;t t
22318 s,@host_vendor@,$host_vendor,;t t
22319 s,@host_os@,$host_os,;t t
22320 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22321 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22322 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22323 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22324 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22325 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22326 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22327 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22328 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22329 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22330 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22331 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22332 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22333 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22334 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22335 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22336 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22337 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22338 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22339 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22340 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22341 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22342 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22343 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22344 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22345 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22346 s,@MSGFMT@,$MSGFMT,;t t
22347 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22348 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22349 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22350 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22351 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22352 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22353 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22354 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22355 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22356 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22357 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22358 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22359 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22360 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22361 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22362 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22363 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22364 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22365 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22366 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22367 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22368 s,@GNOME_DIR@,$GNOME_DIR,;t t
22369 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22370 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22371 s,@WX_DIR@,$WX_DIR,;t t
22372 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22373 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22374 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22375 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22376 s,@STATIC_FD@,$STATIC_FD,;t t
22377 s,@STATIC_SD@,$STATIC_SD,;t t
22378 s,@STATIC_DIR@,$STATIC_DIR,;t t
22379 s,@STATIC_CONS@,$STATIC_CONS,;t t
22380 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22381 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22382 s,@ALL_DIRS@,$ALL_DIRS,;t t
22383 s,@CONS_INC@,$CONS_INC,;t t
22384 s,@CONS_OBJ@,$CONS_OBJ,;t t
22385 s,@CONS_SRC@,$CONS_SRC,;t t
22386 s,@CONS_LIBS@,$CONS_LIBS,;t t
22387 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22388 s,@READLINE_SRC@,$READLINE_SRC,;t t
22389 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22390 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22391 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22392 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22393 s,@working_dir@,$working_dir,;t t
22394 s,@scriptdir@,$scriptdir,;t t
22395 s,@dump_email@,$dump_email,;t t
22396 s,@job_email@,$job_email,;t t
22397 s,@smtp_host@,$smtp_host,;t t
22398 s,@piddir@,$piddir,;t t
22399 s,@subsysdir@,$subsysdir,;t t
22400 s,@baseport@,$baseport,;t t
22401 s,@dir_port@,$dir_port,;t t
22402 s,@fd_port@,$fd_port,;t t
22403 s,@sd_port@,$sd_port,;t t
22404 s,@dir_password@,$dir_password,;t t
22405 s,@fd_password@,$fd_password,;t t
22406 s,@sd_password@,$sd_password,;t t
22407 s,@mon_dir_password@,$mon_dir_password,;t t
22408 s,@mon_fd_password@,$mon_fd_password,;t t
22409 s,@mon_sd_password@,$mon_sd_password,;t t
22410 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22411 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22412 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22413 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22414 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22415 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22416 s,@dir_user@,$dir_user,;t t
22417 s,@dir_group@,$dir_group,;t t
22418 s,@sd_user@,$sd_user,;t t
22419 s,@sd_group@,$sd_group,;t t
22420 s,@fd_user@,$fd_user,;t t
22421 s,@fd_group@,$fd_group,;t t
22422 s,@SBINPERM@,$SBINPERM,;t t
22423 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22424 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22425 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22426 s,@cats@,$cats,;t t
22427 s,@DB_NAME@,$DB_NAME,;t t
22428 s,@GETCONF@,$GETCONF,;t t
22429 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22430 s,@X_CFLAGS@,$X_CFLAGS,;t t
22431 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22432 s,@X_LIBS@,$X_LIBS,;t t
22433 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22434 s,@LIBOBJS@,$LIBOBJS,;t t
22435 s,@ALLOCA@,$ALLOCA,;t t
22436 s,@FDLIBS@,$FDLIBS,;t t
22437 s,@DEBUG@,$DEBUG,;t t
22438 s,@DINCLUDE@,$DINCLUDE,;t t
22439 s,@DLIB@,$DLIB,;t t
22440 s,@DB_LIBS@,$DB_LIBS,;t t
22441 s,@WCFLAGS@,$WCFLAGS,;t t
22442 s,@WLDFLAGS@,$WLDFLAGS,;t t
22443 s,@OBJLIST@,$OBJLIST,;t t
22444 s,@hostname@,$hostname,;t t
22445 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22446 s,@PSCMD@,$PSCMD,;t t
22447 s,@WIN32@,$WIN32,;t t
22448 s,@MACOSX@,$MACOSX,;t t
22449 s,@DISTNAME@,$DISTNAME,;t t
22450 s,@DISTVER@,$DISTVER,;t t
22451 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22452 /@MCOMMON@/r $MCOMMON
22453 s,@MCOMMON@,,;t t
22454 CEOF
22455
22456 _ACEOF
22457
22458   cat >>$CONFIG_STATUS <<\_ACEOF
22459   # Split the substitutions into bite-sized pieces for seds with
22460   # small command number limits, like on Digital OSF/1 and HP-UX.
22461   ac_max_sed_lines=48
22462   ac_sed_frag=1 # Number of current file.
22463   ac_beg=1 # First line for current file.
22464   ac_end=$ac_max_sed_lines # Line after last line for current file.
22465   ac_more_lines=:
22466   ac_sed_cmds=
22467   while $ac_more_lines; do
22468     if test $ac_beg -gt 1; then
22469       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22470     else
22471       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22472     fi
22473     if test ! -s $tmp/subs.frag; then
22474       ac_more_lines=false
22475     else
22476       # The purpose of the label and of the branching condition is to
22477       # speed up the sed processing (if there are no `@' at all, there
22478       # is no need to browse any of the substitutions).
22479       # These are the two extra sed commands mentioned above.
22480       (echo ':t
22481   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22482       if test -z "$ac_sed_cmds"; then
22483         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22484       else
22485         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22486       fi
22487       ac_sed_frag=`expr $ac_sed_frag + 1`
22488       ac_beg=$ac_end
22489       ac_end=`expr $ac_end + $ac_max_sed_lines`
22490     fi
22491   done
22492   if test -z "$ac_sed_cmds"; then
22493     ac_sed_cmds=cat
22494   fi
22495 fi # test -n "$CONFIG_FILES"
22496
22497 _ACEOF
22498 cat >>$CONFIG_STATUS <<\_ACEOF
22499 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22500   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22501   case $ac_file in
22502   - | *:- | *:-:* ) # input from stdin
22503         cat >$tmp/stdin
22504         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22505         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22506   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22507         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22508   * )   ac_file_in=$ac_file.in ;;
22509   esac
22510
22511   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22512   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22513 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22514          X"$ac_file" : 'X\(//\)[^/]' \| \
22515          X"$ac_file" : 'X\(//\)$' \| \
22516          X"$ac_file" : 'X\(/\)' \| \
22517          .     : '\(.\)' 2>/dev/null ||
22518 echo X"$ac_file" |
22519     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22520           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22521           /^X\(\/\/\)$/{ s//\1/; q; }
22522           /^X\(\/\).*/{ s//\1/; q; }
22523           s/.*/./; q'`
22524   { if $as_mkdir_p; then
22525     mkdir -p "$ac_dir"
22526   else
22527     as_dir="$ac_dir"
22528     as_dirs=
22529     while test ! -d "$as_dir"; do
22530       as_dirs="$as_dir $as_dirs"
22531       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22532 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22533          X"$as_dir" : 'X\(//\)[^/]' \| \
22534          X"$as_dir" : 'X\(//\)$' \| \
22535          X"$as_dir" : 'X\(/\)' \| \
22536          .     : '\(.\)' 2>/dev/null ||
22537 echo X"$as_dir" |
22538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22539           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22540           /^X\(\/\/\)$/{ s//\1/; q; }
22541           /^X\(\/\).*/{ s//\1/; q; }
22542           s/.*/./; q'`
22543     done
22544     test ! -n "$as_dirs" || mkdir $as_dirs
22545   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22546 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22547    { (exit 1); exit 1; }; }; }
22548
22549   ac_builddir=.
22550
22551 if test "$ac_dir" != .; then
22552   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22553   # A "../" for each directory in $ac_dir_suffix.
22554   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22555 else
22556   ac_dir_suffix= ac_top_builddir=
22557 fi
22558
22559 case $srcdir in
22560   .)  # No --srcdir option.  We are building in place.
22561     ac_srcdir=.
22562     if test -z "$ac_top_builddir"; then
22563        ac_top_srcdir=.
22564     else
22565        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22566     fi ;;
22567   [\\/]* | ?:[\\/]* )  # Absolute path.
22568     ac_srcdir=$srcdir$ac_dir_suffix;
22569     ac_top_srcdir=$srcdir ;;
22570   *) # Relative path.
22571     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22572     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22573 esac
22574
22575 # Do not use `cd foo && pwd` to compute absolute paths, because
22576 # the directories may not exist.
22577 case `pwd` in
22578 .) ac_abs_builddir="$ac_dir";;
22579 *)
22580   case "$ac_dir" in
22581   .) ac_abs_builddir=`pwd`;;
22582   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22583   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22584   esac;;
22585 esac
22586 case $ac_abs_builddir in
22587 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22588 *)
22589   case ${ac_top_builddir}. in
22590   .) ac_abs_top_builddir=$ac_abs_builddir;;
22591   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22592   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22593   esac;;
22594 esac
22595 case $ac_abs_builddir in
22596 .) ac_abs_srcdir=$ac_srcdir;;
22597 *)
22598   case $ac_srcdir in
22599   .) ac_abs_srcdir=$ac_abs_builddir;;
22600   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22601   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22602   esac;;
22603 esac
22604 case $ac_abs_builddir in
22605 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22606 *)
22607   case $ac_top_srcdir in
22608   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22609   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22610   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22611   esac;;
22612 esac
22613
22614
22615   case $INSTALL in
22616   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22617   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22618   esac
22619
22620   if test x"$ac_file" != x-; then
22621     { echo "$as_me:$LINENO: creating $ac_file" >&5
22622 echo "$as_me: creating $ac_file" >&6;}
22623     rm -f "$ac_file"
22624   fi
22625   # Let's still pretend it is `configure' which instantiates (i.e., don't
22626   # use $as_me), people would be surprised to read:
22627   #    /* config.h.  Generated by config.status.  */
22628   if test x"$ac_file" = x-; then
22629     configure_input=
22630   else
22631     configure_input="$ac_file.  "
22632   fi
22633   configure_input=$configure_input"Generated from `echo $ac_file_in |
22634                                      sed 's,.*/,,'` by configure."
22635
22636   # First look for the input files in the build tree, otherwise in the
22637   # src tree.
22638   ac_file_inputs=`IFS=:
22639     for f in $ac_file_in; do
22640       case $f in
22641       -) echo $tmp/stdin ;;
22642       [\\/$]*)
22643          # Absolute (can't be DOS-style, as IFS=:)
22644          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22645 echo "$as_me: error: cannot find input file: $f" >&2;}
22646    { (exit 1); exit 1; }; }
22647          echo "$f";;
22648       *) # Relative
22649          if test -f "$f"; then
22650            # Build tree
22651            echo "$f"
22652          elif test -f "$srcdir/$f"; then
22653            # Source tree
22654            echo "$srcdir/$f"
22655          else
22656            # /dev/null tree
22657            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22658 echo "$as_me: error: cannot find input file: $f" >&2;}
22659    { (exit 1); exit 1; }; }
22660          fi;;
22661       esac
22662     done` || { (exit 1); exit 1; }
22663 _ACEOF
22664 cat >>$CONFIG_STATUS <<_ACEOF
22665   sed "$ac_vpsub
22666 $extrasub
22667 _ACEOF
22668 cat >>$CONFIG_STATUS <<\_ACEOF
22669 :t
22670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22671 s,@configure_input@,$configure_input,;t t
22672 s,@srcdir@,$ac_srcdir,;t t
22673 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22674 s,@top_srcdir@,$ac_top_srcdir,;t t
22675 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22676 s,@builddir@,$ac_builddir,;t t
22677 s,@abs_builddir@,$ac_abs_builddir,;t t
22678 s,@top_builddir@,$ac_top_builddir,;t t
22679 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22680 s,@INSTALL@,$ac_INSTALL,;t t
22681 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22682   rm -f $tmp/stdin
22683   if test x"$ac_file" != x-; then
22684     mv $tmp/out $ac_file
22685   else
22686     cat $tmp/out
22687     rm -f $tmp/out
22688   fi
22689
22690 done
22691 _ACEOF
22692 cat >>$CONFIG_STATUS <<\_ACEOF
22693
22694 #
22695 # CONFIG_HEADER section.
22696 #
22697
22698 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22699 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22700 #
22701 # ac_d sets the value in "#define NAME VALUE" lines.
22702 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22703 ac_dB='[         ].*$,\1#\2'
22704 ac_dC=' '
22705 ac_dD=',;t'
22706 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22707 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22708 ac_uB='$,\1#\2define\3'
22709 ac_uC=' '
22710 ac_uD=',;t'
22711
22712 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22713   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22714   case $ac_file in
22715   - | *:- | *:-:* ) # input from stdin
22716         cat >$tmp/stdin
22717         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22718         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22719   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22720         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22721   * )   ac_file_in=$ac_file.in ;;
22722   esac
22723
22724   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22725 echo "$as_me: creating $ac_file" >&6;}
22726
22727   # First look for the input files in the build tree, otherwise in the
22728   # src tree.
22729   ac_file_inputs=`IFS=:
22730     for f in $ac_file_in; do
22731       case $f in
22732       -) echo $tmp/stdin ;;
22733       [\\/$]*)
22734          # Absolute (can't be DOS-style, as IFS=:)
22735          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22736 echo "$as_me: error: cannot find input file: $f" >&2;}
22737    { (exit 1); exit 1; }; }
22738          # Do quote $f, to prevent DOS paths from being IFS'd.
22739          echo "$f";;
22740       *) # Relative
22741          if test -f "$f"; then
22742            # Build tree
22743            echo "$f"
22744          elif test -f "$srcdir/$f"; then
22745            # Source tree
22746            echo "$srcdir/$f"
22747          else
22748            # /dev/null tree
22749            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22750 echo "$as_me: error: cannot find input file: $f" >&2;}
22751    { (exit 1); exit 1; }; }
22752          fi;;
22753       esac
22754     done` || { (exit 1); exit 1; }
22755   # Remove the trailing spaces.
22756   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22757
22758 _ACEOF
22759
22760 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22761 # `conftest.undefs', that substitutes the proper values into
22762 # config.h.in to produce config.h.  The first handles `#define'
22763 # templates, and the second `#undef' templates.
22764 # And first: Protect against being on the right side of a sed subst in
22765 # config.status.  Protect against being in an unquoted here document
22766 # in config.status.
22767 rm -f conftest.defines conftest.undefs
22768 # Using a here document instead of a string reduces the quoting nightmare.
22769 # Putting comments in sed scripts is not portable.
22770 #
22771 # `end' is used to avoid that the second main sed command (meant for
22772 # 0-ary CPP macros) applies to n-ary macro definitions.
22773 # See the Autoconf documentation for `clear'.
22774 cat >confdef2sed.sed <<\_ACEOF
22775 s/[\\&,]/\\&/g
22776 s,[\\$`],\\&,g
22777 t clear
22778 : clear
22779 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22780 t end
22781 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22782 : end
22783 _ACEOF
22784 # If some macros were called several times there might be several times
22785 # the same #defines, which is useless.  Nevertheless, we may not want to
22786 # sort them, since we want the *last* AC-DEFINE to be honored.
22787 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22788 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22789 rm -f confdef2sed.sed
22790
22791 # This sed command replaces #undef with comments.  This is necessary, for
22792 # example, in the case of _POSIX_SOURCE, which is predefined and required
22793 # on some systems where configure will not decide to define it.
22794 cat >>conftest.undefs <<\_ACEOF
22795 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22796 _ACEOF
22797
22798 # Break up conftest.defines because some shells have a limit on the size
22799 # of here documents, and old seds have small limits too (100 cmds).
22800 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22801 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22802 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22803 echo '  :' >>$CONFIG_STATUS
22804 rm -f conftest.tail
22805 while grep . conftest.defines >/dev/null
22806 do
22807   # Write a limited-size here document to $tmp/defines.sed.
22808   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22809   # Speed up: don't consider the non `#define' lines.
22810   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22811   # Work around the forget-to-reset-the-flag bug.
22812   echo 't clr' >>$CONFIG_STATUS
22813   echo ': clr' >>$CONFIG_STATUS
22814   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22815   echo 'CEOF
22816   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22817   rm -f $tmp/in
22818   mv $tmp/out $tmp/in
22819 ' >>$CONFIG_STATUS
22820   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22821   rm -f conftest.defines
22822   mv conftest.tail conftest.defines
22823 done
22824 rm -f conftest.defines
22825 echo '  fi # grep' >>$CONFIG_STATUS
22826 echo >>$CONFIG_STATUS
22827
22828 # Break up conftest.undefs because some shells have a limit on the size
22829 # of here documents, and old seds have small limits too (100 cmds).
22830 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22831 rm -f conftest.tail
22832 while grep . conftest.undefs >/dev/null
22833 do
22834   # Write a limited-size here document to $tmp/undefs.sed.
22835   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22836   # Speed up: don't consider the non `#undef'
22837   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22838   # Work around the forget-to-reset-the-flag bug.
22839   echo 't clr' >>$CONFIG_STATUS
22840   echo ': clr' >>$CONFIG_STATUS
22841   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22842   echo 'CEOF
22843   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22844   rm -f $tmp/in
22845   mv $tmp/out $tmp/in
22846 ' >>$CONFIG_STATUS
22847   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22848   rm -f conftest.undefs
22849   mv conftest.tail conftest.undefs
22850 done
22851 rm -f conftest.undefs
22852
22853 cat >>$CONFIG_STATUS <<\_ACEOF
22854   # Let's still pretend it is `configure' which instantiates (i.e., don't
22855   # use $as_me), people would be surprised to read:
22856   #    /* config.h.  Generated by config.status.  */
22857   if test x"$ac_file" = x-; then
22858     echo "/* Generated by configure.  */" >$tmp/config.h
22859   else
22860     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22861   fi
22862   cat $tmp/in >>$tmp/config.h
22863   rm -f $tmp/in
22864   if test x"$ac_file" != x-; then
22865     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22866       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22867 echo "$as_me: $ac_file is unchanged" >&6;}
22868     else
22869       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22870 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22871          X"$ac_file" : 'X\(//\)[^/]' \| \
22872          X"$ac_file" : 'X\(//\)$' \| \
22873          X"$ac_file" : 'X\(/\)' \| \
22874          .     : '\(.\)' 2>/dev/null ||
22875 echo X"$ac_file" |
22876     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22877           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22878           /^X\(\/\/\)$/{ s//\1/; q; }
22879           /^X\(\/\).*/{ s//\1/; q; }
22880           s/.*/./; q'`
22881       { if $as_mkdir_p; then
22882     mkdir -p "$ac_dir"
22883   else
22884     as_dir="$ac_dir"
22885     as_dirs=
22886     while test ! -d "$as_dir"; do
22887       as_dirs="$as_dir $as_dirs"
22888       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22889 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22890          X"$as_dir" : 'X\(//\)[^/]' \| \
22891          X"$as_dir" : 'X\(//\)$' \| \
22892          X"$as_dir" : 'X\(/\)' \| \
22893          .     : '\(.\)' 2>/dev/null ||
22894 echo X"$as_dir" |
22895     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22896           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22897           /^X\(\/\/\)$/{ s//\1/; q; }
22898           /^X\(\/\).*/{ s//\1/; q; }
22899           s/.*/./; q'`
22900     done
22901     test ! -n "$as_dirs" || mkdir $as_dirs
22902   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22903 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22904    { (exit 1); exit 1; }; }; }
22905
22906       rm -f $ac_file
22907       mv $tmp/config.h $ac_file
22908     fi
22909   else
22910     cat $tmp/config.h
22911     rm -f $tmp/config.h
22912   fi
22913 done
22914 _ACEOF
22915 cat >>$CONFIG_STATUS <<\_ACEOF
22916
22917 #
22918 # CONFIG_COMMANDS section.
22919 #
22920 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22921   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22922   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22923   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22924 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22925          X"$ac_dest" : 'X\(//\)[^/]' \| \
22926          X"$ac_dest" : 'X\(//\)$' \| \
22927          X"$ac_dest" : 'X\(/\)' \| \
22928          .     : '\(.\)' 2>/dev/null ||
22929 echo X"$ac_dest" |
22930     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22931           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22932           /^X\(\/\/\)$/{ s//\1/; q; }
22933           /^X\(\/\).*/{ s//\1/; q; }
22934           s/.*/./; q'`
22935   { if $as_mkdir_p; then
22936     mkdir -p "$ac_dir"
22937   else
22938     as_dir="$ac_dir"
22939     as_dirs=
22940     while test ! -d "$as_dir"; do
22941       as_dirs="$as_dir $as_dirs"
22942       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22943 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22944          X"$as_dir" : 'X\(//\)[^/]' \| \
22945          X"$as_dir" : 'X\(//\)$' \| \
22946          X"$as_dir" : 'X\(/\)' \| \
22947          .     : '\(.\)' 2>/dev/null ||
22948 echo X"$as_dir" |
22949     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22950           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22951           /^X\(\/\/\)$/{ s//\1/; q; }
22952           /^X\(\/\).*/{ s//\1/; q; }
22953           s/.*/./; q'`
22954     done
22955     test ! -n "$as_dirs" || mkdir $as_dirs
22956   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22957 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22958    { (exit 1); exit 1; }; }; }
22959
22960   ac_builddir=.
22961
22962 if test "$ac_dir" != .; then
22963   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22964   # A "../" for each directory in $ac_dir_suffix.
22965   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22966 else
22967   ac_dir_suffix= ac_top_builddir=
22968 fi
22969
22970 case $srcdir in
22971   .)  # No --srcdir option.  We are building in place.
22972     ac_srcdir=.
22973     if test -z "$ac_top_builddir"; then
22974        ac_top_srcdir=.
22975     else
22976        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22977     fi ;;
22978   [\\/]* | ?:[\\/]* )  # Absolute path.
22979     ac_srcdir=$srcdir$ac_dir_suffix;
22980     ac_top_srcdir=$srcdir ;;
22981   *) # Relative path.
22982     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22983     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22984 esac
22985
22986 # Do not use `cd foo && pwd` to compute absolute paths, because
22987 # the directories may not exist.
22988 case `pwd` in
22989 .) ac_abs_builddir="$ac_dir";;
22990 *)
22991   case "$ac_dir" in
22992   .) ac_abs_builddir=`pwd`;;
22993   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22994   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22995   esac;;
22996 esac
22997 case $ac_abs_builddir in
22998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22999 *)
23000   case ${ac_top_builddir}. in
23001   .) ac_abs_top_builddir=$ac_abs_builddir;;
23002   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23003   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23004   esac;;
23005 esac
23006 case $ac_abs_builddir in
23007 .) ac_abs_srcdir=$ac_srcdir;;
23008 *)
23009   case $ac_srcdir in
23010   .) ac_abs_srcdir=$ac_abs_builddir;;
23011   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23012   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23013   esac;;
23014 esac
23015 case $ac_abs_builddir in
23016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23017 *)
23018   case $ac_top_srcdir in
23019   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23020   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23021   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23022   esac;;
23023 esac
23024
23025
23026   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23027 echo "$as_me: executing $ac_dest commands" >&6;}
23028   case $ac_dest in
23029     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
23030  ;;
23031   esac
23032 done
23033 _ACEOF
23034
23035 cat >>$CONFIG_STATUS <<\_ACEOF
23036
23037 { (exit 0); exit 0; }
23038 _ACEOF
23039 chmod +x $CONFIG_STATUS
23040 ac_clean_files=$ac_clean_files_save
23041
23042
23043 # configure is writing to config.log, and then calls config.status.
23044 # config.status does its own redirection, appending to config.log.
23045 # Unfortunately, on DOS this fails, as config.log is still kept open
23046 # by configure, so config.status won't be able to write to it; its
23047 # output is simply discarded.  So we exec the FD to /dev/null,
23048 # effectively closing config.log, so it can be properly (re)opened and
23049 # appended to by config.status.  When coming back to configure, we
23050 # need to make the FD available again.
23051 if test "$no_create" != yes; then
23052   ac_cs_success=:
23053   ac_config_status_args=
23054   test "$silent" = yes &&
23055     ac_config_status_args="$ac_config_status_args --quiet"
23056   exec 5>/dev/null
23057   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23058   exec 5>>config.log
23059   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23060   # would make configure fail if this is the last instruction.
23061   $ac_cs_success || { (exit 1); exit 1; }
23062 fi
23063
23064
23065 cd scripts
23066 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23067 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23068 cd ..
23069
23070 c=src/cats
23071
23072 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
23073 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
23074
23075 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
23076 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
23077
23078 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
23079 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
23080
23081 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
23082 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
23083
23084 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
23085 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
23086
23087 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23088 chmod 755 $c/sqlite
23089 chmod 755 $c/mysql
23090
23091 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23092    largefile_support="yes"
23093 fi
23094
23095 #
23096 # A whole lot of hand springs to get the compiler version.
23097 #  This is because gcc changed the output in version 3.0
23098 #
23099 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23100 if test "x${CCVERSION}" = "x" ; then
23101   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23102 fi
23103 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23104 if test x"${CXXVERSION}" = x ; then
23105   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23106 fi
23107
23108 if test "x${subsysdir}" = "x${sbindir}" ; then
23109    echo " "
23110    echo " "
23111    echo "You have set --sbindir and --with-subsys-dir"
23112    echo "  both equal to: ${subsysdir} "
23113    echo "  This is not permitted. Please reconfigure."
23114    echo " "
23115    echo "Aborting configuration ..."
23116    echo " "
23117    echo " "
23118    exit 1
23119 fi
23120
23121 if test "x${db_name}" = "xInternal" ; then
23122    echo " "
23123    echo " "
23124    echo "You have not specified either --enable-client-only or one of the"
23125    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23126    echo "  This is not permitted. Please reconfigure."
23127    echo " "
23128    echo "Aborting the configuration ..."
23129    echo " "
23130    echo " "
23131    exit 1
23132 fi
23133
23134 echo "
23135 Configuration on `date`:
23136
23137   Host:                       $host -- ${DISTNAME} ${DISTVER}
23138   Bacula version:             ${VERSION} (${DATE})
23139   Source code location:       ${srcdir}
23140   Install binaries:           ${sbindir}
23141   Install config files:       ${sysconfdir}
23142   Scripts directory:          ${scriptdir}
23143   Working directory:          ${working_dir}
23144   PID directory:              ${piddir}
23145   Subsys directory:           ${subsysdir}
23146   C Compiler:                 ${CC} ${CCVERSION}
23147   C++ Compiler:               ${CXX} ${CXXVERSION}
23148   Compiler flags:             ${WCFLAGS} ${CFLAGS}
23149   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
23150   Libraries:                  ${LIBS}
23151   Statically Linked Tools:    ${support_static_tools}
23152   Statically Linked FD:       ${support_static_fd}
23153   Statically Linked SD:       ${support_static_sd}
23154   Statically Linked DIR:      ${support_static_dir}
23155   Statically Linked CONS:     ${support_static_cons}
23156   Database type:              ${db_name}
23157   Database lib:               ${DB_LIBS}
23158
23159   Job Output Email:           ${job_email}
23160   Traceback Email:            ${dump_email}
23161   SMTP Host Address:          ${smtp_host}
23162
23163   Director Port:              ${dir_port}
23164   File daemon Port:           ${fd_port}
23165   Storage daemon Port:        ${sd_port}
23166
23167   Director User:              ${dir_user}
23168   Director Group:             ${dir_group}
23169   Storage Daemon User:        ${sd_user}
23170   Storage DaemonGroup:        ${sd_group}
23171   File Daemon User:           ${fd_user}
23172   File Daemon Group:          ${fd_group}
23173
23174   SQL binaries Directory      ${SQL_BINDIR}
23175
23176   Large file support:         $largefile_support
23177   Bacula conio support:       ${got_conio} ${CONS_LIBS}
23178   readline support:           ${got_readline} ${PRTREADLINE_SRC}
23179   TCP Wrappers support:       ${TCPW_MSG}
23180   TLS support:                ${support_tls}
23181   ZLIB support:               ${have_zlib}
23182   enable-smartalloc:          ${support_smartalloc}
23183   enable-gnome:               ${support_gnome} ${gnome_version}
23184   enable-wx-console:          ${support_wx_console} ${wx_version}
23185   enable-tray-monitor:        ${support_tray_monitor}
23186   client-only:                ${build_client_only}
23187   ACL support:                ${have_acl}
23188   Python support:             ${support_python} ${PYTHON_LIBS}
23189
23190   " > config.out
23191
23192 cat config.out