]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Fixes wx-console compile error with unicode-enabled wxWidgets.
[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 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
782 #
783 # Report the --help message.
784 #
785 if test "$ac_init_help" = "long"; then
786   # Omit some internal or obsolete options to make the list less imposing.
787   # This message is too long to be a string in the A/UX 3.1 sh.
788   cat <<_ACEOF
789 \`configure' configures this package to adapt to many kinds of systems.
790
791 Usage: $0 [OPTION]... [VAR=VALUE]...
792
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE.  See below for descriptions of some of the useful variables.
795
796 Defaults for the options are specified in brackets.
797
798 Configuration:
799   -h, --help              display this help and exit
800       --help=short        display options specific to this package
801       --help=recursive    display the short help of all the included packages
802   -V, --version           display version information and exit
803   -q, --quiet, --silent   do not print \`checking...' messages
804       --cache-file=FILE   cache test results in FILE [disabled]
805   -C, --config-cache      alias for \`--cache-file=config.cache'
806   -n, --no-create         do not create output files
807       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
808
809 _ACEOF
810
811   cat <<_ACEOF
812 Installation directories:
813   --prefix=PREFIX         install architecture-independent files in PREFIX
814                           [$ac_default_prefix]
815   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
816                           [PREFIX]
817
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
822
823 For better control, use the options below.
824
825 Fine tuning of the installation directories:
826   --bindir=DIR           user executables [EPREFIX/bin]
827   --sbindir=DIR          system admin executables [EPREFIX/sbin]
828   --libexecdir=DIR       program executables [EPREFIX/libexec]
829   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
830   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
831   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
832   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
833   --libdir=DIR           object code libraries [EPREFIX/lib]
834   --includedir=DIR       C header files [PREFIX/include]
835   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
836   --infodir=DIR          info documentation [PREFIX/info]
837   --mandir=DIR           man documentation [PREFIX/man]
838 _ACEOF
839
840   cat <<\_ACEOF
841
842 X features:
843   --x-includes=DIR    X include files are in DIR
844   --x-libraries=DIR   X library files are in DIR
845
846 System types:
847   --build=BUILD     configure for building on BUILD [guessed]
848   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
849 _ACEOF
850 fi
851
852 if test -n "$ac_init_help"; then
853
854   cat <<\_ACEOF
855
856 Optional Features:
857   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
858   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
859   --enable-gnome          enable build of gnome-console GUI disabled
860   --enable-wx-console     enable build of wxWidgets console disabled
861   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
862   --enable-smartalloc     enable smartalloc debugging support disabled
863   --enable-static-tools   enable static tape tools disabled
864   --enable-static-fd      enable static File daemon disabled
865   --enable-static-sd      enable static Storage daemon disabled
866   --enable-static-dir     enable static Director disabled
867   --enable-static-cons    enable static Console disabled
868   --enable-client-only    build client (File daemon) only disabled
869   --disable-conio            disable conio support enabled
870
871   --disable-readline      disable readline support disable
872
873   --disable-largefile     omit support for large files
874
875 Optional Packages:
876   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
877   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
878   --with-gnome-includes   Specify location of GNOME headers
879   --with-gnome-libs       Specify location of GNOME libs
880   --with-gnome            Specify prefix for GNOME files
881  --with-readline=DIR             specify readline library directory
882
883   --with-python=DIR       Include Python support.  DIR is the Python base
884                           install directory, default is to search through
885                           a number of common places for the Python files.
886   --with-tcp-wrappers=DIR        enable tcpwrappers support
887   --with-openssl[=DIR]
888                           Include OpenSSL support. DIR is the OpenSSL base
889   --with-working-dir=PATH        specify path of Bacula working directory
890   --with-scriptdir=PATH    specify path of Bacula scripts directory
891   --with-dump-email=EMAIL        dump email address
892   --with-job-email=EMAIL         job output email address
893   --with-smtp-host=HOST          SMTP mail host address
894   --with-pid-dir=PATH            specify location of Bacula pid files
895   --with-subsys-dir=PATH         specify location of Bacula subsys file
896   --with-baseport=PORT           specify base port address for daemons
897   --with-dir-password=PASSWORD   specify Director's password
898   --with-fd-password=PASSWORD    specify Client's password
899   --with-sd-password=PASSWORD    specify Storage daemon's password
900   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
901   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
902   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
903   --with-bimagemgr-cgidir=DIR   specify bimagemgr cgi-bin dir
904   --with-bimagemgr-docdir=DIR   specify bimagemgr doc root dir
905   --with-bimagemgr-binowner=USER   specify bimagemgr binary file owner
906   --with-bimagemgr-bingroup=USER   specify bimagemgr binary file group
907   --with-bimagemgr-dataowner=USER       specify bimagemgr data file owner
908   --with-bimagemgr-datagroup=USER       specify bimagemgr data file group
909   --with-dir-user=USER           specify user for Director daemon
910   --with-dir-group=GROUP                 specify group for Director daemon
911   --with-sd-user=USER            specify user for Storage daemon
912   --with-sd-group=GROUP          specify group for Storage daemon
913   --with-fd-user=USER            specify user for File daemon
914   --with-fd-group=GROUP          specify group for File daemon
915   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
916   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
917                           base install directory, defaults to /usr/local/pgsql
918
919   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
920                           install directory, default is to search through
921                           a number of common places for the MySQL files.
922
923   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
924                           install directory, default is to search through
925                           a number of common places for the MySQL files.
926
927   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
928                           install directory, default is to search through
929                           a number of common places for the SQLite3 files.
930
931   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
932                           install directory, default is to search through
933                           a number of common places for the SQLite files.
934   --with-x                use the X Window System
935
936 Some influential environment variables:
937   CC          C compiler command
938   CFLAGS      C compiler flags
939   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
940               nonstandard directory <lib dir>
941   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
942               headers in a nonstandard directory <include dir>
943   CXX         C++ compiler command
944   CXXFLAGS    C++ compiler flags
945   CPP         C preprocessor
946
947 Use these variables to override the choices made by `configure' or to help
948 it to find libraries and programs with nonstandard names/locations.
949
950 _ACEOF
951 fi
952
953 if test "$ac_init_help" = "recursive"; then
954   # If there are subdirs, report their specific --help.
955   ac_popdir=`pwd`
956   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
957     test -d $ac_dir || continue
958     ac_builddir=.
959
960 if test "$ac_dir" != .; then
961   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
962   # A "../" for each directory in $ac_dir_suffix.
963   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
964 else
965   ac_dir_suffix= ac_top_builddir=
966 fi
967
968 case $srcdir in
969   .)  # No --srcdir option.  We are building in place.
970     ac_srcdir=.
971     if test -z "$ac_top_builddir"; then
972        ac_top_srcdir=.
973     else
974        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
975     fi ;;
976   [\\/]* | ?:[\\/]* )  # Absolute path.
977     ac_srcdir=$srcdir$ac_dir_suffix;
978     ac_top_srcdir=$srcdir ;;
979   *) # Relative path.
980     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
981     ac_top_srcdir=$ac_top_builddir$srcdir ;;
982 esac
983
984 # Do not use `cd foo && pwd` to compute absolute paths, because
985 # the directories may not exist.
986 case `pwd` in
987 .) ac_abs_builddir="$ac_dir";;
988 *)
989   case "$ac_dir" in
990   .) ac_abs_builddir=`pwd`;;
991   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
992   *) ac_abs_builddir=`pwd`/"$ac_dir";;
993   esac;;
994 esac
995 case $ac_abs_builddir in
996 .) ac_abs_top_builddir=${ac_top_builddir}.;;
997 *)
998   case ${ac_top_builddir}. in
999   .) ac_abs_top_builddir=$ac_abs_builddir;;
1000   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1001   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1002   esac;;
1003 esac
1004 case $ac_abs_builddir in
1005 .) ac_abs_srcdir=$ac_srcdir;;
1006 *)
1007   case $ac_srcdir in
1008   .) ac_abs_srcdir=$ac_abs_builddir;;
1009   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1010   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1011   esac;;
1012 esac
1013 case $ac_abs_builddir in
1014 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1015 *)
1016   case $ac_top_srcdir in
1017   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1018   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1019   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1020   esac;;
1021 esac
1022
1023     cd $ac_dir
1024     # Check for guested configure; otherwise get Cygnus style configure.
1025     if test -f $ac_srcdir/configure.gnu; then
1026       echo
1027       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1028     elif test -f $ac_srcdir/configure; then
1029       echo
1030       $SHELL $ac_srcdir/configure  --help=recursive
1031     elif test -f $ac_srcdir/configure.ac ||
1032            test -f $ac_srcdir/configure.in; then
1033       echo
1034       $ac_configure --help
1035     else
1036       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1037     fi
1038     cd $ac_popdir
1039   done
1040 fi
1041
1042 test -n "$ac_init_help" && exit 0
1043 if $ac_init_version; then
1044   cat <<\_ACEOF
1045
1046 Copyright (C) 2003 Free Software Foundation, Inc.
1047 This configure script is free software; the Free Software Foundation
1048 gives unlimited permission to copy, distribute and modify it.
1049 _ACEOF
1050   exit 0
1051 fi
1052 exec 5>config.log
1053 cat >&5 <<_ACEOF
1054 This file contains any messages produced by compilers while
1055 running configure, to aid debugging if configure makes a mistake.
1056
1057 It was created by $as_me, which was
1058 generated by GNU Autoconf 2.59.  Invocation command line was
1059
1060   $ $0 $@
1061
1062 _ACEOF
1063 {
1064 cat <<_ASUNAME
1065 ## --------- ##
1066 ## Platform. ##
1067 ## --------- ##
1068
1069 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1070 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1071 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1072 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1073 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1074
1075 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1076 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1077
1078 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1079 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1080 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1081 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1082 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1083 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1084 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1085
1086 _ASUNAME
1087
1088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1089 for as_dir in $PATH
1090 do
1091   IFS=$as_save_IFS
1092   test -z "$as_dir" && as_dir=.
1093   echo "PATH: $as_dir"
1094 done
1095
1096 } >&5
1097
1098 cat >&5 <<_ACEOF
1099
1100
1101 ## ----------- ##
1102 ## Core tests. ##
1103 ## ----------- ##
1104
1105 _ACEOF
1106
1107
1108 # Keep a trace of the command line.
1109 # Strip out --no-create and --no-recursion so they do not pile up.
1110 # Strip out --silent because we don't want to record it for future runs.
1111 # Also quote any args containing shell meta-characters.
1112 # Make two passes to allow for proper duplicate-argument suppression.
1113 ac_configure_args=
1114 ac_configure_args0=
1115 ac_configure_args1=
1116 ac_sep=
1117 ac_must_keep_next=false
1118 for ac_pass in 1 2
1119 do
1120   for ac_arg
1121   do
1122     case $ac_arg in
1123     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1124     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125     | -silent | --silent | --silen | --sile | --sil)
1126       continue ;;
1127     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1128       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1129     esac
1130     case $ac_pass in
1131     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1132     2)
1133       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1134       if test $ac_must_keep_next = true; then
1135         ac_must_keep_next=false # Got value, back to normal.
1136       else
1137         case $ac_arg in
1138           *=* | --config-cache | -C | -disable-* | --disable-* \
1139           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1140           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1141           | -with-* | --with-* | -without-* | --without-* | --x)
1142             case "$ac_configure_args0 " in
1143               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1144             esac
1145             ;;
1146           -* ) ac_must_keep_next=true ;;
1147         esac
1148       fi
1149       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1150       # Get rid of the leading space.
1151       ac_sep=" "
1152       ;;
1153     esac
1154   done
1155 done
1156 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1157 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1158
1159 # When interrupted or exit'd, cleanup temporary files, and complete
1160 # config.log.  We remove comments because anyway the quotes in there
1161 # would cause problems or look ugly.
1162 # WARNING: Be sure not to use single quotes in there, as some shells,
1163 # such as our DU 5.0 friend, will then `close' the trap.
1164 trap 'exit_status=$?
1165   # Save into config.log some information that might help in debugging.
1166   {
1167     echo
1168
1169     cat <<\_ASBOX
1170 ## ---------------- ##
1171 ## Cache variables. ##
1172 ## ---------------- ##
1173 _ASBOX
1174     echo
1175     # The following way of writing the cache mishandles newlines in values,
1176 {
1177   (set) 2>&1 |
1178     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1179     *ac_space=\ *)
1180       sed -n \
1181         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1182           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1183       ;;
1184     *)
1185       sed -n \
1186         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1187       ;;
1188     esac;
1189 }
1190     echo
1191
1192     cat <<\_ASBOX
1193 ## ----------------- ##
1194 ## Output variables. ##
1195 ## ----------------- ##
1196 _ASBOX
1197     echo
1198     for ac_var in $ac_subst_vars
1199     do
1200       eval ac_val=$`echo $ac_var`
1201       echo "$ac_var='"'"'$ac_val'"'"'"
1202     done | sort
1203     echo
1204
1205     if test -n "$ac_subst_files"; then
1206       cat <<\_ASBOX
1207 ## ------------- ##
1208 ## Output files. ##
1209 ## ------------- ##
1210 _ASBOX
1211       echo
1212       for ac_var in $ac_subst_files
1213       do
1214         eval ac_val=$`echo $ac_var`
1215         echo "$ac_var='"'"'$ac_val'"'"'"
1216       done | sort
1217       echo
1218     fi
1219
1220     if test -s confdefs.h; then
1221       cat <<\_ASBOX
1222 ## ----------- ##
1223 ## confdefs.h. ##
1224 ## ----------- ##
1225 _ASBOX
1226       echo
1227       sed "/^$/d" confdefs.h | sort
1228       echo
1229     fi
1230     test "$ac_signal" != 0 &&
1231       echo "$as_me: caught signal $ac_signal"
1232     echo "$as_me: exit $exit_status"
1233   } >&5
1234   rm -f core *.core &&
1235   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1236     exit $exit_status
1237      ' 0
1238 for ac_signal in 1 2 13 15; do
1239   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1240 done
1241 ac_signal=0
1242
1243 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1244 rm -rf conftest* confdefs.h
1245 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1246 echo >confdefs.h
1247
1248 # Predefined preprocessor variables.
1249
1250 cat >>confdefs.h <<_ACEOF
1251 #define PACKAGE_NAME "$PACKAGE_NAME"
1252 _ACEOF
1253
1254
1255 cat >>confdefs.h <<_ACEOF
1256 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1257 _ACEOF
1258
1259
1260 cat >>confdefs.h <<_ACEOF
1261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1262 _ACEOF
1263
1264
1265 cat >>confdefs.h <<_ACEOF
1266 #define PACKAGE_STRING "$PACKAGE_STRING"
1267 _ACEOF
1268
1269
1270 cat >>confdefs.h <<_ACEOF
1271 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1272 _ACEOF
1273
1274
1275 # Let the site file select an alternate cache file if it wants to.
1276 # Prefer explicitly selected file to automatically selected ones.
1277 if test -z "$CONFIG_SITE"; then
1278   if test "x$prefix" != xNONE; then
1279     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1280   else
1281     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1282   fi
1283 fi
1284 for ac_site_file in $CONFIG_SITE; do
1285   if test -r "$ac_site_file"; then
1286     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1287 echo "$as_me: loading site script $ac_site_file" >&6;}
1288     sed 's/^/| /' "$ac_site_file" >&5
1289     . "$ac_site_file"
1290   fi
1291 done
1292
1293 if test -r "$cache_file"; then
1294   # Some versions of bash will fail to source /dev/null (special
1295   # files actually), so we avoid doing that.
1296   if test -f "$cache_file"; then
1297     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1298 echo "$as_me: loading cache $cache_file" >&6;}
1299     case $cache_file in
1300       [\\/]* | ?:[\\/]* ) . $cache_file;;
1301       *)                      . ./$cache_file;;
1302     esac
1303   fi
1304 else
1305   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1306 echo "$as_me: creating cache $cache_file" >&6;}
1307   >$cache_file
1308 fi
1309
1310 # Check that the precious variables saved in the cache have kept the same
1311 # value.
1312 ac_cache_corrupted=false
1313 for ac_var in `(set) 2>&1 |
1314                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1315   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1316   eval ac_new_set=\$ac_env_${ac_var}_set
1317   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1318   eval ac_new_val="\$ac_env_${ac_var}_value"
1319   case $ac_old_set,$ac_new_set in
1320     set,)
1321       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1322 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1323       ac_cache_corrupted=: ;;
1324     ,set)
1325       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1326 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1327       ac_cache_corrupted=: ;;
1328     ,);;
1329     *)
1330       if test "x$ac_old_val" != "x$ac_new_val"; then
1331         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1332 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1333         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1334 echo "$as_me:   former value:  $ac_old_val" >&2;}
1335         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1336 echo "$as_me:   current value: $ac_new_val" >&2;}
1337         ac_cache_corrupted=:
1338       fi;;
1339   esac
1340   # Pass precious variables to config.status.
1341   if test "$ac_new_set" = set; then
1342     case $ac_new_val in
1343     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1344       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1345     *) ac_arg=$ac_var=$ac_new_val ;;
1346     esac
1347     case " $ac_configure_args " in
1348       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1349       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1350     esac
1351   fi
1352 done
1353 if $ac_cache_corrupted; then
1354   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1355 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1356   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1357 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1358    { (exit 1); exit 1; }; }
1359 fi
1360
1361 ac_ext=c
1362 ac_cpp='$CPP $CPPFLAGS'
1363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385 BUILD_DIR=`pwd`
1386 cd ..
1387 TOP_DIR=`pwd`
1388 cd ${BUILD_DIR}
1389
1390 ac_aux_dir=
1391 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1392   if test -f $ac_dir/install-sh; then
1393     ac_aux_dir=$ac_dir
1394     ac_install_sh="$ac_aux_dir/install-sh -c"
1395     break
1396   elif test -f $ac_dir/install.sh; then
1397     ac_aux_dir=$ac_dir
1398     ac_install_sh="$ac_aux_dir/install.sh -c"
1399     break
1400   elif test -f $ac_dir/shtool; then
1401     ac_aux_dir=$ac_dir
1402     ac_install_sh="$ac_aux_dir/shtool install -c"
1403     break
1404   fi
1405 done
1406 if test -z "$ac_aux_dir"; then
1407   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1408 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1409    { (exit 1); exit 1; }; }
1410 fi
1411 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1412 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1413 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1414
1415           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1416
1417
1418
1419
1420
1421 for ac_prog in true
1422 do
1423   # Extract the first word of "$ac_prog", so it can be a program name with args.
1424 set dummy $ac_prog; ac_word=$2
1425 echo "$as_me:$LINENO: checking for $ac_word" >&5
1426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1428   echo $ECHO_N "(cached) $ECHO_C" >&6
1429 else
1430   case $TRUEPRG in
1431   [\\/]* | ?:[\\/]*)
1432   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1433   ;;
1434   *)
1435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1436 for as_dir in $PATH
1437 do
1438   IFS=$as_save_IFS
1439   test -z "$as_dir" && as_dir=.
1440   for ac_exec_ext in '' $ac_executable_extensions; do
1441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1442     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1444     break 2
1445   fi
1446 done
1447 done
1448
1449   ;;
1450 esac
1451 fi
1452 TRUEPRG=$ac_cv_path_TRUEPRG
1453
1454 if test -n "$TRUEPRG"; then
1455   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1456 echo "${ECHO_T}$TRUEPRG" >&6
1457 else
1458   echo "$as_me:$LINENO: result: no" >&5
1459 echo "${ECHO_T}no" >&6
1460 fi
1461
1462   test -n "$TRUEPRG" && break
1463 done
1464 test -n "$TRUEPRG" || TRUEPRG=":"
1465
1466 for ac_prog in false
1467 do
1468   # Extract the first word of "$ac_prog", so it can be a program name with args.
1469 set dummy $ac_prog; ac_word=$2
1470 echo "$as_me:$LINENO: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1473   echo $ECHO_N "(cached) $ECHO_C" >&6
1474 else
1475   case $FALSEPRG in
1476   [\\/]* | ?:[\\/]*)
1477   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1478   ;;
1479   *)
1480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481 for as_dir in $PATH
1482 do
1483   IFS=$as_save_IFS
1484   test -z "$as_dir" && as_dir=.
1485   for ac_exec_ext in '' $ac_executable_extensions; do
1486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489     break 2
1490   fi
1491 done
1492 done
1493
1494   ;;
1495 esac
1496 fi
1497 FALSEPRG=$ac_cv_path_FALSEPRG
1498
1499 if test -n "$FALSEPRG"; then
1500   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1501 echo "${ECHO_T}$FALSEPRG" >&6
1502 else
1503   echo "$as_me:$LINENO: result: no" >&5
1504 echo "${ECHO_T}no" >&6
1505 fi
1506
1507   test -n "$FALSEPRG" && break
1508 done
1509 test -n "$FALSEPRG" || FALSEPRG=":"
1510
1511
1512 #AC_CANONICAL_HOST
1513
1514 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1516 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 echo "configuring for bacula $VERSION ($DATE)"
1518
1519
1520
1521 ac_ext=c
1522 ac_cpp='$CPP $CPPFLAGS'
1523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526 if test -n "$ac_tool_prefix"; then
1527   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1528 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_CC+set}" = set; then
1532   echo $ECHO_N "(cached) $ECHO_C" >&6
1533 else
1534   if test -n "$CC"; then
1535   ac_cv_prog_CC="$CC" # Let the user override the test.
1536 else
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 for as_dir in $PATH
1539 do
1540   IFS=$as_save_IFS
1541   test -z "$as_dir" && as_dir=.
1542   for ac_exec_ext in '' $ac_executable_extensions; do
1543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1546     break 2
1547   fi
1548 done
1549 done
1550
1551 fi
1552 fi
1553 CC=$ac_cv_prog_CC
1554 if test -n "$CC"; then
1555   echo "$as_me:$LINENO: result: $CC" >&5
1556 echo "${ECHO_T}$CC" >&6
1557 else
1558   echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1560 fi
1561
1562 fi
1563 if test -z "$ac_cv_prog_CC"; then
1564   ac_ct_CC=$CC
1565   # Extract the first word of "gcc", so it can be a program name with args.
1566 set dummy gcc; ac_word=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570   echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572   if test -n "$ac_ct_CC"; then
1573   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574 else
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 for as_dir in $PATH
1577 do
1578   IFS=$as_save_IFS
1579   test -z "$as_dir" && as_dir=.
1580   for ac_exec_ext in '' $ac_executable_extensions; do
1581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582     ac_cv_prog_ac_ct_CC="gcc"
1583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584     break 2
1585   fi
1586 done
1587 done
1588
1589 fi
1590 fi
1591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592 if test -n "$ac_ct_CC"; then
1593   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594 echo "${ECHO_T}$ac_ct_CC" >&6
1595 else
1596   echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1598 fi
1599
1600   CC=$ac_ct_CC
1601 else
1602   CC="$ac_cv_prog_CC"
1603 fi
1604
1605 if test -z "$CC"; then
1606   if test -n "$ac_tool_prefix"; then
1607   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1608 set dummy ${ac_tool_prefix}cc; ac_word=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612   echo $ECHO_N "(cached) $ECHO_C" >&6
1613 else
1614   if test -n "$CC"; then
1615   ac_cv_prog_CC="$CC" # Let the user override the test.
1616 else
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1619 do
1620   IFS=$as_save_IFS
1621   test -z "$as_dir" && as_dir=.
1622   for ac_exec_ext in '' $ac_executable_extensions; do
1623   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624     ac_cv_prog_CC="${ac_tool_prefix}cc"
1625     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1626     break 2
1627   fi
1628 done
1629 done
1630
1631 fi
1632 fi
1633 CC=$ac_cv_prog_CC
1634 if test -n "$CC"; then
1635   echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1637 else
1638   echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1640 fi
1641
1642 fi
1643 if test -z "$ac_cv_prog_CC"; then
1644   ac_ct_CC=$CC
1645   # Extract the first word of "cc", so it can be a program name with args.
1646 set dummy cc; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650   echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652   if test -n "$ac_ct_CC"; then
1653   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 else
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 for as_dir in $PATH
1657 do
1658   IFS=$as_save_IFS
1659   test -z "$as_dir" && as_dir=.
1660   for ac_exec_ext in '' $ac_executable_extensions; do
1661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662     ac_cv_prog_ac_ct_CC="cc"
1663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664     break 2
1665   fi
1666 done
1667 done
1668
1669 fi
1670 fi
1671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672 if test -n "$ac_ct_CC"; then
1673   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674 echo "${ECHO_T}$ac_ct_CC" >&6
1675 else
1676   echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1678 fi
1679
1680   CC=$ac_ct_CC
1681 else
1682   CC="$ac_cv_prog_CC"
1683 fi
1684
1685 fi
1686 if test -z "$CC"; then
1687   # Extract the first word of "cc", so it can be a program name with args.
1688 set dummy cc; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_CC+set}" = set; then
1692   echo $ECHO_N "(cached) $ECHO_C" >&6
1693 else
1694   if test -n "$CC"; then
1695   ac_cv_prog_CC="$CC" # Let the user override the test.
1696 else
1697   ac_prog_rejected=no
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701   IFS=$as_save_IFS
1702   test -z "$as_dir" && as_dir=.
1703   for ac_exec_ext in '' $ac_executable_extensions; do
1704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1706        ac_prog_rejected=yes
1707        continue
1708      fi
1709     ac_cv_prog_CC="cc"
1710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1711     break 2
1712   fi
1713 done
1714 done
1715
1716 if test $ac_prog_rejected = yes; then
1717   # We found a bogon in the path, so make sure we never use it.
1718   set dummy $ac_cv_prog_CC
1719   shift
1720   if test $# != 0; then
1721     # We chose a different compiler from the bogus one.
1722     # However, it has the same basename, so the bogon will be chosen
1723     # first if we set CC to just the basename; use the full file name.
1724     shift
1725     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1726   fi
1727 fi
1728 fi
1729 fi
1730 CC=$ac_cv_prog_CC
1731 if test -n "$CC"; then
1732   echo "$as_me:$LINENO: result: $CC" >&5
1733 echo "${ECHO_T}$CC" >&6
1734 else
1735   echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1737 fi
1738
1739 fi
1740 if test -z "$CC"; then
1741   if test -n "$ac_tool_prefix"; then
1742   for ac_prog in cl
1743   do
1744     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_CC+set}" = set; then
1749   echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751   if test -n "$CC"; then
1752   ac_cv_prog_CC="$CC" # Let the user override the test.
1753 else
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 for as_dir in $PATH
1756 do
1757   IFS=$as_save_IFS
1758   test -z "$as_dir" && as_dir=.
1759   for ac_exec_ext in '' $ac_executable_extensions; do
1760   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1762     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763     break 2
1764   fi
1765 done
1766 done
1767
1768 fi
1769 fi
1770 CC=$ac_cv_prog_CC
1771 if test -n "$CC"; then
1772   echo "$as_me:$LINENO: result: $CC" >&5
1773 echo "${ECHO_T}$CC" >&6
1774 else
1775   echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1777 fi
1778
1779     test -n "$CC" && break
1780   done
1781 fi
1782 if test -z "$CC"; then
1783   ac_ct_CC=$CC
1784   for ac_prog in cl
1785 do
1786   # Extract the first word of "$ac_prog", so it can be a program name with args.
1787 set dummy $ac_prog; ac_word=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791   echo $ECHO_N "(cached) $ECHO_C" >&6
1792 else
1793   if test -n "$ac_ct_CC"; then
1794   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795 else
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 for as_dir in $PATH
1798 do
1799   IFS=$as_save_IFS
1800   test -z "$as_dir" && as_dir=.
1801   for ac_exec_ext in '' $ac_executable_extensions; do
1802   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803     ac_cv_prog_ac_ct_CC="$ac_prog"
1804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1805     break 2
1806   fi
1807 done
1808 done
1809
1810 fi
1811 fi
1812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813 if test -n "$ac_ct_CC"; then
1814   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815 echo "${ECHO_T}$ac_ct_CC" >&6
1816 else
1817   echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1819 fi
1820
1821   test -n "$ac_ct_CC" && break
1822 done
1823
1824   CC=$ac_ct_CC
1825 fi
1826
1827 fi
1828
1829
1830 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&2;}
1834    { (exit 1); exit 1; }; }
1835
1836 # Provide some information about the compiler.
1837 echo "$as_me:$LINENO:" \
1838      "checking for C compiler version" >&5
1839 ac_compiler=`set X $ac_compile; echo $2`
1840 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1841   (eval $ac_compiler --version </dev/null >&5) 2>&5
1842   ac_status=$?
1843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844   (exit $ac_status); }
1845 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1846   (eval $ac_compiler -v </dev/null >&5) 2>&5
1847   ac_status=$?
1848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849   (exit $ac_status); }
1850 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1851   (eval $ac_compiler -V </dev/null >&5) 2>&5
1852   ac_status=$?
1853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854   (exit $ac_status); }
1855
1856 cat >conftest.$ac_ext <<_ACEOF
1857 /* confdefs.h.  */
1858 _ACEOF
1859 cat confdefs.h >>conftest.$ac_ext
1860 cat >>conftest.$ac_ext <<_ACEOF
1861 /* end confdefs.h.  */
1862
1863 int
1864 main ()
1865 {
1866
1867   ;
1868   return 0;
1869 }
1870 _ACEOF
1871 ac_clean_files_save=$ac_clean_files
1872 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1873 # Try to create an executable without -o first, disregard a.out.
1874 # It will help us diagnose broken compilers, and finding out an intuition
1875 # of exeext.
1876 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1877 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1878 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1879 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1880   (eval $ac_link_default) 2>&5
1881   ac_status=$?
1882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883   (exit $ac_status); }; then
1884   # Find the output, starting from the most likely.  This scheme is
1885 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1886 # resort.
1887
1888 # Be careful to initialize this variable, since it used to be cached.
1889 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1890 ac_cv_exeext=
1891 # b.out is created by i960 compilers.
1892 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1893 do
1894   test -f "$ac_file" || continue
1895   case $ac_file in
1896     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1897         ;;
1898     conftest.$ac_ext )
1899         # This is the source file.
1900         ;;
1901     [ab].out )
1902         # We found the default executable, but exeext='' is most
1903         # certainly right.
1904         break;;
1905     *.* )
1906         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907         # FIXME: I believe we export ac_cv_exeext for Libtool,
1908         # but it would be cool to find out if it's true.  Does anybody
1909         # maintain Libtool? --akim.
1910         export ac_cv_exeext
1911         break;;
1912     * )
1913         break;;
1914   esac
1915 done
1916 else
1917   echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&2;}
1924    { (exit 77); exit 77; }; }
1925 fi
1926
1927 ac_exeext=$ac_cv_exeext
1928 echo "$as_me:$LINENO: result: $ac_file" >&5
1929 echo "${ECHO_T}$ac_file" >&6
1930
1931 # Check the compiler produces executables we can run.  If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1934 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1936 # If not cross compiling, check that we can run a simple program.
1937 if test "$cross_compiling" != yes; then
1938   if { ac_try='./$ac_file'
1939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940   (eval $ac_try) 2>&5
1941   ac_status=$?
1942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943   (exit $ac_status); }; }; then
1944     cross_compiling=no
1945   else
1946     if test "$cross_compiling" = maybe; then
1947         cross_compiling=yes
1948     else
1949         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'.
1954 See \`config.log' for more details." >&2;}
1955    { (exit 1); exit 1; }; }
1956     fi
1957   fi
1958 fi
1959 echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1961
1962 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1963 ac_clean_files=$ac_clean_files_save
1964 # Check the compiler produces executables we can run.  If not, either
1965 # the compiler is broken, or we cross compile.
1966 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1967 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1968 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1969 echo "${ECHO_T}$cross_compiling" >&6
1970
1971 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1972 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1974   (eval $ac_link) 2>&5
1975   ac_status=$?
1976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977   (exit $ac_status); }; then
1978   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1979 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1980 # work properly (i.e., refer to `conftest.exe'), while it won't with
1981 # `rm'.
1982 for ac_file in conftest.exe conftest conftest.*; do
1983   test -f "$ac_file" || continue
1984   case $ac_file in
1985     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1986     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1987           export ac_cv_exeext
1988           break;;
1989     * ) break;;
1990   esac
1991 done
1992 else
1993   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&2;}
1997    { (exit 1); exit 1; }; }
1998 fi
1999
2000 rm -f conftest$ac_cv_exeext
2001 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2002 echo "${ECHO_T}$ac_cv_exeext" >&6
2003
2004 rm -f conftest.$ac_ext
2005 EXEEXT=$ac_cv_exeext
2006 ac_exeext=$EXEEXT
2007 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2008 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2009 if test "${ac_cv_objext+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   cat >conftest.$ac_ext <<_ACEOF
2013 /* confdefs.h.  */
2014 _ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h.  */
2018
2019 int
2020 main ()
2021 {
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 rm -f conftest.o conftest.obj
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029   (eval $ac_compile) 2>&5
2030   ac_status=$?
2031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032   (exit $ac_status); }; then
2033   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2034   case $ac_file in
2035     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2037        break;;
2038   esac
2039 done
2040 else
2041   echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2043
2044 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&2;}
2048    { (exit 1); exit 1; }; }
2049 fi
2050
2051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2054 echo "${ECHO_T}$ac_cv_objext" >&6
2055 OBJEXT=$ac_cv_objext
2056 ac_objext=$OBJEXT
2057 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2060   echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062   cat >conftest.$ac_ext <<_ACEOF
2063 /* confdefs.h.  */
2064 _ACEOF
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h.  */
2068
2069 int
2070 main ()
2071 {
2072 #ifndef __GNUC__
2073        choke me
2074 #endif
2075
2076   ;
2077   return 0;
2078 }
2079 _ACEOF
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082   (eval $ac_compile) 2>conftest.er1
2083   ac_status=$?
2084   grep -v '^ *+' conftest.er1 >conftest.err
2085   rm -f conftest.er1
2086   cat conftest.err >&5
2087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088   (exit $ac_status); } &&
2089          { ac_try='test -z "$ac_c_werror_flag"
2090                          || test ! -s conftest.err'
2091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092   (eval $ac_try) 2>&5
2093   ac_status=$?
2094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095   (exit $ac_status); }; } &&
2096          { ac_try='test -s conftest.$ac_objext'
2097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098   (eval $ac_try) 2>&5
2099   ac_status=$?
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); }; }; then
2102   ac_compiler_gnu=yes
2103 else
2104   echo "$as_me: failed program was:" >&5
2105 sed 's/^/| /' conftest.$ac_ext >&5
2106
2107 ac_compiler_gnu=no
2108 fi
2109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2110 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2111
2112 fi
2113 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2114 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2115 GCC=`test $ac_compiler_gnu = yes && echo yes`
2116 ac_test_CFLAGS=${CFLAGS+set}
2117 ac_save_CFLAGS=$CFLAGS
2118 CFLAGS="-g"
2119 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2120 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2121 if test "${ac_cv_prog_cc_g+set}" = set; then
2122   echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124   cat >conftest.$ac_ext <<_ACEOF
2125 /* confdefs.h.  */
2126 _ACEOF
2127 cat confdefs.h >>conftest.$ac_ext
2128 cat >>conftest.$ac_ext <<_ACEOF
2129 /* end confdefs.h.  */
2130
2131 int
2132 main ()
2133 {
2134
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141   (eval $ac_compile) 2>conftest.er1
2142   ac_status=$?
2143   grep -v '^ *+' conftest.er1 >conftest.err
2144   rm -f conftest.er1
2145   cat conftest.err >&5
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); } &&
2148          { ac_try='test -z "$ac_c_werror_flag"
2149                          || test ! -s conftest.err'
2150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151   (eval $ac_try) 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; } &&
2155          { ac_try='test -s conftest.$ac_objext'
2156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157   (eval $ac_try) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; }; then
2161   ac_cv_prog_cc_g=yes
2162 else
2163   echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2165
2166 ac_cv_prog_cc_g=no
2167 fi
2168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2169 fi
2170 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2171 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2172 if test "$ac_test_CFLAGS" = set; then
2173   CFLAGS=$ac_save_CFLAGS
2174 elif test $ac_cv_prog_cc_g = yes; then
2175   if test "$GCC" = yes; then
2176     CFLAGS="-g -O2"
2177   else
2178     CFLAGS="-g"
2179   fi
2180 else
2181   if test "$GCC" = yes; then
2182     CFLAGS="-O2"
2183   else
2184     CFLAGS=
2185   fi
2186 fi
2187 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2188 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2189 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2190   echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192   ac_cv_prog_cc_stdc=no
2193 ac_save_CC=$CC
2194 cat >conftest.$ac_ext <<_ACEOF
2195 /* confdefs.h.  */
2196 _ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h.  */
2200 #include <stdarg.h>
2201 #include <stdio.h>
2202 #include <sys/types.h>
2203 #include <sys/stat.h>
2204 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2205 struct buf { int x; };
2206 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2207 static char *e (p, i)
2208      char **p;
2209      int i;
2210 {
2211   return p[i];
2212 }
2213 static char *f (char * (*g) (char **, int), char **p, ...)
2214 {
2215   char *s;
2216   va_list v;
2217   va_start (v,p);
2218   s = g (p, va_arg (v,int));
2219   va_end (v);
2220   return s;
2221 }
2222
2223 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2224    function prototypes and stuff, but not '\xHH' hex character constants.
2225    These don't provoke an error unfortunately, instead are silently treated
2226    as 'x'.  The following induces an error, until -std1 is added to get
2227    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2228    array size at least.  It's necessary to write '\x00'==0 to get something
2229    that's true only with -std1.  */
2230 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2231
2232 int test (int i, double x);
2233 struct s1 {int (*f) (int a);};
2234 struct s2 {int (*f) (double a);};
2235 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236 int argc;
2237 char **argv;
2238 int
2239 main ()
2240 {
2241 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2242   ;
2243   return 0;
2244 }
2245 _ACEOF
2246 # Don't try gcc -ansi; that turns off useful extensions and
2247 # breaks some systems' header files.
2248 # AIX                   -qlanglvl=ansi
2249 # Ultrix and OSF/1      -std1
2250 # HP-UX 10.20 and later -Ae
2251 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2252 # SVR4                  -Xc -D__EXTENSIONS__
2253 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2254 do
2255   CC="$ac_save_CC $ac_arg"
2256   rm -f conftest.$ac_objext
2257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2258   (eval $ac_compile) 2>conftest.er1
2259   ac_status=$?
2260   grep -v '^ *+' conftest.er1 >conftest.err
2261   rm -f conftest.er1
2262   cat conftest.err >&5
2263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264   (exit $ac_status); } &&
2265          { ac_try='test -z "$ac_c_werror_flag"
2266                          || test ! -s conftest.err'
2267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268   (eval $ac_try) 2>&5
2269   ac_status=$?
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); }; } &&
2272          { ac_try='test -s conftest.$ac_objext'
2273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274   (eval $ac_try) 2>&5
2275   ac_status=$?
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); }; }; then
2278   ac_cv_prog_cc_stdc=$ac_arg
2279 break
2280 else
2281   echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2283
2284 fi
2285 rm -f conftest.err conftest.$ac_objext
2286 done
2287 rm -f conftest.$ac_ext conftest.$ac_objext
2288 CC=$ac_save_CC
2289
2290 fi
2291
2292 case "x$ac_cv_prog_cc_stdc" in
2293   x|xno)
2294     echo "$as_me:$LINENO: result: none needed" >&5
2295 echo "${ECHO_T}none needed" >&6 ;;
2296   *)
2297     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2298 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2299     CC="$CC $ac_cv_prog_cc_stdc" ;;
2300 esac
2301
2302 # Some people use a C++ compiler to compile C.  Since we use `exit',
2303 # in C++ we need to declare it.  In case someone uses the same compiler
2304 # for both compiling C and C++ we need to have the C++ compiler decide
2305 # the declaration of exit, since it's the most demanding environment.
2306 cat >conftest.$ac_ext <<_ACEOF
2307 #ifndef __cplusplus
2308   choke me
2309 #endif
2310 _ACEOF
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313   (eval $ac_compile) 2>conftest.er1
2314   ac_status=$?
2315   grep -v '^ *+' conftest.er1 >conftest.err
2316   rm -f conftest.er1
2317   cat conftest.err >&5
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); } &&
2320          { ac_try='test -z "$ac_c_werror_flag"
2321                          || test ! -s conftest.err'
2322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323   (eval $ac_try) 2>&5
2324   ac_status=$?
2325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326   (exit $ac_status); }; } &&
2327          { ac_try='test -s conftest.$ac_objext'
2328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329   (eval $ac_try) 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }; }; then
2333   for ac_declaration in \
2334    '' \
2335    'extern "C" void std::exit (int) throw (); using std::exit;' \
2336    'extern "C" void std::exit (int); using std::exit;' \
2337    'extern "C" void exit (int) throw ();' \
2338    'extern "C" void exit (int);' \
2339    'void exit (int);'
2340 do
2341   cat >conftest.$ac_ext <<_ACEOF
2342 /* confdefs.h.  */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h.  */
2347 $ac_declaration
2348 #include <stdlib.h>
2349 int
2350 main ()
2351 {
2352 exit (42);
2353   ;
2354   return 0;
2355 }
2356 _ACEOF
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359   (eval $ac_compile) 2>conftest.er1
2360   ac_status=$?
2361   grep -v '^ *+' conftest.er1 >conftest.err
2362   rm -f conftest.er1
2363   cat conftest.err >&5
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); } &&
2366          { ac_try='test -z "$ac_c_werror_flag"
2367                          || test ! -s conftest.err'
2368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369   (eval $ac_try) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; } &&
2373          { ac_try='test -s conftest.$ac_objext'
2374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375   (eval $ac_try) 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }; }; then
2379   :
2380 else
2381   echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383
2384 continue
2385 fi
2386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387   cat >conftest.$ac_ext <<_ACEOF
2388 /* confdefs.h.  */
2389 _ACEOF
2390 cat confdefs.h >>conftest.$ac_ext
2391 cat >>conftest.$ac_ext <<_ACEOF
2392 /* end confdefs.h.  */
2393 $ac_declaration
2394 int
2395 main ()
2396 {
2397 exit (42);
2398   ;
2399   return 0;
2400 }
2401 _ACEOF
2402 rm -f conftest.$ac_objext
2403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404   (eval $ac_compile) 2>conftest.er1
2405   ac_status=$?
2406   grep -v '^ *+' conftest.er1 >conftest.err
2407   rm -f conftest.er1
2408   cat conftest.err >&5
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); } &&
2411          { ac_try='test -z "$ac_c_werror_flag"
2412                          || test ! -s conftest.err'
2413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414   (eval $ac_try) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; } &&
2418          { ac_try='test -s conftest.$ac_objext'
2419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420   (eval $ac_try) 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }; }; then
2424   break
2425 else
2426   echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2428
2429 fi
2430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431 done
2432 rm -f conftest*
2433 if test -n "$ac_declaration"; then
2434   echo '#ifdef __cplusplus' >>confdefs.h
2435   echo $ac_declaration      >>confdefs.h
2436   echo '#endif'             >>confdefs.h
2437 fi
2438
2439 else
2440   echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 fi
2444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2445 ac_ext=c
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450
2451 ac_ext=cc
2452 ac_cpp='$CXXCPP $CPPFLAGS'
2453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2456 if test -n "$ac_tool_prefix"; then
2457   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2458   do
2459     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2461 echo "$as_me:$LINENO: checking for $ac_word" >&5
2462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2463 if test "${ac_cv_prog_CXX+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   if test -n "$CXX"; then
2467   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472   IFS=$as_save_IFS
2473   test -z "$as_dir" && as_dir=.
2474   for ac_exec_ext in '' $ac_executable_extensions; do
2475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478     break 2
2479   fi
2480 done
2481 done
2482
2483 fi
2484 fi
2485 CXX=$ac_cv_prog_CXX
2486 if test -n "$CXX"; then
2487   echo "$as_me:$LINENO: result: $CXX" >&5
2488 echo "${ECHO_T}$CXX" >&6
2489 else
2490   echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6
2492 fi
2493
2494     test -n "$CXX" && break
2495   done
2496 fi
2497 if test -z "$CXX"; then
2498   ac_ct_CXX=$CXX
2499   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2500 do
2501   # Extract the first word of "$ac_prog", so it can be a program name with args.
2502 set dummy $ac_prog; ac_word=$2
2503 echo "$as_me:$LINENO: checking for $ac_word" >&5
2504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2505 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   if test -n "$ac_ct_CXX"; then
2509   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2510 else
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH
2513 do
2514   IFS=$as_save_IFS
2515   test -z "$as_dir" && as_dir=.
2516   for ac_exec_ext in '' $ac_executable_extensions; do
2517   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2518     ac_cv_prog_ac_ct_CXX="$ac_prog"
2519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520     break 2
2521   fi
2522 done
2523 done
2524
2525 fi
2526 fi
2527 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2528 if test -n "$ac_ct_CXX"; then
2529   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2530 echo "${ECHO_T}$ac_ct_CXX" >&6
2531 else
2532   echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6
2534 fi
2535
2536   test -n "$ac_ct_CXX" && break
2537 done
2538 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2539
2540   CXX=$ac_ct_CXX
2541 fi
2542
2543
2544 # Provide some information about the compiler.
2545 echo "$as_me:$LINENO:" \
2546      "checking for C++ compiler version" >&5
2547 ac_compiler=`set X $ac_compile; echo $2`
2548 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2549   (eval $ac_compiler --version </dev/null >&5) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }
2553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2554   (eval $ac_compiler -v </dev/null >&5) 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); }
2558 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2559   (eval $ac_compiler -V </dev/null >&5) 2>&5
2560   ac_status=$?
2561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); }
2563
2564 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2565 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2566 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2567   echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569   cat >conftest.$ac_ext <<_ACEOF
2570 /* confdefs.h.  */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h.  */
2575
2576 int
2577 main ()
2578 {
2579 #ifndef __GNUC__
2580        choke me
2581 #endif
2582
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589   (eval $ac_compile) 2>conftest.er1
2590   ac_status=$?
2591   grep -v '^ *+' conftest.er1 >conftest.err
2592   rm -f conftest.er1
2593   cat conftest.err >&5
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); } &&
2596          { ac_try='test -z "$ac_cxx_werror_flag"
2597                          || test ! -s conftest.err'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; } &&
2603          { ac_try='test -s conftest.$ac_objext'
2604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605   (eval $ac_try) 2>&5
2606   ac_status=$?
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); }; }; then
2609   ac_compiler_gnu=yes
2610 else
2611   echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2613
2614 ac_compiler_gnu=no
2615 fi
2616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2617 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2618
2619 fi
2620 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2621 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2622 GXX=`test $ac_compiler_gnu = yes && echo yes`
2623 ac_test_CXXFLAGS=${CXXFLAGS+set}
2624 ac_save_CXXFLAGS=$CXXFLAGS
2625 CXXFLAGS="-g"
2626 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2627 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2628 if test "${ac_cv_prog_cxx_g+set}" = set; then
2629   echo $ECHO_N "(cached) $ECHO_C" >&6
2630 else
2631   cat >conftest.$ac_ext <<_ACEOF
2632 /* confdefs.h.  */
2633 _ACEOF
2634 cat confdefs.h >>conftest.$ac_ext
2635 cat >>conftest.$ac_ext <<_ACEOF
2636 /* end confdefs.h.  */
2637
2638 int
2639 main ()
2640 {
2641
2642   ;
2643   return 0;
2644 }
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648   (eval $ac_compile) 2>conftest.er1
2649   ac_status=$?
2650   grep -v '^ *+' conftest.er1 >conftest.err
2651   rm -f conftest.er1
2652   cat conftest.err >&5
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); } &&
2655          { ac_try='test -z "$ac_cxx_werror_flag"
2656                          || test ! -s conftest.err'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; } &&
2662          { ac_try='test -s conftest.$ac_objext'
2663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664   (eval $ac_try) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; }; then
2668   ac_cv_prog_cxx_g=yes
2669 else
2670   echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673 ac_cv_prog_cxx_g=no
2674 fi
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676 fi
2677 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2678 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2679 if test "$ac_test_CXXFLAGS" = set; then
2680   CXXFLAGS=$ac_save_CXXFLAGS
2681 elif test $ac_cv_prog_cxx_g = yes; then
2682   if test "$GXX" = yes; then
2683     CXXFLAGS="-g -O2"
2684   else
2685     CXXFLAGS="-g"
2686   fi
2687 else
2688   if test "$GXX" = yes; then
2689     CXXFLAGS="-O2"
2690   else
2691     CXXFLAGS=
2692   fi
2693 fi
2694 for ac_declaration in \
2695    '' \
2696    'extern "C" void std::exit (int) throw (); using std::exit;' \
2697    'extern "C" void std::exit (int); using std::exit;' \
2698    'extern "C" void exit (int) throw ();' \
2699    'extern "C" void exit (int);' \
2700    'void exit (int);'
2701 do
2702   cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h.  */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h.  */
2708 $ac_declaration
2709 #include <stdlib.h>
2710 int
2711 main ()
2712 {
2713 exit (42);
2714   ;
2715   return 0;
2716 }
2717 _ACEOF
2718 rm -f conftest.$ac_objext
2719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2720   (eval $ac_compile) 2>conftest.er1
2721   ac_status=$?
2722   grep -v '^ *+' conftest.er1 >conftest.err
2723   rm -f conftest.er1
2724   cat conftest.err >&5
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); } &&
2727          { ac_try='test -z "$ac_cxx_werror_flag"
2728                          || test ! -s conftest.err'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; } &&
2734          { ac_try='test -s conftest.$ac_objext'
2735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736   (eval $ac_try) 2>&5
2737   ac_status=$?
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); }; }; then
2740   :
2741 else
2742   echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2744
2745 continue
2746 fi
2747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2748   cat >conftest.$ac_ext <<_ACEOF
2749 /* confdefs.h.  */
2750 _ACEOF
2751 cat confdefs.h >>conftest.$ac_ext
2752 cat >>conftest.$ac_ext <<_ACEOF
2753 /* end confdefs.h.  */
2754 $ac_declaration
2755 int
2756 main ()
2757 {
2758 exit (42);
2759   ;
2760   return 0;
2761 }
2762 _ACEOF
2763 rm -f conftest.$ac_objext
2764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765   (eval $ac_compile) 2>conftest.er1
2766   ac_status=$?
2767   grep -v '^ *+' conftest.er1 >conftest.err
2768   rm -f conftest.er1
2769   cat conftest.err >&5
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } &&
2772          { ac_try='test -z "$ac_cxx_werror_flag"
2773                          || test ! -s conftest.err'
2774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; } &&
2779          { ac_try='test -s conftest.$ac_objext'
2780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781   (eval $ac_try) 2>&5
2782   ac_status=$?
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); }; }; then
2785   break
2786 else
2787   echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2789
2790 fi
2791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792 done
2793 rm -f conftest*
2794 if test -n "$ac_declaration"; then
2795   echo '#ifdef __cplusplus' >>confdefs.h
2796   echo $ac_declaration      >>confdefs.h
2797   echo '#endif'             >>confdefs.h
2798 fi
2799
2800 ac_ext=c
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805
2806 if test "x$CC" != xcc; then
2807   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2808 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2809 else
2810   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2811 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2812 fi
2813 set dummy $CC; ac_cc=`echo $2 |
2814                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2815 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2816   echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818   cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824
2825 int
2826 main ()
2827 {
2828
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 # Make sure it works both with $CC and with simple cc.
2834 # We do the test twice because some compilers refuse to overwrite an
2835 # existing .o file with -o, though they will create one.
2836 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2837 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838   (eval $ac_try) 2>&5
2839   ac_status=$?
2840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841   (exit $ac_status); } &&
2842    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843   (eval $ac_try) 2>&5
2844   ac_status=$?
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); };
2847 then
2848   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2849   if test "x$CC" != xcc; then
2850     # Test first that cc exists at all.
2851     if { ac_try='cc -c conftest.$ac_ext >&5'
2852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853   (eval $ac_try) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; }; then
2857       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2858       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); } &&
2863          test -f conftest.$ac_objext && { (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); };
2868       then
2869         # cc works too.
2870         :
2871       else
2872         # cc exists but doesn't like -o.
2873         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2874       fi
2875     fi
2876   fi
2877 else
2878   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2879 fi
2880 rm -f conftest*
2881
2882 fi
2883 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2884   echo "$as_me:$LINENO: result: yes" >&5
2885 echo "${ECHO_T}yes" >&6
2886 else
2887   echo "$as_me:$LINENO: result: no" >&5
2888 echo "${ECHO_T}no" >&6
2889
2890 cat >>confdefs.h <<\_ACEOF
2891 #define NO_MINUS_C_MINUS_O 1
2892 _ACEOF
2893
2894 fi
2895
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2903 # On Suns, sometimes $CPP names a directory.
2904 if test -n "$CPP" && test -d "$CPP"; then
2905   CPP=
2906 fi
2907 if test -z "$CPP"; then
2908   if test "${ac_cv_prog_CPP+set}" = set; then
2909   echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911       # Double quotes because CPP needs to be expanded
2912     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2913     do
2914       ac_preproc_ok=false
2915 for ac_c_preproc_warn_flag in '' yes
2916 do
2917   # Use a header file that comes with gcc, so configuring glibc
2918   # with a fresh cross-compiler works.
2919   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2920   # <limits.h> exists even on freestanding compilers.
2921   # On the NeXT, cc -E runs the code through the compiler's parser,
2922   # not just through cpp. "Syntax error" is here to catch this case.
2923   cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h.  */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h.  */
2929 #ifdef __STDC__
2930 # include <limits.h>
2931 #else
2932 # include <assert.h>
2933 #endif
2934                      Syntax error
2935 _ACEOF
2936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2938   ac_status=$?
2939   grep -v '^ *+' conftest.er1 >conftest.err
2940   rm -f conftest.er1
2941   cat conftest.err >&5
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); } >/dev/null; then
2944   if test -s conftest.err; then
2945     ac_cpp_err=$ac_c_preproc_warn_flag
2946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2947   else
2948     ac_cpp_err=
2949   fi
2950 else
2951   ac_cpp_err=yes
2952 fi
2953 if test -z "$ac_cpp_err"; then
2954   :
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959   # Broken: fails on valid input.
2960 continue
2961 fi
2962 rm -f conftest.err conftest.$ac_ext
2963
2964   # OK, works on sane cases.  Now check whether non-existent headers
2965   # can be detected and how.
2966   cat >conftest.$ac_ext <<_ACEOF
2967 /* confdefs.h.  */
2968 _ACEOF
2969 cat confdefs.h >>conftest.$ac_ext
2970 cat >>conftest.$ac_ext <<_ACEOF
2971 /* end confdefs.h.  */
2972 #include <ac_nonexistent.h>
2973 _ACEOF
2974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2976   ac_status=$?
2977   grep -v '^ *+' conftest.er1 >conftest.err
2978   rm -f conftest.er1
2979   cat conftest.err >&5
2980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981   (exit $ac_status); } >/dev/null; then
2982   if test -s conftest.err; then
2983     ac_cpp_err=$ac_c_preproc_warn_flag
2984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985   else
2986     ac_cpp_err=
2987   fi
2988 else
2989   ac_cpp_err=yes
2990 fi
2991 if test -z "$ac_cpp_err"; then
2992   # Broken: success on invalid input.
2993 continue
2994 else
2995   echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
2997
2998   # Passes both tests.
2999 ac_preproc_ok=:
3000 break
3001 fi
3002 rm -f conftest.err conftest.$ac_ext
3003
3004 done
3005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3006 rm -f conftest.err conftest.$ac_ext
3007 if $ac_preproc_ok; then
3008   break
3009 fi
3010
3011     done
3012     ac_cv_prog_CPP=$CPP
3013
3014 fi
3015   CPP=$ac_cv_prog_CPP
3016 else
3017   ac_cv_prog_CPP=$CPP
3018 fi
3019 echo "$as_me:$LINENO: result: $CPP" >&5
3020 echo "${ECHO_T}$CPP" >&6
3021 ac_preproc_ok=false
3022 for ac_c_preproc_warn_flag in '' yes
3023 do
3024   # Use a header file that comes with gcc, so configuring glibc
3025   # with a fresh cross-compiler works.
3026   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027   # <limits.h> exists even on freestanding compilers.
3028   # On the NeXT, cc -E runs the code through the compiler's parser,
3029   # not just through cpp. "Syntax error" is here to catch this case.
3030   cat >conftest.$ac_ext <<_ACEOF
3031 /* confdefs.h.  */
3032 _ACEOF
3033 cat confdefs.h >>conftest.$ac_ext
3034 cat >>conftest.$ac_ext <<_ACEOF
3035 /* end confdefs.h.  */
3036 #ifdef __STDC__
3037 # include <limits.h>
3038 #else
3039 # include <assert.h>
3040 #endif
3041                      Syntax error
3042 _ACEOF
3043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3045   ac_status=$?
3046   grep -v '^ *+' conftest.er1 >conftest.err
3047   rm -f conftest.er1
3048   cat conftest.err >&5
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); } >/dev/null; then
3051   if test -s conftest.err; then
3052     ac_cpp_err=$ac_c_preproc_warn_flag
3053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3054   else
3055     ac_cpp_err=
3056   fi
3057 else
3058   ac_cpp_err=yes
3059 fi
3060 if test -z "$ac_cpp_err"; then
3061   :
3062 else
3063   echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3065
3066   # Broken: fails on valid input.
3067 continue
3068 fi
3069 rm -f conftest.err conftest.$ac_ext
3070
3071   # OK, works on sane cases.  Now check whether non-existent headers
3072   # can be detected and how.
3073   cat >conftest.$ac_ext <<_ACEOF
3074 /* confdefs.h.  */
3075 _ACEOF
3076 cat confdefs.h >>conftest.$ac_ext
3077 cat >>conftest.$ac_ext <<_ACEOF
3078 /* end confdefs.h.  */
3079 #include <ac_nonexistent.h>
3080 _ACEOF
3081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } >/dev/null; then
3089   if test -s conftest.err; then
3090     ac_cpp_err=$ac_c_preproc_warn_flag
3091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3092   else
3093     ac_cpp_err=
3094   fi
3095 else
3096   ac_cpp_err=yes
3097 fi
3098 if test -z "$ac_cpp_err"; then
3099   # Broken: success on invalid input.
3100 continue
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105   # Passes both tests.
3106 ac_preproc_ok=:
3107 break
3108 fi
3109 rm -f conftest.err conftest.$ac_ext
3110
3111 done
3112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3113 rm -f conftest.err conftest.$ac_ext
3114 if $ac_preproc_ok; then
3115   :
3116 else
3117   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&2;}
3121    { (exit 1); exit 1; }; }
3122 fi
3123
3124 ac_ext=c
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129
3130
3131 echo "$as_me:$LINENO: checking for egrep" >&5
3132 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3133 if test "${ac_cv_prog_egrep+set}" = set; then
3134   echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3137     then ac_cv_prog_egrep='grep -E'
3138     else ac_cv_prog_egrep='egrep'
3139     fi
3140 fi
3141 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3142 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3143  EGREP=$ac_cv_prog_egrep
3144
3145
3146 if test $ac_cv_c_compiler_gnu = yes; then
3147     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3148 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3149 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152     ac_pattern="Autoconf.*'x'"
3153   cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h.  */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h.  */
3159 #include <sgtty.h>
3160 Autoconf TIOCGETP
3161 _ACEOF
3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3163   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3164   ac_cv_prog_gcc_traditional=yes
3165 else
3166   ac_cv_prog_gcc_traditional=no
3167 fi
3168 rm -f conftest*
3169
3170
3171   if test $ac_cv_prog_gcc_traditional = no; then
3172     cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178 #include <termio.h>
3179 Autoconf TCGETA
3180 _ACEOF
3181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3182   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3183   ac_cv_prog_gcc_traditional=yes
3184 fi
3185 rm -f conftest*
3186
3187   fi
3188 fi
3189 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3190 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3191   if test $ac_cv_prog_gcc_traditional = yes; then
3192     CC="$CC -traditional"
3193   fi
3194 fi
3195
3196 if test "x$CC" = xgcc
3197 then
3198    cat >>confdefs.h <<\_ACEOF
3199 #define HAVE_GCC 1
3200 _ACEOF
3201
3202 fi
3203
3204 # Find a good install program.  We prefer a C program (faster),
3205 # so one script is as good as another.  But avoid the broken or
3206 # incompatible versions:
3207 # SysV /etc/install, /usr/sbin/install
3208 # SunOS /usr/etc/install
3209 # IRIX /sbin/install
3210 # AIX /bin/install
3211 # AmigaOS /C/install, which installs bootblocks on floppy discs
3212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3215 # OS/2's system install, which has a completely different semantic
3216 # ./install, which can be erroneously created by make from ./install.sh.
3217 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3218 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3219 if test -z "$INSTALL"; then
3220 if test "${ac_cv_path_install+set}" = set; then
3221   echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228   # Account for people who put trailing slashes in PATH elements.
3229 case $as_dir/ in
3230   ./ | .// | /cC/* | \
3231   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3232   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3233   /usr/ucb/* ) ;;
3234   *)
3235     # OSF1 and SCO ODT 3.0 have their own names for install.
3236     # Don't use installbsd from OSF since it installs stuff as root
3237     # by default.
3238     for ac_prog in ginstall scoinst install; do
3239       for ac_exec_ext in '' $ac_executable_extensions; do
3240         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3241           if test $ac_prog = install &&
3242             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3243             # AIX install.  It has an incompatible calling convention.
3244             :
3245           elif test $ac_prog = install &&
3246             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3247             # program-specific install script used by HP pwplus--don't use.
3248             :
3249           else
3250             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3251             break 3
3252           fi
3253         fi
3254       done
3255     done
3256     ;;
3257 esac
3258 done
3259
3260
3261 fi
3262   if test "${ac_cv_path_install+set}" = set; then
3263     INSTALL=$ac_cv_path_install
3264   else
3265     # As a last resort, use the slow shell script.  We don't cache a
3266     # path for INSTALL within a source directory, because that will
3267     # break other packages using the cache if that directory is
3268     # removed, or if the path is relative.
3269     INSTALL=$ac_install_sh
3270   fi
3271 fi
3272 echo "$as_me:$LINENO: result: $INSTALL" >&5
3273 echo "${ECHO_T}$INSTALL" >&6
3274
3275 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3276 # It thinks the first close brace ends the variable substitution.
3277 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3278
3279 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3280
3281 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3282
3283 if test -n "$ac_tool_prefix"; then
3284   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3285 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3286 echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_prog_RANLIB+set}" = set; then
3289   echo $ECHO_N "(cached) $ECHO_C" >&6
3290 else
3291   if test -n "$RANLIB"; then
3292   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299   for ac_exec_ext in '' $ac_executable_extensions; do
3300   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303     break 2
3304   fi
3305 done
3306 done
3307
3308 fi
3309 fi
3310 RANLIB=$ac_cv_prog_RANLIB
3311 if test -n "$RANLIB"; then
3312   echo "$as_me:$LINENO: result: $RANLIB" >&5
3313 echo "${ECHO_T}$RANLIB" >&6
3314 else
3315   echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3317 fi
3318
3319 fi
3320 if test -z "$ac_cv_prog_RANLIB"; then
3321   ac_ct_RANLIB=$RANLIB
3322   # Extract the first word of "ranlib", so it can be a program name with args.
3323 set dummy ranlib; ac_word=$2
3324 echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3326 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   if test -n "$ac_ct_RANLIB"; then
3330   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3334 do
3335   IFS=$as_save_IFS
3336   test -z "$as_dir" && as_dir=.
3337   for ac_exec_ext in '' $ac_executable_extensions; do
3338   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339     ac_cv_prog_ac_ct_RANLIB="ranlib"
3340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341     break 2
3342   fi
3343 done
3344 done
3345
3346   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3347 fi
3348 fi
3349 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3350 if test -n "$ac_ct_RANLIB"; then
3351   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3352 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3353 else
3354   echo "$as_me:$LINENO: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3356 fi
3357
3358   RANLIB=$ac_ct_RANLIB
3359 else
3360   RANLIB="$ac_cv_prog_RANLIB"
3361 fi
3362
3363 # Extract the first word of "mv", so it can be a program name with args.
3364 set dummy mv; ac_word=$2
3365 echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_path_MV+set}" = set; then
3368   echo $ECHO_N "(cached) $ECHO_C" >&6
3369 else
3370   case $MV in
3371   [\\/]* | ?:[\\/]*)
3372   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3373   ;;
3374   *)
3375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3377 do
3378   IFS=$as_save_IFS
3379   test -z "$as_dir" && as_dir=.
3380   for ac_exec_ext in '' $ac_executable_extensions; do
3381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3382     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3384     break 2
3385   fi
3386 done
3387 done
3388
3389   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3390   ;;
3391 esac
3392 fi
3393 MV=$ac_cv_path_MV
3394
3395 if test -n "$MV"; then
3396   echo "$as_me:$LINENO: result: $MV" >&5
3397 echo "${ECHO_T}$MV" >&6
3398 else
3399   echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6
3401 fi
3402
3403 # Extract the first word of "rm", so it can be a program name with args.
3404 set dummy rm; ac_word=$2
3405 echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3407 if test "${ac_cv_path_RM+set}" = set; then
3408   echo $ECHO_N "(cached) $ECHO_C" >&6
3409 else
3410   case $RM in
3411   [\\/]* | ?:[\\/]*)
3412   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3413   ;;
3414   *)
3415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3417 do
3418   IFS=$as_save_IFS
3419   test -z "$as_dir" && as_dir=.
3420   for ac_exec_ext in '' $ac_executable_extensions; do
3421   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3424     break 2
3425   fi
3426 done
3427 done
3428
3429   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3430   ;;
3431 esac
3432 fi
3433 RM=$ac_cv_path_RM
3434
3435 if test -n "$RM"; then
3436   echo "$as_me:$LINENO: result: $RM" >&5
3437 echo "${ECHO_T}$RM" >&6
3438 else
3439   echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3441 fi
3442
3443 # Extract the first word of "cp", so it can be a program name with args.
3444 set dummy cp; ac_word=$2
3445 echo "$as_me:$LINENO: checking for $ac_word" >&5
3446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3447 if test "${ac_cv_path_CP+set}" = set; then
3448   echo $ECHO_N "(cached) $ECHO_C" >&6
3449 else
3450   case $CP in
3451   [\\/]* | ?:[\\/]*)
3452   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3453   ;;
3454   *)
3455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460   for ac_exec_ext in '' $ac_executable_extensions; do
3461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464     break 2
3465   fi
3466 done
3467 done
3468
3469   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3470   ;;
3471 esac
3472 fi
3473 CP=$ac_cv_path_CP
3474
3475 if test -n "$CP"; then
3476   echo "$as_me:$LINENO: result: $CP" >&5
3477 echo "${ECHO_T}$CP" >&6
3478 else
3479   echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3481 fi
3482
3483 # Extract the first word of "sed", so it can be a program name with args.
3484 set dummy sed; ac_word=$2
3485 echo "$as_me:$LINENO: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3487 if test "${ac_cv_path_SED+set}" = set; then
3488   echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490   case $SED in
3491   [\\/]* | ?:[\\/]*)
3492   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3493   ;;
3494   *)
3495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 for as_dir in $PATH
3497 do
3498   IFS=$as_save_IFS
3499   test -z "$as_dir" && as_dir=.
3500   for ac_exec_ext in '' $ac_executable_extensions; do
3501   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3502     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3504     break 2
3505   fi
3506 done
3507 done
3508
3509   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3510   ;;
3511 esac
3512 fi
3513 SED=$ac_cv_path_SED
3514
3515 if test -n "$SED"; then
3516   echo "$as_me:$LINENO: result: $SED" >&5
3517 echo "${ECHO_T}$SED" >&6
3518 else
3519   echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3521 fi
3522
3523 # Extract the first word of "echo", so it can be a program name with args.
3524 set dummy echo; ac_word=$2
3525 echo "$as_me:$LINENO: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527 if test "${ac_cv_path_ECHO+set}" = set; then
3528   echo $ECHO_N "(cached) $ECHO_C" >&6
3529 else
3530   case $ECHO in
3531   [\\/]* | ?:[\\/]*)
3532   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3533   ;;
3534   *)
3535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538   IFS=$as_save_IFS
3539   test -z "$as_dir" && as_dir=.
3540   for ac_exec_ext in '' $ac_executable_extensions; do
3541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3542     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3544     break 2
3545   fi
3546 done
3547 done
3548
3549   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3550   ;;
3551 esac
3552 fi
3553 ECHO=$ac_cv_path_ECHO
3554
3555 if test -n "$ECHO"; then
3556   echo "$as_me:$LINENO: result: $ECHO" >&5
3557 echo "${ECHO_T}$ECHO" >&6
3558 else
3559   echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6
3561 fi
3562
3563 # Extract the first word of "cmp", so it can be a program name with args.
3564 set dummy cmp; ac_word=$2
3565 echo "$as_me:$LINENO: checking for $ac_word" >&5
3566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3567 if test "${ac_cv_path_CMP+set}" = set; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   case $CMP in
3571   [\\/]* | ?:[\\/]*)
3572   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3573   ;;
3574   *)
3575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578   IFS=$as_save_IFS
3579   test -z "$as_dir" && as_dir=.
3580   for ac_exec_ext in '' $ac_executable_extensions; do
3581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3582     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3584     break 2
3585   fi
3586 done
3587 done
3588
3589   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3590   ;;
3591 esac
3592 fi
3593 CMP=$ac_cv_path_CMP
3594
3595 if test -n "$CMP"; then
3596   echo "$as_me:$LINENO: result: $CMP" >&5
3597 echo "${ECHO_T}$CMP" >&6
3598 else
3599   echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3601 fi
3602
3603 # Extract the first word of "tbl", so it can be a program name with args.
3604 set dummy tbl; ac_word=$2
3605 echo "$as_me:$LINENO: checking for $ac_word" >&5
3606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607 if test "${ac_cv_path_TBL+set}" = set; then
3608   echo $ECHO_N "(cached) $ECHO_C" >&6
3609 else
3610   case $TBL in
3611   [\\/]* | ?:[\\/]*)
3612   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3613   ;;
3614   *)
3615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3617 do
3618   IFS=$as_save_IFS
3619   test -z "$as_dir" && as_dir=.
3620   for ac_exec_ext in '' $ac_executable_extensions; do
3621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3622     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3624     break 2
3625   fi
3626 done
3627 done
3628
3629   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3630   ;;
3631 esac
3632 fi
3633 TBL=$ac_cv_path_TBL
3634
3635 if test -n "$TBL"; then
3636   echo "$as_me:$LINENO: result: $TBL" >&5
3637 echo "${ECHO_T}$TBL" >&6
3638 else
3639   echo "$as_me:$LINENO: result: no" >&5
3640 echo "${ECHO_T}no" >&6
3641 fi
3642
3643 # Extract the first word of "ar", so it can be a program name with args.
3644 set dummy ar; ac_word=$2
3645 echo "$as_me:$LINENO: checking for $ac_word" >&5
3646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3647 if test "${ac_cv_path_AR+set}" = set; then
3648   echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650   case $AR in
3651   [\\/]* | ?:[\\/]*)
3652   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3653   ;;
3654   *)
3655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in $PATH
3657 do
3658   IFS=$as_save_IFS
3659   test -z "$as_dir" && as_dir=.
3660   for ac_exec_ext in '' $ac_executable_extensions; do
3661   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3662     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3663     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3664     break 2
3665   fi
3666 done
3667 done
3668
3669   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3670   ;;
3671 esac
3672 fi
3673 AR=$ac_cv_path_AR
3674
3675 if test -n "$AR"; then
3676   echo "$as_me:$LINENO: result: $AR" >&5
3677 echo "${ECHO_T}$AR" >&6
3678 else
3679   echo "$as_me:$LINENO: result: no" >&5
3680 echo "${ECHO_T}no" >&6
3681 fi
3682
3683 # Extract the first word of "openssl", so it can be a program name with args.
3684 set dummy openssl; ac_word=$2
3685 echo "$as_me:$LINENO: checking for $ac_word" >&5
3686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3687 if test "${ac_cv_path_OPENSSL+set}" = set; then
3688   echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690   case $OPENSSL in
3691   [\\/]* | ?:[\\/]*)
3692   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3693   ;;
3694   *)
3695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3697 do
3698   IFS=$as_save_IFS
3699   test -z "$as_dir" && as_dir=.
3700   for ac_exec_ext in '' $ac_executable_extensions; do
3701   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3704     break 2
3705   fi
3706 done
3707 done
3708
3709   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3710   ;;
3711 esac
3712 fi
3713 OPENSSL=$ac_cv_path_OPENSSL
3714
3715 if test -n "$OPENSSL"; then
3716   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3717 echo "${ECHO_T}$OPENSSL" >&6
3718 else
3719   echo "$as_me:$LINENO: result: no" >&5
3720 echo "${ECHO_T}no" >&6
3721 fi
3722
3723 # Extract the first word of "mtx", so it can be a program name with args.
3724 set dummy mtx; ac_word=$2
3725 echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3727 if test "${ac_cv_path_MTX+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   case $MTX in
3731   [\\/]* | ?:[\\/]*)
3732   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3733   ;;
3734   *)
3735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3737 do
3738   IFS=$as_save_IFS
3739   test -z "$as_dir" && as_dir=.
3740   for ac_exec_ext in '' $ac_executable_extensions; do
3741   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3742     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3743     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744     break 2
3745   fi
3746 done
3747 done
3748
3749   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3750   ;;
3751 esac
3752 fi
3753 MTX=$ac_cv_path_MTX
3754
3755 if test -n "$MTX"; then
3756   echo "$as_me:$LINENO: result: $MTX" >&5
3757 echo "${ECHO_T}$MTX" >&6
3758 else
3759   echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3761 fi
3762
3763 # Extract the first word of "mkisofs", so it can be a program name with args.
3764 set dummy mkisofs; ac_word=$2
3765 echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767 if test "${ac_cv_path_MKISOFS+set}" = set; then
3768   echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770   case $MKISOFS in
3771   [\\/]* | ?:[\\/]*)
3772   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3773   ;;
3774   *)
3775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH
3777 do
3778   IFS=$as_save_IFS
3779   test -z "$as_dir" && as_dir=.
3780   for ac_exec_ext in '' $ac_executable_extensions; do
3781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3784     break 2
3785   fi
3786 done
3787 done
3788
3789   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3790   ;;
3791 esac
3792 fi
3793 MKISOFS=$ac_cv_path_MKISOFS
3794
3795 if test -n "$MKISOFS"; then
3796   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3797 echo "${ECHO_T}$MKISOFS" >&6
3798 else
3799   echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3801 fi
3802
3803 # Extract the first word of "python", so it can be a program name with args.
3804 set dummy python; ac_word=$2
3805 echo "$as_me:$LINENO: checking for $ac_word" >&5
3806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807 if test "${ac_cv_path_PYTHON+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810   case $PYTHON in
3811   [\\/]* | ?:[\\/]*)
3812   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3813   ;;
3814   *)
3815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3817 do
3818   IFS=$as_save_IFS
3819   test -z "$as_dir" && as_dir=.
3820   for ac_exec_ext in '' $ac_executable_extensions; do
3821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824     break 2
3825   fi
3826 done
3827 done
3828
3829   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3830   ;;
3831 esac
3832 fi
3833 PYTHON=$ac_cv_path_PYTHON
3834
3835 if test -n "$PYTHON"; then
3836   echo "$as_me:$LINENO: result: $PYTHON" >&5
3837 echo "${ECHO_T}$PYTHON" >&6
3838 else
3839   echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3841 fi
3842
3843 # Extract the first word of "growisofs", so it can be a program name with args.
3844 set dummy growisofs; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   case $GROWISOFS in
3851   [\\/]* | ?:[\\/]*)
3852   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3853   ;;
3854   *)
3855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860   for ac_exec_ext in '' $ac_executable_extensions; do
3861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867 done
3868
3869   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3870   ;;
3871 esac
3872 fi
3873 GROWISOFS=$ac_cv_path_GROWISOFS
3874
3875 if test -n "$GROWISOFS"; then
3876   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3877 echo "${ECHO_T}$GROWISOFS" >&6
3878 else
3879   echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6
3881 fi
3882
3883 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3884 set dummy dvd+rw-mediainfo; ac_word=$2
3885 echo "$as_me:$LINENO: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3887 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3888   echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890   case $DVDRWMEDIAINFO in
3891   [\\/]* | ?:[\\/]*)
3892   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3893   ;;
3894   *)
3895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898   IFS=$as_save_IFS
3899   test -z "$as_dir" && as_dir=.
3900   for ac_exec_ext in '' $ac_executable_extensions; do
3901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3902     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3904     break 2
3905   fi
3906 done
3907 done
3908
3909   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3910   ;;
3911 esac
3912 fi
3913 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3914
3915 if test -n "$DVDRWMEDIAINFO"; then
3916   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3917 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3918 else
3919   echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6
3921 fi
3922
3923 # Extract the first word of "pkg-config", so it can be a program name with args.
3924 set dummy pkg-config; ac_word=$2
3925 echo "$as_me:$LINENO: checking for $ac_word" >&5
3926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3927 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3928   echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930   case $PKGCONFIG in
3931   [\\/]* | ?:[\\/]*)
3932   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3933   ;;
3934   *)
3935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938   IFS=$as_save_IFS
3939   test -z "$as_dir" && as_dir=.
3940   for ac_exec_ext in '' $ac_executable_extensions; do
3941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3942     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944     break 2
3945   fi
3946 done
3947 done
3948
3949   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3950   ;;
3951 esac
3952 fi
3953 PKGCONFIG=$ac_cv_path_PKGCONFIG
3954
3955 if test -n "$PKGCONFIG"; then
3956   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3957 echo "${ECHO_T}$PKGCONFIG" >&6
3958 else
3959   echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3961 fi
3962
3963 # Extract the first word of "wx-config", so it can be a program name with args.
3964 set dummy wx-config; ac_word=$2
3965 echo "$as_me:$LINENO: checking for $ac_word" >&5
3966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3968   echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970   case $WXCONFIG in
3971   [\\/]* | ?:[\\/]*)
3972   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3973   ;;
3974   *)
3975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3977 do
3978   IFS=$as_save_IFS
3979   test -z "$as_dir" && as_dir=.
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3982     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984     break 2
3985   fi
3986 done
3987 done
3988
3989   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="/opt/gnome/bin/wx-config"
3990   ;;
3991 esac
3992 fi
3993 WXCONFIG=$ac_cv_path_WXCONFIG
3994
3995 if test -n "$WXCONFIG"; then
3996   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3997 echo "${ECHO_T}$WXCONFIG" >&6
3998 else
3999   echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4001 fi
4002
4003 # Extract the first word of "cdrecord", so it can be a program name with args.
4004 set dummy cdrecord; ac_word=$2
4005 echo "$as_me:$LINENO: checking for $ac_word" >&5
4006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4007 if test "${ac_cv_path_CDRECORD+set}" = set; then
4008   echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010   case $CDRECORD in
4011   [\\/]* | ?:[\\/]*)
4012   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4013   ;;
4014   *)
4015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018   IFS=$as_save_IFS
4019   test -z "$as_dir" && as_dir=.
4020   for ac_exec_ext in '' $ac_executable_extensions; do
4021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4022     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4024     break 2
4025   fi
4026 done
4027 done
4028
4029   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4030   ;;
4031 esac
4032 fi
4033 CDRECORD=$ac_cv_path_CDRECORD
4034
4035 if test -n "$CDRECORD"; then
4036   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4037 echo "${ECHO_T}$CDRECORD" >&6
4038 else
4039   echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4041 fi
4042
4043 # Extract the first word of "pidof", so it can be a program name with args.
4044 set dummy pidof; ac_word=$2
4045 echo "$as_me:$LINENO: checking for $ac_word" >&5
4046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4047 if test "${ac_cv_path_PIDOF+set}" = set; then
4048   echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050   case $PIDOF in
4051   [\\/]* | ?:[\\/]*)
4052   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4053   ;;
4054   *)
4055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058   IFS=$as_save_IFS
4059   test -z "$as_dir" && as_dir=.
4060   for ac_exec_ext in '' $ac_executable_extensions; do
4061   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064     break 2
4065   fi
4066 done
4067 done
4068
4069   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4070   ;;
4071 esac
4072 fi
4073 PIDOF=$ac_cv_path_PIDOF
4074
4075 if test -n "$PIDOF"; then
4076   echo "$as_me:$LINENO: result: $PIDOF" >&5
4077 echo "${ECHO_T}$PIDOF" >&6
4078 else
4079   echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4081 fi
4082
4083 for ac_prog in gawk mawk nawk awk
4084 do
4085   # Extract the first word of "$ac_prog", so it can be a program name with args.
4086 set dummy $ac_prog; ac_word=$2
4087 echo "$as_me:$LINENO: checking for $ac_word" >&5
4088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4089 if test "${ac_cv_prog_AWK+set}" = set; then
4090   echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092   if test -n "$AWK"; then
4093   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4094 else
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4097 do
4098   IFS=$as_save_IFS
4099   test -z "$as_dir" && as_dir=.
4100   for ac_exec_ext in '' $ac_executable_extensions; do
4101   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4102     ac_cv_prog_AWK="$ac_prog"
4103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4104     break 2
4105   fi
4106 done
4107 done
4108
4109 fi
4110 fi
4111 AWK=$ac_cv_prog_AWK
4112 if test -n "$AWK"; then
4113   echo "$as_me:$LINENO: result: $AWK" >&5
4114 echo "${ECHO_T}$AWK" >&6
4115 else
4116   echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4118 fi
4119
4120   test -n "$AWK" && break
4121 done
4122
4123 # Some AWK programs fail, so test it and warn the user
4124 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4125       { if ((prog == $2) || (("(" prog ")") == $2) ||
4126            (("" prog "") == $2) ||
4127            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4128 else
4129   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4130    The regex engine of $AWK is too broken to be used you
4131    might want to install GNU AWK.
4132    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4133 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4134    The regex engine of $AWK is too broken to be used you
4135    might want to install GNU AWK.
4136    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4137    { (exit 1); exit 1; }; }
4138 fi
4139 THE_AWK=$AWK
4140 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4141 set dummy $THE_AWK; ac_word=$2
4142 echo "$as_me:$LINENO: checking for $ac_word" >&5
4143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4144 if test "${ac_cv_path_AWK+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   case $AWK in
4148   [\\/]* | ?:[\\/]*)
4149   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4150   ;;
4151   *)
4152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155   IFS=$as_save_IFS
4156   test -z "$as_dir" && as_dir=.
4157   for ac_exec_ext in '' $ac_executable_extensions; do
4158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4161     break 2
4162   fi
4163 done
4164 done
4165
4166   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4167   ;;
4168 esac
4169 fi
4170 AWK=$ac_cv_path_AWK
4171
4172 if test -n "$AWK"; then
4173   echo "$as_me:$LINENO: result: $AWK" >&5
4174 echo "${ECHO_T}$AWK" >&6
4175 else
4176   echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4178 fi
4179
4180
4181 test -n "$ARFLAG" || ARFLAGS="cr"
4182
4183
4184 MAKE_SHELL=/bin/sh
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194 # Make sure we can run config.sub.
4195 $ac_config_sub sun4 >/dev/null 2>&1 ||
4196   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4197 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4198    { (exit 1); exit 1; }; }
4199
4200 echo "$as_me:$LINENO: checking build system type" >&5
4201 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4202 if test "${ac_cv_build+set}" = set; then
4203   echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205   ac_cv_build_alias=$build_alias
4206 test -z "$ac_cv_build_alias" &&
4207   ac_cv_build_alias=`$ac_config_guess`
4208 test -z "$ac_cv_build_alias" &&
4209   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4210 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4211    { (exit 1); exit 1; }; }
4212 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4213   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4214 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4215    { (exit 1); exit 1; }; }
4216
4217 fi
4218 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4219 echo "${ECHO_T}$ac_cv_build" >&6
4220 build=$ac_cv_build
4221 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4222 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4223 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4224
4225
4226
4227 echo "$as_me:$LINENO: checking host system type" >&5
4228 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4229 if test "${ac_cv_host+set}" = set; then
4230   echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232   ac_cv_host_alias=$host_alias
4233 test -z "$ac_cv_host_alias" &&
4234   ac_cv_host_alias=$ac_cv_build_alias
4235 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4236   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4237 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4238    { (exit 1); exit 1; }; }
4239
4240 fi
4241 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4242 echo "${ECHO_T}$ac_cv_host" >&6
4243 host=$ac_cv_host
4244 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4245 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4246 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4247
4248
4249 case $host_os in
4250   *cygwin* ) CYGWIN=yes;;
4251          * ) CYGWIN=no;;
4252 esac
4253
4254 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4255 then
4256
4257
4258 if $TRUEPRG; then
4259   HAVE_SUN_OS_TRUE=
4260   HAVE_SUN_OS_FALSE='#'
4261 else
4262   HAVE_SUN_OS_TRUE='#'
4263   HAVE_SUN_OS_FALSE=
4264 fi
4265         cat >>confdefs.h <<\_ACEOF
4266 #define HAVE_SUN_OS 1
4267 _ACEOF
4268
4269 else
4270
4271
4272 if $FALSEPRG; then
4273   HAVE_SUN_OS_TRUE=
4274   HAVE_SUN_OS_FALSE='#'
4275 else
4276   HAVE_SUN_OS_TRUE='#'
4277   HAVE_SUN_OS_FALSE=
4278 fi
4279 fi
4280
4281 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4282 then
4283
4284
4285 if $TRUEPRG; then
4286   HAVE_OSF1_OS_TRUE=
4287   HAVE_OSF1_OS_FALSE='#'
4288 else
4289   HAVE_OSF1_OS_TRUE='#'
4290   HAVE_OSF1_OS_FALSE=
4291 fi
4292         cat >>confdefs.h <<\_ACEOF
4293 #define HAVE_OSF1_OS 1
4294 _ACEOF
4295
4296 else
4297
4298
4299 if $FALSEPRG; then
4300   HAVE_OSF1_OS_TRUE=
4301   HAVE_OSF1_OS_FALSE='#'
4302 else
4303   HAVE_OSF1_OS_TRUE='#'
4304   HAVE_OSF1_OS_FALSE=
4305 fi
4306 fi
4307
4308 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4309 then
4310
4311
4312 if $TRUEPRG; then
4313   HAVE_AIX_OS_TRUE=
4314   HAVE_AIX_OS_FALSE='#'
4315 else
4316   HAVE_AIX_OS_TRUE='#'
4317   HAVE_AIX_OS_FALSE=
4318 fi
4319         cat >>confdefs.h <<\_ACEOF
4320 #define HAVE_AIX_OS 1
4321 _ACEOF
4322
4323 else
4324
4325
4326 if $FALSEPRG; then
4327   HAVE_AIX_OS_TRUE=
4328   HAVE_AIX_OS_FALSE='#'
4329 else
4330   HAVE_AIX_OS_TRUE='#'
4331   HAVE_AIX_OS_FALSE=
4332 fi
4333 fi
4334
4335 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4336 then
4337
4338
4339 if $TRUEPRG; then
4340   HAVE_HPUX_OS_TRUE=
4341   HAVE_HPUX_OS_FALSE='#'
4342 else
4343   HAVE_HPUX_OS_TRUE='#'
4344   HAVE_HPUX_OS_FALSE=
4345 fi
4346         cat >>confdefs.h <<\_ACEOF
4347 #define HAVE_HPUX_OS 1
4348 _ACEOF
4349
4350 else
4351
4352
4353 if $FALSEPRG; then
4354   HAVE_HPUX_OS_TRUE=
4355   HAVE_HPUX_OS_FALSE='#'
4356 else
4357   HAVE_HPUX_OS_TRUE='#'
4358   HAVE_HPUX_OS_FALSE=
4359 fi
4360 fi
4361
4362 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4363 then
4364
4365
4366 if $TRUEPRG; then
4367   HAVE_LINUX_OS_TRUE=
4368   HAVE_LINUX_OS_FALSE='#'
4369 else
4370   HAVE_LINUX_OS_TRUE='#'
4371   HAVE_LINUX_OS_FALSE=
4372 fi
4373         cat >>confdefs.h <<\_ACEOF
4374 #define HAVE_LINUX_OS 1
4375 _ACEOF
4376
4377 else
4378
4379
4380 if $FALSEPRG; then
4381   HAVE_LINUX_OS_TRUE=
4382   HAVE_LINUX_OS_FALSE='#'
4383 else
4384   HAVE_LINUX_OS_TRUE='#'
4385   HAVE_LINUX_OS_FALSE=
4386 fi
4387 fi
4388
4389 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4390 then
4391
4392
4393 if $TRUEPRG; then
4394   HAVE_FREEBSD_OS_TRUE=
4395   HAVE_FREEBSD_OS_FALSE='#'
4396 else
4397   HAVE_FREEBSD_OS_TRUE='#'
4398   HAVE_FREEBSD_OS_FALSE=
4399 fi
4400         cat >>confdefs.h <<\_ACEOF
4401 #define HAVE_FREEBSD_OS 1
4402 _ACEOF
4403
4404 else
4405
4406
4407 if $FALSEPRG; then
4408   HAVE_FREEBSD_OS_TRUE=
4409   HAVE_FREEBSD_OS_FALSE='#'
4410 else
4411   HAVE_FREEBSD_OS_TRUE='#'
4412   HAVE_FREEBSD_OS_FALSE=
4413 fi
4414 fi
4415
4416 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4417 then
4418
4419
4420 if $TRUEPRG; then
4421   HAVE_NETBSD_OS_TRUE=
4422   HAVE_NETBSD_OS_FALSE='#'
4423 else
4424   HAVE_NETBSD_OS_TRUE='#'
4425   HAVE_NETBSD_OS_FALSE=
4426 fi
4427         cat >>confdefs.h <<\_ACEOF
4428 #define HAVE_NETBSD_OS 1
4429 _ACEOF
4430
4431 else
4432
4433
4434 if $FALSEPRG; then
4435   HAVE_NETBSD_OS_TRUE=
4436   HAVE_NETBSD_OS_FALSE='#'
4437 else
4438   HAVE_NETBSD_OS_TRUE='#'
4439   HAVE_NETBSD_OS_FALSE=
4440 fi
4441 fi
4442
4443 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4444 then
4445
4446
4447 if $TRUEPRG; then
4448   HAVE_OPENBSD_OS_TRUE=
4449   HAVE_OPENBSD_OS_FALSE='#'
4450 else
4451   HAVE_OPENBSD_OS_TRUE='#'
4452   HAVE_OPENBSD_OS_FALSE=
4453 fi
4454         cat >>confdefs.h <<\_ACEOF
4455 #define HAVE_OPENBSD_OS 1
4456 _ACEOF
4457
4458 else
4459
4460
4461 if $FALSEPRG; then
4462   HAVE_OPENBSD_OS_TRUE=
4463   HAVE_OPENBSD_OS_FALSE='#'
4464 else
4465   HAVE_OPENBSD_OS_TRUE='#'
4466   HAVE_OPENBSD_OS_FALSE=
4467 fi
4468 fi
4469
4470 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4471 then
4472
4473
4474 if $TRUEPRG; then
4475   HAVE_BSDI_OS_TRUE=
4476   HAVE_BSDI_OS_FALSE='#'
4477 else
4478   HAVE_BSDI_OS_TRUE='#'
4479   HAVE_BSDI_OS_FALSE=
4480 fi
4481         cat >>confdefs.h <<\_ACEOF
4482 #define HAVE_BSDI_OS 1
4483 _ACEOF
4484
4485 else
4486
4487
4488 if $FALSEPRG; then
4489   HAVE_BSDI_OS_TRUE=
4490   HAVE_BSDI_OS_FALSE='#'
4491 else
4492   HAVE_BSDI_OS_TRUE='#'
4493   HAVE_BSDI_OS_FALSE=
4494 fi
4495 fi
4496
4497 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4498 then
4499
4500
4501 if $TRUEPRG; then
4502   HAVE_SGI_OS_TRUE=
4503   HAVE_SGI_OS_FALSE='#'
4504 else
4505   HAVE_SGI_OS_TRUE='#'
4506   HAVE_SGI_OS_FALSE=
4507 fi
4508         cat >>confdefs.h <<\_ACEOF
4509 #define HAVE_SGI_OS 1
4510 _ACEOF
4511
4512 else
4513
4514
4515 if $FALSEPRG; then
4516   HAVE_SGI_OS_TRUE=
4517   HAVE_SGI_OS_FALSE='#'
4518 else
4519   HAVE_SGI_OS_TRUE='#'
4520   HAVE_SGI_OS_FALSE=
4521 fi
4522 fi
4523
4524 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4525 then
4526
4527
4528 if $TRUEPRG; then
4529   HAVE_IRIX_OS_TRUE=
4530   HAVE_IRIX_OS_FALSE='#'
4531 else
4532   HAVE_IRIX_OS_TRUE='#'
4533   HAVE_IRIX_OS_FALSE=
4534 fi
4535         cat >>confdefs.h <<\_ACEOF
4536 #define HAVE_IRIX_OS 1
4537 _ACEOF
4538
4539 else
4540
4541
4542 if $FALSEPRG; then
4543   HAVE_IRIX_OS_TRUE=
4544   HAVE_IRIX_OS_FALSE='#'
4545 else
4546   HAVE_IRIX_OS_TRUE='#'
4547   HAVE_IRIX_OS_FALSE=
4548 fi
4549 fi
4550
4551 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4552 then
4553
4554
4555 if $TRUEPRG; then
4556   HAVE_DARWIN_OS_TRUE=
4557   HAVE_DARWIN_OS_FALSE='#'
4558 else
4559   HAVE_DARWIN_OS_TRUE='#'
4560   HAVE_DARWIN_OS_FALSE=
4561 fi
4562     cat >>confdefs.h <<\_ACEOF
4563 #define HAVE_DARWIN_OS 1
4564 _ACEOF
4565
4566 else
4567
4568
4569 if $FALSEPRG; then
4570   HAVE_DARWIN_OS_TRUE=
4571   HAVE_DARWIN_OS_FALSE='#'
4572 else
4573   HAVE_DARWIN_OS_TRUE='#'
4574   HAVE_DARWIN_OS_FALSE=
4575 fi
4576 fi
4577
4578
4579 # -----------------------------------------------------------
4580 # ----------------------------------------------------------
4581 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4582 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4583 if test "x$DISTNAME" != "x"
4584 then
4585         echo "distname set to $DISTNAME"
4586 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4587 then
4588         DISTNAME=alpha
4589 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4590 then
4591         DISTNAME=aix
4592 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4593 then
4594         DISTNAME=hpux
4595 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4596 then
4597         DISTNAME=solaris
4598 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4599 then
4600         DISTNAME=freebsd
4601 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4602 then
4603         DISTNAME=netbsd
4604 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4605 then
4606         DISTNAME=openbsd
4607 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4608 then
4609         DISTNAME=irix
4610 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4611 then
4612         DISTNAME=bsdi
4613 elif test -f /etc/SuSE-release
4614 then
4615         DISTNAME=suse
4616 elif test -d /etc/SuSEconfig
4617 then
4618         DISTNAME=suse5
4619 elif test -f /etc/mandrake-release
4620 then
4621         DISTNAME=mandrake
4622 elif test -f /etc/whitebox-release
4623 then
4624        DISTNAME=redhat
4625 elif test -f /etc/redhat-release
4626 then
4627         DISTNAME=redhat
4628 elif test -f /etc/gentoo-release
4629 then
4630         DISTNAME=gentoo
4631 elif test -f /etc/debian_version
4632 then
4633         DISTNAME=debian
4634 elif test -f /etc/slackware-version
4635 then
4636         DISTNAME=slackware
4637 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4638 then
4639     DISTNAME=darwin
4640 elif test -f /etc/engarde-version
4641 then
4642         DISTNAME=engarde
4643 elif test "$CYGWIN" = yes
4644 then
4645         DISTNAME=cygwin
4646         cat >>confdefs.h <<\_ACEOF
4647 #define HAVE_CYGWIN 1
4648 _ACEOF
4649
4650 else
4651         DISTNAME=unknown
4652 fi
4653 echo "$as_me:$LINENO: result: done" >&5
4654 echo "${ECHO_T}done" >&6
4655
4656
4657 # -----------------------------------------------------------
4658 # ----------------------------------------------------------
4659
4660
4661
4662 if false; then
4663   INSIDE_GNOME_COMMON_TRUE=
4664   INSIDE_GNOME_COMMON_FALSE='#'
4665 else
4666   INSIDE_GNOME_COMMON_TRUE='#'
4667   INSIDE_GNOME_COMMON_FALSE=
4668 fi
4669
4670         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4671
4672         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4673
4674
4675 # ------------------------------------------------------------------
4676 #  If the user has not set --prefix, we set our default to nothing.
4677 #  In this case, if the user has not set --sysconfdir, we set it
4678 #  to the package default of /etc/bacula.  If either --prefix or
4679 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4680 # ------------------------------------------------------------------
4681 if test x${prefix} = xNONE ; then
4682     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4683         sysconfdir=/etc/bacula
4684     fi
4685     prefix=
4686 fi
4687 sysconfdir=`eval echo ${sysconfdir}`
4688
4689 # -------------------------------------------------------------------------
4690 #  If the user has not set --exec-prefix, we default to ${prefix}
4691 # -------------------------------------------------------------------------
4692 if test x${exec_prefix} = xNONE ; then
4693     exec_prefix=${prefix}
4694 fi
4695
4696 # ------------------------------------------------------------------
4697 # If the user has not set --sbindir, we set our default as /sbin
4698 # ------------------------------------------------------------------
4699 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4700     sbindir=${exec_prefix}/sbin
4701 fi
4702 sbindir=`eval echo ${sbindir}`
4703
4704 # ------------------------------------------------------------------
4705 # All list of languages for which a translation exist. Each
4706 #  language is separated by a space.
4707 # ------------------------------------------------------------------
4708 ALL_LINGUAS=""
4709
4710 for ac_prog in msgfmt
4711 do
4712   # Extract the first word of "$ac_prog", so it can be a program name with args.
4713 set dummy $ac_prog; ac_word=$2
4714 echo "$as_me:$LINENO: checking for $ac_word" >&5
4715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4716 if test "${ac_cv_path_MSGFMT+set}" = set; then
4717   echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719   case $MSGFMT in
4720   [\\/]* | ?:[\\/]*)
4721   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4722   ;;
4723   *)
4724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4726 do
4727   IFS=$as_save_IFS
4728   test -z "$as_dir" && as_dir=.
4729   for ac_exec_ext in '' $ac_executable_extensions; do
4730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4731     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733     break 2
4734   fi
4735 done
4736 done
4737
4738   ;;
4739 esac
4740 fi
4741 MSGFMT=$ac_cv_path_MSGFMT
4742
4743 if test -n "$MSGFMT"; then
4744   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4745 echo "${ECHO_T}$MSGFMT" >&6
4746 else
4747   echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4749 fi
4750
4751   test -n "$MSGFMT" && break
4752 done
4753 test -n "$MSGFMT" || MSGFMT="no"
4754
4755 if test "$MSGFMT" = "no"
4756 then
4757    echo 'msgfmt program not found, disabling NLS !'
4758    USE_NLS=no
4759    USE_INCLUDED_LIBINTL=no
4760 #else
4761 #   AM_GNU_GETTEXT
4762 fi
4763
4764
4765 support_mysql=no
4766 support_sqlite=no
4767 support_sqlite3=no
4768 support_postgresql=no
4769 support_smartalloc=yes
4770 support_readline=yes
4771 support_conio=yes
4772 support_gnome=no
4773 support_wx_console=no
4774 support_tls=no
4775 gnome_version=
4776 support_static_tools=no
4777 support_static_fd=no
4778 support_static_sd=no
4779 support_static_dir=no
4780 support_static_cons=no
4781 support_python=no
4782 build_client_only=no
4783 cats=
4784 db_name=Internal
4785 DB_NAME=bdb
4786
4787
4788 # -------------------------------------------
4789 # gnome (default off)
4790 # -------------------------------------------
4791 # Check whether --enable-gnome or --disable-gnome was given.
4792 if test "${enable_gnome+set}" = set; then
4793   enableval="$enable_gnome"
4794   if test x$enableval = xyes; then
4795     support_gnome=yes
4796   fi
4797 fi;
4798
4799 GNOME_DIR=
4800 if test x$support_gnome = xyes; then
4801   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4802   pkg=$?
4803   if test $pkg = 0; then
4804      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4805      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4806      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4807      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4808
4809
4810
4811
4812      GNOME_DIR=src/gnome2-console
4813      gnome_version="Version 2.x"
4814   else
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4827 if test "${with_gnome_includes+set}" = set; then
4828   withval="$with_gnome_includes"
4829
4830         CFLAGS="$CFLAGS -I$withval"
4831
4832 fi;
4833
4834
4835 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4836 if test "${with_gnome_libs+set}" = set; then
4837   withval="$with_gnome_libs"
4838
4839         LDFLAGS="$LDFLAGS -L$withval"
4840         gnome_prefix=$withval
4841
4842 fi;
4843
4844
4845 # Check whether --with-gnome or --without-gnome was given.
4846 if test "${with_gnome+set}" = set; then
4847   withval="$with_gnome"
4848   if test x$withval = xyes; then
4849                         want_gnome=yes
4850                                                                         :
4851                 else
4852                         if test "x$withval" = xno; then
4853                                 want_gnome=no
4854                         else
4855                                 want_gnome=yes
4856                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4857                                 CFLAGS="$CFLAGS -I$withval/include"
4858                                 gnome_prefix=$withval/lib
4859                         fi
4860                 fi
4861 else
4862   want_gnome=yes
4863 fi;
4864
4865         if test "x$want_gnome" = xyes; then
4866
4867             # Extract the first word of "gnome-config", so it can be a program name with args.
4868 set dummy gnome-config; ac_word=$2
4869 echo "$as_me:$LINENO: checking for $ac_word" >&5
4870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4871 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4872   echo $ECHO_N "(cached) $ECHO_C" >&6
4873 else
4874   case $GNOME_CONFIG in
4875   [\\/]* | ?:[\\/]*)
4876   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4877   ;;
4878   *)
4879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 for as_dir in $PATH
4881 do
4882   IFS=$as_save_IFS
4883   test -z "$as_dir" && as_dir=.
4884   for ac_exec_ext in '' $ac_executable_extensions; do
4885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4886     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888     break 2
4889   fi
4890 done
4891 done
4892
4893   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4894   ;;
4895 esac
4896 fi
4897 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4898
4899 if test -n "$GNOME_CONFIG"; then
4900   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4901 echo "${ECHO_T}$GNOME_CONFIG" >&6
4902 else
4903   echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6
4905 fi
4906
4907             if test "$GNOME_CONFIG" = "no"; then
4908               no_gnome_config="yes"
4909             else
4910               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4911 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4912               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4913                 echo "$as_me:$LINENO: result: yes" >&5
4914 echo "${ECHO_T}yes" >&6
4915
4916
4917         # Extract the first word of "orbit-config", so it can be a program name with args.
4918 set dummy orbit-config; ac_word=$2
4919 echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4921 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924   case $ORBIT_CONFIG in
4925   [\\/]* | ?:[\\/]*)
4926   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4927   ;;
4928   *)
4929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934   for ac_exec_ext in '' $ac_executable_extensions; do
4935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941 done
4942
4943   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4944   ;;
4945 esac
4946 fi
4947 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4948
4949 if test -n "$ORBIT_CONFIG"; then
4950   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4951 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4952 else
4953   echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4955 fi
4956
4957         # Extract the first word of "orbit-idl", so it can be a program name with args.
4958 set dummy orbit-idl; ac_word=$2
4959 echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4961 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   case $ORBIT_IDL in
4965   [\\/]* | ?:[\\/]*)
4966   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4967   ;;
4968   *)
4969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972   IFS=$as_save_IFS
4973   test -z "$as_dir" && as_dir=.
4974   for ac_exec_ext in '' $ac_executable_extensions; do
4975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978     break 2
4979   fi
4980 done
4981 done
4982
4983   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4984   ;;
4985 esac
4986 fi
4987 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4988
4989 if test -n "$ORBIT_IDL"; then
4990   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4991 echo "${ECHO_T}$ORBIT_IDL" >&6
4992 else
4993   echo "$as_me:$LINENO: result: no" >&5
4994 echo "${ECHO_T}no" >&6
4995 fi
4996
4997         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4998 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4999 if test "${gnome_cv_orbit_found+set}" = set; then
5000   echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002
5003                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
5004                         gnome_cv_orbit_found=no
5005                 else
5006                         gnome_cv_orbit_found=yes
5007                 fi
5008
5009 fi
5010 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
5011 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
5012
5013
5014 if test x$gnome_cv_orbit_found = xyes; then
5015   HAVE_ORBIT_TRUE=
5016   HAVE_ORBIT_FALSE='#'
5017 else
5018   HAVE_ORBIT_TRUE='#'
5019   HAVE_ORBIT_FALSE=
5020 fi
5021         if test x$gnome_cv_orbit_found = xyes; then
5022
5023                 ORBIT_CFLAGS=`orbit-config --cflags client server`
5024                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
5025
5026
5027         else
5028                 if test xfail = xfailure; then
5029                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
5030 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
5031    { (exit 1); exit 1; }; }
5032                 fi
5033         fi
5034
5035         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
5036 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
5037 if test "${gnome_cv_gnorba_found+set}" = set; then
5038   echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040
5041                 gnome_cv_gnorba_found=no
5042                 if test x$gnome_cv_orbit_found = xyes; then
5043                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5044                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5045                         if test -n "$GNORBA_LIBS"; then
5046                                 gnome_cv_gnorba_found=yes
5047                         fi
5048                 fi
5049
5050 fi
5051 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
5052 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
5053
5054
5055 if test x$gnome_cv_gnorba_found = xyes; then
5056   HAVE_GNORBA_TRUE=
5057   HAVE_GNORBA_FALSE='#'
5058 else
5059   HAVE_GNORBA_TRUE='#'
5060   HAVE_GNORBA_FALSE=
5061 fi
5062         if test x$gnome_cv_orbit_found = xyes; then
5063
5064                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5065                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5066
5067
5068         else
5069                 if test xfail = xfailure; then
5070                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5071 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5072    { (exit 1); exit 1; }; }
5073                 fi
5074         fi
5075
5076                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5077                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5078                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5079                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5080                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5081                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5082                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5083
5084               else
5085                 echo "$as_me:$LINENO: result: no" >&5
5086 echo "${ECHO_T}no" >&6
5087                 no_gnome_config="yes"
5088               fi
5089             fi
5090
5091             if test x$exec_prefix = xNONE; then
5092                 if test x$prefix = xNONE; then
5093                     gnome_prefix=$ac_default_prefix/lib
5094                 else
5095                     gnome_prefix=$prefix/lib
5096                 fi
5097             else
5098                 gnome_prefix=`eval echo \`echo $libdir\``
5099             fi
5100
5101             if test "$no_gnome_config" = "yes"; then
5102               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5103 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5104               if test -f $gnome_prefix/gnomeConf.sh; then
5105                 echo "$as_me:$LINENO: result: found" >&5
5106 echo "${ECHO_T}found" >&6
5107                 echo "loading gnome configuration from" \
5108                      "$gnome_prefix/gnomeConf.sh"
5109                 . $gnome_prefix/gnomeConf.sh
5110
5111               else
5112                 echo "$as_me:$LINENO: result: not found" >&5
5113 echo "${ECHO_T}not found" >&6
5114                 if test xfail = xfail; then
5115                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5116 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5117    { (exit 1); exit 1; }; }
5118                 fi
5119               fi
5120             fi
5121         fi
5122
5123         if test -n ""; then
5124           n=""
5125           for i in $n; do
5126             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5127 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5128             case $i in
5129               applets)
5130
5131                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5132                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5133 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5134               docklets)
5135
5136                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5137                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5138 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5139               capplet)
5140
5141                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5142                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5143 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5144               *)
5145                 echo "$as_me:$LINENO: result: unknown library" >&5
5146 echo "${ECHO_T}unknown library" >&6
5147             esac
5148             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5149             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5150           done
5151         fi
5152
5153
5154      GNOME_DIR=src/gnome-console
5155      gnome_version="Version 1.4"
5156   fi
5157 fi
5158
5159
5160
5161 # -------------------------------------------
5162 # wx-console (default off)
5163 # -------------------------------------------
5164 # Check whether --enable-wx-console or --disable-wx-console was given.
5165 if test "${enable_wx_console+set}" = set; then
5166   enableval="$enable_wx_console"
5167   if test x$enableval = xyes; then
5168     support_wx_console=yes
5169   fi
5170 fi;
5171
5172 WX_DIR=
5173 if test x$support_wx_console = xyes; then
5174   abc=`$WXCONFIG --cppflags`
5175   pkg=$?
5176   if test $pkg = 0; then
5177      WXCONS_CPPFLAGS=`$WXCONFIG --unicode=no --cppflags`
5178      WXCONS_LDFLAGS=`$WXCONFIG --unicode=no --libs`
5179
5180
5181      WX_DIR=src/wx-console
5182   else
5183      echo " "
5184      echo "wx-config program not found. wx-console disabled."
5185      echo " "
5186      support_wx_console=no
5187   fi
5188 fi
5189
5190
5191
5192 # -------------------------------------------
5193 # tray-monitor (default off)
5194 # -------------------------------------------
5195 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5196 if test "${enable_tray_monitor+set}" = set; then
5197   enableval="$enable_tray_monitor"
5198   if test x$enableval = xyes; then
5199     support_tray_monitor=yes
5200   fi
5201 fi;
5202
5203 TRAY_MONITOR_DIR=
5204 if test x$support_tray_monitor = xyes; then
5205   abc=`$PKGCONFIG --exists gtk+-2.0`
5206   pkg=$?
5207   if test $pkg = 0; then
5208      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5209      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5210
5211
5212      TRAY_MONITOR_DIR=src/tray-monitor
5213      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5214      pkg=$?
5215      if test $pkg = 0; then
5216         cat >>confdefs.h <<\_ACEOF
5217 #define HAVE_GTK_2_4 1
5218 _ACEOF
5219
5220      fi
5221   fi
5222 fi
5223
5224
5225 # -------------------------------------------
5226 # smartalloc (default off)
5227 # -------------------------------------------
5228 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5229 if test "${enable_smartalloc+set}" = set; then
5230   enableval="$enable_smartalloc"
5231   if test x$enableval = xno; then
5232     support_smartalloc=no
5233   fi
5234 fi;
5235
5236 if test x$support_smartalloc = xyes; then
5237    cat >>confdefs.h <<\_ACEOF
5238 #define SMARTALLOC 1
5239 _ACEOF
5240
5241 fi
5242
5243 # -------------------------------------------
5244 # static-tools (default off)
5245 # -------------------------------------------
5246 # Check whether --enable-static-tools or --disable-static-tools was given.
5247 if test "${enable_static_tools+set}" = set; then
5248   enableval="$enable_static_tools"
5249   if test x$enableval = xyes; then
5250      support_static_tools=yes
5251    fi
5252 fi;
5253
5254 TTOOL_LDFLAGS=
5255 if test x$support_static_tools = xyes; then
5256    TTOOL_LDFLAGS="-static"
5257 fi
5258
5259
5260 # -------------------------------------------
5261 # static-fd    (default off)
5262 # -------------------------------------------
5263 # Check whether --enable-static-fd or --disable-static-fd was given.
5264 if test "${enable_static_fd+set}" = set; then
5265   enableval="$enable_static_fd"
5266   if test x$enableval = xyes; then
5267      support_static_fd=yes
5268    fi
5269 fi;
5270
5271 STATIC_FD=
5272 if test x$support_static_fd = xyes; then
5273    STATIC_FD="static-bacula-fd"
5274 fi
5275
5276
5277 # -------------------------------------------
5278 # static-sd    (default off)
5279 # -------------------------------------------
5280 # Check whether --enable-static-sd or --disable-static-sd was given.
5281 if test "${enable_static_sd+set}" = set; then
5282   enableval="$enable_static_sd"
5283   if test x$enableval = xyes; then
5284      support_static_sd=yes
5285    fi
5286 fi;
5287
5288 STATIC_SD=
5289 if test x$support_static_sd = xyes; then
5290    STATIC_SD="static-bacula-sd"
5291 fi
5292
5293
5294 # -------------------------------------------
5295 # static-dir   (default off)
5296 # -------------------------------------------
5297 # Check whether --enable-static-dir or --disable-static-dir was given.
5298 if test "${enable_static_dir+set}" = set; then
5299   enableval="$enable_static_dir"
5300   if test x$enableval = xyes; then
5301      support_static_dir=yes
5302    fi
5303 fi;
5304
5305 STATIC_DIR=
5306 if test x$support_static_dir = xyes; then
5307    STATIC_DIR="static-bacula-dir"
5308 fi
5309
5310
5311 # -------------------------------------------
5312 # static-cons  (default off)
5313 # -------------------------------------------
5314 # Check whether --enable-static-cons or --disable-static-cons was given.
5315 if test "${enable_static_cons+set}" = set; then
5316   enableval="$enable_static_cons"
5317   if test x$enableval = xyes; then
5318      support_static_cons=yes
5319    fi
5320 fi;
5321
5322 STATIC_CONS=
5323 STATIC_GNOME_CONS=
5324 STATIC_WX_CONS=
5325 if test x$support_static_cons = xyes; then
5326    STATIC_CONS="static-bconsole"
5327    STATIC_GNOME_CONS="static-gnome-console"
5328    STATIC_WX_CONS="static-wx-console"
5329 fi
5330
5331
5332
5333
5334 # -------------------------------------------
5335 # client_only  (default off)
5336 # -------------------------------------------
5337 # Check whether --enable-client-only or --disable-client-only was given.
5338 if test "${enable_client_only+set}" = set; then
5339   enableval="$enable_client_only"
5340   if test x$enableval = xyes; then
5341      build_client_only=yes
5342     db_name=None
5343     DB_NAME=none
5344    fi
5345 fi;
5346 if test x$build_client_only = xno; then
5347    ALL_DIRS="subdirs"
5348 else
5349    ALL_DIRS=""
5350 fi
5351
5352
5353 # ---------------------------------------------------
5354 # Check for conio (Bacula readline substitute)(
5355 # ---------------------------------------------------
5356 # this allows you to turn it completely off
5357 # Check whether --enable-conio or --disable-conio was given.
5358 if test "${enable_conio+set}" = set; then
5359   enableval="$enable_conio"
5360   if test x$enableval = xno; then
5361     support_conio=no
5362   fi
5363 fi;
5364
5365 got_conio="no"
5366 if test x$support_conio = xyes; then
5367    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5368 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5369 if test "${ac_cv_header_stdc+set}" = set; then
5370   echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372   cat >conftest.$ac_ext <<_ACEOF
5373 /* confdefs.h.  */
5374 _ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h.  */
5378 #include <stdlib.h>
5379 #include <stdarg.h>
5380 #include <string.h>
5381 #include <float.h>
5382
5383 int
5384 main ()
5385 {
5386
5387   ;
5388   return 0;
5389 }
5390 _ACEOF
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393   (eval $ac_compile) 2>conftest.er1
5394   ac_status=$?
5395   grep -v '^ *+' conftest.er1 >conftest.err
5396   rm -f conftest.er1
5397   cat conftest.err >&5
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); } &&
5400          { ac_try='test -z "$ac_c_werror_flag"
5401                          || test ! -s conftest.err'
5402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403   (eval $ac_try) 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); }; } &&
5407          { ac_try='test -s conftest.$ac_objext'
5408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409   (eval $ac_try) 2>&5
5410   ac_status=$?
5411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412   (exit $ac_status); }; }; then
5413   ac_cv_header_stdc=yes
5414 else
5415   echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5417
5418 ac_cv_header_stdc=no
5419 fi
5420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5421
5422 if test $ac_cv_header_stdc = yes; then
5423   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5424   cat >conftest.$ac_ext <<_ACEOF
5425 /* confdefs.h.  */
5426 _ACEOF
5427 cat confdefs.h >>conftest.$ac_ext
5428 cat >>conftest.$ac_ext <<_ACEOF
5429 /* end confdefs.h.  */
5430 #include <string.h>
5431
5432 _ACEOF
5433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5434   $EGREP "memchr" >/dev/null 2>&1; then
5435   :
5436 else
5437   ac_cv_header_stdc=no
5438 fi
5439 rm -f conftest*
5440
5441 fi
5442
5443 if test $ac_cv_header_stdc = yes; then
5444   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5445   cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h.  */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h.  */
5451 #include <stdlib.h>
5452
5453 _ACEOF
5454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5455   $EGREP "free" >/dev/null 2>&1; then
5456   :
5457 else
5458   ac_cv_header_stdc=no
5459 fi
5460 rm -f conftest*
5461
5462 fi
5463
5464 if test $ac_cv_header_stdc = yes; then
5465   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5466   if test "$cross_compiling" = yes; then
5467   :
5468 else
5469   cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h.  */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h.  */
5475 #include <ctype.h>
5476 #if ((' ' & 0x0FF) == 0x020)
5477 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5478 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5479 #else
5480 # define ISLOWER(c) \
5481                    (('a' <= (c) && (c) <= 'i') \
5482                      || ('j' <= (c) && (c) <= 'r') \
5483                      || ('s' <= (c) && (c) <= 'z'))
5484 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5485 #endif
5486
5487 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5488 int
5489 main ()
5490 {
5491   int i;
5492   for (i = 0; i < 256; i++)
5493     if (XOR (islower (i), ISLOWER (i))
5494         || toupper (i) != TOUPPER (i))
5495       exit(2);
5496   exit (0);
5497 }
5498 _ACEOF
5499 rm -f conftest$ac_exeext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5501   (eval $ac_link) 2>&5
5502   ac_status=$?
5503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5506   (eval $ac_try) 2>&5
5507   ac_status=$?
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); }; }; then
5510   :
5511 else
5512   echo "$as_me: program exited with status $ac_status" >&5
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516 ( exit $ac_status )
5517 ac_cv_header_stdc=no
5518 fi
5519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5520 fi
5521 fi
5522 fi
5523 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5524 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5525 if test $ac_cv_header_stdc = yes; then
5526
5527 cat >>confdefs.h <<\_ACEOF
5528 #define STDC_HEADERS 1
5529 _ACEOF
5530
5531 fi
5532
5533 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5544                   inttypes.h stdint.h unistd.h
5545 do
5546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5547 echo "$as_me:$LINENO: checking for $ac_header" >&5
5548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5550   echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552   cat >conftest.$ac_ext <<_ACEOF
5553 /* confdefs.h.  */
5554 _ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h.  */
5558 $ac_includes_default
5559
5560 #include <$ac_header>
5561 _ACEOF
5562 rm -f conftest.$ac_objext
5563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5564   (eval $ac_compile) 2>conftest.er1
5565   ac_status=$?
5566   grep -v '^ *+' conftest.er1 >conftest.err
5567   rm -f conftest.er1
5568   cat conftest.err >&5
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } &&
5571          { ac_try='test -z "$ac_c_werror_flag"
5572                          || test ! -s conftest.err'
5573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574   (eval $ac_try) 2>&5
5575   ac_status=$?
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); }; } &&
5578          { ac_try='test -s conftest.$ac_objext'
5579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580   (eval $ac_try) 2>&5
5581   ac_status=$?
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); }; }; then
5584   eval "$as_ac_Header=yes"
5585 else
5586   echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5588
5589 eval "$as_ac_Header=no"
5590 fi
5591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5592 fi
5593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5596   cat >>confdefs.h <<_ACEOF
5597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5598 _ACEOF
5599
5600 fi
5601
5602 done
5603
5604
5605 if test "${ac_cv_header_termcap_h+set}" = set; then
5606   echo "$as_me:$LINENO: checking for termcap.h" >&5
5607 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5608 if test "${ac_cv_header_termcap_h+set}" = set; then
5609   echo $ECHO_N "(cached) $ECHO_C" >&6
5610 fi
5611 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5612 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5613 else
5614   # Is the header compilable?
5615 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5616 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h.  */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h.  */
5623 $ac_includes_default
5624 #include <termcap.h>
5625 _ACEOF
5626 rm -f conftest.$ac_objext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628   (eval $ac_compile) 2>conftest.er1
5629   ac_status=$?
5630   grep -v '^ *+' conftest.er1 >conftest.err
5631   rm -f conftest.er1
5632   cat conftest.err >&5
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } &&
5635          { ac_try='test -z "$ac_c_werror_flag"
5636                          || test ! -s conftest.err'
5637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638   (eval $ac_try) 2>&5
5639   ac_status=$?
5640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641   (exit $ac_status); }; } &&
5642          { ac_try='test -s conftest.$ac_objext'
5643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644   (eval $ac_try) 2>&5
5645   ac_status=$?
5646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647   (exit $ac_status); }; }; then
5648   ac_header_compiler=yes
5649 else
5650   echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5652
5653 ac_header_compiler=no
5654 fi
5655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5657 echo "${ECHO_T}$ac_header_compiler" >&6
5658
5659 # Is the header present?
5660 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5661 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5662 cat >conftest.$ac_ext <<_ACEOF
5663 /* confdefs.h.  */
5664 _ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h.  */
5668 #include <termcap.h>
5669 _ACEOF
5670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5671   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5672   ac_status=$?
5673   grep -v '^ *+' conftest.er1 >conftest.err
5674   rm -f conftest.er1
5675   cat conftest.err >&5
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); } >/dev/null; then
5678   if test -s conftest.err; then
5679     ac_cpp_err=$ac_c_preproc_warn_flag
5680     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5681   else
5682     ac_cpp_err=
5683   fi
5684 else
5685   ac_cpp_err=yes
5686 fi
5687 if test -z "$ac_cpp_err"; then
5688   ac_header_preproc=yes
5689 else
5690   echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5692
5693   ac_header_preproc=no
5694 fi
5695 rm -f conftest.err conftest.$ac_ext
5696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5697 echo "${ECHO_T}$ac_header_preproc" >&6
5698
5699 # So?  What about this header?
5700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5701   yes:no: )
5702     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5703 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5704     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5705 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5706     ac_header_preproc=yes
5707     ;;
5708   no:yes:* )
5709     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5710 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5711     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
5712 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
5713     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5714 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5715     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
5716 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5717     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5718 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5719     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5720 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5721     (
5722       cat <<\_ASBOX
5723 ## ------------------------------------------ ##
5724 ## Report this to the AC_PACKAGE_NAME lists.  ##
5725 ## ------------------------------------------ ##
5726 _ASBOX
5727     ) |
5728       sed "s/^/$as_me: WARNING:     /" >&2
5729     ;;
5730 esac
5731 echo "$as_me:$LINENO: checking for termcap.h" >&5
5732 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5733 if test "${ac_cv_header_termcap_h+set}" = set; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736   ac_cv_header_termcap_h=$ac_header_preproc
5737 fi
5738 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5739 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5740
5741 fi
5742 if test $ac_cv_header_termcap_h = yes; then
5743    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5744 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5745 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5746   echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748   ac_check_lib_save_LIBS=$LIBS
5749 LIBS="-ltermcap  $LIBS"
5750 cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756
5757 /* Override any gcc2 internal prototype to avoid an error.  */
5758 #ifdef __cplusplus
5759 extern "C"
5760 #endif
5761 /* We use char because int might match the return type of a gcc2
5762    builtin and then its argument prototype would still apply.  */
5763 char tgetent ();
5764 int
5765 main ()
5766 {
5767 tgetent ();
5768   ;
5769   return 0;
5770 }
5771 _ACEOF
5772 rm -f conftest.$ac_objext conftest$ac_exeext
5773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5774   (eval $ac_link) 2>conftest.er1
5775   ac_status=$?
5776   grep -v '^ *+' conftest.er1 >conftest.err
5777   rm -f conftest.er1
5778   cat conftest.err >&5
5779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780   (exit $ac_status); } &&
5781          { ac_try='test -z "$ac_c_werror_flag"
5782                          || test ! -s conftest.err'
5783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784   (eval $ac_try) 2>&5
5785   ac_status=$?
5786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787   (exit $ac_status); }; } &&
5788          { ac_try='test -s conftest$ac_exeext'
5789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790   (eval $ac_try) 2>&5
5791   ac_status=$?
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); }; }; then
5794   ac_cv_lib_termcap_tgetent=yes
5795 else
5796   echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5798
5799 ac_cv_lib_termcap_tgetent=no
5800 fi
5801 rm -f conftest.err conftest.$ac_objext \
5802       conftest$ac_exeext conftest.$ac_ext
5803 LIBS=$ac_check_lib_save_LIBS
5804 fi
5805 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5806 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5807 if test $ac_cv_lib_termcap_tgetent = yes; then
5808    CONS_LIBS="-ltermcap"
5809          CONS_OBJ="conio.o"
5810          CONS_SRC="conio.c"
5811          got_conio="yes"
5812          support_readline=no
5813
5814 cat >>confdefs.h <<\_ACEOF
5815 #define HAVE_CONIO 1
5816 _ACEOF
5817
5818
5819 else
5820    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5821 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5822 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   ac_check_lib_save_LIBS=$LIBS
5826 LIBS="-lncurses  $LIBS"
5827 cat >conftest.$ac_ext <<_ACEOF
5828 /* confdefs.h.  */
5829 _ACEOF
5830 cat confdefs.h >>conftest.$ac_ext
5831 cat >>conftest.$ac_ext <<_ACEOF
5832 /* end confdefs.h.  */
5833
5834 /* Override any gcc2 internal prototype to avoid an error.  */
5835 #ifdef __cplusplus
5836 extern "C"
5837 #endif
5838 /* We use char because int might match the return type of a gcc2
5839    builtin and then its argument prototype would still apply.  */
5840 char tgetent ();
5841 int
5842 main ()
5843 {
5844 tgetent ();
5845   ;
5846   return 0;
5847 }
5848 _ACEOF
5849 rm -f conftest.$ac_objext conftest$ac_exeext
5850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5851   (eval $ac_link) 2>conftest.er1
5852   ac_status=$?
5853   grep -v '^ *+' conftest.er1 >conftest.err
5854   rm -f conftest.er1
5855   cat conftest.err >&5
5856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857   (exit $ac_status); } &&
5858          { ac_try='test -z "$ac_c_werror_flag"
5859                          || test ! -s conftest.err'
5860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5861   (eval $ac_try) 2>&5
5862   ac_status=$?
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); }; } &&
5865          { ac_try='test -s conftest$ac_exeext'
5866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5867   (eval $ac_try) 2>&5
5868   ac_status=$?
5869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870   (exit $ac_status); }; }; then
5871   ac_cv_lib_ncurses_tgetent=yes
5872 else
5873   echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5875
5876 ac_cv_lib_ncurses_tgetent=no
5877 fi
5878 rm -f conftest.err conftest.$ac_objext \
5879       conftest$ac_exeext conftest.$ac_ext
5880 LIBS=$ac_check_lib_save_LIBS
5881 fi
5882 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5883 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5884 if test $ac_cv_lib_ncurses_tgetent = yes; then
5885    CONS_LIBS="-lncurses"
5886            CONS_OBJ="conio.o"
5887            CONS_SRC="conio.c"
5888            got_conio="yes"
5889            support_readline=no
5890
5891 cat >>confdefs.h <<\_ACEOF
5892 #define HAVE_CONIO 1
5893 _ACEOF
5894
5895
5896 fi
5897
5898
5899 fi
5900
5901
5902 else
5903
5904
5905 for ac_header in curses.h
5906 do
5907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5909   echo "$as_me:$LINENO: checking for $ac_header" >&5
5910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 fi
5914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5916 else
5917   # Is the header compilable?
5918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5920 cat >conftest.$ac_ext <<_ACEOF
5921 /* confdefs.h.  */
5922 _ACEOF
5923 cat confdefs.h >>conftest.$ac_ext
5924 cat >>conftest.$ac_ext <<_ACEOF
5925 /* end confdefs.h.  */
5926 $ac_includes_default
5927 #include <$ac_header>
5928 _ACEOF
5929 rm -f conftest.$ac_objext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931   (eval $ac_compile) 2>conftest.er1
5932   ac_status=$?
5933   grep -v '^ *+' conftest.er1 >conftest.err
5934   rm -f conftest.er1
5935   cat conftest.err >&5
5936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937   (exit $ac_status); } &&
5938          { ac_try='test -z "$ac_c_werror_flag"
5939                          || test ! -s conftest.err'
5940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941   (eval $ac_try) 2>&5
5942   ac_status=$?
5943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944   (exit $ac_status); }; } &&
5945          { ac_try='test -s conftest.$ac_objext'
5946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947   (eval $ac_try) 2>&5
5948   ac_status=$?
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); }; }; then
5951   ac_header_compiler=yes
5952 else
5953   echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5955
5956 ac_header_compiler=no
5957 fi
5958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5960 echo "${ECHO_T}$ac_header_compiler" >&6
5961
5962 # Is the header present?
5963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5965 cat >conftest.$ac_ext <<_ACEOF
5966 /* confdefs.h.  */
5967 _ACEOF
5968 cat confdefs.h >>conftest.$ac_ext
5969 cat >>conftest.$ac_ext <<_ACEOF
5970 /* end confdefs.h.  */
5971 #include <$ac_header>
5972 _ACEOF
5973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5974   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5975   ac_status=$?
5976   grep -v '^ *+' conftest.er1 >conftest.err
5977   rm -f conftest.er1
5978   cat conftest.err >&5
5979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980   (exit $ac_status); } >/dev/null; then
5981   if test -s conftest.err; then
5982     ac_cpp_err=$ac_c_preproc_warn_flag
5983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5984   else
5985     ac_cpp_err=
5986   fi
5987 else
5988   ac_cpp_err=yes
5989 fi
5990 if test -z "$ac_cpp_err"; then
5991   ac_header_preproc=yes
5992 else
5993   echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996   ac_header_preproc=no
5997 fi
5998 rm -f conftest.err conftest.$ac_ext
5999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6000 echo "${ECHO_T}$ac_header_preproc" >&6
6001
6002 # So?  What about this header?
6003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6004   yes:no: )
6005     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6009     ac_header_preproc=yes
6010     ;;
6011   no:yes:* )
6012     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6014     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6015 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6016     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6018     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6019 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6022     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6024     (
6025       cat <<\_ASBOX
6026 ## ------------------------------------------ ##
6027 ## Report this to the AC_PACKAGE_NAME lists.  ##
6028 ## ------------------------------------------ ##
6029 _ASBOX
6030     ) |
6031       sed "s/^/$as_me: WARNING:     /" >&2
6032     ;;
6033 esac
6034 echo "$as_me:$LINENO: checking for $ac_header" >&5
6035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6037   echo $ECHO_N "(cached) $ECHO_C" >&6
6038 else
6039   eval "$as_ac_Header=\$ac_header_preproc"
6040 fi
6041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6043
6044 fi
6045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6046   cat >>confdefs.h <<_ACEOF
6047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6048 _ACEOF
6049
6050 fi
6051
6052 done
6053
6054          echo "$as_me:$LINENO: checking for term.h" >&5
6055 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
6056 if test "${ac_cv_header_term_h+set}" = set; then
6057   echo $ECHO_N "(cached) $ECHO_C" >&6
6058 else
6059   cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h.  */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h.  */
6065 #if HAVE_CURSES_H
6066 #include <curses.h>
6067 #endif
6068
6069
6070 #include <term.h>
6071 _ACEOF
6072 rm -f conftest.$ac_objext
6073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6074   (eval $ac_compile) 2>conftest.er1
6075   ac_status=$?
6076   grep -v '^ *+' conftest.er1 >conftest.err
6077   rm -f conftest.er1
6078   cat conftest.err >&5
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); } &&
6081          { ac_try='test -z "$ac_c_werror_flag"
6082                          || test ! -s conftest.err'
6083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084   (eval $ac_try) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); }; } &&
6088          { ac_try='test -s conftest.$ac_objext'
6089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090   (eval $ac_try) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; }; then
6094   ac_cv_header_term_h=yes
6095 else
6096   echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6098
6099 ac_cv_header_term_h=no
6100 fi
6101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6102 fi
6103 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6104 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6105 if test $ac_cv_header_term_h = yes; then
6106    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6107 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6108 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   ac_check_lib_save_LIBS=$LIBS
6112 LIBS="-lcurses  $LIBS"
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h.  */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h.  */
6119
6120 /* Override any gcc2 internal prototype to avoid an error.  */
6121 #ifdef __cplusplus
6122 extern "C"
6123 #endif
6124 /* We use char because int might match the return type of a gcc2
6125    builtin and then its argument prototype would still apply.  */
6126 char tgetent ();
6127 int
6128 main ()
6129 {
6130 tgetent ();
6131   ;
6132   return 0;
6133 }
6134 _ACEOF
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6137   (eval $ac_link) 2>conftest.er1
6138   ac_status=$?
6139   grep -v '^ *+' conftest.er1 >conftest.err
6140   rm -f conftest.er1
6141   cat conftest.err >&5
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); } &&
6144          { ac_try='test -z "$ac_c_werror_flag"
6145                          || test ! -s conftest.err'
6146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147   (eval $ac_try) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); }; } &&
6151          { ac_try='test -s conftest$ac_exeext'
6152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153   (eval $ac_try) 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); }; }; then
6157   ac_cv_lib_curses_tgetent=yes
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 ac_cv_lib_curses_tgetent=no
6163 fi
6164 rm -f conftest.err conftest.$ac_objext \
6165       conftest$ac_exeext conftest.$ac_ext
6166 LIBS=$ac_check_lib_save_LIBS
6167 fi
6168 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6169 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6170 if test $ac_cv_lib_curses_tgetent = yes; then
6171    CONS_LIBS="-lcurses"
6172                    CONS_OBJ="conio.o"
6173                    CONS_SRC="conio.c"
6174                    got_conio="yes"
6175                    support_readline=no
6176
6177 cat >>confdefs.h <<\_ACEOF
6178 #define HAVE_CONIO 1
6179 _ACEOF
6180
6181
6182 fi
6183
6184
6185 else
6186    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6187 fi
6188
6189
6190
6191 fi
6192
6193
6194 fi
6195
6196
6197 # ---------------------------------------------------
6198 # Check for readline support/directory (default off)
6199 # ---------------------------------------------------
6200 # this allows you to turn it completely off
6201 # Check whether --enable-readline or --disable-readline was given.
6202 if test "${enable_readline+set}" = set; then
6203   enableval="$enable_readline"
6204   if test x$enableval = xno; then
6205     support_readline=no
6206   fi
6207 fi;
6208
6209 got_readline="no"
6210 READLINE_SRC=
6211 if test x$support_readline = xyes; then
6212
6213 # Check whether --with-readline or --without-readline was given.
6214 if test "${with_readline+set}" = set; then
6215   withval="$with_readline"
6216
6217         case "$with_readline" in
6218         no) : ;;
6219         yes|*)
6220           if test "$with_readline" != "yes"; then
6221             CONS_INC="-I${with_readline}"
6222             CONS_LDFLAGS="-L$with_readline"
6223           else
6224              with_readline="/usr/include/readline"
6225           fi
6226           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6228   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6229 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6231   echo $ECHO_N "(cached) $ECHO_C" >&6
6232 fi
6233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6235 else
6236   # Is the header compilable?
6237 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6238 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6239 cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h.  */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h.  */
6245 $ac_includes_default
6246 #include <${with_readline}/readline.h>
6247 _ACEOF
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250   (eval $ac_compile) 2>conftest.er1
6251   ac_status=$?
6252   grep -v '^ *+' conftest.er1 >conftest.err
6253   rm -f conftest.er1
6254   cat conftest.err >&5
6255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256   (exit $ac_status); } &&
6257          { ac_try='test -z "$ac_c_werror_flag"
6258                          || test ! -s conftest.err'
6259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6260   (eval $ac_try) 2>&5
6261   ac_status=$?
6262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263   (exit $ac_status); }; } &&
6264          { ac_try='test -s conftest.$ac_objext'
6265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266   (eval $ac_try) 2>&5
6267   ac_status=$?
6268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269   (exit $ac_status); }; }; then
6270   ac_header_compiler=yes
6271 else
6272   echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6274
6275 ac_header_compiler=no
6276 fi
6277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6279 echo "${ECHO_T}$ac_header_compiler" >&6
6280
6281 # Is the header present?
6282 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6283 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6284 cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h.  */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h.  */
6290 #include <${with_readline}/readline.h>
6291 _ACEOF
6292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6294   ac_status=$?
6295   grep -v '^ *+' conftest.er1 >conftest.err
6296   rm -f conftest.er1
6297   cat conftest.err >&5
6298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299   (exit $ac_status); } >/dev/null; then
6300   if test -s conftest.err; then
6301     ac_cpp_err=$ac_c_preproc_warn_flag
6302     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6303   else
6304     ac_cpp_err=
6305   fi
6306 else
6307   ac_cpp_err=yes
6308 fi
6309 if test -z "$ac_cpp_err"; then
6310   ac_header_preproc=yes
6311 else
6312   echo "$as_me: failed program was:" >&5
6313 sed 's/^/| /' conftest.$ac_ext >&5
6314
6315   ac_header_preproc=no
6316 fi
6317 rm -f conftest.err conftest.$ac_ext
6318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6319 echo "${ECHO_T}$ac_header_preproc" >&6
6320
6321 # So?  What about this header?
6322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6323   yes:no: )
6324     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6325 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6326     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6327 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6328     ac_header_preproc=yes
6329     ;;
6330   no:yes:* )
6331     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6332 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6333     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
6334 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
6335     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6336 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6337     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6338 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6339     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6340 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6341     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6342 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6343     (
6344       cat <<\_ASBOX
6345 ## ------------------------------------------ ##
6346 ## Report this to the AC_PACKAGE_NAME lists.  ##
6347 ## ------------------------------------------ ##
6348 _ASBOX
6349     ) |
6350       sed "s/^/$as_me: WARNING:     /" >&2
6351     ;;
6352 esac
6353 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6354 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6356   echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358   eval "$as_ac_Header=\$ac_header_preproc"
6359 fi
6360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6362
6363 fi
6364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6365    cat >>confdefs.h <<\_ACEOF
6366 #define HAVE_READLINE 1
6367 _ACEOF
6368
6369                CONS_LIBS="-lreadline -ltermcap"
6370                got_readline="yes"
6371
6372 else
6373    echo " "
6374                echo "readline.h not found. readline turned off ..."
6375                echo " "
6376
6377
6378 fi
6379
6380
6381           ;;
6382         esac
6383
6384 else
6385
6386        # check for standard readline library
6387        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6388   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6389 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6390 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6391   echo $ECHO_N "(cached) $ECHO_C" >&6
6392 fi
6393 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6394 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6395 else
6396   # Is the header compilable?
6397 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6398 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6399 cat >conftest.$ac_ext <<_ACEOF
6400 /* confdefs.h.  */
6401 _ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h.  */
6405 $ac_includes_default
6406 #include </usr/include/readline/readline.h>
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410   (eval $ac_compile) 2>conftest.er1
6411   ac_status=$?
6412   grep -v '^ *+' conftest.er1 >conftest.err
6413   rm -f conftest.er1
6414   cat conftest.err >&5
6415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416   (exit $ac_status); } &&
6417          { ac_try='test -z "$ac_c_werror_flag"
6418                          || test ! -s conftest.err'
6419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420   (eval $ac_try) 2>&5
6421   ac_status=$?
6422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423   (exit $ac_status); }; } &&
6424          { ac_try='test -s conftest.$ac_objext'
6425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426   (eval $ac_try) 2>&5
6427   ac_status=$?
6428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429   (exit $ac_status); }; }; then
6430   ac_header_compiler=yes
6431 else
6432   echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.$ac_ext >&5
6434
6435 ac_header_compiler=no
6436 fi
6437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6439 echo "${ECHO_T}$ac_header_compiler" >&6
6440
6441 # Is the header present?
6442 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6443 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6444 cat >conftest.$ac_ext <<_ACEOF
6445 /* confdefs.h.  */
6446 _ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h.  */
6450 #include </usr/include/readline/readline.h>
6451 _ACEOF
6452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6453   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6454   ac_status=$?
6455   grep -v '^ *+' conftest.er1 >conftest.err
6456   rm -f conftest.er1
6457   cat conftest.err >&5
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); } >/dev/null; then
6460   if test -s conftest.err; then
6461     ac_cpp_err=$ac_c_preproc_warn_flag
6462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6463   else
6464     ac_cpp_err=
6465   fi
6466 else
6467   ac_cpp_err=yes
6468 fi
6469 if test -z "$ac_cpp_err"; then
6470   ac_header_preproc=yes
6471 else
6472   echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.$ac_ext >&5
6474
6475   ac_header_preproc=no
6476 fi
6477 rm -f conftest.err conftest.$ac_ext
6478 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6479 echo "${ECHO_T}$ac_header_preproc" >&6
6480
6481 # So?  What about this header?
6482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6483   yes:no: )
6484     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6485 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6486     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6487 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6488     ac_header_preproc=yes
6489     ;;
6490   no:yes:* )
6491     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6492 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6493     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
6494 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6495     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6496 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6497     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6498 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6499     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6500 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6501     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6502 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6503     (
6504       cat <<\_ASBOX
6505 ## ------------------------------------------ ##
6506 ## Report this to the AC_PACKAGE_NAME lists.  ##
6507 ## ------------------------------------------ ##
6508 _ASBOX
6509     ) |
6510       sed "s/^/$as_me: WARNING:     /" >&2
6511     ;;
6512 esac
6513 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6514 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6515 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6519 fi
6520 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6521 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6522
6523 fi
6524 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6525    cat >>confdefs.h <<\_ACEOF
6526 #define HAVE_READLINE 1
6527 _ACEOF
6528
6529            got_readline="yes"
6530            CONS_INC="-I/usr/include/readline"
6531            CONS_LIBS="-lreadline -ltermcap"
6532
6533 else
6534
6535            # Did not find standard library, so try Bacula's default
6536             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6539 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6541   echo $ECHO_N "(cached) $ECHO_C" >&6
6542 fi
6543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6545 else
6546   # Is the header compilable?
6547 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6548 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6549 cat >conftest.$ac_ext <<_ACEOF
6550 /* confdefs.h.  */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h.  */
6555 $ac_includes_default
6556 #include <${TOP_DIR}/depkgs/readline/readline.h>
6557 _ACEOF
6558 rm -f conftest.$ac_objext
6559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560   (eval $ac_compile) 2>conftest.er1
6561   ac_status=$?
6562   grep -v '^ *+' conftest.er1 >conftest.err
6563   rm -f conftest.er1
6564   cat conftest.err >&5
6565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566   (exit $ac_status); } &&
6567          { ac_try='test -z "$ac_c_werror_flag"
6568                          || test ! -s conftest.err'
6569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570   (eval $ac_try) 2>&5
6571   ac_status=$?
6572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573   (exit $ac_status); }; } &&
6574          { ac_try='test -s conftest.$ac_objext'
6575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576   (eval $ac_try) 2>&5
6577   ac_status=$?
6578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579   (exit $ac_status); }; }; then
6580   ac_header_compiler=yes
6581 else
6582   echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6584
6585 ac_header_compiler=no
6586 fi
6587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6589 echo "${ECHO_T}$ac_header_compiler" >&6
6590
6591 # Is the header present?
6592 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6593 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6594 cat >conftest.$ac_ext <<_ACEOF
6595 /* confdefs.h.  */
6596 _ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h.  */
6600 #include <${TOP_DIR}/depkgs/readline/readline.h>
6601 _ACEOF
6602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6604   ac_status=$?
6605   grep -v '^ *+' conftest.er1 >conftest.err
6606   rm -f conftest.er1
6607   cat conftest.err >&5
6608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609   (exit $ac_status); } >/dev/null; then
6610   if test -s conftest.err; then
6611     ac_cpp_err=$ac_c_preproc_warn_flag
6612     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6613   else
6614     ac_cpp_err=
6615   fi
6616 else
6617   ac_cpp_err=yes
6618 fi
6619 if test -z "$ac_cpp_err"; then
6620   ac_header_preproc=yes
6621 else
6622   echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6624
6625   ac_header_preproc=no
6626 fi
6627 rm -f conftest.err conftest.$ac_ext
6628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6629 echo "${ECHO_T}$ac_header_preproc" >&6
6630
6631 # So?  What about this header?
6632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6633   yes:no: )
6634     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6635 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6636     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6637 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6638     ac_header_preproc=yes
6639     ;;
6640   no:yes:* )
6641     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6642 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6643     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
6644 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
6645     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6646 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6647     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
6648 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6649     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6650 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6651     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6652 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6653     (
6654       cat <<\_ASBOX
6655 ## ------------------------------------------ ##
6656 ## Report this to the AC_PACKAGE_NAME lists.  ##
6657 ## ------------------------------------------ ##
6658 _ASBOX
6659     ) |
6660       sed "s/^/$as_me: WARNING:     /" >&2
6661     ;;
6662 esac
6663 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6664 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   eval "$as_ac_Header=\$ac_header_preproc"
6669 fi
6670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6672
6673 fi
6674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6675    cat >>confdefs.h <<\_ACEOF
6676 #define HAVE_READLINE 1
6677 _ACEOF
6678
6679                  got_readline="yes"
6680                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
6681                  CONS_LIBS="-lreadline -lhistory -ltermcap"
6682                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6683                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6684
6685 else
6686    echo " "
6687                 echo "readline.h not found. readline turned off ..."
6688                 echo " "
6689
6690
6691 fi
6692
6693
6694
6695
6696 fi
6697
6698
6699
6700
6701 fi;
6702 fi
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713 # Minimal stuff for readline Makefile configuration
6714 MAKE_SHELL=/bin/sh
6715
6716 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6717 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6718 if test "${ac_cv_header_stat_broken+set}" = set; then
6719   echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721   cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h.  */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h.  */
6727 #include <sys/types.h>
6728 #include <sys/stat.h>
6729
6730 #if defined(S_ISBLK) && defined(S_IFDIR)
6731 # if S_ISBLK (S_IFDIR)
6732 You lose.
6733 # endif
6734 #endif
6735
6736 #if defined(S_ISBLK) && defined(S_IFCHR)
6737 # if S_ISBLK (S_IFCHR)
6738 You lose.
6739 # endif
6740 #endif
6741
6742 #if defined(S_ISLNK) && defined(S_IFREG)
6743 # if S_ISLNK (S_IFREG)
6744 You lose.
6745 # endif
6746 #endif
6747
6748 #if defined(S_ISSOCK) && defined(S_IFREG)
6749 # if S_ISSOCK (S_IFREG)
6750 You lose.
6751 # endif
6752 #endif
6753
6754 _ACEOF
6755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6756   $EGREP "You lose" >/dev/null 2>&1; then
6757   ac_cv_header_stat_broken=yes
6758 else
6759   ac_cv_header_stat_broken=no
6760 fi
6761 rm -f conftest*
6762
6763 fi
6764 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6765 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6766 if test $ac_cv_header_stat_broken = yes; then
6767
6768 cat >>confdefs.h <<\_ACEOF
6769 #define STAT_MACROS_BROKEN 1
6770 _ACEOF
6771
6772 fi
6773
6774
6775
6776
6777
6778
6779 ac_header_dirent=no
6780 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6781   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6782 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6783 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793 #include <sys/types.h>
6794 #include <$ac_hdr>
6795
6796 int
6797 main ()
6798 {
6799 if ((DIR *) 0)
6800 return 0;
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 rm -f conftest.$ac_objext
6806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6807   (eval $ac_compile) 2>conftest.er1
6808   ac_status=$?
6809   grep -v '^ *+' conftest.er1 >conftest.err
6810   rm -f conftest.er1
6811   cat conftest.err >&5
6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813   (exit $ac_status); } &&
6814          { ac_try='test -z "$ac_c_werror_flag"
6815                          || test ! -s conftest.err'
6816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817   (eval $ac_try) 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); }; } &&
6821          { ac_try='test -s conftest.$ac_objext'
6822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823   (eval $ac_try) 2>&5
6824   ac_status=$?
6825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826   (exit $ac_status); }; }; then
6827   eval "$as_ac_Header=yes"
6828 else
6829   echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6831
6832 eval "$as_ac_Header=no"
6833 fi
6834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6835 fi
6836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6839   cat >>confdefs.h <<_ACEOF
6840 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6841 _ACEOF
6842
6843 ac_header_dirent=$ac_hdr; break
6844 fi
6845
6846 done
6847 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6848 if test $ac_header_dirent = dirent.h; then
6849   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6850 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6851 if test "${ac_cv_search_opendir+set}" = set; then
6852   echo $ECHO_N "(cached) $ECHO_C" >&6
6853 else
6854   ac_func_search_save_LIBS=$LIBS
6855 ac_cv_search_opendir=no
6856 cat >conftest.$ac_ext <<_ACEOF
6857 /* confdefs.h.  */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h.  */
6862
6863 /* Override any gcc2 internal prototype to avoid an error.  */
6864 #ifdef __cplusplus
6865 extern "C"
6866 #endif
6867 /* We use char because int might match the return type of a gcc2
6868    builtin and then its argument prototype would still apply.  */
6869 char opendir ();
6870 int
6871 main ()
6872 {
6873 opendir ();
6874   ;
6875   return 0;
6876 }
6877 _ACEOF
6878 rm -f conftest.$ac_objext conftest$ac_exeext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880   (eval $ac_link) 2>conftest.er1
6881   ac_status=$?
6882   grep -v '^ *+' conftest.er1 >conftest.err
6883   rm -f conftest.er1
6884   cat conftest.err >&5
6885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); } &&
6887          { ac_try='test -z "$ac_c_werror_flag"
6888                          || test ! -s conftest.err'
6889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890   (eval $ac_try) 2>&5
6891   ac_status=$?
6892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); }; } &&
6894          { ac_try='test -s conftest$ac_exeext'
6895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896   (eval $ac_try) 2>&5
6897   ac_status=$?
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); }; }; then
6900   ac_cv_search_opendir="none required"
6901 else
6902   echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6904
6905 fi
6906 rm -f conftest.err conftest.$ac_objext \
6907       conftest$ac_exeext conftest.$ac_ext
6908 if test "$ac_cv_search_opendir" = no; then
6909   for ac_lib in dir; do
6910     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6911     cat >conftest.$ac_ext <<_ACEOF
6912 /* confdefs.h.  */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h.  */
6917
6918 /* Override any gcc2 internal prototype to avoid an error.  */
6919 #ifdef __cplusplus
6920 extern "C"
6921 #endif
6922 /* We use char because int might match the return type of a gcc2
6923    builtin and then its argument prototype would still apply.  */
6924 char opendir ();
6925 int
6926 main ()
6927 {
6928 opendir ();
6929   ;
6930   return 0;
6931 }
6932 _ACEOF
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6935   (eval $ac_link) 2>conftest.er1
6936   ac_status=$?
6937   grep -v '^ *+' conftest.er1 >conftest.err
6938   rm -f conftest.er1
6939   cat conftest.err >&5
6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); } &&
6942          { ac_try='test -z "$ac_c_werror_flag"
6943                          || test ! -s conftest.err'
6944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945   (eval $ac_try) 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); }; } &&
6949          { ac_try='test -s conftest$ac_exeext'
6950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951   (eval $ac_try) 2>&5
6952   ac_status=$?
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); }; }; then
6955   ac_cv_search_opendir="-l$ac_lib"
6956 break
6957 else
6958   echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6960
6961 fi
6962 rm -f conftest.err conftest.$ac_objext \
6963       conftest$ac_exeext conftest.$ac_ext
6964   done
6965 fi
6966 LIBS=$ac_func_search_save_LIBS
6967 fi
6968 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6969 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6970 if test "$ac_cv_search_opendir" != no; then
6971   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6972
6973 fi
6974
6975 else
6976   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6977 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6978 if test "${ac_cv_search_opendir+set}" = set; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981   ac_func_search_save_LIBS=$LIBS
6982 ac_cv_search_opendir=no
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h.  */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h.  */
6989
6990 /* Override any gcc2 internal prototype to avoid an error.  */
6991 #ifdef __cplusplus
6992 extern "C"
6993 #endif
6994 /* We use char because int might match the return type of a gcc2
6995    builtin and then its argument prototype would still apply.  */
6996 char opendir ();
6997 int
6998 main ()
6999 {
7000 opendir ();
7001   ;
7002   return 0;
7003 }
7004 _ACEOF
7005 rm -f conftest.$ac_objext conftest$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007   (eval $ac_link) 2>conftest.er1
7008   ac_status=$?
7009   grep -v '^ *+' conftest.er1 >conftest.err
7010   rm -f conftest.er1
7011   cat conftest.err >&5
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); } &&
7014          { ac_try='test -z "$ac_c_werror_flag"
7015                          || test ! -s conftest.err'
7016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017   (eval $ac_try) 2>&5
7018   ac_status=$?
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); }; } &&
7021          { ac_try='test -s conftest$ac_exeext'
7022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023   (eval $ac_try) 2>&5
7024   ac_status=$?
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); }; }; then
7027   ac_cv_search_opendir="none required"
7028 else
7029   echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 fi
7033 rm -f conftest.err conftest.$ac_objext \
7034       conftest$ac_exeext conftest.$ac_ext
7035 if test "$ac_cv_search_opendir" = no; then
7036   for ac_lib in x; do
7037     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7038     cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h.  */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h.  */
7044
7045 /* Override any gcc2 internal prototype to avoid an error.  */
7046 #ifdef __cplusplus
7047 extern "C"
7048 #endif
7049 /* We use char because int might match the return type of a gcc2
7050    builtin and then its argument prototype would still apply.  */
7051 char opendir ();
7052 int
7053 main ()
7054 {
7055 opendir ();
7056   ;
7057   return 0;
7058 }
7059 _ACEOF
7060 rm -f conftest.$ac_objext conftest$ac_exeext
7061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7062   (eval $ac_link) 2>conftest.er1
7063   ac_status=$?
7064   grep -v '^ *+' conftest.er1 >conftest.err
7065   rm -f conftest.er1
7066   cat conftest.err >&5
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); } &&
7069          { ac_try='test -z "$ac_c_werror_flag"
7070                          || test ! -s conftest.err'
7071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072   (eval $ac_try) 2>&5
7073   ac_status=$?
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); }; } &&
7076          { ac_try='test -s conftest$ac_exeext'
7077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078   (eval $ac_try) 2>&5
7079   ac_status=$?
7080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); }; }; then
7082   ac_cv_search_opendir="-l$ac_lib"
7083 break
7084 else
7085   echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7087
7088 fi
7089 rm -f conftest.err conftest.$ac_objext \
7090       conftest$ac_exeext conftest.$ac_ext
7091   done
7092 fi
7093 LIBS=$ac_func_search_save_LIBS
7094 fi
7095 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7096 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7097 if test "$ac_cv_search_opendir" != no; then
7098   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7099
7100 fi
7101
7102 fi
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7113 do
7114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7115 echo "$as_me:$LINENO: checking for $ac_func" >&5
7116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7117 if eval "test \"\${$as_ac_var+set}\" = set"; then
7118   echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120   cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h.  */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h.  */
7126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7128 #define $ac_func innocuous_$ac_func
7129
7130 /* System header to define __stub macros and hopefully few prototypes,
7131     which can conflict with char $ac_func (); below.
7132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7133     <limits.h> exists even on freestanding compilers.  */
7134
7135 #ifdef __STDC__
7136 # include <limits.h>
7137 #else
7138 # include <assert.h>
7139 #endif
7140
7141 #undef $ac_func
7142
7143 /* Override any gcc2 internal prototype to avoid an error.  */
7144 #ifdef __cplusplus
7145 extern "C"
7146 {
7147 #endif
7148 /* We use char because int might match the return type of a gcc2
7149    builtin and then its argument prototype would still apply.  */
7150 char $ac_func ();
7151 /* The GNU C library defines this for functions which it implements
7152     to always fail with ENOSYS.  Some functions are actually named
7153     something starting with __ and the normal name is an alias.  */
7154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7155 choke me
7156 #else
7157 char (*f) () = $ac_func;
7158 #endif
7159 #ifdef __cplusplus
7160 }
7161 #endif
7162
7163 int
7164 main ()
7165 {
7166 return f != $ac_func;
7167   ;
7168   return 0;
7169 }
7170 _ACEOF
7171 rm -f conftest.$ac_objext conftest$ac_exeext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7173   (eval $ac_link) 2>conftest.er1
7174   ac_status=$?
7175   grep -v '^ *+' conftest.er1 >conftest.err
7176   rm -f conftest.er1
7177   cat conftest.err >&5
7178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179   (exit $ac_status); } &&
7180          { ac_try='test -z "$ac_c_werror_flag"
7181                          || test ! -s conftest.err'
7182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183   (eval $ac_try) 2>&5
7184   ac_status=$?
7185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186   (exit $ac_status); }; } &&
7187          { ac_try='test -s conftest$ac_exeext'
7188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189   (eval $ac_try) 2>&5
7190   ac_status=$?
7191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192   (exit $ac_status); }; }; then
7193   eval "$as_ac_var=yes"
7194 else
7195   echo "$as_me: failed program was:" >&5
7196 sed 's/^/| /' conftest.$ac_ext >&5
7197
7198 eval "$as_ac_var=no"
7199 fi
7200 rm -f conftest.err conftest.$ac_objext \
7201       conftest$ac_exeext conftest.$ac_ext
7202 fi
7203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7205 if test `eval echo '${'$as_ac_var'}'` = yes; then
7206   cat >>confdefs.h <<_ACEOF
7207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7208 _ACEOF
7209
7210 fi
7211 done
7212
7213
7214
7215 for ac_func in nanosleep nl_langinfo
7216 do
7217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7218 echo "$as_me:$LINENO: checking for $ac_func" >&5
7219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7220 if eval "test \"\${$as_ac_var+set}\" = set"; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223   cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h.  */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h.  */
7229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7231 #define $ac_func innocuous_$ac_func
7232
7233 /* System header to define __stub macros and hopefully few prototypes,
7234     which can conflict with char $ac_func (); below.
7235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7236     <limits.h> exists even on freestanding compilers.  */
7237
7238 #ifdef __STDC__
7239 # include <limits.h>
7240 #else
7241 # include <assert.h>
7242 #endif
7243
7244 #undef $ac_func
7245
7246 /* Override any gcc2 internal prototype to avoid an error.  */
7247 #ifdef __cplusplus
7248 extern "C"
7249 {
7250 #endif
7251 /* We use char because int might match the return type of a gcc2
7252    builtin and then its argument prototype would still apply.  */
7253 char $ac_func ();
7254 /* The GNU C library defines this for functions which it implements
7255     to always fail with ENOSYS.  Some functions are actually named
7256     something starting with __ and the normal name is an alias.  */
7257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7258 choke me
7259 #else
7260 char (*f) () = $ac_func;
7261 #endif
7262 #ifdef __cplusplus
7263 }
7264 #endif
7265
7266 int
7267 main ()
7268 {
7269 return f != $ac_func;
7270   ;
7271   return 0;
7272 }
7273 _ACEOF
7274 rm -f conftest.$ac_objext conftest$ac_exeext
7275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7276   (eval $ac_link) 2>conftest.er1
7277   ac_status=$?
7278   grep -v '^ *+' conftest.er1 >conftest.err
7279   rm -f conftest.er1
7280   cat conftest.err >&5
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); } &&
7283          { ac_try='test -z "$ac_c_werror_flag"
7284                          || test ! -s conftest.err'
7285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7286   (eval $ac_try) 2>&5
7287   ac_status=$?
7288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289   (exit $ac_status); }; } &&
7290          { ac_try='test -s conftest$ac_exeext'
7291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292   (eval $ac_try) 2>&5
7293   ac_status=$?
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); }; }; then
7296   eval "$as_ac_var=yes"
7297 else
7298   echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7300
7301 eval "$as_ac_var=no"
7302 fi
7303 rm -f conftest.err conftest.$ac_objext \
7304       conftest$ac_exeext conftest.$ac_ext
7305 fi
7306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7308 if test `eval echo '${'$as_ac_var'}'` = yes; then
7309   cat >>confdefs.h <<_ACEOF
7310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7311 _ACEOF
7312
7313 fi
7314 done
7315
7316
7317 for ac_header in varargs.h
7318 do
7319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7321   echo "$as_me:$LINENO: checking for $ac_header" >&5
7322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7324   echo $ECHO_N "(cached) $ECHO_C" >&6
7325 fi
7326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7328 else
7329   # Is the header compilable?
7330 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h.  */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h.  */
7338 $ac_includes_default
7339 #include <$ac_header>
7340 _ACEOF
7341 rm -f conftest.$ac_objext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343   (eval $ac_compile) 2>conftest.er1
7344   ac_status=$?
7345   grep -v '^ *+' conftest.er1 >conftest.err
7346   rm -f conftest.er1
7347   cat conftest.err >&5
7348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349   (exit $ac_status); } &&
7350          { ac_try='test -z "$ac_c_werror_flag"
7351                          || test ! -s conftest.err'
7352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353   (eval $ac_try) 2>&5
7354   ac_status=$?
7355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356   (exit $ac_status); }; } &&
7357          { ac_try='test -s conftest.$ac_objext'
7358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359   (eval $ac_try) 2>&5
7360   ac_status=$?
7361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362   (exit $ac_status); }; }; then
7363   ac_header_compiler=yes
7364 else
7365   echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7367
7368 ac_header_compiler=no
7369 fi
7370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7371 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7372 echo "${ECHO_T}$ac_header_compiler" >&6
7373
7374 # Is the header present?
7375 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7377 cat >conftest.$ac_ext <<_ACEOF
7378 /* confdefs.h.  */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h.  */
7383 #include <$ac_header>
7384 _ACEOF
7385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7386   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7387   ac_status=$?
7388   grep -v '^ *+' conftest.er1 >conftest.err
7389   rm -f conftest.er1
7390   cat conftest.err >&5
7391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392   (exit $ac_status); } >/dev/null; then
7393   if test -s conftest.err; then
7394     ac_cpp_err=$ac_c_preproc_warn_flag
7395     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7396   else
7397     ac_cpp_err=
7398   fi
7399 else
7400   ac_cpp_err=yes
7401 fi
7402 if test -z "$ac_cpp_err"; then
7403   ac_header_preproc=yes
7404 else
7405   echo "$as_me: failed program was:" >&5
7406 sed 's/^/| /' conftest.$ac_ext >&5
7407
7408   ac_header_preproc=no
7409 fi
7410 rm -f conftest.err conftest.$ac_ext
7411 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7412 echo "${ECHO_T}$ac_header_preproc" >&6
7413
7414 # So?  What about this header?
7415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7416   yes:no: )
7417     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7419     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7421     ac_header_preproc=yes
7422     ;;
7423   no:yes:* )
7424     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7426     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7427 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7428     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7430     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7431 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7432     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7434     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7436     (
7437       cat <<\_ASBOX
7438 ## ------------------------------------------ ##
7439 ## Report this to the AC_PACKAGE_NAME lists.  ##
7440 ## ------------------------------------------ ##
7441 _ASBOX
7442     ) |
7443       sed "s/^/$as_me: WARNING:     /" >&2
7444     ;;
7445 esac
7446 echo "$as_me:$LINENO: checking for $ac_header" >&5
7447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7449   echo $ECHO_N "(cached) $ECHO_C" >&6
7450 else
7451   eval "$as_ac_Header=\$ac_header_preproc"
7452 fi
7453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7455
7456 fi
7457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7458   cat >>confdefs.h <<_ACEOF
7459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7460 _ACEOF
7461
7462 fi
7463
7464 done
7465
7466
7467 # End of readline/conio stuff
7468 # -----------------------------------------------------------------------
7469
7470 # -----------------------------------------------------------------------
7471 #  Check for Python support
7472 #
7473 echo "$as_me:$LINENO: checking for Python support" >&5
7474 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7475
7476 # Check whether --with-python or --without-python was given.
7477 if test "${with_python+set}" = set; then
7478   withval="$with_python"
7479
7480   PYTHON_INCDIR=
7481   PYTHON_LIBS=
7482   if test "$withval" != "no"; then
7483      if test "$withval" = "yes"; then
7484         if test -f /usr/include/python2.2/Python.h; then
7485            PYTHON_INCDIR=-I/usr/include/python2.2
7486            PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7487         elif test -f /usr/include/python2.3/Python.h; then
7488            PYTHON_INCDIR=-I/usr/include/python2.3
7489            PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7490         elif test -f /usr/include/python2.4/Python.h; then
7491            PYTHON_INCDIR=-I/usr/include/python2.4
7492            PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7493         elif test -f $prefix/include/Python.h; then
7494            PYTHON_INCDIR=-I$prefix/include
7495            PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7496         else
7497            echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6
7499            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7500 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7501    { (exit 1); exit 1; }; }
7502         fi
7503      else
7504         if test -f $withval/Python.h; then
7505            PYTHON_INCDIR=-I$withval
7506            PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7507         elif test -f $withval/include/Python.h; then
7508            PYTHON_INCDIR=-I$withval/include
7509            PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7510         else
7511            echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6
7513            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7514 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7515    { (exit 1); exit 1; }; }
7516         fi
7517      fi
7518      cat >>confdefs.h <<\_ACEOF
7519 #define HAVE_PYTHON 1
7520 _ACEOF
7521
7522      echo "$as_me:$LINENO: result: yes" >&5
7523 echo "${ECHO_T}yes" >&6
7524      support_python=yes
7525
7526   else
7527      echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6
7529   fi
7530
7531 else
7532
7533   echo "$as_me:$LINENO: result: no" >&5
7534 echo "${ECHO_T}no" >&6
7535
7536 fi;
7537
7538
7539
7540
7541 #
7542 # Find where sockets are (especially for Solaris)
7543 # Do this before the TCP Wrappers test since tcp wrappers
7544 # uses the socket library and some linkers are stupid.
7545 #
7546 echo "$as_me:$LINENO: checking for socket" >&5
7547 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7548 if test "${ac_cv_func_socket+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   cat >conftest.$ac_ext <<_ACEOF
7552 /* confdefs.h.  */
7553 _ACEOF
7554 cat confdefs.h >>conftest.$ac_ext
7555 cat >>conftest.$ac_ext <<_ACEOF
7556 /* end confdefs.h.  */
7557 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7559 #define socket innocuous_socket
7560
7561 /* System header to define __stub macros and hopefully few prototypes,
7562     which can conflict with char socket (); below.
7563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7564     <limits.h> exists even on freestanding compilers.  */
7565
7566 #ifdef __STDC__
7567 # include <limits.h>
7568 #else
7569 # include <assert.h>
7570 #endif
7571
7572 #undef socket
7573
7574 /* Override any gcc2 internal prototype to avoid an error.  */
7575 #ifdef __cplusplus
7576 extern "C"
7577 {
7578 #endif
7579 /* We use char because int might match the return type of a gcc2
7580    builtin and then its argument prototype would still apply.  */
7581 char socket ();
7582 /* The GNU C library defines this for functions which it implements
7583     to always fail with ENOSYS.  Some functions are actually named
7584     something starting with __ and the normal name is an alias.  */
7585 #if defined (__stub_socket) || defined (__stub___socket)
7586 choke me
7587 #else
7588 char (*f) () = socket;
7589 #endif
7590 #ifdef __cplusplus
7591 }
7592 #endif
7593
7594 int
7595 main ()
7596 {
7597 return f != socket;
7598   ;
7599   return 0;
7600 }
7601 _ACEOF
7602 rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7604   (eval $ac_link) 2>conftest.er1
7605   ac_status=$?
7606   grep -v '^ *+' conftest.er1 >conftest.err
7607   rm -f conftest.er1
7608   cat conftest.err >&5
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); } &&
7611          { ac_try='test -z "$ac_c_werror_flag"
7612                          || test ! -s conftest.err'
7613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614   (eval $ac_try) 2>&5
7615   ac_status=$?
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); }; } &&
7618          { ac_try='test -s conftest$ac_exeext'
7619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620   (eval $ac_try) 2>&5
7621   ac_status=$?
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); }; }; then
7624   ac_cv_func_socket=yes
7625 else
7626   echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629 ac_cv_func_socket=no
7630 fi
7631 rm -f conftest.err conftest.$ac_objext \
7632       conftest$ac_exeext conftest.$ac_ext
7633 fi
7634 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7635 echo "${ECHO_T}$ac_cv_func_socket" >&6
7636 if test $ac_cv_func_socket = yes; then
7637   echo "$as_me:$LINENO: result: using libc's socket" >&5
7638 echo "${ECHO_T}using libc's socket" >&6
7639 else
7640
7641 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7642 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7643 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7644   echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646   ac_check_lib_save_LIBS=$LIBS
7647 LIBS="-lxnet  $LIBS"
7648 cat >conftest.$ac_ext <<_ACEOF
7649 /* confdefs.h.  */
7650 _ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h.  */
7654
7655 /* Override any gcc2 internal prototype to avoid an error.  */
7656 #ifdef __cplusplus
7657 extern "C"
7658 #endif
7659 /* We use char because int might match the return type of a gcc2
7660    builtin and then its argument prototype would still apply.  */
7661 char socket ();
7662 int
7663 main ()
7664 {
7665 socket ();
7666   ;
7667   return 0;
7668 }
7669 _ACEOF
7670 rm -f conftest.$ac_objext conftest$ac_exeext
7671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7672   (eval $ac_link) 2>conftest.er1
7673   ac_status=$?
7674   grep -v '^ *+' conftest.er1 >conftest.err
7675   rm -f conftest.er1
7676   cat conftest.err >&5
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); } &&
7679          { ac_try='test -z "$ac_c_werror_flag"
7680                          || test ! -s conftest.err'
7681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7682   (eval $ac_try) 2>&5
7683   ac_status=$?
7684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685   (exit $ac_status); }; } &&
7686          { ac_try='test -s conftest$ac_exeext'
7687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688   (eval $ac_try) 2>&5
7689   ac_status=$?
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); }; }; then
7692   ac_cv_lib_xnet_socket=yes
7693 else
7694   echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7696
7697 ac_cv_lib_xnet_socket=no
7698 fi
7699 rm -f conftest.err conftest.$ac_objext \
7700       conftest$ac_exeext conftest.$ac_ext
7701 LIBS=$ac_check_lib_save_LIBS
7702 fi
7703 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7704 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7705 if test $ac_cv_lib_xnet_socket = yes; then
7706   cat >>confdefs.h <<_ACEOF
7707 #define HAVE_LIBXNET 1
7708 _ACEOF
7709
7710   LIBS="-lxnet $LIBS"
7711
7712 fi
7713
7714
7715 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7716 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7717 if test "${ac_cv_lib_socket_socket+set}" = set; then
7718   echo $ECHO_N "(cached) $ECHO_C" >&6
7719 else
7720   ac_check_lib_save_LIBS=$LIBS
7721 LIBS="-lsocket  $LIBS"
7722 cat >conftest.$ac_ext <<_ACEOF
7723 /* confdefs.h.  */
7724 _ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h.  */
7728
7729 /* Override any gcc2 internal prototype to avoid an error.  */
7730 #ifdef __cplusplus
7731 extern "C"
7732 #endif
7733 /* We use char because int might match the return type of a gcc2
7734    builtin and then its argument prototype would still apply.  */
7735 char socket ();
7736 int
7737 main ()
7738 {
7739 socket ();
7740   ;
7741   return 0;
7742 }
7743 _ACEOF
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7746   (eval $ac_link) 2>conftest.er1
7747   ac_status=$?
7748   grep -v '^ *+' conftest.er1 >conftest.err
7749   rm -f conftest.er1
7750   cat conftest.err >&5
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   (exit $ac_status); } &&
7753          { ac_try='test -z "$ac_c_werror_flag"
7754                          || test ! -s conftest.err'
7755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756   (eval $ac_try) 2>&5
7757   ac_status=$?
7758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759   (exit $ac_status); }; } &&
7760          { ac_try='test -s conftest$ac_exeext'
7761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762   (eval $ac_try) 2>&5
7763   ac_status=$?
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); }; }; then
7766   ac_cv_lib_socket_socket=yes
7767 else
7768   echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7770
7771 ac_cv_lib_socket_socket=no
7772 fi
7773 rm -f conftest.err conftest.$ac_objext \
7774       conftest$ac_exeext conftest.$ac_ext
7775 LIBS=$ac_check_lib_save_LIBS
7776 fi
7777 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7778 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7779 if test $ac_cv_lib_socket_socket = yes; then
7780   cat >>confdefs.h <<_ACEOF
7781 #define HAVE_LIBSOCKET 1
7782 _ACEOF
7783
7784   LIBS="-lsocket $LIBS"
7785
7786 fi
7787
7788
7789 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7790 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7791 if test "${ac_cv_lib_inet_socket+set}" = set; then
7792   echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794   ac_check_lib_save_LIBS=$LIBS
7795 LIBS="-linet  $LIBS"
7796 cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h.  */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h.  */
7802
7803 /* Override any gcc2 internal prototype to avoid an error.  */
7804 #ifdef __cplusplus
7805 extern "C"
7806 #endif
7807 /* We use char because int might match the return type of a gcc2
7808    builtin and then its argument prototype would still apply.  */
7809 char socket ();
7810 int
7811 main ()
7812 {
7813 socket ();
7814   ;
7815   return 0;
7816 }
7817 _ACEOF
7818 rm -f conftest.$ac_objext conftest$ac_exeext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7820   (eval $ac_link) 2>conftest.er1
7821   ac_status=$?
7822   grep -v '^ *+' conftest.er1 >conftest.err
7823   rm -f conftest.er1
7824   cat conftest.err >&5
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); } &&
7827          { ac_try='test -z "$ac_c_werror_flag"
7828                          || test ! -s conftest.err'
7829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830   (eval $ac_try) 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); }; } &&
7834          { ac_try='test -s conftest$ac_exeext'
7835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836   (eval $ac_try) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; }; then
7840   ac_cv_lib_inet_socket=yes
7841 else
7842   echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845 ac_cv_lib_inet_socket=no
7846 fi
7847 rm -f conftest.err conftest.$ac_objext \
7848       conftest$ac_exeext conftest.$ac_ext
7849 LIBS=$ac_check_lib_save_LIBS
7850 fi
7851 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7852 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7853 if test $ac_cv_lib_inet_socket = yes; then
7854   cat >>confdefs.h <<_ACEOF
7855 #define HAVE_LIBINET 1
7856 _ACEOF
7857
7858   LIBS="-linet $LIBS"
7859
7860 fi
7861
7862 fi
7863
7864
7865
7866 # -----------------------------------------------------------
7867 # Check whether user wants TCP wrappers support (default off)
7868 # -----------------------------------------------------------
7869 TCPW_MSG="no"
7870
7871 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7872 if test "${with_tcp_wrappers+set}" = set; then
7873   withval="$with_tcp_wrappers"
7874
7875     if test "x$withval" != "xno" ; then
7876        saved_LIBS="$LIBS"
7877        LIBS="$saved_LIBS -lwrap"
7878        echo "$as_me:$LINENO: checking for libwrap" >&5
7879 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7880        cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h.  */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h.  */
7886  #include <tcpd.h>
7887              int deny_severity = 0;
7888              int allow_severity = 0;
7889              struct request_info *req;
7890 int
7891 main ()
7892 {
7893  hosts_access(req);
7894   ;
7895   return 0;
7896 }
7897 _ACEOF
7898 rm -f conftest.$ac_objext conftest$ac_exeext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7900   (eval $ac_link) 2>conftest.er1
7901   ac_status=$?
7902   grep -v '^ *+' conftest.er1 >conftest.err
7903   rm -f conftest.er1
7904   cat conftest.err >&5
7905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906   (exit $ac_status); } &&
7907          { ac_try='test -z "$ac_c_werror_flag"
7908                          || test ! -s conftest.err'
7909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910   (eval $ac_try) 2>&5
7911   ac_status=$?
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); }; } &&
7914          { ac_try='test -s conftest$ac_exeext'
7915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916   (eval $ac_try) 2>&5
7917   ac_status=$?
7918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); }; }; then
7920
7921             echo "$as_me:$LINENO: result: yes" >&5
7922 echo "${ECHO_T}yes" >&6
7923             cat >>confdefs.h <<\_ACEOF
7924 #define HAVE_LIBWRAP 1
7925 _ACEOF
7926
7927             TCPW_MSG="yes"
7928
7929 else
7930   echo "$as_me: failed program was:" >&5
7931 sed 's/^/| /' conftest.$ac_ext >&5
7932
7933
7934             LIBS="$saved_LIBS -lwrap -lnsl"
7935             cat >conftest.$ac_ext <<_ACEOF
7936 /* confdefs.h.  */
7937 _ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h.  */
7941  #include <tcpd.h>
7942                  int deny_severity = 0;
7943                  int allow_severity = 0;
7944                  struct request_info *req;
7945 int
7946 main ()
7947 {
7948  hosts_access(req);
7949   ;
7950   return 0;
7951 }
7952 _ACEOF
7953 rm -f conftest.$ac_objext conftest$ac_exeext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7955   (eval $ac_link) 2>conftest.er1
7956   ac_status=$?
7957   grep -v '^ *+' conftest.er1 >conftest.err
7958   rm -f conftest.er1
7959   cat conftest.err >&5
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); } &&
7962          { ac_try='test -z "$ac_c_werror_flag"
7963                          || test ! -s conftest.err'
7964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965   (eval $ac_try) 2>&5
7966   ac_status=$?
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); }; } &&
7969          { ac_try='test -s conftest$ac_exeext'
7970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971   (eval $ac_try) 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; }; then
7975
7976                  echo "$as_me:$LINENO: result: yes" >&5
7977 echo "${ECHO_T}yes" >&6
7978                  cat >>confdefs.h <<\_ACEOF
7979 #define HAVE_LIBWRAP 1
7980 _ACEOF
7981
7982                  TCPW_MSG="yes"
7983
7984 else
7985   echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7987
7988 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7989 echo "$as_me: error: *** libwrap missing" >&2;}
7990    { (exit 1); exit 1; }; }
7991
7992 fi
7993 rm -f conftest.err conftest.$ac_objext \
7994       conftest$ac_exeext conftest.$ac_ext
7995
7996 fi
7997 rm -f conftest.err conftest.$ac_objext \
7998       conftest$ac_exeext conftest.$ac_ext
7999     fi
8000
8001
8002 fi;
8003
8004 # -----------------------------------------------------------
8005 # Check whether OpenSSL is available
8006 # -----------------------------------------------------------
8007 echo "$as_me:$LINENO: checking for OpenSSL" >&5
8008 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
8009
8010 # Check whether --with-openssl or --without-openssl was given.
8011 if test "${with_openssl+set}" = set; then
8012   withval="$with_openssl"
8013   with_openssl_directory=${withval}
8014 fi;
8015
8016 if test "x$with_openssl_directory" != "xno"; then
8017         OPENSSL_LIBS="-lssl -lcrypto"
8018         OPENSSL_INC=""
8019
8020         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
8021                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
8022                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
8023         fi
8024
8025         saved_LIBS="$LIBS"
8026         saved_CFLAGS="$CFLAGS"
8027         LIBS="$saved_LIBS $OPENSSL_LIBS"
8028         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
8029
8030         cat >conftest.$ac_ext <<_ACEOF
8031 /* confdefs.h.  */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h.  */
8036  #include <openssl/ssl.h>
8037 int
8038 main ()
8039 {
8040  CRYPTO_set_id_callback(NULL);
8041   ;
8042   return 0;
8043 }
8044 _ACEOF
8045 rm -f conftest.$ac_objext conftest$ac_exeext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8047   (eval $ac_link) 2>conftest.er1
8048   ac_status=$?
8049   grep -v '^ *+' conftest.er1 >conftest.err
8050   rm -f conftest.er1
8051   cat conftest.err >&5
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); } &&
8054          { ac_try='test -z "$ac_c_werror_flag"
8055                          || test ! -s conftest.err'
8056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057   (eval $ac_try) 2>&5
8058   ac_status=$?
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); }; } &&
8061          { ac_try='test -s conftest$ac_exeext'
8062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063   (eval $ac_try) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); }; }; then
8067    support_tls="yes"
8068 else
8069   echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8071
8072  support_tls="no"
8073
8074 fi
8075 rm -f conftest.err conftest.$ac_objext \
8076       conftest$ac_exeext conftest.$ac_ext
8077
8078         LIBS="$saved_LIBS"
8079         CFLAGS="$saved_CFLAGS"
8080
8081         if test "$support_tls" = "yes"; then
8082
8083 cat >>confdefs.h <<\_ACEOF
8084 #define HAVE_OPENSSL 1
8085 _ACEOF
8086
8087
8088 cat >>confdefs.h <<\_ACEOF
8089 #define HAVE_TLS 1
8090 _ACEOF
8091
8092         fi
8093 else
8094         support_tls="no"
8095         OPENSSL_LIBS=""
8096         OPENSSL_INC=""
8097 fi
8098
8099 echo "$as_me:$LINENO: result: $support_tls" >&5
8100 echo "${ECHO_T}$support_tls" >&6
8101
8102
8103
8104
8105
8106 # ------------------------------------------
8107 # Where to place working dir
8108 # ------------------------------------------
8109 working_dir=`eval echo ${prefix}/var/bacula/working`
8110
8111 # Check whether --with-working-dir or --without-working-dir was given.
8112 if test "${with_working_dir+set}" = set; then
8113   withval="$with_working_dir"
8114
8115        if test "x$withval" != "xno" ; then
8116               working_dir=$withval
8117        fi
8118
8119
8120 fi;
8121
8122
8123
8124
8125 # ------------------------------------------
8126 # Where to place scriptdir (script files)
8127 # ------------------------------------------
8128 scriptdir=`eval echo ${sysconfdir}`
8129
8130 # Check whether --with-scriptdir or --without-scriptdir was given.
8131 if test "${with_scriptdir+set}" = set; then
8132   withval="$with_scriptdir"
8133
8134        if test "x$withval" != "xno" ; then
8135               scriptdir=$withval
8136        fi
8137
8138
8139 fi;
8140
8141
8142
8143
8144 # ------------------------------------------
8145 # Where to send dump email
8146 # ------------------------------------------
8147 dump_email=root@localhost
8148
8149 # Check whether --with-dump-email or --without-dump-email was given.
8150 if test "${with_dump_email+set}" = set; then
8151   withval="$with_dump_email"
8152
8153        if test "x$withval" != "xno" ; then
8154               dump_email=$withval
8155        fi
8156
8157
8158 fi;
8159
8160
8161
8162 # ------------------------------------------
8163 # Where to send job email
8164 # ------------------------------------------
8165 job_email=root@localhost
8166
8167 # Check whether --with-job-email or --without-job-email was given.
8168 if test "${with_job_email+set}" = set; then
8169   withval="$with_job_email"
8170
8171        if test "x$withval" != "xno" ; then
8172               job_email=$withval
8173        fi
8174
8175
8176 fi;
8177
8178
8179
8180 # ------------------------------------------
8181 # Where to find smtp host
8182 # ------------------------------------------
8183 smtp_host=localhost
8184
8185 # Check whether --with-smtp_host or --without-smtp_host was given.
8186 if test "${with_smtp_host+set}" = set; then
8187   withval="$with_smtp_host"
8188
8189        if test "x$withval" != "xno" ; then
8190               smtp_host=$withval
8191        fi
8192
8193
8194 fi;
8195
8196
8197
8198
8199 # ------------------------------------
8200 # Where to place pid files
8201 # ------------------------------------
8202 piddir=/var/run
8203
8204 # Check whether --with-pid-dir or --without-pid-dir was given.
8205 if test "${with_pid_dir+set}" = set; then
8206   withval="$with_pid_dir"
8207
8208         if test "x$withval" != "xno" ; then
8209             piddir=$withval
8210         fi
8211
8212
8213 fi;
8214
8215 cat >>confdefs.h <<_ACEOF
8216 #define _PATH_BACULA_PIDDIR "$piddir"
8217 _ACEOF
8218
8219
8220
8221
8222 # ------------------------------------
8223 # Where to place subsys "lock file"
8224 # ------------------------------------
8225 subsysdir=/var/run/subsys
8226
8227 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8228 if test "${with_subsys_dir+set}" = set; then
8229   withval="$with_subsys_dir"
8230
8231         if test "x$withval" != "xno" ; then
8232             subsysdir=$withval
8233         fi
8234
8235
8236 fi;
8237
8238
8239
8240
8241
8242 # ------------------------------------
8243 # Where to start assigning ports
8244 # ------------------------------------
8245 baseport=9101
8246
8247 # Check whether --with-baseport or --without-baseport was given.
8248 if test "${with_baseport+set}" = set; then
8249   withval="$with_baseport"
8250
8251         if test "x$withval" != "xno" ; then
8252              baseport=$withval
8253         fi
8254
8255
8256 fi;
8257
8258
8259 dir_port=`expr $baseport`
8260 fd_port=`expr $baseport + 1`
8261 sd_port=`expr $fd_port + 1`
8262
8263
8264
8265
8266
8267
8268 # ------------------------------------------
8269 # Generate passwords
8270 # ------------------------------------------
8271 dir_password=
8272
8273 # Check whether --with-dir-password or --without-dir-password was given.
8274 if test "${with_dir_password+set}" = set; then
8275   withval="$with_dir_password"
8276
8277        if test "x$withval" != "xno" ; then
8278            dir_password=$withval
8279        fi
8280
8281
8282 fi;
8283
8284 if test "x$dir_password" = "x" ; then
8285    if test "x$OPENSSL" = "xnone" ; then
8286 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8287       key=`autoconf/randpass 33`
8288    else
8289       key=`openssl rand -base64 33`
8290    fi
8291    dir_password=$key
8292 fi
8293
8294 fd_password=
8295
8296 # Check whether --with-fd-password or --without-fd-password was given.
8297 if test "${with_fd_password+set}" = set; then
8298   withval="$with_fd_password"
8299
8300        if test "x$withval" != "xno" ; then
8301            fd_password=$withval
8302        fi
8303
8304
8305 fi;
8306
8307 if test "x$fd_password" = "x" ; then
8308    if test "x$OPENSSL" = "xnone" ; then
8309 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8310       key=`autoconf/randpass 37`
8311    else
8312       key=`openssl rand -base64 33`
8313    fi
8314    fd_password=$key
8315 fi
8316
8317 sd_password=
8318
8319 # Check whether --with-sd-password or --without-sd-password was given.
8320 if test "${with_sd_password+set}" = set; then
8321   withval="$with_sd_password"
8322
8323        if test "x$withval" != "xno" ; then
8324            sd_password=$withval
8325        fi
8326
8327
8328 fi;
8329
8330 if test "x$sd_password" = "x" ; then
8331    if test "x$OPENSSL" = "xnone" ; then
8332 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8333       key=`autoconf/randpass 41`
8334    else
8335       key=`openssl rand -base64 33`
8336    fi
8337    sd_password=$key
8338 fi
8339
8340 mon_dir_password=
8341
8342 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8343 if test "${with_mon_dir_password+set}" = set; then
8344   withval="$with_mon_dir_password"
8345
8346        if test "x$withval" != "xno" ; then
8347            mon_dir_password=$withval
8348        fi
8349
8350
8351 fi;
8352
8353 if test "x$mon_dir_password" = "x" ; then
8354    if test "x$OPENSSL" = "xnone" ; then
8355 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8356       key=`autoconf/randpass 33`
8357    else
8358       key=`openssl rand -base64 33`
8359    fi
8360    mon_dir_password=$key
8361 fi
8362
8363 mon_fd_password=
8364
8365 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8366 if test "${with_mon_fd_password+set}" = set; then
8367   withval="$with_mon_fd_password"
8368
8369        if test "x$withval" != "xno" ; then
8370            mon_fd_password=$withval
8371        fi
8372
8373
8374 fi;
8375
8376 if test "x$mon_fd_password" = "x" ; then
8377    if test "x$OPENSSL" = "xnone" ; then
8378 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8379       key=`autoconf/randpass 37`
8380    else
8381       key=`openssl rand -base64 33`
8382    fi
8383    mon_fd_password=$key
8384 fi
8385
8386 mon_sd_password=
8387
8388 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8389 if test "${with_mon_sd_password+set}" = set; then
8390   withval="$with_mon_sd_password"
8391
8392        if test "x$withval" != "xno" ; then
8393            mon_sd_password=$withval
8394        fi
8395
8396
8397 fi;
8398
8399 if test "x$mon_sd_password" = "x" ; then
8400    if test "x$OPENSSL" = "xnone" ; then
8401 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8402       key=`autoconf/randpass 41`
8403    else
8404       key=`openssl rand -base64 33`
8405    fi
8406    mon_sd_password=$key
8407 fi
8408
8409
8410
8411
8412
8413
8414
8415
8416 # -------------------------------------------------------------------------
8417 #  Set variables for bimagemgr installation
8418 # -------------------------------------------------------------------------
8419 bimagemgr_cgidir=/var/www/cgi-bin
8420
8421 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8422 if test "${with_bimagemgr_cgidir+set}" = set; then
8423   withval="$with_bimagemgr_cgidir"
8424
8425        if test "x$withval" != "xno" ; then
8426            bimagemgr_cgidir=$withval
8427        fi
8428
8429
8430 fi;
8431
8432 bimagemgr_docdir=/var/www/html
8433
8434 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8435 if test "${with_bimagemgr_docdir+set}" = set; then
8436   withval="$with_bimagemgr_docdir"
8437
8438        if test "x$withval" != "xno" ; then
8439            bimagemgr_docdir=$withval
8440        fi
8441
8442
8443 fi;
8444
8445 bimagemgr_binowner=root
8446
8447 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8448 if test "${with_bimagemgr_binowner+set}" = set; then
8449   withval="$with_bimagemgr_binowner"
8450
8451        if test "x$withval" != "xno" ; then
8452            bimagemgr_binowner=$withval
8453        fi
8454
8455
8456 fi;
8457
8458 bimagemgr_bingroup=root
8459
8460 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8461 if test "${with_bimagemgr_bingroup+set}" = set; then
8462   withval="$with_bimagemgr_bingroup"
8463
8464        if test "x$withval" != "xno" ; then
8465            bimagemgr_bingroup=$withval
8466        fi
8467
8468
8469 fi;
8470
8471 bimagemgr_dataowner=apache
8472
8473 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8474 if test "${with_bimagemgr_dataowner+set}" = set; then
8475   withval="$with_bimagemgr_dataowner"
8476
8477        if test "x$withval" != "xno" ; then
8478            bimagemgr_dataowner=$withval
8479        fi
8480
8481
8482 fi;
8483
8484 bimagemgr_datagroup=apache
8485
8486 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8487 if test "${with_bimagemgr_datagroup+set}" = set; then
8488   withval="$with_bimagemgr_datagroup"
8489
8490        if test "x$withval" != "xno" ; then
8491            bimagemgr_datagroup=$withval
8492        fi
8493
8494
8495 fi;
8496
8497
8498
8499
8500
8501
8502
8503
8504 #
8505 # Handle users and groups for each daemon
8506 #
8507 dir_user=
8508
8509 # Check whether --with-dir_user or --without-dir_user was given.
8510 if test "${with_dir_user+set}" = set; then
8511   withval="$with_dir_user"
8512
8513         if test "x$withval" != "x" ; then
8514              dir_user=$withval
8515         fi
8516
8517
8518 fi;
8519
8520 dir_group=
8521
8522 # Check whether --with-dir_group or --without-dir_group was given.
8523 if test "${with_dir_group+set}" = set; then
8524   withval="$with_dir_group"
8525
8526         if test "x$withval" != "x" ; then
8527              dir_group=$withval
8528         fi
8529
8530
8531 fi;
8532
8533 sd_user=
8534
8535 # Check whether --with-sd_user or --without-sd_user was given.
8536 if test "${with_sd_user+set}" = set; then
8537   withval="$with_sd_user"
8538
8539         if test "x$withval" != "x" ; then
8540              sd_user=$withval
8541         fi
8542
8543
8544 fi;
8545
8546 sd_group=
8547
8548 # Check whether --with-sd_group or --without-sd_group was given.
8549 if test "${with_sd_group+set}" = set; then
8550   withval="$with_sd_group"
8551
8552         if test "x$withval" != "x" ; then
8553              sd_group=$withval
8554         fi
8555
8556
8557 fi;
8558
8559 fd_user=
8560
8561 # Check whether --with-fd_user or --without-fd_user was given.
8562 if test "${with_fd_user+set}" = set; then
8563   withval="$with_fd_user"
8564
8565         if test "x$withval" != "x" ; then
8566              fd_user=$withval
8567         fi
8568
8569
8570 fi;
8571
8572 fd_group=
8573
8574 # Check whether --with-fd_group or --without-fd_group was given.
8575 if test "${with_fd_group+set}" = set; then
8576   withval="$with_fd_group"
8577
8578         if test "x$withval" != "x" ; then
8579              fd_group=$withval
8580         fi
8581
8582
8583 fi;
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595 #
8596 # allow setting default executable permissions
8597 #
8598 SBINPERM=0754
8599
8600 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8601 if test "${with_sbin_perm+set}" = set; then
8602   withval="$with_sbin_perm"
8603
8604         if test "x$withval" != "x" ; then
8605             SBINPERM=$withval
8606         fi
8607
8608
8609 fi;
8610
8611
8612
8613 # ------------------------------------------------
8614 # Bacula check for various SQL database engines
8615 # ------------------------------------------------
8616
8617 db_found=no
8618 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8619 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8620
8621 # Check whether --with-postgresql or --without-postgresql was given.
8622 if test "${with_postgresql+set}" = set; then
8623   withval="$with_postgresql"
8624
8625   if test "$withval" != "no"; then
8626       if test "$db_found" = "yes"; then
8627           echo "$as_me:$LINENO: result: error" >&5
8628 echo "${ECHO_T}error" >&6
8629           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8630 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8631    { (exit 1); exit 1; }; };
8632       fi
8633       if test "$withval" = "yes"; then
8634           if test -f /usr/local/include/libpq-fe.h; then
8635               POSTGRESQL_INCDIR=/usr/local/include
8636               POSTGRESQL_LIBDIR=/usr/local/lib
8637               POSTGRESQL_BINDIR=/usr/local/bin
8638           elif test -f /usr/include/libpq-fe.h; then
8639               POSTGRESQL_INCDIR=/usr/include
8640               POSTGRESQL_LIBDIR=/usr/lib
8641               POSTGRESQL_BINDIR=/usr/bin
8642           elif test -f /usr/include/pgsql/libpq-fe.h; then
8643               POSTGRESQL_INCDIR=/usr/include/pgsql
8644               POSTGRESQL_LIBDIR=/usr/lib/pgsql
8645               POSTGRESQL_BINDIR=/usr/bin
8646           elif test -f /usr/include/postgresql/libpq-fe.h; then
8647               POSTGRESQL_INCDIR=/usr/include/postgresql
8648               POSTGRESQL_LIBDIR=/usr/lib/postgresql
8649               POSTGRESQL_BINDIR=/usr/bin
8650           else
8651               echo "$as_me:$LINENO: result: no" >&5
8652 echo "${ECHO_T}no" >&6
8653               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8654 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8655    { (exit 1); exit 1; }; }
8656           fi
8657       elif test -f $withval/include/libpq-fe.h; then
8658           POSTGRESQL_INCDIR=$withval/include
8659           POSTGRESQL_LIBDIR=$withval/lib
8660           POSTGRESQL_BINDIR=$withval/bin
8661       elif test -f $withval/include/postgresql/libpq-fe.h; then
8662           POSTGRESQL_INCDIR=$withval/include/postgresql
8663           POSTGRESQL_LIBDIR=$withval/lib
8664           POSTGRESQL_BINDIR=$withval/bin
8665       else
8666           echo "$as_me:$LINENO: result: no" >&5
8667 echo "${ECHO_T}no" >&6
8668           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8669 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8670    { (exit 1); exit 1; }; }
8671       fi
8672       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8673       echo "$as_me:$LINENO: checking for crypt" >&5
8674 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8675 if test "${ac_cv_func_crypt+set}" = set; then
8676   echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678   cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h.  */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h.  */
8684 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8686 #define crypt innocuous_crypt
8687
8688 /* System header to define __stub macros and hopefully few prototypes,
8689     which can conflict with char crypt (); below.
8690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8691     <limits.h> exists even on freestanding compilers.  */
8692
8693 #ifdef __STDC__
8694 # include <limits.h>
8695 #else
8696 # include <assert.h>
8697 #endif
8698
8699 #undef crypt
8700
8701 /* Override any gcc2 internal prototype to avoid an error.  */
8702 #ifdef __cplusplus
8703 extern "C"
8704 {
8705 #endif
8706 /* We use char because int might match the return type of a gcc2
8707    builtin and then its argument prototype would still apply.  */
8708 char crypt ();
8709 /* The GNU C library defines this for functions which it implements
8710     to always fail with ENOSYS.  Some functions are actually named
8711     something starting with __ and the normal name is an alias.  */
8712 #if defined (__stub_crypt) || defined (__stub___crypt)
8713 choke me
8714 #else
8715 char (*f) () = crypt;
8716 #endif
8717 #ifdef __cplusplus
8718 }
8719 #endif
8720
8721 int
8722 main ()
8723 {
8724 return f != crypt;
8725   ;
8726   return 0;
8727 }
8728 _ACEOF
8729 rm -f conftest.$ac_objext conftest$ac_exeext
8730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8731   (eval $ac_link) 2>conftest.er1
8732   ac_status=$?
8733   grep -v '^ *+' conftest.er1 >conftest.err
8734   rm -f conftest.er1
8735   cat conftest.err >&5
8736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737   (exit $ac_status); } &&
8738          { ac_try='test -z "$ac_c_werror_flag"
8739                          || test ! -s conftest.err'
8740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741   (eval $ac_try) 2>&5
8742   ac_status=$?
8743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744   (exit $ac_status); }; } &&
8745          { ac_try='test -s conftest$ac_exeext'
8746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747   (eval $ac_try) 2>&5
8748   ac_status=$?
8749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750   (exit $ac_status); }; }; then
8751   ac_cv_func_crypt=yes
8752 else
8753   echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 ac_cv_func_crypt=no
8757 fi
8758 rm -f conftest.err conftest.$ac_objext \
8759       conftest$ac_exeext conftest.$ac_ext
8760 fi
8761 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8762 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8763 if test $ac_cv_func_crypt = yes; then
8764   :
8765 else
8766   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8767 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8768 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8769   echo $ECHO_N "(cached) $ECHO_C" >&6
8770 else
8771   ac_check_lib_save_LIBS=$LIBS
8772 LIBS="-lcrypt  $LIBS"
8773 cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h.  */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h.  */
8779
8780 /* Override any gcc2 internal prototype to avoid an error.  */
8781 #ifdef __cplusplus
8782 extern "C"
8783 #endif
8784 /* We use char because int might match the return type of a gcc2
8785    builtin and then its argument prototype would still apply.  */
8786 char crypt ();
8787 int
8788 main ()
8789 {
8790 crypt ();
8791   ;
8792   return 0;
8793 }
8794 _ACEOF
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797   (eval $ac_link) 2>conftest.er1
8798   ac_status=$?
8799   grep -v '^ *+' conftest.er1 >conftest.err
8800   rm -f conftest.er1
8801   cat conftest.err >&5
8802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803   (exit $ac_status); } &&
8804          { ac_try='test -z "$ac_c_werror_flag"
8805                          || test ! -s conftest.err'
8806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807   (eval $ac_try) 2>&5
8808   ac_status=$?
8809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810   (exit $ac_status); }; } &&
8811          { ac_try='test -s conftest$ac_exeext'
8812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813   (eval $ac_try) 2>&5
8814   ac_status=$?
8815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816   (exit $ac_status); }; }; then
8817   ac_cv_lib_crypt_crypt=yes
8818 else
8819   echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8821
8822 ac_cv_lib_crypt_crypt=no
8823 fi
8824 rm -f conftest.err conftest.$ac_objext \
8825       conftest$ac_exeext conftest.$ac_ext
8826 LIBS=$ac_check_lib_save_LIBS
8827 fi
8828 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8829 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8830 if test $ac_cv_lib_crypt_crypt = yes; then
8831   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8832 fi
8833
8834 fi
8835
8836       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8837       SQL_LFLAGS=$POSTGRESQL_LFLAGS
8838       SQL_BINDIR=$POSTGRESQL_BINDIR
8839       cat >>confdefs.h <<\_ACEOF
8840 #define HAVE_POSTGRESQL 1
8841 _ACEOF
8842
8843       echo "$as_me:$LINENO: result: yes" >&5
8844 echo "${ECHO_T}yes" >&6
8845       db_found=yes
8846       support_postgresql=yes
8847       db_name=PostgreSQL
8848       DB_NAME=postgresql
8849   else
8850       echo "$as_me:$LINENO: result: no" >&5
8851 echo "${ECHO_T}no" >&6
8852   fi
8853
8854 else
8855
8856   echo "$as_me:$LINENO: result: no" >&5
8857 echo "${ECHO_T}no" >&6
8858
8859 fi;
8860
8861
8862
8863
8864
8865
8866
8867 db_found=no
8868 echo "$as_me:$LINENO: checking for MySQL support" >&5
8869 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8870
8871 # Check whether --with-mysql or --without-mysql was given.
8872 if test "${with_mysql+set}" = set; then
8873   withval="$with_mysql"
8874
8875   if test "$withval" != "no"; then
8876         if test "$withval" = "yes"; then
8877                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8878                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8879                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8880                         MYSQL_BINDIR=/usr/local/mysql/bin
8881                 elif test -f /usr/include/mysql/mysql.h; then
8882                         MYSQL_INCDIR=/usr/include/mysql
8883                         MYSQL_LIBDIR=/usr/lib/mysql
8884                         MYSQL_BINDIR=/usr/bin
8885                 elif test -f /usr/include/mysql.h; then
8886                         MYSQL_INCDIR=/usr/include
8887                         MYSQL_LIBDIR=/usr/lib
8888                         MYSQL_BINDIR=/usr/bin
8889                 elif test -f /usr/local/include/mysql/mysql.h; then
8890                         MYSQL_INCDIR=/usr/local/include/mysql
8891                         MYSQL_LIBDIR=/usr/local/lib/mysql
8892                         MYSQL_BINDIR=/usr/local/bin
8893                 elif test -f /usr/local/include/mysql.h; then
8894                         MYSQL_INCDIR=/usr/local/include
8895                         MYSQL_LIBDIR=/usr/local/lib
8896                         MYSQL_BINDIR=/usr/local/bin
8897                 else
8898                    echo "$as_me:$LINENO: result: no" >&5
8899 echo "${ECHO_T}no" >&6
8900                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8901 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8902    { (exit 1); exit 1; }; }
8903                 fi
8904         else
8905                 if test -f $withval/include/mysql/mysql.h; then
8906                         MYSQL_INCDIR=$withval/include/mysql
8907                         MYSQL_LIBDIR=$withval/lib/mysql
8908                         MYSQL_BINDIR=$withval/bin
8909                 elif test -f $withval/include/mysql.h; then
8910                         MYSQL_INCDIR=$withval/include
8911                         MYSQL_LIBDIR=$withval/lib
8912                         MYSQL_BINDIR=$withval/bin
8913                 else
8914                    echo "$as_me:$LINENO: result: no" >&5
8915 echo "${ECHO_T}no" >&6
8916                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8917 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8918    { (exit 1); exit 1; }; }
8919                 fi
8920         fi
8921     SQL_INCLUDE=-I$MYSQL_INCDIR
8922     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8923        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8924        cat >>confdefs.h <<\_ACEOF
8925 #define HAVE_THREAD_SAFE_MYSQL 1
8926 _ACEOF
8927
8928     else
8929        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8930     fi
8931     SQL_BINDIR=$MYSQL_BINDIR
8932
8933     cat >>confdefs.h <<\_ACEOF
8934 #define HAVE_MYSQL 1
8935 _ACEOF
8936
8937     echo "$as_me:$LINENO: result: yes" >&5
8938 echo "${ECHO_T}yes" >&6
8939     db_found=yes
8940     support_mysql=yes
8941     db_name=MySQL
8942     DB_NAME=mysql
8943
8944   else
8945         echo "$as_me:$LINENO: result: no" >&5
8946 echo "${ECHO_T}no" >&6
8947   fi
8948
8949
8950 fi;
8951
8952
8953 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8954 if test "${with_embedded_mysql+set}" = set; then
8955   withval="$with_embedded_mysql"
8956
8957   if test "$withval" != "no"; then
8958         if test "$withval" = "yes"; then
8959                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8960                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
8961                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8962                         MYSQL_BINDIR=/usr/local/mysql/bin
8963                 elif test -f /usr/include/mysql/mysql.h; then
8964                         MYSQL_INCDIR=/usr/include/mysql
8965                         MYSQL_LIBDIR=/usr/lib/mysql
8966                         MYSQL_BINDIR=/usr/bin
8967                 elif test -f /usr/include/mysql.h; then
8968                         MYSQL_INCDIR=/usr/include
8969                         MYSQL_LIBDIR=/usr/lib
8970                         MYSQL_BINDIR=/usr/bin
8971                 elif test -f /usr/local/include/mysql/mysql.h; then
8972                         MYSQL_INCDIR=/usr/local/include/mysql
8973                         MYSQL_LIBDIR=/usr/local/lib/mysql
8974                         MYSQL_BINDIR=/usr/local/bin
8975                 elif test -f /usr/local/include/mysql.h; then
8976                         MYSQL_INCDIR=/usr/local/include
8977                         MYSQL_LIBDIR=/usr/local/lib
8978                         MYSQL_BINDIR=/usr/local/bin
8979                 else
8980                    echo "$as_me:$LINENO: result: no" >&5
8981 echo "${ECHO_T}no" >&6
8982                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8983 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8984    { (exit 1); exit 1; }; }
8985                 fi
8986         else
8987                 if test -f $withval/include/mysql/mysql.h; then
8988                         MYSQL_INCDIR=$withval/include/mysql
8989                         MYSQL_LIBDIR=$withval/lib/mysql
8990                         MYSQL_BINDIR=$withval/bin
8991                 elif test -f $withval/include/mysql.h; then
8992                         MYSQL_INCDIR=$withval/include
8993                         MYSQL_LIBDIR=$withval/lib
8994                         MYSQL_BINDIR=$withval/bin
8995                 else
8996                    echo "$as_me:$LINENO: result: no" >&5
8997 echo "${ECHO_T}no" >&6
8998                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8999 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
9000    { (exit 1); exit 1; }; }
9001                 fi
9002         fi
9003     SQL_INCLUDE=-I$MYSQL_INCDIR
9004     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
9005     SQL_BINDIR=$MYSQL_BINDIR
9006
9007     cat >>confdefs.h <<\_ACEOF
9008 #define HAVE_MYSQL 1
9009 _ACEOF
9010
9011     cat >>confdefs.h <<\_ACEOF
9012 #define HAVE_EMBEDDED_MYSQL 1
9013 _ACEOF
9014
9015     echo "$as_me:$LINENO: result: yes" >&5
9016 echo "${ECHO_T}yes" >&6
9017     db_found=yes
9018     support_mysql=yes
9019     db_name=MySQL
9020     DB_NAME=mysql
9021
9022   else
9023         echo "$as_me:$LINENO: result: no" >&5
9024 echo "${ECHO_T}no" >&6
9025   fi
9026
9027
9028 fi;
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038 db_found=no
9039 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9040 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9041
9042 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9043 if test "${with_sqlite3+set}" = set; then
9044   withval="$with_sqlite3"
9045
9046   if test "$withval" != "no"; then
9047      if test "$withval" = "yes"; then
9048         if test -f /usr/local/include/sqlite3.h; then
9049            SQLITE_INCDIR=/usr/local/include
9050            SQLITE_LIBDIR=/usr/local/lib
9051            SQLITE_BINDIR=/usr/local/bin
9052         elif test -f /usr/include/sqlite3.h; then
9053            SQLITE_INCDIR=/usr/include
9054            SQLITE_LIBDIR=/usr/lib
9055            SQLITE_BINDIR=/usr/bin
9056         elif test -f $prefix/include/sqlite3.h; then
9057            SQLITE_INCDIR=$prefix/include
9058            SQLITE_LIBDIR=$prefix/lib
9059            SQLITE_BINDIR=$prefix/bin
9060         else
9061            echo "$as_me:$LINENO: result: no" >&5
9062 echo "${ECHO_T}no" >&6
9063            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9064 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9065    { (exit 1); exit 1; }; }
9066         fi
9067      else
9068         if test -f $withval/sqlite3.h; then
9069            SQLITE_INCDIR=$withval
9070            SQLITE_LIBDIR=$withval
9071            SQLITE_BINDIR=$withval
9072         elif test -f $withval/include/sqlite3.h; then
9073            SQLITE_INCDIR=$withval/include
9074            SQLITE_LIBDIR=$withval/lib
9075            SQLITE_BINDIR=$withval/bin
9076         else
9077            echo "$as_me:$LINENO: result: no" >&5
9078 echo "${ECHO_T}no" >&6
9079            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9080 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9081    { (exit 1); exit 1; }; }
9082         fi
9083      fi
9084      SQL_INCLUDE=-I$SQLITE_INCDIR
9085      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9086      SQL_BINDIR=$SQLITE_BINDIR
9087
9088      cat >>confdefs.h <<\_ACEOF
9089 #define HAVE_SQLITE3 1
9090 _ACEOF
9091
9092      echo "$as_me:$LINENO: result: yes" >&5
9093 echo "${ECHO_T}yes" >&6
9094      db_found=yes
9095      support_sqlite3=yes
9096      db_name=SQLite3
9097      DB_NAME=sqlite3
9098
9099   else
9100      echo "$as_me:$LINENO: result: no" >&5
9101 echo "${ECHO_T}no" >&6
9102   fi
9103
9104 else
9105
9106   echo "$as_me:$LINENO: result: no" >&5
9107 echo "${ECHO_T}no" >&6
9108
9109 fi;
9110
9111
9112
9113
9114
9115
9116
9117 db_found=no
9118 echo "$as_me:$LINENO: checking for SQLite support" >&5
9119 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9120
9121 # Check whether --with-sqlite or --without-sqlite was given.
9122 if test "${with_sqlite+set}" = set; then
9123   withval="$with_sqlite"
9124
9125   if test "$withval" != "no"; then
9126      if test "$withval" = "yes"; then
9127         if test -f /usr/local/include/sqlite.h; then
9128            SQLITE_INCDIR=/usr/local/include
9129            SQLITE_LIBDIR=/usr/local/lib
9130            SQLITE_BINDIR=/usr/local/bin
9131         elif test -f /usr/include/sqlite.h; then
9132            SQLITE_INCDIR=/usr/include
9133            SQLITE_LIBDIR=/usr/lib
9134            SQLITE_BINDIR=/usr/bin
9135         elif test -f $prefix/include/sqlite.h; then
9136            SQLITE_INCDIR=$prefix/include
9137            SQLITE_LIBDIR=$prefix/lib
9138            SQLITE_BINDIR=$prefix/bin
9139         else
9140            echo "$as_me:$LINENO: result: no" >&5
9141 echo "${ECHO_T}no" >&6
9142            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9143 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9144    { (exit 1); exit 1; }; }
9145         fi
9146      else
9147         if test -f $withval/sqlite.h; then
9148            SQLITE_INCDIR=$withval
9149            SQLITE_LIBDIR=$withval
9150            SQLITE_BINDIR=$withval
9151         elif test -f $withval/include/sqlite.h; then
9152            SQLITE_INCDIR=$withval/include
9153            SQLITE_LIBDIR=$withval/lib
9154            SQLITE_BINDIR=$withval/bin
9155         else
9156            echo "$as_me:$LINENO: result: no" >&5
9157 echo "${ECHO_T}no" >&6
9158            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9159 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9160    { (exit 1); exit 1; }; }
9161         fi
9162      fi
9163      SQL_INCLUDE=-I$SQLITE_INCDIR
9164      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9165      SQL_BINDIR=$SQLITE_BINDIR
9166
9167      cat >>confdefs.h <<\_ACEOF
9168 #define HAVE_SQLITE 1
9169 _ACEOF
9170
9171      echo "$as_me:$LINENO: result: yes" >&5
9172 echo "${ECHO_T}yes" >&6
9173      db_found=yes
9174      support_sqlite=yes
9175      db_name=SQLite
9176      DB_NAME=sqlite
9177
9178   else
9179      echo "$as_me:$LINENO: result: no" >&5
9180 echo "${ECHO_T}no" >&6
9181   fi
9182
9183 else
9184
9185   echo "$as_me:$LINENO: result: no" >&5
9186 echo "${ECHO_T}no" >&6
9187
9188 fi;
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198 cat >>confdefs.h <<\_ACEOF
9199 #define PROTOTYPES 1
9200 _ACEOF
9201
9202
9203 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9204     if test -z "$CCOPTS"; then
9205         CCOPTS='-g -O2 -Wall'
9206     fi
9207     CFLAGS="$CCOPTS"
9208 fi
9209
9210
9211
9212
9213 largefile_support="no"
9214
9215    # Check whether --enable-largefile or --disable-largefile was given.
9216 if test "${enable_largefile+set}" = set; then
9217   enableval="$enable_largefile"
9218
9219 fi;
9220    if test "$enable_largefile" != no; then
9221      if test -n "$ac_tool_prefix"; then
9222   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9223 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9224 echo "$as_me:$LINENO: checking for $ac_word" >&5
9225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9226 if test "${ac_cv_prog_GETCONF+set}" = set; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   if test -n "$GETCONF"; then
9230   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9231 else
9232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233 for as_dir in $PATH
9234 do
9235   IFS=$as_save_IFS
9236   test -z "$as_dir" && as_dir=.
9237   for ac_exec_ext in '' $ac_executable_extensions; do
9238   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9239     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9241     break 2
9242   fi
9243 done
9244 done
9245
9246 fi
9247 fi
9248 GETCONF=$ac_cv_prog_GETCONF
9249 if test -n "$GETCONF"; then
9250   echo "$as_me:$LINENO: result: $GETCONF" >&5
9251 echo "${ECHO_T}$GETCONF" >&6
9252 else
9253   echo "$as_me:$LINENO: result: no" >&5
9254 echo "${ECHO_T}no" >&6
9255 fi
9256
9257 fi
9258 if test -z "$ac_cv_prog_GETCONF"; then
9259   ac_ct_GETCONF=$GETCONF
9260   # Extract the first word of "getconf", so it can be a program name with args.
9261 set dummy getconf; ac_word=$2
9262 echo "$as_me:$LINENO: checking for $ac_word" >&5
9263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9264 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9265   echo $ECHO_N "(cached) $ECHO_C" >&6
9266 else
9267   if test -n "$ac_ct_GETCONF"; then
9268   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9269 else
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 for as_dir in $PATH
9272 do
9273   IFS=$as_save_IFS
9274   test -z "$as_dir" && as_dir=.
9275   for ac_exec_ext in '' $ac_executable_extensions; do
9276   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277     ac_cv_prog_ac_ct_GETCONF="getconf"
9278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9279     break 2
9280   fi
9281 done
9282 done
9283
9284 fi
9285 fi
9286 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9287 if test -n "$ac_ct_GETCONF"; then
9288   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9289 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9290 else
9291   echo "$as_me:$LINENO: result: no" >&5
9292 echo "${ECHO_T}no" >&6
9293 fi
9294
9295   GETCONF=$ac_ct_GETCONF
9296 else
9297   GETCONF="$ac_cv_prog_GETCONF"
9298 fi
9299
9300      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9301 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9302 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9303   echo $ECHO_N "(cached) $ECHO_C" >&6
9304 else
9305   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9306         ac_cv_sys_largefile_CFLAGS=no
9307         case "$host_os" in
9308            # IRIX 6.2 and later require cc -n32.
9309            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9310              if test "$GCC" != yes; then
9311                ac_cv_sys_largefile_CFLAGS=-n32
9312              fi
9313              ac_save_CC="$CC"
9314              CC="$CC $ac_cv_sys_largefile_CFLAGS"
9315              cat >conftest.$ac_ext <<_ACEOF
9316 /* confdefs.h.  */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h.  */
9321
9322 int
9323 main ()
9324 {
9325
9326   ;
9327   return 0;
9328 }
9329 _ACEOF
9330 rm -f conftest.$ac_objext conftest$ac_exeext
9331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9332   (eval $ac_link) 2>conftest.er1
9333   ac_status=$?
9334   grep -v '^ *+' conftest.er1 >conftest.err
9335   rm -f conftest.er1
9336   cat conftest.err >&5
9337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338   (exit $ac_status); } &&
9339          { ac_try='test -z "$ac_c_werror_flag"
9340                          || test ! -s conftest.err'
9341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342   (eval $ac_try) 2>&5
9343   ac_status=$?
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); }; } &&
9346          { ac_try='test -s conftest$ac_exeext'
9347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348   (eval $ac_try) 2>&5
9349   ac_status=$?
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); }; }; then
9352   :
9353 else
9354   echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9356
9357 ac_cv_sys_largefile_CFLAGS=no
9358 fi
9359 rm -f conftest.err conftest.$ac_objext \
9360       conftest$ac_exeext conftest.$ac_ext
9361              CC="$ac_save_CC"
9362            esac
9363       }
9364 fi
9365 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9366 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9367      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9368 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9369 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9370   echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9373         ac_cv_sys_largefile_LDFLAGS=no
9374
9375       }
9376 fi
9377 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9378 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9379      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9380 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9381 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9382   echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9385         ac_cv_sys_largefile_LIBS=no
9386
9387       }
9388 fi
9389 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9390 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9391
9392      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9393        case "$ac_flag" in
9394        no) ;;
9395        -D_FILE_OFFSET_BITS=*) ;;
9396        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9397        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9398        -D?* | -I?*)
9399          case "$ac_flag" in
9400    no) ;;
9401    ?*)
9402      case "$CPPFLAGS" in
9403      '') CPPFLAGS="$ac_flag" ;;
9404      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9405      esac ;;
9406    esac ;;
9407        *)
9408          case "$ac_flag" in
9409    no) ;;
9410    ?*)
9411      case "$CFLAGS" in
9412      '') CFLAGS="$ac_flag" ;;
9413      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9414      esac ;;
9415    esac ;;
9416        esac
9417      done
9418      case "$ac_cv_sys_largefile_LDFLAGS" in
9419    no) ;;
9420    ?*)
9421      case "$LDFLAGS" in
9422      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9423      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9424      esac ;;
9425    esac
9426      case "$ac_cv_sys_largefile_LIBS" in
9427    no) ;;
9428    ?*)
9429      case "$LIBS" in
9430      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9431      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9432      esac ;;
9433    esac
9434      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9435 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9436 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9437   echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439   ac_cv_sys_file_offset_bits=no
9440       ac_cv_sys_file_offset_bits=64
9441       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9442         case "$ac_flag" in
9443         -D_FILE_OFFSET_BITS)
9444           ac_cv_sys_file_offset_bits=1 ;;
9445         -D_FILE_OFFSET_BITS=*)
9446           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9447         esac
9448       done
9449
9450 fi
9451 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9452 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9453    if test "$ac_cv_sys_file_offset_bits" != no; then
9454
9455 cat >>confdefs.h <<_ACEOF
9456 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9457 _ACEOF
9458
9459    fi
9460      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9461 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9462 if test "${ac_cv_sys_largefile_source+set}" = set; then
9463   echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465   ac_cv_sys_largefile_source=no
9466       ac_cv_sys_largefile_source=1
9467       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9468         case "$ac_flag" in
9469         -D_LARGEFILE_SOURCE)
9470           ac_cv_sys_largefile_source=1 ;;
9471         -D_LARGEFILE_SOURCE=*)
9472           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9473         esac
9474       done
9475
9476 fi
9477 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9478 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9479    if test "$ac_cv_sys_largefile_source" != no; then
9480
9481 cat >>confdefs.h <<_ACEOF
9482 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9483 _ACEOF
9484
9485    fi
9486      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9487 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9488 if test "${ac_cv_sys_large_files+set}" = set; then
9489   echo $ECHO_N "(cached) $ECHO_C" >&6
9490 else
9491   ac_cv_sys_large_files=no
9492       ac_cv_sys_large_files=1
9493       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9494         case "$ac_flag" in
9495         -D_LARGE_FILES)
9496           ac_cv_sys_large_files=1 ;;
9497         -D_LARGE_FILES=*)
9498           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9499         esac
9500       done
9501
9502 fi
9503 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9504 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9505    if test "$ac_cv_sys_large_files" != no; then
9506
9507 cat >>confdefs.h <<_ACEOF
9508 #define _LARGE_FILES $ac_cv_sys_large_files
9509 _ACEOF
9510
9511    fi
9512    fi
9513
9514
9515
9516 echo "$as_me:$LINENO: checking for X" >&5
9517 echo $ECHO_N "checking for X... $ECHO_C" >&6
9518
9519
9520 # Check whether --with-x or --without-x was given.
9521 if test "${with_x+set}" = set; then
9522   withval="$with_x"
9523
9524 fi;
9525 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9526 if test "x$with_x" = xno; then
9527   # The user explicitly disabled X.
9528   have_x=disabled
9529 else
9530   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9531     # Both variables are already set.
9532     have_x=yes
9533   else
9534     if test "${ac_cv_have_x+set}" = set; then
9535   echo $ECHO_N "(cached) $ECHO_C" >&6
9536 else
9537   # One or both of the vars are not set, and there is no cached value.
9538 ac_x_includes=no ac_x_libraries=no
9539 rm -fr conftest.dir
9540 if mkdir conftest.dir; then
9541   cd conftest.dir
9542   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9543   cat >Imakefile <<'_ACEOF'
9544 acfindx:
9545         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9546 _ACEOF
9547   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9548     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9549     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9550     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9551     for ac_extension in a so sl; do
9552       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9553          test -f $ac_im_libdir/libX11.$ac_extension; then
9554         ac_im_usrlibdir=$ac_im_libdir; break
9555       fi
9556     done
9557     # Screen out bogus values from the imake configuration.  They are
9558     # bogus both because they are the default anyway, and because
9559     # using them would break gcc on systems where it needs fixed includes.
9560     case $ac_im_incroot in
9561         /usr/include) ;;
9562         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9563     esac
9564     case $ac_im_usrlibdir in
9565         /usr/lib | /lib) ;;
9566         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9567     esac
9568   fi
9569   cd ..
9570   rm -fr conftest.dir
9571 fi
9572
9573 # Standard set of common directories for X headers.
9574 # Check X11 before X11Rn because it is often a symlink to the current release.
9575 ac_x_header_dirs='
9576 /usr/X11/include
9577 /usr/X11R6/include
9578 /usr/X11R5/include
9579 /usr/X11R4/include
9580
9581 /usr/include/X11
9582 /usr/include/X11R6
9583 /usr/include/X11R5
9584 /usr/include/X11R4
9585
9586 /usr/local/X11/include
9587 /usr/local/X11R6/include
9588 /usr/local/X11R5/include
9589 /usr/local/X11R4/include
9590
9591 /usr/local/include/X11
9592 /usr/local/include/X11R6
9593 /usr/local/include/X11R5
9594 /usr/local/include/X11R4
9595
9596 /usr/X386/include
9597 /usr/x386/include
9598 /usr/XFree86/include/X11
9599
9600 /usr/include
9601 /usr/local/include
9602 /usr/unsupported/include
9603 /usr/athena/include
9604 /usr/local/x11r5/include
9605 /usr/lpp/Xamples/include
9606
9607 /usr/openwin/include
9608 /usr/openwin/share/include'
9609
9610 if test "$ac_x_includes" = no; then
9611   # Guess where to find include files, by looking for Intrinsic.h.
9612   # First, try using that file with no special directory specified.
9613   cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h.  */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h.  */
9619 #include <X11/Intrinsic.h>
9620 _ACEOF
9621 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9622   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9623   ac_status=$?
9624   grep -v '^ *+' conftest.er1 >conftest.err
9625   rm -f conftest.er1
9626   cat conftest.err >&5
9627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628   (exit $ac_status); } >/dev/null; then
9629   if test -s conftest.err; then
9630     ac_cpp_err=$ac_c_preproc_warn_flag
9631     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9632   else
9633     ac_cpp_err=
9634   fi
9635 else
9636   ac_cpp_err=yes
9637 fi
9638 if test -z "$ac_cpp_err"; then
9639   # We can compile using X headers with no special include directory.
9640 ac_x_includes=
9641 else
9642   echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9644
9645   for ac_dir in $ac_x_header_dirs; do
9646   if test -r "$ac_dir/X11/Intrinsic.h"; then
9647     ac_x_includes=$ac_dir
9648     break
9649   fi
9650 done
9651 fi
9652 rm -f conftest.err conftest.$ac_ext
9653 fi # $ac_x_includes = no
9654
9655 if test "$ac_x_libraries" = no; then
9656   # Check for the libraries.
9657   # See if we find them without any special options.
9658   # Don't add to $LIBS permanently.
9659   ac_save_LIBS=$LIBS
9660   LIBS="-lXt $LIBS"
9661   cat >conftest.$ac_ext <<_ACEOF
9662 /* confdefs.h.  */
9663 _ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h.  */
9667 #include <X11/Intrinsic.h>
9668 int
9669 main ()
9670 {
9671 XtMalloc (0)
9672   ;
9673   return 0;
9674 }
9675 _ACEOF
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678   (eval $ac_link) 2>conftest.er1
9679   ac_status=$?
9680   grep -v '^ *+' conftest.er1 >conftest.err
9681   rm -f conftest.er1
9682   cat conftest.err >&5
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); } &&
9685          { ac_try='test -z "$ac_c_werror_flag"
9686                          || test ! -s conftest.err'
9687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9688   (eval $ac_try) 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); }; } &&
9692          { ac_try='test -s conftest$ac_exeext'
9693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694   (eval $ac_try) 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); }; }; then
9698   LIBS=$ac_save_LIBS
9699 # We can link X programs with no special library path.
9700 ac_x_libraries=
9701 else
9702   echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9704
9705 LIBS=$ac_save_LIBS
9706 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9707 do
9708   # Don't even attempt the hair of trying to link an X program!
9709   for ac_extension in a so sl; do
9710     if test -r $ac_dir/libXt.$ac_extension; then
9711       ac_x_libraries=$ac_dir
9712       break 2
9713     fi
9714   done
9715 done
9716 fi
9717 rm -f conftest.err conftest.$ac_objext \
9718       conftest$ac_exeext conftest.$ac_ext
9719 fi # $ac_x_libraries = no
9720
9721 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9722   # Didn't find X anywhere.  Cache the known absence of X.
9723   ac_cv_have_x="have_x=no"
9724 else
9725   # Record where we found X for the cache.
9726   ac_cv_have_x="have_x=yes \
9727                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9728 fi
9729 fi
9730
9731   fi
9732   eval "$ac_cv_have_x"
9733 fi # $with_x != no
9734
9735 if test "$have_x" != yes; then
9736   echo "$as_me:$LINENO: result: $have_x" >&5
9737 echo "${ECHO_T}$have_x" >&6
9738   no_x=yes
9739 else
9740   # If each of the values was on the command line, it overrides each guess.
9741   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9742   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9743   # Update the cache value to reflect the command line values.
9744   ac_cv_have_x="have_x=yes \
9745                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9746   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9747 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9748 fi
9749
9750 if test "$no_x" = yes; then
9751   # Not all programs may use this symbol, but it does not hurt to define it.
9752
9753 cat >>confdefs.h <<\_ACEOF
9754 #define X_DISPLAY_MISSING 1
9755 _ACEOF
9756
9757   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9758 else
9759   if test -n "$x_includes"; then
9760     X_CFLAGS="$X_CFLAGS -I$x_includes"
9761   fi
9762
9763   # It would also be nice to do this for all -L options, not just this one.
9764   if test -n "$x_libraries"; then
9765     X_LIBS="$X_LIBS -L$x_libraries"
9766     # For Solaris; some versions of Sun CC require a space after -R and
9767     # others require no space.  Words are not sufficient . . . .
9768     case `(uname -sr) 2>/dev/null` in
9769     "SunOS 5"*)
9770       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9771 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9772       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9773       cat >conftest.$ac_ext <<_ACEOF
9774 /* confdefs.h.  */
9775 _ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h.  */
9779
9780 int
9781 main ()
9782 {
9783
9784   ;
9785   return 0;
9786 }
9787 _ACEOF
9788 rm -f conftest.$ac_objext conftest$ac_exeext
9789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9790   (eval $ac_link) 2>conftest.er1
9791   ac_status=$?
9792   grep -v '^ *+' conftest.er1 >conftest.err
9793   rm -f conftest.er1
9794   cat conftest.err >&5
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); } &&
9797          { ac_try='test -z "$ac_c_werror_flag"
9798                          || test ! -s conftest.err'
9799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800   (eval $ac_try) 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); }; } &&
9804          { ac_try='test -s conftest$ac_exeext'
9805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806   (eval $ac_try) 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); }; }; then
9810   ac_R_nospace=yes
9811 else
9812   echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9814
9815 ac_R_nospace=no
9816 fi
9817 rm -f conftest.err conftest.$ac_objext \
9818       conftest$ac_exeext conftest.$ac_ext
9819       if test $ac_R_nospace = yes; then
9820         echo "$as_me:$LINENO: result: no" >&5
9821 echo "${ECHO_T}no" >&6
9822         X_LIBS="$X_LIBS -R$x_libraries"
9823       else
9824         LIBS="$ac_xsave_LIBS -R $x_libraries"
9825         cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h.  */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h.  */
9831
9832 int
9833 main ()
9834 {
9835
9836   ;
9837   return 0;
9838 }
9839 _ACEOF
9840 rm -f conftest.$ac_objext conftest$ac_exeext
9841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9842   (eval $ac_link) 2>conftest.er1
9843   ac_status=$?
9844   grep -v '^ *+' conftest.er1 >conftest.err
9845   rm -f conftest.er1
9846   cat conftest.err >&5
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); } &&
9849          { ac_try='test -z "$ac_c_werror_flag"
9850                          || test ! -s conftest.err'
9851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852   (eval $ac_try) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; } &&
9856          { ac_try='test -s conftest$ac_exeext'
9857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858   (eval $ac_try) 2>&5
9859   ac_status=$?
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); }; }; then
9862   ac_R_space=yes
9863 else
9864   echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9866
9867 ac_R_space=no
9868 fi
9869 rm -f conftest.err conftest.$ac_objext \
9870       conftest$ac_exeext conftest.$ac_ext
9871         if test $ac_R_space = yes; then
9872           echo "$as_me:$LINENO: result: yes" >&5
9873 echo "${ECHO_T}yes" >&6
9874           X_LIBS="$X_LIBS -R $x_libraries"
9875         else
9876           echo "$as_me:$LINENO: result: neither works" >&5
9877 echo "${ECHO_T}neither works" >&6
9878         fi
9879       fi
9880       LIBS=$ac_xsave_LIBS
9881     esac
9882   fi
9883
9884   # Check for system-dependent libraries X programs must link with.
9885   # Do this before checking for the system-independent R6 libraries
9886   # (-lICE), since we may need -lsocket or whatever for X linking.
9887
9888   if test "$ISC" = yes; then
9889     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9890   else
9891     # Martyn Johnson says this is needed for Ultrix, if the X
9892     # libraries were built with DECnet support.  And Karl Berry says
9893     # the Alpha needs dnet_stub (dnet does not exist).
9894     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9895     cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h.  */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h.  */
9901
9902 /* Override any gcc2 internal prototype to avoid an error.  */
9903 #ifdef __cplusplus
9904 extern "C"
9905 #endif
9906 /* We use char because int might match the return type of a gcc2
9907    builtin and then its argument prototype would still apply.  */
9908 char XOpenDisplay ();
9909 int
9910 main ()
9911 {
9912 XOpenDisplay ();
9913   ;
9914   return 0;
9915 }
9916 _ACEOF
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9919   (eval $ac_link) 2>conftest.er1
9920   ac_status=$?
9921   grep -v '^ *+' conftest.er1 >conftest.err
9922   rm -f conftest.er1
9923   cat conftest.err >&5
9924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925   (exit $ac_status); } &&
9926          { ac_try='test -z "$ac_c_werror_flag"
9927                          || test ! -s conftest.err'
9928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929   (eval $ac_try) 2>&5
9930   ac_status=$?
9931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932   (exit $ac_status); }; } &&
9933          { ac_try='test -s conftest$ac_exeext'
9934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9935   (eval $ac_try) 2>&5
9936   ac_status=$?
9937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); }; }; then
9939   :
9940 else
9941   echo "$as_me: failed program was:" >&5
9942 sed 's/^/| /' conftest.$ac_ext >&5
9943
9944 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9945 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9946 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9947   echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949   ac_check_lib_save_LIBS=$LIBS
9950 LIBS="-ldnet  $LIBS"
9951 cat >conftest.$ac_ext <<_ACEOF
9952 /* confdefs.h.  */
9953 _ACEOF
9954 cat confdefs.h >>conftest.$ac_ext
9955 cat >>conftest.$ac_ext <<_ACEOF
9956 /* end confdefs.h.  */
9957
9958 /* Override any gcc2 internal prototype to avoid an error.  */
9959 #ifdef __cplusplus
9960 extern "C"
9961 #endif
9962 /* We use char because int might match the return type of a gcc2
9963    builtin and then its argument prototype would still apply.  */
9964 char dnet_ntoa ();
9965 int
9966 main ()
9967 {
9968 dnet_ntoa ();
9969   ;
9970   return 0;
9971 }
9972 _ACEOF
9973 rm -f conftest.$ac_objext conftest$ac_exeext
9974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975   (eval $ac_link) 2>conftest.er1
9976   ac_status=$?
9977   grep -v '^ *+' conftest.er1 >conftest.err
9978   rm -f conftest.er1
9979   cat conftest.err >&5
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); } &&
9982          { ac_try='test -z "$ac_c_werror_flag"
9983                          || test ! -s conftest.err'
9984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9985   (eval $ac_try) 2>&5
9986   ac_status=$?
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); }; } &&
9989          { ac_try='test -s conftest$ac_exeext'
9990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991   (eval $ac_try) 2>&5
9992   ac_status=$?
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); }; }; then
9995   ac_cv_lib_dnet_dnet_ntoa=yes
9996 else
9997   echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000 ac_cv_lib_dnet_dnet_ntoa=no
10001 fi
10002 rm -f conftest.err conftest.$ac_objext \
10003       conftest$ac_exeext conftest.$ac_ext
10004 LIBS=$ac_check_lib_save_LIBS
10005 fi
10006 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10007 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10008 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10009   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10010 fi
10011
10012     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10013       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10014 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10015 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-ldnet_stub  $LIBS"
10020 cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h.  */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h.  */
10026
10027 /* Override any gcc2 internal prototype to avoid an error.  */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 /* We use char because int might match the return type of a gcc2
10032    builtin and then its argument prototype would still apply.  */
10033 char dnet_ntoa ();
10034 int
10035 main ()
10036 {
10037 dnet_ntoa ();
10038   ;
10039   return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10044   (eval $ac_link) 2>conftest.er1
10045   ac_status=$?
10046   grep -v '^ *+' conftest.er1 >conftest.err
10047   rm -f conftest.er1
10048   cat conftest.err >&5
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); } &&
10051          { ac_try='test -z "$ac_c_werror_flag"
10052                          || test ! -s conftest.err'
10053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054   (eval $ac_try) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); }; } &&
10058          { ac_try='test -s conftest$ac_exeext'
10059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060   (eval $ac_try) 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   ac_cv_lib_dnet_stub_dnet_ntoa=yes
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069 ac_cv_lib_dnet_stub_dnet_ntoa=no
10070 fi
10071 rm -f conftest.err conftest.$ac_objext \
10072       conftest$ac_exeext conftest.$ac_ext
10073 LIBS=$ac_check_lib_save_LIBS
10074 fi
10075 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10076 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10077 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10078   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10079 fi
10080
10081     fi
10082 fi
10083 rm -f conftest.err conftest.$ac_objext \
10084       conftest$ac_exeext conftest.$ac_ext
10085     LIBS="$ac_xsave_LIBS"
10086
10087     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10088     # to get the SysV transport functions.
10089     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10090     # needs -lnsl.
10091     # The nsl library prevents programs from opening the X display
10092     # on Irix 5.2, according to T.E. Dickey.
10093     # The functions gethostbyname, getservbyname, and inet_addr are
10094     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10095     echo "$as_me:$LINENO: checking for gethostbyname" >&5
10096 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10097 if test "${ac_cv_func_gethostbyname+set}" = set; then
10098   echo $ECHO_N "(cached) $ECHO_C" >&6
10099 else
10100   cat >conftest.$ac_ext <<_ACEOF
10101 /* confdefs.h.  */
10102 _ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h.  */
10106 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10108 #define gethostbyname innocuous_gethostbyname
10109
10110 /* System header to define __stub macros and hopefully few prototypes,
10111     which can conflict with char gethostbyname (); below.
10112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10113     <limits.h> exists even on freestanding compilers.  */
10114
10115 #ifdef __STDC__
10116 # include <limits.h>
10117 #else
10118 # include <assert.h>
10119 #endif
10120
10121 #undef gethostbyname
10122
10123 /* Override any gcc2 internal prototype to avoid an error.  */
10124 #ifdef __cplusplus
10125 extern "C"
10126 {
10127 #endif
10128 /* We use char because int might match the return type of a gcc2
10129    builtin and then its argument prototype would still apply.  */
10130 char gethostbyname ();
10131 /* The GNU C library defines this for functions which it implements
10132     to always fail with ENOSYS.  Some functions are actually named
10133     something starting with __ and the normal name is an alias.  */
10134 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10135 choke me
10136 #else
10137 char (*f) () = gethostbyname;
10138 #endif
10139 #ifdef __cplusplus
10140 }
10141 #endif
10142
10143 int
10144 main ()
10145 {
10146 return f != gethostbyname;
10147   ;
10148   return 0;
10149 }
10150 _ACEOF
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10153   (eval $ac_link) 2>conftest.er1
10154   ac_status=$?
10155   grep -v '^ *+' conftest.er1 >conftest.err
10156   rm -f conftest.er1
10157   cat conftest.err >&5
10158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159   (exit $ac_status); } &&
10160          { ac_try='test -z "$ac_c_werror_flag"
10161                          || test ! -s conftest.err'
10162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163   (eval $ac_try) 2>&5
10164   ac_status=$?
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); }; } &&
10167          { ac_try='test -s conftest$ac_exeext'
10168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10169   (eval $ac_try) 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); }; }; then
10173   ac_cv_func_gethostbyname=yes
10174 else
10175   echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10177
10178 ac_cv_func_gethostbyname=no
10179 fi
10180 rm -f conftest.err conftest.$ac_objext \
10181       conftest$ac_exeext conftest.$ac_ext
10182 fi
10183 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10184 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10185
10186     if test $ac_cv_func_gethostbyname = no; then
10187       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10188 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10189 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10190   echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192   ac_check_lib_save_LIBS=$LIBS
10193 LIBS="-lnsl  $LIBS"
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h.  */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h.  */
10200
10201 /* Override any gcc2 internal prototype to avoid an error.  */
10202 #ifdef __cplusplus
10203 extern "C"
10204 #endif
10205 /* We use char because int might match the return type of a gcc2
10206    builtin and then its argument prototype would still apply.  */
10207 char gethostbyname ();
10208 int
10209 main ()
10210 {
10211 gethostbyname ();
10212   ;
10213   return 0;
10214 }
10215 _ACEOF
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218   (eval $ac_link) 2>conftest.er1
10219   ac_status=$?
10220   grep -v '^ *+' conftest.er1 >conftest.err
10221   rm -f conftest.er1
10222   cat conftest.err >&5
10223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224   (exit $ac_status); } &&
10225          { ac_try='test -z "$ac_c_werror_flag"
10226                          || test ! -s conftest.err'
10227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228   (eval $ac_try) 2>&5
10229   ac_status=$?
10230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231   (exit $ac_status); }; } &&
10232          { ac_try='test -s conftest$ac_exeext'
10233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234   (eval $ac_try) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); }; }; then
10238   ac_cv_lib_nsl_gethostbyname=yes
10239 else
10240   echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.$ac_ext >&5
10242
10243 ac_cv_lib_nsl_gethostbyname=no
10244 fi
10245 rm -f conftest.err conftest.$ac_objext \
10246       conftest$ac_exeext conftest.$ac_ext
10247 LIBS=$ac_check_lib_save_LIBS
10248 fi
10249 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10250 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10251 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10252   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10253 fi
10254
10255       if test $ac_cv_lib_nsl_gethostbyname = no; then
10256         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10257 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10258 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10259   echo $ECHO_N "(cached) $ECHO_C" >&6
10260 else
10261   ac_check_lib_save_LIBS=$LIBS
10262 LIBS="-lbsd  $LIBS"
10263 cat >conftest.$ac_ext <<_ACEOF
10264 /* confdefs.h.  */
10265 _ACEOF
10266 cat confdefs.h >>conftest.$ac_ext
10267 cat >>conftest.$ac_ext <<_ACEOF
10268 /* end confdefs.h.  */
10269
10270 /* Override any gcc2 internal prototype to avoid an error.  */
10271 #ifdef __cplusplus
10272 extern "C"
10273 #endif
10274 /* We use char because int might match the return type of a gcc2
10275    builtin and then its argument prototype would still apply.  */
10276 char gethostbyname ();
10277 int
10278 main ()
10279 {
10280 gethostbyname ();
10281   ;
10282   return 0;
10283 }
10284 _ACEOF
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10287   (eval $ac_link) 2>conftest.er1
10288   ac_status=$?
10289   grep -v '^ *+' conftest.er1 >conftest.err
10290   rm -f conftest.er1
10291   cat conftest.err >&5
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); } &&
10294          { ac_try='test -z "$ac_c_werror_flag"
10295                          || test ! -s conftest.err'
10296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297   (eval $ac_try) 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); }; } &&
10301          { ac_try='test -s conftest$ac_exeext'
10302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303   (eval $ac_try) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); }; }; then
10307   ac_cv_lib_bsd_gethostbyname=yes
10308 else
10309   echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312 ac_cv_lib_bsd_gethostbyname=no
10313 fi
10314 rm -f conftest.err conftest.$ac_objext \
10315       conftest$ac_exeext conftest.$ac_ext
10316 LIBS=$ac_check_lib_save_LIBS
10317 fi
10318 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10319 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10320 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10321   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10322 fi
10323
10324       fi
10325     fi
10326
10327     # lieder@skyler.mavd.honeywell.com says without -lsocket,
10328     # socket/setsockopt and other routines are undefined under SCO ODT
10329     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
10330     # on later versions), says Simon Leinen: it contains gethostby*
10331     # variants that don't use the name server (or something).  -lsocket
10332     # must be given before -lnsl if both are needed.  We assume that
10333     # if connect needs -lnsl, so does gethostbyname.
10334     echo "$as_me:$LINENO: checking for connect" >&5
10335 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10336 if test "${ac_cv_func_connect+set}" = set; then
10337   echo $ECHO_N "(cached) $ECHO_C" >&6
10338 else
10339   cat >conftest.$ac_ext <<_ACEOF
10340 /* confdefs.h.  */
10341 _ACEOF
10342 cat confdefs.h >>conftest.$ac_ext
10343 cat >>conftest.$ac_ext <<_ACEOF
10344 /* end confdefs.h.  */
10345 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10347 #define connect innocuous_connect
10348
10349 /* System header to define __stub macros and hopefully few prototypes,
10350     which can conflict with char connect (); below.
10351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10352     <limits.h> exists even on freestanding compilers.  */
10353
10354 #ifdef __STDC__
10355 # include <limits.h>
10356 #else
10357 # include <assert.h>
10358 #endif
10359
10360 #undef connect
10361
10362 /* Override any gcc2 internal prototype to avoid an error.  */
10363 #ifdef __cplusplus
10364 extern "C"
10365 {
10366 #endif
10367 /* We use char because int might match the return type of a gcc2
10368    builtin and then its argument prototype would still apply.  */
10369 char connect ();
10370 /* The GNU C library defines this for functions which it implements
10371     to always fail with ENOSYS.  Some functions are actually named
10372     something starting with __ and the normal name is an alias.  */
10373 #if defined (__stub_connect) || defined (__stub___connect)
10374 choke me
10375 #else
10376 char (*f) () = connect;
10377 #endif
10378 #ifdef __cplusplus
10379 }
10380 #endif
10381
10382 int
10383 main ()
10384 {
10385 return f != connect;
10386   ;
10387   return 0;
10388 }
10389 _ACEOF
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10392   (eval $ac_link) 2>conftest.er1
10393   ac_status=$?
10394   grep -v '^ *+' conftest.er1 >conftest.err
10395   rm -f conftest.er1
10396   cat conftest.err >&5
10397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398   (exit $ac_status); } &&
10399          { ac_try='test -z "$ac_c_werror_flag"
10400                          || test ! -s conftest.err'
10401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402   (eval $ac_try) 2>&5
10403   ac_status=$?
10404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405   (exit $ac_status); }; } &&
10406          { ac_try='test -s conftest$ac_exeext'
10407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408   (eval $ac_try) 2>&5
10409   ac_status=$?
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); }; }; then
10412   ac_cv_func_connect=yes
10413 else
10414   echo "$as_me: failed program was:" >&5
10415 sed 's/^/| /' conftest.$ac_ext >&5
10416
10417 ac_cv_func_connect=no
10418 fi
10419 rm -f conftest.err conftest.$ac_objext \
10420       conftest$ac_exeext conftest.$ac_ext
10421 fi
10422 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10423 echo "${ECHO_T}$ac_cv_func_connect" >&6
10424
10425     if test $ac_cv_func_connect = no; then
10426       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10427 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10428 if test "${ac_cv_lib_socket_connect+set}" = set; then
10429   echo $ECHO_N "(cached) $ECHO_C" >&6
10430 else
10431   ac_check_lib_save_LIBS=$LIBS
10432 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h.  */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h.  */
10439
10440 /* Override any gcc2 internal prototype to avoid an error.  */
10441 #ifdef __cplusplus
10442 extern "C"
10443 #endif
10444 /* We use char because int might match the return type of a gcc2
10445    builtin and then its argument prototype would still apply.  */
10446 char connect ();
10447 int
10448 main ()
10449 {
10450 connect ();
10451   ;
10452   return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457   (eval $ac_link) 2>conftest.er1
10458   ac_status=$?
10459   grep -v '^ *+' conftest.er1 >conftest.err
10460   rm -f conftest.er1
10461   cat conftest.err >&5
10462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463   (exit $ac_status); } &&
10464          { ac_try='test -z "$ac_c_werror_flag"
10465                          || test ! -s conftest.err'
10466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467   (eval $ac_try) 2>&5
10468   ac_status=$?
10469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470   (exit $ac_status); }; } &&
10471          { ac_try='test -s conftest$ac_exeext'
10472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473   (eval $ac_try) 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); }; }; then
10477   ac_cv_lib_socket_connect=yes
10478 else
10479   echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10481
10482 ac_cv_lib_socket_connect=no
10483 fi
10484 rm -f conftest.err conftest.$ac_objext \
10485       conftest$ac_exeext conftest.$ac_ext
10486 LIBS=$ac_check_lib_save_LIBS
10487 fi
10488 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10489 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10490 if test $ac_cv_lib_socket_connect = yes; then
10491   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10492 fi
10493
10494     fi
10495
10496     # Guillermo Gomez says -lposix is necessary on A/UX.
10497     echo "$as_me:$LINENO: checking for remove" >&5
10498 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10499 if test "${ac_cv_func_remove+set}" = set; then
10500   echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502   cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h.  */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h.  */
10508 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10510 #define remove innocuous_remove
10511
10512 /* System header to define __stub macros and hopefully few prototypes,
10513     which can conflict with char remove (); below.
10514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10515     <limits.h> exists even on freestanding compilers.  */
10516
10517 #ifdef __STDC__
10518 # include <limits.h>
10519 #else
10520 # include <assert.h>
10521 #endif
10522
10523 #undef remove
10524
10525 /* Override any gcc2 internal prototype to avoid an error.  */
10526 #ifdef __cplusplus
10527 extern "C"
10528 {
10529 #endif
10530 /* We use char because int might match the return type of a gcc2
10531    builtin and then its argument prototype would still apply.  */
10532 char remove ();
10533 /* The GNU C library defines this for functions which it implements
10534     to always fail with ENOSYS.  Some functions are actually named
10535     something starting with __ and the normal name is an alias.  */
10536 #if defined (__stub_remove) || defined (__stub___remove)
10537 choke me
10538 #else
10539 char (*f) () = remove;
10540 #endif
10541 #ifdef __cplusplus
10542 }
10543 #endif
10544
10545 int
10546 main ()
10547 {
10548 return f != remove;
10549   ;
10550   return 0;
10551 }
10552 _ACEOF
10553 rm -f conftest.$ac_objext conftest$ac_exeext
10554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555   (eval $ac_link) 2>conftest.er1
10556   ac_status=$?
10557   grep -v '^ *+' conftest.er1 >conftest.err
10558   rm -f conftest.er1
10559   cat conftest.err >&5
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); } &&
10562          { ac_try='test -z "$ac_c_werror_flag"
10563                          || test ! -s conftest.err'
10564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565   (eval $ac_try) 2>&5
10566   ac_status=$?
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); }; } &&
10569          { ac_try='test -s conftest$ac_exeext'
10570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571   (eval $ac_try) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); }; }; then
10575   ac_cv_func_remove=yes
10576 else
10577   echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10579
10580 ac_cv_func_remove=no
10581 fi
10582 rm -f conftest.err conftest.$ac_objext \
10583       conftest$ac_exeext conftest.$ac_ext
10584 fi
10585 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10586 echo "${ECHO_T}$ac_cv_func_remove" >&6
10587
10588     if test $ac_cv_func_remove = no; then
10589       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10590 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10591 if test "${ac_cv_lib_posix_remove+set}" = set; then
10592   echo $ECHO_N "(cached) $ECHO_C" >&6
10593 else
10594   ac_check_lib_save_LIBS=$LIBS
10595 LIBS="-lposix  $LIBS"
10596 cat >conftest.$ac_ext <<_ACEOF
10597 /* confdefs.h.  */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h.  */
10602
10603 /* Override any gcc2 internal prototype to avoid an error.  */
10604 #ifdef __cplusplus
10605 extern "C"
10606 #endif
10607 /* We use char because int might match the return type of a gcc2
10608    builtin and then its argument prototype would still apply.  */
10609 char remove ();
10610 int
10611 main ()
10612 {
10613 remove ();
10614   ;
10615   return 0;
10616 }
10617 _ACEOF
10618 rm -f conftest.$ac_objext conftest$ac_exeext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10620   (eval $ac_link) 2>conftest.er1
10621   ac_status=$?
10622   grep -v '^ *+' conftest.er1 >conftest.err
10623   rm -f conftest.er1
10624   cat conftest.err >&5
10625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626   (exit $ac_status); } &&
10627          { ac_try='test -z "$ac_c_werror_flag"
10628                          || test ! -s conftest.err'
10629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630   (eval $ac_try) 2>&5
10631   ac_status=$?
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); }; } &&
10634          { ac_try='test -s conftest$ac_exeext'
10635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636   (eval $ac_try) 2>&5
10637   ac_status=$?
10638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639   (exit $ac_status); }; }; then
10640   ac_cv_lib_posix_remove=yes
10641 else
10642   echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10644
10645 ac_cv_lib_posix_remove=no
10646 fi
10647 rm -f conftest.err conftest.$ac_objext \
10648       conftest$ac_exeext conftest.$ac_ext
10649 LIBS=$ac_check_lib_save_LIBS
10650 fi
10651 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10652 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10653 if test $ac_cv_lib_posix_remove = yes; then
10654   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10655 fi
10656
10657     fi
10658
10659     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10660     echo "$as_me:$LINENO: checking for shmat" >&5
10661 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10662 if test "${ac_cv_func_shmat+set}" = set; then
10663   echo $ECHO_N "(cached) $ECHO_C" >&6
10664 else
10665   cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h.  */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h.  */
10671 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10672    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10673 #define shmat innocuous_shmat
10674
10675 /* System header to define __stub macros and hopefully few prototypes,
10676     which can conflict with char shmat (); below.
10677     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10678     <limits.h> exists even on freestanding compilers.  */
10679
10680 #ifdef __STDC__
10681 # include <limits.h>
10682 #else
10683 # include <assert.h>
10684 #endif
10685
10686 #undef shmat
10687
10688 /* Override any gcc2 internal prototype to avoid an error.  */
10689 #ifdef __cplusplus
10690 extern "C"
10691 {
10692 #endif
10693 /* We use char because int might match the return type of a gcc2
10694    builtin and then its argument prototype would still apply.  */
10695 char shmat ();
10696 /* The GNU C library defines this for functions which it implements
10697     to always fail with ENOSYS.  Some functions are actually named
10698     something starting with __ and the normal name is an alias.  */
10699 #if defined (__stub_shmat) || defined (__stub___shmat)
10700 choke me
10701 #else
10702 char (*f) () = shmat;
10703 #endif
10704 #ifdef __cplusplus
10705 }
10706 #endif
10707
10708 int
10709 main ()
10710 {
10711 return f != shmat;
10712   ;
10713   return 0;
10714 }
10715 _ACEOF
10716 rm -f conftest.$ac_objext conftest$ac_exeext
10717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10718   (eval $ac_link) 2>conftest.er1
10719   ac_status=$?
10720   grep -v '^ *+' conftest.er1 >conftest.err
10721   rm -f conftest.er1
10722   cat conftest.err >&5
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); } &&
10725          { ac_try='test -z "$ac_c_werror_flag"
10726                          || test ! -s conftest.err'
10727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10728   (eval $ac_try) 2>&5
10729   ac_status=$?
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); }; } &&
10732          { ac_try='test -s conftest$ac_exeext'
10733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734   (eval $ac_try) 2>&5
10735   ac_status=$?
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); }; }; then
10738   ac_cv_func_shmat=yes
10739 else
10740   echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10742
10743 ac_cv_func_shmat=no
10744 fi
10745 rm -f conftest.err conftest.$ac_objext \
10746       conftest$ac_exeext conftest.$ac_ext
10747 fi
10748 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10749 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10750
10751     if test $ac_cv_func_shmat = no; then
10752       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10753 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10754 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10755   echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757   ac_check_lib_save_LIBS=$LIBS
10758 LIBS="-lipc  $LIBS"
10759 cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h.  */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h.  */
10765
10766 /* Override any gcc2 internal prototype to avoid an error.  */
10767 #ifdef __cplusplus
10768 extern "C"
10769 #endif
10770 /* We use char because int might match the return type of a gcc2
10771    builtin and then its argument prototype would still apply.  */
10772 char shmat ();
10773 int
10774 main ()
10775 {
10776 shmat ();
10777   ;
10778   return 0;
10779 }
10780 _ACEOF
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783   (eval $ac_link) 2>conftest.er1
10784   ac_status=$?
10785   grep -v '^ *+' conftest.er1 >conftest.err
10786   rm -f conftest.er1
10787   cat conftest.err >&5
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } &&
10790          { ac_try='test -z "$ac_c_werror_flag"
10791                          || test ! -s conftest.err'
10792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10793   (eval $ac_try) 2>&5
10794   ac_status=$?
10795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796   (exit $ac_status); }; } &&
10797          { ac_try='test -s conftest$ac_exeext'
10798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10799   (eval $ac_try) 2>&5
10800   ac_status=$?
10801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802   (exit $ac_status); }; }; then
10803   ac_cv_lib_ipc_shmat=yes
10804 else
10805   echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10807
10808 ac_cv_lib_ipc_shmat=no
10809 fi
10810 rm -f conftest.err conftest.$ac_objext \
10811       conftest$ac_exeext conftest.$ac_ext
10812 LIBS=$ac_check_lib_save_LIBS
10813 fi
10814 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10815 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10816 if test $ac_cv_lib_ipc_shmat = yes; then
10817   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10818 fi
10819
10820     fi
10821   fi
10822
10823   # Check for libraries that X11R6 Xt/Xaw programs need.
10824   ac_save_LDFLAGS=$LDFLAGS
10825   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10826   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10827   # check for ICE first), but we must link in the order -lSM -lICE or
10828   # we get undefined symbols.  So assume we have SM if we have ICE.
10829   # These have to be linked with before -lX11, unlike the other
10830   # libraries we check for below, so use a different variable.
10831   # John Interrante, Karl Berry
10832   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10833 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10834 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10835   echo $ECHO_N "(cached) $ECHO_C" >&6
10836 else
10837   ac_check_lib_save_LIBS=$LIBS
10838 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10839 cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h.  */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h.  */
10845
10846 /* Override any gcc2 internal prototype to avoid an error.  */
10847 #ifdef __cplusplus
10848 extern "C"
10849 #endif
10850 /* We use char because int might match the return type of a gcc2
10851    builtin and then its argument prototype would still apply.  */
10852 char IceConnectionNumber ();
10853 int
10854 main ()
10855 {
10856 IceConnectionNumber ();
10857   ;
10858   return 0;
10859 }
10860 _ACEOF
10861 rm -f conftest.$ac_objext conftest$ac_exeext
10862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10863   (eval $ac_link) 2>conftest.er1
10864   ac_status=$?
10865   grep -v '^ *+' conftest.er1 >conftest.err
10866   rm -f conftest.er1
10867   cat conftest.err >&5
10868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); } &&
10870          { ac_try='test -z "$ac_c_werror_flag"
10871                          || test ! -s conftest.err'
10872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873   (eval $ac_try) 2>&5
10874   ac_status=$?
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); }; } &&
10877          { ac_try='test -s conftest$ac_exeext'
10878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879   (eval $ac_try) 2>&5
10880   ac_status=$?
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); }; }; then
10883   ac_cv_lib_ICE_IceConnectionNumber=yes
10884 else
10885   echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 ac_cv_lib_ICE_IceConnectionNumber=no
10889 fi
10890 rm -f conftest.err conftest.$ac_objext \
10891       conftest$ac_exeext conftest.$ac_ext
10892 LIBS=$ac_check_lib_save_LIBS
10893 fi
10894 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10895 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10896 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10897   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10898 fi
10899
10900   LDFLAGS=$ac_save_LDFLAGS
10901
10902 fi
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932 for ac_header in \
10933         assert.h \
10934         fcntl.h \
10935         grp.h \
10936         pwd.h \
10937         libc.h \
10938         limits.h \
10939         stdarg.h \
10940         stdlib.h \
10941         stdint.h \
10942         string.h \
10943         termios.h \
10944         termcap.h \
10945         term.h \
10946         unistd.h \
10947         sys/bitypes.h \
10948         sys/byteorder.h \
10949         sys/ioctl.h \
10950         sys/select.h \
10951         sys/sockio.h \
10952         sys/time.h \
10953         sys/socket.h \
10954         arpa/nameser.h \
10955         resolv.h \
10956         mtio.h \
10957         sys/mtio.h \
10958         sys/tape.h \
10959         regex.h \
10960
10961 do
10962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10964   echo "$as_me:$LINENO: checking for $ac_header" >&5
10965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10967   echo $ECHO_N "(cached) $ECHO_C" >&6
10968 fi
10969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10971 else
10972   # Is the header compilable?
10973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10975 cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h.  */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h.  */
10981 $ac_includes_default
10982 #include <$ac_header>
10983 _ACEOF
10984 rm -f conftest.$ac_objext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986   (eval $ac_compile) 2>conftest.er1
10987   ac_status=$?
10988   grep -v '^ *+' conftest.er1 >conftest.err
10989   rm -f conftest.er1
10990   cat conftest.err >&5
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } &&
10993          { ac_try='test -z "$ac_c_werror_flag"
10994                          || test ! -s conftest.err'
10995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10996   (eval $ac_try) 2>&5
10997   ac_status=$?
10998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999   (exit $ac_status); }; } &&
11000          { ac_try='test -s conftest.$ac_objext'
11001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11002   (eval $ac_try) 2>&5
11003   ac_status=$?
11004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005   (exit $ac_status); }; }; then
11006   ac_header_compiler=yes
11007 else
11008   echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011 ac_header_compiler=no
11012 fi
11013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11015 echo "${ECHO_T}$ac_header_compiler" >&6
11016
11017 # Is the header present?
11018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11020 cat >conftest.$ac_ext <<_ACEOF
11021 /* confdefs.h.  */
11022 _ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h.  */
11026 #include <$ac_header>
11027 _ACEOF
11028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11030   ac_status=$?
11031   grep -v '^ *+' conftest.er1 >conftest.err
11032   rm -f conftest.er1
11033   cat conftest.err >&5
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); } >/dev/null; then
11036   if test -s conftest.err; then
11037     ac_cpp_err=$ac_c_preproc_warn_flag
11038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11039   else
11040     ac_cpp_err=
11041   fi
11042 else
11043   ac_cpp_err=yes
11044 fi
11045 if test -z "$ac_cpp_err"; then
11046   ac_header_preproc=yes
11047 else
11048   echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11050
11051   ac_header_preproc=no
11052 fi
11053 rm -f conftest.err conftest.$ac_ext
11054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11055 echo "${ECHO_T}$ac_header_preproc" >&6
11056
11057 # So?  What about this header?
11058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11059   yes:no: )
11060     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11064     ac_header_preproc=yes
11065     ;;
11066   no:yes:* )
11067     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11069     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11070 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11071     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11073     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11074 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11077     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11079     (
11080       cat <<\_ASBOX
11081 ## ------------------------------------------ ##
11082 ## Report this to the AC_PACKAGE_NAME lists.  ##
11083 ## ------------------------------------------ ##
11084 _ASBOX
11085     ) |
11086       sed "s/^/$as_me: WARNING:     /" >&2
11087     ;;
11088 esac
11089 echo "$as_me:$LINENO: checking for $ac_header" >&5
11090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11092   echo $ECHO_N "(cached) $ECHO_C" >&6
11093 else
11094   eval "$as_ac_Header=\$ac_header_preproc"
11095 fi
11096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11098
11099 fi
11100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11101   cat >>confdefs.h <<_ACEOF
11102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11103 _ACEOF
11104
11105 fi
11106
11107 done
11108
11109 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11110 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11111 if test "${ac_cv_header_stdc+set}" = set; then
11112   echo $ECHO_N "(cached) $ECHO_C" >&6
11113 else
11114   cat >conftest.$ac_ext <<_ACEOF
11115 /* confdefs.h.  */
11116 _ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h.  */
11120 #include <stdlib.h>
11121 #include <stdarg.h>
11122 #include <string.h>
11123 #include <float.h>
11124
11125 int
11126 main ()
11127 {
11128
11129   ;
11130   return 0;
11131 }
11132 _ACEOF
11133 rm -f conftest.$ac_objext
11134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11135   (eval $ac_compile) 2>conftest.er1
11136   ac_status=$?
11137   grep -v '^ *+' conftest.er1 >conftest.err
11138   rm -f conftest.er1
11139   cat conftest.err >&5
11140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141   (exit $ac_status); } &&
11142          { ac_try='test -z "$ac_c_werror_flag"
11143                          || test ! -s conftest.err'
11144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145   (eval $ac_try) 2>&5
11146   ac_status=$?
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); }; } &&
11149          { ac_try='test -s conftest.$ac_objext'
11150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11151   (eval $ac_try) 2>&5
11152   ac_status=$?
11153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154   (exit $ac_status); }; }; then
11155   ac_cv_header_stdc=yes
11156 else
11157   echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11159
11160 ac_cv_header_stdc=no
11161 fi
11162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11163
11164 if test $ac_cv_header_stdc = yes; then
11165   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11166   cat >conftest.$ac_ext <<_ACEOF
11167 /* confdefs.h.  */
11168 _ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h.  */
11172 #include <string.h>
11173
11174 _ACEOF
11175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11176   $EGREP "memchr" >/dev/null 2>&1; then
11177   :
11178 else
11179   ac_cv_header_stdc=no
11180 fi
11181 rm -f conftest*
11182
11183 fi
11184
11185 if test $ac_cv_header_stdc = yes; then
11186   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11187   cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h.  */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h.  */
11193 #include <stdlib.h>
11194
11195 _ACEOF
11196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11197   $EGREP "free" >/dev/null 2>&1; then
11198   :
11199 else
11200   ac_cv_header_stdc=no
11201 fi
11202 rm -f conftest*
11203
11204 fi
11205
11206 if test $ac_cv_header_stdc = yes; then
11207   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11208   if test "$cross_compiling" = yes; then
11209   :
11210 else
11211   cat >conftest.$ac_ext <<_ACEOF
11212 /* confdefs.h.  */
11213 _ACEOF
11214 cat confdefs.h >>conftest.$ac_ext
11215 cat >>conftest.$ac_ext <<_ACEOF
11216 /* end confdefs.h.  */
11217 #include <ctype.h>
11218 #if ((' ' & 0x0FF) == 0x020)
11219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11221 #else
11222 # define ISLOWER(c) \
11223                    (('a' <= (c) && (c) <= 'i') \
11224                      || ('j' <= (c) && (c) <= 'r') \
11225                      || ('s' <= (c) && (c) <= 'z'))
11226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11227 #endif
11228
11229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11230 int
11231 main ()
11232 {
11233   int i;
11234   for (i = 0; i < 256; i++)
11235     if (XOR (islower (i), ISLOWER (i))
11236         || toupper (i) != TOUPPER (i))
11237       exit(2);
11238   exit (0);
11239 }
11240 _ACEOF
11241 rm -f conftest$ac_exeext
11242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11243   (eval $ac_link) 2>&5
11244   ac_status=$?
11245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11248   (eval $ac_try) 2>&5
11249   ac_status=$?
11250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251   (exit $ac_status); }; }; then
11252   :
11253 else
11254   echo "$as_me: program exited with status $ac_status" >&5
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11257
11258 ( exit $ac_status )
11259 ac_cv_header_stdc=no
11260 fi
11261 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11262 fi
11263 fi
11264 fi
11265 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11266 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11267 if test $ac_cv_header_stdc = yes; then
11268
11269 cat >>confdefs.h <<\_ACEOF
11270 #define STDC_HEADERS 1
11271 _ACEOF
11272
11273 fi
11274
11275 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11276 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11277 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11278   echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280   cat >conftest.$ac_ext <<_ACEOF
11281 /* confdefs.h.  */
11282 _ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h.  */
11286 #include <sys/types.h>
11287 int
11288 main ()
11289 {
11290 return makedev(0, 0);
11291   ;
11292   return 0;
11293 }
11294 _ACEOF
11295 rm -f conftest.$ac_objext conftest$ac_exeext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11297   (eval $ac_link) 2>conftest.er1
11298   ac_status=$?
11299   grep -v '^ *+' conftest.er1 >conftest.err
11300   rm -f conftest.er1
11301   cat conftest.err >&5
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); } &&
11304          { ac_try='test -z "$ac_c_werror_flag"
11305                          || test ! -s conftest.err'
11306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307   (eval $ac_try) 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); }; } &&
11311          { ac_try='test -s conftest$ac_exeext'
11312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313   (eval $ac_try) 2>&5
11314   ac_status=$?
11315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316   (exit $ac_status); }; }; then
11317   ac_cv_header_sys_types_h_makedev=yes
11318 else
11319   echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11321
11322 ac_cv_header_sys_types_h_makedev=no
11323 fi
11324 rm -f conftest.err conftest.$ac_objext \
11325       conftest$ac_exeext conftest.$ac_ext
11326
11327 fi
11328 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11329 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11330
11331 if test $ac_cv_header_sys_types_h_makedev = no; then
11332 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11333   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11334 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11335 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11336   echo $ECHO_N "(cached) $ECHO_C" >&6
11337 fi
11338 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11339 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11340 else
11341   # Is the header compilable?
11342 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11343 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11344 cat >conftest.$ac_ext <<_ACEOF
11345 /* confdefs.h.  */
11346 _ACEOF
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h.  */
11350 $ac_includes_default
11351 #include <sys/mkdev.h>
11352 _ACEOF
11353 rm -f conftest.$ac_objext
11354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11355   (eval $ac_compile) 2>conftest.er1
11356   ac_status=$?
11357   grep -v '^ *+' conftest.er1 >conftest.err
11358   rm -f conftest.er1
11359   cat conftest.err >&5
11360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361   (exit $ac_status); } &&
11362          { ac_try='test -z "$ac_c_werror_flag"
11363                          || test ! -s conftest.err'
11364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365   (eval $ac_try) 2>&5
11366   ac_status=$?
11367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368   (exit $ac_status); }; } &&
11369          { ac_try='test -s conftest.$ac_objext'
11370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371   (eval $ac_try) 2>&5
11372   ac_status=$?
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); }; }; then
11375   ac_header_compiler=yes
11376 else
11377   echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11379
11380 ac_header_compiler=no
11381 fi
11382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11384 echo "${ECHO_T}$ac_header_compiler" >&6
11385
11386 # Is the header present?
11387 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11388 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11389 cat >conftest.$ac_ext <<_ACEOF
11390 /* confdefs.h.  */
11391 _ACEOF
11392 cat confdefs.h >>conftest.$ac_ext
11393 cat >>conftest.$ac_ext <<_ACEOF
11394 /* end confdefs.h.  */
11395 #include <sys/mkdev.h>
11396 _ACEOF
11397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11398   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11399   ac_status=$?
11400   grep -v '^ *+' conftest.er1 >conftest.err
11401   rm -f conftest.er1
11402   cat conftest.err >&5
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); } >/dev/null; then
11405   if test -s conftest.err; then
11406     ac_cpp_err=$ac_c_preproc_warn_flag
11407     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11408   else
11409     ac_cpp_err=
11410   fi
11411 else
11412   ac_cpp_err=yes
11413 fi
11414 if test -z "$ac_cpp_err"; then
11415   ac_header_preproc=yes
11416 else
11417   echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11419
11420   ac_header_preproc=no
11421 fi
11422 rm -f conftest.err conftest.$ac_ext
11423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11424 echo "${ECHO_T}$ac_header_preproc" >&6
11425
11426 # So?  What about this header?
11427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11428   yes:no: )
11429     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11430 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11431     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11432 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11433     ac_header_preproc=yes
11434     ;;
11435   no:yes:* )
11436     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11437 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11438     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
11439 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
11440     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11441 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11442     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
11443 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11444     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11445 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11446     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11447 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11448     (
11449       cat <<\_ASBOX
11450 ## ------------------------------------------ ##
11451 ## Report this to the AC_PACKAGE_NAME lists.  ##
11452 ## ------------------------------------------ ##
11453 _ASBOX
11454     ) |
11455       sed "s/^/$as_me: WARNING:     /" >&2
11456     ;;
11457 esac
11458 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11459 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11460 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11461   echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463   ac_cv_header_sys_mkdev_h=$ac_header_preproc
11464 fi
11465 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11466 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11467
11468 fi
11469 if test $ac_cv_header_sys_mkdev_h = yes; then
11470
11471 cat >>confdefs.h <<\_ACEOF
11472 #define MAJOR_IN_MKDEV 1
11473 _ACEOF
11474
11475 fi
11476
11477
11478
11479   if test $ac_cv_header_sys_mkdev_h = no; then
11480     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11481   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11482 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11483 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11484   echo $ECHO_N "(cached) $ECHO_C" >&6
11485 fi
11486 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11487 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11488 else
11489   # Is the header compilable?
11490 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11491 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11492 cat >conftest.$ac_ext <<_ACEOF
11493 /* confdefs.h.  */
11494 _ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h.  */
11498 $ac_includes_default
11499 #include <sys/sysmacros.h>
11500 _ACEOF
11501 rm -f conftest.$ac_objext
11502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11503   (eval $ac_compile) 2>conftest.er1
11504   ac_status=$?
11505   grep -v '^ *+' conftest.er1 >conftest.err
11506   rm -f conftest.er1
11507   cat conftest.err >&5
11508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509   (exit $ac_status); } &&
11510          { ac_try='test -z "$ac_c_werror_flag"
11511                          || test ! -s conftest.err'
11512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513   (eval $ac_try) 2>&5
11514   ac_status=$?
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); }; } &&
11517          { ac_try='test -s conftest.$ac_objext'
11518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519   (eval $ac_try) 2>&5
11520   ac_status=$?
11521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522   (exit $ac_status); }; }; then
11523   ac_header_compiler=yes
11524 else
11525   echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11527
11528 ac_header_compiler=no
11529 fi
11530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11532 echo "${ECHO_T}$ac_header_compiler" >&6
11533
11534 # Is the header present?
11535 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11536 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h.  */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h.  */
11543 #include <sys/sysmacros.h>
11544 _ACEOF
11545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11546   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11547   ac_status=$?
11548   grep -v '^ *+' conftest.er1 >conftest.err
11549   rm -f conftest.er1
11550   cat conftest.err >&5
11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552   (exit $ac_status); } >/dev/null; then
11553   if test -s conftest.err; then
11554     ac_cpp_err=$ac_c_preproc_warn_flag
11555     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11556   else
11557     ac_cpp_err=
11558   fi
11559 else
11560   ac_cpp_err=yes
11561 fi
11562 if test -z "$ac_cpp_err"; then
11563   ac_header_preproc=yes
11564 else
11565   echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11567
11568   ac_header_preproc=no
11569 fi
11570 rm -f conftest.err conftest.$ac_ext
11571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11572 echo "${ECHO_T}$ac_header_preproc" >&6
11573
11574 # So?  What about this header?
11575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11576   yes:no: )
11577     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11578 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11579     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11580 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11581     ac_header_preproc=yes
11582     ;;
11583   no:yes:* )
11584     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11585 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11586     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
11587 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
11588     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11589 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11590     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
11591 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11592     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11593 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11594     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11595 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11596     (
11597       cat <<\_ASBOX
11598 ## ------------------------------------------ ##
11599 ## Report this to the AC_PACKAGE_NAME lists.  ##
11600 ## ------------------------------------------ ##
11601 _ASBOX
11602     ) |
11603       sed "s/^/$as_me: WARNING:     /" >&2
11604     ;;
11605 esac
11606 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11607 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11608 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11609   echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11612 fi
11613 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11614 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11615
11616 fi
11617 if test $ac_cv_header_sys_sysmacros_h = yes; then
11618
11619 cat >>confdefs.h <<\_ACEOF
11620 #define MAJOR_IN_SYSMACROS 1
11621 _ACEOF
11622
11623 fi
11624
11625
11626   fi
11627 fi
11628
11629
11630
11631
11632
11633
11634 ac_header_dirent=no
11635 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11636   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11637 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11638 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11640   echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642   cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648 #include <sys/types.h>
11649 #include <$ac_hdr>
11650
11651 int
11652 main ()
11653 {
11654 if ((DIR *) 0)
11655 return 0;
11656   ;
11657   return 0;
11658 }
11659 _ACEOF
11660 rm -f conftest.$ac_objext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11662   (eval $ac_compile) 2>conftest.er1
11663   ac_status=$?
11664   grep -v '^ *+' conftest.er1 >conftest.err
11665   rm -f conftest.er1
11666   cat conftest.err >&5
11667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668   (exit $ac_status); } &&
11669          { ac_try='test -z "$ac_c_werror_flag"
11670                          || test ! -s conftest.err'
11671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672   (eval $ac_try) 2>&5
11673   ac_status=$?
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); }; } &&
11676          { ac_try='test -s conftest.$ac_objext'
11677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678   (eval $ac_try) 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); }; }; then
11682   eval "$as_ac_Header=yes"
11683 else
11684   echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11686
11687 eval "$as_ac_Header=no"
11688 fi
11689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11690 fi
11691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11694   cat >>confdefs.h <<_ACEOF
11695 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11696 _ACEOF
11697
11698 ac_header_dirent=$ac_hdr; break
11699 fi
11700
11701 done
11702 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11703 if test $ac_header_dirent = dirent.h; then
11704   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11705 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11706 if test "${ac_cv_search_opendir+set}" = set; then
11707   echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709   ac_func_search_save_LIBS=$LIBS
11710 ac_cv_search_opendir=no
11711 cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717
11718 /* Override any gcc2 internal prototype to avoid an error.  */
11719 #ifdef __cplusplus
11720 extern "C"
11721 #endif
11722 /* We use char because int might match the return type of a gcc2
11723    builtin and then its argument prototype would still apply.  */
11724 char opendir ();
11725 int
11726 main ()
11727 {
11728 opendir ();
11729   ;
11730   return 0;
11731 }
11732 _ACEOF
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11735   (eval $ac_link) 2>conftest.er1
11736   ac_status=$?
11737   grep -v '^ *+' conftest.er1 >conftest.err
11738   rm -f conftest.er1
11739   cat conftest.err >&5
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); } &&
11742          { ac_try='test -z "$ac_c_werror_flag"
11743                          || test ! -s conftest.err'
11744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745   (eval $ac_try) 2>&5
11746   ac_status=$?
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); }; } &&
11749          { ac_try='test -s conftest$ac_exeext'
11750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751   (eval $ac_try) 2>&5
11752   ac_status=$?
11753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754   (exit $ac_status); }; }; then
11755   ac_cv_search_opendir="none required"
11756 else
11757   echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11759
11760 fi
11761 rm -f conftest.err conftest.$ac_objext \
11762       conftest$ac_exeext conftest.$ac_ext
11763 if test "$ac_cv_search_opendir" = no; then
11764   for ac_lib in dir; do
11765     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11766     cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h.  */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h.  */
11772
11773 /* Override any gcc2 internal prototype to avoid an error.  */
11774 #ifdef __cplusplus
11775 extern "C"
11776 #endif
11777 /* We use char because int might match the return type of a gcc2
11778    builtin and then its argument prototype would still apply.  */
11779 char opendir ();
11780 int
11781 main ()
11782 {
11783 opendir ();
11784   ;
11785   return 0;
11786 }
11787 _ACEOF
11788 rm -f conftest.$ac_objext conftest$ac_exeext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11790   (eval $ac_link) 2>conftest.er1
11791   ac_status=$?
11792   grep -v '^ *+' conftest.er1 >conftest.err
11793   rm -f conftest.er1
11794   cat conftest.err >&5
11795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796   (exit $ac_status); } &&
11797          { ac_try='test -z "$ac_c_werror_flag"
11798                          || test ! -s conftest.err'
11799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11800   (eval $ac_try) 2>&5
11801   ac_status=$?
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); }; } &&
11804          { ac_try='test -s conftest$ac_exeext'
11805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806   (eval $ac_try) 2>&5
11807   ac_status=$?
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); }; }; then
11810   ac_cv_search_opendir="-l$ac_lib"
11811 break
11812 else
11813   echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11815
11816 fi
11817 rm -f conftest.err conftest.$ac_objext \
11818       conftest$ac_exeext conftest.$ac_ext
11819   done
11820 fi
11821 LIBS=$ac_func_search_save_LIBS
11822 fi
11823 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11824 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11825 if test "$ac_cv_search_opendir" != no; then
11826   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11827
11828 fi
11829
11830 else
11831   echo "$as_me:$LINENO: checking for library containing opendir" >&5
11832 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11833 if test "${ac_cv_search_opendir+set}" = set; then
11834   echo $ECHO_N "(cached) $ECHO_C" >&6
11835 else
11836   ac_func_search_save_LIBS=$LIBS
11837 ac_cv_search_opendir=no
11838 cat >conftest.$ac_ext <<_ACEOF
11839 /* confdefs.h.  */
11840 _ACEOF
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h.  */
11844
11845 /* Override any gcc2 internal prototype to avoid an error.  */
11846 #ifdef __cplusplus
11847 extern "C"
11848 #endif
11849 /* We use char because int might match the return type of a gcc2
11850    builtin and then its argument prototype would still apply.  */
11851 char opendir ();
11852 int
11853 main ()
11854 {
11855 opendir ();
11856   ;
11857   return 0;
11858 }
11859 _ACEOF
11860 rm -f conftest.$ac_objext conftest$ac_exeext
11861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11862   (eval $ac_link) 2>conftest.er1
11863   ac_status=$?
11864   grep -v '^ *+' conftest.er1 >conftest.err
11865   rm -f conftest.er1
11866   cat conftest.err >&5
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); } &&
11869          { ac_try='test -z "$ac_c_werror_flag"
11870                          || test ! -s conftest.err'
11871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872   (eval $ac_try) 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; } &&
11876          { ac_try='test -s conftest$ac_exeext'
11877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878   (eval $ac_try) 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; }; then
11882   ac_cv_search_opendir="none required"
11883 else
11884   echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11886
11887 fi
11888 rm -f conftest.err conftest.$ac_objext \
11889       conftest$ac_exeext conftest.$ac_ext
11890 if test "$ac_cv_search_opendir" = no; then
11891   for ac_lib in x; do
11892     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11893     cat >conftest.$ac_ext <<_ACEOF
11894 /* confdefs.h.  */
11895 _ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h.  */
11899
11900 /* Override any gcc2 internal prototype to avoid an error.  */
11901 #ifdef __cplusplus
11902 extern "C"
11903 #endif
11904 /* We use char because int might match the return type of a gcc2
11905    builtin and then its argument prototype would still apply.  */
11906 char opendir ();
11907 int
11908 main ()
11909 {
11910 opendir ();
11911   ;
11912   return 0;
11913 }
11914 _ACEOF
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917   (eval $ac_link) 2>conftest.er1
11918   ac_status=$?
11919   grep -v '^ *+' conftest.er1 >conftest.err
11920   rm -f conftest.er1
11921   cat conftest.err >&5
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } &&
11924          { ac_try='test -z "$ac_c_werror_flag"
11925                          || test ! -s conftest.err'
11926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927   (eval $ac_try) 2>&5
11928   ac_status=$?
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); }; } &&
11931          { ac_try='test -s conftest$ac_exeext'
11932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933   (eval $ac_try) 2>&5
11934   ac_status=$?
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); }; }; then
11937   ac_cv_search_opendir="-l$ac_lib"
11938 break
11939 else
11940   echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11942
11943 fi
11944 rm -f conftest.err conftest.$ac_objext \
11945       conftest$ac_exeext conftest.$ac_ext
11946   done
11947 fi
11948 LIBS=$ac_func_search_save_LIBS
11949 fi
11950 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11951 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11952 if test "$ac_cv_search_opendir" != no; then
11953   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11954
11955 fi
11956
11957 fi
11958
11959 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11960 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11961 if test "${ac_cv_header_stat_broken+set}" = set; then
11962   echo $ECHO_N "(cached) $ECHO_C" >&6
11963 else
11964   cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h.  */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h.  */
11970 #include <sys/types.h>
11971 #include <sys/stat.h>
11972
11973 #if defined(S_ISBLK) && defined(S_IFDIR)
11974 # if S_ISBLK (S_IFDIR)
11975 You lose.
11976 # endif
11977 #endif
11978
11979 #if defined(S_ISBLK) && defined(S_IFCHR)
11980 # if S_ISBLK (S_IFCHR)
11981 You lose.
11982 # endif
11983 #endif
11984
11985 #if defined(S_ISLNK) && defined(S_IFREG)
11986 # if S_ISLNK (S_IFREG)
11987 You lose.
11988 # endif
11989 #endif
11990
11991 #if defined(S_ISSOCK) && defined(S_IFREG)
11992 # if S_ISSOCK (S_IFREG)
11993 You lose.
11994 # endif
11995 #endif
11996
11997 _ACEOF
11998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11999   $EGREP "You lose" >/dev/null 2>&1; then
12000   ac_cv_header_stat_broken=yes
12001 else
12002   ac_cv_header_stat_broken=no
12003 fi
12004 rm -f conftest*
12005
12006 fi
12007 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12008 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12009 if test $ac_cv_header_stat_broken = yes; then
12010
12011 cat >>confdefs.h <<\_ACEOF
12012 #define STAT_MACROS_BROKEN 1
12013 _ACEOF
12014
12015 fi
12016
12017 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12018 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12019 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12020   echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022   cat >conftest.$ac_ext <<_ACEOF
12023 /* confdefs.h.  */
12024 _ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h.  */
12028 #include <sys/types.h>
12029 #include <sys/wait.h>
12030 #ifndef WEXITSTATUS
12031 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12032 #endif
12033 #ifndef WIFEXITED
12034 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12035 #endif
12036
12037 int
12038 main ()
12039 {
12040   int s;
12041   wait (&s);
12042   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12043   ;
12044   return 0;
12045 }
12046 _ACEOF
12047 rm -f conftest.$ac_objext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12049   (eval $ac_compile) 2>conftest.er1
12050   ac_status=$?
12051   grep -v '^ *+' conftest.er1 >conftest.err
12052   rm -f conftest.er1
12053   cat conftest.err >&5
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } &&
12056          { ac_try='test -z "$ac_c_werror_flag"
12057                          || test ! -s conftest.err'
12058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059   (eval $ac_try) 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); }; } &&
12063          { ac_try='test -s conftest.$ac_objext'
12064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065   (eval $ac_try) 2>&5
12066   ac_status=$?
12067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068   (exit $ac_status); }; }; then
12069   ac_cv_header_sys_wait_h=yes
12070 else
12071   echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12073
12074 ac_cv_header_sys_wait_h=no
12075 fi
12076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12077 fi
12078 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12079 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12080 if test $ac_cv_header_sys_wait_h = yes; then
12081
12082 cat >>confdefs.h <<\_ACEOF
12083 #define HAVE_SYS_WAIT_H 1
12084 _ACEOF
12085
12086 fi
12087
12088 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12089 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12090 if test "${ac_cv_header_time+set}" = set; then
12091   echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093   cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h.  */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h.  */
12099 #include <sys/types.h>
12100 #include <sys/time.h>
12101 #include <time.h>
12102
12103 int
12104 main ()
12105 {
12106 if ((struct tm *) 0)
12107 return 0;
12108   ;
12109   return 0;
12110 }
12111 _ACEOF
12112 rm -f conftest.$ac_objext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114   (eval $ac_compile) 2>conftest.er1
12115   ac_status=$?
12116   grep -v '^ *+' conftest.er1 >conftest.err
12117   rm -f conftest.er1
12118   cat conftest.err >&5
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); } &&
12121          { ac_try='test -z "$ac_c_werror_flag"
12122                          || test ! -s conftest.err'
12123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124   (eval $ac_try) 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }; } &&
12128          { ac_try='test -s conftest.$ac_objext'
12129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130   (eval $ac_try) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; }; then
12134   ac_cv_header_time=yes
12135 else
12136   echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12138
12139 ac_cv_header_time=no
12140 fi
12141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12142 fi
12143 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12144 echo "${ECHO_T}$ac_cv_header_time" >&6
12145 if test $ac_cv_header_time = yes; then
12146
12147 cat >>confdefs.h <<\_ACEOF
12148 #define TIME_WITH_SYS_TIME 1
12149 _ACEOF
12150
12151 fi
12152
12153
12154 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12155 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12156 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12157   echo $ECHO_N "(cached) $ECHO_C" >&6
12158 else
12159   cat >conftest.$ac_ext <<_ACEOF
12160 /* confdefs.h.  */
12161 _ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h.  */
12165 $ac_includes_default
12166 int
12167 main ()
12168 {
12169 static struct stat ac_aggr;
12170 if (ac_aggr.st_blksize)
12171 return 0;
12172   ;
12173   return 0;
12174 }
12175 _ACEOF
12176 rm -f conftest.$ac_objext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12178   (eval $ac_compile) 2>conftest.er1
12179   ac_status=$?
12180   grep -v '^ *+' conftest.er1 >conftest.err
12181   rm -f conftest.er1
12182   cat conftest.err >&5
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); } &&
12185          { ac_try='test -z "$ac_c_werror_flag"
12186                          || test ! -s conftest.err'
12187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188   (eval $ac_try) 2>&5
12189   ac_status=$?
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); }; } &&
12192          { ac_try='test -s conftest.$ac_objext'
12193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194   (eval $ac_try) 2>&5
12195   ac_status=$?
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); }; }; then
12198   ac_cv_member_struct_stat_st_blksize=yes
12199 else
12200   echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12202
12203 cat >conftest.$ac_ext <<_ACEOF
12204 /* confdefs.h.  */
12205 _ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h.  */
12209 $ac_includes_default
12210 int
12211 main ()
12212 {
12213 static struct stat ac_aggr;
12214 if (sizeof ac_aggr.st_blksize)
12215 return 0;
12216   ;
12217   return 0;
12218 }
12219 _ACEOF
12220 rm -f conftest.$ac_objext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12222   (eval $ac_compile) 2>conftest.er1
12223   ac_status=$?
12224   grep -v '^ *+' conftest.er1 >conftest.err
12225   rm -f conftest.er1
12226   cat conftest.err >&5
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); } &&
12229          { ac_try='test -z "$ac_c_werror_flag"
12230                          || test ! -s conftest.err'
12231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232   (eval $ac_try) 2>&5
12233   ac_status=$?
12234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235   (exit $ac_status); }; } &&
12236          { ac_try='test -s conftest.$ac_objext'
12237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238   (eval $ac_try) 2>&5
12239   ac_status=$?
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); }; }; then
12242   ac_cv_member_struct_stat_st_blksize=yes
12243 else
12244   echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12246
12247 ac_cv_member_struct_stat_st_blksize=no
12248 fi
12249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12250 fi
12251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12252 fi
12253 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12254 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12255 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12256
12257 cat >>confdefs.h <<_ACEOF
12258 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12259 _ACEOF
12260
12261
12262 cat >>confdefs.h <<\_ACEOF
12263 #define HAVE_ST_BLKSIZE 1
12264 _ACEOF
12265
12266 fi
12267
12268
12269 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12270 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12271 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12272   echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274   cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h.  */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h.  */
12280 $ac_includes_default
12281 int
12282 main ()
12283 {
12284 static struct stat ac_aggr;
12285 if (ac_aggr.st_blocks)
12286 return 0;
12287   ;
12288   return 0;
12289 }
12290 _ACEOF
12291 rm -f conftest.$ac_objext
12292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12293   (eval $ac_compile) 2>conftest.er1
12294   ac_status=$?
12295   grep -v '^ *+' conftest.er1 >conftest.err
12296   rm -f conftest.er1
12297   cat conftest.err >&5
12298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299   (exit $ac_status); } &&
12300          { ac_try='test -z "$ac_c_werror_flag"
12301                          || test ! -s conftest.err'
12302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12303   (eval $ac_try) 2>&5
12304   ac_status=$?
12305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306   (exit $ac_status); }; } &&
12307          { ac_try='test -s conftest.$ac_objext'
12308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12309   (eval $ac_try) 2>&5
12310   ac_status=$?
12311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312   (exit $ac_status); }; }; then
12313   ac_cv_member_struct_stat_st_blocks=yes
12314 else
12315   echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12317
12318 cat >conftest.$ac_ext <<_ACEOF
12319 /* confdefs.h.  */
12320 _ACEOF
12321 cat confdefs.h >>conftest.$ac_ext
12322 cat >>conftest.$ac_ext <<_ACEOF
12323 /* end confdefs.h.  */
12324 $ac_includes_default
12325 int
12326 main ()
12327 {
12328 static struct stat ac_aggr;
12329 if (sizeof ac_aggr.st_blocks)
12330 return 0;
12331   ;
12332   return 0;
12333 }
12334 _ACEOF
12335 rm -f conftest.$ac_objext
12336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12337   (eval $ac_compile) 2>conftest.er1
12338   ac_status=$?
12339   grep -v '^ *+' conftest.er1 >conftest.err
12340   rm -f conftest.er1
12341   cat conftest.err >&5
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); } &&
12344          { ac_try='test -z "$ac_c_werror_flag"
12345                          || test ! -s conftest.err'
12346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347   (eval $ac_try) 2>&5
12348   ac_status=$?
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); }; } &&
12351          { ac_try='test -s conftest.$ac_objext'
12352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353   (eval $ac_try) 2>&5
12354   ac_status=$?
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); }; }; then
12357   ac_cv_member_struct_stat_st_blocks=yes
12358 else
12359   echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12361
12362 ac_cv_member_struct_stat_st_blocks=no
12363 fi
12364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12365 fi
12366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12367 fi
12368 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12369 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12370 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12371
12372 cat >>confdefs.h <<_ACEOF
12373 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12374 _ACEOF
12375
12376
12377 cat >>confdefs.h <<\_ACEOF
12378 #define HAVE_ST_BLOCKS 1
12379 _ACEOF
12380
12381 else
12382   case $LIBOBJS in
12383     "fileblocks.$ac_objext"   | \
12384   *" fileblocks.$ac_objext"   | \
12385     "fileblocks.$ac_objext "* | \
12386   *" fileblocks.$ac_objext "* ) ;;
12387   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12388 esac
12389
12390 fi
12391
12392
12393 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12394 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12395 if test "${ac_cv_struct_tm+set}" = set; then
12396   echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398   cat >conftest.$ac_ext <<_ACEOF
12399 /* confdefs.h.  */
12400 _ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h.  */
12404 #include <sys/types.h>
12405 #include <time.h>
12406
12407 int
12408 main ()
12409 {
12410 struct tm *tp; tp->tm_sec;
12411   ;
12412   return 0;
12413 }
12414 _ACEOF
12415 rm -f conftest.$ac_objext
12416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12417   (eval $ac_compile) 2>conftest.er1
12418   ac_status=$?
12419   grep -v '^ *+' conftest.er1 >conftest.err
12420   rm -f conftest.er1
12421   cat conftest.err >&5
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); } &&
12424          { ac_try='test -z "$ac_c_werror_flag"
12425                          || test ! -s conftest.err'
12426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427   (eval $ac_try) 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; } &&
12431          { ac_try='test -s conftest.$ac_objext'
12432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433   (eval $ac_try) 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; }; then
12437   ac_cv_struct_tm=time.h
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442 ac_cv_struct_tm=sys/time.h
12443 fi
12444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12445 fi
12446 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12447 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12448 if test $ac_cv_struct_tm = sys/time.h; then
12449
12450 cat >>confdefs.h <<\_ACEOF
12451 #define TM_IN_SYS_TIME 1
12452 _ACEOF
12453
12454 fi
12455
12456 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12457 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12458 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12459   echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461   cat >conftest.$ac_ext <<_ACEOF
12462 /* confdefs.h.  */
12463 _ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h.  */
12467 #include <sys/types.h>
12468 #include <$ac_cv_struct_tm>
12469
12470
12471 int
12472 main ()
12473 {
12474 static struct tm ac_aggr;
12475 if (ac_aggr.tm_zone)
12476 return 0;
12477   ;
12478   return 0;
12479 }
12480 _ACEOF
12481 rm -f conftest.$ac_objext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483   (eval $ac_compile) 2>conftest.er1
12484   ac_status=$?
12485   grep -v '^ *+' conftest.er1 >conftest.err
12486   rm -f conftest.er1
12487   cat conftest.err >&5
12488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489   (exit $ac_status); } &&
12490          { ac_try='test -z "$ac_c_werror_flag"
12491                          || test ! -s conftest.err'
12492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493   (eval $ac_try) 2>&5
12494   ac_status=$?
12495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); }; } &&
12497          { ac_try='test -s conftest.$ac_objext'
12498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499   (eval $ac_try) 2>&5
12500   ac_status=$?
12501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502   (exit $ac_status); }; }; then
12503   ac_cv_member_struct_tm_tm_zone=yes
12504 else
12505   echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h.  */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h.  */
12514 #include <sys/types.h>
12515 #include <$ac_cv_struct_tm>
12516
12517
12518 int
12519 main ()
12520 {
12521 static struct tm ac_aggr;
12522 if (sizeof ac_aggr.tm_zone)
12523 return 0;
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 rm -f conftest.$ac_objext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12530   (eval $ac_compile) 2>conftest.er1
12531   ac_status=$?
12532   grep -v '^ *+' conftest.er1 >conftest.err
12533   rm -f conftest.er1
12534   cat conftest.err >&5
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); } &&
12537          { ac_try='test -z "$ac_c_werror_flag"
12538                          || test ! -s conftest.err'
12539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540   (eval $ac_try) 2>&5
12541   ac_status=$?
12542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543   (exit $ac_status); }; } &&
12544          { ac_try='test -s conftest.$ac_objext'
12545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546   (eval $ac_try) 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; }; then
12550   ac_cv_member_struct_tm_tm_zone=yes
12551 else
12552   echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555 ac_cv_member_struct_tm_tm_zone=no
12556 fi
12557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12558 fi
12559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12560 fi
12561 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12562 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12563 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12564
12565 cat >>confdefs.h <<_ACEOF
12566 #define HAVE_STRUCT_TM_TM_ZONE 1
12567 _ACEOF
12568
12569
12570 fi
12571
12572 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12573
12574 cat >>confdefs.h <<\_ACEOF
12575 #define HAVE_TM_ZONE 1
12576 _ACEOF
12577
12578 else
12579   echo "$as_me:$LINENO: checking for tzname" >&5
12580 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12581 if test "${ac_cv_var_tzname+set}" = set; then
12582   echo $ECHO_N "(cached) $ECHO_C" >&6
12583 else
12584   cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h.  */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h.  */
12590 #include <time.h>
12591 #ifndef tzname /* For SGI.  */
12592 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
12593 #endif
12594
12595 int
12596 main ()
12597 {
12598 atoi(*tzname);
12599   ;
12600   return 0;
12601 }
12602 _ACEOF
12603 rm -f conftest.$ac_objext conftest$ac_exeext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12605   (eval $ac_link) 2>conftest.er1
12606   ac_status=$?
12607   grep -v '^ *+' conftest.er1 >conftest.err
12608   rm -f conftest.er1
12609   cat conftest.err >&5
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); } &&
12612          { ac_try='test -z "$ac_c_werror_flag"
12613                          || test ! -s conftest.err'
12614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615   (eval $ac_try) 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; } &&
12619          { ac_try='test -s conftest$ac_exeext'
12620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621   (eval $ac_try) 2>&5
12622   ac_status=$?
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); }; }; then
12625   ac_cv_var_tzname=yes
12626 else
12627   echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12629
12630 ac_cv_var_tzname=no
12631 fi
12632 rm -f conftest.err conftest.$ac_objext \
12633       conftest$ac_exeext conftest.$ac_ext
12634 fi
12635 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12636 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12637   if test $ac_cv_var_tzname = yes; then
12638
12639 cat >>confdefs.h <<\_ACEOF
12640 #define HAVE_TZNAME 1
12641 _ACEOF
12642
12643   fi
12644 fi
12645
12646
12647 echo "$as_me:$LINENO: checking for utime.h" >&5
12648 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12649 if test "${ba_cv_header_utime_h+set}" = set; then
12650   echo $ECHO_N "(cached) $ECHO_C" >&6
12651 else
12652   cat >conftest.$ac_ext <<_ACEOF
12653 /* confdefs.h.  */
12654 _ACEOF
12655 cat confdefs.h >>conftest.$ac_ext
12656 cat >>conftest.$ac_ext <<_ACEOF
12657 /* end confdefs.h.  */
12658
12659 #include <sys/types.h>
12660 #include <utime.h>
12661 int
12662 main ()
12663 {
12664 struct utimbuf foo
12665   ;
12666   return 0;
12667 }
12668 _ACEOF
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671   (eval $ac_compile) 2>conftest.er1
12672   ac_status=$?
12673   grep -v '^ *+' conftest.er1 >conftest.err
12674   rm -f conftest.er1
12675   cat conftest.err >&5
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); } &&
12678          { ac_try='test -z "$ac_c_werror_flag"
12679                          || test ! -s conftest.err'
12680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681   (eval $ac_try) 2>&5
12682   ac_status=$?
12683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684   (exit $ac_status); }; } &&
12685          { ac_try='test -s conftest.$ac_objext'
12686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687   (eval $ac_try) 2>&5
12688   ac_status=$?
12689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); }; }; then
12691   ba_cv_header_utime_h=yes
12692 else
12693   echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12695
12696 ba_cv_header_utime_h=no
12697 fi
12698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699 fi
12700 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12701 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12702 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12703 #define HAVE_UTIME_H 1
12704 _ACEOF
12705
12706
12707 echo "$as_me:$LINENO: checking for socklen_t" >&5
12708 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12709 if test "${ba_cv_header_socklen_t+set}" = set; then
12710   echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712   cat >conftest.$ac_ext <<_ACEOF
12713 /* confdefs.h.  */
12714 _ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h.  */
12718
12719 #include <sys/types.h>
12720 #include <sys/socket.h>
12721 int
12722 main ()
12723 {
12724 socklen_t x
12725   ;
12726   return 0;
12727 }
12728 _ACEOF
12729 rm -f conftest.$ac_objext
12730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12731   (eval $ac_compile) 2>conftest.er1
12732   ac_status=$?
12733   grep -v '^ *+' conftest.er1 >conftest.err
12734   rm -f conftest.er1
12735   cat conftest.err >&5
12736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); } &&
12738          { ac_try='test -z "$ac_c_werror_flag"
12739                          || test ! -s conftest.err'
12740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741   (eval $ac_try) 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); }; } &&
12745          { ac_try='test -s conftest.$ac_objext'
12746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747   (eval $ac_try) 2>&5
12748   ac_status=$?
12749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); }; }; then
12751   ba_cv_header_socklen_t=yes
12752 else
12753   echo "$as_me: failed program was:" >&5
12754 sed 's/^/| /' conftest.$ac_ext >&5
12755
12756 ba_cv_header_socklen_t=no
12757 fi
12758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12759 fi
12760 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12761 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12762 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12763 #define HAVE_SOCKLEN_T 1
12764 _ACEOF
12765
12766
12767 echo "$as_me:$LINENO: checking for bigendian" >&5
12768 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12769 if test "${ba_cv_bigendian+set}" = set; then
12770   echo $ECHO_N "(cached) $ECHO_C" >&6
12771 else
12772   if test "$cross_compiling" = yes; then
12773   ba_cv_bigendian=no
12774 else
12775   cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h.  */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h.  */
12781 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12782 _ACEOF
12783 rm -f conftest$ac_exeext
12784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12785   (eval $ac_link) 2>&5
12786   ac_status=$?
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790   (eval $ac_try) 2>&5
12791   ac_status=$?
12792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); }; }; then
12794   ba_cv_bigendian=yes
12795 else
12796   echo "$as_me: program exited with status $ac_status" >&5
12797 echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12799
12800 ( exit $ac_status )
12801 ba_cv_bigendian=no
12802 fi
12803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12804 fi
12805 fi
12806 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12807 echo "${ECHO_T}$ba_cv_bigendian" >&6
12808 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12809 #define HAVE_BIGENDIAN 1
12810 _ACEOF
12811
12812
12813
12814 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12815 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12816 if test "${ac_cv_c_const+set}" = set; then
12817   echo $ECHO_N "(cached) $ECHO_C" >&6
12818 else
12819   cat >conftest.$ac_ext <<_ACEOF
12820 /* confdefs.h.  */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h.  */
12825
12826 int
12827 main ()
12828 {
12829 /* FIXME: Include the comments suggested by Paul. */
12830 #ifndef __cplusplus
12831   /* Ultrix mips cc rejects this.  */
12832   typedef int charset[2];
12833   const charset x;
12834   /* SunOS 4.1.1 cc rejects this.  */
12835   char const *const *ccp;
12836   char **p;
12837   /* NEC SVR4.0.2 mips cc rejects this.  */
12838   struct point {int x, y;};
12839   static struct point const zero = {0,0};
12840   /* AIX XL C 1.02.0.0 rejects this.
12841      It does not let you subtract one const X* pointer from another in
12842      an arm of an if-expression whose if-part is not a constant
12843      expression */
12844   const char *g = "string";
12845   ccp = &g + (g ? g-g : 0);
12846   /* HPUX 7.0 cc rejects these. */
12847   ++ccp;
12848   p = (char**) ccp;
12849   ccp = (char const *const *) p;
12850   { /* SCO 3.2v4 cc rejects this.  */
12851     char *t;
12852     char const *s = 0 ? (char *) 0 : (char const *) 0;
12853
12854     *t++ = 0;
12855   }
12856   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12857     int x[] = {25, 17};
12858     const int *foo = &x[0];
12859     ++foo;
12860   }
12861   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12862     typedef const int *iptr;
12863     iptr p = 0;
12864     ++p;
12865   }
12866   { /* AIX XL C 1.02.0.0 rejects this saying
12867        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12868     struct s { int j; const int *ap[3]; };
12869     struct s *b; b->j = 5;
12870   }
12871   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12872     const int foo = 10;
12873   }
12874 #endif
12875
12876   ;
12877   return 0;
12878 }
12879 _ACEOF
12880 rm -f conftest.$ac_objext
12881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12882   (eval $ac_compile) 2>conftest.er1
12883   ac_status=$?
12884   grep -v '^ *+' conftest.er1 >conftest.err
12885   rm -f conftest.er1
12886   cat conftest.err >&5
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); } &&
12889          { ac_try='test -z "$ac_c_werror_flag"
12890                          || test ! -s conftest.err'
12891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892   (eval $ac_try) 2>&5
12893   ac_status=$?
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); }; } &&
12896          { ac_try='test -s conftest.$ac_objext'
12897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12898   (eval $ac_try) 2>&5
12899   ac_status=$?
12900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901   (exit $ac_status); }; }; then
12902   ac_cv_c_const=yes
12903 else
12904   echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.$ac_ext >&5
12906
12907 ac_cv_c_const=no
12908 fi
12909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12910 fi
12911 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12912 echo "${ECHO_T}$ac_cv_c_const" >&6
12913 if test $ac_cv_c_const = no; then
12914
12915 cat >>confdefs.h <<\_ACEOF
12916 #define const
12917 _ACEOF
12918
12919 fi
12920
12921
12922
12923 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12924 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12925 fstype=no
12926 # The order of these tests is important.
12927 cat >conftest.$ac_ext <<_ACEOF
12928 /* confdefs.h.  */
12929 _ACEOF
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h.  */
12933 #include <sys/statvfs.h>
12934 #include <sys/fstyp.h>
12935 _ACEOF
12936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12938   ac_status=$?
12939   grep -v '^ *+' conftest.er1 >conftest.err
12940   rm -f conftest.er1
12941   cat conftest.err >&5
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); } >/dev/null; then
12944   if test -s conftest.err; then
12945     ac_cpp_err=$ac_c_preproc_warn_flag
12946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12947   else
12948     ac_cpp_err=
12949   fi
12950 else
12951   ac_cpp_err=yes
12952 fi
12953 if test -z "$ac_cpp_err"; then
12954   cat >>confdefs.h <<\_ACEOF
12955 #define FSTYPE_STATVFS 1
12956 _ACEOF
12957  fstype=SVR4
12958 else
12959   echo "$as_me: failed program was:" >&5
12960 sed 's/^/| /' conftest.$ac_ext >&5
12961
12962
12963 fi
12964 rm -f conftest.err conftest.$ac_ext
12965 if test $fstype = no; then
12966 cat >conftest.$ac_ext <<_ACEOF
12967 /* confdefs.h.  */
12968 _ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h.  */
12972 #include <sys/statfs.h>
12973 #include <sys/fstyp.h>
12974 _ACEOF
12975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12976   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12977   ac_status=$?
12978   grep -v '^ *+' conftest.er1 >conftest.err
12979   rm -f conftest.er1
12980   cat conftest.err >&5
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); } >/dev/null; then
12983   if test -s conftest.err; then
12984     ac_cpp_err=$ac_c_preproc_warn_flag
12985     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12986   else
12987     ac_cpp_err=
12988   fi
12989 else
12990   ac_cpp_err=yes
12991 fi
12992 if test -z "$ac_cpp_err"; then
12993   cat >>confdefs.h <<\_ACEOF
12994 #define FSTYPE_USG_STATFS 1
12995 _ACEOF
12996  fstype=SVR3
12997 else
12998   echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001
13002 fi
13003 rm -f conftest.err conftest.$ac_ext
13004 fi
13005 if test $fstype = no; then
13006 cat >conftest.$ac_ext <<_ACEOF
13007 /* confdefs.h.  */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h.  */
13012 #include <sys/statfs.h>
13013 #include <sys/vmount.h>
13014 _ACEOF
13015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13017   ac_status=$?
13018   grep -v '^ *+' conftest.er1 >conftest.err
13019   rm -f conftest.er1
13020   cat conftest.err >&5
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); } >/dev/null; then
13023   if test -s conftest.err; then
13024     ac_cpp_err=$ac_c_preproc_warn_flag
13025     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13026   else
13027     ac_cpp_err=
13028   fi
13029 else
13030   ac_cpp_err=yes
13031 fi
13032 if test -z "$ac_cpp_err"; then
13033   cat >>confdefs.h <<\_ACEOF
13034 #define FSTYPE_AIX_STATFS 1
13035 _ACEOF
13036  fstype=AIX
13037 else
13038   echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13040
13041
13042 fi
13043 rm -f conftest.err conftest.$ac_ext
13044 fi
13045 if test $fstype = no; then
13046 cat >conftest.$ac_ext <<_ACEOF
13047 /* confdefs.h.  */
13048 _ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h.  */
13052 #include <mntent.h>
13053 _ACEOF
13054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13056   ac_status=$?
13057   grep -v '^ *+' conftest.er1 >conftest.err
13058   rm -f conftest.er1
13059   cat conftest.err >&5
13060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061   (exit $ac_status); } >/dev/null; then
13062   if test -s conftest.err; then
13063     ac_cpp_err=$ac_c_preproc_warn_flag
13064     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13065   else
13066     ac_cpp_err=
13067   fi
13068 else
13069   ac_cpp_err=yes
13070 fi
13071 if test -z "$ac_cpp_err"; then
13072   cat >>confdefs.h <<\_ACEOF
13073 #define FSTYPE_MNTENT 1
13074 _ACEOF
13075  fstype=4.3BSD
13076 else
13077   echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13079
13080
13081 fi
13082 rm -f conftest.err conftest.$ac_ext
13083 fi
13084 if test $fstype = no; then
13085 cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h.  */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h.  */
13091 #include <sys/mount.h>
13092
13093 _ACEOF
13094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13095   $EGREP "f_type;" >/dev/null 2>&1; then
13096   cat >>confdefs.h <<\_ACEOF
13097 #define FSTYPE_STATFS 1
13098 _ACEOF
13099  fstype=4.4BSD/OSF1
13100 fi
13101 rm -f conftest*
13102
13103 fi
13104 if test $fstype = no; then
13105 cat >conftest.$ac_ext <<_ACEOF
13106 /* confdefs.h.  */
13107 _ACEOF
13108 cat confdefs.h >>conftest.$ac_ext
13109 cat >>conftest.$ac_ext <<_ACEOF
13110 /* end confdefs.h.  */
13111 #include <sys/mount.h>
13112 #include <sys/fs_types.h>
13113 _ACEOF
13114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13116   ac_status=$?
13117   grep -v '^ *+' conftest.er1 >conftest.err
13118   rm -f conftest.er1
13119   cat conftest.err >&5
13120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121   (exit $ac_status); } >/dev/null; then
13122   if test -s conftest.err; then
13123     ac_cpp_err=$ac_c_preproc_warn_flag
13124     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13125   else
13126     ac_cpp_err=
13127   fi
13128 else
13129   ac_cpp_err=yes
13130 fi
13131 if test -z "$ac_cpp_err"; then
13132   cat >>confdefs.h <<\_ACEOF
13133 #define FSTYPE_GETMNT 1
13134 _ACEOF
13135  fstype=Ultrix
13136 else
13137   echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13139
13140
13141 fi
13142 rm -f conftest.err conftest.$ac_ext
13143 fi
13144 echo "$as_me:$LINENO: result: $fstype" >&5
13145 echo "${ECHO_T}$fstype" >&6
13146
13147 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13148 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13149 if test "${ac_cv_type_signal+set}" = set; then
13150   echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152   cat >conftest.$ac_ext <<_ACEOF
13153 /* confdefs.h.  */
13154 _ACEOF
13155 cat confdefs.h >>conftest.$ac_ext
13156 cat >>conftest.$ac_ext <<_ACEOF
13157 /* end confdefs.h.  */
13158 #include <sys/types.h>
13159 #include <signal.h>
13160 #ifdef signal
13161 # undef signal
13162 #endif
13163 #ifdef __cplusplus
13164 extern "C" void (*signal (int, void (*)(int)))(int);
13165 #else
13166 void (*signal ()) ();
13167 #endif
13168
13169 int
13170 main ()
13171 {
13172 int i;
13173   ;
13174   return 0;
13175 }
13176 _ACEOF
13177 rm -f conftest.$ac_objext
13178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13179   (eval $ac_compile) 2>conftest.er1
13180   ac_status=$?
13181   grep -v '^ *+' conftest.er1 >conftest.err
13182   rm -f conftest.er1
13183   cat conftest.err >&5
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); } &&
13186          { ac_try='test -z "$ac_c_werror_flag"
13187                          || test ! -s conftest.err'
13188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189   (eval $ac_try) 2>&5
13190   ac_status=$?
13191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); }; } &&
13193          { ac_try='test -s conftest.$ac_objext'
13194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13195   (eval $ac_try) 2>&5
13196   ac_status=$?
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); }; }; then
13199   ac_cv_type_signal=void
13200 else
13201   echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204 ac_cv_type_signal=int
13205 fi
13206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13207 fi
13208 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13209 echo "${ECHO_T}$ac_cv_type_signal" >&6
13210
13211 cat >>confdefs.h <<_ACEOF
13212 #define RETSIGTYPE $ac_cv_type_signal
13213 _ACEOF
13214
13215
13216
13217 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13218 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13219 if test "${bash_cv_signal_vintage+set}" = set; then
13220   echo $ECHO_N "(cached) $ECHO_C" >&6
13221 else
13222
13223   cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h.  */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h.  */
13229 #include <signal.h>
13230 int
13231 main ()
13232 {
13233
13234     sigset_t ss;
13235     struct sigaction sa;
13236     sigemptyset(&ss); sigsuspend(&ss);
13237     sigaction(SIGINT, &sa, (struct sigaction *) 0);
13238     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13239
13240   ;
13241   return 0;
13242 }
13243 _ACEOF
13244 rm -f conftest.$ac_objext conftest$ac_exeext
13245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13246   (eval $ac_link) 2>conftest.er1
13247   ac_status=$?
13248   grep -v '^ *+' conftest.er1 >conftest.err
13249   rm -f conftest.er1
13250   cat conftest.err >&5
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); } &&
13253          { ac_try='test -z "$ac_c_werror_flag"
13254                          || test ! -s conftest.err'
13255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256   (eval $ac_try) 2>&5
13257   ac_status=$?
13258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259   (exit $ac_status); }; } &&
13260          { ac_try='test -s conftest$ac_exeext'
13261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13262   (eval $ac_try) 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); }; }; then
13266   bash_cv_signal_vintage=posix
13267 else
13268   echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13270
13271
13272     cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h.  */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h.  */
13278 #include <signal.h>
13279 int
13280 main ()
13281 {
13282
13283         int mask = sigmask(SIGINT);
13284         sigsetmask(mask); sigblock(mask); sigpause(mask);
13285
13286   ;
13287   return 0;
13288 }
13289 _ACEOF
13290 rm -f conftest.$ac_objext conftest$ac_exeext
13291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13292   (eval $ac_link) 2>conftest.er1
13293   ac_status=$?
13294   grep -v '^ *+' conftest.er1 >conftest.err
13295   rm -f conftest.er1
13296   cat conftest.err >&5
13297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298   (exit $ac_status); } &&
13299          { ac_try='test -z "$ac_c_werror_flag"
13300                          || test ! -s conftest.err'
13301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302   (eval $ac_try) 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); }; } &&
13306          { ac_try='test -s conftest$ac_exeext'
13307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308   (eval $ac_try) 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); }; }; then
13312   bash_cv_signal_vintage=4.2bsd
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317
13318       cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h.  */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h.  */
13324
13325         #include <signal.h>
13326         RETSIGTYPE foo() { }
13327 int
13328 main ()
13329 {
13330
13331                 int mask = sigmask(SIGINT);
13332                 sigset(SIGINT, foo); sigrelse(SIGINT);
13333                 sighold(SIGINT); sigpause(SIGINT);
13334
13335   ;
13336   return 0;
13337 }
13338 _ACEOF
13339 rm -f conftest.$ac_objext conftest$ac_exeext
13340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13341   (eval $ac_link) 2>conftest.er1
13342   ac_status=$?
13343   grep -v '^ *+' conftest.er1 >conftest.err
13344   rm -f conftest.er1
13345   cat conftest.err >&5
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); } &&
13348          { ac_try='test -z "$ac_c_werror_flag"
13349                          || test ! -s conftest.err'
13350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351   (eval $ac_try) 2>&5
13352   ac_status=$?
13353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354   (exit $ac_status); }; } &&
13355          { ac_try='test -s conftest$ac_exeext'
13356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357   (eval $ac_try) 2>&5
13358   ac_status=$?
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); }; }; then
13361   bash_cv_signal_vintage=svr3
13362 else
13363   echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13365
13366 bash_cv_signal_vintage=v7
13367
13368 fi
13369 rm -f conftest.err conftest.$ac_objext \
13370       conftest$ac_exeext conftest.$ac_ext
13371
13372 fi
13373 rm -f conftest.err conftest.$ac_objext \
13374       conftest$ac_exeext conftest.$ac_ext
13375
13376 fi
13377 rm -f conftest.err conftest.$ac_objext \
13378       conftest$ac_exeext conftest.$ac_ext
13379
13380 fi
13381
13382 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13383 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13384 if test "$bash_cv_signal_vintage" = posix; then
13385 cat >>confdefs.h <<\_ACEOF
13386 #define HAVE_POSIX_SIGNALS 1
13387 _ACEOF
13388
13389 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13390 cat >>confdefs.h <<\_ACEOF
13391 #define HAVE_BSD_SIGNALS 1
13392 _ACEOF
13393
13394 elif test "$bash_cv_signal_vintage" = svr3; then
13395 cat >>confdefs.h <<\_ACEOF
13396 #define HAVE_USG_SIGHOLD 1
13397 _ACEOF
13398
13399 fi
13400
13401 echo "$as_me:$LINENO: checking for mode_t" >&5
13402 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13403 if test "${ac_cv_type_mode_t+set}" = set; then
13404   echo $ECHO_N "(cached) $ECHO_C" >&6
13405 else
13406   cat >conftest.$ac_ext <<_ACEOF
13407 /* confdefs.h.  */
13408 _ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h.  */
13412 $ac_includes_default
13413 int
13414 main ()
13415 {
13416 if ((mode_t *) 0)
13417   return 0;
13418 if (sizeof (mode_t))
13419   return 0;
13420   ;
13421   return 0;
13422 }
13423 _ACEOF
13424 rm -f conftest.$ac_objext
13425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13426   (eval $ac_compile) 2>conftest.er1
13427   ac_status=$?
13428   grep -v '^ *+' conftest.er1 >conftest.err
13429   rm -f conftest.er1
13430   cat conftest.err >&5
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); } &&
13433          { ac_try='test -z "$ac_c_werror_flag"
13434                          || test ! -s conftest.err'
13435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436   (eval $ac_try) 2>&5
13437   ac_status=$?
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); }; } &&
13440          { ac_try='test -s conftest.$ac_objext'
13441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442   (eval $ac_try) 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; }; then
13446   ac_cv_type_mode_t=yes
13447 else
13448   echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451 ac_cv_type_mode_t=no
13452 fi
13453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13454 fi
13455 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13456 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13457 if test $ac_cv_type_mode_t = yes; then
13458   :
13459 else
13460
13461 cat >>confdefs.h <<_ACEOF
13462 #define mode_t int
13463 _ACEOF
13464
13465 fi
13466
13467 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13468 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13469 if test "${ac_cv_type_uid_t+set}" = set; then
13470   echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472   cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h.  */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h.  */
13478 #include <sys/types.h>
13479
13480 _ACEOF
13481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13482   $EGREP "uid_t" >/dev/null 2>&1; then
13483   ac_cv_type_uid_t=yes
13484 else
13485   ac_cv_type_uid_t=no
13486 fi
13487 rm -f conftest*
13488
13489 fi
13490 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13491 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13492 if test $ac_cv_type_uid_t = no; then
13493
13494 cat >>confdefs.h <<\_ACEOF
13495 #define uid_t int
13496 _ACEOF
13497
13498
13499 cat >>confdefs.h <<\_ACEOF
13500 #define gid_t int
13501 _ACEOF
13502
13503 fi
13504
13505 echo "$as_me:$LINENO: checking for size_t" >&5
13506 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13507 if test "${ac_cv_type_size_t+set}" = set; then
13508   echo $ECHO_N "(cached) $ECHO_C" >&6
13509 else
13510   cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h.  */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h.  */
13516 $ac_includes_default
13517 int
13518 main ()
13519 {
13520 if ((size_t *) 0)
13521   return 0;
13522 if (sizeof (size_t))
13523   return 0;
13524   ;
13525   return 0;
13526 }
13527 _ACEOF
13528 rm -f conftest.$ac_objext
13529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13530   (eval $ac_compile) 2>conftest.er1
13531   ac_status=$?
13532   grep -v '^ *+' conftest.er1 >conftest.err
13533   rm -f conftest.er1
13534   cat conftest.err >&5
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); } &&
13537          { ac_try='test -z "$ac_c_werror_flag"
13538                          || test ! -s conftest.err'
13539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540   (eval $ac_try) 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); }; } &&
13544          { ac_try='test -s conftest.$ac_objext'
13545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546   (eval $ac_try) 2>&5
13547   ac_status=$?
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); }; }; then
13550   ac_cv_type_size_t=yes
13551 else
13552   echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13554
13555 ac_cv_type_size_t=no
13556 fi
13557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13558 fi
13559 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13560 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13561 if test $ac_cv_type_size_t = yes; then
13562   :
13563 else
13564
13565 cat >>confdefs.h <<_ACEOF
13566 #define size_t unsigned
13567 _ACEOF
13568
13569 fi
13570
13571 echo "$as_me:$LINENO: checking for pid_t" >&5
13572 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13573 if test "${ac_cv_type_pid_t+set}" = set; then
13574   echo $ECHO_N "(cached) $ECHO_C" >&6
13575 else
13576   cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h.  */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h.  */
13582 $ac_includes_default
13583 int
13584 main ()
13585 {
13586 if ((pid_t *) 0)
13587   return 0;
13588 if (sizeof (pid_t))
13589   return 0;
13590   ;
13591   return 0;
13592 }
13593 _ACEOF
13594 rm -f conftest.$ac_objext
13595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13596   (eval $ac_compile) 2>conftest.er1
13597   ac_status=$?
13598   grep -v '^ *+' conftest.er1 >conftest.err
13599   rm -f conftest.er1
13600   cat conftest.err >&5
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); } &&
13603          { ac_try='test -z "$ac_c_werror_flag"
13604                          || test ! -s conftest.err'
13605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606   (eval $ac_try) 2>&5
13607   ac_status=$?
13608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609   (exit $ac_status); }; } &&
13610          { ac_try='test -s conftest.$ac_objext'
13611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612   (eval $ac_try) 2>&5
13613   ac_status=$?
13614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615   (exit $ac_status); }; }; then
13616   ac_cv_type_pid_t=yes
13617 else
13618   echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13620
13621 ac_cv_type_pid_t=no
13622 fi
13623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13624 fi
13625 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13626 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13627 if test $ac_cv_type_pid_t = yes; then
13628   :
13629 else
13630
13631 cat >>confdefs.h <<_ACEOF
13632 #define pid_t int
13633 _ACEOF
13634
13635 fi
13636
13637 echo "$as_me:$LINENO: checking for off_t" >&5
13638 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13639 if test "${ac_cv_type_off_t+set}" = set; then
13640   echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642   cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h.  */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h.  */
13648 $ac_includes_default
13649 int
13650 main ()
13651 {
13652 if ((off_t *) 0)
13653   return 0;
13654 if (sizeof (off_t))
13655   return 0;
13656   ;
13657   return 0;
13658 }
13659 _ACEOF
13660 rm -f conftest.$ac_objext
13661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13662   (eval $ac_compile) 2>conftest.er1
13663   ac_status=$?
13664   grep -v '^ *+' conftest.er1 >conftest.err
13665   rm -f conftest.er1
13666   cat conftest.err >&5
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); } &&
13669          { ac_try='test -z "$ac_c_werror_flag"
13670                          || test ! -s conftest.err'
13671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672   (eval $ac_try) 2>&5
13673   ac_status=$?
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); }; } &&
13676          { ac_try='test -s conftest.$ac_objext'
13677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678   (eval $ac_try) 2>&5
13679   ac_status=$?
13680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681   (exit $ac_status); }; }; then
13682   ac_cv_type_off_t=yes
13683 else
13684   echo "$as_me: failed program was:" >&5
13685 sed 's/^/| /' conftest.$ac_ext >&5
13686
13687 ac_cv_type_off_t=no
13688 fi
13689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13690 fi
13691 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13692 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13693 if test $ac_cv_type_off_t = yes; then
13694   :
13695 else
13696
13697 cat >>confdefs.h <<_ACEOF
13698 #define off_t long
13699 _ACEOF
13700
13701 fi
13702
13703 echo "$as_me:$LINENO: checking for ino_t" >&5
13704 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13705 if test "${ac_cv_type_ino_t+set}" = set; then
13706   echo $ECHO_N "(cached) $ECHO_C" >&6
13707 else
13708   cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h.  */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h.  */
13714 $ac_includes_default
13715 int
13716 main ()
13717 {
13718 if ((ino_t *) 0)
13719   return 0;
13720 if (sizeof (ino_t))
13721   return 0;
13722   ;
13723   return 0;
13724 }
13725 _ACEOF
13726 rm -f conftest.$ac_objext
13727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13728   (eval $ac_compile) 2>conftest.er1
13729   ac_status=$?
13730   grep -v '^ *+' conftest.er1 >conftest.err
13731   rm -f conftest.er1
13732   cat conftest.err >&5
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); } &&
13735          { ac_try='test -z "$ac_c_werror_flag"
13736                          || test ! -s conftest.err'
13737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738   (eval $ac_try) 2>&5
13739   ac_status=$?
13740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741   (exit $ac_status); }; } &&
13742          { ac_try='test -s conftest.$ac_objext'
13743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744   (eval $ac_try) 2>&5
13745   ac_status=$?
13746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); }; }; then
13748   ac_cv_type_ino_t=yes
13749 else
13750   echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13752
13753 ac_cv_type_ino_t=no
13754 fi
13755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13756 fi
13757 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13758 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13759 if test $ac_cv_type_ino_t = yes; then
13760   :
13761 else
13762
13763 cat >>confdefs.h <<_ACEOF
13764 #define ino_t unsigned long
13765 _ACEOF
13766
13767 fi
13768
13769 echo "$as_me:$LINENO: checking for dev_t" >&5
13770 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13771 if test "${ac_cv_type_dev_t+set}" = set; then
13772   echo $ECHO_N "(cached) $ECHO_C" >&6
13773 else
13774   cat >conftest.$ac_ext <<_ACEOF
13775 /* confdefs.h.  */
13776 _ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h.  */
13780 $ac_includes_default
13781 int
13782 main ()
13783 {
13784 if ((dev_t *) 0)
13785   return 0;
13786 if (sizeof (dev_t))
13787   return 0;
13788   ;
13789   return 0;
13790 }
13791 _ACEOF
13792 rm -f conftest.$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794   (eval $ac_compile) 2>conftest.er1
13795   ac_status=$?
13796   grep -v '^ *+' conftest.er1 >conftest.err
13797   rm -f conftest.er1
13798   cat conftest.err >&5
13799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800   (exit $ac_status); } &&
13801          { ac_try='test -z "$ac_c_werror_flag"
13802                          || test ! -s conftest.err'
13803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13804   (eval $ac_try) 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; } &&
13808          { ac_try='test -s conftest.$ac_objext'
13809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810   (eval $ac_try) 2>&5
13811   ac_status=$?
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); }; }; then
13814   ac_cv_type_dev_t=yes
13815 else
13816   echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13818
13819 ac_cv_type_dev_t=no
13820 fi
13821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13822 fi
13823 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13824 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13825 if test $ac_cv_type_dev_t = yes; then
13826   :
13827 else
13828
13829 cat >>confdefs.h <<_ACEOF
13830 #define dev_t unsigned long
13831 _ACEOF
13832
13833 fi
13834
13835 echo "$as_me:$LINENO: checking for daddr_t" >&5
13836 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13837 if test "${ac_cv_type_daddr_t+set}" = set; then
13838   echo $ECHO_N "(cached) $ECHO_C" >&6
13839 else
13840   cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h.  */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h.  */
13846 $ac_includes_default
13847 int
13848 main ()
13849 {
13850 if ((daddr_t *) 0)
13851   return 0;
13852 if (sizeof (daddr_t))
13853   return 0;
13854   ;
13855   return 0;
13856 }
13857 _ACEOF
13858 rm -f conftest.$ac_objext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13860   (eval $ac_compile) 2>conftest.er1
13861   ac_status=$?
13862   grep -v '^ *+' conftest.er1 >conftest.err
13863   rm -f conftest.er1
13864   cat conftest.err >&5
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); } &&
13867          { ac_try='test -z "$ac_c_werror_flag"
13868                          || test ! -s conftest.err'
13869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870   (eval $ac_try) 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; } &&
13874          { ac_try='test -s conftest.$ac_objext'
13875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876   (eval $ac_try) 2>&5
13877   ac_status=$?
13878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879   (exit $ac_status); }; }; then
13880   ac_cv_type_daddr_t=yes
13881 else
13882   echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13884
13885 ac_cv_type_daddr_t=no
13886 fi
13887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13888 fi
13889 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13890 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13891 if test $ac_cv_type_daddr_t = yes; then
13892   :
13893 else
13894
13895 cat >>confdefs.h <<_ACEOF
13896 #define daddr_t long
13897 _ACEOF
13898
13899 fi
13900
13901 echo "$as_me:$LINENO: checking for major_t" >&5
13902 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13903 if test "${ac_cv_type_major_t+set}" = set; then
13904   echo $ECHO_N "(cached) $ECHO_C" >&6
13905 else
13906   cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h.  */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h.  */
13912 $ac_includes_default
13913 int
13914 main ()
13915 {
13916 if ((major_t *) 0)
13917   return 0;
13918 if (sizeof (major_t))
13919   return 0;
13920   ;
13921   return 0;
13922 }
13923 _ACEOF
13924 rm -f conftest.$ac_objext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13926   (eval $ac_compile) 2>conftest.er1
13927   ac_status=$?
13928   grep -v '^ *+' conftest.er1 >conftest.err
13929   rm -f conftest.er1
13930   cat conftest.err >&5
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); } &&
13933          { ac_try='test -z "$ac_c_werror_flag"
13934                          || test ! -s conftest.err'
13935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936   (eval $ac_try) 2>&5
13937   ac_status=$?
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); }; } &&
13940          { ac_try='test -s conftest.$ac_objext'
13941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942   (eval $ac_try) 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); }; }; then
13946   ac_cv_type_major_t=yes
13947 else
13948   echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13950
13951 ac_cv_type_major_t=no
13952 fi
13953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13954 fi
13955 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13956 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13957 if test $ac_cv_type_major_t = yes; then
13958   :
13959 else
13960
13961 cat >>confdefs.h <<_ACEOF
13962 #define major_t int
13963 _ACEOF
13964
13965 fi
13966
13967 echo "$as_me:$LINENO: checking for minor_t" >&5
13968 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13969 if test "${ac_cv_type_minor_t+set}" = set; then
13970   echo $ECHO_N "(cached) $ECHO_C" >&6
13971 else
13972   cat >conftest.$ac_ext <<_ACEOF
13973 /* confdefs.h.  */
13974 _ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h.  */
13978 $ac_includes_default
13979 int
13980 main ()
13981 {
13982 if ((minor_t *) 0)
13983   return 0;
13984 if (sizeof (minor_t))
13985   return 0;
13986   ;
13987   return 0;
13988 }
13989 _ACEOF
13990 rm -f conftest.$ac_objext
13991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13992   (eval $ac_compile) 2>conftest.er1
13993   ac_status=$?
13994   grep -v '^ *+' conftest.er1 >conftest.err
13995   rm -f conftest.er1
13996   cat conftest.err >&5
13997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998   (exit $ac_status); } &&
13999          { ac_try='test -z "$ac_c_werror_flag"
14000                          || test ! -s conftest.err'
14001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14002   (eval $ac_try) 2>&5
14003   ac_status=$?
14004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005   (exit $ac_status); }; } &&
14006          { ac_try='test -s conftest.$ac_objext'
14007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14008   (eval $ac_try) 2>&5
14009   ac_status=$?
14010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011   (exit $ac_status); }; }; then
14012   ac_cv_type_minor_t=yes
14013 else
14014   echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14016
14017 ac_cv_type_minor_t=no
14018 fi
14019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14020 fi
14021 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14022 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14023 if test $ac_cv_type_minor_t = yes; then
14024   :
14025 else
14026
14027 cat >>confdefs.h <<_ACEOF
14028 #define minor_t int
14029 _ACEOF
14030
14031 fi
14032
14033 echo "$as_me:$LINENO: checking for ssize_t" >&5
14034 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14035 if test "${ac_cv_type_ssize_t+set}" = set; then
14036   echo $ECHO_N "(cached) $ECHO_C" >&6
14037 else
14038   cat >conftest.$ac_ext <<_ACEOF
14039 /* confdefs.h.  */
14040 _ACEOF
14041 cat confdefs.h >>conftest.$ac_ext
14042 cat >>conftest.$ac_ext <<_ACEOF
14043 /* end confdefs.h.  */
14044 $ac_includes_default
14045 int
14046 main ()
14047 {
14048 if ((ssize_t *) 0)
14049   return 0;
14050 if (sizeof (ssize_t))
14051   return 0;
14052   ;
14053   return 0;
14054 }
14055 _ACEOF
14056 rm -f conftest.$ac_objext
14057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14058   (eval $ac_compile) 2>conftest.er1
14059   ac_status=$?
14060   grep -v '^ *+' conftest.er1 >conftest.err
14061   rm -f conftest.er1
14062   cat conftest.err >&5
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); } &&
14065          { ac_try='test -z "$ac_c_werror_flag"
14066                          || test ! -s conftest.err'
14067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068   (eval $ac_try) 2>&5
14069   ac_status=$?
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); }; } &&
14072          { ac_try='test -s conftest.$ac_objext'
14073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074   (eval $ac_try) 2>&5
14075   ac_status=$?
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); }; }; then
14078   ac_cv_type_ssize_t=yes
14079 else
14080   echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14082
14083 ac_cv_type_ssize_t=no
14084 fi
14085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14086 fi
14087 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14088 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14089 if test $ac_cv_type_ssize_t = yes; then
14090   :
14091 else
14092
14093 cat >>confdefs.h <<_ACEOF
14094 #define ssize_t int
14095 _ACEOF
14096
14097 fi
14098
14099 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14100 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14101 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14102   echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104   cat >conftest.$ac_ext <<_ACEOF
14105 /* confdefs.h.  */
14106 _ACEOF
14107 cat confdefs.h >>conftest.$ac_ext
14108 cat >>conftest.$ac_ext <<_ACEOF
14109 /* end confdefs.h.  */
14110 $ac_includes_default
14111 int
14112 main ()
14113 {
14114 static struct stat ac_aggr;
14115 if (ac_aggr.st_blocks)
14116 return 0;
14117   ;
14118   return 0;
14119 }
14120 _ACEOF
14121 rm -f conftest.$ac_objext
14122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14123   (eval $ac_compile) 2>conftest.er1
14124   ac_status=$?
14125   grep -v '^ *+' conftest.er1 >conftest.err
14126   rm -f conftest.er1
14127   cat conftest.err >&5
14128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129   (exit $ac_status); } &&
14130          { ac_try='test -z "$ac_c_werror_flag"
14131                          || test ! -s conftest.err'
14132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133   (eval $ac_try) 2>&5
14134   ac_status=$?
14135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136   (exit $ac_status); }; } &&
14137          { ac_try='test -s conftest.$ac_objext'
14138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14139   (eval $ac_try) 2>&5
14140   ac_status=$?
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); }; }; then
14143   ac_cv_member_struct_stat_st_blocks=yes
14144 else
14145   echo "$as_me: failed program was:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14147
14148 cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h.  */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h.  */
14154 $ac_includes_default
14155 int
14156 main ()
14157 {
14158 static struct stat ac_aggr;
14159 if (sizeof ac_aggr.st_blocks)
14160 return 0;
14161   ;
14162   return 0;
14163 }
14164 _ACEOF
14165 rm -f conftest.$ac_objext
14166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14167   (eval $ac_compile) 2>conftest.er1
14168   ac_status=$?
14169   grep -v '^ *+' conftest.er1 >conftest.err
14170   rm -f conftest.er1
14171   cat conftest.err >&5
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); } &&
14174          { ac_try='test -z "$ac_c_werror_flag"
14175                          || test ! -s conftest.err'
14176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177   (eval $ac_try) 2>&5
14178   ac_status=$?
14179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180   (exit $ac_status); }; } &&
14181          { ac_try='test -s conftest.$ac_objext'
14182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183   (eval $ac_try) 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); }; }; then
14187   ac_cv_member_struct_stat_st_blocks=yes
14188 else
14189   echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14191
14192 ac_cv_member_struct_stat_st_blocks=no
14193 fi
14194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14195 fi
14196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14197 fi
14198 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14199 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14200 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14201
14202 cat >>confdefs.h <<_ACEOF
14203 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14204 _ACEOF
14205
14206
14207 cat >>confdefs.h <<\_ACEOF
14208 #define HAVE_ST_BLOCKS 1
14209 _ACEOF
14210
14211 else
14212   case $LIBOBJS in
14213     "fileblocks.$ac_objext"   | \
14214   *" fileblocks.$ac_objext"   | \
14215     "fileblocks.$ac_objext "* | \
14216   *" fileblocks.$ac_objext "* ) ;;
14217   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14218 esac
14219
14220 fi
14221
14222
14223
14224 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14225 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14226 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14227   echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229   cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h.  */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h.  */
14235 $ac_includes_default
14236 int
14237 main ()
14238 {
14239 static struct stat ac_aggr;
14240 if (ac_aggr.st_rdev)
14241 return 0;
14242   ;
14243   return 0;
14244 }
14245 _ACEOF
14246 rm -f conftest.$ac_objext
14247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14248   (eval $ac_compile) 2>conftest.er1
14249   ac_status=$?
14250   grep -v '^ *+' conftest.er1 >conftest.err
14251   rm -f conftest.er1
14252   cat conftest.err >&5
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); } &&
14255          { ac_try='test -z "$ac_c_werror_flag"
14256                          || test ! -s conftest.err'
14257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258   (eval $ac_try) 2>&5
14259   ac_status=$?
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); }; } &&
14262          { ac_try='test -s conftest.$ac_objext'
14263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264   (eval $ac_try) 2>&5
14265   ac_status=$?
14266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267   (exit $ac_status); }; }; then
14268   ac_cv_member_struct_stat_st_rdev=yes
14269 else
14270   echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14272
14273 cat >conftest.$ac_ext <<_ACEOF
14274 /* confdefs.h.  */
14275 _ACEOF
14276 cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h.  */
14279 $ac_includes_default
14280 int
14281 main ()
14282 {
14283 static struct stat ac_aggr;
14284 if (sizeof ac_aggr.st_rdev)
14285 return 0;
14286   ;
14287   return 0;
14288 }
14289 _ACEOF
14290 rm -f conftest.$ac_objext
14291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14292   (eval $ac_compile) 2>conftest.er1
14293   ac_status=$?
14294   grep -v '^ *+' conftest.er1 >conftest.err
14295   rm -f conftest.er1
14296   cat conftest.err >&5
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); } &&
14299          { ac_try='test -z "$ac_c_werror_flag"
14300                          || test ! -s conftest.err'
14301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14302   (eval $ac_try) 2>&5
14303   ac_status=$?
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); }; } &&
14306          { ac_try='test -s conftest.$ac_objext'
14307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14308   (eval $ac_try) 2>&5
14309   ac_status=$?
14310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); }; }; then
14312   ac_cv_member_struct_stat_st_rdev=yes
14313 else
14314   echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14316
14317 ac_cv_member_struct_stat_st_rdev=no
14318 fi
14319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14320 fi
14321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14322 fi
14323 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14324 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14325 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14326
14327 cat >>confdefs.h <<_ACEOF
14328 #define HAVE_STRUCT_STAT_ST_RDEV 1
14329 _ACEOF
14330
14331
14332 cat >>confdefs.h <<\_ACEOF
14333 #define HAVE_ST_RDEV 1
14334 _ACEOF
14335
14336 fi
14337
14338
14339 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14340 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14341 if test "${ac_cv_struct_tm+set}" = set; then
14342   echo $ECHO_N "(cached) $ECHO_C" >&6
14343 else
14344   cat >conftest.$ac_ext <<_ACEOF
14345 /* confdefs.h.  */
14346 _ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h.  */
14350 #include <sys/types.h>
14351 #include <time.h>
14352
14353 int
14354 main ()
14355 {
14356 struct tm *tp; tp->tm_sec;
14357   ;
14358   return 0;
14359 }
14360 _ACEOF
14361 rm -f conftest.$ac_objext
14362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14363   (eval $ac_compile) 2>conftest.er1
14364   ac_status=$?
14365   grep -v '^ *+' conftest.er1 >conftest.err
14366   rm -f conftest.er1
14367   cat conftest.err >&5
14368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369   (exit $ac_status); } &&
14370          { ac_try='test -z "$ac_c_werror_flag"
14371                          || test ! -s conftest.err'
14372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373   (eval $ac_try) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); }; } &&
14377          { ac_try='test -s conftest.$ac_objext'
14378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379   (eval $ac_try) 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); }; }; then
14383   ac_cv_struct_tm=time.h
14384 else
14385   echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14387
14388 ac_cv_struct_tm=sys/time.h
14389 fi
14390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14391 fi
14392 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14393 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14394 if test $ac_cv_struct_tm = sys/time.h; then
14395
14396 cat >>confdefs.h <<\_ACEOF
14397 #define TM_IN_SYS_TIME 1
14398 _ACEOF
14399
14400 fi
14401
14402 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14403 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14404 if test "${ac_cv_c_const+set}" = set; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407   cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413
14414 int
14415 main ()
14416 {
14417 /* FIXME: Include the comments suggested by Paul. */
14418 #ifndef __cplusplus
14419   /* Ultrix mips cc rejects this.  */
14420   typedef int charset[2];
14421   const charset x;
14422   /* SunOS 4.1.1 cc rejects this.  */
14423   char const *const *ccp;
14424   char **p;
14425   /* NEC SVR4.0.2 mips cc rejects this.  */
14426   struct point {int x, y;};
14427   static struct point const zero = {0,0};
14428   /* AIX XL C 1.02.0.0 rejects this.
14429      It does not let you subtract one const X* pointer from another in
14430      an arm of an if-expression whose if-part is not a constant
14431      expression */
14432   const char *g = "string";
14433   ccp = &g + (g ? g-g : 0);
14434   /* HPUX 7.0 cc rejects these. */
14435   ++ccp;
14436   p = (char**) ccp;
14437   ccp = (char const *const *) p;
14438   { /* SCO 3.2v4 cc rejects this.  */
14439     char *t;
14440     char const *s = 0 ? (char *) 0 : (char const *) 0;
14441
14442     *t++ = 0;
14443   }
14444   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14445     int x[] = {25, 17};
14446     const int *foo = &x[0];
14447     ++foo;
14448   }
14449   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14450     typedef const int *iptr;
14451     iptr p = 0;
14452     ++p;
14453   }
14454   { /* AIX XL C 1.02.0.0 rejects this saying
14455        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14456     struct s { int j; const int *ap[3]; };
14457     struct s *b; b->j = 5;
14458   }
14459   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14460     const int foo = 10;
14461   }
14462 #endif
14463
14464   ;
14465   return 0;
14466 }
14467 _ACEOF
14468 rm -f conftest.$ac_objext
14469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14470   (eval $ac_compile) 2>conftest.er1
14471   ac_status=$?
14472   grep -v '^ *+' conftest.er1 >conftest.err
14473   rm -f conftest.er1
14474   cat conftest.err >&5
14475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); } &&
14477          { ac_try='test -z "$ac_c_werror_flag"
14478                          || test ! -s conftest.err'
14479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480   (eval $ac_try) 2>&5
14481   ac_status=$?
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); }; } &&
14484          { ac_try='test -s conftest.$ac_objext'
14485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486   (eval $ac_try) 2>&5
14487   ac_status=$?
14488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489   (exit $ac_status); }; }; then
14490   ac_cv_c_const=yes
14491 else
14492   echo "$as_me: failed program was:" >&5
14493 sed 's/^/| /' conftest.$ac_ext >&5
14494
14495 ac_cv_c_const=no
14496 fi
14497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14498 fi
14499 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14500 echo "${ECHO_T}$ac_cv_c_const" >&6
14501 if test $ac_cv_c_const = no; then
14502
14503 cat >>confdefs.h <<\_ACEOF
14504 #define const
14505 _ACEOF
14506
14507 fi
14508
14509
14510
14511 echo "$as_me:$LINENO: checking for char" >&5
14512 echo $ECHO_N "checking for char... $ECHO_C" >&6
14513 if test "${ac_cv_type_char+set}" = set; then
14514   echo $ECHO_N "(cached) $ECHO_C" >&6
14515 else
14516   cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h.  */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h.  */
14522 $ac_includes_default
14523 int
14524 main ()
14525 {
14526 if ((char *) 0)
14527   return 0;
14528 if (sizeof (char))
14529   return 0;
14530   ;
14531   return 0;
14532 }
14533 _ACEOF
14534 rm -f conftest.$ac_objext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14536   (eval $ac_compile) 2>conftest.er1
14537   ac_status=$?
14538   grep -v '^ *+' conftest.er1 >conftest.err
14539   rm -f conftest.er1
14540   cat conftest.err >&5
14541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542   (exit $ac_status); } &&
14543          { ac_try='test -z "$ac_c_werror_flag"
14544                          || test ! -s conftest.err'
14545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546   (eval $ac_try) 2>&5
14547   ac_status=$?
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); }; } &&
14550          { ac_try='test -s conftest.$ac_objext'
14551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552   (eval $ac_try) 2>&5
14553   ac_status=$?
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); }; }; then
14556   ac_cv_type_char=yes
14557 else
14558   echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14560
14561 ac_cv_type_char=no
14562 fi
14563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14564 fi
14565 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14566 echo "${ECHO_T}$ac_cv_type_char" >&6
14567
14568 echo "$as_me:$LINENO: checking size of char" >&5
14569 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14570 if test "${ac_cv_sizeof_char+set}" = set; then
14571   echo $ECHO_N "(cached) $ECHO_C" >&6
14572 else
14573   if test "$ac_cv_type_char" = yes; then
14574   # The cast to unsigned long works around a bug in the HP C Compiler
14575   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14576   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14577   # This bug is HP SR number 8606223364.
14578   if test "$cross_compiling" = yes; then
14579   # Depending upon the size, compute the lo and hi bounds.
14580 cat >conftest.$ac_ext <<_ACEOF
14581 /* confdefs.h.  */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h.  */
14586 $ac_includes_default
14587 int
14588 main ()
14589 {
14590 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14591 test_array [0] = 0
14592
14593   ;
14594   return 0;
14595 }
14596 _ACEOF
14597 rm -f conftest.$ac_objext
14598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14599   (eval $ac_compile) 2>conftest.er1
14600   ac_status=$?
14601   grep -v '^ *+' conftest.er1 >conftest.err
14602   rm -f conftest.er1
14603   cat conftest.err >&5
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } &&
14606          { ac_try='test -z "$ac_c_werror_flag"
14607                          || test ! -s conftest.err'
14608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609   (eval $ac_try) 2>&5
14610   ac_status=$?
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); }; } &&
14613          { ac_try='test -s conftest.$ac_objext'
14614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14615   (eval $ac_try) 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; }; then
14619   ac_lo=0 ac_mid=0
14620   while :; do
14621     cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h.  */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h.  */
14627 $ac_includes_default
14628 int
14629 main ()
14630 {
14631 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14632 test_array [0] = 0
14633
14634   ;
14635   return 0;
14636 }
14637 _ACEOF
14638 rm -f conftest.$ac_objext
14639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14640   (eval $ac_compile) 2>conftest.er1
14641   ac_status=$?
14642   grep -v '^ *+' conftest.er1 >conftest.err
14643   rm -f conftest.er1
14644   cat conftest.err >&5
14645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646   (exit $ac_status); } &&
14647          { ac_try='test -z "$ac_c_werror_flag"
14648                          || test ! -s conftest.err'
14649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14650   (eval $ac_try) 2>&5
14651   ac_status=$?
14652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653   (exit $ac_status); }; } &&
14654          { ac_try='test -s conftest.$ac_objext'
14655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656   (eval $ac_try) 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); }; }; then
14660   ac_hi=$ac_mid; break
14661 else
14662   echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14664
14665 ac_lo=`expr $ac_mid + 1`
14666                     if test $ac_lo -le $ac_mid; then
14667                       ac_lo= ac_hi=
14668                       break
14669                     fi
14670                     ac_mid=`expr 2 '*' $ac_mid + 1`
14671 fi
14672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14673   done
14674 else
14675   echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14677
14678 cat >conftest.$ac_ext <<_ACEOF
14679 /* confdefs.h.  */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h.  */
14684 $ac_includes_default
14685 int
14686 main ()
14687 {
14688 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14689 test_array [0] = 0
14690
14691   ;
14692   return 0;
14693 }
14694 _ACEOF
14695 rm -f conftest.$ac_objext
14696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14697   (eval $ac_compile) 2>conftest.er1
14698   ac_status=$?
14699   grep -v '^ *+' conftest.er1 >conftest.err
14700   rm -f conftest.er1
14701   cat conftest.err >&5
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); } &&
14704          { ac_try='test -z "$ac_c_werror_flag"
14705                          || test ! -s conftest.err'
14706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707   (eval $ac_try) 2>&5
14708   ac_status=$?
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); }; } &&
14711          { ac_try='test -s conftest.$ac_objext'
14712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713   (eval $ac_try) 2>&5
14714   ac_status=$?
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); }; }; then
14717   ac_hi=-1 ac_mid=-1
14718   while :; do
14719     cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725 $ac_includes_default
14726 int
14727 main ()
14728 {
14729 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14730 test_array [0] = 0
14731
14732   ;
14733   return 0;
14734 }
14735 _ACEOF
14736 rm -f conftest.$ac_objext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14738   (eval $ac_compile) 2>conftest.er1
14739   ac_status=$?
14740   grep -v '^ *+' conftest.er1 >conftest.err
14741   rm -f conftest.er1
14742   cat conftest.err >&5
14743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744   (exit $ac_status); } &&
14745          { ac_try='test -z "$ac_c_werror_flag"
14746                          || test ! -s conftest.err'
14747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748   (eval $ac_try) 2>&5
14749   ac_status=$?
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); }; } &&
14752          { ac_try='test -s conftest.$ac_objext'
14753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754   (eval $ac_try) 2>&5
14755   ac_status=$?
14756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757   (exit $ac_status); }; }; then
14758   ac_lo=$ac_mid; break
14759 else
14760   echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.$ac_ext >&5
14762
14763 ac_hi=`expr '(' $ac_mid ')' - 1`
14764                        if test $ac_mid -le $ac_hi; then
14765                          ac_lo= ac_hi=
14766                          break
14767                        fi
14768                        ac_mid=`expr 2 '*' $ac_mid`
14769 fi
14770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14771   done
14772 else
14773   echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776 ac_lo= ac_hi=
14777 fi
14778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14779 fi
14780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14781 # Binary search between lo and hi bounds.
14782 while test "x$ac_lo" != "x$ac_hi"; do
14783   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14784   cat >conftest.$ac_ext <<_ACEOF
14785 /* confdefs.h.  */
14786 _ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h.  */
14790 $ac_includes_default
14791 int
14792 main ()
14793 {
14794 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14795 test_array [0] = 0
14796
14797   ;
14798   return 0;
14799 }
14800 _ACEOF
14801 rm -f conftest.$ac_objext
14802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14803   (eval $ac_compile) 2>conftest.er1
14804   ac_status=$?
14805   grep -v '^ *+' conftest.er1 >conftest.err
14806   rm -f conftest.er1
14807   cat conftest.err >&5
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); } &&
14810          { ac_try='test -z "$ac_c_werror_flag"
14811                          || test ! -s conftest.err'
14812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813   (eval $ac_try) 2>&5
14814   ac_status=$?
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); }; } &&
14817          { ac_try='test -s conftest.$ac_objext'
14818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819   (eval $ac_try) 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); }; }; then
14823   ac_hi=$ac_mid
14824 else
14825   echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14827
14828 ac_lo=`expr '(' $ac_mid ')' + 1`
14829 fi
14830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14831 done
14832 case $ac_lo in
14833 ?*) ac_cv_sizeof_char=$ac_lo;;
14834 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14835 See \`config.log' for more details." >&5
14836 echo "$as_me: error: cannot compute sizeof (char), 77
14837 See \`config.log' for more details." >&2;}
14838    { (exit 1); exit 1; }; } ;;
14839 esac
14840 else
14841   if test "$cross_compiling" = yes; then
14842   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14843 See \`config.log' for more details." >&5
14844 echo "$as_me: error: cannot run test program while cross compiling
14845 See \`config.log' for more details." >&2;}
14846    { (exit 1); exit 1; }; }
14847 else
14848   cat >conftest.$ac_ext <<_ACEOF
14849 /* confdefs.h.  */
14850 _ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h.  */
14854 $ac_includes_default
14855 long longval () { return (long) (sizeof (char)); }
14856 unsigned long ulongval () { return (long) (sizeof (char)); }
14857 #include <stdio.h>
14858 #include <stdlib.h>
14859 int
14860 main ()
14861 {
14862
14863   FILE *f = fopen ("conftest.val", "w");
14864   if (! f)
14865     exit (1);
14866   if (((long) (sizeof (char))) < 0)
14867     {
14868       long i = longval ();
14869       if (i != ((long) (sizeof (char))))
14870         exit (1);
14871       fprintf (f, "%ld\n", i);
14872     }
14873   else
14874     {
14875       unsigned long i = ulongval ();
14876       if (i != ((long) (sizeof (char))))
14877         exit (1);
14878       fprintf (f, "%lu\n", i);
14879     }
14880   exit (ferror (f) || fclose (f) != 0);
14881
14882   ;
14883   return 0;
14884 }
14885 _ACEOF
14886 rm -f conftest$ac_exeext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888   (eval $ac_link) 2>&5
14889   ac_status=$?
14890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893   (eval $ac_try) 2>&5
14894   ac_status=$?
14895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896   (exit $ac_status); }; }; then
14897   ac_cv_sizeof_char=`cat conftest.val`
14898 else
14899   echo "$as_me: program exited with status $ac_status" >&5
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14902
14903 ( exit $ac_status )
14904 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14905 See \`config.log' for more details." >&5
14906 echo "$as_me: error: cannot compute sizeof (char), 77
14907 See \`config.log' for more details." >&2;}
14908    { (exit 1); exit 1; }; }
14909 fi
14910 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14911 fi
14912 fi
14913 rm -f conftest.val
14914 else
14915   ac_cv_sizeof_char=0
14916 fi
14917 fi
14918 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14919 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14920 cat >>confdefs.h <<_ACEOF
14921 #define SIZEOF_CHAR $ac_cv_sizeof_char
14922 _ACEOF
14923
14924
14925 echo "$as_me:$LINENO: checking for short int" >&5
14926 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14927 if test "${ac_cv_type_short_int+set}" = set; then
14928   echo $ECHO_N "(cached) $ECHO_C" >&6
14929 else
14930   cat >conftest.$ac_ext <<_ACEOF
14931 /* confdefs.h.  */
14932 _ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h.  */
14936 $ac_includes_default
14937 int
14938 main ()
14939 {
14940 if ((short int *) 0)
14941   return 0;
14942 if (sizeof (short int))
14943   return 0;
14944   ;
14945   return 0;
14946 }
14947 _ACEOF
14948 rm -f conftest.$ac_objext
14949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14950   (eval $ac_compile) 2>conftest.er1
14951   ac_status=$?
14952   grep -v '^ *+' conftest.er1 >conftest.err
14953   rm -f conftest.er1
14954   cat conftest.err >&5
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); } &&
14957          { ac_try='test -z "$ac_c_werror_flag"
14958                          || test ! -s conftest.err'
14959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14960   (eval $ac_try) 2>&5
14961   ac_status=$?
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); }; } &&
14964          { ac_try='test -s conftest.$ac_objext'
14965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14966   (eval $ac_try) 2>&5
14967   ac_status=$?
14968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969   (exit $ac_status); }; }; then
14970   ac_cv_type_short_int=yes
14971 else
14972   echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.$ac_ext >&5
14974
14975 ac_cv_type_short_int=no
14976 fi
14977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14978 fi
14979 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14980 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14981
14982 echo "$as_me:$LINENO: checking size of short int" >&5
14983 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14984 if test "${ac_cv_sizeof_short_int+set}" = set; then
14985   echo $ECHO_N "(cached) $ECHO_C" >&6
14986 else
14987   if test "$ac_cv_type_short_int" = yes; then
14988   # The cast to unsigned long works around a bug in the HP C Compiler
14989   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14990   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14991   # This bug is HP SR number 8606223364.
14992   if test "$cross_compiling" = yes; then
14993   # Depending upon the size, compute the lo and hi bounds.
14994 cat >conftest.$ac_ext <<_ACEOF
14995 /* confdefs.h.  */
14996 _ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h.  */
15000 $ac_includes_default
15001 int
15002 main ()
15003 {
15004 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15005 test_array [0] = 0
15006
15007   ;
15008   return 0;
15009 }
15010 _ACEOF
15011 rm -f conftest.$ac_objext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15013   (eval $ac_compile) 2>conftest.er1
15014   ac_status=$?
15015   grep -v '^ *+' conftest.er1 >conftest.err
15016   rm -f conftest.er1
15017   cat conftest.err >&5
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); } &&
15020          { ac_try='test -z "$ac_c_werror_flag"
15021                          || test ! -s conftest.err'
15022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023   (eval $ac_try) 2>&5
15024   ac_status=$?
15025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026   (exit $ac_status); }; } &&
15027          { ac_try='test -s conftest.$ac_objext'
15028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15029   (eval $ac_try) 2>&5
15030   ac_status=$?
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); }; }; then
15033   ac_lo=0 ac_mid=0
15034   while :; do
15035     cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h.  */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h.  */
15041 $ac_includes_default
15042 int
15043 main ()
15044 {
15045 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15046 test_array [0] = 0
15047
15048   ;
15049   return 0;
15050 }
15051 _ACEOF
15052 rm -f conftest.$ac_objext
15053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15054   (eval $ac_compile) 2>conftest.er1
15055   ac_status=$?
15056   grep -v '^ *+' conftest.er1 >conftest.err
15057   rm -f conftest.er1
15058   cat conftest.err >&5
15059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060   (exit $ac_status); } &&
15061          { ac_try='test -z "$ac_c_werror_flag"
15062                          || test ! -s conftest.err'
15063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064   (eval $ac_try) 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); }; } &&
15068          { ac_try='test -s conftest.$ac_objext'
15069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070   (eval $ac_try) 2>&5
15071   ac_status=$?
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); }; }; then
15074   ac_hi=$ac_mid; break
15075 else
15076   echo "$as_me: failed program was:" >&5
15077 sed 's/^/| /' conftest.$ac_ext >&5
15078
15079 ac_lo=`expr $ac_mid + 1`
15080                     if test $ac_lo -le $ac_mid; then
15081                       ac_lo= ac_hi=
15082                       break
15083                     fi
15084                     ac_mid=`expr 2 '*' $ac_mid + 1`
15085 fi
15086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15087   done
15088 else
15089   echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15091
15092 cat >conftest.$ac_ext <<_ACEOF
15093 /* confdefs.h.  */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h.  */
15098 $ac_includes_default
15099 int
15100 main ()
15101 {
15102 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15103 test_array [0] = 0
15104
15105   ;
15106   return 0;
15107 }
15108 _ACEOF
15109 rm -f conftest.$ac_objext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15111   (eval $ac_compile) 2>conftest.er1
15112   ac_status=$?
15113   grep -v '^ *+' conftest.er1 >conftest.err
15114   rm -f conftest.er1
15115   cat conftest.err >&5
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); } &&
15118          { ac_try='test -z "$ac_c_werror_flag"
15119                          || test ! -s conftest.err'
15120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121   (eval $ac_try) 2>&5
15122   ac_status=$?
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); }; } &&
15125          { ac_try='test -s conftest.$ac_objext'
15126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127   (eval $ac_try) 2>&5
15128   ac_status=$?
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); }; }; then
15131   ac_hi=-1 ac_mid=-1
15132   while :; do
15133     cat >conftest.$ac_ext <<_ACEOF
15134 /* confdefs.h.  */
15135 _ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h.  */
15139 $ac_includes_default
15140 int
15141 main ()
15142 {
15143 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15144 test_array [0] = 0
15145
15146   ;
15147   return 0;
15148 }
15149 _ACEOF
15150 rm -f conftest.$ac_objext
15151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15152   (eval $ac_compile) 2>conftest.er1
15153   ac_status=$?
15154   grep -v '^ *+' conftest.er1 >conftest.err
15155   rm -f conftest.er1
15156   cat conftest.err >&5
15157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); } &&
15159          { ac_try='test -z "$ac_c_werror_flag"
15160                          || test ! -s conftest.err'
15161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162   (eval $ac_try) 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); }; } &&
15166          { ac_try='test -s conftest.$ac_objext'
15167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168   (eval $ac_try) 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); }; }; then
15172   ac_lo=$ac_mid; break
15173 else
15174   echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15176
15177 ac_hi=`expr '(' $ac_mid ')' - 1`
15178                        if test $ac_mid -le $ac_hi; then
15179                          ac_lo= ac_hi=
15180                          break
15181                        fi
15182                        ac_mid=`expr 2 '*' $ac_mid`
15183 fi
15184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15185   done
15186 else
15187   echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15189
15190 ac_lo= ac_hi=
15191 fi
15192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15193 fi
15194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15195 # Binary search between lo and hi bounds.
15196 while test "x$ac_lo" != "x$ac_hi"; do
15197   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15198   cat >conftest.$ac_ext <<_ACEOF
15199 /* confdefs.h.  */
15200 _ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h.  */
15204 $ac_includes_default
15205 int
15206 main ()
15207 {
15208 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15209 test_array [0] = 0
15210
15211   ;
15212   return 0;
15213 }
15214 _ACEOF
15215 rm -f conftest.$ac_objext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15217   (eval $ac_compile) 2>conftest.er1
15218   ac_status=$?
15219   grep -v '^ *+' conftest.er1 >conftest.err
15220   rm -f conftest.er1
15221   cat conftest.err >&5
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } &&
15224          { ac_try='test -z "$ac_c_werror_flag"
15225                          || test ! -s conftest.err'
15226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227   (eval $ac_try) 2>&5
15228   ac_status=$?
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); }; } &&
15231          { ac_try='test -s conftest.$ac_objext'
15232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233   (eval $ac_try) 2>&5
15234   ac_status=$?
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); }; }; then
15237   ac_hi=$ac_mid
15238 else
15239   echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15241
15242 ac_lo=`expr '(' $ac_mid ')' + 1`
15243 fi
15244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15245 done
15246 case $ac_lo in
15247 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15248 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15249 See \`config.log' for more details." >&5
15250 echo "$as_me: error: cannot compute sizeof (short int), 77
15251 See \`config.log' for more details." >&2;}
15252    { (exit 1); exit 1; }; } ;;
15253 esac
15254 else
15255   if test "$cross_compiling" = yes; then
15256   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15257 See \`config.log' for more details." >&5
15258 echo "$as_me: error: cannot run test program while cross compiling
15259 See \`config.log' for more details." >&2;}
15260    { (exit 1); exit 1; }; }
15261 else
15262   cat >conftest.$ac_ext <<_ACEOF
15263 /* confdefs.h.  */
15264 _ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h.  */
15268 $ac_includes_default
15269 long longval () { return (long) (sizeof (short int)); }
15270 unsigned long ulongval () { return (long) (sizeof (short int)); }
15271 #include <stdio.h>
15272 #include <stdlib.h>
15273 int
15274 main ()
15275 {
15276
15277   FILE *f = fopen ("conftest.val", "w");
15278   if (! f)
15279     exit (1);
15280   if (((long) (sizeof (short int))) < 0)
15281     {
15282       long i = longval ();
15283       if (i != ((long) (sizeof (short int))))
15284         exit (1);
15285       fprintf (f, "%ld\n", i);
15286     }
15287   else
15288     {
15289       unsigned long i = ulongval ();
15290       if (i != ((long) (sizeof (short int))))
15291         exit (1);
15292       fprintf (f, "%lu\n", i);
15293     }
15294   exit (ferror (f) || fclose (f) != 0);
15295
15296   ;
15297   return 0;
15298 }
15299 _ACEOF
15300 rm -f conftest$ac_exeext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15302   (eval $ac_link) 2>&5
15303   ac_status=$?
15304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15307   (eval $ac_try) 2>&5
15308   ac_status=$?
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); }; }; then
15311   ac_cv_sizeof_short_int=`cat conftest.val`
15312 else
15313   echo "$as_me: program exited with status $ac_status" >&5
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15316
15317 ( exit $ac_status )
15318 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15319 See \`config.log' for more details." >&5
15320 echo "$as_me: error: cannot compute sizeof (short int), 77
15321 See \`config.log' for more details." >&2;}
15322    { (exit 1); exit 1; }; }
15323 fi
15324 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15325 fi
15326 fi
15327 rm -f conftest.val
15328 else
15329   ac_cv_sizeof_short_int=0
15330 fi
15331 fi
15332 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15333 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15334 cat >>confdefs.h <<_ACEOF
15335 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15336 _ACEOF
15337
15338
15339 echo "$as_me:$LINENO: checking for int" >&5
15340 echo $ECHO_N "checking for int... $ECHO_C" >&6
15341 if test "${ac_cv_type_int+set}" = set; then
15342   echo $ECHO_N "(cached) $ECHO_C" >&6
15343 else
15344   cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h.  */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h.  */
15350 $ac_includes_default
15351 int
15352 main ()
15353 {
15354 if ((int *) 0)
15355   return 0;
15356 if (sizeof (int))
15357   return 0;
15358   ;
15359   return 0;
15360 }
15361 _ACEOF
15362 rm -f conftest.$ac_objext
15363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15364   (eval $ac_compile) 2>conftest.er1
15365   ac_status=$?
15366   grep -v '^ *+' conftest.er1 >conftest.err
15367   rm -f conftest.er1
15368   cat conftest.err >&5
15369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370   (exit $ac_status); } &&
15371          { ac_try='test -z "$ac_c_werror_flag"
15372                          || test ! -s conftest.err'
15373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374   (eval $ac_try) 2>&5
15375   ac_status=$?
15376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); }; } &&
15378          { ac_try='test -s conftest.$ac_objext'
15379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380   (eval $ac_try) 2>&5
15381   ac_status=$?
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); }; }; then
15384   ac_cv_type_int=yes
15385 else
15386   echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389 ac_cv_type_int=no
15390 fi
15391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15392 fi
15393 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15394 echo "${ECHO_T}$ac_cv_type_int" >&6
15395
15396 echo "$as_me:$LINENO: checking size of int" >&5
15397 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15398 if test "${ac_cv_sizeof_int+set}" = set; then
15399   echo $ECHO_N "(cached) $ECHO_C" >&6
15400 else
15401   if test "$ac_cv_type_int" = yes; then
15402   # The cast to unsigned long works around a bug in the HP C Compiler
15403   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15404   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15405   # This bug is HP SR number 8606223364.
15406   if test "$cross_compiling" = yes; then
15407   # Depending upon the size, compute the lo and hi bounds.
15408 cat >conftest.$ac_ext <<_ACEOF
15409 /* confdefs.h.  */
15410 _ACEOF
15411 cat confdefs.h >>conftest.$ac_ext
15412 cat >>conftest.$ac_ext <<_ACEOF
15413 /* end confdefs.h.  */
15414 $ac_includes_default
15415 int
15416 main ()
15417 {
15418 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15419 test_array [0] = 0
15420
15421   ;
15422   return 0;
15423 }
15424 _ACEOF
15425 rm -f conftest.$ac_objext
15426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15427   (eval $ac_compile) 2>conftest.er1
15428   ac_status=$?
15429   grep -v '^ *+' conftest.er1 >conftest.err
15430   rm -f conftest.er1
15431   cat conftest.err >&5
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); } &&
15434          { ac_try='test -z "$ac_c_werror_flag"
15435                          || test ! -s conftest.err'
15436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437   (eval $ac_try) 2>&5
15438   ac_status=$?
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); }; } &&
15441          { ac_try='test -s conftest.$ac_objext'
15442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15443   (eval $ac_try) 2>&5
15444   ac_status=$?
15445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446   (exit $ac_status); }; }; then
15447   ac_lo=0 ac_mid=0
15448   while :; do
15449     cat >conftest.$ac_ext <<_ACEOF
15450 /* confdefs.h.  */
15451 _ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h.  */
15455 $ac_includes_default
15456 int
15457 main ()
15458 {
15459 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15460 test_array [0] = 0
15461
15462   ;
15463   return 0;
15464 }
15465 _ACEOF
15466 rm -f conftest.$ac_objext
15467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15468   (eval $ac_compile) 2>conftest.er1
15469   ac_status=$?
15470   grep -v '^ *+' conftest.er1 >conftest.err
15471   rm -f conftest.er1
15472   cat conftest.err >&5
15473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474   (exit $ac_status); } &&
15475          { ac_try='test -z "$ac_c_werror_flag"
15476                          || test ! -s conftest.err'
15477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478   (eval $ac_try) 2>&5
15479   ac_status=$?
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); }; } &&
15482          { ac_try='test -s conftest.$ac_objext'
15483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484   (eval $ac_try) 2>&5
15485   ac_status=$?
15486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487   (exit $ac_status); }; }; then
15488   ac_hi=$ac_mid; break
15489 else
15490   echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493 ac_lo=`expr $ac_mid + 1`
15494                     if test $ac_lo -le $ac_mid; then
15495                       ac_lo= ac_hi=
15496                       break
15497                     fi
15498                     ac_mid=`expr 2 '*' $ac_mid + 1`
15499 fi
15500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15501   done
15502 else
15503   echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15505
15506 cat >conftest.$ac_ext <<_ACEOF
15507 /* confdefs.h.  */
15508 _ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h.  */
15512 $ac_includes_default
15513 int
15514 main ()
15515 {
15516 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15517 test_array [0] = 0
15518
15519   ;
15520   return 0;
15521 }
15522 _ACEOF
15523 rm -f conftest.$ac_objext
15524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15525   (eval $ac_compile) 2>conftest.er1
15526   ac_status=$?
15527   grep -v '^ *+' conftest.er1 >conftest.err
15528   rm -f conftest.er1
15529   cat conftest.err >&5
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); } &&
15532          { ac_try='test -z "$ac_c_werror_flag"
15533                          || test ! -s conftest.err'
15534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15535   (eval $ac_try) 2>&5
15536   ac_status=$?
15537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538   (exit $ac_status); }; } &&
15539          { ac_try='test -s conftest.$ac_objext'
15540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15541   (eval $ac_try) 2>&5
15542   ac_status=$?
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); }; }; then
15545   ac_hi=-1 ac_mid=-1
15546   while :; do
15547     cat >conftest.$ac_ext <<_ACEOF
15548 /* confdefs.h.  */
15549 _ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h.  */
15553 $ac_includes_default
15554 int
15555 main ()
15556 {
15557 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15558 test_array [0] = 0
15559
15560   ;
15561   return 0;
15562 }
15563 _ACEOF
15564 rm -f conftest.$ac_objext
15565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15566   (eval $ac_compile) 2>conftest.er1
15567   ac_status=$?
15568   grep -v '^ *+' conftest.er1 >conftest.err
15569   rm -f conftest.er1
15570   cat conftest.err >&5
15571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572   (exit $ac_status); } &&
15573          { ac_try='test -z "$ac_c_werror_flag"
15574                          || test ! -s conftest.err'
15575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15576   (eval $ac_try) 2>&5
15577   ac_status=$?
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); }; } &&
15580          { ac_try='test -s conftest.$ac_objext'
15581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582   (eval $ac_try) 2>&5
15583   ac_status=$?
15584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); }; }; then
15586   ac_lo=$ac_mid; break
15587 else
15588   echo "$as_me: failed program was:" >&5
15589 sed 's/^/| /' conftest.$ac_ext >&5
15590
15591 ac_hi=`expr '(' $ac_mid ')' - 1`
15592                        if test $ac_mid -le $ac_hi; then
15593                          ac_lo= ac_hi=
15594                          break
15595                        fi
15596                        ac_mid=`expr 2 '*' $ac_mid`
15597 fi
15598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15599   done
15600 else
15601   echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15603
15604 ac_lo= ac_hi=
15605 fi
15606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15607 fi
15608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15609 # Binary search between lo and hi bounds.
15610 while test "x$ac_lo" != "x$ac_hi"; do
15611   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15612   cat >conftest.$ac_ext <<_ACEOF
15613 /* confdefs.h.  */
15614 _ACEOF
15615 cat confdefs.h >>conftest.$ac_ext
15616 cat >>conftest.$ac_ext <<_ACEOF
15617 /* end confdefs.h.  */
15618 $ac_includes_default
15619 int
15620 main ()
15621 {
15622 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15623 test_array [0] = 0
15624
15625   ;
15626   return 0;
15627 }
15628 _ACEOF
15629 rm -f conftest.$ac_objext
15630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15631   (eval $ac_compile) 2>conftest.er1
15632   ac_status=$?
15633   grep -v '^ *+' conftest.er1 >conftest.err
15634   rm -f conftest.er1
15635   cat conftest.err >&5
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); } &&
15638          { ac_try='test -z "$ac_c_werror_flag"
15639                          || test ! -s conftest.err'
15640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15641   (eval $ac_try) 2>&5
15642   ac_status=$?
15643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644   (exit $ac_status); }; } &&
15645          { ac_try='test -s conftest.$ac_objext'
15646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647   (eval $ac_try) 2>&5
15648   ac_status=$?
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); }; }; then
15651   ac_hi=$ac_mid
15652 else
15653   echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15655
15656 ac_lo=`expr '(' $ac_mid ')' + 1`
15657 fi
15658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15659 done
15660 case $ac_lo in
15661 ?*) ac_cv_sizeof_int=$ac_lo;;
15662 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15663 See \`config.log' for more details." >&5
15664 echo "$as_me: error: cannot compute sizeof (int), 77
15665 See \`config.log' for more details." >&2;}
15666    { (exit 1); exit 1; }; } ;;
15667 esac
15668 else
15669   if test "$cross_compiling" = yes; then
15670   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15671 See \`config.log' for more details." >&5
15672 echo "$as_me: error: cannot run test program while cross compiling
15673 See \`config.log' for more details." >&2;}
15674    { (exit 1); exit 1; }; }
15675 else
15676   cat >conftest.$ac_ext <<_ACEOF
15677 /* confdefs.h.  */
15678 _ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h.  */
15682 $ac_includes_default
15683 long longval () { return (long) (sizeof (int)); }
15684 unsigned long ulongval () { return (long) (sizeof (int)); }
15685 #include <stdio.h>
15686 #include <stdlib.h>
15687 int
15688 main ()
15689 {
15690
15691   FILE *f = fopen ("conftest.val", "w");
15692   if (! f)
15693     exit (1);
15694   if (((long) (sizeof (int))) < 0)
15695     {
15696       long i = longval ();
15697       if (i != ((long) (sizeof (int))))
15698         exit (1);
15699       fprintf (f, "%ld\n", i);
15700     }
15701   else
15702     {
15703       unsigned long i = ulongval ();
15704       if (i != ((long) (sizeof (int))))
15705         exit (1);
15706       fprintf (f, "%lu\n", i);
15707     }
15708   exit (ferror (f) || fclose (f) != 0);
15709
15710   ;
15711   return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest$ac_exeext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15716   (eval $ac_link) 2>&5
15717   ac_status=$?
15718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721   (eval $ac_try) 2>&5
15722   ac_status=$?
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); }; }; then
15725   ac_cv_sizeof_int=`cat conftest.val`
15726 else
15727   echo "$as_me: program exited with status $ac_status" >&5
15728 echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15730
15731 ( exit $ac_status )
15732 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15733 See \`config.log' for more details." >&5
15734 echo "$as_me: error: cannot compute sizeof (int), 77
15735 See \`config.log' for more details." >&2;}
15736    { (exit 1); exit 1; }; }
15737 fi
15738 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15739 fi
15740 fi
15741 rm -f conftest.val
15742 else
15743   ac_cv_sizeof_int=0
15744 fi
15745 fi
15746 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15747 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15748 cat >>confdefs.h <<_ACEOF
15749 #define SIZEOF_INT $ac_cv_sizeof_int
15750 _ACEOF
15751
15752
15753 echo "$as_me:$LINENO: checking for long int" >&5
15754 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15755 if test "${ac_cv_type_long_int+set}" = set; then
15756   echo $ECHO_N "(cached) $ECHO_C" >&6
15757 else
15758   cat >conftest.$ac_ext <<_ACEOF
15759 /* confdefs.h.  */
15760 _ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h.  */
15764 $ac_includes_default
15765 int
15766 main ()
15767 {
15768 if ((long int *) 0)
15769   return 0;
15770 if (sizeof (long int))
15771   return 0;
15772   ;
15773   return 0;
15774 }
15775 _ACEOF
15776 rm -f conftest.$ac_objext
15777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15778   (eval $ac_compile) 2>conftest.er1
15779   ac_status=$?
15780   grep -v '^ *+' conftest.er1 >conftest.err
15781   rm -f conftest.er1
15782   cat conftest.err >&5
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); } &&
15785          { ac_try='test -z "$ac_c_werror_flag"
15786                          || test ! -s conftest.err'
15787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788   (eval $ac_try) 2>&5
15789   ac_status=$?
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); }; } &&
15792          { ac_try='test -s conftest.$ac_objext'
15793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794   (eval $ac_try) 2>&5
15795   ac_status=$?
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); }; }; then
15798   ac_cv_type_long_int=yes
15799 else
15800   echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.$ac_ext >&5
15802
15803 ac_cv_type_long_int=no
15804 fi
15805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15806 fi
15807 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15808 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15809
15810 echo "$as_me:$LINENO: checking size of long int" >&5
15811 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15812 if test "${ac_cv_sizeof_long_int+set}" = set; then
15813   echo $ECHO_N "(cached) $ECHO_C" >&6
15814 else
15815   if test "$ac_cv_type_long_int" = yes; then
15816   # The cast to unsigned long works around a bug in the HP C Compiler
15817   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15818   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15819   # This bug is HP SR number 8606223364.
15820   if test "$cross_compiling" = yes; then
15821   # Depending upon the size, compute the lo and hi bounds.
15822 cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h.  */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h.  */
15828 $ac_includes_default
15829 int
15830 main ()
15831 {
15832 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15833 test_array [0] = 0
15834
15835   ;
15836   return 0;
15837 }
15838 _ACEOF
15839 rm -f conftest.$ac_objext
15840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15841   (eval $ac_compile) 2>conftest.er1
15842   ac_status=$?
15843   grep -v '^ *+' conftest.er1 >conftest.err
15844   rm -f conftest.er1
15845   cat conftest.err >&5
15846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847   (exit $ac_status); } &&
15848          { ac_try='test -z "$ac_c_werror_flag"
15849                          || test ! -s conftest.err'
15850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851   (eval $ac_try) 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }; } &&
15855          { ac_try='test -s conftest.$ac_objext'
15856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15857   (eval $ac_try) 2>&5
15858   ac_status=$?
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); }; }; then
15861   ac_lo=0 ac_mid=0
15862   while :; do
15863     cat >conftest.$ac_ext <<_ACEOF
15864 /* confdefs.h.  */
15865 _ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h.  */
15869 $ac_includes_default
15870 int
15871 main ()
15872 {
15873 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15874 test_array [0] = 0
15875
15876   ;
15877   return 0;
15878 }
15879 _ACEOF
15880 rm -f conftest.$ac_objext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15882   (eval $ac_compile) 2>conftest.er1
15883   ac_status=$?
15884   grep -v '^ *+' conftest.er1 >conftest.err
15885   rm -f conftest.er1
15886   cat conftest.err >&5
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } &&
15889          { ac_try='test -z "$ac_c_werror_flag"
15890                          || test ! -s conftest.err'
15891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892   (eval $ac_try) 2>&5
15893   ac_status=$?
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); }; } &&
15896          { ac_try='test -s conftest.$ac_objext'
15897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898   (eval $ac_try) 2>&5
15899   ac_status=$?
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); }; }; then
15902   ac_hi=$ac_mid; break
15903 else
15904   echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15906
15907 ac_lo=`expr $ac_mid + 1`
15908                     if test $ac_lo -le $ac_mid; then
15909                       ac_lo= ac_hi=
15910                       break
15911                     fi
15912                     ac_mid=`expr 2 '*' $ac_mid + 1`
15913 fi
15914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15915   done
15916 else
15917   echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920 cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h.  */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h.  */
15926 $ac_includes_default
15927 int
15928 main ()
15929 {
15930 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15931 test_array [0] = 0
15932
15933   ;
15934   return 0;
15935 }
15936 _ACEOF
15937 rm -f conftest.$ac_objext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15939   (eval $ac_compile) 2>conftest.er1
15940   ac_status=$?
15941   grep -v '^ *+' conftest.er1 >conftest.err
15942   rm -f conftest.er1
15943   cat conftest.err >&5
15944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945   (exit $ac_status); } &&
15946          { ac_try='test -z "$ac_c_werror_flag"
15947                          || test ! -s conftest.err'
15948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949   (eval $ac_try) 2>&5
15950   ac_status=$?
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); }; } &&
15953          { ac_try='test -s conftest.$ac_objext'
15954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955   (eval $ac_try) 2>&5
15956   ac_status=$?
15957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958   (exit $ac_status); }; }; then
15959   ac_hi=-1 ac_mid=-1
15960   while :; do
15961     cat >conftest.$ac_ext <<_ACEOF
15962 /* confdefs.h.  */
15963 _ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h.  */
15967 $ac_includes_default
15968 int
15969 main ()
15970 {
15971 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15972 test_array [0] = 0
15973
15974   ;
15975   return 0;
15976 }
15977 _ACEOF
15978 rm -f conftest.$ac_objext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15980   (eval $ac_compile) 2>conftest.er1
15981   ac_status=$?
15982   grep -v '^ *+' conftest.er1 >conftest.err
15983   rm -f conftest.er1
15984   cat conftest.err >&5
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); } &&
15987          { ac_try='test -z "$ac_c_werror_flag"
15988                          || test ! -s conftest.err'
15989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15990   (eval $ac_try) 2>&5
15991   ac_status=$?
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); }; } &&
15994          { ac_try='test -s conftest.$ac_objext'
15995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996   (eval $ac_try) 2>&5
15997   ac_status=$?
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); }; }; then
16000   ac_lo=$ac_mid; break
16001 else
16002   echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16004
16005 ac_hi=`expr '(' $ac_mid ')' - 1`
16006                        if test $ac_mid -le $ac_hi; then
16007                          ac_lo= ac_hi=
16008                          break
16009                        fi
16010                        ac_mid=`expr 2 '*' $ac_mid`
16011 fi
16012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16013   done
16014 else
16015   echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16017
16018 ac_lo= ac_hi=
16019 fi
16020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16021 fi
16022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16023 # Binary search between lo and hi bounds.
16024 while test "x$ac_lo" != "x$ac_hi"; do
16025   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16026   cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h.  */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h.  */
16032 $ac_includes_default
16033 int
16034 main ()
16035 {
16036 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16037 test_array [0] = 0
16038
16039   ;
16040   return 0;
16041 }
16042 _ACEOF
16043 rm -f conftest.$ac_objext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16045   (eval $ac_compile) 2>conftest.er1
16046   ac_status=$?
16047   grep -v '^ *+' conftest.er1 >conftest.err
16048   rm -f conftest.er1
16049   cat conftest.err >&5
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); } &&
16052          { ac_try='test -z "$ac_c_werror_flag"
16053                          || test ! -s conftest.err'
16054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055   (eval $ac_try) 2>&5
16056   ac_status=$?
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); }; } &&
16059          { ac_try='test -s conftest.$ac_objext'
16060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061   (eval $ac_try) 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); }; }; then
16065   ac_hi=$ac_mid
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070 ac_lo=`expr '(' $ac_mid ')' + 1`
16071 fi
16072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16073 done
16074 case $ac_lo in
16075 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16076 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16077 See \`config.log' for more details." >&5
16078 echo "$as_me: error: cannot compute sizeof (long int), 77
16079 See \`config.log' for more details." >&2;}
16080    { (exit 1); exit 1; }; } ;;
16081 esac
16082 else
16083   if test "$cross_compiling" = yes; then
16084   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16085 See \`config.log' for more details." >&5
16086 echo "$as_me: error: cannot run test program while cross compiling
16087 See \`config.log' for more details." >&2;}
16088    { (exit 1); exit 1; }; }
16089 else
16090   cat >conftest.$ac_ext <<_ACEOF
16091 /* confdefs.h.  */
16092 _ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h.  */
16096 $ac_includes_default
16097 long longval () { return (long) (sizeof (long int)); }
16098 unsigned long ulongval () { return (long) (sizeof (long int)); }
16099 #include <stdio.h>
16100 #include <stdlib.h>
16101 int
16102 main ()
16103 {
16104
16105   FILE *f = fopen ("conftest.val", "w");
16106   if (! f)
16107     exit (1);
16108   if (((long) (sizeof (long int))) < 0)
16109     {
16110       long i = longval ();
16111       if (i != ((long) (sizeof (long int))))
16112         exit (1);
16113       fprintf (f, "%ld\n", i);
16114     }
16115   else
16116     {
16117       unsigned long i = ulongval ();
16118       if (i != ((long) (sizeof (long int))))
16119         exit (1);
16120       fprintf (f, "%lu\n", i);
16121     }
16122   exit (ferror (f) || fclose (f) != 0);
16123
16124   ;
16125   return 0;
16126 }
16127 _ACEOF
16128 rm -f conftest$ac_exeext
16129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16130   (eval $ac_link) 2>&5
16131   ac_status=$?
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135   (eval $ac_try) 2>&5
16136   ac_status=$?
16137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138   (exit $ac_status); }; }; then
16139   ac_cv_sizeof_long_int=`cat conftest.val`
16140 else
16141   echo "$as_me: program exited with status $ac_status" >&5
16142 echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16144
16145 ( exit $ac_status )
16146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16147 See \`config.log' for more details." >&5
16148 echo "$as_me: error: cannot compute sizeof (long int), 77
16149 See \`config.log' for more details." >&2;}
16150    { (exit 1); exit 1; }; }
16151 fi
16152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16153 fi
16154 fi
16155 rm -f conftest.val
16156 else
16157   ac_cv_sizeof_long_int=0
16158 fi
16159 fi
16160 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16161 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16162 cat >>confdefs.h <<_ACEOF
16163 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16164 _ACEOF
16165
16166
16167 echo "$as_me:$LINENO: checking for long long int" >&5
16168 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16169 if test "${ac_cv_type_long_long_int+set}" = set; then
16170   echo $ECHO_N "(cached) $ECHO_C" >&6
16171 else
16172   cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h.  */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h.  */
16178 $ac_includes_default
16179 int
16180 main ()
16181 {
16182 if ((long long int *) 0)
16183   return 0;
16184 if (sizeof (long long int))
16185   return 0;
16186   ;
16187   return 0;
16188 }
16189 _ACEOF
16190 rm -f conftest.$ac_objext
16191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16192   (eval $ac_compile) 2>conftest.er1
16193   ac_status=$?
16194   grep -v '^ *+' conftest.er1 >conftest.err
16195   rm -f conftest.er1
16196   cat conftest.err >&5
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); } &&
16199          { ac_try='test -z "$ac_c_werror_flag"
16200                          || test ! -s conftest.err'
16201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202   (eval $ac_try) 2>&5
16203   ac_status=$?
16204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205   (exit $ac_status); }; } &&
16206          { ac_try='test -s conftest.$ac_objext'
16207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208   (eval $ac_try) 2>&5
16209   ac_status=$?
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); }; }; then
16212   ac_cv_type_long_long_int=yes
16213 else
16214   echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16216
16217 ac_cv_type_long_long_int=no
16218 fi
16219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16220 fi
16221 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16222 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16223
16224 echo "$as_me:$LINENO: checking size of long long int" >&5
16225 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16226 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16227   echo $ECHO_N "(cached) $ECHO_C" >&6
16228 else
16229   if test "$ac_cv_type_long_long_int" = yes; then
16230   # The cast to unsigned long works around a bug in the HP C Compiler
16231   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16232   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16233   # This bug is HP SR number 8606223364.
16234   if test "$cross_compiling" = yes; then
16235   # Depending upon the size, compute the lo and hi bounds.
16236 cat >conftest.$ac_ext <<_ACEOF
16237 /* confdefs.h.  */
16238 _ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h.  */
16242 $ac_includes_default
16243 int
16244 main ()
16245 {
16246 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16247 test_array [0] = 0
16248
16249   ;
16250   return 0;
16251 }
16252 _ACEOF
16253 rm -f conftest.$ac_objext
16254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16255   (eval $ac_compile) 2>conftest.er1
16256   ac_status=$?
16257   grep -v '^ *+' conftest.er1 >conftest.err
16258   rm -f conftest.er1
16259   cat conftest.err >&5
16260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261   (exit $ac_status); } &&
16262          { ac_try='test -z "$ac_c_werror_flag"
16263                          || test ! -s conftest.err'
16264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265   (eval $ac_try) 2>&5
16266   ac_status=$?
16267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268   (exit $ac_status); }; } &&
16269          { ac_try='test -s conftest.$ac_objext'
16270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271   (eval $ac_try) 2>&5
16272   ac_status=$?
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); }; }; then
16275   ac_lo=0 ac_mid=0
16276   while :; do
16277     cat >conftest.$ac_ext <<_ACEOF
16278 /* confdefs.h.  */
16279 _ACEOF
16280 cat confdefs.h >>conftest.$ac_ext
16281 cat >>conftest.$ac_ext <<_ACEOF
16282 /* end confdefs.h.  */
16283 $ac_includes_default
16284 int
16285 main ()
16286 {
16287 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16288 test_array [0] = 0
16289
16290   ;
16291   return 0;
16292 }
16293 _ACEOF
16294 rm -f conftest.$ac_objext
16295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16296   (eval $ac_compile) 2>conftest.er1
16297   ac_status=$?
16298   grep -v '^ *+' conftest.er1 >conftest.err
16299   rm -f conftest.er1
16300   cat conftest.err >&5
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); } &&
16303          { ac_try='test -z "$ac_c_werror_flag"
16304                          || test ! -s conftest.err'
16305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306   (eval $ac_try) 2>&5
16307   ac_status=$?
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); }; } &&
16310          { ac_try='test -s conftest.$ac_objext'
16311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312   (eval $ac_try) 2>&5
16313   ac_status=$?
16314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); }; }; then
16316   ac_hi=$ac_mid; break
16317 else
16318   echo "$as_me: failed program was:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16320
16321 ac_lo=`expr $ac_mid + 1`
16322                     if test $ac_lo -le $ac_mid; then
16323                       ac_lo= ac_hi=
16324                       break
16325                     fi
16326                     ac_mid=`expr 2 '*' $ac_mid + 1`
16327 fi
16328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16329   done
16330 else
16331   echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16333
16334 cat >conftest.$ac_ext <<_ACEOF
16335 /* confdefs.h.  */
16336 _ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h.  */
16340 $ac_includes_default
16341 int
16342 main ()
16343 {
16344 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16345 test_array [0] = 0
16346
16347   ;
16348   return 0;
16349 }
16350 _ACEOF
16351 rm -f conftest.$ac_objext
16352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16353   (eval $ac_compile) 2>conftest.er1
16354   ac_status=$?
16355   grep -v '^ *+' conftest.er1 >conftest.err
16356   rm -f conftest.er1
16357   cat conftest.err >&5
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); } &&
16360          { ac_try='test -z "$ac_c_werror_flag"
16361                          || test ! -s conftest.err'
16362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363   (eval $ac_try) 2>&5
16364   ac_status=$?
16365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); }; } &&
16367          { ac_try='test -s conftest.$ac_objext'
16368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369   (eval $ac_try) 2>&5
16370   ac_status=$?
16371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372   (exit $ac_status); }; }; then
16373   ac_hi=-1 ac_mid=-1
16374   while :; do
16375     cat >conftest.$ac_ext <<_ACEOF
16376 /* confdefs.h.  */
16377 _ACEOF
16378 cat confdefs.h >>conftest.$ac_ext
16379 cat >>conftest.$ac_ext <<_ACEOF
16380 /* end confdefs.h.  */
16381 $ac_includes_default
16382 int
16383 main ()
16384 {
16385 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16386 test_array [0] = 0
16387
16388   ;
16389   return 0;
16390 }
16391 _ACEOF
16392 rm -f conftest.$ac_objext
16393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16394   (eval $ac_compile) 2>conftest.er1
16395   ac_status=$?
16396   grep -v '^ *+' conftest.er1 >conftest.err
16397   rm -f conftest.er1
16398   cat conftest.err >&5
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); } &&
16401          { ac_try='test -z "$ac_c_werror_flag"
16402                          || test ! -s conftest.err'
16403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404   (eval $ac_try) 2>&5
16405   ac_status=$?
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   (exit $ac_status); }; } &&
16408          { ac_try='test -s conftest.$ac_objext'
16409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410   (eval $ac_try) 2>&5
16411   ac_status=$?
16412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); }; }; then
16414   ac_lo=$ac_mid; break
16415 else
16416   echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16418
16419 ac_hi=`expr '(' $ac_mid ')' - 1`
16420                        if test $ac_mid -le $ac_hi; then
16421                          ac_lo= ac_hi=
16422                          break
16423                        fi
16424                        ac_mid=`expr 2 '*' $ac_mid`
16425 fi
16426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16427   done
16428 else
16429   echo "$as_me: failed program was:" >&5
16430 sed 's/^/| /' conftest.$ac_ext >&5
16431
16432 ac_lo= ac_hi=
16433 fi
16434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16435 fi
16436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16437 # Binary search between lo and hi bounds.
16438 while test "x$ac_lo" != "x$ac_hi"; do
16439   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16440   cat >conftest.$ac_ext <<_ACEOF
16441 /* confdefs.h.  */
16442 _ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h.  */
16446 $ac_includes_default
16447 int
16448 main ()
16449 {
16450 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16451 test_array [0] = 0
16452
16453   ;
16454   return 0;
16455 }
16456 _ACEOF
16457 rm -f conftest.$ac_objext
16458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16459   (eval $ac_compile) 2>conftest.er1
16460   ac_status=$?
16461   grep -v '^ *+' conftest.er1 >conftest.err
16462   rm -f conftest.er1
16463   cat conftest.err >&5
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); } &&
16466          { ac_try='test -z "$ac_c_werror_flag"
16467                          || test ! -s conftest.err'
16468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469   (eval $ac_try) 2>&5
16470   ac_status=$?
16471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); }; } &&
16473          { ac_try='test -s conftest.$ac_objext'
16474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16475   (eval $ac_try) 2>&5
16476   ac_status=$?
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   (exit $ac_status); }; }; then
16479   ac_hi=$ac_mid
16480 else
16481   echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16483
16484 ac_lo=`expr '(' $ac_mid ')' + 1`
16485 fi
16486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16487 done
16488 case $ac_lo in
16489 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16490 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16491 See \`config.log' for more details." >&5
16492 echo "$as_me: error: cannot compute sizeof (long long int), 77
16493 See \`config.log' for more details." >&2;}
16494    { (exit 1); exit 1; }; } ;;
16495 esac
16496 else
16497   if test "$cross_compiling" = yes; then
16498   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16499 See \`config.log' for more details." >&5
16500 echo "$as_me: error: cannot run test program while cross compiling
16501 See \`config.log' for more details." >&2;}
16502    { (exit 1); exit 1; }; }
16503 else
16504   cat >conftest.$ac_ext <<_ACEOF
16505 /* confdefs.h.  */
16506 _ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h.  */
16510 $ac_includes_default
16511 long longval () { return (long) (sizeof (long long int)); }
16512 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16513 #include <stdio.h>
16514 #include <stdlib.h>
16515 int
16516 main ()
16517 {
16518
16519   FILE *f = fopen ("conftest.val", "w");
16520   if (! f)
16521     exit (1);
16522   if (((long) (sizeof (long long int))) < 0)
16523     {
16524       long i = longval ();
16525       if (i != ((long) (sizeof (long long int))))
16526         exit (1);
16527       fprintf (f, "%ld\n", i);
16528     }
16529   else
16530     {
16531       unsigned long i = ulongval ();
16532       if (i != ((long) (sizeof (long long int))))
16533         exit (1);
16534       fprintf (f, "%lu\n", i);
16535     }
16536   exit (ferror (f) || fclose (f) != 0);
16537
16538   ;
16539   return 0;
16540 }
16541 _ACEOF
16542 rm -f conftest$ac_exeext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16544   (eval $ac_link) 2>&5
16545   ac_status=$?
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549   (eval $ac_try) 2>&5
16550   ac_status=$?
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); }; }; then
16553   ac_cv_sizeof_long_long_int=`cat conftest.val`
16554 else
16555   echo "$as_me: program exited with status $ac_status" >&5
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16558
16559 ( exit $ac_status )
16560 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16561 See \`config.log' for more details." >&5
16562 echo "$as_me: error: cannot compute sizeof (long long int), 77
16563 See \`config.log' for more details." >&2;}
16564    { (exit 1); exit 1; }; }
16565 fi
16566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16567 fi
16568 fi
16569 rm -f conftest.val
16570 else
16571   ac_cv_sizeof_long_long_int=0
16572 fi
16573 fi
16574 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16575 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16576 cat >>confdefs.h <<_ACEOF
16577 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16578 _ACEOF
16579
16580
16581 echo "$as_me:$LINENO: checking for int *" >&5
16582 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16583 if test "${ac_cv_type_int_p+set}" = set; then
16584   echo $ECHO_N "(cached) $ECHO_C" >&6
16585 else
16586   cat >conftest.$ac_ext <<_ACEOF
16587 /* confdefs.h.  */
16588 _ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h.  */
16592 $ac_includes_default
16593 int
16594 main ()
16595 {
16596 if ((int * *) 0)
16597   return 0;
16598 if (sizeof (int *))
16599   return 0;
16600   ;
16601   return 0;
16602 }
16603 _ACEOF
16604 rm -f conftest.$ac_objext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16606   (eval $ac_compile) 2>conftest.er1
16607   ac_status=$?
16608   grep -v '^ *+' conftest.er1 >conftest.err
16609   rm -f conftest.er1
16610   cat conftest.err >&5
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); } &&
16613          { ac_try='test -z "$ac_c_werror_flag"
16614                          || test ! -s conftest.err'
16615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616   (eval $ac_try) 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); }; } &&
16620          { ac_try='test -s conftest.$ac_objext'
16621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622   (eval $ac_try) 2>&5
16623   ac_status=$?
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); }; }; then
16626   ac_cv_type_int_p=yes
16627 else
16628   echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631 ac_cv_type_int_p=no
16632 fi
16633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16634 fi
16635 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16636 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16637
16638 echo "$as_me:$LINENO: checking size of int *" >&5
16639 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16640 if test "${ac_cv_sizeof_int_p+set}" = set; then
16641   echo $ECHO_N "(cached) $ECHO_C" >&6
16642 else
16643   if test "$ac_cv_type_int_p" = yes; then
16644   # The cast to unsigned long works around a bug in the HP C Compiler
16645   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16646   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16647   # This bug is HP SR number 8606223364.
16648   if test "$cross_compiling" = yes; then
16649   # Depending upon the size, compute the lo and hi bounds.
16650 cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h.  */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h.  */
16656 $ac_includes_default
16657 int
16658 main ()
16659 {
16660 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16661 test_array [0] = 0
16662
16663   ;
16664   return 0;
16665 }
16666 _ACEOF
16667 rm -f conftest.$ac_objext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16669   (eval $ac_compile) 2>conftest.er1
16670   ac_status=$?
16671   grep -v '^ *+' conftest.er1 >conftest.err
16672   rm -f conftest.er1
16673   cat conftest.err >&5
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } &&
16676          { ac_try='test -z "$ac_c_werror_flag"
16677                          || test ! -s conftest.err'
16678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679   (eval $ac_try) 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; } &&
16683          { ac_try='test -s conftest.$ac_objext'
16684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685   (eval $ac_try) 2>&5
16686   ac_status=$?
16687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688   (exit $ac_status); }; }; then
16689   ac_lo=0 ac_mid=0
16690   while :; do
16691     cat >conftest.$ac_ext <<_ACEOF
16692 /* confdefs.h.  */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h.  */
16697 $ac_includes_default
16698 int
16699 main ()
16700 {
16701 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16702 test_array [0] = 0
16703
16704   ;
16705   return 0;
16706 }
16707 _ACEOF
16708 rm -f conftest.$ac_objext
16709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16710   (eval $ac_compile) 2>conftest.er1
16711   ac_status=$?
16712   grep -v '^ *+' conftest.er1 >conftest.err
16713   rm -f conftest.er1
16714   cat conftest.err >&5
16715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716   (exit $ac_status); } &&
16717          { ac_try='test -z "$ac_c_werror_flag"
16718                          || test ! -s conftest.err'
16719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16720   (eval $ac_try) 2>&5
16721   ac_status=$?
16722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723   (exit $ac_status); }; } &&
16724          { ac_try='test -s conftest.$ac_objext'
16725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726   (eval $ac_try) 2>&5
16727   ac_status=$?
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); }; }; then
16730   ac_hi=$ac_mid; break
16731 else
16732   echo "$as_me: failed program was:" >&5
16733 sed 's/^/| /' conftest.$ac_ext >&5
16734
16735 ac_lo=`expr $ac_mid + 1`
16736                     if test $ac_lo -le $ac_mid; then
16737                       ac_lo= ac_hi=
16738                       break
16739                     fi
16740                     ac_mid=`expr 2 '*' $ac_mid + 1`
16741 fi
16742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16743   done
16744 else
16745   echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16747
16748 cat >conftest.$ac_ext <<_ACEOF
16749 /* confdefs.h.  */
16750 _ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h.  */
16754 $ac_includes_default
16755 int
16756 main ()
16757 {
16758 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16759 test_array [0] = 0
16760
16761   ;
16762   return 0;
16763 }
16764 _ACEOF
16765 rm -f conftest.$ac_objext
16766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16767   (eval $ac_compile) 2>conftest.er1
16768   ac_status=$?
16769   grep -v '^ *+' conftest.er1 >conftest.err
16770   rm -f conftest.er1
16771   cat conftest.err >&5
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); } &&
16774          { ac_try='test -z "$ac_c_werror_flag"
16775                          || test ! -s conftest.err'
16776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777   (eval $ac_try) 2>&5
16778   ac_status=$?
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); }; } &&
16781          { ac_try='test -s conftest.$ac_objext'
16782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783   (eval $ac_try) 2>&5
16784   ac_status=$?
16785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786   (exit $ac_status); }; }; then
16787   ac_hi=-1 ac_mid=-1
16788   while :; do
16789     cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h.  */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h.  */
16795 $ac_includes_default
16796 int
16797 main ()
16798 {
16799 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16800 test_array [0] = 0
16801
16802   ;
16803   return 0;
16804 }
16805 _ACEOF
16806 rm -f conftest.$ac_objext
16807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16808   (eval $ac_compile) 2>conftest.er1
16809   ac_status=$?
16810   grep -v '^ *+' conftest.er1 >conftest.err
16811   rm -f conftest.er1
16812   cat conftest.err >&5
16813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814   (exit $ac_status); } &&
16815          { ac_try='test -z "$ac_c_werror_flag"
16816                          || test ! -s conftest.err'
16817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818   (eval $ac_try) 2>&5
16819   ac_status=$?
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); }; } &&
16822          { ac_try='test -s conftest.$ac_objext'
16823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824   (eval $ac_try) 2>&5
16825   ac_status=$?
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); }; }; then
16828   ac_lo=$ac_mid; break
16829 else
16830   echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16832
16833 ac_hi=`expr '(' $ac_mid ')' - 1`
16834                        if test $ac_mid -le $ac_hi; then
16835                          ac_lo= ac_hi=
16836                          break
16837                        fi
16838                        ac_mid=`expr 2 '*' $ac_mid`
16839 fi
16840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16841   done
16842 else
16843   echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16845
16846 ac_lo= ac_hi=
16847 fi
16848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16849 fi
16850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16851 # Binary search between lo and hi bounds.
16852 while test "x$ac_lo" != "x$ac_hi"; do
16853   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16854   cat >conftest.$ac_ext <<_ACEOF
16855 /* confdefs.h.  */
16856 _ACEOF
16857 cat confdefs.h >>conftest.$ac_ext
16858 cat >>conftest.$ac_ext <<_ACEOF
16859 /* end confdefs.h.  */
16860 $ac_includes_default
16861 int
16862 main ()
16863 {
16864 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16865 test_array [0] = 0
16866
16867   ;
16868   return 0;
16869 }
16870 _ACEOF
16871 rm -f conftest.$ac_objext
16872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16873   (eval $ac_compile) 2>conftest.er1
16874   ac_status=$?
16875   grep -v '^ *+' conftest.er1 >conftest.err
16876   rm -f conftest.er1
16877   cat conftest.err >&5
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); } &&
16880          { ac_try='test -z "$ac_c_werror_flag"
16881                          || test ! -s conftest.err'
16882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883   (eval $ac_try) 2>&5
16884   ac_status=$?
16885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886   (exit $ac_status); }; } &&
16887          { ac_try='test -s conftest.$ac_objext'
16888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889   (eval $ac_try) 2>&5
16890   ac_status=$?
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); }; }; then
16893   ac_hi=$ac_mid
16894 else
16895   echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16897
16898 ac_lo=`expr '(' $ac_mid ')' + 1`
16899 fi
16900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16901 done
16902 case $ac_lo in
16903 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16904 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16905 See \`config.log' for more details." >&5
16906 echo "$as_me: error: cannot compute sizeof (int *), 77
16907 See \`config.log' for more details." >&2;}
16908    { (exit 1); exit 1; }; } ;;
16909 esac
16910 else
16911   if test "$cross_compiling" = yes; then
16912   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16913 See \`config.log' for more details." >&5
16914 echo "$as_me: error: cannot run test program while cross compiling
16915 See \`config.log' for more details." >&2;}
16916    { (exit 1); exit 1; }; }
16917 else
16918   cat >conftest.$ac_ext <<_ACEOF
16919 /* confdefs.h.  */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h.  */
16924 $ac_includes_default
16925 long longval () { return (long) (sizeof (int *)); }
16926 unsigned long ulongval () { return (long) (sizeof (int *)); }
16927 #include <stdio.h>
16928 #include <stdlib.h>
16929 int
16930 main ()
16931 {
16932
16933   FILE *f = fopen ("conftest.val", "w");
16934   if (! f)
16935     exit (1);
16936   if (((long) (sizeof (int *))) < 0)
16937     {
16938       long i = longval ();
16939       if (i != ((long) (sizeof (int *))))
16940         exit (1);
16941       fprintf (f, "%ld\n", i);
16942     }
16943   else
16944     {
16945       unsigned long i = ulongval ();
16946       if (i != ((long) (sizeof (int *))))
16947         exit (1);
16948       fprintf (f, "%lu\n", i);
16949     }
16950   exit (ferror (f) || fclose (f) != 0);
16951
16952   ;
16953   return 0;
16954 }
16955 _ACEOF
16956 rm -f conftest$ac_exeext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16958   (eval $ac_link) 2>&5
16959   ac_status=$?
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963   (eval $ac_try) 2>&5
16964   ac_status=$?
16965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966   (exit $ac_status); }; }; then
16967   ac_cv_sizeof_int_p=`cat conftest.val`
16968 else
16969   echo "$as_me: program exited with status $ac_status" >&5
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16972
16973 ( exit $ac_status )
16974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16975 See \`config.log' for more details." >&5
16976 echo "$as_me: error: cannot compute sizeof (int *), 77
16977 See \`config.log' for more details." >&2;}
16978    { (exit 1); exit 1; }; }
16979 fi
16980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16981 fi
16982 fi
16983 rm -f conftest.val
16984 else
16985   ac_cv_sizeof_int_p=0
16986 fi
16987 fi
16988 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16989 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16990 cat >>confdefs.h <<_ACEOF
16991 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16992 _ACEOF
16993
16994
16995
16996 # Check for sys/types.h types
16997 echo "$as_me:$LINENO: checking for u_int type" >&5
16998 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16999 if test "${ac_cv_have_u_int+set}" = set; then
17000   echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002
17003     cat >conftest.$ac_ext <<_ACEOF
17004 /* confdefs.h.  */
17005 _ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h.  */
17009  #include <sys/types.h>
17010 int
17011 main ()
17012 {
17013  u_int a; a = 1;
17014   ;
17015   return 0;
17016 }
17017 _ACEOF
17018 rm -f conftest.$ac_objext
17019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17020   (eval $ac_compile) 2>conftest.er1
17021   ac_status=$?
17022   grep -v '^ *+' conftest.er1 >conftest.err
17023   rm -f conftest.er1
17024   cat conftest.err >&5
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); } &&
17027          { ac_try='test -z "$ac_c_werror_flag"
17028                          || test ! -s conftest.err'
17029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030   (eval $ac_try) 2>&5
17031   ac_status=$?
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); }; } &&
17034          { ac_try='test -s conftest.$ac_objext'
17035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036   (eval $ac_try) 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); }; }; then
17040    ac_cv_have_u_int="yes"
17041 else
17042   echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17044
17045  ac_cv_have_u_int="no"
17046
17047 fi
17048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17049
17050 fi
17051 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17052 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17053 if test "x$ac_cv_have_u_int" = "xyes" ; then
17054    cat >>confdefs.h <<\_ACEOF
17055 #define HAVE_U_INT 1
17056 _ACEOF
17057
17058    have_u_int=1
17059 fi
17060
17061 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17062 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17063 if test "${ac_cv_have_intmax_t+set}" = set; then
17064   echo $ECHO_N "(cached) $ECHO_C" >&6
17065 else
17066
17067    cat >conftest.$ac_ext <<_ACEOF
17068 /* confdefs.h.  */
17069 _ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h.  */
17073  #include <sys/types.h>
17074 int
17075 main ()
17076 {
17077  intmax_t a; a = 1;
17078   ;
17079   return 0;
17080 }
17081 _ACEOF
17082 rm -f conftest.$ac_objext
17083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17084   (eval $ac_compile) 2>conftest.er1
17085   ac_status=$?
17086   grep -v '^ *+' conftest.er1 >conftest.err
17087   rm -f conftest.er1
17088   cat conftest.err >&5
17089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090   (exit $ac_status); } &&
17091          { ac_try='test -z "$ac_c_werror_flag"
17092                          || test ! -s conftest.err'
17093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094   (eval $ac_try) 2>&5
17095   ac_status=$?
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); }; } &&
17098          { ac_try='test -s conftest.$ac_objext'
17099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100   (eval $ac_try) 2>&5
17101   ac_status=$?
17102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103   (exit $ac_status); }; }; then
17104    ac_cv_have_intmax_t="yes"
17105 else
17106   echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17108
17109
17110          cat >conftest.$ac_ext <<_ACEOF
17111 /* confdefs.h.  */
17112 _ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h.  */
17116  #include <stdint.h>
17117 int
17118 main ()
17119 {
17120  intmax_t a; a = 1;
17121   ;
17122   return 0;
17123 }
17124 _ACEOF
17125 rm -f conftest.$ac_objext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17127   (eval $ac_compile) 2>conftest.er1
17128   ac_status=$?
17129   grep -v '^ *+' conftest.er1 >conftest.err
17130   rm -f conftest.er1
17131   cat conftest.err >&5
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); } &&
17134          { ac_try='test -z "$ac_c_werror_flag"
17135                          || test ! -s conftest.err'
17136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137   (eval $ac_try) 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); }; } &&
17141          { ac_try='test -s conftest.$ac_objext'
17142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143   (eval $ac_try) 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; }; then
17147    ac_cv_have_intmax_t="yes"
17148 else
17149   echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17151
17152  ac_cv_have_intmax_t="no"
17153
17154 fi
17155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17156
17157
17158 fi
17159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17160
17161
17162 fi
17163 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17164 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17165 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17166    cat >>confdefs.h <<\_ACEOF
17167 #define HAVE_INTMAX_T 1
17168 _ACEOF
17169
17170    have_intmax_t=1
17171 fi
17172
17173
17174 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17175 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17176 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17177   echo $ECHO_N "(cached) $ECHO_C" >&6
17178 else
17179
17180    cat >conftest.$ac_ext <<_ACEOF
17181 /* confdefs.h.  */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h.  */
17186  #include <sys/types.h>
17187 int
17188 main ()
17189 {
17190  u_intmax_t a; a = 1;
17191   ;
17192   return 0;
17193 }
17194 _ACEOF
17195 rm -f conftest.$ac_objext
17196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17197   (eval $ac_compile) 2>conftest.er1
17198   ac_status=$?
17199   grep -v '^ *+' conftest.er1 >conftest.err
17200   rm -f conftest.er1
17201   cat conftest.err >&5
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); } &&
17204          { ac_try='test -z "$ac_c_werror_flag"
17205                          || test ! -s conftest.err'
17206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207   (eval $ac_try) 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); }; } &&
17211          { ac_try='test -s conftest.$ac_objext'
17212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213   (eval $ac_try) 2>&5
17214   ac_status=$?
17215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216   (exit $ac_status); }; }; then
17217    ac_cv_have_u_intmax_t="yes"
17218 else
17219   echo "$as_me: failed program was:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17221
17222
17223          cat >conftest.$ac_ext <<_ACEOF
17224 /* confdefs.h.  */
17225 _ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h.  */
17229  #include <stdint.h>
17230 int
17231 main ()
17232 {
17233  u_intmax_t a; a = 1;
17234   ;
17235   return 0;
17236 }
17237 _ACEOF
17238 rm -f conftest.$ac_objext
17239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17240   (eval $ac_compile) 2>conftest.er1
17241   ac_status=$?
17242   grep -v '^ *+' conftest.er1 >conftest.err
17243   rm -f conftest.er1
17244   cat conftest.err >&5
17245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246   (exit $ac_status); } &&
17247          { ac_try='test -z "$ac_c_werror_flag"
17248                          || test ! -s conftest.err'
17249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250   (eval $ac_try) 2>&5
17251   ac_status=$?
17252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253   (exit $ac_status); }; } &&
17254          { ac_try='test -s conftest.$ac_objext'
17255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256   (eval $ac_try) 2>&5
17257   ac_status=$?
17258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259   (exit $ac_status); }; }; then
17260    ac_cv_have_u_intmax_t="yes"
17261 else
17262   echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17264
17265  ac_cv_have_u_intmax_t="no"
17266
17267 fi
17268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17269
17270
17271 fi
17272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17273
17274 fi
17275 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17276 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17277 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17278    cat >>confdefs.h <<\_ACEOF
17279 #define HAVE_U_INTMAX_T 1
17280 _ACEOF
17281
17282    have_u_intmax_t=1
17283 fi
17284
17285
17286 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17287 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17288 if test "${ac_cv_have_intxx_t+set}" = set; then
17289   echo $ECHO_N "(cached) $ECHO_C" >&6
17290 else
17291
17292    cat >conftest.$ac_ext <<_ACEOF
17293 /* confdefs.h.  */
17294 _ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h.  */
17298  #include <sys/types.h>
17299 int
17300 main ()
17301 {
17302  int8_t a; int16_t b; int32_t c; a = b = c = 1;
17303   ;
17304   return 0;
17305 }
17306 _ACEOF
17307 rm -f conftest.$ac_objext
17308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17309   (eval $ac_compile) 2>conftest.er1
17310   ac_status=$?
17311   grep -v '^ *+' conftest.er1 >conftest.err
17312   rm -f conftest.er1
17313   cat conftest.err >&5
17314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315   (exit $ac_status); } &&
17316          { ac_try='test -z "$ac_c_werror_flag"
17317                          || test ! -s conftest.err'
17318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319   (eval $ac_try) 2>&5
17320   ac_status=$?
17321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322   (exit $ac_status); }; } &&
17323          { ac_try='test -s conftest.$ac_objext'
17324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325   (eval $ac_try) 2>&5
17326   ac_status=$?
17327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328   (exit $ac_status); }; }; then
17329    ac_cv_have_intxx_t="yes"
17330 else
17331   echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.$ac_ext >&5
17333
17334  ac_cv_have_intxx_t="no"
17335
17336 fi
17337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17338
17339 fi
17340 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17341 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17342 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17343    cat >>confdefs.h <<\_ACEOF
17344 #define HAVE_INTXX_T 1
17345 _ACEOF
17346
17347    have_intxx_t=1
17348 fi
17349
17350 echo "$as_me:$LINENO: checking for int64_t type" >&5
17351 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17352 if test "${ac_cv_have_int64_t+set}" = set; then
17353   echo $ECHO_N "(cached) $ECHO_C" >&6
17354 else
17355
17356    cat >conftest.$ac_ext <<_ACEOF
17357 /* confdefs.h.  */
17358 _ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h.  */
17362  #include <sys/types.h>
17363 int
17364 main ()
17365 {
17366  int64_t a; a = 1;
17367   ;
17368   return 0;
17369 }
17370 _ACEOF
17371 rm -f conftest.$ac_objext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17373   (eval $ac_compile) 2>conftest.er1
17374   ac_status=$?
17375   grep -v '^ *+' conftest.er1 >conftest.err
17376   rm -f conftest.er1
17377   cat conftest.err >&5
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); } &&
17380          { ac_try='test -z "$ac_c_werror_flag"
17381                          || test ! -s conftest.err'
17382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383   (eval $ac_try) 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; } &&
17387          { ac_try='test -s conftest.$ac_objext'
17388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389   (eval $ac_try) 2>&5
17390   ac_status=$?
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); }; }; then
17393    ac_cv_have_int64_t="yes"
17394 else
17395   echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.$ac_ext >&5
17397
17398  ac_cv_have_int64_t="no"
17399
17400 fi
17401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17402
17403 fi
17404 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17405 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17406 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17407    cat >>confdefs.h <<\_ACEOF
17408 #define HAVE_INT64_T 1
17409 _ACEOF
17410
17411    have_int64_t=1
17412 fi
17413
17414 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17415 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17416 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17417   echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419
17420    cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h.  */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h.  */
17426  #include <sys/types.h>
17427 int
17428 main ()
17429 {
17430  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17431   ;
17432   return 0;
17433 }
17434 _ACEOF
17435 rm -f conftest.$ac_objext
17436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17437   (eval $ac_compile) 2>conftest.er1
17438   ac_status=$?
17439   grep -v '^ *+' conftest.er1 >conftest.err
17440   rm -f conftest.er1
17441   cat conftest.err >&5
17442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443   (exit $ac_status); } &&
17444          { ac_try='test -z "$ac_c_werror_flag"
17445                          || test ! -s conftest.err'
17446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447   (eval $ac_try) 2>&5
17448   ac_status=$?
17449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); }; } &&
17451          { ac_try='test -s conftest.$ac_objext'
17452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453   (eval $ac_try) 2>&5
17454   ac_status=$?
17455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456   (exit $ac_status); }; }; then
17457    ac_cv_have_u_intxx_t="yes"
17458 else
17459   echo "$as_me: failed program was:" >&5
17460 sed 's/^/| /' conftest.$ac_ext >&5
17461
17462  ac_cv_have_u_intxx_t="no"
17463
17464 fi
17465 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17466
17467 fi
17468 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17469 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17470 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17471    cat >>confdefs.h <<\_ACEOF
17472 #define HAVE_U_INTXX_T 1
17473 _ACEOF
17474
17475    have_u_intxx_t=1
17476 fi
17477
17478 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17479 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17480 if test "${ac_cv_have_u_int64_t+set}" = set; then
17481   echo $ECHO_N "(cached) $ECHO_C" >&6
17482 else
17483
17484    cat >conftest.$ac_ext <<_ACEOF
17485 /* confdefs.h.  */
17486 _ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h.  */
17490  #include <sys/types.h>
17491 int
17492 main ()
17493 {
17494  u_int64_t a; a = 1;
17495   ;
17496   return 0;
17497 }
17498 _ACEOF
17499 rm -f conftest.$ac_objext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17501   (eval $ac_compile) 2>conftest.er1
17502   ac_status=$?
17503   grep -v '^ *+' conftest.er1 >conftest.err
17504   rm -f conftest.er1
17505   cat conftest.err >&5
17506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507   (exit $ac_status); } &&
17508          { ac_try='test -z "$ac_c_werror_flag"
17509                          || test ! -s conftest.err'
17510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511   (eval $ac_try) 2>&5
17512   ac_status=$?
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); }; } &&
17515          { ac_try='test -s conftest.$ac_objext'
17516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517   (eval $ac_try) 2>&5
17518   ac_status=$?
17519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520   (exit $ac_status); }; }; then
17521    ac_cv_have_u_int64_t="yes"
17522 else
17523   echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17525
17526  ac_cv_have_u_int64_t="no"
17527
17528 fi
17529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17530
17531 fi
17532 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17533 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17534 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17535    cat >>confdefs.h <<\_ACEOF
17536 #define HAVE_U_INT64_T 1
17537 _ACEOF
17538
17539    have_u_int64_t=1
17540 fi
17541
17542 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17543            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17544 then
17545    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17546 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17547    cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h.  */
17549 _ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h.  */
17553  #include <sys/bitypes.h>
17554 int
17555 main ()
17556 {
17557  int8_t a; int16_t b; int32_t c;
17558         u_int8_t e; u_int16_t f; u_int32_t g;
17559         a = b = c = e = f = g = 1;
17560   ;
17561   return 0;
17562 }
17563 _ACEOF
17564 rm -f conftest.$ac_objext
17565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17566   (eval $ac_compile) 2>conftest.er1
17567   ac_status=$?
17568   grep -v '^ *+' conftest.er1 >conftest.err
17569   rm -f conftest.er1
17570   cat conftest.err >&5
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); } &&
17573          { ac_try='test -z "$ac_c_werror_flag"
17574                          || test ! -s conftest.err'
17575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576   (eval $ac_try) 2>&5
17577   ac_status=$?
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); }; } &&
17580          { ac_try='test -s conftest.$ac_objext'
17581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582   (eval $ac_try) 2>&5
17583   ac_status=$?
17584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585   (exit $ac_status); }; }; then
17586    cat >>confdefs.h <<\_ACEOF
17587 #define HAVE_U_INTXX_T 1
17588 _ACEOF
17589
17590         cat >>confdefs.h <<\_ACEOF
17591 #define HAVE_INTXX_T 1
17592 _ACEOF
17593
17594         cat >>confdefs.h <<\_ACEOF
17595 #define HAVE_SYS_BITYPES_H 1
17596 _ACEOF
17597
17598         echo "$as_me:$LINENO: result: yes" >&5
17599 echo "${ECHO_T}yes" >&6
17600 else
17601   echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17603
17604  echo "$as_me:$LINENO: result: no" >&5
17605 echo "${ECHO_T}no" >&6
17606
17607 fi
17608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17609 fi
17610
17611 if test -z "$have_u_intxx_t" ; then
17612    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17613 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17614 if test "${ac_cv_have_uintxx_t+set}" = set; then
17615   echo $ECHO_N "(cached) $ECHO_C" >&6
17616 else
17617
17618       cat >conftest.$ac_ext <<_ACEOF
17619 /* confdefs.h.  */
17620 _ACEOF
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h.  */
17624  #include <sys/types.h>
17625 int
17626 main ()
17627 {
17628  uint8_t a; uint16_t b;
17629            uint32_t c; a = b = c = 1;
17630   ;
17631   return 0;
17632 }
17633 _ACEOF
17634 rm -f conftest.$ac_objext
17635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17636   (eval $ac_compile) 2>conftest.er1
17637   ac_status=$?
17638   grep -v '^ *+' conftest.er1 >conftest.err
17639   rm -f conftest.er1
17640   cat conftest.err >&5
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); } &&
17643          { ac_try='test -z "$ac_c_werror_flag"
17644                          || test ! -s conftest.err'
17645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646   (eval $ac_try) 2>&5
17647   ac_status=$?
17648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649   (exit $ac_status); }; } &&
17650          { ac_try='test -s conftest.$ac_objext'
17651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652   (eval $ac_try) 2>&5
17653   ac_status=$?
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); }; }; then
17656    ac_cv_have_uintxx_t="yes"
17657 else
17658   echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.$ac_ext >&5
17660
17661  ac_cv_have_uintxx_t="no"
17662
17663 fi
17664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17665
17666 fi
17667 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17668 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17669    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17670       cat >>confdefs.h <<\_ACEOF
17671 #define HAVE_UINTXX_T 1
17672 _ACEOF
17673
17674    fi
17675 fi
17676
17677 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17678           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17679 then
17680    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17681 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17682    cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688  #include <sys/bitypes.h>
17689 int
17690 main ()
17691 {
17692  int64_t a; u_int64_t b;
17693        a = b = 1;
17694   ;
17695   return 0;
17696 }
17697 _ACEOF
17698 rm -f conftest.$ac_objext
17699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17700   (eval $ac_compile) 2>conftest.er1
17701   ac_status=$?
17702   grep -v '^ *+' conftest.er1 >conftest.err
17703   rm -f conftest.er1
17704   cat conftest.err >&5
17705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706   (exit $ac_status); } &&
17707          { ac_try='test -z "$ac_c_werror_flag"
17708                          || test ! -s conftest.err'
17709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710   (eval $ac_try) 2>&5
17711   ac_status=$?
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); }; } &&
17714          { ac_try='test -s conftest.$ac_objext'
17715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716   (eval $ac_try) 2>&5
17717   ac_status=$?
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); }; }; then
17720    cat >>confdefs.h <<\_ACEOF
17721 #define HAVE_U_INT64_T 1
17722 _ACEOF
17723
17724        cat >>confdefs.h <<\_ACEOF
17725 #define HAVE_INT64_T 1
17726 _ACEOF
17727
17728        echo "$as_me:$LINENO: result: yes" >&5
17729 echo "${ECHO_T}yes" >&6
17730 else
17731   echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17733
17734  echo "$as_me:$LINENO: result: no" >&5
17735 echo "${ECHO_T}no" >&6
17736
17737 fi
17738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17739 fi
17740
17741 if (test -z "$have_uintxx_t" && \
17742           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17743 then
17744    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17745 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17746    cat >conftest.$ac_ext <<_ACEOF
17747 /* confdefs.h.  */
17748 _ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h.  */
17752  #include <sys/bitypes.h>
17753 int
17754 main ()
17755 {
17756  uint8_t a; uint16_t b;
17757           uint32_t c; a = b = c = 1;
17758   ;
17759   return 0;
17760 }
17761 _ACEOF
17762 rm -f conftest.$ac_objext
17763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17764   (eval $ac_compile) 2>conftest.er1
17765   ac_status=$?
17766   grep -v '^ *+' conftest.er1 >conftest.err
17767   rm -f conftest.er1
17768   cat conftest.err >&5
17769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770   (exit $ac_status); } &&
17771          { ac_try='test -z "$ac_c_werror_flag"
17772                          || test ! -s conftest.err'
17773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774   (eval $ac_try) 2>&5
17775   ac_status=$?
17776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777   (exit $ac_status); }; } &&
17778          { ac_try='test -s conftest.$ac_objext'
17779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780   (eval $ac_try) 2>&5
17781   ac_status=$?
17782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783   (exit $ac_status); }; }; then
17784    cat >>confdefs.h <<\_ACEOF
17785 #define HAVE_UINTXX_T 1
17786 _ACEOF
17787
17788        echo "$as_me:$LINENO: result: yes" >&5
17789 echo "${ECHO_T}yes" >&6
17790 else
17791   echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17793
17794  echo "$as_me:$LINENO: result: no" >&5
17795 echo "${ECHO_T}no" >&6
17796
17797 fi
17798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17799
17800 fi
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818 for ac_func in \
17819         fork \
17820         getcwd \
17821         gethostname \
17822         getpid \
17823         gettimeofday \
17824         setpgid \
17825         setpgrp \
17826         setsid \
17827         signal \
17828         strerror \
17829         strncmp \
17830         strncpy \
17831         vfprintf \
17832
17833 do
17834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17835 echo "$as_me:$LINENO: checking for $ac_func" >&5
17836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17837 if eval "test \"\${$as_ac_var+set}\" = set"; then
17838   echo $ECHO_N "(cached) $ECHO_C" >&6
17839 else
17840   cat >conftest.$ac_ext <<_ACEOF
17841 /* confdefs.h.  */
17842 _ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h.  */
17846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17848 #define $ac_func innocuous_$ac_func
17849
17850 /* System header to define __stub macros and hopefully few prototypes,
17851     which can conflict with char $ac_func (); below.
17852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17853     <limits.h> exists even on freestanding compilers.  */
17854
17855 #ifdef __STDC__
17856 # include <limits.h>
17857 #else
17858 # include <assert.h>
17859 #endif
17860
17861 #undef $ac_func
17862
17863 /* Override any gcc2 internal prototype to avoid an error.  */
17864 #ifdef __cplusplus
17865 extern "C"
17866 {
17867 #endif
17868 /* We use char because int might match the return type of a gcc2
17869    builtin and then its argument prototype would still apply.  */
17870 char $ac_func ();
17871 /* The GNU C library defines this for functions which it implements
17872     to always fail with ENOSYS.  Some functions are actually named
17873     something starting with __ and the normal name is an alias.  */
17874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17875 choke me
17876 #else
17877 char (*f) () = $ac_func;
17878 #endif
17879 #ifdef __cplusplus
17880 }
17881 #endif
17882
17883 int
17884 main ()
17885 {
17886 return f != $ac_func;
17887   ;
17888   return 0;
17889 }
17890 _ACEOF
17891 rm -f conftest.$ac_objext conftest$ac_exeext
17892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17893   (eval $ac_link) 2>conftest.er1
17894   ac_status=$?
17895   grep -v '^ *+' conftest.er1 >conftest.err
17896   rm -f conftest.er1
17897   cat conftest.err >&5
17898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899   (exit $ac_status); } &&
17900          { ac_try='test -z "$ac_c_werror_flag"
17901                          || test ! -s conftest.err'
17902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17903   (eval $ac_try) 2>&5
17904   ac_status=$?
17905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906   (exit $ac_status); }; } &&
17907          { ac_try='test -s conftest$ac_exeext'
17908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17909   (eval $ac_try) 2>&5
17910   ac_status=$?
17911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912   (exit $ac_status); }; }; then
17913   eval "$as_ac_var=yes"
17914 else
17915   echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17917
17918 eval "$as_ac_var=no"
17919 fi
17920 rm -f conftest.err conftest.$ac_objext \
17921       conftest$ac_exeext conftest.$ac_ext
17922 fi
17923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17925 if test `eval echo '${'$as_ac_var'}'` = yes; then
17926   cat >>confdefs.h <<_ACEOF
17927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17928 _ACEOF
17929
17930 else
17931   echo 'configure: cannot find needed function.'; exit 1
17932
17933 fi
17934 done
17935
17936
17937
17938 for ac_func in fchdir
17939 do
17940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17941 echo "$as_me:$LINENO: checking for $ac_func" >&5
17942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17943 if eval "test \"\${$as_ac_var+set}\" = set"; then
17944   echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946   cat >conftest.$ac_ext <<_ACEOF
17947 /* confdefs.h.  */
17948 _ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h.  */
17952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17954 #define $ac_func innocuous_$ac_func
17955
17956 /* System header to define __stub macros and hopefully few prototypes,
17957     which can conflict with char $ac_func (); below.
17958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17959     <limits.h> exists even on freestanding compilers.  */
17960
17961 #ifdef __STDC__
17962 # include <limits.h>
17963 #else
17964 # include <assert.h>
17965 #endif
17966
17967 #undef $ac_func
17968
17969 /* Override any gcc2 internal prototype to avoid an error.  */
17970 #ifdef __cplusplus
17971 extern "C"
17972 {
17973 #endif
17974 /* We use char because int might match the return type of a gcc2
17975    builtin and then its argument prototype would still apply.  */
17976 char $ac_func ();
17977 /* The GNU C library defines this for functions which it implements
17978     to always fail with ENOSYS.  Some functions are actually named
17979     something starting with __ and the normal name is an alias.  */
17980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17981 choke me
17982 #else
17983 char (*f) () = $ac_func;
17984 #endif
17985 #ifdef __cplusplus
17986 }
17987 #endif
17988
17989 int
17990 main ()
17991 {
17992 return f != $ac_func;
17993   ;
17994   return 0;
17995 }
17996 _ACEOF
17997 rm -f conftest.$ac_objext conftest$ac_exeext
17998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17999   (eval $ac_link) 2>conftest.er1
18000   ac_status=$?
18001   grep -v '^ *+' conftest.er1 >conftest.err
18002   rm -f conftest.er1
18003   cat conftest.err >&5
18004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005   (exit $ac_status); } &&
18006          { ac_try='test -z "$ac_c_werror_flag"
18007                          || test ! -s conftest.err'
18008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18009   (eval $ac_try) 2>&5
18010   ac_status=$?
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); }; } &&
18013          { ac_try='test -s conftest$ac_exeext'
18014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015   (eval $ac_try) 2>&5
18016   ac_status=$?
18017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); }; }; then
18019   eval "$as_ac_var=yes"
18020 else
18021   echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18023
18024 eval "$as_ac_var=no"
18025 fi
18026 rm -f conftest.err conftest.$ac_objext \
18027       conftest$ac_exeext conftest.$ac_ext
18028 fi
18029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18030 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18031 if test `eval echo '${'$as_ac_var'}'` = yes; then
18032   cat >>confdefs.h <<_ACEOF
18033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18034 _ACEOF
18035  cat >>confdefs.h <<\_ACEOF
18036 #define HAVE_FCHDIR 1
18037 _ACEOF
18038
18039 fi
18040 done
18041
18042
18043 for ac_func in strtoll
18044 do
18045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18046 echo "$as_me:$LINENO: checking for $ac_func" >&5
18047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18048 if eval "test \"\${$as_ac_var+set}\" = set"; then
18049   echo $ECHO_N "(cached) $ECHO_C" >&6
18050 else
18051   cat >conftest.$ac_ext <<_ACEOF
18052 /* confdefs.h.  */
18053 _ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h.  */
18057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18058    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18059 #define $ac_func innocuous_$ac_func
18060
18061 /* System header to define __stub macros and hopefully few prototypes,
18062     which can conflict with char $ac_func (); below.
18063     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18064     <limits.h> exists even on freestanding compilers.  */
18065
18066 #ifdef __STDC__
18067 # include <limits.h>
18068 #else
18069 # include <assert.h>
18070 #endif
18071
18072 #undef $ac_func
18073
18074 /* Override any gcc2 internal prototype to avoid an error.  */
18075 #ifdef __cplusplus
18076 extern "C"
18077 {
18078 #endif
18079 /* We use char because int might match the return type of a gcc2
18080    builtin and then its argument prototype would still apply.  */
18081 char $ac_func ();
18082 /* The GNU C library defines this for functions which it implements
18083     to always fail with ENOSYS.  Some functions are actually named
18084     something starting with __ and the normal name is an alias.  */
18085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18086 choke me
18087 #else
18088 char (*f) () = $ac_func;
18089 #endif
18090 #ifdef __cplusplus
18091 }
18092 #endif
18093
18094 int
18095 main ()
18096 {
18097 return f != $ac_func;
18098   ;
18099   return 0;
18100 }
18101 _ACEOF
18102 rm -f conftest.$ac_objext conftest$ac_exeext
18103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18104   (eval $ac_link) 2>conftest.er1
18105   ac_status=$?
18106   grep -v '^ *+' conftest.er1 >conftest.err
18107   rm -f conftest.er1
18108   cat conftest.err >&5
18109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110   (exit $ac_status); } &&
18111          { ac_try='test -z "$ac_c_werror_flag"
18112                          || test ! -s conftest.err'
18113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18114   (eval $ac_try) 2>&5
18115   ac_status=$?
18116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117   (exit $ac_status); }; } &&
18118          { ac_try='test -s conftest$ac_exeext'
18119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120   (eval $ac_try) 2>&5
18121   ac_status=$?
18122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123   (exit $ac_status); }; }; then
18124   eval "$as_ac_var=yes"
18125 else
18126   echo "$as_me: failed program was:" >&5
18127 sed 's/^/| /' conftest.$ac_ext >&5
18128
18129 eval "$as_ac_var=no"
18130 fi
18131 rm -f conftest.err conftest.$ac_objext \
18132       conftest$ac_exeext conftest.$ac_ext
18133 fi
18134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18136 if test `eval echo '${'$as_ac_var'}'` = yes; then
18137   cat >>confdefs.h <<_ACEOF
18138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18139 _ACEOF
18140  cat >>confdefs.h <<\_ACEOF
18141 #define HAVE_STRTOLL 1
18142 _ACEOF
18143
18144 fi
18145 done
18146
18147
18148
18149 for ac_func in chflags
18150 do
18151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18152 echo "$as_me:$LINENO: checking for $ac_func" >&5
18153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18154 if eval "test \"\${$as_ac_var+set}\" = set"; then
18155   echo $ECHO_N "(cached) $ECHO_C" >&6
18156 else
18157   cat >conftest.$ac_ext <<_ACEOF
18158 /* confdefs.h.  */
18159 _ACEOF
18160 cat confdefs.h >>conftest.$ac_ext
18161 cat >>conftest.$ac_ext <<_ACEOF
18162 /* end confdefs.h.  */
18163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18165 #define $ac_func innocuous_$ac_func
18166
18167 /* System header to define __stub macros and hopefully few prototypes,
18168     which can conflict with char $ac_func (); below.
18169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18170     <limits.h> exists even on freestanding compilers.  */
18171
18172 #ifdef __STDC__
18173 # include <limits.h>
18174 #else
18175 # include <assert.h>
18176 #endif
18177
18178 #undef $ac_func
18179
18180 /* Override any gcc2 internal prototype to avoid an error.  */
18181 #ifdef __cplusplus
18182 extern "C"
18183 {
18184 #endif
18185 /* We use char because int might match the return type of a gcc2
18186    builtin and then its argument prototype would still apply.  */
18187 char $ac_func ();
18188 /* The GNU C library defines this for functions which it implements
18189     to always fail with ENOSYS.  Some functions are actually named
18190     something starting with __ and the normal name is an alias.  */
18191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18192 choke me
18193 #else
18194 char (*f) () = $ac_func;
18195 #endif
18196 #ifdef __cplusplus
18197 }
18198 #endif
18199
18200 int
18201 main ()
18202 {
18203 return f != $ac_func;
18204   ;
18205   return 0;
18206 }
18207 _ACEOF
18208 rm -f conftest.$ac_objext conftest$ac_exeext
18209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18210   (eval $ac_link) 2>conftest.er1
18211   ac_status=$?
18212   grep -v '^ *+' conftest.er1 >conftest.err
18213   rm -f conftest.er1
18214   cat conftest.err >&5
18215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216   (exit $ac_status); } &&
18217          { ac_try='test -z "$ac_c_werror_flag"
18218                          || test ! -s conftest.err'
18219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220   (eval $ac_try) 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); }; } &&
18224          { ac_try='test -s conftest$ac_exeext'
18225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226   (eval $ac_try) 2>&5
18227   ac_status=$?
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); }; }; then
18230   eval "$as_ac_var=yes"
18231 else
18232   echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18234
18235 eval "$as_ac_var=no"
18236 fi
18237 rm -f conftest.err conftest.$ac_objext \
18238       conftest$ac_exeext conftest.$ac_ext
18239 fi
18240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18242 if test `eval echo '${'$as_ac_var'}'` = yes; then
18243   cat >>confdefs.h <<_ACEOF
18244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18245 _ACEOF
18246
18247 fi
18248 done
18249
18250
18251
18252
18253
18254
18255 for ac_func in snprintf vsnprintf gethostid fseeko
18256 do
18257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18258 echo "$as_me:$LINENO: checking for $ac_func" >&5
18259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18260 if eval "test \"\${$as_ac_var+set}\" = set"; then
18261   echo $ECHO_N "(cached) $ECHO_C" >&6
18262 else
18263   cat >conftest.$ac_ext <<_ACEOF
18264 /* confdefs.h.  */
18265 _ACEOF
18266 cat confdefs.h >>conftest.$ac_ext
18267 cat >>conftest.$ac_ext <<_ACEOF
18268 /* end confdefs.h.  */
18269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18270    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18271 #define $ac_func innocuous_$ac_func
18272
18273 /* System header to define __stub macros and hopefully few prototypes,
18274     which can conflict with char $ac_func (); below.
18275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18276     <limits.h> exists even on freestanding compilers.  */
18277
18278 #ifdef __STDC__
18279 # include <limits.h>
18280 #else
18281 # include <assert.h>
18282 #endif
18283
18284 #undef $ac_func
18285
18286 /* Override any gcc2 internal prototype to avoid an error.  */
18287 #ifdef __cplusplus
18288 extern "C"
18289 {
18290 #endif
18291 /* We use char because int might match the return type of a gcc2
18292    builtin and then its argument prototype would still apply.  */
18293 char $ac_func ();
18294 /* The GNU C library defines this for functions which it implements
18295     to always fail with ENOSYS.  Some functions are actually named
18296     something starting with __ and the normal name is an alias.  */
18297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18298 choke me
18299 #else
18300 char (*f) () = $ac_func;
18301 #endif
18302 #ifdef __cplusplus
18303 }
18304 #endif
18305
18306 int
18307 main ()
18308 {
18309 return f != $ac_func;
18310   ;
18311   return 0;
18312 }
18313 _ACEOF
18314 rm -f conftest.$ac_objext conftest$ac_exeext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316   (eval $ac_link) 2>conftest.er1
18317   ac_status=$?
18318   grep -v '^ *+' conftest.er1 >conftest.err
18319   rm -f conftest.er1
18320   cat conftest.err >&5
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); } &&
18323          { ac_try='test -z "$ac_c_werror_flag"
18324                          || test ! -s conftest.err'
18325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326   (eval $ac_try) 2>&5
18327   ac_status=$?
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); }; } &&
18330          { ac_try='test -s conftest$ac_exeext'
18331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332   (eval $ac_try) 2>&5
18333   ac_status=$?
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); }; }; then
18336   eval "$as_ac_var=yes"
18337 else
18338   echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18340
18341 eval "$as_ac_var=no"
18342 fi
18343 rm -f conftest.err conftest.$ac_objext \
18344       conftest$ac_exeext conftest.$ac_ext
18345 fi
18346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18348 if test `eval echo '${'$as_ac_var'}'` = yes; then
18349   cat >>confdefs.h <<_ACEOF
18350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18351 _ACEOF
18352
18353 fi
18354 done
18355
18356
18357
18358
18359
18360
18361 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18362 do
18363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18364 echo "$as_me:$LINENO: checking for $ac_func" >&5
18365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18366 if eval "test \"\${$as_ac_var+set}\" = set"; then
18367   echo $ECHO_N "(cached) $ECHO_C" >&6
18368 else
18369   cat >conftest.$ac_ext <<_ACEOF
18370 /* confdefs.h.  */
18371 _ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h.  */
18375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18377 #define $ac_func innocuous_$ac_func
18378
18379 /* System header to define __stub macros and hopefully few prototypes,
18380     which can conflict with char $ac_func (); below.
18381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18382     <limits.h> exists even on freestanding compilers.  */
18383
18384 #ifdef __STDC__
18385 # include <limits.h>
18386 #else
18387 # include <assert.h>
18388 #endif
18389
18390 #undef $ac_func
18391
18392 /* Override any gcc2 internal prototype to avoid an error.  */
18393 #ifdef __cplusplus
18394 extern "C"
18395 {
18396 #endif
18397 /* We use char because int might match the return type of a gcc2
18398    builtin and then its argument prototype would still apply.  */
18399 char $ac_func ();
18400 /* The GNU C library defines this for functions which it implements
18401     to always fail with ENOSYS.  Some functions are actually named
18402     something starting with __ and the normal name is an alias.  */
18403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18404 choke me
18405 #else
18406 char (*f) () = $ac_func;
18407 #endif
18408 #ifdef __cplusplus
18409 }
18410 #endif
18411
18412 int
18413 main ()
18414 {
18415 return f != $ac_func;
18416   ;
18417   return 0;
18418 }
18419 _ACEOF
18420 rm -f conftest.$ac_objext conftest$ac_exeext
18421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18422   (eval $ac_link) 2>conftest.er1
18423   ac_status=$?
18424   grep -v '^ *+' conftest.er1 >conftest.err
18425   rm -f conftest.er1
18426   cat conftest.err >&5
18427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428   (exit $ac_status); } &&
18429          { ac_try='test -z "$ac_c_werror_flag"
18430                          || test ! -s conftest.err'
18431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432   (eval $ac_try) 2>&5
18433   ac_status=$?
18434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435   (exit $ac_status); }; } &&
18436          { ac_try='test -s conftest$ac_exeext'
18437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438   (eval $ac_try) 2>&5
18439   ac_status=$?
18440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441   (exit $ac_status); }; }; then
18442   eval "$as_ac_var=yes"
18443 else
18444   echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18446
18447 eval "$as_ac_var=no"
18448 fi
18449 rm -f conftest.err conftest.$ac_objext \
18450       conftest$ac_exeext conftest.$ac_ext
18451 fi
18452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18454 if test `eval echo '${'$as_ac_var'}'` = yes; then
18455   cat >>confdefs.h <<_ACEOF
18456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18457 _ACEOF
18458
18459 fi
18460 done
18461
18462
18463 # If resolver functions are not in libc check for -lnsl or -lresolv.
18464 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18465 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18466 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18467   echo $ECHO_N "(cached) $ECHO_C" >&6
18468 else
18469   cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h.  */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h.  */
18475 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18476    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18477 #define gethostbyname_r innocuous_gethostbyname_r
18478
18479 /* System header to define __stub macros and hopefully few prototypes,
18480     which can conflict with char gethostbyname_r (); below.
18481     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18482     <limits.h> exists even on freestanding compilers.  */
18483
18484 #ifdef __STDC__
18485 # include <limits.h>
18486 #else
18487 # include <assert.h>
18488 #endif
18489
18490 #undef gethostbyname_r
18491
18492 /* Override any gcc2 internal prototype to avoid an error.  */
18493 #ifdef __cplusplus
18494 extern "C"
18495 {
18496 #endif
18497 /* We use char because int might match the return type of a gcc2
18498    builtin and then its argument prototype would still apply.  */
18499 char gethostbyname_r ();
18500 /* The GNU C library defines this for functions which it implements
18501     to always fail with ENOSYS.  Some functions are actually named
18502     something starting with __ and the normal name is an alias.  */
18503 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18504 choke me
18505 #else
18506 char (*f) () = gethostbyname_r;
18507 #endif
18508 #ifdef __cplusplus
18509 }
18510 #endif
18511
18512 int
18513 main ()
18514 {
18515 return f != gethostbyname_r;
18516   ;
18517   return 0;
18518 }
18519 _ACEOF
18520 rm -f conftest.$ac_objext conftest$ac_exeext
18521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18522   (eval $ac_link) 2>conftest.er1
18523   ac_status=$?
18524   grep -v '^ *+' conftest.er1 >conftest.err
18525   rm -f conftest.er1
18526   cat conftest.err >&5
18527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528   (exit $ac_status); } &&
18529          { ac_try='test -z "$ac_c_werror_flag"
18530                          || test ! -s conftest.err'
18531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18532   (eval $ac_try) 2>&5
18533   ac_status=$?
18534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535   (exit $ac_status); }; } &&
18536          { ac_try='test -s conftest$ac_exeext'
18537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538   (eval $ac_try) 2>&5
18539   ac_status=$?
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); }; }; then
18542   ac_cv_func_gethostbyname_r=yes
18543 else
18544   echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18546
18547 ac_cv_func_gethostbyname_r=no
18548 fi
18549 rm -f conftest.err conftest.$ac_objext \
18550       conftest$ac_exeext conftest.$ac_ext
18551 fi
18552 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18553 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18554 if test $ac_cv_func_gethostbyname_r = yes; then
18555   echo "$as_me:$LINENO: result: using libc's resolver" >&5
18556 echo "${ECHO_T}using libc's resolver" >&6
18557 else
18558
18559 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18560 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18561 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18562   echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564   ac_check_lib_save_LIBS=$LIBS
18565 LIBS="-lnsl  $LIBS"
18566 cat >conftest.$ac_ext <<_ACEOF
18567 /* confdefs.h.  */
18568 _ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h.  */
18572
18573 /* Override any gcc2 internal prototype to avoid an error.  */
18574 #ifdef __cplusplus
18575 extern "C"
18576 #endif
18577 /* We use char because int might match the return type of a gcc2
18578    builtin and then its argument prototype would still apply.  */
18579 char gethostbyname_r ();
18580 int
18581 main ()
18582 {
18583 gethostbyname_r ();
18584   ;
18585   return 0;
18586 }
18587 _ACEOF
18588 rm -f conftest.$ac_objext conftest$ac_exeext
18589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18590   (eval $ac_link) 2>conftest.er1
18591   ac_status=$?
18592   grep -v '^ *+' conftest.er1 >conftest.err
18593   rm -f conftest.er1
18594   cat conftest.err >&5
18595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596   (exit $ac_status); } &&
18597          { ac_try='test -z "$ac_c_werror_flag"
18598                          || test ! -s conftest.err'
18599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600   (eval $ac_try) 2>&5
18601   ac_status=$?
18602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603   (exit $ac_status); }; } &&
18604          { ac_try='test -s conftest$ac_exeext'
18605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18606   (eval $ac_try) 2>&5
18607   ac_status=$?
18608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609   (exit $ac_status); }; }; then
18610   ac_cv_lib_nsl_gethostbyname_r=yes
18611 else
18612   echo "$as_me: failed program was:" >&5
18613 sed 's/^/| /' conftest.$ac_ext >&5
18614
18615 ac_cv_lib_nsl_gethostbyname_r=no
18616 fi
18617 rm -f conftest.err conftest.$ac_objext \
18618       conftest$ac_exeext conftest.$ac_ext
18619 LIBS=$ac_check_lib_save_LIBS
18620 fi
18621 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18622 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18623 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18624   cat >>confdefs.h <<_ACEOF
18625 #define HAVE_LIBNSL 1
18626 _ACEOF
18627
18628   LIBS="-lnsl $LIBS"
18629
18630 fi
18631
18632
18633 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18634 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18635 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18636   echo $ECHO_N "(cached) $ECHO_C" >&6
18637 else
18638   ac_check_lib_save_LIBS=$LIBS
18639 LIBS="-lresolv  $LIBS"
18640 cat >conftest.$ac_ext <<_ACEOF
18641 /* confdefs.h.  */
18642 _ACEOF
18643 cat confdefs.h >>conftest.$ac_ext
18644 cat >>conftest.$ac_ext <<_ACEOF
18645 /* end confdefs.h.  */
18646
18647 /* Override any gcc2 internal prototype to avoid an error.  */
18648 #ifdef __cplusplus
18649 extern "C"
18650 #endif
18651 /* We use char because int might match the return type of a gcc2
18652    builtin and then its argument prototype would still apply.  */
18653 char gethostbyname_r ();
18654 int
18655 main ()
18656 {
18657 gethostbyname_r ();
18658   ;
18659   return 0;
18660 }
18661 _ACEOF
18662 rm -f conftest.$ac_objext conftest$ac_exeext
18663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18664   (eval $ac_link) 2>conftest.er1
18665   ac_status=$?
18666   grep -v '^ *+' conftest.er1 >conftest.err
18667   rm -f conftest.er1
18668   cat conftest.err >&5
18669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670   (exit $ac_status); } &&
18671          { ac_try='test -z "$ac_c_werror_flag"
18672                          || test ! -s conftest.err'
18673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674   (eval $ac_try) 2>&5
18675   ac_status=$?
18676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677   (exit $ac_status); }; } &&
18678          { ac_try='test -s conftest$ac_exeext'
18679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680   (eval $ac_try) 2>&5
18681   ac_status=$?
18682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683   (exit $ac_status); }; }; then
18684   ac_cv_lib_resolv_gethostbyname_r=yes
18685 else
18686   echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18688
18689 ac_cv_lib_resolv_gethostbyname_r=no
18690 fi
18691 rm -f conftest.err conftest.$ac_objext \
18692       conftest$ac_exeext conftest.$ac_ext
18693 LIBS=$ac_check_lib_save_LIBS
18694 fi
18695 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18696 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18697 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18698   cat >>confdefs.h <<_ACEOF
18699 #define HAVE_LIBRESOLV 1
18700 _ACEOF
18701
18702   LIBS="-lresolv $LIBS"
18703
18704 fi
18705
18706 fi
18707
18708
18709
18710
18711
18712 for ac_func in inet_pton
18713 do
18714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18715 echo "$as_me:$LINENO: checking for $ac_func" >&5
18716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18717 if eval "test \"\${$as_ac_var+set}\" = set"; then
18718   echo $ECHO_N "(cached) $ECHO_C" >&6
18719 else
18720   cat >conftest.$ac_ext <<_ACEOF
18721 /* confdefs.h.  */
18722 _ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h.  */
18726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18728 #define $ac_func innocuous_$ac_func
18729
18730 /* System header to define __stub macros and hopefully few prototypes,
18731     which can conflict with char $ac_func (); below.
18732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18733     <limits.h> exists even on freestanding compilers.  */
18734
18735 #ifdef __STDC__
18736 # include <limits.h>
18737 #else
18738 # include <assert.h>
18739 #endif
18740
18741 #undef $ac_func
18742
18743 /* Override any gcc2 internal prototype to avoid an error.  */
18744 #ifdef __cplusplus
18745 extern "C"
18746 {
18747 #endif
18748 /* We use char because int might match the return type of a gcc2
18749    builtin and then its argument prototype would still apply.  */
18750 char $ac_func ();
18751 /* The GNU C library defines this for functions which it implements
18752     to always fail with ENOSYS.  Some functions are actually named
18753     something starting with __ and the normal name is an alias.  */
18754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18755 choke me
18756 #else
18757 char (*f) () = $ac_func;
18758 #endif
18759 #ifdef __cplusplus
18760 }
18761 #endif
18762
18763 int
18764 main ()
18765 {
18766 return f != $ac_func;
18767   ;
18768   return 0;
18769 }
18770 _ACEOF
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18773   (eval $ac_link) 2>conftest.er1
18774   ac_status=$?
18775   grep -v '^ *+' conftest.er1 >conftest.err
18776   rm -f conftest.er1
18777   cat conftest.err >&5
18778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779   (exit $ac_status); } &&
18780          { ac_try='test -z "$ac_c_werror_flag"
18781                          || test ! -s conftest.err'
18782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783   (eval $ac_try) 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); }; } &&
18787          { ac_try='test -s conftest$ac_exeext'
18788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789   (eval $ac_try) 2>&5
18790   ac_status=$?
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); }; }; then
18793   eval "$as_ac_var=yes"
18794 else
18795   echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18797
18798 eval "$as_ac_var=no"
18799 fi
18800 rm -f conftest.err conftest.$ac_objext \
18801       conftest$ac_exeext conftest.$ac_ext
18802 fi
18803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18804 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18805 if test `eval echo '${'$as_ac_var'}'` = yes; then
18806   cat >>confdefs.h <<_ACEOF
18807 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18808 _ACEOF
18809  cat >>confdefs.h <<\_ACEOF
18810 #define HAVE_INET_PTON 1
18811 _ACEOF
18812
18813 fi
18814 done
18815
18816
18817 for ac_func in inet_ntop
18818 do
18819 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18820 echo "$as_me:$LINENO: checking for $ac_func" >&5
18821 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18822 if eval "test \"\${$as_ac_var+set}\" = set"; then
18823   echo $ECHO_N "(cached) $ECHO_C" >&6
18824 else
18825   cat >conftest.$ac_ext <<_ACEOF
18826 /* confdefs.h.  */
18827 _ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h.  */
18831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18833 #define $ac_func innocuous_$ac_func
18834
18835 /* System header to define __stub macros and hopefully few prototypes,
18836     which can conflict with char $ac_func (); below.
18837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18838     <limits.h> exists even on freestanding compilers.  */
18839
18840 #ifdef __STDC__
18841 # include <limits.h>
18842 #else
18843 # include <assert.h>
18844 #endif
18845
18846 #undef $ac_func
18847
18848 /* Override any gcc2 internal prototype to avoid an error.  */
18849 #ifdef __cplusplus
18850 extern "C"
18851 {
18852 #endif
18853 /* We use char because int might match the return type of a gcc2
18854    builtin and then its argument prototype would still apply.  */
18855 char $ac_func ();
18856 /* The GNU C library defines this for functions which it implements
18857     to always fail with ENOSYS.  Some functions are actually named
18858     something starting with __ and the normal name is an alias.  */
18859 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18860 choke me
18861 #else
18862 char (*f) () = $ac_func;
18863 #endif
18864 #ifdef __cplusplus
18865 }
18866 #endif
18867
18868 int
18869 main ()
18870 {
18871 return f != $ac_func;
18872   ;
18873   return 0;
18874 }
18875 _ACEOF
18876 rm -f conftest.$ac_objext conftest$ac_exeext
18877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18878   (eval $ac_link) 2>conftest.er1
18879   ac_status=$?
18880   grep -v '^ *+' conftest.er1 >conftest.err
18881   rm -f conftest.er1
18882   cat conftest.err >&5
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); } &&
18885          { ac_try='test -z "$ac_c_werror_flag"
18886                          || test ! -s conftest.err'
18887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888   (eval $ac_try) 2>&5
18889   ac_status=$?
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); }; } &&
18892          { ac_try='test -s conftest$ac_exeext'
18893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894   (eval $ac_try) 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; }; then
18898   eval "$as_ac_var=yes"
18899 else
18900   echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18902
18903 eval "$as_ac_var=no"
18904 fi
18905 rm -f conftest.err conftest.$ac_objext \
18906       conftest$ac_exeext conftest.$ac_ext
18907 fi
18908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18910 if test `eval echo '${'$as_ac_var'}'` = yes; then
18911   cat >>confdefs.h <<_ACEOF
18912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18913 _ACEOF
18914  cat >>confdefs.h <<\_ACEOF
18915 #define HAVE_INET_NTOP 1
18916 _ACEOF
18917
18918 fi
18919 done
18920
18921
18922 for ac_func in gethostbyname2
18923 do
18924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18925 echo "$as_me:$LINENO: checking for $ac_func" >&5
18926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18927 if eval "test \"\${$as_ac_var+set}\" = set"; then
18928   echo $ECHO_N "(cached) $ECHO_C" >&6
18929 else
18930   cat >conftest.$ac_ext <<_ACEOF
18931 /* confdefs.h.  */
18932 _ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h.  */
18936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18938 #define $ac_func innocuous_$ac_func
18939
18940 /* System header to define __stub macros and hopefully few prototypes,
18941     which can conflict with char $ac_func (); below.
18942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18943     <limits.h> exists even on freestanding compilers.  */
18944
18945 #ifdef __STDC__
18946 # include <limits.h>
18947 #else
18948 # include <assert.h>
18949 #endif
18950
18951 #undef $ac_func
18952
18953 /* Override any gcc2 internal prototype to avoid an error.  */
18954 #ifdef __cplusplus
18955 extern "C"
18956 {
18957 #endif
18958 /* We use char because int might match the return type of a gcc2
18959    builtin and then its argument prototype would still apply.  */
18960 char $ac_func ();
18961 /* The GNU C library defines this for functions which it implements
18962     to always fail with ENOSYS.  Some functions are actually named
18963     something starting with __ and the normal name is an alias.  */
18964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18965 choke me
18966 #else
18967 char (*f) () = $ac_func;
18968 #endif
18969 #ifdef __cplusplus
18970 }
18971 #endif
18972
18973 int
18974 main ()
18975 {
18976 return f != $ac_func;
18977   ;
18978   return 0;
18979 }
18980 _ACEOF
18981 rm -f conftest.$ac_objext conftest$ac_exeext
18982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18983   (eval $ac_link) 2>conftest.er1
18984   ac_status=$?
18985   grep -v '^ *+' conftest.er1 >conftest.err
18986   rm -f conftest.er1
18987   cat conftest.err >&5
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); } &&
18990          { ac_try='test -z "$ac_c_werror_flag"
18991                          || test ! -s conftest.err'
18992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993   (eval $ac_try) 2>&5
18994   ac_status=$?
18995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996   (exit $ac_status); }; } &&
18997          { ac_try='test -s conftest$ac_exeext'
18998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999   (eval $ac_try) 2>&5
19000   ac_status=$?
19001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002   (exit $ac_status); }; }; then
19003   eval "$as_ac_var=yes"
19004 else
19005   echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19007
19008 eval "$as_ac_var=no"
19009 fi
19010 rm -f conftest.err conftest.$ac_objext \
19011       conftest$ac_exeext conftest.$ac_ext
19012 fi
19013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19015 if test `eval echo '${'$as_ac_var'}'` = yes; then
19016   cat >>confdefs.h <<_ACEOF
19017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19018 _ACEOF
19019  cat >>confdefs.h <<\_ACEOF
19020 #define HAVE_GETHOSTBYNAME2 1
19021 _ACEOF
19022
19023 fi
19024 done
19025
19026
19027 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19028 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19029 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19030   echo $ECHO_N "(cached) $ECHO_C" >&6
19031 else
19032   cat >conftest.$ac_ext <<_ACEOF
19033 /* confdefs.h.  */
19034 _ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h.  */
19038 #include <sys/socket.h>
19039 int
19040 main ()
19041 {
19042 struct sockaddr s; s.sa_len;
19043   ;
19044   return 0;
19045 }
19046 _ACEOF
19047 rm -f conftest.$ac_objext
19048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19049   (eval $ac_compile) 2>conftest.er1
19050   ac_status=$?
19051   grep -v '^ *+' conftest.er1 >conftest.err
19052   rm -f conftest.er1
19053   cat conftest.err >&5
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); } &&
19056          { ac_try='test -z "$ac_c_werror_flag"
19057                          || test ! -s conftest.err'
19058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059   (eval $ac_try) 2>&5
19060   ac_status=$?
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); }; } &&
19063          { ac_try='test -s conftest.$ac_objext'
19064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065   (eval $ac_try) 2>&5
19066   ac_status=$?
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); }; }; then
19069   ac_cv_struct_sockaddr_sa_len=yes
19070 else
19071   echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19073
19074 ac_cv_struct_sockaddr_sa_len=no
19075 fi
19076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19077 fi
19078 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19079 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19080
19081  if test $ac_cv_struct_sockaddr_sa_len = yes; then
19082
19083 cat >>confdefs.h <<\_ACEOF
19084 #define HAVE_SA_LEN 1
19085 _ACEOF
19086
19087  fi
19088
19089
19090 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19091 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19092 if test "${ac_cv_ipv6_support+set}" = set; then
19093   echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095   cat >conftest.$ac_ext <<_ACEOF
19096 /* confdefs.h.  */
19097 _ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h.  */
19101  #include <sys/types.h>
19102 #include <sys/socket.h>
19103 #include <netinet/in.h>
19104 int
19105 main ()
19106 {
19107 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19108  0;
19109   ;
19110   return 0;
19111 }
19112 _ACEOF
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19115   (eval $ac_link) 2>conftest.er1
19116   ac_status=$?
19117   grep -v '^ *+' conftest.er1 >conftest.err
19118   rm -f conftest.er1
19119   cat conftest.err >&5
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); } &&
19122          { ac_try='test -z "$ac_c_werror_flag"
19123                          || test ! -s conftest.err'
19124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125   (eval $ac_try) 2>&5
19126   ac_status=$?
19127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128   (exit $ac_status); }; } &&
19129          { ac_try='test -s conftest$ac_exeext'
19130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19131   (eval $ac_try) 2>&5
19132   ac_status=$?
19133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); }; }; then
19135   ac_cv_ipv6_support=yes
19136 else
19137   echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19139
19140 ac_cv_ipv6_support=no
19141 fi
19142 rm -f conftest.err conftest.$ac_objext \
19143       conftest$ac_exeext conftest.$ac_ext
19144 fi
19145 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19146 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19147
19148 if test "$ac_cv_ipv6_support" = yes; then
19149
19150 cat >>confdefs.h <<\_ACEOF
19151 #define HAVE_IPV6 1
19152 _ACEOF
19153
19154 fi
19155
19156
19157
19158
19159 for ac_func in strftime
19160 do
19161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19162 echo "$as_me:$LINENO: checking for $ac_func" >&5
19163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19164 if eval "test \"\${$as_ac_var+set}\" = set"; then
19165   echo $ECHO_N "(cached) $ECHO_C" >&6
19166 else
19167   cat >conftest.$ac_ext <<_ACEOF
19168 /* confdefs.h.  */
19169 _ACEOF
19170 cat confdefs.h >>conftest.$ac_ext
19171 cat >>conftest.$ac_ext <<_ACEOF
19172 /* end confdefs.h.  */
19173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19175 #define $ac_func innocuous_$ac_func
19176
19177 /* System header to define __stub macros and hopefully few prototypes,
19178     which can conflict with char $ac_func (); below.
19179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19180     <limits.h> exists even on freestanding compilers.  */
19181
19182 #ifdef __STDC__
19183 # include <limits.h>
19184 #else
19185 # include <assert.h>
19186 #endif
19187
19188 #undef $ac_func
19189
19190 /* Override any gcc2 internal prototype to avoid an error.  */
19191 #ifdef __cplusplus
19192 extern "C"
19193 {
19194 #endif
19195 /* We use char because int might match the return type of a gcc2
19196    builtin and then its argument prototype would still apply.  */
19197 char $ac_func ();
19198 /* The GNU C library defines this for functions which it implements
19199     to always fail with ENOSYS.  Some functions are actually named
19200     something starting with __ and the normal name is an alias.  */
19201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19202 choke me
19203 #else
19204 char (*f) () = $ac_func;
19205 #endif
19206 #ifdef __cplusplus
19207 }
19208 #endif
19209
19210 int
19211 main ()
19212 {
19213 return f != $ac_func;
19214   ;
19215   return 0;
19216 }
19217 _ACEOF
19218 rm -f conftest.$ac_objext conftest$ac_exeext
19219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19220   (eval $ac_link) 2>conftest.er1
19221   ac_status=$?
19222   grep -v '^ *+' conftest.er1 >conftest.err
19223   rm -f conftest.er1
19224   cat conftest.err >&5
19225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226   (exit $ac_status); } &&
19227          { ac_try='test -z "$ac_c_werror_flag"
19228                          || test ! -s conftest.err'
19229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230   (eval $ac_try) 2>&5
19231   ac_status=$?
19232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233   (exit $ac_status); }; } &&
19234          { ac_try='test -s conftest$ac_exeext'
19235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236   (eval $ac_try) 2>&5
19237   ac_status=$?
19238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239   (exit $ac_status); }; }; then
19240   eval "$as_ac_var=yes"
19241 else
19242   echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19244
19245 eval "$as_ac_var=no"
19246 fi
19247 rm -f conftest.err conftest.$ac_objext \
19248       conftest$ac_exeext conftest.$ac_ext
19249 fi
19250 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19251 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19252 if test `eval echo '${'$as_ac_var'}'` = yes; then
19253   cat >>confdefs.h <<_ACEOF
19254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19255 _ACEOF
19256
19257 else
19258   # strftime is in -lintl on SCO UNIX.
19259 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19260 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19261 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19262   echo $ECHO_N "(cached) $ECHO_C" >&6
19263 else
19264   ac_check_lib_save_LIBS=$LIBS
19265 LIBS="-lintl  $LIBS"
19266 cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h.  */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h.  */
19272
19273 /* Override any gcc2 internal prototype to avoid an error.  */
19274 #ifdef __cplusplus
19275 extern "C"
19276 #endif
19277 /* We use char because int might match the return type of a gcc2
19278    builtin and then its argument prototype would still apply.  */
19279 char strftime ();
19280 int
19281 main ()
19282 {
19283 strftime ();
19284   ;
19285   return 0;
19286 }
19287 _ACEOF
19288 rm -f conftest.$ac_objext conftest$ac_exeext
19289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19290   (eval $ac_link) 2>conftest.er1
19291   ac_status=$?
19292   grep -v '^ *+' conftest.er1 >conftest.err
19293   rm -f conftest.er1
19294   cat conftest.err >&5
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); } &&
19297          { ac_try='test -z "$ac_c_werror_flag"
19298                          || test ! -s conftest.err'
19299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300   (eval $ac_try) 2>&5
19301   ac_status=$?
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); }; } &&
19304          { ac_try='test -s conftest$ac_exeext'
19305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306   (eval $ac_try) 2>&5
19307   ac_status=$?
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); }; }; then
19310   ac_cv_lib_intl_strftime=yes
19311 else
19312   echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19314
19315 ac_cv_lib_intl_strftime=no
19316 fi
19317 rm -f conftest.err conftest.$ac_objext \
19318       conftest$ac_exeext conftest.$ac_ext
19319 LIBS=$ac_check_lib_save_LIBS
19320 fi
19321 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19322 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19323 if test $ac_cv_lib_intl_strftime = yes; then
19324   cat >>confdefs.h <<\_ACEOF
19325 #define HAVE_STRFTIME 1
19326 _ACEOF
19327
19328 LIBS="-lintl $LIBS"
19329 fi
19330
19331 fi
19332 done
19333
19334
19335 for ac_func in vprintf
19336 do
19337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19338 echo "$as_me:$LINENO: checking for $ac_func" >&5
19339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19340 if eval "test \"\${$as_ac_var+set}\" = set"; then
19341   echo $ECHO_N "(cached) $ECHO_C" >&6
19342 else
19343   cat >conftest.$ac_ext <<_ACEOF
19344 /* confdefs.h.  */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h.  */
19349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19351 #define $ac_func innocuous_$ac_func
19352
19353 /* System header to define __stub macros and hopefully few prototypes,
19354     which can conflict with char $ac_func (); below.
19355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19356     <limits.h> exists even on freestanding compilers.  */
19357
19358 #ifdef __STDC__
19359 # include <limits.h>
19360 #else
19361 # include <assert.h>
19362 #endif
19363
19364 #undef $ac_func
19365
19366 /* Override any gcc2 internal prototype to avoid an error.  */
19367 #ifdef __cplusplus
19368 extern "C"
19369 {
19370 #endif
19371 /* We use char because int might match the return type of a gcc2
19372    builtin and then its argument prototype would still apply.  */
19373 char $ac_func ();
19374 /* The GNU C library defines this for functions which it implements
19375     to always fail with ENOSYS.  Some functions are actually named
19376     something starting with __ and the normal name is an alias.  */
19377 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19378 choke me
19379 #else
19380 char (*f) () = $ac_func;
19381 #endif
19382 #ifdef __cplusplus
19383 }
19384 #endif
19385
19386 int
19387 main ()
19388 {
19389 return f != $ac_func;
19390   ;
19391   return 0;
19392 }
19393 _ACEOF
19394 rm -f conftest.$ac_objext conftest$ac_exeext
19395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19396   (eval $ac_link) 2>conftest.er1
19397   ac_status=$?
19398   grep -v '^ *+' conftest.er1 >conftest.err
19399   rm -f conftest.er1
19400   cat conftest.err >&5
19401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402   (exit $ac_status); } &&
19403          { ac_try='test -z "$ac_c_werror_flag"
19404                          || test ! -s conftest.err'
19405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19406   (eval $ac_try) 2>&5
19407   ac_status=$?
19408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409   (exit $ac_status); }; } &&
19410          { ac_try='test -s conftest$ac_exeext'
19411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412   (eval $ac_try) 2>&5
19413   ac_status=$?
19414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415   (exit $ac_status); }; }; then
19416   eval "$as_ac_var=yes"
19417 else
19418   echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19420
19421 eval "$as_ac_var=no"
19422 fi
19423 rm -f conftest.err conftest.$ac_objext \
19424       conftest$ac_exeext conftest.$ac_ext
19425 fi
19426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19427 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19428 if test `eval echo '${'$as_ac_var'}'` = yes; then
19429   cat >>confdefs.h <<_ACEOF
19430 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19431 _ACEOF
19432
19433 echo "$as_me:$LINENO: checking for _doprnt" >&5
19434 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19435 if test "${ac_cv_func__doprnt+set}" = set; then
19436   echo $ECHO_N "(cached) $ECHO_C" >&6
19437 else
19438   cat >conftest.$ac_ext <<_ACEOF
19439 /* confdefs.h.  */
19440 _ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h.  */
19444 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19446 #define _doprnt innocuous__doprnt
19447
19448 /* System header to define __stub macros and hopefully few prototypes,
19449     which can conflict with char _doprnt (); below.
19450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19451     <limits.h> exists even on freestanding compilers.  */
19452
19453 #ifdef __STDC__
19454 # include <limits.h>
19455 #else
19456 # include <assert.h>
19457 #endif
19458
19459 #undef _doprnt
19460
19461 /* Override any gcc2 internal prototype to avoid an error.  */
19462 #ifdef __cplusplus
19463 extern "C"
19464 {
19465 #endif
19466 /* We use char because int might match the return type of a gcc2
19467    builtin and then its argument prototype would still apply.  */
19468 char _doprnt ();
19469 /* The GNU C library defines this for functions which it implements
19470     to always fail with ENOSYS.  Some functions are actually named
19471     something starting with __ and the normal name is an alias.  */
19472 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19473 choke me
19474 #else
19475 char (*f) () = _doprnt;
19476 #endif
19477 #ifdef __cplusplus
19478 }
19479 #endif
19480
19481 int
19482 main ()
19483 {
19484 return f != _doprnt;
19485   ;
19486   return 0;
19487 }
19488 _ACEOF
19489 rm -f conftest.$ac_objext conftest$ac_exeext
19490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19491   (eval $ac_link) 2>conftest.er1
19492   ac_status=$?
19493   grep -v '^ *+' conftest.er1 >conftest.err
19494   rm -f conftest.er1
19495   cat conftest.err >&5
19496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497   (exit $ac_status); } &&
19498          { ac_try='test -z "$ac_c_werror_flag"
19499                          || test ! -s conftest.err'
19500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19501   (eval $ac_try) 2>&5
19502   ac_status=$?
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); }; } &&
19505          { ac_try='test -s conftest$ac_exeext'
19506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507   (eval $ac_try) 2>&5
19508   ac_status=$?
19509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510   (exit $ac_status); }; }; then
19511   ac_cv_func__doprnt=yes
19512 else
19513   echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19515
19516 ac_cv_func__doprnt=no
19517 fi
19518 rm -f conftest.err conftest.$ac_objext \
19519       conftest$ac_exeext conftest.$ac_ext
19520 fi
19521 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19522 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19523 if test $ac_cv_func__doprnt = yes; then
19524
19525 cat >>confdefs.h <<\_ACEOF
19526 #define HAVE_DOPRNT 1
19527 _ACEOF
19528
19529 fi
19530
19531 fi
19532 done
19533
19534
19535 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19536 # for constant arguments.  Useless!
19537 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19538 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19539 if test "${ac_cv_working_alloca_h+set}" = set; then
19540   echo $ECHO_N "(cached) $ECHO_C" >&6
19541 else
19542   cat >conftest.$ac_ext <<_ACEOF
19543 /* confdefs.h.  */
19544 _ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h.  */
19548 #include <alloca.h>
19549 int
19550 main ()
19551 {
19552 char *p = (char *) alloca (2 * sizeof (int));
19553   ;
19554   return 0;
19555 }
19556 _ACEOF
19557 rm -f conftest.$ac_objext conftest$ac_exeext
19558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19559   (eval $ac_link) 2>conftest.er1
19560   ac_status=$?
19561   grep -v '^ *+' conftest.er1 >conftest.err
19562   rm -f conftest.er1
19563   cat conftest.err >&5
19564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565   (exit $ac_status); } &&
19566          { ac_try='test -z "$ac_c_werror_flag"
19567                          || test ! -s conftest.err'
19568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569   (eval $ac_try) 2>&5
19570   ac_status=$?
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); }; } &&
19573          { ac_try='test -s conftest$ac_exeext'
19574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575   (eval $ac_try) 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; }; then
19579   ac_cv_working_alloca_h=yes
19580 else
19581   echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19583
19584 ac_cv_working_alloca_h=no
19585 fi
19586 rm -f conftest.err conftest.$ac_objext \
19587       conftest$ac_exeext conftest.$ac_ext
19588 fi
19589 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19590 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19591 if test $ac_cv_working_alloca_h = yes; then
19592
19593 cat >>confdefs.h <<\_ACEOF
19594 #define HAVE_ALLOCA_H 1
19595 _ACEOF
19596
19597 fi
19598
19599 echo "$as_me:$LINENO: checking for alloca" >&5
19600 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19601 if test "${ac_cv_func_alloca_works+set}" = set; then
19602   echo $ECHO_N "(cached) $ECHO_C" >&6
19603 else
19604   cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h.  */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h.  */
19610 #ifdef __GNUC__
19611 # define alloca __builtin_alloca
19612 #else
19613 # ifdef _MSC_VER
19614 #  include <malloc.h>
19615 #  define alloca _alloca
19616 # else
19617 #  if HAVE_ALLOCA_H
19618 #   include <alloca.h>
19619 #  else
19620 #   ifdef _AIX
19621  #pragma alloca
19622 #   else
19623 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19624 char *alloca ();
19625 #    endif
19626 #   endif
19627 #  endif
19628 # endif
19629 #endif
19630
19631 int
19632 main ()
19633 {
19634 char *p = (char *) alloca (1);
19635   ;
19636   return 0;
19637 }
19638 _ACEOF
19639 rm -f conftest.$ac_objext conftest$ac_exeext
19640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19641   (eval $ac_link) 2>conftest.er1
19642   ac_status=$?
19643   grep -v '^ *+' conftest.er1 >conftest.err
19644   rm -f conftest.er1
19645   cat conftest.err >&5
19646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647   (exit $ac_status); } &&
19648          { ac_try='test -z "$ac_c_werror_flag"
19649                          || test ! -s conftest.err'
19650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651   (eval $ac_try) 2>&5
19652   ac_status=$?
19653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654   (exit $ac_status); }; } &&
19655          { ac_try='test -s conftest$ac_exeext'
19656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657   (eval $ac_try) 2>&5
19658   ac_status=$?
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); }; }; then
19661   ac_cv_func_alloca_works=yes
19662 else
19663   echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19665
19666 ac_cv_func_alloca_works=no
19667 fi
19668 rm -f conftest.err conftest.$ac_objext \
19669       conftest$ac_exeext conftest.$ac_ext
19670 fi
19671 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19672 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19673
19674 if test $ac_cv_func_alloca_works = yes; then
19675
19676 cat >>confdefs.h <<\_ACEOF
19677 #define HAVE_ALLOCA 1
19678 _ACEOF
19679
19680 else
19681   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19682 # that cause trouble.  Some versions do not even contain alloca or
19683 # contain a buggy version.  If you still want to use their alloca,
19684 # use ar to extract alloca.o from them instead of compiling alloca.c.
19685
19686 ALLOCA=alloca.$ac_objext
19687
19688 cat >>confdefs.h <<\_ACEOF
19689 #define C_ALLOCA 1
19690 _ACEOF
19691
19692
19693 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19694 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19695 if test "${ac_cv_os_cray+set}" = set; then
19696   echo $ECHO_N "(cached) $ECHO_C" >&6
19697 else
19698   cat >conftest.$ac_ext <<_ACEOF
19699 /* confdefs.h.  */
19700 _ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h.  */
19704 #if defined(CRAY) && ! defined(CRAY2)
19705 webecray
19706 #else
19707 wenotbecray
19708 #endif
19709
19710 _ACEOF
19711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19712   $EGREP "webecray" >/dev/null 2>&1; then
19713   ac_cv_os_cray=yes
19714 else
19715   ac_cv_os_cray=no
19716 fi
19717 rm -f conftest*
19718
19719 fi
19720 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19721 echo "${ECHO_T}$ac_cv_os_cray" >&6
19722 if test $ac_cv_os_cray = yes; then
19723   for ac_func in _getb67 GETB67 getb67; do
19724     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19725 echo "$as_me:$LINENO: checking for $ac_func" >&5
19726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19727 if eval "test \"\${$as_ac_var+set}\" = set"; then
19728   echo $ECHO_N "(cached) $ECHO_C" >&6
19729 else
19730   cat >conftest.$ac_ext <<_ACEOF
19731 /* confdefs.h.  */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h.  */
19736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19738 #define $ac_func innocuous_$ac_func
19739
19740 /* System header to define __stub macros and hopefully few prototypes,
19741     which can conflict with char $ac_func (); below.
19742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19743     <limits.h> exists even on freestanding compilers.  */
19744
19745 #ifdef __STDC__
19746 # include <limits.h>
19747 #else
19748 # include <assert.h>
19749 #endif
19750
19751 #undef $ac_func
19752
19753 /* Override any gcc2 internal prototype to avoid an error.  */
19754 #ifdef __cplusplus
19755 extern "C"
19756 {
19757 #endif
19758 /* We use char because int might match the return type of a gcc2
19759    builtin and then its argument prototype would still apply.  */
19760 char $ac_func ();
19761 /* The GNU C library defines this for functions which it implements
19762     to always fail with ENOSYS.  Some functions are actually named
19763     something starting with __ and the normal name is an alias.  */
19764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19765 choke me
19766 #else
19767 char (*f) () = $ac_func;
19768 #endif
19769 #ifdef __cplusplus
19770 }
19771 #endif
19772
19773 int
19774 main ()
19775 {
19776 return f != $ac_func;
19777   ;
19778   return 0;
19779 }
19780 _ACEOF
19781 rm -f conftest.$ac_objext conftest$ac_exeext
19782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19783   (eval $ac_link) 2>conftest.er1
19784   ac_status=$?
19785   grep -v '^ *+' conftest.er1 >conftest.err
19786   rm -f conftest.er1
19787   cat conftest.err >&5
19788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789   (exit $ac_status); } &&
19790          { ac_try='test -z "$ac_c_werror_flag"
19791                          || test ! -s conftest.err'
19792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793   (eval $ac_try) 2>&5
19794   ac_status=$?
19795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796   (exit $ac_status); }; } &&
19797          { ac_try='test -s conftest$ac_exeext'
19798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799   (eval $ac_try) 2>&5
19800   ac_status=$?
19801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802   (exit $ac_status); }; }; then
19803   eval "$as_ac_var=yes"
19804 else
19805   echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19807
19808 eval "$as_ac_var=no"
19809 fi
19810 rm -f conftest.err conftest.$ac_objext \
19811       conftest$ac_exeext conftest.$ac_ext
19812 fi
19813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19815 if test `eval echo '${'$as_ac_var'}'` = yes; then
19816
19817 cat >>confdefs.h <<_ACEOF
19818 #define CRAY_STACKSEG_END $ac_func
19819 _ACEOF
19820
19821     break
19822 fi
19823
19824   done
19825 fi
19826
19827 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19828 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19829 if test "${ac_cv_c_stack_direction+set}" = set; then
19830   echo $ECHO_N "(cached) $ECHO_C" >&6
19831 else
19832   if test "$cross_compiling" = yes; then
19833   ac_cv_c_stack_direction=0
19834 else
19835   cat >conftest.$ac_ext <<_ACEOF
19836 /* confdefs.h.  */
19837 _ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h.  */
19841 int
19842 find_stack_direction ()
19843 {
19844   static char *addr = 0;
19845   auto char dummy;
19846   if (addr == 0)
19847     {
19848       addr = &dummy;
19849       return find_stack_direction ();
19850     }
19851   else
19852     return (&dummy > addr) ? 1 : -1;
19853 }
19854
19855 int
19856 main ()
19857 {
19858   exit (find_stack_direction () < 0);
19859 }
19860 _ACEOF
19861 rm -f conftest$ac_exeext
19862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19863   (eval $ac_link) 2>&5
19864   ac_status=$?
19865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868   (eval $ac_try) 2>&5
19869   ac_status=$?
19870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871   (exit $ac_status); }; }; then
19872   ac_cv_c_stack_direction=1
19873 else
19874   echo "$as_me: program exited with status $ac_status" >&5
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.$ac_ext >&5
19877
19878 ( exit $ac_status )
19879 ac_cv_c_stack_direction=-1
19880 fi
19881 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19882 fi
19883 fi
19884 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19885 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19886
19887 cat >>confdefs.h <<_ACEOF
19888 #define STACK_DIRECTION $ac_cv_c_stack_direction
19889 _ACEOF
19890
19891
19892 fi
19893
19894 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19895 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19896 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19897 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19898   echo $ECHO_N "(cached) $ECHO_C" >&6
19899 else
19900   ac_check_lib_save_LIBS=$LIBS
19901 LIBS="-lsun  $LIBS"
19902 cat >conftest.$ac_ext <<_ACEOF
19903 /* confdefs.h.  */
19904 _ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h.  */
19908
19909 /* Override any gcc2 internal prototype to avoid an error.  */
19910 #ifdef __cplusplus
19911 extern "C"
19912 #endif
19913 /* We use char because int might match the return type of a gcc2
19914    builtin and then its argument prototype would still apply.  */
19915 char getmntent ();
19916 int
19917 main ()
19918 {
19919 getmntent ();
19920   ;
19921   return 0;
19922 }
19923 _ACEOF
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19926   (eval $ac_link) 2>conftest.er1
19927   ac_status=$?
19928   grep -v '^ *+' conftest.er1 >conftest.err
19929   rm -f conftest.er1
19930   cat conftest.err >&5
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); } &&
19933          { ac_try='test -z "$ac_c_werror_flag"
19934                          || test ! -s conftest.err'
19935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936   (eval $ac_try) 2>&5
19937   ac_status=$?
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); }; } &&
19940          { ac_try='test -s conftest$ac_exeext'
19941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942   (eval $ac_try) 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); }; }; then
19946   ac_cv_lib_sun_getmntent=yes
19947 else
19948   echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19950
19951 ac_cv_lib_sun_getmntent=no
19952 fi
19953 rm -f conftest.err conftest.$ac_objext \
19954       conftest$ac_exeext conftest.$ac_ext
19955 LIBS=$ac_check_lib_save_LIBS
19956 fi
19957 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19958 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19959 if test $ac_cv_lib_sun_getmntent = yes; then
19960   LIBS="-lsun $LIBS"
19961 else
19962   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19963 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19964 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19965   echo $ECHO_N "(cached) $ECHO_C" >&6
19966 else
19967   ac_check_lib_save_LIBS=$LIBS
19968 LIBS="-lseq  $LIBS"
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h.  */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h.  */
19975
19976 /* Override any gcc2 internal prototype to avoid an error.  */
19977 #ifdef __cplusplus
19978 extern "C"
19979 #endif
19980 /* We use char because int might match the return type of a gcc2
19981    builtin and then its argument prototype would still apply.  */
19982 char getmntent ();
19983 int
19984 main ()
19985 {
19986 getmntent ();
19987   ;
19988   return 0;
19989 }
19990 _ACEOF
19991 rm -f conftest.$ac_objext conftest$ac_exeext
19992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19993   (eval $ac_link) 2>conftest.er1
19994   ac_status=$?
19995   grep -v '^ *+' conftest.er1 >conftest.err
19996   rm -f conftest.er1
19997   cat conftest.err >&5
19998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999   (exit $ac_status); } &&
20000          { ac_try='test -z "$ac_c_werror_flag"
20001                          || test ! -s conftest.err'
20002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003   (eval $ac_try) 2>&5
20004   ac_status=$?
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); }; } &&
20007          { ac_try='test -s conftest$ac_exeext'
20008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009   (eval $ac_try) 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; }; then
20013   ac_cv_lib_seq_getmntent=yes
20014 else
20015   echo "$as_me: failed program was:" >&5
20016 sed 's/^/| /' conftest.$ac_ext >&5
20017
20018 ac_cv_lib_seq_getmntent=no
20019 fi
20020 rm -f conftest.err conftest.$ac_objext \
20021       conftest$ac_exeext conftest.$ac_ext
20022 LIBS=$ac_check_lib_save_LIBS
20023 fi
20024 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20025 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20026 if test $ac_cv_lib_seq_getmntent = yes; then
20027   LIBS="-lseq $LIBS"
20028 else
20029   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20030 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20031 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20032   echo $ECHO_N "(cached) $ECHO_C" >&6
20033 else
20034   ac_check_lib_save_LIBS=$LIBS
20035 LIBS="-lgen  $LIBS"
20036 cat >conftest.$ac_ext <<_ACEOF
20037 /* confdefs.h.  */
20038 _ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h.  */
20042
20043 /* Override any gcc2 internal prototype to avoid an error.  */
20044 #ifdef __cplusplus
20045 extern "C"
20046 #endif
20047 /* We use char because int might match the return type of a gcc2
20048    builtin and then its argument prototype would still apply.  */
20049 char getmntent ();
20050 int
20051 main ()
20052 {
20053 getmntent ();
20054   ;
20055   return 0;
20056 }
20057 _ACEOF
20058 rm -f conftest.$ac_objext conftest$ac_exeext
20059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20060   (eval $ac_link) 2>conftest.er1
20061   ac_status=$?
20062   grep -v '^ *+' conftest.er1 >conftest.err
20063   rm -f conftest.er1
20064   cat conftest.err >&5
20065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066   (exit $ac_status); } &&
20067          { ac_try='test -z "$ac_c_werror_flag"
20068                          || test ! -s conftest.err'
20069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070   (eval $ac_try) 2>&5
20071   ac_status=$?
20072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073   (exit $ac_status); }; } &&
20074          { ac_try='test -s conftest$ac_exeext'
20075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20076   (eval $ac_try) 2>&5
20077   ac_status=$?
20078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079   (exit $ac_status); }; }; then
20080   ac_cv_lib_gen_getmntent=yes
20081 else
20082   echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20084
20085 ac_cv_lib_gen_getmntent=no
20086 fi
20087 rm -f conftest.err conftest.$ac_objext \
20088       conftest$ac_exeext conftest.$ac_ext
20089 LIBS=$ac_check_lib_save_LIBS
20090 fi
20091 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20092 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20093 if test $ac_cv_lib_gen_getmntent = yes; then
20094   LIBS="-lgen $LIBS"
20095 fi
20096
20097 fi
20098
20099 fi
20100
20101
20102 for ac_func in getmntent
20103 do
20104 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20105 echo "$as_me:$LINENO: checking for $ac_func" >&5
20106 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20107 if eval "test \"\${$as_ac_var+set}\" = set"; then
20108   echo $ECHO_N "(cached) $ECHO_C" >&6
20109 else
20110   cat >conftest.$ac_ext <<_ACEOF
20111 /* confdefs.h.  */
20112 _ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h.  */
20116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20117    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20118 #define $ac_func innocuous_$ac_func
20119
20120 /* System header to define __stub macros and hopefully few prototypes,
20121     which can conflict with char $ac_func (); below.
20122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20123     <limits.h> exists even on freestanding compilers.  */
20124
20125 #ifdef __STDC__
20126 # include <limits.h>
20127 #else
20128 # include <assert.h>
20129 #endif
20130
20131 #undef $ac_func
20132
20133 /* Override any gcc2 internal prototype to avoid an error.  */
20134 #ifdef __cplusplus
20135 extern "C"
20136 {
20137 #endif
20138 /* We use char because int might match the return type of a gcc2
20139    builtin and then its argument prototype would still apply.  */
20140 char $ac_func ();
20141 /* The GNU C library defines this for functions which it implements
20142     to always fail with ENOSYS.  Some functions are actually named
20143     something starting with __ and the normal name is an alias.  */
20144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20145 choke me
20146 #else
20147 char (*f) () = $ac_func;
20148 #endif
20149 #ifdef __cplusplus
20150 }
20151 #endif
20152
20153 int
20154 main ()
20155 {
20156 return f != $ac_func;
20157   ;
20158   return 0;
20159 }
20160 _ACEOF
20161 rm -f conftest.$ac_objext conftest$ac_exeext
20162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20163   (eval $ac_link) 2>conftest.er1
20164   ac_status=$?
20165   grep -v '^ *+' conftest.er1 >conftest.err
20166   rm -f conftest.er1
20167   cat conftest.err >&5
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); } &&
20170          { ac_try='test -z "$ac_c_werror_flag"
20171                          || test ! -s conftest.err'
20172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20173   (eval $ac_try) 2>&5
20174   ac_status=$?
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); }; } &&
20177          { ac_try='test -s conftest$ac_exeext'
20178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20179   (eval $ac_try) 2>&5
20180   ac_status=$?
20181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182   (exit $ac_status); }; }; then
20183   eval "$as_ac_var=yes"
20184 else
20185   echo "$as_me: failed program was:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20187
20188 eval "$as_ac_var=no"
20189 fi
20190 rm -f conftest.err conftest.$ac_objext \
20191       conftest$ac_exeext conftest.$ac_ext
20192 fi
20193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20195 if test `eval echo '${'$as_ac_var'}'` = yes; then
20196   cat >>confdefs.h <<_ACEOF
20197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20198 _ACEOF
20199
20200 fi
20201 done
20202
20203
20204 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20205 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20206 if test "${ac_cv_func_closedir_void+set}" = set; then
20207   echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209   if test "$cross_compiling" = yes; then
20210   ac_cv_func_closedir_void=yes
20211 else
20212   cat >conftest.$ac_ext <<_ACEOF
20213 /* confdefs.h.  */
20214 _ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h.  */
20218 $ac_includes_default
20219 #include <$ac_header_dirent>
20220 #ifndef __cplusplus
20221 int closedir ();
20222 #endif
20223
20224 int
20225 main ()
20226 {
20227 exit (closedir (opendir (".")) != 0);
20228   ;
20229   return 0;
20230 }
20231 _ACEOF
20232 rm -f conftest$ac_exeext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20234   (eval $ac_link) 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239   (eval $ac_try) 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; }; then
20243   ac_cv_func_closedir_void=no
20244 else
20245   echo "$as_me: program exited with status $ac_status" >&5
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249 ( exit $ac_status )
20250 ac_cv_func_closedir_void=yes
20251 fi
20252 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20253 fi
20254 fi
20255 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20256 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20257 if test $ac_cv_func_closedir_void = yes; then
20258
20259 cat >>confdefs.h <<\_ACEOF
20260 #define CLOSEDIR_VOID 1
20261 _ACEOF
20262
20263 fi
20264
20265 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20266 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20267 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20268   echo $ECHO_N "(cached) $ECHO_C" >&6
20269 else
20270   if test "$cross_compiling" = yes; then
20271   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20272 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20273    { (exit 1); exit 1; }; }
20274 else
20275   cat >conftest.$ac_ext <<_ACEOF
20276 /* confdefs.h.  */
20277 _ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h.  */
20281 #if HAVE_UNISTD_H
20282 # include <unistd.h>
20283 #endif
20284
20285 int
20286 main ()
20287 {
20288 /* If this system has a BSD-style setpgrp which takes arguments,
20289   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20290   exit successfully. */
20291   exit (setpgrp (1,1) == -1 ? 0 : 1);
20292   ;
20293   return 0;
20294 }
20295 _ACEOF
20296 rm -f conftest$ac_exeext
20297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20298   (eval $ac_link) 2>&5
20299   ac_status=$?
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303   (eval $ac_try) 2>&5
20304   ac_status=$?
20305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306   (exit $ac_status); }; }; then
20307   ac_cv_func_setpgrp_void=no
20308 else
20309   echo "$as_me: program exited with status $ac_status" >&5
20310 echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20312
20313 ( exit $ac_status )
20314 ac_cv_func_setpgrp_void=yes
20315 fi
20316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20317 fi
20318 fi
20319 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20320 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20321 if test $ac_cv_func_setpgrp_void = yes; then
20322
20323 cat >>confdefs.h <<\_ACEOF
20324 #define SETPGRP_VOID 1
20325 _ACEOF
20326
20327 fi
20328                       # AC_FUNC_FNMATCH    dnl use local version
20329
20330
20331 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20332 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20333 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20334   echo $ECHO_N "(cached) $ECHO_C" >&6
20335 else
20336   ac_check_lib_save_LIBS=$LIBS
20337 LIBS="-lxpg4  $LIBS"
20338 cat >conftest.$ac_ext <<_ACEOF
20339 /* confdefs.h.  */
20340 _ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h.  */
20344
20345 /* Override any gcc2 internal prototype to avoid an error.  */
20346 #ifdef __cplusplus
20347 extern "C"
20348 #endif
20349 /* We use char because int might match the return type of a gcc2
20350    builtin and then its argument prototype would still apply.  */
20351 char setlocale ();
20352 int
20353 main ()
20354 {
20355 setlocale ();
20356   ;
20357   return 0;
20358 }
20359 _ACEOF
20360 rm -f conftest.$ac_objext conftest$ac_exeext
20361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20362   (eval $ac_link) 2>conftest.er1
20363   ac_status=$?
20364   grep -v '^ *+' conftest.er1 >conftest.err
20365   rm -f conftest.er1
20366   cat conftest.err >&5
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); } &&
20369          { ac_try='test -z "$ac_c_werror_flag"
20370                          || test ! -s conftest.err'
20371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372   (eval $ac_try) 2>&5
20373   ac_status=$?
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); }; } &&
20376          { ac_try='test -s conftest$ac_exeext'
20377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378   (eval $ac_try) 2>&5
20379   ac_status=$?
20380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381   (exit $ac_status); }; }; then
20382   ac_cv_lib_xpg4_setlocale=yes
20383 else
20384   echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20386
20387 ac_cv_lib_xpg4_setlocale=no
20388 fi
20389 rm -f conftest.err conftest.$ac_objext \
20390       conftest$ac_exeext conftest.$ac_ext
20391 LIBS=$ac_check_lib_save_LIBS
20392 fi
20393 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20394 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20395 if test $ac_cv_lib_xpg4_setlocale = yes; then
20396   LIBS="$LIBS -lxpg4"
20397 fi
20398
20399
20400
20401
20402 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20403 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20404 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20405   echo $ECHO_N "(cached) $ECHO_C" >&6
20406 else
20407   ac_check_lib_save_LIBS=$LIBS
20408 LIBS="-lsun  $LIBS"
20409 cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415
20416 /* Override any gcc2 internal prototype to avoid an error.  */
20417 #ifdef __cplusplus
20418 extern "C"
20419 #endif
20420 /* We use char because int might match the return type of a gcc2
20421    builtin and then its argument prototype would still apply.  */
20422 char getpwnam ();
20423 int
20424 main ()
20425 {
20426 getpwnam ();
20427   ;
20428   return 0;
20429 }
20430 _ACEOF
20431 rm -f conftest.$ac_objext conftest$ac_exeext
20432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20433   (eval $ac_link) 2>conftest.er1
20434   ac_status=$?
20435   grep -v '^ *+' conftest.er1 >conftest.err
20436   rm -f conftest.er1
20437   cat conftest.err >&5
20438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439   (exit $ac_status); } &&
20440          { ac_try='test -z "$ac_c_werror_flag"
20441                          || test ! -s conftest.err'
20442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443   (eval $ac_try) 2>&5
20444   ac_status=$?
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); }; } &&
20447          { ac_try='test -s conftest$ac_exeext'
20448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449   (eval $ac_try) 2>&5
20450   ac_status=$?
20451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452   (exit $ac_status); }; }; then
20453   ac_cv_lib_sun_getpwnam=yes
20454 else
20455   echo "$as_me: failed program was:" >&5
20456 sed 's/^/| /' conftest.$ac_ext >&5
20457
20458 ac_cv_lib_sun_getpwnam=no
20459 fi
20460 rm -f conftest.err conftest.$ac_objext \
20461       conftest$ac_exeext conftest.$ac_ext
20462 LIBS=$ac_check_lib_save_LIBS
20463 fi
20464 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20465 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20466 if test $ac_cv_lib_sun_getpwnam = yes; then
20467   cat >>confdefs.h <<_ACEOF
20468 #define HAVE_LIBSUN 1
20469 _ACEOF
20470
20471   LIBS="-lsun $LIBS"
20472
20473 fi
20474
20475
20476
20477 for ac_header in zlib.h
20478 do
20479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20481   echo "$as_me:$LINENO: checking for $ac_header" >&5
20482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20484   echo $ECHO_N "(cached) $ECHO_C" >&6
20485 fi
20486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20488 else
20489   # Is the header compilable?
20490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20492 cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h.  */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h.  */
20498 $ac_includes_default
20499 #include <$ac_header>
20500 _ACEOF
20501 rm -f conftest.$ac_objext
20502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20503   (eval $ac_compile) 2>conftest.er1
20504   ac_status=$?
20505   grep -v '^ *+' conftest.er1 >conftest.err
20506   rm -f conftest.er1
20507   cat conftest.err >&5
20508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509   (exit $ac_status); } &&
20510          { ac_try='test -z "$ac_c_werror_flag"
20511                          || test ! -s conftest.err'
20512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513   (eval $ac_try) 2>&5
20514   ac_status=$?
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); }; } &&
20517          { ac_try='test -s conftest.$ac_objext'
20518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20519   (eval $ac_try) 2>&5
20520   ac_status=$?
20521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); }; }; then
20523   ac_header_compiler=yes
20524 else
20525   echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20527
20528 ac_header_compiler=no
20529 fi
20530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20531 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20532 echo "${ECHO_T}$ac_header_compiler" >&6
20533
20534 # Is the header present?
20535 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20537 cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h.  */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h.  */
20543 #include <$ac_header>
20544 _ACEOF
20545 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20546   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20547   ac_status=$?
20548   grep -v '^ *+' conftest.er1 >conftest.err
20549   rm -f conftest.er1
20550   cat conftest.err >&5
20551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552   (exit $ac_status); } >/dev/null; then
20553   if test -s conftest.err; then
20554     ac_cpp_err=$ac_c_preproc_warn_flag
20555     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20556   else
20557     ac_cpp_err=
20558   fi
20559 else
20560   ac_cpp_err=yes
20561 fi
20562 if test -z "$ac_cpp_err"; then
20563   ac_header_preproc=yes
20564 else
20565   echo "$as_me: failed program was:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20567
20568   ac_header_preproc=no
20569 fi
20570 rm -f conftest.err conftest.$ac_ext
20571 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20572 echo "${ECHO_T}$ac_header_preproc" >&6
20573
20574 # So?  What about this header?
20575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20576   yes:no: )
20577     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20581     ac_header_preproc=yes
20582     ;;
20583   no:yes:* )
20584     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20586     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20587 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20588     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20590     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20591 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20592     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20594     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20596     (
20597       cat <<\_ASBOX
20598 ## ------------------------------------------ ##
20599 ## Report this to the AC_PACKAGE_NAME lists.  ##
20600 ## ------------------------------------------ ##
20601 _ASBOX
20602     ) |
20603       sed "s/^/$as_me: WARNING:     /" >&2
20604     ;;
20605 esac
20606 echo "$as_me:$LINENO: checking for $ac_header" >&5
20607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20609   echo $ECHO_N "(cached) $ECHO_C" >&6
20610 else
20611   eval "$as_ac_Header=\$ac_header_preproc"
20612 fi
20613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20615
20616 fi
20617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20618   cat >>confdefs.h <<_ACEOF
20619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20620 _ACEOF
20621
20622 fi
20623
20624 done
20625
20626 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20627 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20628 if test "${ac_cv_lib_z_deflate+set}" = set; then
20629   echo $ECHO_N "(cached) $ECHO_C" >&6
20630 else
20631   ac_check_lib_save_LIBS=$LIBS
20632 LIBS="-lz  $LIBS"
20633 cat >conftest.$ac_ext <<_ACEOF
20634 /* confdefs.h.  */
20635 _ACEOF
20636 cat confdefs.h >>conftest.$ac_ext
20637 cat >>conftest.$ac_ext <<_ACEOF
20638 /* end confdefs.h.  */
20639
20640 /* Override any gcc2 internal prototype to avoid an error.  */
20641 #ifdef __cplusplus
20642 extern "C"
20643 #endif
20644 /* We use char because int might match the return type of a gcc2
20645    builtin and then its argument prototype would still apply.  */
20646 char deflate ();
20647 int
20648 main ()
20649 {
20650 deflate ();
20651   ;
20652   return 0;
20653 }
20654 _ACEOF
20655 rm -f conftest.$ac_objext conftest$ac_exeext
20656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20657   (eval $ac_link) 2>conftest.er1
20658   ac_status=$?
20659   grep -v '^ *+' conftest.er1 >conftest.err
20660   rm -f conftest.er1
20661   cat conftest.err >&5
20662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663   (exit $ac_status); } &&
20664          { ac_try='test -z "$ac_c_werror_flag"
20665                          || test ! -s conftest.err'
20666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20667   (eval $ac_try) 2>&5
20668   ac_status=$?
20669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670   (exit $ac_status); }; } &&
20671          { ac_try='test -s conftest$ac_exeext'
20672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673   (eval $ac_try) 2>&5
20674   ac_status=$?
20675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676   (exit $ac_status); }; }; then
20677   ac_cv_lib_z_deflate=yes
20678 else
20679   echo "$as_me: failed program was:" >&5
20680 sed 's/^/| /' conftest.$ac_ext >&5
20681
20682 ac_cv_lib_z_deflate=no
20683 fi
20684 rm -f conftest.err conftest.$ac_objext \
20685       conftest$ac_exeext conftest.$ac_ext
20686 LIBS=$ac_check_lib_save_LIBS
20687 fi
20688 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20689 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20690 if test $ac_cv_lib_z_deflate = yes; then
20691   FDLIBS="-lz"
20692 fi
20693
20694 have_zlib=no
20695 if test x$FDLIBS = x-lz; then
20696   cat >>confdefs.h <<\_ACEOF
20697 #define HAVE_LIBZ 1
20698 _ACEOF
20699
20700   have_zlib=yes
20701 fi
20702
20703 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20704   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20705 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20706 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20707   echo $ECHO_N "(cached) $ECHO_C" >&6
20708 fi
20709 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20710 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20711 else
20712   # Is the header compilable?
20713 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20714 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20715 cat >conftest.$ac_ext <<_ACEOF
20716 /* confdefs.h.  */
20717 _ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h.  */
20721 $ac_includes_default
20722 #include <sys/acl.h>
20723 _ACEOF
20724 rm -f conftest.$ac_objext
20725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20726   (eval $ac_compile) 2>conftest.er1
20727   ac_status=$?
20728   grep -v '^ *+' conftest.er1 >conftest.err
20729   rm -f conftest.er1
20730   cat conftest.err >&5
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); } &&
20733          { ac_try='test -z "$ac_c_werror_flag"
20734                          || test ! -s conftest.err'
20735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736   (eval $ac_try) 2>&5
20737   ac_status=$?
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); }; } &&
20740          { ac_try='test -s conftest.$ac_objext'
20741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742   (eval $ac_try) 2>&5
20743   ac_status=$?
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); }; }; then
20746   ac_header_compiler=yes
20747 else
20748   echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20750
20751 ac_header_compiler=no
20752 fi
20753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20755 echo "${ECHO_T}$ac_header_compiler" >&6
20756
20757 # Is the header present?
20758 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20759 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20760 cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h.  */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h.  */
20766 #include <sys/acl.h>
20767 _ACEOF
20768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20769   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20770   ac_status=$?
20771   grep -v '^ *+' conftest.er1 >conftest.err
20772   rm -f conftest.er1
20773   cat conftest.err >&5
20774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775   (exit $ac_status); } >/dev/null; then
20776   if test -s conftest.err; then
20777     ac_cpp_err=$ac_c_preproc_warn_flag
20778     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20779   else
20780     ac_cpp_err=
20781   fi
20782 else
20783   ac_cpp_err=yes
20784 fi
20785 if test -z "$ac_cpp_err"; then
20786   ac_header_preproc=yes
20787 else
20788   echo "$as_me: failed program was:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20790
20791   ac_header_preproc=no
20792 fi
20793 rm -f conftest.err conftest.$ac_ext
20794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20795 echo "${ECHO_T}$ac_header_preproc" >&6
20796
20797 # So?  What about this header?
20798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20799   yes:no: )
20800     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20801 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20802     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20803 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20804     ac_header_preproc=yes
20805     ;;
20806   no:yes:* )
20807     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20808 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20809     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
20810 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
20811     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20812 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20813     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
20814 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20815     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20816 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20817     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20818 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20819     (
20820       cat <<\_ASBOX
20821 ## ------------------------------------------ ##
20822 ## Report this to the AC_PACKAGE_NAME lists.  ##
20823 ## ------------------------------------------ ##
20824 _ASBOX
20825     ) |
20826       sed "s/^/$as_me: WARNING:     /" >&2
20827     ;;
20828 esac
20829 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20830 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20831 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20832   echo $ECHO_N "(cached) $ECHO_C" >&6
20833 else
20834   ac_cv_header_sys_acl_h=$ac_header_preproc
20835 fi
20836 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20837 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20838
20839 fi
20840
20841
20842 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20843 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20844 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20845   echo $ECHO_N "(cached) $ECHO_C" >&6
20846 else
20847   ac_check_lib_save_LIBS=$LIBS
20848 LIBS="-lacl  $LIBS"
20849 cat >conftest.$ac_ext <<_ACEOF
20850 /* confdefs.h.  */
20851 _ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h.  */
20855
20856 /* Override any gcc2 internal prototype to avoid an error.  */
20857 #ifdef __cplusplus
20858 extern "C"
20859 #endif
20860 /* We use char because int might match the return type of a gcc2
20861    builtin and then its argument prototype would still apply.  */
20862 char acl_get_file ();
20863 int
20864 main ()
20865 {
20866 acl_get_file ();
20867   ;
20868   return 0;
20869 }
20870 _ACEOF
20871 rm -f conftest.$ac_objext conftest$ac_exeext
20872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20873   (eval $ac_link) 2>conftest.er1
20874   ac_status=$?
20875   grep -v '^ *+' conftest.er1 >conftest.err
20876   rm -f conftest.er1
20877   cat conftest.err >&5
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); } &&
20880          { ac_try='test -z "$ac_c_werror_flag"
20881                          || test ! -s conftest.err'
20882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20883   (eval $ac_try) 2>&5
20884   ac_status=$?
20885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886   (exit $ac_status); }; } &&
20887          { ac_try='test -s conftest$ac_exeext'
20888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889   (eval $ac_try) 2>&5
20890   ac_status=$?
20891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892   (exit $ac_status); }; }; then
20893   ac_cv_lib_acl_acl_get_file=yes
20894 else
20895   echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20897
20898 ac_cv_lib_acl_acl_get_file=no
20899 fi
20900 rm -f conftest.err conftest.$ac_objext \
20901       conftest$ac_exeext conftest.$ac_ext
20902 LIBS=$ac_check_lib_save_LIBS
20903 fi
20904 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20905 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20906 if test $ac_cv_lib_acl_acl_get_file = yes; then
20907   FDLIBS="-lacl $FDLIBS"
20908 fi
20909
20910 have_acl=no
20911 if test $ac_cv_lib_acl_acl_get_file = yes; then
20912    cat >>confdefs.h <<\_ACEOF
20913 #define HAVE_ACL 1
20914 _ACEOF
20915
20916    have_acl=yes
20917 fi
20918
20919 PTHREAD_LIB=""
20920 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20921 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20922 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20923   echo $ECHO_N "(cached) $ECHO_C" >&6
20924 else
20925   ac_check_lib_save_LIBS=$LIBS
20926 LIBS="-lpthread  $LIBS"
20927 cat >conftest.$ac_ext <<_ACEOF
20928 /* confdefs.h.  */
20929 _ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h.  */
20933
20934 /* Override any gcc2 internal prototype to avoid an error.  */
20935 #ifdef __cplusplus
20936 extern "C"
20937 #endif
20938 /* We use char because int might match the return type of a gcc2
20939    builtin and then its argument prototype would still apply.  */
20940 char pthread_create ();
20941 int
20942 main ()
20943 {
20944 pthread_create ();
20945   ;
20946   return 0;
20947 }
20948 _ACEOF
20949 rm -f conftest.$ac_objext conftest$ac_exeext
20950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20951   (eval $ac_link) 2>conftest.er1
20952   ac_status=$?
20953   grep -v '^ *+' conftest.er1 >conftest.err
20954   rm -f conftest.er1
20955   cat conftest.err >&5
20956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957   (exit $ac_status); } &&
20958          { ac_try='test -z "$ac_c_werror_flag"
20959                          || test ! -s conftest.err'
20960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961   (eval $ac_try) 2>&5
20962   ac_status=$?
20963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964   (exit $ac_status); }; } &&
20965          { ac_try='test -s conftest$ac_exeext'
20966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967   (eval $ac_try) 2>&5
20968   ac_status=$?
20969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970   (exit $ac_status); }; }; then
20971   ac_cv_lib_pthread_pthread_create=yes
20972 else
20973   echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20975
20976 ac_cv_lib_pthread_pthread_create=no
20977 fi
20978 rm -f conftest.err conftest.$ac_objext \
20979       conftest$ac_exeext conftest.$ac_ext
20980 LIBS=$ac_check_lib_save_LIBS
20981 fi
20982 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20983 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20984 if test $ac_cv_lib_pthread_pthread_create = yes; then
20985   PTHREAD_LIB="-lpthread"
20986 else
20987   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20988 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20989 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20990   echo $ECHO_N "(cached) $ECHO_C" >&6
20991 else
20992   ac_check_lib_save_LIBS=$LIBS
20993 LIBS="-lpthreads  $LIBS"
20994 cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h.  */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h.  */
21000
21001 /* Override any gcc2 internal prototype to avoid an error.  */
21002 #ifdef __cplusplus
21003 extern "C"
21004 #endif
21005 /* We use char because int might match the return type of a gcc2
21006    builtin and then its argument prototype would still apply.  */
21007 char pthread_create ();
21008 int
21009 main ()
21010 {
21011 pthread_create ();
21012   ;
21013   return 0;
21014 }
21015 _ACEOF
21016 rm -f conftest.$ac_objext conftest$ac_exeext
21017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21018   (eval $ac_link) 2>conftest.er1
21019   ac_status=$?
21020   grep -v '^ *+' conftest.er1 >conftest.err
21021   rm -f conftest.er1
21022   cat conftest.err >&5
21023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024   (exit $ac_status); } &&
21025          { ac_try='test -z "$ac_c_werror_flag"
21026                          || test ! -s conftest.err'
21027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21028   (eval $ac_try) 2>&5
21029   ac_status=$?
21030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); }; } &&
21032          { ac_try='test -s conftest$ac_exeext'
21033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21034   (eval $ac_try) 2>&5
21035   ac_status=$?
21036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037   (exit $ac_status); }; }; then
21038   ac_cv_lib_pthreads_pthread_create=yes
21039 else
21040   echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21042
21043 ac_cv_lib_pthreads_pthread_create=no
21044 fi
21045 rm -f conftest.err conftest.$ac_objext \
21046       conftest$ac_exeext conftest.$ac_ext
21047 LIBS=$ac_check_lib_save_LIBS
21048 fi
21049 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21050 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21051 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21052   PTHREAD_LIB="-lpthreads"
21053 else
21054   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21055 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21056 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21057   echo $ECHO_N "(cached) $ECHO_C" >&6
21058 else
21059   ac_check_lib_save_LIBS=$LIBS
21060 LIBS="-lc_r  $LIBS"
21061 cat >conftest.$ac_ext <<_ACEOF
21062 /* confdefs.h.  */
21063 _ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h.  */
21067
21068 /* Override any gcc2 internal prototype to avoid an error.  */
21069 #ifdef __cplusplus
21070 extern "C"
21071 #endif
21072 /* We use char because int might match the return type of a gcc2
21073    builtin and then its argument prototype would still apply.  */
21074 char pthread_create ();
21075 int
21076 main ()
21077 {
21078 pthread_create ();
21079   ;
21080   return 0;
21081 }
21082 _ACEOF
21083 rm -f conftest.$ac_objext conftest$ac_exeext
21084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21085   (eval $ac_link) 2>conftest.er1
21086   ac_status=$?
21087   grep -v '^ *+' conftest.er1 >conftest.err
21088   rm -f conftest.er1
21089   cat conftest.err >&5
21090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); } &&
21092          { ac_try='test -z "$ac_c_werror_flag"
21093                          || test ! -s conftest.err'
21094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095   (eval $ac_try) 2>&5
21096   ac_status=$?
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); }; } &&
21099          { ac_try='test -s conftest$ac_exeext'
21100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101   (eval $ac_try) 2>&5
21102   ac_status=$?
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); }; }; then
21105   ac_cv_lib_c_r_pthread_create=yes
21106 else
21107   echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21109
21110 ac_cv_lib_c_r_pthread_create=no
21111 fi
21112 rm -f conftest.err conftest.$ac_objext \
21113       conftest$ac_exeext conftest.$ac_ext
21114 LIBS=$ac_check_lib_save_LIBS
21115 fi
21116 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21117 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21118 if test $ac_cv_lib_c_r_pthread_create = yes; then
21119   PTHREAD_LIB="-lc_r"
21120 else
21121   echo "$as_me:$LINENO: checking for pthread_create" >&5
21122 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21123 if test "${ac_cv_func_pthread_create+set}" = set; then
21124   echo $ECHO_N "(cached) $ECHO_C" >&6
21125 else
21126   cat >conftest.$ac_ext <<_ACEOF
21127 /* confdefs.h.  */
21128 _ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h.  */
21132 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21134 #define pthread_create innocuous_pthread_create
21135
21136 /* System header to define __stub macros and hopefully few prototypes,
21137     which can conflict with char pthread_create (); below.
21138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21139     <limits.h> exists even on freestanding compilers.  */
21140
21141 #ifdef __STDC__
21142 # include <limits.h>
21143 #else
21144 # include <assert.h>
21145 #endif
21146
21147 #undef pthread_create
21148
21149 /* Override any gcc2 internal prototype to avoid an error.  */
21150 #ifdef __cplusplus
21151 extern "C"
21152 {
21153 #endif
21154 /* We use char because int might match the return type of a gcc2
21155    builtin and then its argument prototype would still apply.  */
21156 char pthread_create ();
21157 /* The GNU C library defines this for functions which it implements
21158     to always fail with ENOSYS.  Some functions are actually named
21159     something starting with __ and the normal name is an alias.  */
21160 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21161 choke me
21162 #else
21163 char (*f) () = pthread_create;
21164 #endif
21165 #ifdef __cplusplus
21166 }
21167 #endif
21168
21169 int
21170 main ()
21171 {
21172 return f != pthread_create;
21173   ;
21174   return 0;
21175 }
21176 _ACEOF
21177 rm -f conftest.$ac_objext conftest$ac_exeext
21178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21179   (eval $ac_link) 2>conftest.er1
21180   ac_status=$?
21181   grep -v '^ *+' conftest.er1 >conftest.err
21182   rm -f conftest.er1
21183   cat conftest.err >&5
21184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185   (exit $ac_status); } &&
21186          { ac_try='test -z "$ac_c_werror_flag"
21187                          || test ! -s conftest.err'
21188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189   (eval $ac_try) 2>&5
21190   ac_status=$?
21191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); }; } &&
21193          { ac_try='test -s conftest$ac_exeext'
21194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195   (eval $ac_try) 2>&5
21196   ac_status=$?
21197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198   (exit $ac_status); }; }; then
21199   ac_cv_func_pthread_create=yes
21200 else
21201   echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21203
21204 ac_cv_func_pthread_create=no
21205 fi
21206 rm -f conftest.err conftest.$ac_objext \
21207       conftest$ac_exeext conftest.$ac_ext
21208 fi
21209 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21210 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21211
21212
21213 fi
21214
21215
21216 fi
21217
21218
21219 fi
21220
21221
21222
21223 cat >>confdefs.h <<\_ACEOF
21224 #define FDLIBS 1
21225 _ACEOF
21226
21227
21228
21229 CFLAGS=${CFLAGS--O}
21230 LDFLAGS=${LDFLAGS--O}
21231 DB_LIBS="${SQL_LFLAGS}"
21232
21233 CPPFLAGS="$CPPFLAGS"
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248 OBJLIST=
21249
21250
21251 lld="lld"
21252 llu="llu"
21253
21254 WCFLAGS=
21255 WLDFLAGS=
21256
21257 #
21258 # Finally we set appropriate distribution specific
21259 #  variables and defaults
21260 #
21261 # PFILES are platform specific files
21262 PFILES="platforms/Makefile"
21263 PSCMD="ps -e"
21264 WIN32=
21265 MACOSX=
21266 hostname=`uname -n | cut -d '.' -f 1`
21267 case "$DISTNAME" in
21268 aix)
21269         DISTVER=`uname -r`
21270         PSCMD="ps -e -o pid,comm"
21271         PFILES="${PFILES} \
21272            platforms/aix/Makefile"
21273         TAPEDRIVE="/dev/rmt0.1"
21274   ;;
21275 alpha)
21276         DISTVER=`uname -r`
21277         PTHREAD_LIB="-lpthread -lexc"
21278         if test "${CC}" = "gcc" ; then
21279            lld="lld"
21280            llu="llu"
21281         else
21282            lld="ld"
21283            llu="lu"
21284         fi
21285         TAPEDRIVE="/dev/nrmt0"
21286   ;;
21287 bsdi)
21288         DISTVER=`uname -a |awk '{print $3}'`
21289         TAPEDRIVE="/dev/nrmt0"
21290         PTHREAD_LIB="-pthread"
21291         CFLAGS="${CFLAGS} -pthread"
21292         PSCMD="ps -x -o pid,command"
21293         lld="qd"
21294         llu="qu"
21295         PFILES="${PFILES} \
21296             platforms/bsdi/Makefile \
21297             platforms/bsdi/bacula-fd \
21298             platforms/bsdi/bacula-sd \
21299             platforms/bsdi/bacula-dir"
21300         largefile_support="yes"
21301   ;;
21302 cygwin)
21303         DISTVER=`uname -a |awk '{print $3}'`
21304         TAPEDRIVE="/dev/nrst0"
21305         WIN32=win32
21306         WCFLAGS="-mwindows"
21307         WLDFLAGS="-mwindows"
21308   ;;
21309 darwin)
21310         DISTVER=`uname -r`
21311         TAPEDRIVE="/dev/nst0"
21312         PSCMD="ps -e -o pid,command"
21313         MACOSX=macosx
21314         PFILES="${PFILES} \
21315            platforms/darwin/Makefile"
21316   ;;
21317 debian)
21318         DISTVER=`cat /etc/debian_version`
21319         TAPEDRIVE="/dev/nrst0"
21320         PSCMD="ps -e -o pid,command"
21321   ;;
21322 freebsd)
21323         DISTVER=`uname -a |awk '{print $3}'`
21324         VER=`echo $DISTVER | cut -c 1`
21325         if test x$VER = x4 ; then
21326            PTHREAD_LIB="-pthread"
21327            CFLAGS="${CFLAGS} -pthread"
21328         fi
21329         lld="qd"
21330         llu="qu"
21331         TAPEDRIVE="/dev/nrsa0"
21332         PSCMD="ps -x -o pid,command"
21333         PFILES="${PFILES} \
21334             platforms/freebsd/Makefile \
21335             platforms/freebsd/bacula-fd \
21336             platforms/freebsd/bacula-sd \
21337             platforms/freebsd/bacula-dir"
21338         largefile_support="yes"
21339   ;;
21340 hpux)
21341         PSCMD="UNIX95=1 ps -e -o pid,comm"
21342         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21343         DISTVER=`uname -r`
21344         TAPEDRIVE="/dev/rmt/0hnb"
21345         PTHREAD_LIB="-lpthread"
21346         cat >>confdefs.h <<\_ACEOF
21347 #define _INCLUDE_LONGLONG 1
21348 _ACEOF
21349
21350   ;;
21351 irix)
21352         DISTVER=`uname -r`
21353         TAPEDRIVE="/dev/rmt/0cbn"
21354         PSCMD="ps -e -o pid,comm"
21355         PFILES="${PFILES} \
21356             platforms/irix/Makefile \
21357             platforms/irix/bacula-fd \
21358             platforms/irix/bacula-sd \
21359             platforms/irix/bacula-dir"
21360   ;;
21361 netbsd)
21362         DISTVER=`uname -a |awk '{print $3}'`
21363         lld="qd"
21364         llu="qu"
21365         TAPEDRIVE="/dev/nrst0"
21366         PSCMD="ps -a -o pid,command"
21367         PTHREAD_LIB="-pthread"
21368         CFLAGS="${CFLAGS} -pthread"
21369   ;;
21370 openbsd)
21371         DISTVER=`uname -a |awk '{print $3}'`
21372         lld="qd"
21373         llu="qu"
21374         TAPEDRIVE="/dev/nrst0"
21375         PSCMD="ps -ax -o pid,command"
21376         PTHREAD_LIB="-pthread"
21377         CFLAGS="${CFLAGS} -pthread"
21378         PFILES="${PFILES} \
21379             platforms/openbsd/Makefile \
21380             platforms/openbsd/bacula-fd \
21381             platforms/openbsd/bacula-sd \
21382             platforms/openbsd/bacula-dir"
21383   ;;
21384 redhat)
21385         if test -f /etc/whitebox-release ; then
21386            f=/etc/whitebox-release
21387         else
21388            f=/etc/redhat-release
21389         fi
21390         if test `cat $f | grep release |\
21391                    cut -f 3 -d ' '`x = "Enterprise"x ; then
21392            DISTVER="Enterprise "`cat $f | grep release |\
21393                     cut -f 6 -d ' '`
21394         else
21395             DISTVER=`cat /etc/redhat-release | grep release |\
21396                      cut -f 5 -d ' '`
21397         fi
21398         TAPEDRIVE="/dev/nst0"
21399         PSCMD="ps -e -o pid,command"
21400         PFILES="${PFILES} \
21401             platforms/redhat/Makefile \
21402             platforms/redhat/bacula-fd \
21403             platforms/redhat/bacula-sd \
21404             platforms/redhat/bacula-dir \
21405             platforms/redhat/bacula.spec \
21406             "
21407         hostname=`hostname -s`
21408   ;;
21409 mandrake)
21410         DISTVER=`cat /etc/mandrake-release | grep release |\
21411            cut -f 5 -d ' '`
21412         TAPEDRIVE="/dev/nst0"
21413         PSCMD="ps -e -o pid,command"
21414         PFILES="${PFILES} \
21415             platforms/mandrake/Makefile \
21416             platforms/mandrake/bacula-fd \
21417             platforms/mandrake/bacula-sd \
21418             platforms/mandrake/bacula-dir \
21419             platforms/mandrake/bacula.spec \
21420             "
21421   ;;
21422 gentoo)
21423         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21424         TAPEDRIVE="/dev/nst0"
21425         PSCMD="ps -e -o pid,command"
21426         PFILES="${PFILES} \
21427             platforms/gentoo/Makefile \
21428          platforms/gentoo/bacula-init \
21429             platforms/gentoo/bacula-fd \
21430             platforms/gentoo/bacula-sd \
21431             platforms/gentoo/bacula-dir"
21432   ;;
21433 slackware)
21434         DISTVER=`cat /etc/slackware-version`
21435         TAPEDRIVE="/dev/nst0"
21436         PSCMD="ps -e -o pid,command"
21437         PFILES="${PFILES} \
21438             platforms/slackware/Makefile \
21439             platforms/slackware/rc.bacula-fd \
21440             platforms/slackware/rc.bacula-sd \
21441             platforms/slackware/rc.bacula-dir\
21442             platforms/slackware/functions.bacula"
21443   ;;
21444 solaris)
21445         DISTVER=`uname -r`
21446         TAPEDRIVE="/dev/rmt/0cbn"
21447         PSCMD="ps -e -o pid,comm"
21448         PFILES="${PFILES} \
21449             platforms/solaris/Makefile \
21450             platforms/solaris/bacula-fd \
21451             platforms/solaris/bacula-sd \
21452             platforms/solaris/bacula-dir"
21453         if test x$DISTVER = x5.6 ; then
21454             cat >>confdefs.h <<\_ACEOF
21455 #define HAVE_OLD_SOCKOPT 1
21456 _ACEOF
21457
21458         fi
21459         LIBS="$LIBS -lresolv"
21460   ;;
21461 suse)
21462         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21463             cut -f 3 -d ' '`
21464         TAPEDRIVE="/dev/nst0"
21465         PSCMD="ps -e -o pid,command"
21466         PFILES="${PFILES} \
21467             platforms/suse/Makefile \
21468             platforms/suse/bacula-fd \
21469             platforms/suse/bacula-sd \
21470             platforms/suse/bacula-dir \
21471             platforms/suse/bacula \
21472             platforms/suse/bacula.spec"
21473   ;;
21474 suse5)
21475         DISTNAME=suse
21476         DISTVER=5.x
21477         TAPEDRIVE="/dev/nst0"
21478         PSCMD="ps -e -o pid,command"
21479         PFILES="${PFILES} \
21480             platforms/suse/Makefile \
21481             platforms/suse/bacula-fd \
21482             platforms/suse/bacula-sd \
21483             platforms/suse/bacula-dir"
21484   ;;
21485 unknown)
21486         DISTVER=unknown
21487         TAPEDRIVE="/dev/nst0"
21488   ;;
21489 *)
21490   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21491   ;;
21492 esac
21493
21494
21495
21496 LIBS="$PTHREAD_LIB $LIBS"
21497
21498 cat >>confdefs.h <<_ACEOF
21499 #define lld "$lld"
21500 _ACEOF
21501
21502 cat >>confdefs.h <<_ACEOF
21503 #define llu "$llu"
21504 _ACEOF
21505
21506
21507
21508
21509
21510
21511
21512
21513 MCOMMON=./autoconf/Make.common
21514
21515
21516 if test "x${subsysdir}" = "x${sbindir}" ; then
21517    echo " "
21518    echo " "
21519    echo "You have set both --sbindir and --with-subsys-dir"
21520    echo "  equal to: ${subsysdir} "
21521    echo "This is not permitted. Please reconfigure."
21522    echo " "
21523    echo "Aborting configuration ..."
21524    echo " "
21525    echo " "
21526    exit 1
21527 fi
21528
21529                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               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 doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/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"
21530           ac_config_commands="$ac_config_commands default"
21531 cat >confcache <<\_ACEOF
21532 # This file is a shell script that caches the results of configure
21533 # tests run on this system so they can be shared between configure
21534 # scripts and configure runs, see configure's option --config-cache.
21535 # It is not useful on other systems.  If it contains results you don't
21536 # want to keep, you may remove or edit it.
21537 #
21538 # config.status only pays attention to the cache file if you give it
21539 # the --recheck option to rerun configure.
21540 #
21541 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21542 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21543 # following values.
21544
21545 _ACEOF
21546
21547 # The following way of writing the cache mishandles newlines in values,
21548 # but we know of no workaround that is simple, portable, and efficient.
21549 # So, don't put newlines in cache variables' values.
21550 # Ultrix sh set writes to stderr and can't be redirected directly,
21551 # and sets the high bit in the cache file unless we assign to the vars.
21552 {
21553   (set) 2>&1 |
21554     case `(ac_space=' '; set | grep ac_space) 2>&1` in
21555     *ac_space=\ *)
21556       # `set' does not quote correctly, so add quotes (double-quote
21557       # substitution turns \\\\ into \\, and sed turns \\ into \).
21558       sed -n \
21559         "s/'/'\\\\''/g;
21560           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21561       ;;
21562     *)
21563       # `set' quotes correctly as required by POSIX, so do not add quotes.
21564       sed -n \
21565         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21566       ;;
21567     esac;
21568 } |
21569   sed '
21570      t clear
21571      : clear
21572      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21573      t end
21574      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21575      : end' >>confcache
21576 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21577   if test -w $cache_file; then
21578     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21579     cat confcache >$cache_file
21580   else
21581     echo "not updating unwritable cache $cache_file"
21582   fi
21583 fi
21584 rm -f confcache
21585
21586 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21587 # Let make expand exec_prefix.
21588 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21589
21590 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21591 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21592 # trailing colons and then remove the whole line if VPATH becomes empty
21593 # (actually we leave an empty line to preserve line numbers).
21594 if test "x$srcdir" = x.; then
21595   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21596 s/:*\$(srcdir):*/:/;
21597 s/:*\${srcdir}:*/:/;
21598 s/:*@srcdir@:*/:/;
21599 s/^\([^=]*=[     ]*\):*/\1/;
21600 s/:*$//;
21601 s/^[^=]*=[       ]*$//;
21602 }'
21603 fi
21604
21605 DEFS=-DHAVE_CONFIG_H
21606
21607 ac_libobjs=
21608 ac_ltlibobjs=
21609 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21610   # 1. Remove the extension, and $U if already installed.
21611   ac_i=`echo "$ac_i" |
21612          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21613   # 2. Add them.
21614   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21615   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21616 done
21617 LIBOBJS=$ac_libobjs
21618
21619 LTLIBOBJS=$ac_ltlibobjs
21620
21621
21622
21623 : ${CONFIG_STATUS=./config.status}
21624 ac_clean_files_save=$ac_clean_files
21625 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21626 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21627 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21628 cat >$CONFIG_STATUS <<_ACEOF
21629 #! $SHELL
21630 # Generated by $as_me.
21631 # Run this file to recreate the current configuration.
21632 # Compiler output produced by configure, useful for debugging
21633 # configure, is in config.log if it exists.
21634
21635 debug=false
21636 ac_cs_recheck=false
21637 ac_cs_silent=false
21638 SHELL=\${CONFIG_SHELL-$SHELL}
21639 _ACEOF
21640
21641 cat >>$CONFIG_STATUS <<\_ACEOF
21642 ## --------------------- ##
21643 ## M4sh Initialization.  ##
21644 ## --------------------- ##
21645
21646 # Be Bourne compatible
21647 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21648   emulate sh
21649   NULLCMD=:
21650   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21651   # is contrary to our usage.  Disable this feature.
21652   alias -g '${1+"$@"}'='"$@"'
21653 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21654   set -o posix
21655 fi
21656 DUALCASE=1; export DUALCASE # for MKS sh
21657
21658 # Support unset when possible.
21659 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21660   as_unset=unset
21661 else
21662   as_unset=false
21663 fi
21664
21665
21666 # Work around bugs in pre-3.0 UWIN ksh.
21667 $as_unset ENV MAIL MAILPATH
21668 PS1='$ '
21669 PS2='> '
21670 PS4='+ '
21671
21672 # NLS nuisances.
21673 for as_var in \
21674   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21675   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21676   LC_TELEPHONE LC_TIME
21677 do
21678   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21679     eval $as_var=C; export $as_var
21680   else
21681     $as_unset $as_var
21682   fi
21683 done
21684
21685 # Required to use basename.
21686 if expr a : '\(a\)' >/dev/null 2>&1; then
21687   as_expr=expr
21688 else
21689   as_expr=false
21690 fi
21691
21692 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21693   as_basename=basename
21694 else
21695   as_basename=false
21696 fi
21697
21698
21699 # Name of the executable.
21700 as_me=`$as_basename "$0" ||
21701 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21702          X"$0" : 'X\(//\)$' \| \
21703          X"$0" : 'X\(/\)$' \| \
21704          .     : '\(.\)' 2>/dev/null ||
21705 echo X/"$0" |
21706     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21707           /^X\/\(\/\/\)$/{ s//\1/; q; }
21708           /^X\/\(\/\).*/{ s//\1/; q; }
21709           s/.*/./; q'`
21710
21711
21712 # PATH needs CR, and LINENO needs CR and PATH.
21713 # Avoid depending upon Character Ranges.
21714 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21715 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21716 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21717 as_cr_digits='0123456789'
21718 as_cr_alnum=$as_cr_Letters$as_cr_digits
21719
21720 # The user is always right.
21721 if test "${PATH_SEPARATOR+set}" != set; then
21722   echo "#! /bin/sh" >conf$$.sh
21723   echo  "exit 0"   >>conf$$.sh
21724   chmod +x conf$$.sh
21725   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21726     PATH_SEPARATOR=';'
21727   else
21728     PATH_SEPARATOR=:
21729   fi
21730   rm -f conf$$.sh
21731 fi
21732
21733
21734   as_lineno_1=$LINENO
21735   as_lineno_2=$LINENO
21736   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21737   test "x$as_lineno_1" != "x$as_lineno_2" &&
21738   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21739   # Find who we are.  Look in the path if we contain no path at all
21740   # relative or not.
21741   case $0 in
21742     *[\\/]* ) as_myself=$0 ;;
21743     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21744 for as_dir in $PATH
21745 do
21746   IFS=$as_save_IFS
21747   test -z "$as_dir" && as_dir=.
21748   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21749 done
21750
21751        ;;
21752   esac
21753   # We did not find ourselves, most probably we were run as `sh COMMAND'
21754   # in which case we are not to be found in the path.
21755   if test "x$as_myself" = x; then
21756     as_myself=$0
21757   fi
21758   if test ! -f "$as_myself"; then
21759     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21760 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21761    { (exit 1); exit 1; }; }
21762   fi
21763   case $CONFIG_SHELL in
21764   '')
21765     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21766 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21767 do
21768   IFS=$as_save_IFS
21769   test -z "$as_dir" && as_dir=.
21770   for as_base in sh bash ksh sh5; do
21771          case $as_dir in
21772          /*)
21773            if ("$as_dir/$as_base" -c '
21774   as_lineno_1=$LINENO
21775   as_lineno_2=$LINENO
21776   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21777   test "x$as_lineno_1" != "x$as_lineno_2" &&
21778   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21779              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21780              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21781              CONFIG_SHELL=$as_dir/$as_base
21782              export CONFIG_SHELL
21783              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21784            fi;;
21785          esac
21786        done
21787 done
21788 ;;
21789   esac
21790
21791   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21792   # uniformly replaced by the line number.  The first 'sed' inserts a
21793   # line-number line before each line; the second 'sed' does the real
21794   # work.  The second script uses 'N' to pair each line-number line
21795   # with the numbered line, and appends trailing '-' during
21796   # substitution so that $LINENO is not a special case at line end.
21797   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21798   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21799   sed '=' <$as_myself |
21800     sed '
21801       N
21802       s,$,-,
21803       : loop
21804       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21805       t loop
21806       s,-$,,
21807       s,^['$as_cr_digits']*\n,,
21808     ' >$as_me.lineno &&
21809   chmod +x $as_me.lineno ||
21810     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21811 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21812    { (exit 1); exit 1; }; }
21813
21814   # Don't try to exec as it changes $[0], causing all sort of problems
21815   # (the dirname of $[0] is not the place where we might find the
21816   # original and so on.  Autoconf is especially sensible to this).
21817   . ./$as_me.lineno
21818   # Exit status is that of the last command.
21819   exit
21820 }
21821
21822
21823 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21824   *c*,-n*) ECHO_N= ECHO_C='
21825 ' ECHO_T='      ' ;;
21826   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21827   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21828 esac
21829
21830 if expr a : '\(a\)' >/dev/null 2>&1; then
21831   as_expr=expr
21832 else
21833   as_expr=false
21834 fi
21835
21836 rm -f conf$$ conf$$.exe conf$$.file
21837 echo >conf$$.file
21838 if ln -s conf$$.file conf$$ 2>/dev/null; then
21839   # We could just check for DJGPP; but this test a) works b) is more generic
21840   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21841   if test -f conf$$.exe; then
21842     # Don't use ln at all; we don't have any links
21843     as_ln_s='cp -p'
21844   else
21845     as_ln_s='ln -s'
21846   fi
21847 elif ln conf$$.file conf$$ 2>/dev/null; then
21848   as_ln_s=ln
21849 else
21850   as_ln_s='cp -p'
21851 fi
21852 rm -f conf$$ conf$$.exe conf$$.file
21853
21854 if mkdir -p . 2>/dev/null; then
21855   as_mkdir_p=:
21856 else
21857   test -d ./-p && rmdir ./-p
21858   as_mkdir_p=false
21859 fi
21860
21861 as_executable_p="test -f"
21862
21863 # Sed expression to map a string onto a valid CPP name.
21864 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21865
21866 # Sed expression to map a string onto a valid variable name.
21867 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21868
21869
21870 # IFS
21871 # We need space, tab and new line, in precisely that order.
21872 as_nl='
21873 '
21874 IFS="   $as_nl"
21875
21876 # CDPATH.
21877 $as_unset CDPATH
21878
21879 exec 6>&1
21880
21881 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21882 # report actual input values of CONFIG_FILES etc. instead of their
21883 # values after options handling.  Logging --version etc. is OK.
21884 exec 5>>config.log
21885 {
21886   echo
21887   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21888 ## Running $as_me. ##
21889 _ASBOX
21890 } >&5
21891 cat >&5 <<_CSEOF
21892
21893 This file was extended by $as_me, which was
21894 generated by GNU Autoconf 2.59.  Invocation command line was
21895
21896   CONFIG_FILES    = $CONFIG_FILES
21897   CONFIG_HEADERS  = $CONFIG_HEADERS
21898   CONFIG_LINKS    = $CONFIG_LINKS
21899   CONFIG_COMMANDS = $CONFIG_COMMANDS
21900   $ $0 $@
21901
21902 _CSEOF
21903 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21904 echo >&5
21905 _ACEOF
21906
21907 # Files that config.status was made for.
21908 if test -n "$ac_config_files"; then
21909   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21910 fi
21911
21912 if test -n "$ac_config_headers"; then
21913   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21914 fi
21915
21916 if test -n "$ac_config_links"; then
21917   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21918 fi
21919
21920 if test -n "$ac_config_commands"; then
21921   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21922 fi
21923
21924 cat >>$CONFIG_STATUS <<\_ACEOF
21925
21926 ac_cs_usage="\
21927 \`$as_me' instantiates files from templates according to the
21928 current configuration.
21929
21930 Usage: $0 [OPTIONS] [FILE]...
21931
21932   -h, --help       print this help, then exit
21933   -V, --version    print version number, then exit
21934   -q, --quiet      do not print progress messages
21935   -d, --debug      don't remove temporary files
21936       --recheck    update $as_me by reconfiguring in the same conditions
21937   --file=FILE[:TEMPLATE]
21938                    instantiate the configuration file FILE
21939   --header=FILE[:TEMPLATE]
21940                    instantiate the configuration header FILE
21941
21942 Configuration files:
21943 $config_files
21944
21945 Configuration headers:
21946 $config_headers
21947
21948 Configuration commands:
21949 $config_commands
21950
21951 Report bugs to <bug-autoconf@gnu.org>."
21952 _ACEOF
21953
21954 cat >>$CONFIG_STATUS <<_ACEOF
21955 ac_cs_version="\\
21956 config.status
21957 configured by $0, generated by GNU Autoconf 2.59,
21958   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21959
21960 Copyright (C) 2003 Free Software Foundation, Inc.
21961 This config.status script is free software; the Free Software Foundation
21962 gives unlimited permission to copy, distribute and modify it."
21963 srcdir=$srcdir
21964 INSTALL="$INSTALL"
21965 _ACEOF
21966
21967 cat >>$CONFIG_STATUS <<\_ACEOF
21968 # If no file are specified by the user, then we need to provide default
21969 # value.  By we need to know if files were specified by the user.
21970 ac_need_defaults=:
21971 while test $# != 0
21972 do
21973   case $1 in
21974   --*=*)
21975     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21976     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21977     ac_shift=:
21978     ;;
21979   -*)
21980     ac_option=$1
21981     ac_optarg=$2
21982     ac_shift=shift
21983     ;;
21984   *) # This is not an option, so the user has probably given explicit
21985      # arguments.
21986      ac_option=$1
21987      ac_need_defaults=false;;
21988   esac
21989
21990   case $ac_option in
21991   # Handling of the options.
21992 _ACEOF
21993 cat >>$CONFIG_STATUS <<\_ACEOF
21994   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21995     ac_cs_recheck=: ;;
21996   --version | --vers* | -V )
21997     echo "$ac_cs_version"; exit 0 ;;
21998   --he | --h)
21999     # Conflict between --help and --header
22000     { { echo "$as_me:$LINENO: error: ambiguous option: $1
22001 Try \`$0 --help' for more information." >&5
22002 echo "$as_me: error: ambiguous option: $1
22003 Try \`$0 --help' for more information." >&2;}
22004    { (exit 1); exit 1; }; };;
22005   --help | --hel | -h )
22006     echo "$ac_cs_usage"; exit 0 ;;
22007   --debug | --d* | -d )
22008     debug=: ;;
22009   --file | --fil | --fi | --f )
22010     $ac_shift
22011     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22012     ac_need_defaults=false;;
22013   --header | --heade | --head | --hea )
22014     $ac_shift
22015     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22016     ac_need_defaults=false;;
22017   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22018   | -silent | --silent | --silen | --sile | --sil | --si | --s)
22019     ac_cs_silent=: ;;
22020
22021   # This is an error.
22022   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22023 Try \`$0 --help' for more information." >&5
22024 echo "$as_me: error: unrecognized option: $1
22025 Try \`$0 --help' for more information." >&2;}
22026    { (exit 1); exit 1; }; } ;;
22027
22028   *) ac_config_targets="$ac_config_targets $1" ;;
22029
22030   esac
22031   shift
22032 done
22033
22034 ac_configure_extra_args=
22035
22036 if $ac_cs_silent; then
22037   exec 6>/dev/null
22038   ac_configure_extra_args="$ac_configure_extra_args --silent"
22039 fi
22040
22041 _ACEOF
22042 cat >>$CONFIG_STATUS <<_ACEOF
22043 if \$ac_cs_recheck; then
22044   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22045   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22046 fi
22047
22048 _ACEOF
22049
22050
22051
22052
22053
22054 cat >>$CONFIG_STATUS <<\_ACEOF
22055 for ac_config_target in $ac_config_targets
22056 do
22057   case "$ac_config_target" in
22058   # Handling of arguments.
22059   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22060   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22061   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22062   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22063   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22064   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22065   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22066   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22067   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22068   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22069   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22070   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22071   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22072   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22073   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22074   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22075   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22076   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22077   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22078   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22079   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22080   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22081   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22082   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22083   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22084   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22085   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22086   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22087   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22088   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22089   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22090   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
22091   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
22092   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22093   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22094   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22095   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22096   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22097   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22098   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22099   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22100   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22101   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22102   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22103   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22104   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22105   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22106   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22107   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22108   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22109   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22110   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22111   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22112   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22113   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22114   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22115   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22116   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22117   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22118   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22119   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22120   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22121   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22122   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22123   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22124   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22125   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22126   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22127   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22128   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22129   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22130   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22131   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22132   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22133   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22134   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22135   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22136   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22137   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22138   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22139   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22140   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22141   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22142   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22143   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22144   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22145   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22146   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22147   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22148   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22149   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22150   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22151   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22152   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22153   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22154   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22155   "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22156   "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22157   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22158   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22159   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22160   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22161 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22162    { (exit 1); exit 1; }; };;
22163   esac
22164 done
22165
22166 # If the user did not use the arguments to specify the items to instantiate,
22167 # then the envvar interface is used.  Set only those that are not.
22168 # We use the long form for the default assignment because of an extremely
22169 # bizarre bug on SunOS 4.1.3.
22170 if $ac_need_defaults; then
22171   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22172   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22173   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22174 fi
22175
22176 # Have a temporary directory for convenience.  Make it in the build tree
22177 # simply because there is no reason to put it here, and in addition,
22178 # creating and moving files from /tmp can sometimes cause problems.
22179 # Create a temporary directory, and hook for its removal unless debugging.
22180 $debug ||
22181 {
22182   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22183   trap '{ (exit 1); exit 1; }' 1 2 13 15
22184 }
22185
22186 # Create a (secure) tmp directory for tmp files.
22187
22188 {
22189   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22190   test -n "$tmp" && test -d "$tmp"
22191 }  ||
22192 {
22193   tmp=./confstat$$-$RANDOM
22194   (umask 077 && mkdir $tmp)
22195 } ||
22196 {
22197    echo "$me: cannot create a temporary directory in ." >&2
22198    { (exit 1); exit 1; }
22199 }
22200
22201 _ACEOF
22202
22203 cat >>$CONFIG_STATUS <<_ACEOF
22204
22205 #
22206 # CONFIG_FILES section.
22207 #
22208
22209 # No need to generate the scripts if there are no CONFIG_FILES.
22210 # This happens for instance when ./config.status config.h
22211 if test -n "\$CONFIG_FILES"; then
22212   # Protect against being on the right side of a sed subst in config.status.
22213   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22214    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22215 s,@SHELL@,$SHELL,;t t
22216 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22217 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22218 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22219 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22220 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22221 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22222 s,@exec_prefix@,$exec_prefix,;t t
22223 s,@prefix@,$prefix,;t t
22224 s,@program_transform_name@,$program_transform_name,;t t
22225 s,@bindir@,$bindir,;t t
22226 s,@sbindir@,$sbindir,;t t
22227 s,@libexecdir@,$libexecdir,;t t
22228 s,@datadir@,$datadir,;t t
22229 s,@sysconfdir@,$sysconfdir,;t t
22230 s,@sharedstatedir@,$sharedstatedir,;t t
22231 s,@localstatedir@,$localstatedir,;t t
22232 s,@libdir@,$libdir,;t t
22233 s,@includedir@,$includedir,;t t
22234 s,@oldincludedir@,$oldincludedir,;t t
22235 s,@infodir@,$infodir,;t t
22236 s,@mandir@,$mandir,;t t
22237 s,@build_alias@,$build_alias,;t t
22238 s,@host_alias@,$host_alias,;t t
22239 s,@target_alias@,$target_alias,;t t
22240 s,@DEFS@,$DEFS,;t t
22241 s,@ECHO_C@,$ECHO_C,;t t
22242 s,@ECHO_N@,$ECHO_N,;t t
22243 s,@ECHO_T@,$ECHO_T,;t t
22244 s,@LIBS@,$LIBS,;t t
22245 s,@BUILD_DIR@,$BUILD_DIR,;t t
22246 s,@TRUEPRG@,$TRUEPRG,;t t
22247 s,@FALSEPRG@,$FALSEPRG,;t t
22248 s,@VERSION@,$VERSION,;t t
22249 s,@DATE@,$DATE,;t t
22250 s,@LSMDATE@,$LSMDATE,;t t
22251 s,@CC@,$CC,;t t
22252 s,@CFLAGS@,$CFLAGS,;t t
22253 s,@LDFLAGS@,$LDFLAGS,;t t
22254 s,@CPPFLAGS@,$CPPFLAGS,;t t
22255 s,@ac_ct_CC@,$ac_ct_CC,;t t
22256 s,@EXEEXT@,$EXEEXT,;t t
22257 s,@OBJEXT@,$OBJEXT,;t t
22258 s,@CXX@,$CXX,;t t
22259 s,@CXXFLAGS@,$CXXFLAGS,;t t
22260 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22261 s,@CPP@,$CPP,;t t
22262 s,@EGREP@,$EGREP,;t t
22263 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22264 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22265 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22266 s,@RANLIB@,$RANLIB,;t t
22267 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22268 s,@MV@,$MV,;t t
22269 s,@RM@,$RM,;t t
22270 s,@CP@,$CP,;t t
22271 s,@SED@,$SED,;t t
22272 s,@ECHO@,$ECHO,;t t
22273 s,@CMP@,$CMP,;t t
22274 s,@TBL@,$TBL,;t t
22275 s,@AR@,$AR,;t t
22276 s,@OPENSSL@,$OPENSSL,;t t
22277 s,@MTX@,$MTX,;t t
22278 s,@MKISOFS@,$MKISOFS,;t t
22279 s,@PYTHON@,$PYTHON,;t t
22280 s,@GROWISOFS@,$GROWISOFS,;t t
22281 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22282 s,@PKGCONFIG@,$PKGCONFIG,;t t
22283 s,@WXCONFIG@,$WXCONFIG,;t t
22284 s,@CDRECORD@,$CDRECORD,;t t
22285 s,@PIDOF@,$PIDOF,;t t
22286 s,@AWK@,$AWK,;t t
22287 s,@ARFLAGS@,$ARFLAGS,;t t
22288 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22289 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22290 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22291 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22292 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22293 s,@build@,$build,;t t
22294 s,@build_cpu@,$build_cpu,;t t
22295 s,@build_vendor@,$build_vendor,;t t
22296 s,@build_os@,$build_os,;t t
22297 s,@host@,$host,;t t
22298 s,@host_cpu@,$host_cpu,;t t
22299 s,@host_vendor@,$host_vendor,;t t
22300 s,@host_os@,$host_os,;t t
22301 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22302 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22303 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22304 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22305 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22306 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22307 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22308 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22309 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22310 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22311 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22312 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22313 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22314 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22315 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22316 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22317 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22318 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22319 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22320 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22321 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22322 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22323 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22324 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22325 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22326 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22327 s,@MSGFMT@,$MSGFMT,;t t
22328 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22329 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22330 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22331 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22332 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22333 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22334 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22335 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22336 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22337 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22338 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22339 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22340 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22341 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22342 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22343 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22344 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22345 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22346 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22347 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22348 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22349 s,@GNOME_DIR@,$GNOME_DIR,;t t
22350 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22351 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22352 s,@WX_DIR@,$WX_DIR,;t t
22353 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22354 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22355 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22356 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22357 s,@STATIC_FD@,$STATIC_FD,;t t
22358 s,@STATIC_SD@,$STATIC_SD,;t t
22359 s,@STATIC_DIR@,$STATIC_DIR,;t t
22360 s,@STATIC_CONS@,$STATIC_CONS,;t t
22361 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22362 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22363 s,@ALL_DIRS@,$ALL_DIRS,;t t
22364 s,@CONS_INC@,$CONS_INC,;t t
22365 s,@CONS_OBJ@,$CONS_OBJ,;t t
22366 s,@CONS_SRC@,$CONS_SRC,;t t
22367 s,@CONS_LIBS@,$CONS_LIBS,;t t
22368 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22369 s,@READLINE_SRC@,$READLINE_SRC,;t t
22370 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22371 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22372 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22373 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22374 s,@working_dir@,$working_dir,;t t
22375 s,@scriptdir@,$scriptdir,;t t
22376 s,@dump_email@,$dump_email,;t t
22377 s,@job_email@,$job_email,;t t
22378 s,@smtp_host@,$smtp_host,;t t
22379 s,@piddir@,$piddir,;t t
22380 s,@subsysdir@,$subsysdir,;t t
22381 s,@baseport@,$baseport,;t t
22382 s,@dir_port@,$dir_port,;t t
22383 s,@fd_port@,$fd_port,;t t
22384 s,@sd_port@,$sd_port,;t t
22385 s,@dir_password@,$dir_password,;t t
22386 s,@fd_password@,$fd_password,;t t
22387 s,@sd_password@,$sd_password,;t t
22388 s,@mon_dir_password@,$mon_dir_password,;t t
22389 s,@mon_fd_password@,$mon_fd_password,;t t
22390 s,@mon_sd_password@,$mon_sd_password,;t t
22391 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22392 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22393 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22394 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22395 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22396 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22397 s,@dir_user@,$dir_user,;t t
22398 s,@dir_group@,$dir_group,;t t
22399 s,@sd_user@,$sd_user,;t t
22400 s,@sd_group@,$sd_group,;t t
22401 s,@fd_user@,$fd_user,;t t
22402 s,@fd_group@,$fd_group,;t t
22403 s,@SBINPERM@,$SBINPERM,;t t
22404 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22405 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22406 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22407 s,@cats@,$cats,;t t
22408 s,@DB_NAME@,$DB_NAME,;t t
22409 s,@GETCONF@,$GETCONF,;t t
22410 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22411 s,@X_CFLAGS@,$X_CFLAGS,;t t
22412 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22413 s,@X_LIBS@,$X_LIBS,;t t
22414 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22415 s,@LIBOBJS@,$LIBOBJS,;t t
22416 s,@ALLOCA@,$ALLOCA,;t t
22417 s,@FDLIBS@,$FDLIBS,;t t
22418 s,@DEBUG@,$DEBUG,;t t
22419 s,@DINCLUDE@,$DINCLUDE,;t t
22420 s,@DLIB@,$DLIB,;t t
22421 s,@DB_LIBS@,$DB_LIBS,;t t
22422 s,@WCFLAGS@,$WCFLAGS,;t t
22423 s,@WLDFLAGS@,$WLDFLAGS,;t t
22424 s,@OBJLIST@,$OBJLIST,;t t
22425 s,@hostname@,$hostname,;t t
22426 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22427 s,@PSCMD@,$PSCMD,;t t
22428 s,@WIN32@,$WIN32,;t t
22429 s,@MACOSX@,$MACOSX,;t t
22430 s,@DISTNAME@,$DISTNAME,;t t
22431 s,@DISTVER@,$DISTVER,;t t
22432 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22433 /@MCOMMON@/r $MCOMMON
22434 s,@MCOMMON@,,;t t
22435 CEOF
22436
22437 _ACEOF
22438
22439   cat >>$CONFIG_STATUS <<\_ACEOF
22440   # Split the substitutions into bite-sized pieces for seds with
22441   # small command number limits, like on Digital OSF/1 and HP-UX.
22442   ac_max_sed_lines=48
22443   ac_sed_frag=1 # Number of current file.
22444   ac_beg=1 # First line for current file.
22445   ac_end=$ac_max_sed_lines # Line after last line for current file.
22446   ac_more_lines=:
22447   ac_sed_cmds=
22448   while $ac_more_lines; do
22449     if test $ac_beg -gt 1; then
22450       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22451     else
22452       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22453     fi
22454     if test ! -s $tmp/subs.frag; then
22455       ac_more_lines=false
22456     else
22457       # The purpose of the label and of the branching condition is to
22458       # speed up the sed processing (if there are no `@' at all, there
22459       # is no need to browse any of the substitutions).
22460       # These are the two extra sed commands mentioned above.
22461       (echo ':t
22462   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22463       if test -z "$ac_sed_cmds"; then
22464         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22465       else
22466         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22467       fi
22468       ac_sed_frag=`expr $ac_sed_frag + 1`
22469       ac_beg=$ac_end
22470       ac_end=`expr $ac_end + $ac_max_sed_lines`
22471     fi
22472   done
22473   if test -z "$ac_sed_cmds"; then
22474     ac_sed_cmds=cat
22475   fi
22476 fi # test -n "$CONFIG_FILES"
22477
22478 _ACEOF
22479 cat >>$CONFIG_STATUS <<\_ACEOF
22480 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22481   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22482   case $ac_file in
22483   - | *:- | *:-:* ) # input from stdin
22484         cat >$tmp/stdin
22485         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22486         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22487   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22488         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22489   * )   ac_file_in=$ac_file.in ;;
22490   esac
22491
22492   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22493   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22494 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22495          X"$ac_file" : 'X\(//\)[^/]' \| \
22496          X"$ac_file" : 'X\(//\)$' \| \
22497          X"$ac_file" : 'X\(/\)' \| \
22498          .     : '\(.\)' 2>/dev/null ||
22499 echo X"$ac_file" |
22500     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22501           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22502           /^X\(\/\/\)$/{ s//\1/; q; }
22503           /^X\(\/\).*/{ s//\1/; q; }
22504           s/.*/./; q'`
22505   { if $as_mkdir_p; then
22506     mkdir -p "$ac_dir"
22507   else
22508     as_dir="$ac_dir"
22509     as_dirs=
22510     while test ! -d "$as_dir"; do
22511       as_dirs="$as_dir $as_dirs"
22512       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22513 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22514          X"$as_dir" : 'X\(//\)[^/]' \| \
22515          X"$as_dir" : 'X\(//\)$' \| \
22516          X"$as_dir" : 'X\(/\)' \| \
22517          .     : '\(.\)' 2>/dev/null ||
22518 echo X"$as_dir" |
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     done
22525     test ! -n "$as_dirs" || mkdir $as_dirs
22526   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22527 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22528    { (exit 1); exit 1; }; }; }
22529
22530   ac_builddir=.
22531
22532 if test "$ac_dir" != .; then
22533   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22534   # A "../" for each directory in $ac_dir_suffix.
22535   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22536 else
22537   ac_dir_suffix= ac_top_builddir=
22538 fi
22539
22540 case $srcdir in
22541   .)  # No --srcdir option.  We are building in place.
22542     ac_srcdir=.
22543     if test -z "$ac_top_builddir"; then
22544        ac_top_srcdir=.
22545     else
22546        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22547     fi ;;
22548   [\\/]* | ?:[\\/]* )  # Absolute path.
22549     ac_srcdir=$srcdir$ac_dir_suffix;
22550     ac_top_srcdir=$srcdir ;;
22551   *) # Relative path.
22552     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22553     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22554 esac
22555
22556 # Do not use `cd foo && pwd` to compute absolute paths, because
22557 # the directories may not exist.
22558 case `pwd` in
22559 .) ac_abs_builddir="$ac_dir";;
22560 *)
22561   case "$ac_dir" in
22562   .) ac_abs_builddir=`pwd`;;
22563   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22564   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22565   esac;;
22566 esac
22567 case $ac_abs_builddir in
22568 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22569 *)
22570   case ${ac_top_builddir}. in
22571   .) ac_abs_top_builddir=$ac_abs_builddir;;
22572   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22573   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22574   esac;;
22575 esac
22576 case $ac_abs_builddir in
22577 .) ac_abs_srcdir=$ac_srcdir;;
22578 *)
22579   case $ac_srcdir in
22580   .) ac_abs_srcdir=$ac_abs_builddir;;
22581   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22582   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22583   esac;;
22584 esac
22585 case $ac_abs_builddir in
22586 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22587 *)
22588   case $ac_top_srcdir in
22589   .) ac_abs_top_srcdir=$ac_abs_builddir;;
22590   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22591   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22592   esac;;
22593 esac
22594
22595
22596   case $INSTALL in
22597   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22598   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22599   esac
22600
22601   if test x"$ac_file" != x-; then
22602     { echo "$as_me:$LINENO: creating $ac_file" >&5
22603 echo "$as_me: creating $ac_file" >&6;}
22604     rm -f "$ac_file"
22605   fi
22606   # Let's still pretend it is `configure' which instantiates (i.e., don't
22607   # use $as_me), people would be surprised to read:
22608   #    /* config.h.  Generated by config.status.  */
22609   if test x"$ac_file" = x-; then
22610     configure_input=
22611   else
22612     configure_input="$ac_file.  "
22613   fi
22614   configure_input=$configure_input"Generated from `echo $ac_file_in |
22615                                      sed 's,.*/,,'` by configure."
22616
22617   # First look for the input files in the build tree, otherwise in the
22618   # src tree.
22619   ac_file_inputs=`IFS=:
22620     for f in $ac_file_in; do
22621       case $f in
22622       -) echo $tmp/stdin ;;
22623       [\\/$]*)
22624          # Absolute (can't be DOS-style, as IFS=:)
22625          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22626 echo "$as_me: error: cannot find input file: $f" >&2;}
22627    { (exit 1); exit 1; }; }
22628          echo "$f";;
22629       *) # Relative
22630          if test -f "$f"; then
22631            # Build tree
22632            echo "$f"
22633          elif test -f "$srcdir/$f"; then
22634            # Source tree
22635            echo "$srcdir/$f"
22636          else
22637            # /dev/null tree
22638            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22639 echo "$as_me: error: cannot find input file: $f" >&2;}
22640    { (exit 1); exit 1; }; }
22641          fi;;
22642       esac
22643     done` || { (exit 1); exit 1; }
22644 _ACEOF
22645 cat >>$CONFIG_STATUS <<_ACEOF
22646   sed "$ac_vpsub
22647 $extrasub
22648 _ACEOF
22649 cat >>$CONFIG_STATUS <<\_ACEOF
22650 :t
22651 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22652 s,@configure_input@,$configure_input,;t t
22653 s,@srcdir@,$ac_srcdir,;t t
22654 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22655 s,@top_srcdir@,$ac_top_srcdir,;t t
22656 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22657 s,@builddir@,$ac_builddir,;t t
22658 s,@abs_builddir@,$ac_abs_builddir,;t t
22659 s,@top_builddir@,$ac_top_builddir,;t t
22660 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22661 s,@INSTALL@,$ac_INSTALL,;t t
22662 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22663   rm -f $tmp/stdin
22664   if test x"$ac_file" != x-; then
22665     mv $tmp/out $ac_file
22666   else
22667     cat $tmp/out
22668     rm -f $tmp/out
22669   fi
22670
22671 done
22672 _ACEOF
22673 cat >>$CONFIG_STATUS <<\_ACEOF
22674
22675 #
22676 # CONFIG_HEADER section.
22677 #
22678
22679 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22680 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22681 #
22682 # ac_d sets the value in "#define NAME VALUE" lines.
22683 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
22684 ac_dB='[         ].*$,\1#\2'
22685 ac_dC=' '
22686 ac_dD=',;t'
22687 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22688 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
22689 ac_uB='$,\1#\2define\3'
22690 ac_uC=' '
22691 ac_uD=',;t'
22692
22693 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22694   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22695   case $ac_file in
22696   - | *:- | *:-:* ) # input from stdin
22697         cat >$tmp/stdin
22698         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22699         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22700   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22701         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22702   * )   ac_file_in=$ac_file.in ;;
22703   esac
22704
22705   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22706 echo "$as_me: creating $ac_file" >&6;}
22707
22708   # First look for the input files in the build tree, otherwise in the
22709   # src tree.
22710   ac_file_inputs=`IFS=:
22711     for f in $ac_file_in; do
22712       case $f in
22713       -) echo $tmp/stdin ;;
22714       [\\/$]*)
22715          # Absolute (can't be DOS-style, as IFS=:)
22716          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22717 echo "$as_me: error: cannot find input file: $f" >&2;}
22718    { (exit 1); exit 1; }; }
22719          # Do quote $f, to prevent DOS paths from being IFS'd.
22720          echo "$f";;
22721       *) # Relative
22722          if test -f "$f"; then
22723            # Build tree
22724            echo "$f"
22725          elif test -f "$srcdir/$f"; then
22726            # Source tree
22727            echo "$srcdir/$f"
22728          else
22729            # /dev/null tree
22730            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22731 echo "$as_me: error: cannot find input file: $f" >&2;}
22732    { (exit 1); exit 1; }; }
22733          fi;;
22734       esac
22735     done` || { (exit 1); exit 1; }
22736   # Remove the trailing spaces.
22737   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
22738
22739 _ACEOF
22740
22741 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22742 # `conftest.undefs', that substitutes the proper values into
22743 # config.h.in to produce config.h.  The first handles `#define'
22744 # templates, and the second `#undef' templates.
22745 # And first: Protect against being on the right side of a sed subst in
22746 # config.status.  Protect against being in an unquoted here document
22747 # in config.status.
22748 rm -f conftest.defines conftest.undefs
22749 # Using a here document instead of a string reduces the quoting nightmare.
22750 # Putting comments in sed scripts is not portable.
22751 #
22752 # `end' is used to avoid that the second main sed command (meant for
22753 # 0-ary CPP macros) applies to n-ary macro definitions.
22754 # See the Autoconf documentation for `clear'.
22755 cat >confdef2sed.sed <<\_ACEOF
22756 s/[\\&,]/\\&/g
22757 s,[\\$`],\\&,g
22758 t clear
22759 : clear
22760 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22761 t end
22762 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22763 : end
22764 _ACEOF
22765 # If some macros were called several times there might be several times
22766 # the same #defines, which is useless.  Nevertheless, we may not want to
22767 # sort them, since we want the *last* AC-DEFINE to be honored.
22768 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22769 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22770 rm -f confdef2sed.sed
22771
22772 # This sed command replaces #undef with comments.  This is necessary, for
22773 # example, in the case of _POSIX_SOURCE, which is predefined and required
22774 # on some systems where configure will not decide to define it.
22775 cat >>conftest.undefs <<\_ACEOF
22776 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22777 _ACEOF
22778
22779 # Break up conftest.defines because some shells have a limit on the size
22780 # of here documents, and old seds have small limits too (100 cmds).
22781 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22782 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22783 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22784 echo '  :' >>$CONFIG_STATUS
22785 rm -f conftest.tail
22786 while grep . conftest.defines >/dev/null
22787 do
22788   # Write a limited-size here document to $tmp/defines.sed.
22789   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22790   # Speed up: don't consider the non `#define' lines.
22791   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
22792   # Work around the forget-to-reset-the-flag bug.
22793   echo 't clr' >>$CONFIG_STATUS
22794   echo ': clr' >>$CONFIG_STATUS
22795   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22796   echo 'CEOF
22797   sed -f $tmp/defines.sed $tmp/in >$tmp/out
22798   rm -f $tmp/in
22799   mv $tmp/out $tmp/in
22800 ' >>$CONFIG_STATUS
22801   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22802   rm -f conftest.defines
22803   mv conftest.tail conftest.defines
22804 done
22805 rm -f conftest.defines
22806 echo '  fi # grep' >>$CONFIG_STATUS
22807 echo >>$CONFIG_STATUS
22808
22809 # Break up conftest.undefs because some shells have a limit on the size
22810 # of here documents, and old seds have small limits too (100 cmds).
22811 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
22812 rm -f conftest.tail
22813 while grep . conftest.undefs >/dev/null
22814 do
22815   # Write a limited-size here document to $tmp/undefs.sed.
22816   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22817   # Speed up: don't consider the non `#undef'
22818   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
22819   # Work around the forget-to-reset-the-flag bug.
22820   echo 't clr' >>$CONFIG_STATUS
22821   echo ': clr' >>$CONFIG_STATUS
22822   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22823   echo 'CEOF
22824   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22825   rm -f $tmp/in
22826   mv $tmp/out $tmp/in
22827 ' >>$CONFIG_STATUS
22828   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22829   rm -f conftest.undefs
22830   mv conftest.tail conftest.undefs
22831 done
22832 rm -f conftest.undefs
22833
22834 cat >>$CONFIG_STATUS <<\_ACEOF
22835   # Let's still pretend it is `configure' which instantiates (i.e., don't
22836   # use $as_me), people would be surprised to read:
22837   #    /* config.h.  Generated by config.status.  */
22838   if test x"$ac_file" = x-; then
22839     echo "/* Generated by configure.  */" >$tmp/config.h
22840   else
22841     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
22842   fi
22843   cat $tmp/in >>$tmp/config.h
22844   rm -f $tmp/in
22845   if test x"$ac_file" != x-; then
22846     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22847       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22848 echo "$as_me: $ac_file is unchanged" >&6;}
22849     else
22850       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22851 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22852          X"$ac_file" : 'X\(//\)[^/]' \| \
22853          X"$ac_file" : 'X\(//\)$' \| \
22854          X"$ac_file" : 'X\(/\)' \| \
22855          .     : '\(.\)' 2>/dev/null ||
22856 echo X"$ac_file" |
22857     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22858           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22859           /^X\(\/\/\)$/{ s//\1/; q; }
22860           /^X\(\/\).*/{ s//\1/; q; }
22861           s/.*/./; q'`
22862       { if $as_mkdir_p; then
22863     mkdir -p "$ac_dir"
22864   else
22865     as_dir="$ac_dir"
22866     as_dirs=
22867     while test ! -d "$as_dir"; do
22868       as_dirs="$as_dir $as_dirs"
22869       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22871          X"$as_dir" : 'X\(//\)[^/]' \| \
22872          X"$as_dir" : 'X\(//\)$' \| \
22873          X"$as_dir" : 'X\(/\)' \| \
22874          .     : '\(.\)' 2>/dev/null ||
22875 echo X"$as_dir" |
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     done
22882     test ! -n "$as_dirs" || mkdir $as_dirs
22883   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22884 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22885    { (exit 1); exit 1; }; }; }
22886
22887       rm -f $ac_file
22888       mv $tmp/config.h $ac_file
22889     fi
22890   else
22891     cat $tmp/config.h
22892     rm -f $tmp/config.h
22893   fi
22894 done
22895 _ACEOF
22896 cat >>$CONFIG_STATUS <<\_ACEOF
22897
22898 #
22899 # CONFIG_COMMANDS section.
22900 #
22901 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22902   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22903   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22904   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22905 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22906          X"$ac_dest" : 'X\(//\)[^/]' \| \
22907          X"$ac_dest" : 'X\(//\)$' \| \
22908          X"$ac_dest" : 'X\(/\)' \| \
22909          .     : '\(.\)' 2>/dev/null ||
22910 echo X"$ac_dest" |
22911     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22912           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22913           /^X\(\/\/\)$/{ s//\1/; q; }
22914           /^X\(\/\).*/{ s//\1/; q; }
22915           s/.*/./; q'`
22916   { if $as_mkdir_p; then
22917     mkdir -p "$ac_dir"
22918   else
22919     as_dir="$ac_dir"
22920     as_dirs=
22921     while test ! -d "$as_dir"; do
22922       as_dirs="$as_dir $as_dirs"
22923       as_dir=`(dirname "$as_dir") 2>/dev/null ||
22924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22925          X"$as_dir" : 'X\(//\)[^/]' \| \
22926          X"$as_dir" : 'X\(//\)$' \| \
22927          X"$as_dir" : 'X\(/\)' \| \
22928          .     : '\(.\)' 2>/dev/null ||
22929 echo X"$as_dir" |
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     done
22936     test ! -n "$as_dirs" || mkdir $as_dirs
22937   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22938 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22939    { (exit 1); exit 1; }; }; }
22940
22941   ac_builddir=.
22942
22943 if test "$ac_dir" != .; then
22944   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22945   # A "../" for each directory in $ac_dir_suffix.
22946   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22947 else
22948   ac_dir_suffix= ac_top_builddir=
22949 fi
22950
22951 case $srcdir in
22952   .)  # No --srcdir option.  We are building in place.
22953     ac_srcdir=.
22954     if test -z "$ac_top_builddir"; then
22955        ac_top_srcdir=.
22956     else
22957        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22958     fi ;;
22959   [\\/]* | ?:[\\/]* )  # Absolute path.
22960     ac_srcdir=$srcdir$ac_dir_suffix;
22961     ac_top_srcdir=$srcdir ;;
22962   *) # Relative path.
22963     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22964     ac_top_srcdir=$ac_top_builddir$srcdir ;;
22965 esac
22966
22967 # Do not use `cd foo && pwd` to compute absolute paths, because
22968 # the directories may not exist.
22969 case `pwd` in
22970 .) ac_abs_builddir="$ac_dir";;
22971 *)
22972   case "$ac_dir" in
22973   .) ac_abs_builddir=`pwd`;;
22974   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22975   *) ac_abs_builddir=`pwd`/"$ac_dir";;
22976   esac;;
22977 esac
22978 case $ac_abs_builddir in
22979 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22980 *)
22981   case ${ac_top_builddir}. in
22982   .) ac_abs_top_builddir=$ac_abs_builddir;;
22983   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22984   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22985   esac;;
22986 esac
22987 case $ac_abs_builddir in
22988 .) ac_abs_srcdir=$ac_srcdir;;
22989 *)
22990   case $ac_srcdir in
22991   .) ac_abs_srcdir=$ac_abs_builddir;;
22992   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22993   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22994   esac;;
22995 esac
22996 case $ac_abs_builddir in
22997 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22998 *)
22999   case $ac_top_srcdir in
23000   .) ac_abs_top_srcdir=$ac_abs_builddir;;
23001   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23002   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23003   esac;;
23004 esac
23005
23006
23007   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23008 echo "$as_me: executing $ac_dest commands" >&6;}
23009   case $ac_dest in
23010     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
23011  ;;
23012   esac
23013 done
23014 _ACEOF
23015
23016 cat >>$CONFIG_STATUS <<\_ACEOF
23017
23018 { (exit 0); exit 0; }
23019 _ACEOF
23020 chmod +x $CONFIG_STATUS
23021 ac_clean_files=$ac_clean_files_save
23022
23023
23024 # configure is writing to config.log, and then calls config.status.
23025 # config.status does its own redirection, appending to config.log.
23026 # Unfortunately, on DOS this fails, as config.log is still kept open
23027 # by configure, so config.status won't be able to write to it; its
23028 # output is simply discarded.  So we exec the FD to /dev/null,
23029 # effectively closing config.log, so it can be properly (re)opened and
23030 # appended to by config.status.  When coming back to configure, we
23031 # need to make the FD available again.
23032 if test "$no_create" != yes; then
23033   ac_cs_success=:
23034   ac_config_status_args=
23035   test "$silent" = yes &&
23036     ac_config_status_args="$ac_config_status_args --quiet"
23037   exec 5>/dev/null
23038   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23039   exec 5>>config.log
23040   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23041   # would make configure fail if this is the last instruction.
23042   $ac_cs_success || { (exit 1); exit 1; }
23043 fi
23044
23045
23046 cd scripts
23047 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23048 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23049 cd ..
23050
23051 c=src/cats
23052
23053 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
23054 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
23055
23056 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
23057 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
23058
23059 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
23060 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
23061
23062 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
23063 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
23064
23065 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
23066 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
23067
23068 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23069 chmod 755 $c/sqlite
23070 chmod 755 $c/mysql
23071
23072 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23073    largefile_support="yes"
23074 fi
23075
23076 #
23077 # A whole lot of hand springs to get the compiler version.
23078 #  This is because gcc changed the output in version 3.0
23079 #
23080 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23081 if test "x${CCVERSION}" = "x" ; then
23082   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23083 fi
23084 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23085 if test x"${CXXVERSION}" = x ; then
23086   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23087 fi
23088
23089 if test "x${subsysdir}" = "x${sbindir}" ; then
23090    echo " "
23091    echo " "
23092    echo "You have set --sbindir and --with-subsys-dir"
23093    echo "  both equal to: ${subsysdir} "
23094    echo "  This is not permitted. Please reconfigure."
23095    echo " "
23096    echo "Aborting configuration ..."
23097    echo " "
23098    echo " "
23099    exit 1
23100 fi
23101
23102 if test "x${db_name}" = "xInternal" ; then
23103    echo " "
23104    echo " "
23105    echo "You have not specified either --enable-client-only or one of the"
23106    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23107    echo "  This is not permitted. Please reconfigure."
23108    echo " "
23109    echo "Aborting the configuration ..."
23110    echo " "
23111    echo " "
23112    exit 1
23113 fi
23114
23115 echo "
23116 Configuration on `date`:
23117
23118   Host:                       $host -- ${DISTNAME} ${DISTVER}
23119   Bacula version:             ${VERSION} (${DATE})
23120   Source code location:       ${srcdir}
23121   Install binaries:           ${sbindir}
23122   Install config files:       ${sysconfdir}
23123   Scripts directory:          ${scriptdir}
23124   Working directory:          ${working_dir}
23125   PID directory:              ${piddir}
23126   Subsys directory:           ${subsysdir}
23127   C Compiler:                 ${CC} ${CCVERSION}
23128   C++ Compiler:               ${CXX} ${CXXVERSION}
23129   Compiler flags:             ${WCFLAGS} ${CFLAGS}
23130   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
23131   Libraries:                  ${LIBS}
23132   Statically Linked Tools:    ${support_static_tools}
23133   Statically Linked FD:       ${support_static_fd}
23134   Statically Linked SD:       ${support_static_sd}
23135   Statically Linked DIR:      ${support_static_dir}
23136   Statically Linked CONS:     ${support_static_cons}
23137   Database type:              ${db_name}
23138   Database lib:               ${DB_LIBS}
23139
23140   Job Output Email:           ${job_email}
23141   Traceback Email:            ${dump_email}
23142   SMTP Host Address:          ${smtp_host}
23143
23144   Director Port:              ${dir_port}
23145   File daemon Port:           ${fd_port}
23146   Storage daemon Port:        ${sd_port}
23147
23148   Director User:              ${dir_user}
23149   Director Group:             ${dir_group}
23150   Storage Daemon User:        ${sd_user}
23151   Storage DaemonGroup:        ${sd_group}
23152   File Daemon User:           ${fd_user}
23153   File Daemon Group:          ${fd_group}
23154
23155   SQL binaries Directory      ${SQL_BINDIR}
23156
23157   Large file support:         $largefile_support
23158   Bacula conio support:       ${got_conio} ${CONS_LIBS}
23159   readline support:           ${got_readline} ${PRTREADLINE_SRC}
23160   TCP Wrappers support:       ${TCPW_MSG}
23161   TLS support:                ${support_tls}
23162   ZLIB support:               ${have_zlib}
23163   enable-smartalloc:          ${support_smartalloc}
23164   enable-gnome:               ${support_gnome} ${gnome_version}
23165   enable-wx-console:          ${support_wx_console}
23166   enable-tray-monitor:        ${support_tray_monitor}
23167   client-only:                ${build_client_only}
23168   ACL support:                ${have_acl}
23169   Python support:             ${support_python} ${PYTHON_LIBS}
23170
23171   " > config.out
23172
23173 cat config.out