]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Cater for grant_sqlite_privileges
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS 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 TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group 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 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785   # Omit some internal or obsolete options to make the list less imposing.
786   # This message is too long to be a string in the A/UX 3.1 sh.
787   cat <<_ACEOF
788 \`configure' configures this package to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE.  See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798   -h, --help              display this help and exit
799       --help=short        display options specific to this package
800       --help=recursive    display the short help of all the included packages
801   -V, --version           display version information and exit
802   -q, --quiet, --silent   do not print \`checking...' messages
803       --cache-file=FILE   cache test results in FILE [disabled]
804   -C, --config-cache      alias for \`--cache-file=config.cache'
805   -n, --no-create         do not create output files
806       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810   cat <<_ACEOF
811 Installation directories:
812   --prefix=PREFIX         install architecture-independent files in PREFIX
813                           [$ac_default_prefix]
814   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
815                           [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825   --bindir=DIR           user executables [EPREFIX/bin]
826   --sbindir=DIR          system admin executables [EPREFIX/sbin]
827   --libexecdir=DIR       program executables [EPREFIX/libexec]
828   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
829   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
830   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
831   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
832   --libdir=DIR           object code libraries [EPREFIX/lib]
833   --includedir=DIR       C header files [PREFIX/include]
834   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
835   --infodir=DIR          info documentation [PREFIX/info]
836   --mandir=DIR           man documentation [PREFIX/man]
837 _ACEOF
838
839   cat <<\_ACEOF
840
841 X features:
842   --x-includes=DIR    X include files are in DIR
843   --x-libraries=DIR   X library files are in DIR
844
845 System types:
846   --build=BUILD     configure for building on BUILD [guessed]
847   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
848 _ACEOF
849 fi
850
851 if test -n "$ac_init_help"; then
852
853   cat <<\_ACEOF
854
855 Optional Features:
856   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
857   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
858   --enable-gnome          enable build of gnome-console GUI disabled
859   --enable-smartalloc     enable smartalloc debugging support disabled
860   --enable-static-tools   enable static tape tools disabled
861   --enable-static-fd      enable static File daemon disabled
862   --enable-static-sd      enable static Storage daemon disabled
863   --enable-static-dir     enable static Director disabled
864   --enable-static-cons    enable static Console disabled
865   --enable-client-only    build client (File daemon) only disabled
866   --disable-conio            disable conio support enabled
867
868   --disable-readline      disable readline support disable
869
870   --disable-largefile     omit support for large files
871
872 Optional Packages:
873   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
874   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
875   --with-gnome-includes   Specify location of GNOME headers
876   --with-gnome-libs       Specify location of GNOME libs
877   --with-gnome            Specify prefix for GNOME files
878  --with-readline=DIR             specify readline library directory
879   --with-tcp-wrappers=DIR        enable tcpwrappers support
880   --with-working-dir=PATH        specify path of Bacula working directory
881   --with-scriptdir=PATH    specify path of Bacula scripts directory
882   --with-dump-email=EMAIL        dump email address
883   --with-job-email=EMAIL         job output email address
884   --with-smtp-host=HOST          SMTP mail host address
885   --with-pid-dir=PATH            specify location of Bacula pid files
886   --with-subsys-dir=PATH         specify location of Bacula subsys file
887   --with-baseport=PORT           specify base port address for daemons
888   --with-dir-password=PASSWORD   specify Director's password
889   --with-fd-password=PASSWORD    specify Client's password
890   --with-sd-password=PASSWORD    specify Storage daemon's password
891   --with-dir-user=USER           specify user for Director daemon
892   --with-dir-group=GROUP                 specify group for Director daemon
893   --with-sd-user=USER            specify user for Storage daemon
894   --with-sd-group=GROUP          specify group for Storage daemon
895   --with-fd-user=USER            specify user for File daemon
896   --with-fd-group=GROUP          specify group for File daemon
897
898 Which DBMS do you want to use (please select only one):
899   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
900                           install directory, default is to search through
901                           a number of common places for the MySQL files.
902
903 Which DBMS do you want to use (please select only one):
904   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
905                           install directory, default is to search through
906                           a number of common places for the MySQL files.
907
908 Which DBMS do you want to use (please select only one):
909   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
910                           install directory, default is to search through
911                           a number of common places for the SQLite files.
912   --with-x                use the X Window System
913
914 Some influential environment variables:
915   CC          C compiler command
916   CFLAGS      C compiler flags
917   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
918               nonstandard directory <lib dir>
919   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
920               headers in a nonstandard directory <include dir>
921   CXX         C++ compiler command
922   CXXFLAGS    C++ compiler flags
923   CPP         C preprocessor
924
925 Use these variables to override the choices made by `configure' or to help
926 it to find libraries and programs with nonstandard names/locations.
927
928 _ACEOF
929 fi
930
931 if test "$ac_init_help" = "recursive"; then
932   # If there are subdirs, report their specific --help.
933   ac_popdir=`pwd`
934   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
935     test -d $ac_dir || continue
936     ac_builddir=.
937
938 if test "$ac_dir" != .; then
939   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
940   # A "../" for each directory in $ac_dir_suffix.
941   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
942 else
943   ac_dir_suffix= ac_top_builddir=
944 fi
945
946 case $srcdir in
947   .)  # No --srcdir option.  We are building in place.
948     ac_srcdir=.
949     if test -z "$ac_top_builddir"; then
950        ac_top_srcdir=.
951     else
952        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
953     fi ;;
954   [\\/]* | ?:[\\/]* )  # Absolute path.
955     ac_srcdir=$srcdir$ac_dir_suffix;
956     ac_top_srcdir=$srcdir ;;
957   *) # Relative path.
958     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
959     ac_top_srcdir=$ac_top_builddir$srcdir ;;
960 esac
961 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
962 # absolute.
963 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
964 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
965 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
966 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
967
968     cd $ac_dir
969     # Check for guested configure; otherwise get Cygnus style configure.
970     if test -f $ac_srcdir/configure.gnu; then
971       echo
972       $SHELL $ac_srcdir/configure.gnu  --help=recursive
973     elif test -f $ac_srcdir/configure; then
974       echo
975       $SHELL $ac_srcdir/configure  --help=recursive
976     elif test -f $ac_srcdir/configure.ac ||
977            test -f $ac_srcdir/configure.in; then
978       echo
979       $ac_configure --help
980     else
981       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
982     fi
983     cd $ac_popdir
984   done
985 fi
986
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
989   cat <<\_ACEOF
990
991 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
992 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
995 _ACEOF
996   exit 0
997 fi
998 exec 5>config.log
999 cat >&5 <<_ACEOF
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1002
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.57.  Invocation command line was
1005
1006   $ $0 $@
1007
1008 _ACEOF
1009 {
1010 cat <<_ASUNAME
1011 ## --------- ##
1012 ## Platform. ##
1013 ## --------- ##
1014
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1023
1024 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1025 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1028 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1029 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1030 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1031
1032 _ASUNAME
1033
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1035 for as_dir in $PATH
1036 do
1037   IFS=$as_save_IFS
1038   test -z "$as_dir" && as_dir=.
1039   echo "PATH: $as_dir"
1040 done
1041
1042 } >&5
1043
1044 cat >&5 <<_ACEOF
1045
1046
1047 ## ----------- ##
1048 ## Core tests. ##
1049 ## ----------- ##
1050
1051 _ACEOF
1052
1053
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1059 ac_configure_args=
1060 ac_configure_args0=
1061 ac_configure_args1=
1062 ac_sep=
1063 ac_must_keep_next=false
1064 for ac_pass in 1 2
1065 do
1066   for ac_arg
1067   do
1068     case $ac_arg in
1069     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071     | -silent | --silent | --silen | --sile | --sil)
1072       continue ;;
1073     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075     esac
1076     case $ac_pass in
1077     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078     2)
1079       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080       if test $ac_must_keep_next = true; then
1081         ac_must_keep_next=false # Got value, back to normal.
1082       else
1083         case $ac_arg in
1084           *=* | --config-cache | -C | -disable-* | --disable-* \
1085           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087           | -with-* | --with-* | -without-* | --without-* | --x)
1088             case "$ac_configure_args0 " in
1089               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090             esac
1091             ;;
1092           -* ) ac_must_keep_next=true ;;
1093         esac
1094       fi
1095       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096       # Get rid of the leading space.
1097       ac_sep=" "
1098       ;;
1099     esac
1100   done
1101 done
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log.  We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111   # Save into config.log some information that might help in debugging.
1112   {
1113     echo
1114
1115     cat <<\_ASBOX
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1119 _ASBOX
1120     echo
1121     # The following way of writing the cache mishandles newlines in values,
1122 {
1123   (set) 2>&1 |
1124     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125     *ac_space=\ *)
1126       sed -n \
1127         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1129       ;;
1130     *)
1131       sed -n \
1132         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1133       ;;
1134     esac;
1135 }
1136     echo
1137
1138     cat <<\_ASBOX
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1142 _ASBOX
1143     echo
1144     for ac_var in $ac_subst_vars
1145     do
1146       eval ac_val=$`echo $ac_var`
1147       echo "$ac_var='"'"'$ac_val'"'"'"
1148     done | sort
1149     echo
1150
1151     if test -n "$ac_subst_files"; then
1152       cat <<\_ASBOX
1153 ## ------------- ##
1154 ## Output files. ##
1155 ## ------------- ##
1156 _ASBOX
1157       echo
1158       for ac_var in $ac_subst_files
1159       do
1160         eval ac_val=$`echo $ac_var`
1161         echo "$ac_var='"'"'$ac_val'"'"'"
1162       done | sort
1163       echo
1164     fi
1165
1166     if test -s confdefs.h; then
1167       cat <<\_ASBOX
1168 ## ----------- ##
1169 ## confdefs.h. ##
1170 ## ----------- ##
1171 _ASBOX
1172       echo
1173       sed "/^$/d" confdefs.h | sort
1174       echo
1175     fi
1176     test "$ac_signal" != 0 &&
1177       echo "$as_me: caught signal $ac_signal"
1178     echo "$as_me: exit $exit_status"
1179   } >&5
1180   rm -f core core.* *.core &&
1181   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182     exit $exit_status
1183      ' 0
1184 for ac_signal in 1 2 13 15; do
1185   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1186 done
1187 ac_signal=0
1188
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 echo >confdefs.h
1193
1194 # Predefined preprocessor variables.
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1208 _ACEOF
1209
1210
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1213 _ACEOF
1214
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1218 _ACEOF
1219
1220
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224   if test "x$prefix" != xNONE; then
1225     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226   else
1227     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228   fi
1229 fi
1230 for ac_site_file in $CONFIG_SITE; do
1231   if test -r "$ac_site_file"; then
1232     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234     sed 's/^/| /' "$ac_site_file" >&5
1235     . "$ac_site_file"
1236   fi
1237 done
1238
1239 if test -r "$cache_file"; then
1240   # Some versions of bash will fail to source /dev/null (special
1241   # files actually), so we avoid doing that.
1242   if test -f "$cache_file"; then
1243     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1245     case $cache_file in
1246       [\\/]* | ?:[\\/]* ) . $cache_file;;
1247       *)                      . ./$cache_file;;
1248     esac
1249   fi
1250 else
1251   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1253   >$cache_file
1254 fi
1255
1256 # Check that the precious variables saved in the cache have kept the same
1257 # value.
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262   eval ac_new_set=\$ac_env_${ac_var}_set
1263   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264   eval ac_new_val="\$ac_env_${ac_var}_value"
1265   case $ac_old_set,$ac_new_set in
1266     set,)
1267       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269       ac_cache_corrupted=: ;;
1270     ,set)
1271       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273       ac_cache_corrupted=: ;;
1274     ,);;
1275     *)
1276       if test "x$ac_old_val" != "x$ac_new_val"; then
1277         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1280 echo "$as_me:   former value:  $ac_old_val" >&2;}
1281         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1282 echo "$as_me:   current value: $ac_new_val" >&2;}
1283         ac_cache_corrupted=:
1284       fi;;
1285   esac
1286   # Pass precious variables to config.status.
1287   if test "$ac_new_set" = set; then
1288     case $ac_new_val in
1289     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291     *) ac_arg=$ac_var=$ac_new_val ;;
1292     esac
1293     case " $ac_configure_args " in
1294       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1295       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1296     esac
1297   fi
1298 done
1299 if $ac_cache_corrupted; then
1300   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304    { (exit 1); exit 1; }; }
1305 fi
1306
1307 ac_ext=c
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331 BUILD_DIR=`pwd`
1332 cd ..
1333 TOP_DIR=`pwd`
1334 cd ${BUILD_DIR}
1335
1336 ac_aux_dir=
1337 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1338   if test -f $ac_dir/install-sh; then
1339     ac_aux_dir=$ac_dir
1340     ac_install_sh="$ac_aux_dir/install-sh -c"
1341     break
1342   elif test -f $ac_dir/install.sh; then
1343     ac_aux_dir=$ac_dir
1344     ac_install_sh="$ac_aux_dir/install.sh -c"
1345     break
1346   elif test -f $ac_dir/shtool; then
1347     ac_aux_dir=$ac_dir
1348     ac_install_sh="$ac_aux_dir/shtool install -c"
1349     break
1350   fi
1351 done
1352 if test -z "$ac_aux_dir"; then
1353   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1354 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1355    { (exit 1); exit 1; }; }
1356 fi
1357 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1358 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1359 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1360
1361           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1362
1363
1364
1365
1366
1367 for ac_prog in true
1368 do
1369   # Extract the first word of "$ac_prog", so it can be a program name with args.
1370 set dummy $ac_prog; ac_word=$2
1371 echo "$as_me:$LINENO: checking for $ac_word" >&5
1372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1373 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1374   echo $ECHO_N "(cached) $ECHO_C" >&6
1375 else
1376   case $TRUEPRG in
1377   [\\/]* | ?:[\\/]*)
1378   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1379   ;;
1380   *)
1381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1382 for as_dir in $PATH
1383 do
1384   IFS=$as_save_IFS
1385   test -z "$as_dir" && as_dir=.
1386   for ac_exec_ext in '' $ac_executable_extensions; do
1387   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1388     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1390     break 2
1391   fi
1392 done
1393 done
1394
1395   ;;
1396 esac
1397 fi
1398 TRUEPRG=$ac_cv_path_TRUEPRG
1399
1400 if test -n "$TRUEPRG"; then
1401   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1402 echo "${ECHO_T}$TRUEPRG" >&6
1403 else
1404   echo "$as_me:$LINENO: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1406 fi
1407
1408   test -n "$TRUEPRG" && break
1409 done
1410 test -n "$TRUEPRG" || TRUEPRG=":"
1411
1412 for ac_prog in false
1413 do
1414   # Extract the first word of "$ac_prog", so it can be a program name with args.
1415 set dummy $ac_prog; ac_word=$2
1416 echo "$as_me:$LINENO: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1419   echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421   case $FALSEPRG in
1422   [\\/]* | ?:[\\/]*)
1423   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1424   ;;
1425   *)
1426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 for as_dir in $PATH
1428 do
1429   IFS=$as_save_IFS
1430   test -z "$as_dir" && as_dir=.
1431   for ac_exec_ext in '' $ac_executable_extensions; do
1432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435     break 2
1436   fi
1437 done
1438 done
1439
1440   ;;
1441 esac
1442 fi
1443 FALSEPRG=$ac_cv_path_FALSEPRG
1444
1445 if test -n "$FALSEPRG"; then
1446   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1447 echo "${ECHO_T}$FALSEPRG" >&6
1448 else
1449   echo "$as_me:$LINENO: result: no" >&5
1450 echo "${ECHO_T}no" >&6
1451 fi
1452
1453   test -n "$FALSEPRG" && break
1454 done
1455 test -n "$FALSEPRG" || FALSEPRG=":"
1456
1457
1458 # Make sure we can run config.sub.
1459 $ac_config_sub sun4 >/dev/null 2>&1 ||
1460   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1461 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1462    { (exit 1); exit 1; }; }
1463
1464 echo "$as_me:$LINENO: checking build system type" >&5
1465 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1466 if test "${ac_cv_build+set}" = set; then
1467   echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469   ac_cv_build_alias=$build_alias
1470 test -z "$ac_cv_build_alias" &&
1471   ac_cv_build_alias=`$ac_config_guess`
1472 test -z "$ac_cv_build_alias" &&
1473   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1474 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1475    { (exit 1); exit 1; }; }
1476 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1477   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1478 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1479    { (exit 1); exit 1; }; }
1480
1481 fi
1482 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1483 echo "${ECHO_T}$ac_cv_build" >&6
1484 build=$ac_cv_build
1485 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488
1489
1490 echo "$as_me:$LINENO: checking host system type" >&5
1491 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1492 if test "${ac_cv_host+set}" = set; then
1493   echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495   ac_cv_host_alias=$host_alias
1496 test -z "$ac_cv_host_alias" &&
1497   ac_cv_host_alias=$ac_cv_build_alias
1498 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1499   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1500 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1501    { (exit 1); exit 1; }; }
1502
1503 fi
1504 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1505 echo "${ECHO_T}$ac_cv_host" >&6
1506 host=$ac_cv_host
1507 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1508 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1509 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1510
1511
1512
1513 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1516 echo "configuring for bacula $VERSION ($DATE)"
1517
1518
1519
1520 ac_ext=c
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 if test -n "$ac_tool_prefix"; then
1526   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531   echo $ECHO_N "(cached) $ECHO_C" >&6
1532 else
1533   if test -n "$CC"; then
1534   ac_cv_prog_CC="$CC" # Let the user override the test.
1535 else
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1537 for as_dir in $PATH
1538 do
1539   IFS=$as_save_IFS
1540   test -z "$as_dir" && as_dir=.
1541   for ac_exec_ext in '' $ac_executable_extensions; do
1542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545     break 2
1546   fi
1547 done
1548 done
1549
1550 fi
1551 fi
1552 CC=$ac_cv_prog_CC
1553 if test -n "$CC"; then
1554   echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1556 else
1557   echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1559 fi
1560
1561 fi
1562 if test -z "$ac_cv_prog_CC"; then
1563   ac_ct_CC=$CC
1564   # Extract the first word of "gcc", so it can be a program name with args.
1565 set dummy gcc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1569   echo $ECHO_N "(cached) $ECHO_C" >&6
1570 else
1571   if test -n "$ac_ct_CC"; then
1572   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 else
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1576 do
1577   IFS=$as_save_IFS
1578   test -z "$as_dir" && as_dir=.
1579   for ac_exec_ext in '' $ac_executable_extensions; do
1580   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581     ac_cv_prog_ac_ct_CC="gcc"
1582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1583     break 2
1584   fi
1585 done
1586 done
1587
1588 fi
1589 fi
1590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1591 if test -n "$ac_ct_CC"; then
1592   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1593 echo "${ECHO_T}$ac_ct_CC" >&6
1594 else
1595   echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1597 fi
1598
1599   CC=$ac_ct_CC
1600 else
1601   CC="$ac_cv_prog_CC"
1602 fi
1603
1604 if test -z "$CC"; then
1605   if test -n "$ac_tool_prefix"; then
1606   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611   echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613   if test -n "$CC"; then
1614   ac_cv_prog_CC="$CC" # Let the user override the test.
1615 else
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619   IFS=$as_save_IFS
1620   test -z "$as_dir" && as_dir=.
1621   for ac_exec_ext in '' $ac_executable_extensions; do
1622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623     ac_cv_prog_CC="${ac_tool_prefix}cc"
1624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625     break 2
1626   fi
1627 done
1628 done
1629
1630 fi
1631 fi
1632 CC=$ac_cv_prog_CC
1633 if test -n "$CC"; then
1634   echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1636 else
1637   echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1639 fi
1640
1641 fi
1642 if test -z "$ac_cv_prog_CC"; then
1643   ac_ct_CC=$CC
1644   # Extract the first word of "cc", so it can be a program name with args.
1645 set dummy cc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649   echo $ECHO_N "(cached) $ECHO_C" >&6
1650 else
1651   if test -n "$ac_ct_CC"; then
1652   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 else
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 for as_dir in $PATH
1656 do
1657   IFS=$as_save_IFS
1658   test -z "$as_dir" && as_dir=.
1659   for ac_exec_ext in '' $ac_executable_extensions; do
1660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661     ac_cv_prog_ac_ct_CC="cc"
1662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663     break 2
1664   fi
1665 done
1666 done
1667
1668 fi
1669 fi
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1674 else
1675   echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1677 fi
1678
1679   CC=$ac_ct_CC
1680 else
1681   CC="$ac_cv_prog_CC"
1682 fi
1683
1684 fi
1685 if test -z "$CC"; then
1686   # Extract the first word of "cc", so it can be a program name with args.
1687 set dummy cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691   echo $ECHO_N "(cached) $ECHO_C" >&6
1692 else
1693   if test -n "$CC"; then
1694   ac_cv_prog_CC="$CC" # Let the user override the test.
1695 else
1696   ac_prog_rejected=no
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 for as_dir in $PATH
1699 do
1700   IFS=$as_save_IFS
1701   test -z "$as_dir" && as_dir=.
1702   for ac_exec_ext in '' $ac_executable_extensions; do
1703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1705        ac_prog_rejected=yes
1706        continue
1707      fi
1708     ac_cv_prog_CC="cc"
1709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1710     break 2
1711   fi
1712 done
1713 done
1714
1715 if test $ac_prog_rejected = yes; then
1716   # We found a bogon in the path, so make sure we never use it.
1717   set dummy $ac_cv_prog_CC
1718   shift
1719   if test $# != 0; then
1720     # We chose a different compiler from the bogus one.
1721     # However, it has the same basename, so the bogon will be chosen
1722     # first if we set CC to just the basename; use the full file name.
1723     shift
1724     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1725   fi
1726 fi
1727 fi
1728 fi
1729 CC=$ac_cv_prog_CC
1730 if test -n "$CC"; then
1731   echo "$as_me:$LINENO: result: $CC" >&5
1732 echo "${ECHO_T}$CC" >&6
1733 else
1734   echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736 fi
1737
1738 fi
1739 if test -z "$CC"; then
1740   if test -n "$ac_tool_prefix"; then
1741   for ac_prog in cl
1742   do
1743     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_CC+set}" = set; then
1748   echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750   if test -n "$CC"; then
1751   ac_cv_prog_CC="$CC" # Let the user override the test.
1752 else
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 for as_dir in $PATH
1755 do
1756   IFS=$as_save_IFS
1757   test -z "$as_dir" && as_dir=.
1758   for ac_exec_ext in '' $ac_executable_extensions; do
1759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762     break 2
1763   fi
1764 done
1765 done
1766
1767 fi
1768 fi
1769 CC=$ac_cv_prog_CC
1770 if test -n "$CC"; then
1771   echo "$as_me:$LINENO: result: $CC" >&5
1772 echo "${ECHO_T}$CC" >&6
1773 else
1774   echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1776 fi
1777
1778     test -n "$CC" && break
1779   done
1780 fi
1781 if test -z "$CC"; then
1782   ac_ct_CC=$CC
1783   for ac_prog in cl
1784 do
1785   # Extract the first word of "$ac_prog", so it can be a program name with args.
1786 set dummy $ac_prog; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1790   echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792   if test -n "$ac_ct_CC"; then
1793   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794 else
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796 for as_dir in $PATH
1797 do
1798   IFS=$as_save_IFS
1799   test -z "$as_dir" && as_dir=.
1800   for ac_exec_ext in '' $ac_executable_extensions; do
1801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802     ac_cv_prog_ac_ct_CC="$ac_prog"
1803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804     break 2
1805   fi
1806 done
1807 done
1808
1809 fi
1810 fi
1811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1812 if test -n "$ac_ct_CC"; then
1813   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1814 echo "${ECHO_T}$ac_ct_CC" >&6
1815 else
1816   echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1818 fi
1819
1820   test -n "$ac_ct_CC" && break
1821 done
1822
1823   CC=$ac_ct_CC
1824 fi
1825
1826 fi
1827
1828
1829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: no acceptable C compiler found in \$PATH
1832 See \`config.log' for more details." >&2;}
1833    { (exit 1); exit 1; }; }
1834
1835 # Provide some information about the compiler.
1836 echo "$as_me:$LINENO:" \
1837      "checking for C compiler version" >&5
1838 ac_compiler=`set X $ac_compile; echo $2`
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1840   (eval $ac_compiler --version </dev/null >&5) 2>&5
1841   ac_status=$?
1842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843   (exit $ac_status); }
1844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1845   (eval $ac_compiler -v </dev/null >&5) 2>&5
1846   ac_status=$?
1847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848   (exit $ac_status); }
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1850   (eval $ac_compiler -V </dev/null >&5) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }
1854
1855 cat >conftest.$ac_ext <<_ACEOF
1856 #line $LINENO "configure"
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" >&5
1877 echo $ECHO_N "checking for C compiler default output... $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 #line $LINENO "configure"
2014 /* confdefs.h.  */
2015 _ACEOF
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h.  */
2019
2020 int
2021 main ()
2022 {
2023
2024   ;
2025   return 0;
2026 }
2027 _ACEOF
2028 rm -f conftest.o conftest.obj
2029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2030   (eval $ac_compile) 2>&5
2031   ac_status=$?
2032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033   (exit $ac_status); }; then
2034   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2035   case $ac_file in
2036     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2037     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2038        break;;
2039   esac
2040 done
2041 else
2042   echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2044
2045 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2046 See \`config.log' for more details." >&5
2047 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2048 See \`config.log' for more details." >&2;}
2049    { (exit 1); exit 1; }; }
2050 fi
2051
2052 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2053 fi
2054 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2055 echo "${ECHO_T}$ac_cv_objext" >&6
2056 OBJEXT=$ac_cv_objext
2057 ac_objext=$OBJEXT
2058 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2059 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2060 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2061   echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063   cat >conftest.$ac_ext <<_ACEOF
2064 #line $LINENO "configure"
2065 /* confdefs.h.  */
2066 _ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h.  */
2070
2071 int
2072 main ()
2073 {
2074 #ifndef __GNUC__
2075        choke me
2076 #endif
2077
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084   (eval $ac_compile) 2>&5
2085   ac_status=$?
2086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087   (exit $ac_status); } &&
2088          { ac_try='test -s conftest.$ac_objext'
2089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090   (eval $ac_try) 2>&5
2091   ac_status=$?
2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093   (exit $ac_status); }; }; then
2094   ac_compiler_gnu=yes
2095 else
2096   echo "$as_me: failed program was:" >&5
2097 sed 's/^/| /' conftest.$ac_ext >&5
2098
2099 ac_compiler_gnu=no
2100 fi
2101 rm -f conftest.$ac_objext conftest.$ac_ext
2102 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2103
2104 fi
2105 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2106 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2107 GCC=`test $ac_compiler_gnu = yes && echo yes`
2108 ac_test_CFLAGS=${CFLAGS+set}
2109 ac_save_CFLAGS=$CFLAGS
2110 CFLAGS="-g"
2111 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2112 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2113 if test "${ac_cv_prog_cc_g+set}" = set; then
2114   echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116   cat >conftest.$ac_ext <<_ACEOF
2117 #line $LINENO "configure"
2118 /* confdefs.h.  */
2119 _ACEOF
2120 cat confdefs.h >>conftest.$ac_ext
2121 cat >>conftest.$ac_ext <<_ACEOF
2122 /* end confdefs.h.  */
2123
2124 int
2125 main ()
2126 {
2127
2128   ;
2129   return 0;
2130 }
2131 _ACEOF
2132 rm -f conftest.$ac_objext
2133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2134   (eval $ac_compile) 2>&5
2135   ac_status=$?
2136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137   (exit $ac_status); } &&
2138          { ac_try='test -s conftest.$ac_objext'
2139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140   (eval $ac_try) 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }; }; then
2144   ac_cv_prog_cc_g=yes
2145 else
2146   echo "$as_me: failed program was:" >&5
2147 sed 's/^/| /' conftest.$ac_ext >&5
2148
2149 ac_cv_prog_cc_g=no
2150 fi
2151 rm -f conftest.$ac_objext conftest.$ac_ext
2152 fi
2153 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2154 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2155 if test "$ac_test_CFLAGS" = set; then
2156   CFLAGS=$ac_save_CFLAGS
2157 elif test $ac_cv_prog_cc_g = yes; then
2158   if test "$GCC" = yes; then
2159     CFLAGS="-g -O2"
2160   else
2161     CFLAGS="-g"
2162   fi
2163 else
2164   if test "$GCC" = yes; then
2165     CFLAGS="-O2"
2166   else
2167     CFLAGS=
2168   fi
2169 fi
2170 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2171 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2172 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   ac_cv_prog_cc_stdc=no
2176 ac_save_CC=$CC
2177 cat >conftest.$ac_ext <<_ACEOF
2178 #line $LINENO "configure"
2179 /* confdefs.h.  */
2180 _ACEOF
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h.  */
2184 #include <stdarg.h>
2185 #include <stdio.h>
2186 #include <sys/types.h>
2187 #include <sys/stat.h>
2188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2189 struct buf { int x; };
2190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2191 static char *e (p, i)
2192      char **p;
2193      int i;
2194 {
2195   return p[i];
2196 }
2197 static char *f (char * (*g) (char **, int), char **p, ...)
2198 {
2199   char *s;
2200   va_list v;
2201   va_start (v,p);
2202   s = g (p, va_arg (v,int));
2203   va_end (v);
2204   return s;
2205 }
2206 int test (int i, double x);
2207 struct s1 {int (*f) (int a);};
2208 struct s2 {int (*f) (double a);};
2209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2210 int argc;
2211 char **argv;
2212 int
2213 main ()
2214 {
2215 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2216   ;
2217   return 0;
2218 }
2219 _ACEOF
2220 # Don't try gcc -ansi; that turns off useful extensions and
2221 # breaks some systems' header files.
2222 # AIX                   -qlanglvl=ansi
2223 # Ultrix and OSF/1      -std1
2224 # HP-UX 10.20 and later -Ae
2225 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2226 # SVR4                  -Xc -D__EXTENSIONS__
2227 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2228 do
2229   CC="$ac_save_CC $ac_arg"
2230   rm -f conftest.$ac_objext
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232   (eval $ac_compile) 2>&5
2233   ac_status=$?
2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235   (exit $ac_status); } &&
2236          { ac_try='test -s conftest.$ac_objext'
2237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238   (eval $ac_try) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; }; then
2242   ac_cv_prog_cc_stdc=$ac_arg
2243 break
2244 else
2245   echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2247
2248 fi
2249 rm -f conftest.$ac_objext
2250 done
2251 rm -f conftest.$ac_ext conftest.$ac_objext
2252 CC=$ac_save_CC
2253
2254 fi
2255
2256 case "x$ac_cv_prog_cc_stdc" in
2257   x|xno)
2258     echo "$as_me:$LINENO: result: none needed" >&5
2259 echo "${ECHO_T}none needed" >&6 ;;
2260   *)
2261     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2262 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2263     CC="$CC $ac_cv_prog_cc_stdc" ;;
2264 esac
2265
2266 # Some people use a C++ compiler to compile C.  Since we use `exit',
2267 # in C++ we need to declare it.  In case someone uses the same compiler
2268 # for both compiling C and C++ we need to have the C++ compiler decide
2269 # the declaration of exit, since it's the most demanding environment.
2270 cat >conftest.$ac_ext <<_ACEOF
2271 #ifndef __cplusplus
2272   choke me
2273 #endif
2274 _ACEOF
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277   (eval $ac_compile) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); } &&
2281          { ac_try='test -s conftest.$ac_objext'
2282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283   (eval $ac_try) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; }; then
2287   for ac_declaration in \
2288    ''\
2289    '#include <stdlib.h>' \
2290    'extern "C" void std::exit (int) throw (); using std::exit;' \
2291    'extern "C" void std::exit (int); using std::exit;' \
2292    'extern "C" void exit (int) throw ();' \
2293    'extern "C" void exit (int);' \
2294    'void exit (int);'
2295 do
2296   cat >conftest.$ac_ext <<_ACEOF
2297 #line $LINENO "configure"
2298 /* confdefs.h.  */
2299 _ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h.  */
2303 #include <stdlib.h>
2304 $ac_declaration
2305 int
2306 main ()
2307 {
2308 exit (42);
2309   ;
2310   return 0;
2311 }
2312 _ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315   (eval $ac_compile) 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); } &&
2319          { ac_try='test -s conftest.$ac_objext'
2320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321   (eval $ac_try) 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; }; then
2325   :
2326 else
2327   echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 continue
2331 fi
2332 rm -f conftest.$ac_objext conftest.$ac_ext
2333   cat >conftest.$ac_ext <<_ACEOF
2334 #line $LINENO "configure"
2335 /* confdefs.h.  */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h.  */
2340 $ac_declaration
2341 int
2342 main ()
2343 {
2344 exit (42);
2345   ;
2346   return 0;
2347 }
2348 _ACEOF
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351   (eval $ac_compile) 2>&5
2352   ac_status=$?
2353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354   (exit $ac_status); } &&
2355          { ac_try='test -s conftest.$ac_objext'
2356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357   (eval $ac_try) 2>&5
2358   ac_status=$?
2359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360   (exit $ac_status); }; }; then
2361   break
2362 else
2363   echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 fi
2367 rm -f conftest.$ac_objext conftest.$ac_ext
2368 done
2369 rm -f conftest*
2370 if test -n "$ac_declaration"; then
2371   echo '#ifdef __cplusplus' >>confdefs.h
2372   echo $ac_declaration      >>confdefs.h
2373   echo '#endif'             >>confdefs.h
2374 fi
2375
2376 else
2377   echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2379
2380 fi
2381 rm -f conftest.$ac_objext conftest.$ac_ext
2382 ac_ext=c
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387
2388 ac_ext=cc
2389 ac_cpp='$CXXCPP $CPPFLAGS'
2390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2393 if test -n "$ac_tool_prefix"; then
2394   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2395   do
2396     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2398 echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_CXX+set}" = set; then
2401   echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2403   if test -n "$CXX"; then
2404   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2405 else
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 for as_dir in $PATH
2408 do
2409   IFS=$as_save_IFS
2410   test -z "$as_dir" && as_dir=.
2411   for ac_exec_ext in '' $ac_executable_extensions; do
2412   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415     break 2
2416   fi
2417 done
2418 done
2419
2420 fi
2421 fi
2422 CXX=$ac_cv_prog_CXX
2423 if test -n "$CXX"; then
2424   echo "$as_me:$LINENO: result: $CXX" >&5
2425 echo "${ECHO_T}$CXX" >&6
2426 else
2427   echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2429 fi
2430
2431     test -n "$CXX" && break
2432   done
2433 fi
2434 if test -z "$CXX"; then
2435   ac_ct_CXX=$CXX
2436   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2437 do
2438   # Extract the first word of "$ac_prog", so it can be a program name with args.
2439 set dummy $ac_prog; ac_word=$2
2440 echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2443   echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445   if test -n "$ac_ct_CXX"; then
2446   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2447 else
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 for as_dir in $PATH
2450 do
2451   IFS=$as_save_IFS
2452   test -z "$as_dir" && as_dir=.
2453   for ac_exec_ext in '' $ac_executable_extensions; do
2454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455     ac_cv_prog_ac_ct_CXX="$ac_prog"
2456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457     break 2
2458   fi
2459 done
2460 done
2461
2462 fi
2463 fi
2464 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2465 if test -n "$ac_ct_CXX"; then
2466   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2467 echo "${ECHO_T}$ac_ct_CXX" >&6
2468 else
2469   echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6
2471 fi
2472
2473   test -n "$ac_ct_CXX" && break
2474 done
2475 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2476
2477   CXX=$ac_ct_CXX
2478 fi
2479
2480
2481 # Provide some information about the compiler.
2482 echo "$as_me:$LINENO:" \
2483      "checking for C++ compiler version" >&5
2484 ac_compiler=`set X $ac_compile; echo $2`
2485 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2486   (eval $ac_compiler --version </dev/null >&5) 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }
2490 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2491   (eval $ac_compiler -v </dev/null >&5) 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }
2495 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2496   (eval $ac_compiler -V </dev/null >&5) 2>&5
2497   ac_status=$?
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); }
2500
2501 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2502 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2503 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2504   echo $ECHO_N "(cached) $ECHO_C" >&6
2505 else
2506   cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2508 /* confdefs.h.  */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h.  */
2513
2514 int
2515 main ()
2516 {
2517 #ifndef __GNUC__
2518        choke me
2519 #endif
2520
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527   (eval $ac_compile) 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); } &&
2531          { ac_try='test -s conftest.$ac_objext'
2532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533   (eval $ac_try) 2>&5
2534   ac_status=$?
2535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536   (exit $ac_status); }; }; then
2537   ac_compiler_gnu=yes
2538 else
2539   echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 ac_compiler_gnu=no
2543 fi
2544 rm -f conftest.$ac_objext conftest.$ac_ext
2545 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2546
2547 fi
2548 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2550 GXX=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CXXFLAGS=${CXXFLAGS+set}
2552 ac_save_CXXFLAGS=$CXXFLAGS
2553 CXXFLAGS="-g"
2554 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2555 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2556 if test "${ac_cv_prog_cxx_g+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   cat >conftest.$ac_ext <<_ACEOF
2560 #line $LINENO "configure"
2561 /* confdefs.h.  */
2562 _ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h.  */
2566
2567 int
2568 main ()
2569 {
2570
2571   ;
2572   return 0;
2573 }
2574 _ACEOF
2575 rm -f conftest.$ac_objext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577   (eval $ac_compile) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583   (eval $ac_try) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; }; then
2587   ac_cv_prog_cxx_g=yes
2588 else
2589   echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592 ac_cv_prog_cxx_g=no
2593 fi
2594 rm -f conftest.$ac_objext conftest.$ac_ext
2595 fi
2596 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2597 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2598 if test "$ac_test_CXXFLAGS" = set; then
2599   CXXFLAGS=$ac_save_CXXFLAGS
2600 elif test $ac_cv_prog_cxx_g = yes; then
2601   if test "$GXX" = yes; then
2602     CXXFLAGS="-g -O2"
2603   else
2604     CXXFLAGS="-g"
2605   fi
2606 else
2607   if test "$GXX" = yes; then
2608     CXXFLAGS="-O2"
2609   else
2610     CXXFLAGS=
2611   fi
2612 fi
2613 for ac_declaration in \
2614    ''\
2615    '#include <stdlib.h>' \
2616    'extern "C" void std::exit (int) throw (); using std::exit;' \
2617    'extern "C" void std::exit (int); using std::exit;' \
2618    'extern "C" void exit (int) throw ();' \
2619    'extern "C" void exit (int);' \
2620    'void exit (int);'
2621 do
2622   cat >conftest.$ac_ext <<_ACEOF
2623 #line $LINENO "configure"
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629 #include <stdlib.h>
2630 $ac_declaration
2631 int
2632 main ()
2633 {
2634 exit (42);
2635   ;
2636   return 0;
2637 }
2638 _ACEOF
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641   (eval $ac_compile) 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); } &&
2645          { ac_try='test -s conftest.$ac_objext'
2646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647   (eval $ac_try) 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); }; }; then
2651   :
2652 else
2653   echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656 continue
2657 fi
2658 rm -f conftest.$ac_objext conftest.$ac_ext
2659   cat >conftest.$ac_ext <<_ACEOF
2660 #line $LINENO "configure"
2661 /* confdefs.h.  */
2662 _ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h.  */
2666 $ac_declaration
2667 int
2668 main ()
2669 {
2670 exit (42);
2671   ;
2672   return 0;
2673 }
2674 _ACEOF
2675 rm -f conftest.$ac_objext
2676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677   (eval $ac_compile) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; }; then
2687   break
2688 else
2689   echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2691
2692 fi
2693 rm -f conftest.$ac_objext conftest.$ac_ext
2694 done
2695 rm -f conftest*
2696 if test -n "$ac_declaration"; then
2697   echo '#ifdef __cplusplus' >>confdefs.h
2698   echo $ac_declaration      >>confdefs.h
2699   echo '#endif'             >>confdefs.h
2700 fi
2701
2702 ac_ext=c
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707
2708 if test "x$CC" != xcc; then
2709   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2710 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2711 else
2712   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2713 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2714 fi
2715 set dummy $CC; ac_cc=`echo $2 |
2716                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2717 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2718   echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720   cat >conftest.$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2722 /* confdefs.h.  */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h.  */
2727
2728 int
2729 main ()
2730 {
2731
2732   ;
2733   return 0;
2734 }
2735 _ACEOF
2736 # Make sure it works both with $CC and with simple cc.
2737 # We do the test twice because some compilers refuse to overwrite an
2738 # existing .o file with -o, though they will create one.
2739 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2740 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741   (eval $ac_try) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } &&
2745    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746   (eval $ac_try) 2>&5
2747   ac_status=$?
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); };
2750 then
2751   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2752   if test "x$CC" != xcc; then
2753     # Test first that cc exists at all.
2754     if { ac_try='cc -c conftest.$ac_ext >&5'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; }; then
2760       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2761       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762   (eval $ac_try) 2>&5
2763   ac_status=$?
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); } &&
2766          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767   (eval $ac_try) 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); };
2771       then
2772         # cc works too.
2773         :
2774       else
2775         # cc exists but doesn't like -o.
2776         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2777       fi
2778     fi
2779   fi
2780 else
2781   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2782 fi
2783 rm -f conftest*
2784
2785 fi
2786 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2787   echo "$as_me:$LINENO: result: yes" >&5
2788 echo "${ECHO_T}yes" >&6
2789 else
2790   echo "$as_me:$LINENO: result: no" >&5
2791 echo "${ECHO_T}no" >&6
2792
2793 cat >>confdefs.h <<\_ACEOF
2794 #define NO_MINUS_C_MINUS_O 1
2795 _ACEOF
2796
2797 fi
2798
2799 ac_ext=c
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2805 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2806 # On Suns, sometimes $CPP names a directory.
2807 if test -n "$CPP" && test -d "$CPP"; then
2808   CPP=
2809 fi
2810 if test -z "$CPP"; then
2811   if test "${ac_cv_prog_CPP+set}" = set; then
2812   echo $ECHO_N "(cached) $ECHO_C" >&6
2813 else
2814       # Double quotes because CPP needs to be expanded
2815     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2816     do
2817       ac_preproc_ok=false
2818 for ac_c_preproc_warn_flag in '' yes
2819 do
2820   # Use a header file that comes with gcc, so configuring glibc
2821   # with a fresh cross-compiler works.
2822   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2823   # <limits.h> exists even on freestanding compilers.
2824   # On the NeXT, cc -E runs the code through the compiler's parser,
2825   # not just through cpp. "Syntax error" is here to catch this case.
2826   cat >conftest.$ac_ext <<_ACEOF
2827 #line $LINENO "configure"
2828 /* confdefs.h.  */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h.  */
2833 #ifdef __STDC__
2834 # include <limits.h>
2835 #else
2836 # include <assert.h>
2837 #endif
2838                      Syntax error
2839 _ACEOF
2840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2841   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2842   ac_status=$?
2843   grep -v '^ *+' conftest.er1 >conftest.err
2844   rm -f conftest.er1
2845   cat conftest.err >&5
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); } >/dev/null; then
2848   if test -s conftest.err; then
2849     ac_cpp_err=$ac_c_preproc_warn_flag
2850   else
2851     ac_cpp_err=
2852   fi
2853 else
2854   ac_cpp_err=yes
2855 fi
2856 if test -z "$ac_cpp_err"; then
2857   :
2858 else
2859   echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2861
2862   # Broken: fails on valid input.
2863 continue
2864 fi
2865 rm -f conftest.err conftest.$ac_ext
2866
2867   # OK, works on sane cases.  Now check whether non-existent headers
2868   # can be detected and how.
2869   cat >conftest.$ac_ext <<_ACEOF
2870 #line $LINENO "configure"
2871 /* confdefs.h.  */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h.  */
2876 #include <ac_nonexistent.h>
2877 _ACEOF
2878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2879   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2880   ac_status=$?
2881   grep -v '^ *+' conftest.er1 >conftest.err
2882   rm -f conftest.er1
2883   cat conftest.err >&5
2884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885   (exit $ac_status); } >/dev/null; then
2886   if test -s conftest.err; then
2887     ac_cpp_err=$ac_c_preproc_warn_flag
2888   else
2889     ac_cpp_err=
2890   fi
2891 else
2892   ac_cpp_err=yes
2893 fi
2894 if test -z "$ac_cpp_err"; then
2895   # Broken: success on invalid input.
2896 continue
2897 else
2898   echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2900
2901   # Passes both tests.
2902 ac_preproc_ok=:
2903 break
2904 fi
2905 rm -f conftest.err conftest.$ac_ext
2906
2907 done
2908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2909 rm -f conftest.err conftest.$ac_ext
2910 if $ac_preproc_ok; then
2911   break
2912 fi
2913
2914     done
2915     ac_cv_prog_CPP=$CPP
2916
2917 fi
2918   CPP=$ac_cv_prog_CPP
2919 else
2920   ac_cv_prog_CPP=$CPP
2921 fi
2922 echo "$as_me:$LINENO: result: $CPP" >&5
2923 echo "${ECHO_T}$CPP" >&6
2924 ac_preproc_ok=false
2925 for ac_c_preproc_warn_flag in '' yes
2926 do
2927   # Use a header file that comes with gcc, so configuring glibc
2928   # with a fresh cross-compiler works.
2929   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2930   # <limits.h> exists even on freestanding compilers.
2931   # On the NeXT, cc -E runs the code through the compiler's parser,
2932   # not just through cpp. "Syntax error" is here to catch this case.
2933   cat >conftest.$ac_ext <<_ACEOF
2934 #line $LINENO "configure"
2935 /* confdefs.h.  */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h.  */
2940 #ifdef __STDC__
2941 # include <limits.h>
2942 #else
2943 # include <assert.h>
2944 #endif
2945                      Syntax error
2946 _ACEOF
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949   ac_status=$?
2950   grep -v '^ *+' conftest.er1 >conftest.err
2951   rm -f conftest.er1
2952   cat conftest.err >&5
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } >/dev/null; then
2955   if test -s conftest.err; then
2956     ac_cpp_err=$ac_c_preproc_warn_flag
2957   else
2958     ac_cpp_err=
2959   fi
2960 else
2961   ac_cpp_err=yes
2962 fi
2963 if test -z "$ac_cpp_err"; then
2964   :
2965 else
2966   echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2968
2969   # Broken: fails on valid input.
2970 continue
2971 fi
2972 rm -f conftest.err conftest.$ac_ext
2973
2974   # OK, works on sane cases.  Now check whether non-existent headers
2975   # can be detected and how.
2976   cat >conftest.$ac_ext <<_ACEOF
2977 #line $LINENO "configure"
2978 /* confdefs.h.  */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h.  */
2983 #include <ac_nonexistent.h>
2984 _ACEOF
2985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } >/dev/null; then
2993   if test -s conftest.err; then
2994     ac_cpp_err=$ac_c_preproc_warn_flag
2995   else
2996     ac_cpp_err=
2997   fi
2998 else
2999   ac_cpp_err=yes
3000 fi
3001 if test -z "$ac_cpp_err"; then
3002   # Broken: success on invalid input.
3003 continue
3004 else
3005   echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3007
3008   # Passes both tests.
3009 ac_preproc_ok=:
3010 break
3011 fi
3012 rm -f conftest.err conftest.$ac_ext
3013
3014 done
3015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3016 rm -f conftest.err conftest.$ac_ext
3017 if $ac_preproc_ok; then
3018   :
3019 else
3020   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3021 See \`config.log' for more details." >&5
3022 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3023 See \`config.log' for more details." >&2;}
3024    { (exit 1); exit 1; }; }
3025 fi
3026
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032
3033
3034 echo "$as_me:$LINENO: checking for egrep" >&5
3035 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3036 if test "${ac_cv_prog_egrep+set}" = set; then
3037   echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3040     then ac_cv_prog_egrep='grep -E'
3041     else ac_cv_prog_egrep='egrep'
3042     fi
3043 fi
3044 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3045 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3046  EGREP=$ac_cv_prog_egrep
3047
3048
3049 if test $ac_cv_c_compiler_gnu = yes; then
3050     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3051 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3052 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3053   echo $ECHO_N "(cached) $ECHO_C" >&6
3054 else
3055     ac_pattern="Autoconf.*'x'"
3056   cat >conftest.$ac_ext <<_ACEOF
3057 #line $LINENO "configure"
3058 /* confdefs.h.  */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h.  */
3063 #include <sgtty.h>
3064 Autoconf TIOCGETP
3065 _ACEOF
3066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3067   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3068   ac_cv_prog_gcc_traditional=yes
3069 else
3070   ac_cv_prog_gcc_traditional=no
3071 fi
3072 rm -f conftest*
3073
3074
3075   if test $ac_cv_prog_gcc_traditional = no; then
3076     cat >conftest.$ac_ext <<_ACEOF
3077 #line $LINENO "configure"
3078 /* confdefs.h.  */
3079 _ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h.  */
3083 #include <termio.h>
3084 Autoconf TCGETA
3085 _ACEOF
3086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3087   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3088   ac_cv_prog_gcc_traditional=yes
3089 fi
3090 rm -f conftest*
3091
3092   fi
3093 fi
3094 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3095 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3096   if test $ac_cv_prog_gcc_traditional = yes; then
3097     CC="$CC -traditional"
3098   fi
3099 fi
3100
3101 if test x$CC = xgcc
3102 then
3103    cat >>confdefs.h <<\_ACEOF
3104 #define HAVE_GCC 1
3105 _ACEOF
3106
3107 fi
3108
3109 # Find a good install program.  We prefer a C program (faster),
3110 # so one script is as good as another.  But avoid the broken or
3111 # incompatible versions:
3112 # SysV /etc/install, /usr/sbin/install
3113 # SunOS /usr/etc/install
3114 # IRIX /sbin/install
3115 # AIX /bin/install
3116 # AmigaOS /C/install, which installs bootblocks on floppy discs
3117 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3118 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3119 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3120 # ./install, which can be erroneously created by make from ./install.sh.
3121 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3122 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3123 if test -z "$INSTALL"; then
3124 if test "${ac_cv_path_install+set}" = set; then
3125   echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128 for as_dir in $PATH
3129 do
3130   IFS=$as_save_IFS
3131   test -z "$as_dir" && as_dir=.
3132   # Account for people who put trailing slashes in PATH elements.
3133 case $as_dir/ in
3134   ./ | .// | /cC/* | \
3135   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3136   /usr/ucb/* ) ;;
3137   *)
3138     # OSF1 and SCO ODT 3.0 have their own names for install.
3139     # Don't use installbsd from OSF since it installs stuff as root
3140     # by default.
3141     for ac_prog in ginstall scoinst install; do
3142       for ac_exec_ext in '' $ac_executable_extensions; do
3143         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3144           if test $ac_prog = install &&
3145             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3146             # AIX install.  It has an incompatible calling convention.
3147             :
3148           elif test $ac_prog = install &&
3149             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3150             # program-specific install script used by HP pwplus--don't use.
3151             :
3152           else
3153             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3154             break 3
3155           fi
3156         fi
3157       done
3158     done
3159     ;;
3160 esac
3161 done
3162
3163
3164 fi
3165   if test "${ac_cv_path_install+set}" = set; then
3166     INSTALL=$ac_cv_path_install
3167   else
3168     # As a last resort, use the slow shell script.  We don't cache a
3169     # path for INSTALL within a source directory, because that will
3170     # break other packages using the cache if that directory is
3171     # removed, or if the path is relative.
3172     INSTALL=$ac_install_sh
3173   fi
3174 fi
3175 echo "$as_me:$LINENO: result: $INSTALL" >&5
3176 echo "${ECHO_T}$INSTALL" >&6
3177
3178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3179 # It thinks the first close brace ends the variable substitution.
3180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3181
3182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3183
3184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3185
3186 if test -n "$ac_tool_prefix"; then
3187   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3188 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_RANLIB+set}" = set; then
3192   echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194   if test -n "$RANLIB"; then
3195   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3199 do
3200   IFS=$as_save_IFS
3201   test -z "$as_dir" && as_dir=.
3202   for ac_exec_ext in '' $ac_executable_extensions; do
3203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206     break 2
3207   fi
3208 done
3209 done
3210
3211 fi
3212 fi
3213 RANLIB=$ac_cv_prog_RANLIB
3214 if test -n "$RANLIB"; then
3215   echo "$as_me:$LINENO: result: $RANLIB" >&5
3216 echo "${ECHO_T}$RANLIB" >&6
3217 else
3218   echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3220 fi
3221
3222 fi
3223 if test -z "$ac_cv_prog_RANLIB"; then
3224   ac_ct_RANLIB=$RANLIB
3225   # Extract the first word of "ranlib", so it can be a program name with args.
3226 set dummy ranlib; ac_word=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   if test -n "$ac_ct_RANLIB"; then
3233   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3234 else
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238   IFS=$as_save_IFS
3239   test -z "$as_dir" && as_dir=.
3240   for ac_exec_ext in '' $ac_executable_extensions; do
3241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242     ac_cv_prog_ac_ct_RANLIB="ranlib"
3243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244     break 2
3245   fi
3246 done
3247 done
3248
3249   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3250 fi
3251 fi
3252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3253 if test -n "$ac_ct_RANLIB"; then
3254   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3255 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3256 else
3257   echo "$as_me:$LINENO: result: no" >&5
3258 echo "${ECHO_T}no" >&6
3259 fi
3260
3261   RANLIB=$ac_ct_RANLIB
3262 else
3263   RANLIB="$ac_cv_prog_RANLIB"
3264 fi
3265
3266 # Extract the first word of "mv", so it can be a program name with args.
3267 set dummy mv; ac_word=$2
3268 echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270 if test "${ac_cv_path_MV+set}" = set; then
3271   echo $ECHO_N "(cached) $ECHO_C" >&6
3272 else
3273   case $MV in
3274   [\\/]* | ?:[\\/]*)
3275   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3276   ;;
3277   *)
3278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281   IFS=$as_save_IFS
3282   test -z "$as_dir" && as_dir=.
3283   for ac_exec_ext in '' $ac_executable_extensions; do
3284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287     break 2
3288   fi
3289 done
3290 done
3291
3292   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3293   ;;
3294 esac
3295 fi
3296 MV=$ac_cv_path_MV
3297
3298 if test -n "$MV"; then
3299   echo "$as_me:$LINENO: result: $MV" >&5
3300 echo "${ECHO_T}$MV" >&6
3301 else
3302   echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6
3304 fi
3305
3306 # Extract the first word of "rm", so it can be a program name with args.
3307 set dummy rm; ac_word=$2
3308 echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310 if test "${ac_cv_path_RM+set}" = set; then
3311   echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313   case $RM in
3314   [\\/]* | ?:[\\/]*)
3315   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3316   ;;
3317   *)
3318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 for as_dir in $PATH
3320 do
3321   IFS=$as_save_IFS
3322   test -z "$as_dir" && as_dir=.
3323   for ac_exec_ext in '' $ac_executable_extensions; do
3324   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3326     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327     break 2
3328   fi
3329 done
3330 done
3331
3332   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3333   ;;
3334 esac
3335 fi
3336 RM=$ac_cv_path_RM
3337
3338 if test -n "$RM"; then
3339   echo "$as_me:$LINENO: result: $RM" >&5
3340 echo "${ECHO_T}$RM" >&6
3341 else
3342   echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3344 fi
3345
3346 # Extract the first word of "cp", so it can be a program name with args.
3347 set dummy cp; ac_word=$2
3348 echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350 if test "${ac_cv_path_CP+set}" = set; then
3351   echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353   case $CP in
3354   [\\/]* | ?:[\\/]*)
3355   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3356   ;;
3357   *)
3358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359 for as_dir in $PATH
3360 do
3361   IFS=$as_save_IFS
3362   test -z "$as_dir" && as_dir=.
3363   for ac_exec_ext in '' $ac_executable_extensions; do
3364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3367     break 2
3368   fi
3369 done
3370 done
3371
3372   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3373   ;;
3374 esac
3375 fi
3376 CP=$ac_cv_path_CP
3377
3378 if test -n "$CP"; then
3379   echo "$as_me:$LINENO: result: $CP" >&5
3380 echo "${ECHO_T}$CP" >&6
3381 else
3382   echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3384 fi
3385
3386 # Extract the first word of "sed", so it can be a program name with args.
3387 set dummy sed; ac_word=$2
3388 echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3390 if test "${ac_cv_path_SED+set}" = set; then
3391   echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393   case $SED in
3394   [\\/]* | ?:[\\/]*)
3395   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3396   ;;
3397   *)
3398   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401   IFS=$as_save_IFS
3402   test -z "$as_dir" && as_dir=.
3403   for ac_exec_ext in '' $ac_executable_extensions; do
3404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407     break 2
3408   fi
3409 done
3410 done
3411
3412   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3413   ;;
3414 esac
3415 fi
3416 SED=$ac_cv_path_SED
3417
3418 if test -n "$SED"; then
3419   echo "$as_me:$LINENO: result: $SED" >&5
3420 echo "${ECHO_T}$SED" >&6
3421 else
3422   echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6
3424 fi
3425
3426 # Extract the first word of "awk", so it can be a program name with args.
3427 set dummy awk; ac_word=$2
3428 echo "$as_me:$LINENO: checking for $ac_word" >&5
3429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3430 if test "${ac_cv_path_AWK+set}" = set; then
3431   echo $ECHO_N "(cached) $ECHO_C" >&6
3432 else
3433   case $AWK in
3434   [\\/]* | ?:[\\/]*)
3435   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3436   ;;
3437   *)
3438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3440 do
3441   IFS=$as_save_IFS
3442   test -z "$as_dir" && as_dir=.
3443   for ac_exec_ext in '' $ac_executable_extensions; do
3444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3445     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447     break 2
3448   fi
3449 done
3450 done
3451
3452   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3453   ;;
3454 esac
3455 fi
3456 AWK=$ac_cv_path_AWK
3457
3458 if test -n "$AWK"; then
3459   echo "$as_me:$LINENO: result: $AWK" >&5
3460 echo "${ECHO_T}$AWK" >&6
3461 else
3462   echo "$as_me:$LINENO: result: no" >&5
3463 echo "${ECHO_T}no" >&6
3464 fi
3465
3466 # Extract the first word of "echo", so it can be a program name with args.
3467 set dummy echo; ac_word=$2
3468 echo "$as_me:$LINENO: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3470 if test "${ac_cv_path_ECHO+set}" = set; then
3471   echo $ECHO_N "(cached) $ECHO_C" >&6
3472 else
3473   case $ECHO in
3474   [\\/]* | ?:[\\/]*)
3475   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3476   ;;
3477   *)
3478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481   IFS=$as_save_IFS
3482   test -z "$as_dir" && as_dir=.
3483   for ac_exec_ext in '' $ac_executable_extensions; do
3484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487     break 2
3488   fi
3489 done
3490 done
3491
3492   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3493   ;;
3494 esac
3495 fi
3496 ECHO=$ac_cv_path_ECHO
3497
3498 if test -n "$ECHO"; then
3499   echo "$as_me:$LINENO: result: $ECHO" >&5
3500 echo "${ECHO_T}$ECHO" >&6
3501 else
3502   echo "$as_me:$LINENO: result: no" >&5
3503 echo "${ECHO_T}no" >&6
3504 fi
3505
3506 # Extract the first word of "cmp", so it can be a program name with args.
3507 set dummy cmp; ac_word=$2
3508 echo "$as_me:$LINENO: checking for $ac_word" >&5
3509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3510 if test "${ac_cv_path_CMP+set}" = set; then
3511   echo $ECHO_N "(cached) $ECHO_C" >&6
3512 else
3513   case $CMP in
3514   [\\/]* | ?:[\\/]*)
3515   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3516   ;;
3517   *)
3518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521   IFS=$as_save_IFS
3522   test -z "$as_dir" && as_dir=.
3523   for ac_exec_ext in '' $ac_executable_extensions; do
3524   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3527     break 2
3528   fi
3529 done
3530 done
3531
3532   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3533   ;;
3534 esac
3535 fi
3536 CMP=$ac_cv_path_CMP
3537
3538 if test -n "$CMP"; then
3539   echo "$as_me:$LINENO: result: $CMP" >&5
3540 echo "${ECHO_T}$CMP" >&6
3541 else
3542   echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6
3544 fi
3545
3546 # Extract the first word of "tbl", so it can be a program name with args.
3547 set dummy tbl; ac_word=$2
3548 echo "$as_me:$LINENO: checking for $ac_word" >&5
3549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3550 if test "${ac_cv_path_TBL+set}" = set; then
3551   echo $ECHO_N "(cached) $ECHO_C" >&6
3552 else
3553   case $TBL in
3554   [\\/]* | ?:[\\/]*)
3555   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3556   ;;
3557   *)
3558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559 for as_dir in $PATH
3560 do
3561   IFS=$as_save_IFS
3562   test -z "$as_dir" && as_dir=.
3563   for ac_exec_ext in '' $ac_executable_extensions; do
3564   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3566     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3567     break 2
3568   fi
3569 done
3570 done
3571
3572   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3573   ;;
3574 esac
3575 fi
3576 TBL=$ac_cv_path_TBL
3577
3578 if test -n "$TBL"; then
3579   echo "$as_me:$LINENO: result: $TBL" >&5
3580 echo "${ECHO_T}$TBL" >&6
3581 else
3582   echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6
3584 fi
3585
3586 # Extract the first word of "ar", so it can be a program name with args.
3587 set dummy ar; ac_word=$2
3588 echo "$as_me:$LINENO: checking for $ac_word" >&5
3589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3590 if test "${ac_cv_path_AR+set}" = set; then
3591   echo $ECHO_N "(cached) $ECHO_C" >&6
3592 else
3593   case $AR in
3594   [\\/]* | ?:[\\/]*)
3595   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3596   ;;
3597   *)
3598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603   for ac_exec_ext in '' $ac_executable_extensions; do
3604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607     break 2
3608   fi
3609 done
3610 done
3611
3612   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3613   ;;
3614 esac
3615 fi
3616 AR=$ac_cv_path_AR
3617
3618 if test -n "$AR"; then
3619   echo "$as_me:$LINENO: result: $AR" >&5
3620 echo "${ECHO_T}$AR" >&6
3621 else
3622   echo "$as_me:$LINENO: result: no" >&5
3623 echo "${ECHO_T}no" >&6
3624 fi
3625
3626 # Extract the first word of "ranlib", so it can be a program name with args.
3627 set dummy ranlib; ac_word=$2
3628 echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3630 if test "${ac_cv_path_RANLIB+set}" = set; then
3631   echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633   case $RANLIB in
3634   [\\/]* | ?:[\\/]*)
3635   ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3636   ;;
3637   *)
3638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3639 for as_dir in $PATH
3640 do
3641   IFS=$as_save_IFS
3642   test -z "$as_dir" && as_dir=.
3643   for ac_exec_ext in '' $ac_executable_extensions; do
3644   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645     ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3647     break 2
3648   fi
3649 done
3650 done
3651
3652   test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3653   ;;
3654 esac
3655 fi
3656 RANLIB=$ac_cv_path_RANLIB
3657
3658 if test -n "$RANLIB"; then
3659   echo "$as_me:$LINENO: result: $RANLIB" >&5
3660 echo "${ECHO_T}$RANLIB" >&6
3661 else
3662   echo "$as_me:$LINENO: result: no" >&5
3663 echo "${ECHO_T}no" >&6
3664 fi
3665
3666 # Extract the first word of "openssl", so it can be a program name with args.
3667 set dummy openssl; ac_word=$2
3668 echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670 if test "${ac_cv_path_OPENSSL+set}" = set; then
3671   echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673   case $OPENSSL in
3674   [\\/]* | ?:[\\/]*)
3675   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3676   ;;
3677   *)
3678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681   IFS=$as_save_IFS
3682   test -z "$as_dir" && as_dir=.
3683   for ac_exec_ext in '' $ac_executable_extensions; do
3684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3687     break 2
3688   fi
3689 done
3690 done
3691
3692   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3693   ;;
3694 esac
3695 fi
3696 OPENSSL=$ac_cv_path_OPENSSL
3697
3698 if test -n "$OPENSSL"; then
3699   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3700 echo "${ECHO_T}$OPENSSL" >&6
3701 else
3702   echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3704 fi
3705
3706 # Extract the first word of "mtx", so it can be a program name with args.
3707 set dummy mtx; ac_word=$2
3708 echo "$as_me:$LINENO: checking for $ac_word" >&5
3709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3710 if test "${ac_cv_path_MTX+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713   case $MTX in
3714   [\\/]* | ?:[\\/]*)
3715   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3716   ;;
3717   *)
3718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3720 do
3721   IFS=$as_save_IFS
3722   test -z "$as_dir" && as_dir=.
3723   for ac_exec_ext in '' $ac_executable_extensions; do
3724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3727     break 2
3728   fi
3729 done
3730 done
3731
3732   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3733   ;;
3734 esac
3735 fi
3736 MTX=$ac_cv_path_MTX
3737
3738 if test -n "$MTX"; then
3739   echo "$as_me:$LINENO: result: $MTX" >&5
3740 echo "${ECHO_T}$MTX" >&6
3741 else
3742   echo "$as_me:$LINENO: result: no" >&5
3743 echo "${ECHO_T}no" >&6
3744 fi
3745
3746 # Extract the first word of "pkg-config", so it can be a program name with args.
3747 set dummy pkg-config; ac_word=$2
3748 echo "$as_me:$LINENO: checking for $ac_word" >&5
3749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3750 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3751   echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753   case $PKGCONFIG in
3754   [\\/]* | ?:[\\/]*)
3755   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3756   ;;
3757   *)
3758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH
3760 do
3761   IFS=$as_save_IFS
3762   test -z "$as_dir" && as_dir=.
3763   for ac_exec_ext in '' $ac_executable_extensions; do
3764   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3767     break 2
3768   fi
3769 done
3770 done
3771
3772   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3773   ;;
3774 esac
3775 fi
3776 PKGCONFIG=$ac_cv_path_PKGCONFIG
3777
3778 if test -n "$PKGCONFIG"; then
3779   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3780 echo "${ECHO_T}$PKGCONFIG" >&6
3781 else
3782   echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3784 fi
3785
3786
3787 test -n "$ARFLAG" || ARFLAGS="cr"
3788
3789
3790 MAKE_SHELL=/bin/sh
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800 echo "$as_me:$LINENO: checking for Operating System" >&5
3801 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3802
3803 case $host_os in
3804   *cygwin* ) CYGWIN=yes;;
3805          * ) CYGWIN=no;;
3806 esac
3807
3808 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3809 then
3810
3811
3812 if $TRUEPRG; then
3813   HAVE_SUN_OS_TRUE=
3814   HAVE_SUN_OS_FALSE='#'
3815 else
3816   HAVE_SUN_OS_TRUE='#'
3817   HAVE_SUN_OS_FALSE=
3818 fi
3819         cat >>confdefs.h <<\_ACEOF
3820 #define HAVE_SUN_OS 1
3821 _ACEOF
3822
3823 else
3824
3825
3826 if $FALSEPRG; then
3827   HAVE_SUN_OS_TRUE=
3828   HAVE_SUN_OS_FALSE='#'
3829 else
3830   HAVE_SUN_OS_TRUE='#'
3831   HAVE_SUN_OS_FALSE=
3832 fi
3833 fi
3834
3835 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3836 then
3837
3838
3839 if $TRUEPRG; then
3840   HAVE_OSF1_OS_TRUE=
3841   HAVE_OSF1_OS_FALSE='#'
3842 else
3843   HAVE_OSF1_OS_TRUE='#'
3844   HAVE_OSF1_OS_FALSE=
3845 fi
3846         cat >>confdefs.h <<\_ACEOF
3847 #define HAVE_OSF1_OS 1
3848 _ACEOF
3849
3850 else
3851
3852
3853 if $FALSEPRG; then
3854   HAVE_OSF1_OS_TRUE=
3855   HAVE_OSF1_OS_FALSE='#'
3856 else
3857   HAVE_OSF1_OS_TRUE='#'
3858   HAVE_OSF1_OS_FALSE=
3859 fi
3860 fi
3861
3862 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3863 then
3864
3865
3866 if $TRUEPRG; then
3867   HAVE_AIX_OS_TRUE=
3868   HAVE_AIX_OS_FALSE='#'
3869 else
3870   HAVE_AIX_OS_TRUE='#'
3871   HAVE_AIX_OS_FALSE=
3872 fi
3873         cat >>confdefs.h <<\_ACEOF
3874 #define HAVE_AIX_OS 1
3875 _ACEOF
3876
3877 else
3878
3879
3880 if $FALSEPRG; then
3881   HAVE_AIX_OS_TRUE=
3882   HAVE_AIX_OS_FALSE='#'
3883 else
3884   HAVE_AIX_OS_TRUE='#'
3885   HAVE_AIX_OS_FALSE=
3886 fi
3887 fi
3888
3889 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3890 then
3891
3892
3893 if $TRUEPRG; then
3894   HAVE_HPUX_OS_TRUE=
3895   HAVE_HPUX_OS_FALSE='#'
3896 else
3897   HAVE_HPUX_OS_TRUE='#'
3898   HAVE_HPUX_OS_FALSE=
3899 fi
3900         cat >>confdefs.h <<\_ACEOF
3901 #define HAVE_HPUX_OS 1
3902 _ACEOF
3903
3904 else
3905
3906
3907 if $FALSEPRG; then
3908   HAVE_HPUX_OS_TRUE=
3909   HAVE_HPUX_OS_FALSE='#'
3910 else
3911   HAVE_HPUX_OS_TRUE='#'
3912   HAVE_HPUX_OS_FALSE=
3913 fi
3914 fi
3915
3916 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3917 then
3918
3919
3920 if $TRUEPRG; then
3921   HAVE_LINUX_OS_TRUE=
3922   HAVE_LINUX_OS_FALSE='#'
3923 else
3924   HAVE_LINUX_OS_TRUE='#'
3925   HAVE_LINUX_OS_FALSE=
3926 fi
3927         cat >>confdefs.h <<\_ACEOF
3928 #define HAVE_LINUX_OS 1
3929 _ACEOF
3930
3931 else
3932
3933
3934 if $FALSEPRG; then
3935   HAVE_LINUX_OS_TRUE=
3936   HAVE_LINUX_OS_FALSE='#'
3937 else
3938   HAVE_LINUX_OS_TRUE='#'
3939   HAVE_LINUX_OS_FALSE=
3940 fi
3941 fi
3942
3943 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3944 then
3945
3946
3947 if $TRUEPRG; then
3948   HAVE_FREEBSD_OS_TRUE=
3949   HAVE_FREEBSD_OS_FALSE='#'
3950 else
3951   HAVE_FREEBSD_OS_TRUE='#'
3952   HAVE_FREEBSD_OS_FALSE=
3953 fi
3954         cat >>confdefs.h <<\_ACEOF
3955 #define HAVE_FREEBSD_OS 1
3956 _ACEOF
3957
3958 else
3959
3960
3961 if $FALSEPRG; then
3962   HAVE_FREEBSD_OS_TRUE=
3963   HAVE_FREEBSD_OS_FALSE='#'
3964 else
3965   HAVE_FREEBSD_OS_TRUE='#'
3966   HAVE_FREEBSD_OS_FALSE=
3967 fi
3968 fi
3969
3970 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3971 then
3972
3973
3974 if $TRUEPRG; then
3975   HAVE_NETBSD_OS_TRUE=
3976   HAVE_NETBSD_OS_FALSE='#'
3977 else
3978   HAVE_NETBSD_OS_TRUE='#'
3979   HAVE_NETBSD_OS_FALSE=
3980 fi
3981         cat >>confdefs.h <<\_ACEOF
3982 #define HAVE_NETBSD_OS 1
3983 _ACEOF
3984
3985 else
3986
3987
3988 if $FALSEPRG; then
3989   HAVE_NETBSD_OS_TRUE=
3990   HAVE_NETBSD_OS_FALSE='#'
3991 else
3992   HAVE_NETBSD_OS_TRUE='#'
3993   HAVE_NETBSD_OS_FALSE=
3994 fi
3995 fi
3996
3997 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3998 then
3999
4000
4001 if $TRUEPRG; then
4002   HAVE_OPENBSD_OS_TRUE=
4003   HAVE_OPENBSD_OS_FALSE='#'
4004 else
4005   HAVE_OPENBSD_OS_TRUE='#'
4006   HAVE_OPENBSD_OS_FALSE=
4007 fi
4008         cat >>confdefs.h <<\_ACEOF
4009 #define HAVE_OPENBSD_OS 1
4010 _ACEOF
4011
4012 else
4013
4014
4015 if $FALSEPRG; then
4016   HAVE_OPENBSD_OS_TRUE=
4017   HAVE_OPENBSD_OS_FALSE='#'
4018 else
4019   HAVE_OPENBSD_OS_TRUE='#'
4020   HAVE_OPENBSD_OS_FALSE=
4021 fi
4022 fi
4023
4024 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4025 then
4026
4027
4028 if $TRUEPRG; then
4029   HAVE_BSDI_OS_TRUE=
4030   HAVE_BSDI_OS_FALSE='#'
4031 else
4032   HAVE_BSDI_OS_TRUE='#'
4033   HAVE_BSDI_OS_FALSE=
4034 fi
4035         cat >>confdefs.h <<\_ACEOF
4036 #define HAVE_BSDI_OS 1
4037 _ACEOF
4038
4039 else
4040
4041
4042 if $FALSEPRG; then
4043   HAVE_BSDI_OS_TRUE=
4044   HAVE_BSDI_OS_FALSE='#'
4045 else
4046   HAVE_BSDI_OS_TRUE='#'
4047   HAVE_BSDI_OS_FALSE=
4048 fi
4049 fi
4050
4051 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4052 then
4053
4054
4055 if $TRUEPRG; then
4056   HAVE_SGI_OS_TRUE=
4057   HAVE_SGI_OS_FALSE='#'
4058 else
4059   HAVE_SGI_OS_TRUE='#'
4060   HAVE_SGI_OS_FALSE=
4061 fi
4062         cat >>confdefs.h <<\_ACEOF
4063 #define HAVE_SGI_OS 1
4064 _ACEOF
4065
4066 else
4067
4068
4069 if $FALSEPRG; then
4070   HAVE_SGI_OS_TRUE=
4071   HAVE_SGI_OS_FALSE='#'
4072 else
4073   HAVE_SGI_OS_TRUE='#'
4074   HAVE_SGI_OS_FALSE=
4075 fi
4076 fi
4077
4078 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4079 then
4080
4081
4082 if $TRUEPRG; then
4083   HAVE_IRIX_OS_TRUE=
4084   HAVE_IRIX_OS_FALSE='#'
4085 else
4086   HAVE_IRIX_OS_TRUE='#'
4087   HAVE_IRIX_OS_FALSE=
4088 fi
4089         cat >>confdefs.h <<\_ACEOF
4090 #define HAVE_IRIX_OS 1
4091 _ACEOF
4092
4093 else
4094
4095
4096 if $FALSEPRG; then
4097   HAVE_IRIX_OS_TRUE=
4098   HAVE_IRIX_OS_FALSE='#'
4099 else
4100   HAVE_IRIX_OS_TRUE='#'
4101   HAVE_IRIX_OS_FALSE=
4102 fi
4103 fi
4104
4105 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4106 then
4107
4108
4109 if $TRUEPRG; then
4110   HAVE_DARWIN_OS_TRUE=
4111   HAVE_DARWIN_OS_FALSE='#'
4112 else
4113   HAVE_DARWIN_OS_TRUE='#'
4114   HAVE_DARWIN_OS_FALSE=
4115 fi
4116     cat >>confdefs.h <<\_ACEOF
4117 #define HAVE_DARWIN_OS 1
4118 _ACEOF
4119
4120 else
4121
4122
4123 if $FALSEPRG; then
4124   HAVE_DARWIN_OS_TRUE=
4125   HAVE_DARWIN_OS_FALSE='#'
4126 else
4127   HAVE_DARWIN_OS_TRUE='#'
4128   HAVE_DARWIN_OS_FALSE=
4129 fi
4130 fi
4131
4132 echo "$as_me:$LINENO: result: \" \"" >&5
4133 echo "${ECHO_T}\" \"" >&6
4134
4135
4136 # -----------------------------------------------------------
4137 # ----------------------------------------------------------
4138 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4139 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4140 if test "x$DISTNAME" != "x"
4141 then
4142         echo "distname set to $DISTNAME"
4143 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4144 then
4145         DISTNAME=alpha
4146 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4147 then
4148         DISTNAME=aix
4149 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4150 then
4151         DISTNAME=hpux
4152 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4153 then
4154         DISTNAME=solaris
4155 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4156 then
4157         DISTNAME=freebsd
4158 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4159 then
4160         DISTNAME=netbsd
4161 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4162 then
4163         DISTNAME=openbsd
4164 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4165 then
4166         DISTNAME=irix
4167 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4168 then
4169         DISTNAME=bsdi
4170 elif test -f /etc/SuSE-release
4171 then
4172         DISTNAME=suse
4173 elif test -d /etc/SuSEconfig
4174 then
4175         DISTNAME=suse5
4176 elif test -f /etc/mandrake-release
4177 then
4178         DISTNAME=mandrake
4179 elif test -f /etc/redhat-release
4180 then
4181         DISTNAME=redhat
4182 elif test -f /etc/gentoo-release
4183 then
4184         DISTNAME=gentoo
4185 elif test -f /etc/debian_version
4186 then
4187         DISTNAME=debian
4188 elif test -f /etc/slackware-version
4189 then
4190         DISTNAME=slackware
4191 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4192 then
4193     DISTNAME=darwin
4194 elif test -f /etc/engarde-version
4195 then
4196         DISTNAME=engarde
4197 elif test "$CYGWIN" = yes
4198 then
4199         DISTNAME=cygwin
4200         cat >>confdefs.h <<\_ACEOF
4201 #define HAVE_CYGWIN 1
4202 _ACEOF
4203
4204 else
4205         DISTNAME=unknown
4206 fi
4207 echo "$as_me:$LINENO: result: \" \"" >&5
4208 echo "${ECHO_T}\" \"" >&6
4209
4210
4211 # -----------------------------------------------------------
4212 # ----------------------------------------------------------
4213
4214
4215
4216 if false; then
4217   INSIDE_GNOME_COMMON_TRUE=
4218   INSIDE_GNOME_COMMON_FALSE='#'
4219 else
4220   INSIDE_GNOME_COMMON_TRUE='#'
4221   INSIDE_GNOME_COMMON_FALSE=
4222 fi
4223
4224         test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4225
4226         for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4227
4228
4229 # ------------------------------------------------------------------
4230 #  If the user has not set --prefix, we set our default to nothing.
4231 #  In this case, if the user has not set --sysconfdir, we set it
4232 #  to the package default of /etc/bacula.  If either --prefix or
4233 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
4234 # ------------------------------------------------------------------
4235 if test x${prefix} = xNONE ; then
4236     if test `eval echo ${sysconfdir}` = NONE/etc ; then
4237         sysconfdir=/etc/bacula
4238     fi
4239     prefix=
4240 fi
4241 sysconfdir=`eval echo ${sysconfdir}`
4242
4243 # -------------------------------------------------------------------------
4244 #  If the user has not set --exec-prefix, we default to ${prefix}
4245 # -------------------------------------------------------------------------
4246 if test x${exec_prefix} = xNONE ; then
4247     exec_prefix=${prefix}
4248 fi
4249
4250 # ------------------------------------------------------------------
4251 # If the user has not set --sbindir, we set our default as /sbin
4252 # ------------------------------------------------------------------
4253 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4254     sbindir=${exec_prefix}/sbin
4255 fi
4256 sbindir=`eval echo ${sbindir}`
4257
4258 # ------------------------------------------------------------------
4259 # All list of languages for which a translation exist. Each
4260 #  language is separated by a space.
4261 # ------------------------------------------------------------------
4262 ALL_LINGUAS=""
4263
4264 for ac_prog in msgfmt
4265 do
4266   # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_path_MSGFMT+set}" = set; then
4271   echo $ECHO_N "(cached) $ECHO_C" >&6
4272 else
4273   case $MSGFMT in
4274   [\\/]* | ?:[\\/]*)
4275   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4276   ;;
4277   *)
4278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281   IFS=$as_save_IFS
4282   test -z "$as_dir" && as_dir=.
4283   for ac_exec_ext in '' $ac_executable_extensions; do
4284   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4286     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287     break 2
4288   fi
4289 done
4290 done
4291
4292   ;;
4293 esac
4294 fi
4295 MSGFMT=$ac_cv_path_MSGFMT
4296
4297 if test -n "$MSGFMT"; then
4298   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4299 echo "${ECHO_T}$MSGFMT" >&6
4300 else
4301   echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4303 fi
4304
4305   test -n "$MSGFMT" && break
4306 done
4307 test -n "$MSGFMT" || MSGFMT="no"
4308
4309 if test "$MSGFMT" = "no"
4310 then
4311    echo 'msgfmt program not found, disabling NLS !'
4312    USE_NLS=no
4313    USE_INCLUDED_LIBINTL=no
4314 #else
4315 #   AM_GNU_GETTEXT
4316 fi
4317
4318
4319 support_mysql=no
4320 support_sqlite=no
4321 support_postgresql=no
4322 support_smartalloc=yes
4323 support_readline=no
4324 support_conio=yes
4325 support_gnome=no
4326 gnome_version=
4327 support_static_tools=no
4328 support_static_fd=no
4329 support_static_sd=no
4330 support_static_dir=no
4331 support_static_cons=no
4332 build_client_only=no
4333 cats=
4334 db_name=Internal
4335 DB_NAME=bdb
4336
4337
4338 # -------------------------------------------
4339 # gnome (default off)
4340 # -------------------------------------------
4341 # Check whether --enable-gnome or --disable-gnome was given.
4342 if test "${enable_gnome+set}" = set; then
4343   enableval="$enable_gnome"
4344   if test x$enableval = xyes; then
4345     support_gnome=yes
4346   fi
4347 fi;
4348
4349 GNOME_DIR=
4350 if test x$support_gnome = xyes; then
4351   abc=`$PKGCONFIG --exists libgnomeui-2.0`
4352   pkg=$?
4353   if test $pkg = 0; then
4354      GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4355      GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4356      GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4357      GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4358
4359
4360
4361
4362      GNOME_DIR=src/gnome2-console
4363      gnome_version="Version 2.x"
4364   else
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4377 if test "${with_gnome_includes+set}" = set; then
4378   withval="$with_gnome_includes"
4379
4380         CFLAGS="$CFLAGS -I$withval"
4381
4382 fi;
4383
4384
4385 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4386 if test "${with_gnome_libs+set}" = set; then
4387   withval="$with_gnome_libs"
4388
4389         LDFLAGS="$LDFLAGS -L$withval"
4390         gnome_prefix=$withval
4391
4392 fi;
4393
4394
4395 # Check whether --with-gnome or --without-gnome was given.
4396 if test "${with_gnome+set}" = set; then
4397   withval="$with_gnome"
4398   if test x$withval = xyes; then
4399                         want_gnome=yes
4400                                                                         :
4401                 else
4402                         if test "x$withval" = xno; then
4403                                 want_gnome=no
4404                         else
4405                                 want_gnome=yes
4406                                 LDFLAGS="$LDFLAGS -L$withval/lib"
4407                                 CFLAGS="$CFLAGS -I$withval/include"
4408                                 gnome_prefix=$withval/lib
4409                         fi
4410                 fi
4411 else
4412   want_gnome=yes
4413 fi;
4414
4415         if test "x$want_gnome" = xyes; then
4416
4417             # Extract the first word of "gnome-config", so it can be a program name with args.
4418 set dummy gnome-config; ac_word=$2
4419 echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4422   echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424   case $GNOME_CONFIG in
4425   [\\/]* | ?:[\\/]*)
4426   ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4427   ;;
4428   *)
4429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4431 do
4432   IFS=$as_save_IFS
4433   test -z "$as_dir" && as_dir=.
4434   for ac_exec_ext in '' $ac_executable_extensions; do
4435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436     ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438     break 2
4439   fi
4440 done
4441 done
4442
4443   test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4444   ;;
4445 esac
4446 fi
4447 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4448
4449 if test -n "$GNOME_CONFIG"; then
4450   echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4451 echo "${ECHO_T}$GNOME_CONFIG" >&6
4452 else
4453   echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6
4455 fi
4456
4457             if test "$GNOME_CONFIG" = "no"; then
4458               no_gnome_config="yes"
4459             else
4460               echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4461 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4462               if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4463                 echo "$as_me:$LINENO: result: yes" >&5
4464 echo "${ECHO_T}yes" >&6
4465
4466
4467         # Extract the first word of "orbit-config", so it can be a program name with args.
4468 set dummy orbit-config; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4472   echo $ECHO_N "(cached) $ECHO_C" >&6
4473 else
4474   case $ORBIT_CONFIG in
4475   [\\/]* | ?:[\\/]*)
4476   ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4477   ;;
4478   *)
4479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482   IFS=$as_save_IFS
4483   test -z "$as_dir" && as_dir=.
4484   for ac_exec_ext in '' $ac_executable_extensions; do
4485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486     ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488     break 2
4489   fi
4490 done
4491 done
4492
4493   test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4494   ;;
4495 esac
4496 fi
4497 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4498
4499 if test -n "$ORBIT_CONFIG"; then
4500   echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4501 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4502 else
4503   echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4505 fi
4506
4507         # Extract the first word of "orbit-idl", so it can be a program name with args.
4508 set dummy orbit-idl; ac_word=$2
4509 echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4511 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   case $ORBIT_IDL in
4515   [\\/]* | ?:[\\/]*)
4516   ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4517   ;;
4518   *)
4519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   test -z "$as_dir" && as_dir=.
4524   for ac_exec_ext in '' $ac_executable_extensions; do
4525   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526     ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528     break 2
4529   fi
4530 done
4531 done
4532
4533   test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4534   ;;
4535 esac
4536 fi
4537 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4538
4539 if test -n "$ORBIT_IDL"; then
4540   echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4541 echo "${ECHO_T}$ORBIT_IDL" >&6
4542 else
4543   echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4545 fi
4546
4547         echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4548 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4549 if test "${gnome_cv_orbit_found+set}" = set; then
4550   echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552
4553                 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4554                         gnome_cv_orbit_found=no
4555                 else
4556                         gnome_cv_orbit_found=yes
4557                 fi
4558
4559 fi
4560 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4561 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4562
4563
4564 if test x$gnome_cv_orbit_found = xyes; then
4565   HAVE_ORBIT_TRUE=
4566   HAVE_ORBIT_FALSE='#'
4567 else
4568   HAVE_ORBIT_TRUE='#'
4569   HAVE_ORBIT_FALSE=
4570 fi
4571         if test x$gnome_cv_orbit_found = xyes; then
4572
4573                 ORBIT_CFLAGS=`orbit-config --cflags client server`
4574                 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4575
4576
4577         else
4578                 if test xfail = xfailure; then
4579                         { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4580 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4581    { (exit 1); exit 1; }; }
4582                 fi
4583         fi
4584
4585         echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4586 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4587 if test "${gnome_cv_gnorba_found+set}" = set; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590
4591                 gnome_cv_gnorba_found=no
4592                 if test x$gnome_cv_orbit_found = xyes; then
4593                         GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4594                         GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4595                         if test -n "$GNORBA_LIBS"; then
4596                                 gnome_cv_gnorba_found=yes
4597                         fi
4598                 fi
4599
4600 fi
4601 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4602 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4603
4604
4605 if test x$gnome_cv_gnorba_found = xyes; then
4606   HAVE_GNORBA_TRUE=
4607   HAVE_GNORBA_FALSE='#'
4608 else
4609   HAVE_GNORBA_TRUE='#'
4610   HAVE_GNORBA_FALSE=
4611 fi
4612         if test x$gnome_cv_orbit_found = xyes; then
4613
4614                 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4615                 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4616
4617
4618         else
4619                 if test xfail = xfailure; then
4620                         { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4621 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4622    { (exit 1); exit 1; }; }
4623                 fi
4624         fi
4625
4626                 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4627                 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4628                 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4629                 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4630                 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4631                 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4632                 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4633
4634               else
4635                 echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4637                 no_gnome_config="yes"
4638               fi
4639             fi
4640
4641             if test x$exec_prefix = xNONE; then
4642                 if test x$prefix = xNONE; then
4643                     gnome_prefix=$ac_default_prefix/lib
4644                 else
4645                     gnome_prefix=$prefix/lib
4646                 fi
4647             else
4648                 gnome_prefix=`eval echo \`echo $libdir\``
4649             fi
4650
4651             if test "$no_gnome_config" = "yes"; then
4652               echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4653 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4654               if test -f $gnome_prefix/gnomeConf.sh; then
4655                 echo "$as_me:$LINENO: result: found" >&5
4656 echo "${ECHO_T}found" >&6
4657                 echo "loading gnome configuration from" \
4658                      "$gnome_prefix/gnomeConf.sh"
4659                 . $gnome_prefix/gnomeConf.sh
4660
4661               else
4662                 echo "$as_me:$LINENO: result: not found" >&5
4663 echo "${ECHO_T}not found" >&6
4664                 if test xfail = xfail; then
4665                   { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4666 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4667    { (exit 1); exit 1; }; }
4668                 fi
4669               fi
4670             fi
4671         fi
4672
4673         if test -n ""; then
4674           n=""
4675           for i in $n; do
4676             echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4677 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4678             case $i in
4679               applets)
4680
4681                 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4682                 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4683 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4684               docklets)
4685
4686                 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4687                 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4688 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4689               capplet)
4690
4691                 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4692                 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4693 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4694               *)
4695                 echo "$as_me:$LINENO: result: unknown library" >&5
4696 echo "${ECHO_T}unknown library" >&6
4697             esac
4698             EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4699             GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4700           done
4701         fi
4702
4703
4704      GNOME_DIR=src/gnome-console
4705      gnome_version="Version 1.4"
4706   fi
4707 fi
4708
4709
4710
4711 # -------------------------------------------
4712 # smartalloc (default off)
4713 # -------------------------------------------
4714 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4715 if test "${enable_smartalloc+set}" = set; then
4716   enableval="$enable_smartalloc"
4717   if test x$enableval = xno; then
4718     support_smartalloc=no
4719   fi
4720 fi;
4721
4722 if test x$support_smartalloc = xyes; then
4723    cat >>confdefs.h <<\_ACEOF
4724 #define SMARTALLOC 1
4725 _ACEOF
4726
4727 fi
4728
4729 # -------------------------------------------
4730 # static-tools (default off)
4731 # -------------------------------------------
4732 # Check whether --enable-static-tools or --disable-static-tools was given.
4733 if test "${enable_static_tools+set}" = set; then
4734   enableval="$enable_static_tools"
4735   if test x$enableval = xyes; then
4736      support_static_tools=yes
4737    fi
4738 fi;
4739
4740 TTOOL_LDFLAGS=
4741 if test x$support_static_tools = xyes; then
4742    TTOOL_LDFLAGS="-static"
4743 fi
4744
4745
4746 # -------------------------------------------
4747 # static-fd    (default off)
4748 # -------------------------------------------
4749 # Check whether --enable-static-fd or --disable-static-fd was given.
4750 if test "${enable_static_fd+set}" = set; then
4751   enableval="$enable_static_fd"
4752   if test x$enableval = xyes; then
4753      support_static_fd=yes
4754    fi
4755 fi;
4756
4757 STATIC_FD=
4758 if test x$support_static_fd = xyes; then
4759    STATIC_FD="static-bacula-fd"
4760 fi
4761
4762
4763 # -------------------------------------------
4764 # static-sd    (default off)
4765 # -------------------------------------------
4766 # Check whether --enable-static-sd or --disable-static-sd was given.
4767 if test "${enable_static_sd+set}" = set; then
4768   enableval="$enable_static_sd"
4769   if test x$enableval = xyes; then
4770      support_static_sd=yes
4771    fi
4772 fi;
4773
4774 STATIC_SD=
4775 if test x$support_static_sd = xyes; then
4776    STATIC_SD="static-bacula-sd"
4777 fi
4778
4779
4780 # -------------------------------------------
4781 # static-dir   (default off)
4782 # -------------------------------------------
4783 # Check whether --enable-static-dir or --disable-static-dir was given.
4784 if test "${enable_static_dir+set}" = set; then
4785   enableval="$enable_static_dir"
4786   if test x$enableval = xyes; then
4787      support_static_dir=yes
4788    fi
4789 fi;
4790
4791 STATIC_DIR=
4792 if test x$support_static_dir = xyes; then
4793    STATIC_DIR="static-bacula-dir"
4794 fi
4795
4796
4797 # -------------------------------------------
4798 # static-cons  (default off)
4799 # -------------------------------------------
4800 # Check whether --enable-static-cons or --disable-static-cons was given.
4801 if test "${enable_static_cons+set}" = set; then
4802   enableval="$enable_static_cons"
4803   if test x$enableval = xyes; then
4804      support_static_cons=yes
4805    fi
4806 fi;
4807
4808 STATIC_CONS=
4809 if test x$support_static_cons = xyes; then
4810    STATIC_CONS="static-bconsole"
4811 fi
4812
4813
4814 # -------------------------------------------
4815 # client_only  (default off)
4816 # -------------------------------------------
4817 # Check whether --enable-client-only or --disable-client-only was given.
4818 if test "${enable_client_only+set}" = set; then
4819   enableval="$enable_client_only"
4820   if test x$enableval = xyes; then
4821      build_client_only=yes
4822    fi
4823 fi;
4824 if test x$build_client_only = xno; then
4825    ALL_DIRS="subdirs"
4826 else
4827    ALL_DIRS=""
4828 fi
4829
4830
4831 # ---------------------------------------------------
4832 # Check for conio (Bacula readline substitute)(
4833 # ---------------------------------------------------
4834 # this allows you to turn it completely off
4835 # Check whether --enable-conio or --disable-conio was given.
4836 if test "${enable_conio+set}" = set; then
4837   enableval="$enable_conio"
4838   if test x$enableval = xno; then
4839     support_conio=no
4840   fi
4841 fi;
4842
4843 got_conio="no"
4844 if test x$support_conio = xyes; then
4845    CONS_OBJ="conio.o"
4846    CONS_SRC="conio.c"
4847    got_conio="yes"
4848    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4850 if test "${ac_cv_header_stdc+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   cat >conftest.$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4855 /* confdefs.h.  */
4856 _ACEOF
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h.  */
4860 #include <stdlib.h>
4861 #include <stdarg.h>
4862 #include <string.h>
4863 #include <float.h>
4864
4865 int
4866 main ()
4867 {
4868
4869   ;
4870   return 0;
4871 }
4872 _ACEOF
4873 rm -f conftest.$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875   (eval $ac_compile) 2>&5
4876   ac_status=$?
4877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878   (exit $ac_status); } &&
4879          { ac_try='test -s conftest.$ac_objext'
4880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881   (eval $ac_try) 2>&5
4882   ac_status=$?
4883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); }; }; then
4885   ac_cv_header_stdc=yes
4886 else
4887   echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4889
4890 ac_cv_header_stdc=no
4891 fi
4892 rm -f conftest.$ac_objext conftest.$ac_ext
4893
4894 if test $ac_cv_header_stdc = yes; then
4895   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4896   cat >conftest.$ac_ext <<_ACEOF
4897 #line $LINENO "configure"
4898 /* confdefs.h.  */
4899 _ACEOF
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h.  */
4903 #include <string.h>
4904
4905 _ACEOF
4906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4907   $EGREP "memchr" >/dev/null 2>&1; then
4908   :
4909 else
4910   ac_cv_header_stdc=no
4911 fi
4912 rm -f conftest*
4913
4914 fi
4915
4916 if test $ac_cv_header_stdc = yes; then
4917   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4918   cat >conftest.$ac_ext <<_ACEOF
4919 #line $LINENO "configure"
4920 /* confdefs.h.  */
4921 _ACEOF
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h.  */
4925 #include <stdlib.h>
4926
4927 _ACEOF
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929   $EGREP "free" >/dev/null 2>&1; then
4930   :
4931 else
4932   ac_cv_header_stdc=no
4933 fi
4934 rm -f conftest*
4935
4936 fi
4937
4938 if test $ac_cv_header_stdc = yes; then
4939   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4940   if test "$cross_compiling" = yes; then
4941   :
4942 else
4943   cat >conftest.$ac_ext <<_ACEOF
4944 #line $LINENO "configure"
4945 /* confdefs.h.  */
4946 _ACEOF
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h.  */
4950 #include <ctype.h>
4951 #if ((' ' & 0x0FF) == 0x020)
4952 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4953 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4954 #else
4955 # define ISLOWER(c) \
4956                    (('a' <= (c) && (c) <= 'i') \
4957                      || ('j' <= (c) && (c) <= 'r') \
4958                      || ('s' <= (c) && (c) <= 'z'))
4959 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4960 #endif
4961
4962 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4963 int
4964 main ()
4965 {
4966   int i;
4967   for (i = 0; i < 256; i++)
4968     if (XOR (islower (i), ISLOWER (i))
4969         || toupper (i) != TOUPPER (i))
4970       exit(2);
4971   exit (0);
4972 }
4973 _ACEOF
4974 rm -f conftest$ac_exeext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4976   (eval $ac_link) 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981   (eval $ac_try) 2>&5
4982   ac_status=$?
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); }; }; then
4985   :
4986 else
4987   echo "$as_me: program exited with status $ac_status" >&5
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991 ( exit $ac_status )
4992 ac_cv_header_stdc=no
4993 fi
4994 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4995 fi
4996 fi
4997 fi
4998 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4999 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5000 if test $ac_cv_header_stdc = yes; then
5001
5002 cat >>confdefs.h <<\_ACEOF
5003 #define STDC_HEADERS 1
5004 _ACEOF
5005
5006 fi
5007
5008 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5019                   inttypes.h stdint.h unistd.h
5020 do
5021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5022 echo "$as_me:$LINENO: checking for $ac_header" >&5
5023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5025   echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027   cat >conftest.$ac_ext <<_ACEOF
5028 #line $LINENO "configure"
5029 /* confdefs.h.  */
5030 _ACEOF
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h.  */
5034 $ac_includes_default
5035
5036 #include <$ac_header>
5037 _ACEOF
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040   (eval $ac_compile) 2>&5
5041   ac_status=$?
5042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043   (exit $ac_status); } &&
5044          { ac_try='test -s conftest.$ac_objext'
5045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046   (eval $ac_try) 2>&5
5047   ac_status=$?
5048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049   (exit $ac_status); }; }; then
5050   eval "$as_ac_Header=yes"
5051 else
5052   echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5054
5055 eval "$as_ac_Header=no"
5056 fi
5057 rm -f conftest.$ac_objext conftest.$ac_ext
5058 fi
5059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5062   cat >>confdefs.h <<_ACEOF
5063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5064 _ACEOF
5065
5066 fi
5067
5068 done
5069
5070
5071
5072 for ac_header in termcap.h
5073 do
5074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5076   echo "$as_me:$LINENO: checking for $ac_header" >&5
5077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5079   echo $ECHO_N "(cached) $ECHO_C" >&6
5080 fi
5081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5083 else
5084   # Is the header compilable?
5085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5087 cat >conftest.$ac_ext <<_ACEOF
5088 #line $LINENO "configure"
5089 /* confdefs.h.  */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h.  */
5094 $ac_includes_default
5095 #include <$ac_header>
5096 _ACEOF
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099   (eval $ac_compile) 2>&5
5100   ac_status=$?
5101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); } &&
5103          { ac_try='test -s conftest.$ac_objext'
5104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105   (eval $ac_try) 2>&5
5106   ac_status=$?
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); }; }; then
5109   ac_header_compiler=yes
5110 else
5111   echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114 ac_header_compiler=no
5115 fi
5116 rm -f conftest.$ac_objext conftest.$ac_ext
5117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5118 echo "${ECHO_T}$ac_header_compiler" >&6
5119
5120 # Is the header present?
5121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5123 cat >conftest.$ac_ext <<_ACEOF
5124 #line $LINENO "configure"
5125 /* confdefs.h.  */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h.  */
5130 #include <$ac_header>
5131 _ACEOF
5132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5133   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5134   ac_status=$?
5135   grep -v '^ *+' conftest.er1 >conftest.err
5136   rm -f conftest.er1
5137   cat conftest.err >&5
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); } >/dev/null; then
5140   if test -s conftest.err; then
5141     ac_cpp_err=$ac_c_preproc_warn_flag
5142   else
5143     ac_cpp_err=
5144   fi
5145 else
5146   ac_cpp_err=yes
5147 fi
5148 if test -z "$ac_cpp_err"; then
5149   ac_header_preproc=yes
5150 else
5151   echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5153
5154   ac_header_preproc=no
5155 fi
5156 rm -f conftest.err conftest.$ac_ext
5157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5158 echo "${ECHO_T}$ac_header_preproc" >&6
5159
5160 # So?  What about this header?
5161 case $ac_header_compiler:$ac_header_preproc in
5162   yes:no )
5163     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5167     (
5168       cat <<\_ASBOX
5169 ## ------------------------------------ ##
5170 ## Report this to bug-autoconf@gnu.org. ##
5171 ## ------------------------------------ ##
5172 _ASBOX
5173     ) |
5174       sed "s/^/$as_me: WARNING:     /" >&2
5175     ;;
5176   no:yes )
5177     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5179     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5183     (
5184       cat <<\_ASBOX
5185 ## ------------------------------------ ##
5186 ## Report this to bug-autoconf@gnu.org. ##
5187 ## ------------------------------------ ##
5188 _ASBOX
5189     ) |
5190       sed "s/^/$as_me: WARNING:     /" >&2
5191     ;;
5192 esac
5193 echo "$as_me:$LINENO: checking for $ac_header" >&5
5194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5196   echo $ECHO_N "(cached) $ECHO_C" >&6
5197 else
5198   eval "$as_ac_Header=$ac_header_preproc"
5199 fi
5200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5202
5203 fi
5204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5205   cat >>confdefs.h <<_ACEOF
5206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5207 _ACEOF
5208
5209 fi
5210
5211 done
5212
5213    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5214 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5215 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218   ac_check_lib_save_LIBS=$LIBS
5219 LIBS="-ltermcap  $LIBS"
5220 cat >conftest.$ac_ext <<_ACEOF
5221 #line $LINENO "configure"
5222 /* confdefs.h.  */
5223 _ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h.  */
5227
5228 /* Override any gcc2 internal prototype to avoid an error.  */
5229 #ifdef __cplusplus
5230 extern "C"
5231 #endif
5232 /* We use char because int might match the return type of a gcc2
5233    builtin and then its argument prototype would still apply.  */
5234 char tgetent ();
5235 int
5236 main ()
5237 {
5238 tgetent ();
5239   ;
5240   return 0;
5241 }
5242 _ACEOF
5243 rm -f conftest.$ac_objext conftest$ac_exeext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5245   (eval $ac_link) 2>&5
5246   ac_status=$?
5247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248   (exit $ac_status); } &&
5249          { ac_try='test -s conftest$ac_exeext'
5250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251   (eval $ac_try) 2>&5
5252   ac_status=$?
5253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254   (exit $ac_status); }; }; then
5255   ac_cv_lib_termcap_tgetent=yes
5256 else
5257   echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260 ac_cv_lib_termcap_tgetent=no
5261 fi
5262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5263 LIBS=$ac_check_lib_save_LIBS
5264 fi
5265 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5266 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5267 if test $ac_cv_lib_termcap_tgetent = yes; then
5268   CONS_LIBS="-ltermcap"
5269 fi
5270
5271    support_readline=no
5272
5273 cat >>confdefs.h <<\_ACEOF
5274 #define HAVE_CONIO 1
5275 _ACEOF
5276
5277 fi
5278
5279
5280 # ---------------------------------------------------
5281 # Check for readline support/directory (default off)
5282 # ---------------------------------------------------
5283 # this allows you to turn it completely off
5284 # Check whether --enable-readline or --disable-readline was given.
5285 if test "${enable_readline+set}" = set; then
5286   enableval="$enable_readline"
5287   if test x$enableval = xno; then
5288     support_readline=no
5289   fi
5290 fi;
5291
5292 got_readline="no"
5293 READLINE_SRC=
5294 if test x$support_readline = xyes; then
5295
5296 # Check whether --with-readline or --without-readline was given.
5297 if test "${with_readline+set}" = set; then
5298   withval="$with_readline"
5299
5300         case "$with_readline" in
5301         no) : ;;
5302         yes|*)
5303           if test "$with_readline" != "yes"; then
5304             CONS_INC="-I${with_readline}"
5305             CONS_LDFLAGS="-L$with_readline"
5306           else
5307              with_readline="/usr/include/readline"
5308           fi
5309           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5311   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5312 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 fi
5316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5318 else
5319   # Is the header compilable?
5320 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5321 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5322 cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329 $ac_includes_default
5330 #include <${with_readline}/readline.h>
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334   (eval $ac_compile) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); } &&
5338          { ac_try='test -s conftest.$ac_objext'
5339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340   (eval $ac_try) 2>&5
5341   ac_status=$?
5342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343   (exit $ac_status); }; }; then
5344   ac_header_compiler=yes
5345 else
5346   echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5348
5349 ac_header_compiler=no
5350 fi
5351 rm -f conftest.$ac_objext conftest.$ac_ext
5352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5353 echo "${ECHO_T}$ac_header_compiler" >&6
5354
5355 # Is the header present?
5356 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5357 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5360 /* confdefs.h.  */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h.  */
5365 #include <${with_readline}/readline.h>
5366 _ACEOF
5367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5368   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5369   ac_status=$?
5370   grep -v '^ *+' conftest.er1 >conftest.err
5371   rm -f conftest.er1
5372   cat conftest.err >&5
5373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374   (exit $ac_status); } >/dev/null; then
5375   if test -s conftest.err; then
5376     ac_cpp_err=$ac_c_preproc_warn_flag
5377   else
5378     ac_cpp_err=
5379   fi
5380 else
5381   ac_cpp_err=yes
5382 fi
5383 if test -z "$ac_cpp_err"; then
5384   ac_header_preproc=yes
5385 else
5386   echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5388
5389   ac_header_preproc=no
5390 fi
5391 rm -f conftest.err conftest.$ac_ext
5392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5393 echo "${ECHO_T}$ac_header_preproc" >&6
5394
5395 # So?  What about this header?
5396 case $ac_header_compiler:$ac_header_preproc in
5397   yes:no )
5398     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5399 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5400     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5401 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5402     (
5403       cat <<\_ASBOX
5404 ## ------------------------------------ ##
5405 ## Report this to bug-autoconf@gnu.org. ##
5406 ## ------------------------------------ ##
5407 _ASBOX
5408     ) |
5409       sed "s/^/$as_me: WARNING:     /" >&2
5410     ;;
5411   no:yes )
5412     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5413 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5414     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5415 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5416     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5417 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5418     (
5419       cat <<\_ASBOX
5420 ## ------------------------------------ ##
5421 ## Report this to bug-autoconf@gnu.org. ##
5422 ## ------------------------------------ ##
5423 _ASBOX
5424     ) |
5425       sed "s/^/$as_me: WARNING:     /" >&2
5426     ;;
5427 esac
5428 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5429 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5431   echo $ECHO_N "(cached) $ECHO_C" >&6
5432 else
5433   eval "$as_ac_Header=$ac_header_preproc"
5434 fi
5435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5437
5438 fi
5439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5440    cat >>confdefs.h <<\_ACEOF
5441 #define HAVE_READLINE 1
5442 _ACEOF
5443
5444                CONS_LIBS="-lreadline -ltermcap"
5445                got_readline="yes"
5446
5447 else
5448    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5449 echo "$as_me: error: *** readline library missing" >&2;}
5450    { (exit 1); exit 1; }; }
5451
5452
5453 fi
5454
5455
5456           ;;
5457         esac
5458
5459 else
5460
5461        # check for standard readline library
5462        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5463   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5464 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5465 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5466   echo $ECHO_N "(cached) $ECHO_C" >&6
5467 fi
5468 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5469 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5470 else
5471   # Is the header compilable?
5472 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5473 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5474 cat >conftest.$ac_ext <<_ACEOF
5475 #line $LINENO "configure"
5476 /* confdefs.h.  */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h.  */
5481 $ac_includes_default
5482 #include </usr/include/readline/readline.h>
5483 _ACEOF
5484 rm -f conftest.$ac_objext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5486   (eval $ac_compile) 2>&5
5487   ac_status=$?
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); } &&
5490          { ac_try='test -s conftest.$ac_objext'
5491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492   (eval $ac_try) 2>&5
5493   ac_status=$?
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); }; }; then
5496   ac_header_compiler=yes
5497 else
5498   echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5500
5501 ac_header_compiler=no
5502 fi
5503 rm -f conftest.$ac_objext conftest.$ac_ext
5504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5505 echo "${ECHO_T}$ac_header_compiler" >&6
5506
5507 # Is the header present?
5508 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5509 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5510 cat >conftest.$ac_ext <<_ACEOF
5511 #line $LINENO "configure"
5512 /* confdefs.h.  */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h.  */
5517 #include </usr/include/readline/readline.h>
5518 _ACEOF
5519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5520   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5521   ac_status=$?
5522   grep -v '^ *+' conftest.er1 >conftest.err
5523   rm -f conftest.er1
5524   cat conftest.err >&5
5525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526   (exit $ac_status); } >/dev/null; then
5527   if test -s conftest.err; then
5528     ac_cpp_err=$ac_c_preproc_warn_flag
5529   else
5530     ac_cpp_err=
5531   fi
5532 else
5533   ac_cpp_err=yes
5534 fi
5535 if test -z "$ac_cpp_err"; then
5536   ac_header_preproc=yes
5537 else
5538   echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5540
5541   ac_header_preproc=no
5542 fi
5543 rm -f conftest.err conftest.$ac_ext
5544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5545 echo "${ECHO_T}$ac_header_preproc" >&6
5546
5547 # So?  What about this header?
5548 case $ac_header_compiler:$ac_header_preproc in
5549   yes:no )
5550     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5551 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5552     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5553 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5554     (
5555       cat <<\_ASBOX
5556 ## ------------------------------------ ##
5557 ## Report this to bug-autoconf@gnu.org. ##
5558 ## ------------------------------------ ##
5559 _ASBOX
5560     ) |
5561       sed "s/^/$as_me: WARNING:     /" >&2
5562     ;;
5563   no:yes )
5564     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5565 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5566     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5567 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5568     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5569 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5570     (
5571       cat <<\_ASBOX
5572 ## ------------------------------------ ##
5573 ## Report this to bug-autoconf@gnu.org. ##
5574 ## ------------------------------------ ##
5575 _ASBOX
5576     ) |
5577       sed "s/^/$as_me: WARNING:     /" >&2
5578     ;;
5579 esac
5580 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5581 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5582 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5586 fi
5587 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5588 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5589
5590 fi
5591 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5592    cat >>confdefs.h <<\_ACEOF
5593 #define HAVE_READLINE 1
5594 _ACEOF
5595
5596            got_readline="yes"
5597            CONS_INC="-I/usr/include/readline"
5598            CONS_LIBS="-lreadline -ltermcap"
5599
5600 else
5601
5602            # Did not find standard library, so try Bacula's default
5603             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5605   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5606 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5608   echo $ECHO_N "(cached) $ECHO_C" >&6
5609 fi
5610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5612 else
5613   # Is the header compilable?
5614 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5615 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5616 cat >conftest.$ac_ext <<_ACEOF
5617 #line $LINENO "configure"
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 <${TOP_DIR}/depkgs/readline/readline.h>
5625 _ACEOF
5626 rm -f conftest.$ac_objext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628   (eval $ac_compile) 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); } &&
5632          { ac_try='test -s conftest.$ac_objext'
5633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634   (eval $ac_try) 2>&5
5635   ac_status=$?
5636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637   (exit $ac_status); }; }; then
5638   ac_header_compiler=yes
5639 else
5640   echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5642
5643 ac_header_compiler=no
5644 fi
5645 rm -f conftest.$ac_objext conftest.$ac_ext
5646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5647 echo "${ECHO_T}$ac_header_compiler" >&6
5648
5649 # Is the header present?
5650 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5651 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5652 cat >conftest.$ac_ext <<_ACEOF
5653 #line $LINENO "configure"
5654 /* confdefs.h.  */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h.  */
5659 #include <${TOP_DIR}/depkgs/readline/readline.h>
5660 _ACEOF
5661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5662   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5663   ac_status=$?
5664   grep -v '^ *+' conftest.er1 >conftest.err
5665   rm -f conftest.er1
5666   cat conftest.err >&5
5667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668   (exit $ac_status); } >/dev/null; then
5669   if test -s conftest.err; then
5670     ac_cpp_err=$ac_c_preproc_warn_flag
5671   else
5672     ac_cpp_err=
5673   fi
5674 else
5675   ac_cpp_err=yes
5676 fi
5677 if test -z "$ac_cpp_err"; then
5678   ac_header_preproc=yes
5679 else
5680   echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5682
5683   ac_header_preproc=no
5684 fi
5685 rm -f conftest.err conftest.$ac_ext
5686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5687 echo "${ECHO_T}$ac_header_preproc" >&6
5688
5689 # So?  What about this header?
5690 case $ac_header_compiler:$ac_header_preproc in
5691   yes:no )
5692     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5693 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5694     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5695 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5696     (
5697       cat <<\_ASBOX
5698 ## ------------------------------------ ##
5699 ## Report this to bug-autoconf@gnu.org. ##
5700 ## ------------------------------------ ##
5701 _ASBOX
5702     ) |
5703       sed "s/^/$as_me: WARNING:     /" >&2
5704     ;;
5705   no:yes )
5706     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5707 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5708     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5709 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5710     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5711 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5712     (
5713       cat <<\_ASBOX
5714 ## ------------------------------------ ##
5715 ## Report this to bug-autoconf@gnu.org. ##
5716 ## ------------------------------------ ##
5717 _ASBOX
5718     ) |
5719       sed "s/^/$as_me: WARNING:     /" >&2
5720     ;;
5721 esac
5722 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5723 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5725   echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727   eval "$as_ac_Header=$ac_header_preproc"
5728 fi
5729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5731
5732 fi
5733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5734    cat >>confdefs.h <<\_ACEOF
5735 #define HAVE_READLINE 1
5736 _ACEOF
5737
5738                  got_readline="yes"
5739                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
5740                  CONS_LIBS="-lreadline -lhistory -ltermcap"
5741                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5742                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5743
5744 else
5745    { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5746 echo "$as_me: error: *** readline library missing" >&2;}
5747    { (exit 1); exit 1; }; }
5748
5749
5750 fi
5751
5752
5753
5754
5755 fi
5756
5757
5758
5759
5760 fi;
5761 fi
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 # Minimal stuff for readline Makefile configuration
5773 MAKE_SHELL=/bin/sh
5774
5775
5776 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5777 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5778 if test "${ac_cv_header_stat_broken+set}" = set; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   cat >conftest.$ac_ext <<_ACEOF
5782 #line $LINENO "configure"
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788 #include <sys/types.h>
5789 #include <sys/stat.h>
5790
5791 #if defined(S_ISBLK) && defined(S_IFDIR)
5792 # if S_ISBLK (S_IFDIR)
5793 You lose.
5794 # endif
5795 #endif
5796
5797 #if defined(S_ISBLK) && defined(S_IFCHR)
5798 # if S_ISBLK (S_IFCHR)
5799 You lose.
5800 # endif
5801 #endif
5802
5803 #if defined(S_ISLNK) && defined(S_IFREG)
5804 # if S_ISLNK (S_IFREG)
5805 You lose.
5806 # endif
5807 #endif
5808
5809 #if defined(S_ISSOCK) && defined(S_IFREG)
5810 # if S_ISSOCK (S_IFREG)
5811 You lose.
5812 # endif
5813 #endif
5814
5815 _ACEOF
5816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5817   $EGREP "You lose" >/dev/null 2>&1; then
5818   ac_cv_header_stat_broken=yes
5819 else
5820   ac_cv_header_stat_broken=no
5821 fi
5822 rm -f conftest*
5823
5824 fi
5825 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5826 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5827 if test $ac_cv_header_stat_broken = yes; then
5828
5829 cat >>confdefs.h <<\_ACEOF
5830 #define STAT_MACROS_BROKEN 1
5831 _ACEOF
5832
5833 fi
5834
5835
5836
5837
5838
5839
5840 ac_header_dirent=no
5841 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5842   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5843 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5844 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5850 /* confdefs.h.  */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h.  */
5855 #include <sys/types.h>
5856 #include <$ac_hdr>
5857
5858 int
5859 main ()
5860 {
5861 if ((DIR *) 0)
5862 return 0;
5863   ;
5864   return 0;
5865 }
5866 _ACEOF
5867 rm -f conftest.$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869   (eval $ac_compile) 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); } &&
5873          { ac_try='test -s conftest.$ac_objext'
5874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875   (eval $ac_try) 2>&5
5876   ac_status=$?
5877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878   (exit $ac_status); }; }; then
5879   eval "$as_ac_Header=yes"
5880 else
5881   echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5883
5884 eval "$as_ac_Header=no"
5885 fi
5886 rm -f conftest.$ac_objext conftest.$ac_ext
5887 fi
5888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5891   cat >>confdefs.h <<_ACEOF
5892 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5893 _ACEOF
5894
5895 ac_header_dirent=$ac_hdr; break
5896 fi
5897
5898 done
5899 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5900 if test $ac_header_dirent = dirent.h; then
5901   echo "$as_me:$LINENO: checking for library containing opendir" >&5
5902 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5903 if test "${ac_cv_search_opendir+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   ac_func_search_save_LIBS=$LIBS
5907 ac_cv_search_opendir=no
5908 cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5910 /* confdefs.h.  */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h.  */
5915
5916 /* Override any gcc2 internal prototype to avoid an error.  */
5917 #ifdef __cplusplus
5918 extern "C"
5919 #endif
5920 /* We use char because int might match the return type of a gcc2
5921    builtin and then its argument prototype would still apply.  */
5922 char opendir ();
5923 int
5924 main ()
5925 {
5926 opendir ();
5927   ;
5928   return 0;
5929 }
5930 _ACEOF
5931 rm -f conftest.$ac_objext conftest$ac_exeext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5933   (eval $ac_link) 2>&5
5934   ac_status=$?
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); } &&
5937          { ac_try='test -s conftest$ac_exeext'
5938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939   (eval $ac_try) 2>&5
5940   ac_status=$?
5941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942   (exit $ac_status); }; }; then
5943   ac_cv_search_opendir="none required"
5944 else
5945   echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5947
5948 fi
5949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5950 if test "$ac_cv_search_opendir" = no; then
5951   for ac_lib in dir; do
5952     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5953     cat >conftest.$ac_ext <<_ACEOF
5954 #line $LINENO "configure"
5955 /* confdefs.h.  */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h.  */
5960
5961 /* Override any gcc2 internal prototype to avoid an error.  */
5962 #ifdef __cplusplus
5963 extern "C"
5964 #endif
5965 /* We use char because int might match the return type of a gcc2
5966    builtin and then its argument prototype would still apply.  */
5967 char opendir ();
5968 int
5969 main ()
5970 {
5971 opendir ();
5972   ;
5973   return 0;
5974 }
5975 _ACEOF
5976 rm -f conftest.$ac_objext conftest$ac_exeext
5977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5978   (eval $ac_link) 2>&5
5979   ac_status=$?
5980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); } &&
5982          { ac_try='test -s conftest$ac_exeext'
5983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984   (eval $ac_try) 2>&5
5985   ac_status=$?
5986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987   (exit $ac_status); }; }; then
5988   ac_cv_search_opendir="-l$ac_lib"
5989 break
5990 else
5991   echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5993
5994 fi
5995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5996   done
5997 fi
5998 LIBS=$ac_func_search_save_LIBS
5999 fi
6000 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6001 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6002 if test "$ac_cv_search_opendir" != no; then
6003   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6004
6005 fi
6006
6007 else
6008   echo "$as_me:$LINENO: checking for library containing opendir" >&5
6009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6010 if test "${ac_cv_search_opendir+set}" = set; then
6011   echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013   ac_func_search_save_LIBS=$LIBS
6014 ac_cv_search_opendir=no
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 /* confdefs.h.  */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h.  */
6022
6023 /* Override any gcc2 internal prototype to avoid an error.  */
6024 #ifdef __cplusplus
6025 extern "C"
6026 #endif
6027 /* We use char because int might match the return type of a gcc2
6028    builtin and then its argument prototype would still apply.  */
6029 char opendir ();
6030 int
6031 main ()
6032 {
6033 opendir ();
6034   ;
6035   return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040   (eval $ac_link) 2>&5
6041   ac_status=$?
6042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043   (exit $ac_status); } &&
6044          { ac_try='test -s conftest$ac_exeext'
6045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046   (eval $ac_try) 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; }; then
6050   ac_cv_search_opendir="none required"
6051 else
6052   echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 fi
6056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057 if test "$ac_cv_search_opendir" = no; then
6058   for ac_lib in x; do
6059     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6060     cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6062 /* confdefs.h.  */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h.  */
6067
6068 /* Override any gcc2 internal prototype to avoid an error.  */
6069 #ifdef __cplusplus
6070 extern "C"
6071 #endif
6072 /* We use char because int might match the return type of a gcc2
6073    builtin and then its argument prototype would still apply.  */
6074 char opendir ();
6075 int
6076 main ()
6077 {
6078 opendir ();
6079   ;
6080   return 0;
6081 }
6082 _ACEOF
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085   (eval $ac_link) 2>&5
6086   ac_status=$?
6087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088   (exit $ac_status); } &&
6089          { ac_try='test -s conftest$ac_exeext'
6090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091   (eval $ac_try) 2>&5
6092   ac_status=$?
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); }; }; then
6095   ac_cv_search_opendir="-l$ac_lib"
6096 break
6097 else
6098   echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 fi
6102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6103   done
6104 fi
6105 LIBS=$ac_func_search_save_LIBS
6106 fi
6107 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6108 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6109 if test "$ac_cv_search_opendir" != no; then
6110   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6111
6112 fi
6113
6114 fi
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6126 do
6127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6128 echo "$as_me:$LINENO: checking for $ac_func" >&5
6129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6130 if eval "test \"\${$as_ac_var+set}\" = set"; then
6131   echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133   cat >conftest.$ac_ext <<_ACEOF
6134 #line $LINENO "configure"
6135 /* confdefs.h.  */
6136 _ACEOF
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h.  */
6140 /* System header to define __stub macros and hopefully few prototypes,
6141     which can conflict with char $ac_func (); below.
6142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6143     <limits.h> exists even on freestanding compilers.  */
6144 #ifdef __STDC__
6145 # include <limits.h>
6146 #else
6147 # include <assert.h>
6148 #endif
6149 /* Override any gcc2 internal prototype to avoid an error.  */
6150 #ifdef __cplusplus
6151 extern "C"
6152 {
6153 #endif
6154 /* We use char because int might match the return type of a gcc2
6155    builtin and then its argument prototype would still apply.  */
6156 char $ac_func ();
6157 /* The GNU C library defines this for functions which it implements
6158     to always fail with ENOSYS.  Some functions are actually named
6159     something starting with __ and the normal name is an alias.  */
6160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6161 choke me
6162 #else
6163 char (*f) () = $ac_func;
6164 #endif
6165 #ifdef __cplusplus
6166 }
6167 #endif
6168
6169 int
6170 main ()
6171 {
6172 return f != $ac_func;
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext conftest$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179   (eval $ac_link) 2>&5
6180   ac_status=$?
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); } &&
6183          { ac_try='test -s conftest$ac_exeext'
6184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185   (eval $ac_try) 2>&5
6186   ac_status=$?
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); }; }; then
6189   eval "$as_ac_var=yes"
6190 else
6191   echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 eval "$as_ac_var=no"
6195 fi
6196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6197 fi
6198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6200 if test `eval echo '${'$as_ac_var'}'` = yes; then
6201   cat >>confdefs.h <<_ACEOF
6202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6203 _ACEOF
6204
6205 fi
6206 done
6207
6208
6209 for ac_func in nanosleep
6210 do
6211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6212 echo "$as_me:$LINENO: checking for $ac_func" >&5
6213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6214 if eval "test \"\${$as_ac_var+set}\" = set"; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   cat >conftest.$ac_ext <<_ACEOF
6218 #line $LINENO "configure"
6219 /* confdefs.h.  */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h.  */
6224 /* System header to define __stub macros and hopefully few prototypes,
6225     which can conflict with char $ac_func (); below.
6226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6227     <limits.h> exists even on freestanding compilers.  */
6228 #ifdef __STDC__
6229 # include <limits.h>
6230 #else
6231 # include <assert.h>
6232 #endif
6233 /* Override any gcc2 internal prototype to avoid an error.  */
6234 #ifdef __cplusplus
6235 extern "C"
6236 {
6237 #endif
6238 /* We use char because int might match the return type of a gcc2
6239    builtin and then its argument prototype would still apply.  */
6240 char $ac_func ();
6241 /* The GNU C library defines this for functions which it implements
6242     to always fail with ENOSYS.  Some functions are actually named
6243     something starting with __ and the normal name is an alias.  */
6244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6245 choke me
6246 #else
6247 char (*f) () = $ac_func;
6248 #endif
6249 #ifdef __cplusplus
6250 }
6251 #endif
6252
6253 int
6254 main ()
6255 {
6256 return f != $ac_func;
6257   ;
6258   return 0;
6259 }
6260 _ACEOF
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6263   (eval $ac_link) 2>&5
6264   ac_status=$?
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } &&
6267          { ac_try='test -s conftest$ac_exeext'
6268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269   (eval $ac_try) 2>&5
6270   ac_status=$?
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); }; }; then
6273   eval "$as_ac_var=yes"
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 eval "$as_ac_var=no"
6279 fi
6280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6281 fi
6282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6284 if test `eval echo '${'$as_ac_var'}'` = yes; then
6285   cat >>confdefs.h <<_ACEOF
6286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6287 _ACEOF
6288
6289 fi
6290 done
6291
6292
6293
6294 for ac_header in varargs.h
6295 do
6296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6298   echo "$as_me:$LINENO: checking for $ac_header" >&5
6299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6301   echo $ECHO_N "(cached) $ECHO_C" >&6
6302 fi
6303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6305 else
6306   # Is the header compilable?
6307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6309 cat >conftest.$ac_ext <<_ACEOF
6310 #line $LINENO "configure"
6311 /* confdefs.h.  */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h.  */
6316 $ac_includes_default
6317 #include <$ac_header>
6318 _ACEOF
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321   (eval $ac_compile) 2>&5
6322   ac_status=$?
6323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324   (exit $ac_status); } &&
6325          { ac_try='test -s conftest.$ac_objext'
6326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6327   (eval $ac_try) 2>&5
6328   ac_status=$?
6329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330   (exit $ac_status); }; }; then
6331   ac_header_compiler=yes
6332 else
6333   echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6335
6336 ac_header_compiler=no
6337 fi
6338 rm -f conftest.$ac_objext conftest.$ac_ext
6339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6340 echo "${ECHO_T}$ac_header_compiler" >&6
6341
6342 # Is the header present?
6343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6345 cat >conftest.$ac_ext <<_ACEOF
6346 #line $LINENO "configure"
6347 /* confdefs.h.  */
6348 _ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h.  */
6352 #include <$ac_header>
6353 _ACEOF
6354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6355   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6356   ac_status=$?
6357   grep -v '^ *+' conftest.er1 >conftest.err
6358   rm -f conftest.er1
6359   cat conftest.err >&5
6360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); } >/dev/null; then
6362   if test -s conftest.err; then
6363     ac_cpp_err=$ac_c_preproc_warn_flag
6364   else
6365     ac_cpp_err=
6366   fi
6367 else
6368   ac_cpp_err=yes
6369 fi
6370 if test -z "$ac_cpp_err"; then
6371   ac_header_preproc=yes
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376   ac_header_preproc=no
6377 fi
6378 rm -f conftest.err conftest.$ac_ext
6379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6380 echo "${ECHO_T}$ac_header_preproc" >&6
6381
6382 # So?  What about this header?
6383 case $ac_header_compiler:$ac_header_preproc in
6384   yes:no )
6385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6389     (
6390       cat <<\_ASBOX
6391 ## ------------------------------------ ##
6392 ## Report this to bug-autoconf@gnu.org. ##
6393 ## ------------------------------------ ##
6394 _ASBOX
6395     ) |
6396       sed "s/^/$as_me: WARNING:     /" >&2
6397     ;;
6398   no:yes )
6399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6401     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6405     (
6406       cat <<\_ASBOX
6407 ## ------------------------------------ ##
6408 ## Report this to bug-autoconf@gnu.org. ##
6409 ## ------------------------------------ ##
6410 _ASBOX
6411     ) |
6412       sed "s/^/$as_me: WARNING:     /" >&2
6413     ;;
6414 esac
6415 echo "$as_me:$LINENO: checking for $ac_header" >&5
6416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418   echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420   eval "$as_ac_Header=$ac_header_preproc"
6421 fi
6422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6424
6425 fi
6426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6427   cat >>confdefs.h <<_ACEOF
6428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6429 _ACEOF
6430
6431 fi
6432
6433 done
6434
6435
6436 # End of readline/conio stuff
6437 # -----------------------------------------------------------------------
6438
6439
6440 # ---------------------------------------------------
6441 # Check for GMP support/directory
6442 # ---------------------------------------------------
6443 #GMP_SRC=
6444 #local_gmp="no"
6445 #AC_ARG_WITH(gmp,
6446 #  [  --with-gmp[=DIR]   Specify gmp library directory],
6447 #  [
6448 #     case "$with_gmp" in
6449 #     no) : ;;
6450 #     yes|*)
6451 #       if test "$with_gmp" != "yes"; then
6452 #         GMP_INC="-I$with_gmp"
6453 #         GMP_LIBS="-lgmp"
6454 #         GMP_LDFLAGS="-L$with_gmp"
6455 #       else
6456 #          with_gmp="/usr/include"
6457 #       fi
6458 #       AC_CHECK_HEADER($with_gmp/gmp.h,
6459 #          [ AC_MSG_RESULT(yes)
6460 #            AC_DEFINE(HAVE_GMP)
6461 #            GMP_LIBS="-lgmp"
6462 #            got_gmp="yes"
6463 #          ],
6464 #          [ AC_MSG_ERROR([*** gmp library missing])
6465 #          ]
6466 #       )
6467 #       ;;
6468 #     esac
6469 #  ],[
6470 #    # check for standard gmp library
6471 #    AC_CHECK_HEADER(/usr/include/gmp.h,
6472 #    [ AC_MSG_RESULT(yes)
6473 #      AC_DEFINE(HAVE_GMP)
6474 #      got_gmp="yes"
6475 #      GMP_INC=
6476 #      GMP_LIBS="-lgmp"
6477 #    ], [
6478 #      # Did not find standard library, so use our own
6479 #      AC_MSG_RESULT(yes)
6480 #      AC_DEFINE(HAVE_GMP)
6481 #      got_gmp="yes"
6482 #      local_gmp="yes"
6483 #      GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6484 #      GMP_LIBS="-lgmp"
6485 #      GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6486 #      GMP_SRC="${TOP_DIR}/depkgs/gmp"
6487 #    ])
6488 #  ]
6489 #)
6490 #AC_SUBST(GMP_INC)
6491 #AC_SUBST(GMP_LIBS)
6492 #AC_SUBST(GMP_LDFLAGS)
6493 #AC_SUBST(GMP_SRC)
6494
6495 # End of GMP stuff
6496 # -----------------------------------------------------------------------
6497
6498
6499 # ---------------------------------------------------
6500 # Check for CWEB support/directory
6501 # ---------------------------------------------------
6502 #CWEB_SRC=
6503 #CWEB=/bin
6504 #local_cweb="no"
6505 #AC_ARG_WITH(cweb,
6506 #  [  --with-cweb[=DIR]   Specify cweb library directory],
6507 #  [
6508 #     case "$with_cweb" in
6509 #     no) : ;;
6510 #     yes|*)
6511 #       if test "$with_cweb" != "yes"; then
6512 #         CWEB_INC="-I$with_cweb"
6513 #         CWEB_LIBS="-lcweb"
6514 #         CWEB_LDFLAGS="-L$with_cweb"
6515 #       else
6516 #          with_cweb="/usr/include"
6517 #       fi
6518 #       AC_CHECK_HEADER($with_cweb/cweb.h,
6519 #          [ AC_MSG_RESULT(yes)
6520 #            AC_DEFINE(HAVE_CWEB)
6521 #            CWEB_LIBS="-lcweb"
6522 #            got_cweb="yes"
6523 #          ],
6524 #          [ AC_MSG_ERROR([*** cweb library missing])
6525 #          ]
6526 #       )
6527 #       ;;
6528 #     esac
6529 #  ],[
6530 #    # check for standard cweb library
6531 #    AC_CHECK_HEADER(/usr/include/cweb.h,
6532 #    [ AC_MSG_RESULT(yes)
6533 #      AC_DEFINE(HAVE_CWEB)
6534 #      got_cweb="yes"
6535 #      CWEB_INC=
6536 #      CWEB_LIBS="-lcweb"
6537 #    ], [
6538 #      # Did not find starndard library, so use our own
6539 #      AC_MSG_RESULT(yes)
6540 #      AC_DEFINE(HAVE_CWEB)
6541 #      got_cweb="yes"
6542 #      local_cweb="yes"
6543 #      CWEB=${TOP_DIR}/depkgs/cweb
6544 #      CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6545 #      CWEB_LIBS="-lcweb"
6546 #      CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6547 #      CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6548 #    ])
6549 #  ]
6550 #)
6551 #AC_SUBST(CWEB)
6552 #AC_SUBST(CWEB_INC)
6553 #AC_SUBST(CWEB_LIBS)
6554 #AC_SUBST(CWEB_LDFLAGS)
6555 #AC_SUBST(CWEB_SRC)
6556
6557 # End of CWEB stuff
6558 # -----------------------------------------------------------------------
6559
6560
6561
6562 # -----------------------------------------------------------
6563 # Check whether user wants TCP wrappers support (default off)
6564 # -----------------------------------------------------------
6565 TCPW_MSG="no"
6566
6567 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6568 if test "${with_tcp_wrappers+set}" = set; then
6569   withval="$with_tcp_wrappers"
6570
6571     if test "x$withval" != "xno" ; then
6572        saved_LIBS="$LIBS"
6573        LIBS="$saved_LIBS -lwrap"
6574        echo "$as_me:$LINENO: checking for libwrap" >&5
6575 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6576        cat >conftest.$ac_ext <<_ACEOF
6577 #line $LINENO "configure"
6578 /* confdefs.h.  */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h.  */
6583  #include <tcpd.h>
6584              int deny_severity = 0;
6585              int allow_severity = 0;
6586              struct request_info *req;
6587 int
6588 main ()
6589 {
6590  hosts_access(req);
6591   ;
6592   return 0;
6593 }
6594 _ACEOF
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597   (eval $ac_link) 2>&5
6598   ac_status=$?
6599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600   (exit $ac_status); } &&
6601          { ac_try='test -s conftest$ac_exeext'
6602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; }; then
6607
6608             echo "$as_me:$LINENO: result: yes" >&5
6609 echo "${ECHO_T}yes" >&6
6610             cat >>confdefs.h <<\_ACEOF
6611 #define HAVE_LIBWRAP 1
6612 _ACEOF
6613
6614             TCPW_MSG="yes"
6615
6616 else
6617   echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6619
6620
6621             LIBS="$saved_LIBS -lwrap -lnsl"
6622             cat >conftest.$ac_ext <<_ACEOF
6623 #line $LINENO "configure"
6624 /* confdefs.h.  */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h.  */
6629  #include <tcpd.h>
6630                  int deny_severity = 0;
6631                  int allow_severity = 0;
6632                  struct request_info *req;
6633 int
6634 main ()
6635 {
6636  hosts_access(req);
6637   ;
6638   return 0;
6639 }
6640 _ACEOF
6641 rm -f conftest.$ac_objext conftest$ac_exeext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643   (eval $ac_link) 2>&5
6644   ac_status=$?
6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646   (exit $ac_status); } &&
6647          { ac_try='test -s conftest$ac_exeext'
6648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649   (eval $ac_try) 2>&5
6650   ac_status=$?
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); }; }; then
6653
6654                  echo "$as_me:$LINENO: result: yes" >&5
6655 echo "${ECHO_T}yes" >&6
6656                  cat >>confdefs.h <<\_ACEOF
6657 #define HAVE_LIBWRAP 1
6658 _ACEOF
6659
6660                  TCPW_MSG="yes"
6661
6662 else
6663   echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6667 echo "$as_me: error: *** libwrap missing" >&2;}
6668    { (exit 1); exit 1; }; }
6669
6670 fi
6671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6672
6673 fi
6674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6675     fi
6676
6677
6678 fi;
6679
6680 # ------------------------------------------
6681 # Where to place working dir
6682 # ------------------------------------------
6683 working_dir=`eval echo ${sysconfdir}/working`
6684
6685 # Check whether --with-working-dir or --without-working-dir was given.
6686 if test "${with_working_dir+set}" = set; then
6687   withval="$with_working_dir"
6688
6689        if test "x$withval" != "xno" ; then
6690               working_dir=$withval
6691        fi
6692
6693
6694 fi;
6695
6696
6697
6698
6699 # ------------------------------------------
6700 # Where to place scriptdir (script files)
6701 # ------------------------------------------
6702 scriptdir=`eval echo ${sysconfdir}`
6703
6704 # Check whether --with-scriptdir or --without-scriptdir was given.
6705 if test "${with_scriptdir+set}" = set; then
6706   withval="$with_scriptdir"
6707
6708        if test "x$withval" != "xno" ; then
6709               scriptdir=$withval
6710        fi
6711
6712
6713 fi;
6714
6715
6716
6717
6718 # ------------------------------------------
6719 # Where to send dump email
6720 # ------------------------------------------
6721 dump_email=root@localhost
6722
6723 # Check whether --with-dump-email or --without-dump-email was given.
6724 if test "${with_dump_email+set}" = set; then
6725   withval="$with_dump_email"
6726
6727        if test "x$withval" != "xno" ; then
6728               dump_email=$withval
6729        fi
6730
6731
6732 fi;
6733
6734
6735
6736 # ------------------------------------------
6737 # Where to send job email
6738 # ------------------------------------------
6739 job_email=root@localhost
6740
6741 # Check whether --with-job-email or --without-job-email was given.
6742 if test "${with_job_email+set}" = set; then
6743   withval="$with_job_email"
6744
6745        if test "x$withval" != "xno" ; then
6746               job_email=$withval
6747        fi
6748
6749
6750 fi;
6751
6752
6753
6754 # ------------------------------------------
6755 # Where to find smtp host
6756 # ------------------------------------------
6757 smtp_host=localhost
6758
6759 # Check whether --with-smtp_host or --without-smtp_host was given.
6760 if test "${with_smtp_host+set}" = set; then
6761   withval="$with_smtp_host"
6762
6763        if test "x$withval" != "xno" ; then
6764               smtp_host=$withval
6765        fi
6766
6767
6768 fi;
6769
6770
6771
6772
6773 # ------------------------------------
6774 # Where to place pid files
6775 # ------------------------------------
6776 piddir=/var/run
6777
6778 # Check whether --with-pid-dir or --without-pid-dir was given.
6779 if test "${with_pid_dir+set}" = set; then
6780   withval="$with_pid_dir"
6781
6782         if test "x$withval" != "xno" ; then
6783             piddir=$withval
6784         fi
6785
6786
6787 fi;
6788
6789 cat >>confdefs.h <<_ACEOF
6790 #define _PATH_BACULA_PIDDIR "$piddir"
6791 _ACEOF
6792
6793
6794
6795
6796 # ------------------------------------
6797 # Where to place subsys "lock file"
6798 # ------------------------------------
6799 subsysdir=/var/run/subsys
6800
6801 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6802 if test "${with_subsys_dir+set}" = set; then
6803   withval="$with_subsys_dir"
6804
6805         if test "x$withval" != "xno" ; then
6806             subsysdir=$withval
6807         fi
6808
6809
6810 fi;
6811
6812
6813
6814
6815
6816 # ------------------------------------
6817 # Where to start assigning ports
6818 # ------------------------------------
6819 baseport=9101
6820
6821 # Check whether --with-baseport or --without-baseport was given.
6822 if test "${with_baseport+set}" = set; then
6823   withval="$with_baseport"
6824
6825         if test "x$withval" != "xno" ; then
6826              baseport=$withval
6827         fi
6828
6829
6830 fi;
6831
6832
6833 dir_port=`expr $baseport`
6834 fd_port=`expr $baseport + 1`
6835 sd_port=`expr $fd_port + 1`
6836
6837
6838
6839
6840
6841
6842 # ------------------------------------------
6843 # Generate passwords
6844 # ------------------------------------------
6845 dir_password=
6846
6847 # Check whether --with-dir-password or --without-dir-password was given.
6848 if test "${with_dir_password+set}" = set; then
6849   withval="$with_dir_password"
6850
6851        if test "x$withval" != "xno" ; then
6852            dir_password=$withval
6853        fi
6854
6855
6856 fi;
6857
6858 if test "x$dir_password" = "x" ; then
6859    if test "x$OPENSSL" = "xnone" ; then
6860 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6861       key=`autoconf/randpass 33`
6862    else
6863       key=`openssl rand -base64 33`
6864    fi
6865    dir_password=$key
6866 fi
6867
6868 fd_password=
6869
6870 # Check whether --with-fd-password or --without-fd-password was given.
6871 if test "${with_fd_password+set}" = set; then
6872   withval="$with_fd_password"
6873
6874        if test "x$withval" != "xno" ; then
6875            fd_password=$withval
6876        fi
6877
6878
6879 fi;
6880
6881 if test "x$fd_password" = "x" ; then
6882    if test "x$OPENSSL" = "xnone" ; then
6883 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6884       key=`autoconf/randpass 37`
6885    else
6886       key=`openssl rand -base64 33`
6887    fi
6888    fd_password=$key
6889 fi
6890
6891 sd_password=
6892
6893 # Check whether --with-sd-password or --without-sd-password was given.
6894 if test "${with_sd_password+set}" = set; then
6895   withval="$with_sd_password"
6896
6897        if test "x$withval" != "xno" ; then
6898            sd_password=$withval
6899        fi
6900
6901
6902 fi;
6903
6904 if test "x$sd_password" = "x" ; then
6905    if test "x$OPENSSL" = "xnone" ; then
6906 #     key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6907       key=`autoconf/randpass 41`
6908    else
6909       key=`openssl rand -base64 33`
6910    fi
6911    sd_password=$key
6912 fi
6913
6914
6915
6916
6917
6918
6919
6920 #
6921 # Handle users and groups for each daemon
6922 #
6923 dir_user=
6924
6925 # Check whether --with-dir_user or --without-dir_user was given.
6926 if test "${with_dir_user+set}" = set; then
6927   withval="$with_dir_user"
6928
6929         if test "x$withval" != "x" ; then
6930              dir_user=$withval
6931         fi
6932
6933
6934 fi;
6935
6936 dir_group=
6937
6938 # Check whether --with-dir_group or --without-dir_group was given.
6939 if test "${with_dir_group+set}" = set; then
6940   withval="$with_dir_group"
6941
6942         if test "x$withval" != "x" ; then
6943              dir_group=$withval
6944         fi
6945
6946
6947 fi;
6948
6949 sd_user=
6950
6951 # Check whether --with-sd_user or --without-sd_user was given.
6952 if test "${with_sd_user+set}" = set; then
6953   withval="$with_sd_user"
6954
6955         if test "x$withval" != "x" ; then
6956              sd_user=$withval
6957         fi
6958
6959
6960 fi;
6961
6962 sd_group=
6963
6964 # Check whether --with-sd_group or --without-sd_group was given.
6965 if test "${with_sd_group+set}" = set; then
6966   withval="$with_sd_group"
6967
6968         if test "x$withval" != "x" ; then
6969              sd_group=$withval
6970         fi
6971
6972
6973 fi;
6974
6975 fd_user=
6976
6977 # Check whether --with-fd_user or --without-fd_user was given.
6978 if test "${with_fd_user+set}" = set; then
6979   withval="$with_fd_user"
6980
6981         if test "x$withval" != "x" ; then
6982              fd_user=$withval
6983         fi
6984
6985
6986 fi;
6987
6988 fd_group=
6989
6990 # Check whether --with-fd_group or --without-fd_group was given.
6991 if test "${with_fd_group+set}" = set; then
6992   withval="$with_fd_group"
6993
6994         if test "x$withval" != "x" ; then
6995              fd_group=$withval
6996         fi
6997
6998
6999 fi;
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011 # ------------------------------------------------
7012 # Bacula check for various SQL database engines
7013 # ------------------------------------------------
7014 BA_CHECK_POSTGRESQL_DB
7015
7016
7017 db_found=no
7018 echo "$as_me:$LINENO: checking for MySQL support" >&5
7019 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7020
7021 # Check whether --with-mysql or --without-mysql was given.
7022 if test "${with_mysql+set}" = set; then
7023   withval="$with_mysql"
7024
7025   if test "$withval" != "no"; then
7026         if test "$withval" = "yes"; then
7027                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7028                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7029                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7030                         MYSQL_BINDIR=/usr/local/mysql/bin
7031                 elif test -f /usr/include/mysql/mysql.h; then
7032                         MYSQL_INCDIR=/usr/include/mysql
7033                         MYSQL_LIBDIR=/usr/lib/mysql
7034                         MYSQL_BINDIR=/usr/bin
7035                 elif test -f /usr/include/mysql.h; then
7036                         MYSQL_INCDIR=/usr/include
7037                         MYSQL_LIBDIR=/usr/lib
7038                         MYSQL_BINDIR=/usr/bin
7039                 elif test -f /usr/local/include/mysql/mysql.h; then
7040                         MYSQL_INCDIR=/usr/local/include/mysql
7041                         MYSQL_LIBDIR=/usr/local/lib/mysql
7042                         MYSQL_BINDIR=/usr/local/bin
7043                 elif test -f /usr/local/include/mysql.h; then
7044                         MYSQL_INCDIR=/usr/local/include
7045                         MYSQL_LIBDIR=/usr/local/lib
7046                         MYSQL_BINDIR=/usr/local/bin
7047                 else
7048                    echo "$as_me:$LINENO: result: no" >&5
7049 echo "${ECHO_T}no" >&6
7050                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7051 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7052    { (exit 1); exit 1; }; }
7053                 fi
7054         else
7055                 if test -f $withval/include/mysql/mysql.h; then
7056                         MYSQL_INCDIR=$withval/include/mysql
7057                         MYSQL_LIBDIR=$withval/lib/mysql
7058                         MYSQL_BINDIR=$withval/bin
7059                 elif test -f $withval/include/mysql.h; then
7060                         MYSQL_INCDIR=$withval/include
7061                         MYSQL_LIBDIR=$withval/lib
7062                         MYSQL_BINDIR=$withval/bin
7063                 else
7064                    echo "$as_me:$LINENO: result: no" >&5
7065 echo "${ECHO_T}no" >&6
7066                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7067 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7068    { (exit 1); exit 1; }; }
7069                 fi
7070         fi
7071     SQL_INCLUDE=-I$MYSQL_INCDIR
7072     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7073        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7074        cat >>confdefs.h <<\_ACEOF
7075 #define HAVE_THREAD_SAFE_MYSQL 1
7076 _ACEOF
7077
7078     else
7079        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7080     fi
7081     SQL_BINDIR=$MYSQL_BINDIR
7082
7083     cat >>confdefs.h <<\_ACEOF
7084 #define HAVE_MYSQL 1
7085 _ACEOF
7086
7087     echo "$as_me:$LINENO: result: yes" >&5
7088 echo "${ECHO_T}yes" >&6
7089     db_found=yes
7090     support_mysql=yes
7091     db_name=MySQL
7092     DB_NAME=mysql
7093
7094   else
7095         echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6
7097   fi
7098
7099 else
7100
7101     echo "$as_me:$LINENO: result: no" >&5
7102 echo "${ECHO_T}no" >&6
7103
7104 fi;
7105
7106
7107 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7108 if test "${with_embedded_mysql+set}" = set; then
7109   withval="$with_embedded_mysql"
7110
7111   if test "$withval" != "no"; then
7112         if test "$withval" = "yes"; then
7113                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7114                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
7115                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7116                         MYSQL_BINDIR=/usr/local/mysql/bin
7117                 elif test -f /usr/include/mysql/mysql.h; then
7118                         MYSQL_INCDIR=/usr/include/mysql
7119                         MYSQL_LIBDIR=/usr/lib/mysql
7120                         MYSQL_BINDIR=/usr/bin
7121                 elif test -f /usr/include/mysql.h; then
7122                         MYSQL_INCDIR=/usr/include
7123                         MYSQL_LIBDIR=/usr/lib
7124                         MYSQL_BINDIR=/usr/bin
7125                 elif test -f /usr/local/include/mysql/mysql.h; then
7126                         MYSQL_INCDIR=/usr/local/include/mysql
7127                         MYSQL_LIBDIR=/usr/local/lib/mysql
7128                         MYSQL_BINDIR=/usr/local/bin
7129                 elif test -f /usr/local/include/mysql.h; then
7130                         MYSQL_INCDIR=/usr/local/include
7131                         MYSQL_LIBDIR=/usr/local/lib
7132                         MYSQL_BINDIR=/usr/local/bin
7133                 else
7134                    echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6
7136                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7137 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7138    { (exit 1); exit 1; }; }
7139                 fi
7140         else
7141                 if test -f $withval/include/mysql/mysql.h; then
7142                         MYSQL_INCDIR=$withval/include/mysql
7143                         MYSQL_LIBDIR=$withval/lib/mysql
7144                         MYSQL_BINDIR=$withval/bin
7145                 elif test -f $withval/include/mysql.h; then
7146                         MYSQL_INCDIR=$withval/include
7147                         MYSQL_LIBDIR=$withval/lib
7148                         MYSQL_BINDIR=$withval/bin
7149                 else
7150                    echo "$as_me:$LINENO: result: no" >&5
7151 echo "${ECHO_T}no" >&6
7152                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7153 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7154    { (exit 1); exit 1; }; }
7155                 fi
7156         fi
7157     SQL_INCLUDE=-I$MYSQL_INCDIR
7158     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7159     SQL_BINDIR=$MYSQL_BINDIR
7160
7161     cat >>confdefs.h <<\_ACEOF
7162 #define HAVE_MYSQL 1
7163 _ACEOF
7164
7165     cat >>confdefs.h <<\_ACEOF
7166 #define HAVE_EMBEDDED_MYSQL 1
7167 _ACEOF
7168
7169     echo "$as_me:$LINENO: result: yes" >&5
7170 echo "${ECHO_T}yes" >&6
7171     db_found=yes
7172     support_mysql=yes
7173     db_name=MySQL
7174     DB_NAME=mysql
7175
7176   else
7177         echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6
7179   fi
7180
7181 else
7182
7183   echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6
7185
7186 fi;
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196 db_found=no
7197 echo "$as_me:$LINENO: checking for SQLite support" >&5
7198 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7199
7200 # Check whether --with-sqlite or --without-sqlite was given.
7201 if test "${with_sqlite+set}" = set; then
7202   withval="$with_sqlite"
7203
7204   if test "$withval" != "no"; then
7205         if test "$withval" = "yes"; then
7206                 if test -f /usr/local/include/sqlite.h; then
7207                         SQLITE_INCDIR=/usr/local/include
7208                         SQLITE_LIBDIR=/usr/local/lib
7209                         SQLITE_BINDIR=/usr/local/bin
7210                 elif test -f /usr/include/sqlite.h; then
7211                         SQLITE_INCDIR=/usr/include
7212                         SQLITE_LIBDIR=/usr/lib
7213                         SQLITE_BINDIR=/usr/bin
7214                 else
7215                    echo "$as_me:$LINENO: result: no" >&5
7216 echo "${ECHO_T}no" >&6
7217                    { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7218 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7219    { (exit 1); exit 1; }; }
7220                 fi
7221         else
7222                 if test -f $withval/sqlite.h; then
7223                         SQLITE_INCDIR=$withval
7224                         SQLITE_LIBDIR=$withval
7225                         SQLITE_BINDIR=$withval
7226                 else
7227                    echo "$as_me:$LINENO: result: no" >&5
7228 echo "${ECHO_T}no" >&6
7229                    { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7230 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7231    { (exit 1); exit 1; }; }
7232                 fi
7233         fi
7234     SQL_INCLUDE=-I$SQLITE_INCDIR
7235     SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7236     SQL_BINDIR=$SQLITE_BINDIR
7237
7238     cat >>confdefs.h <<\_ACEOF
7239 #define HAVE_SQLITE 1
7240 _ACEOF
7241
7242     echo "$as_me:$LINENO: result: yes" >&5
7243 echo "${ECHO_T}yes" >&6
7244     db_found=yes
7245     support_sqlite=yes
7246     db_name=SQLite
7247     DB_NAME=sqlite
7248
7249   else
7250         echo "$as_me:$LINENO: result: no" >&5
7251 echo "${ECHO_T}no" >&6
7252   fi
7253
7254 else
7255
7256   echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6
7258
7259 fi;
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269 cat >>confdefs.h <<\_ACEOF
7270 #define PROTOTYPES 1
7271 _ACEOF
7272
7273
7274 if test -z "$CFLAGS"; then
7275     if test -z "$CCOPTS"; then
7276         CCOPTS='-g -O2'
7277     fi
7278     CFLAGS="$CCOPTS"
7279 fi
7280
7281
7282
7283
7284 largefile_support="no"
7285
7286    # Check whether --enable-largefile or --disable-largefile was given.
7287 if test "${enable_largefile+set}" = set; then
7288   enableval="$enable_largefile"
7289
7290 fi;
7291    if test "$enable_largefile" != no; then
7292      if test -n "$ac_tool_prefix"; then
7293   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7295 echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7297 if test "${ac_cv_prog_GETCONF+set}" = set; then
7298   echo $ECHO_N "(cached) $ECHO_C" >&6
7299 else
7300   if test -n "$GETCONF"; then
7301   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306   IFS=$as_save_IFS
7307   test -z "$as_dir" && as_dir=.
7308   for ac_exec_ext in '' $ac_executable_extensions; do
7309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312     break 2
7313   fi
7314 done
7315 done
7316
7317 fi
7318 fi
7319 GETCONF=$ac_cv_prog_GETCONF
7320 if test -n "$GETCONF"; then
7321   echo "$as_me:$LINENO: result: $GETCONF" >&5
7322 echo "${ECHO_T}$GETCONF" >&6
7323 else
7324   echo "$as_me:$LINENO: result: no" >&5
7325 echo "${ECHO_T}no" >&6
7326 fi
7327
7328 fi
7329 if test -z "$ac_cv_prog_GETCONF"; then
7330   ac_ct_GETCONF=$GETCONF
7331   # Extract the first word of "getconf", so it can be a program name with args.
7332 set dummy getconf; ac_word=$2
7333 echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7335 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   if test -n "$ac_ct_GETCONF"; then
7339   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344   IFS=$as_save_IFS
7345   test -z "$as_dir" && as_dir=.
7346   for ac_exec_ext in '' $ac_executable_extensions; do
7347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348     ac_cv_prog_ac_ct_GETCONF="getconf"
7349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350     break 2
7351   fi
7352 done
7353 done
7354
7355 fi
7356 fi
7357 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7358 if test -n "$ac_ct_GETCONF"; then
7359   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7360 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7361 else
7362   echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6
7364 fi
7365
7366   GETCONF=$ac_ct_GETCONF
7367 else
7368   GETCONF="$ac_cv_prog_GETCONF"
7369 fi
7370
7371      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7372 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7373 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7374   echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7377         ac_cv_sys_largefile_CFLAGS=no
7378         case "$host_os" in
7379            # IRIX 6.2 and later require cc -n32.
7380            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7381              if test "$GCC" != yes; then
7382                ac_cv_sys_largefile_CFLAGS=-n32
7383              fi
7384              ac_save_CC="$CC"
7385              CC="$CC $ac_cv_sys_largefile_CFLAGS"
7386              cat >conftest.$ac_ext <<_ACEOF
7387 #line $LINENO "configure"
7388 /* confdefs.h.  */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h.  */
7393
7394 int
7395 main ()
7396 {
7397
7398   ;
7399   return 0;
7400 }
7401 _ACEOF
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7404   (eval $ac_link) 2>&5
7405   ac_status=$?
7406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407   (exit $ac_status); } &&
7408          { ac_try='test -s conftest$ac_exeext'
7409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410   (eval $ac_try) 2>&5
7411   ac_status=$?
7412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413   (exit $ac_status); }; }; then
7414   :
7415 else
7416   echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7418
7419 ac_cv_sys_largefile_CFLAGS=no
7420 fi
7421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7422              CC="$ac_save_CC"
7423            esac
7424       }
7425 fi
7426 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7427 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7428      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7429 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7430 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7431   echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7434         ac_cv_sys_largefile_LDFLAGS=no
7435
7436       }
7437 fi
7438 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7439 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7440      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7441 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7442 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7443   echo $ECHO_N "(cached) $ECHO_C" >&6
7444 else
7445   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7446         ac_cv_sys_largefile_LIBS=no
7447
7448       }
7449 fi
7450 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7451 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7452
7453      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7454        case "$ac_flag" in
7455        no) ;;
7456        -D_FILE_OFFSET_BITS=*) ;;
7457        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7458        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7459        -D?* | -I?*)
7460          case "$ac_flag" in
7461    no) ;;
7462    ?*)
7463      case "$CPPFLAGS" in
7464      '') CPPFLAGS="$ac_flag" ;;
7465      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7466      esac ;;
7467    esac ;;
7468        *)
7469          case "$ac_flag" in
7470    no) ;;
7471    ?*)
7472      case "$CFLAGS" in
7473      '') CFLAGS="$ac_flag" ;;
7474      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7475      esac ;;
7476    esac ;;
7477        esac
7478      done
7479      case "$ac_cv_sys_largefile_LDFLAGS" in
7480    no) ;;
7481    ?*)
7482      case "$LDFLAGS" in
7483      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7484      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7485      esac ;;
7486    esac
7487      case "$ac_cv_sys_largefile_LIBS" in
7488    no) ;;
7489    ?*)
7490      case "$LIBS" in
7491      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7492      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7493      esac ;;
7494    esac
7495      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7496 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7497 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7498   echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500   ac_cv_sys_file_offset_bits=no
7501       case "$host_os" in
7502         # HP-UX 10.20 and later
7503         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7504           ac_cv_sys_file_offset_bits=64 ;;
7505         esac
7506       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7507         case "$ac_flag" in
7508         -D_FILE_OFFSET_BITS)
7509           ac_cv_sys_file_offset_bits=1 ;;
7510         -D_FILE_OFFSET_BITS=*)
7511           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7512         esac
7513       done
7514
7515 fi
7516 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7517 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7518    if test "$ac_cv_sys_file_offset_bits" != no; then
7519
7520 cat >>confdefs.h <<_ACEOF
7521 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7522 _ACEOF
7523
7524    fi
7525      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7526 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7527 if test "${ac_cv_sys_largefile_source+set}" = set; then
7528   echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530   ac_cv_sys_largefile_source=no
7531       case "$host_os" in
7532         # HP-UX 10.20 and later
7533         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7534           ac_cv_sys_largefile_source=1 ;;
7535         esac
7536       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7537         case "$ac_flag" in
7538         -D_LARGEFILE_SOURCE)
7539           ac_cv_sys_largefile_source=1 ;;
7540         -D_LARGEFILE_SOURCE=*)
7541           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7542         esac
7543       done
7544
7545 fi
7546 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7547 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7548    if test "$ac_cv_sys_largefile_source" != no; then
7549
7550 cat >>confdefs.h <<_ACEOF
7551 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7552 _ACEOF
7553
7554    fi
7555      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7556 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7557 if test "${ac_cv_sys_large_files+set}" = set; then
7558   echo $ECHO_N "(cached) $ECHO_C" >&6
7559 else
7560   ac_cv_sys_large_files=no
7561       case "$host_os" in
7562         # AIX 4.2 and later
7563         aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7564           ac_cv_sys_large_files=1 ;;
7565         esac
7566       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7567         case "$ac_flag" in
7568         -D_LARGE_FILES)
7569           ac_cv_sys_large_files=1 ;;
7570         -D_LARGE_FILES=*)
7571           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7572         esac
7573       done
7574
7575 fi
7576 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7577 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7578    if test "$ac_cv_sys_large_files" != no; then
7579
7580 cat >>confdefs.h <<_ACEOF
7581 #define _LARGE_FILES $ac_cv_sys_large_files
7582 _ACEOF
7583
7584    fi
7585    fi
7586
7587
7588
7589 echo "$as_me:$LINENO: checking for X" >&5
7590 echo $ECHO_N "checking for X... $ECHO_C" >&6
7591
7592
7593 # Check whether --with-x or --without-x was given.
7594 if test "${with_x+set}" = set; then
7595   withval="$with_x"
7596
7597 fi;
7598 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7599 if test "x$with_x" = xno; then
7600   # The user explicitly disabled X.
7601   have_x=disabled
7602 else
7603   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7604     # Both variables are already set.
7605     have_x=yes
7606   else
7607     if test "${ac_cv_have_x+set}" = set; then
7608   echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610   # One or both of the vars are not set, and there is no cached value.
7611 ac_x_includes=no ac_x_libraries=no
7612 rm -fr conftest.dir
7613 if mkdir conftest.dir; then
7614   cd conftest.dir
7615   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7616   cat >Imakefile <<'_ACEOF'
7617 acfindx:
7618         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7619 _ACEOF
7620   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7621     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7622     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7623     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7624     for ac_extension in a so sl; do
7625       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7626          test -f $ac_im_libdir/libX11.$ac_extension; then
7627         ac_im_usrlibdir=$ac_im_libdir; break
7628       fi
7629     done
7630     # Screen out bogus values from the imake configuration.  They are
7631     # bogus both because they are the default anyway, and because
7632     # using them would break gcc on systems where it needs fixed includes.
7633     case $ac_im_incroot in
7634         /usr/include) ;;
7635         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7636     esac
7637     case $ac_im_usrlibdir in
7638         /usr/lib | /lib) ;;
7639         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7640     esac
7641   fi
7642   cd ..
7643   rm -fr conftest.dir
7644 fi
7645
7646 # Standard set of common directories for X headers.
7647 # Check X11 before X11Rn because it is often a symlink to the current release.
7648 ac_x_header_dirs='
7649 /usr/X11/include
7650 /usr/X11R6/include
7651 /usr/X11R5/include
7652 /usr/X11R4/include
7653
7654 /usr/include/X11
7655 /usr/include/X11R6
7656 /usr/include/X11R5
7657 /usr/include/X11R4
7658
7659 /usr/local/X11/include
7660 /usr/local/X11R6/include
7661 /usr/local/X11R5/include
7662 /usr/local/X11R4/include
7663
7664 /usr/local/include/X11
7665 /usr/local/include/X11R6
7666 /usr/local/include/X11R5
7667 /usr/local/include/X11R4
7668
7669 /usr/X386/include
7670 /usr/x386/include
7671 /usr/XFree86/include/X11
7672
7673 /usr/include
7674 /usr/local/include
7675 /usr/unsupported/include
7676 /usr/athena/include
7677 /usr/local/x11r5/include
7678 /usr/lpp/Xamples/include
7679
7680 /usr/openwin/include
7681 /usr/openwin/share/include'
7682
7683 if test "$ac_x_includes" = no; then
7684   # Guess where to find include files, by looking for Intrinsic.h.
7685   # First, try using that file with no special directory specified.
7686   cat >conftest.$ac_ext <<_ACEOF
7687 #line $LINENO "configure"
7688 /* confdefs.h.  */
7689 _ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h.  */
7693 #include <X11/Intrinsic.h>
7694 _ACEOF
7695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7696   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7697   ac_status=$?
7698   grep -v '^ *+' conftest.er1 >conftest.err
7699   rm -f conftest.er1
7700   cat conftest.err >&5
7701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702   (exit $ac_status); } >/dev/null; then
7703   if test -s conftest.err; then
7704     ac_cpp_err=$ac_c_preproc_warn_flag
7705   else
7706     ac_cpp_err=
7707   fi
7708 else
7709   ac_cpp_err=yes
7710 fi
7711 if test -z "$ac_cpp_err"; then
7712   # We can compile using X headers with no special include directory.
7713 ac_x_includes=
7714 else
7715   echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718   for ac_dir in $ac_x_header_dirs; do
7719   if test -r "$ac_dir/X11/Intrinsic.h"; then
7720     ac_x_includes=$ac_dir
7721     break
7722   fi
7723 done
7724 fi
7725 rm -f conftest.err conftest.$ac_ext
7726 fi # $ac_x_includes = no
7727
7728 if test "$ac_x_libraries" = no; then
7729   # Check for the libraries.
7730   # See if we find them without any special options.
7731   # Don't add to $LIBS permanently.
7732   ac_save_LIBS=$LIBS
7733   LIBS="-lXt $LIBS"
7734   cat >conftest.$ac_ext <<_ACEOF
7735 #line $LINENO "configure"
7736 /* confdefs.h.  */
7737 _ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h.  */
7741 #include <X11/Intrinsic.h>
7742 int
7743 main ()
7744 {
7745 XtMalloc (0)
7746   ;
7747   return 0;
7748 }
7749 _ACEOF
7750 rm -f conftest.$ac_objext conftest$ac_exeext
7751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7752   (eval $ac_link) 2>&5
7753   ac_status=$?
7754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755   (exit $ac_status); } &&
7756          { ac_try='test -s conftest$ac_exeext'
7757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758   (eval $ac_try) 2>&5
7759   ac_status=$?
7760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761   (exit $ac_status); }; }; then
7762   LIBS=$ac_save_LIBS
7763 # We can link X programs with no special library path.
7764 ac_x_libraries=
7765 else
7766   echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7768
7769 LIBS=$ac_save_LIBS
7770 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7771 do
7772   # Don't even attempt the hair of trying to link an X program!
7773   for ac_extension in a so sl; do
7774     if test -r $ac_dir/libXt.$ac_extension; then
7775       ac_x_libraries=$ac_dir
7776       break 2
7777     fi
7778   done
7779 done
7780 fi
7781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7782 fi # $ac_x_libraries = no
7783
7784 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7785   # Didn't find X anywhere.  Cache the known absence of X.
7786   ac_cv_have_x="have_x=no"
7787 else
7788   # Record where we found X for the cache.
7789   ac_cv_have_x="have_x=yes \
7790                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7791 fi
7792 fi
7793
7794   fi
7795   eval "$ac_cv_have_x"
7796 fi # $with_x != no
7797
7798 if test "$have_x" != yes; then
7799   echo "$as_me:$LINENO: result: $have_x" >&5
7800 echo "${ECHO_T}$have_x" >&6
7801   no_x=yes
7802 else
7803   # If each of the values was on the command line, it overrides each guess.
7804   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7805   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7806   # Update the cache value to reflect the command line values.
7807   ac_cv_have_x="have_x=yes \
7808                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7809   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7810 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7811 fi
7812
7813 if test "$no_x" = yes; then
7814   # Not all programs may use this symbol, but it does not hurt to define it.
7815
7816 cat >>confdefs.h <<\_ACEOF
7817 #define X_DISPLAY_MISSING 1
7818 _ACEOF
7819
7820   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7821 else
7822   if test -n "$x_includes"; then
7823     X_CFLAGS="$X_CFLAGS -I$x_includes"
7824   fi
7825
7826   # It would also be nice to do this for all -L options, not just this one.
7827   if test -n "$x_libraries"; then
7828     X_LIBS="$X_LIBS -L$x_libraries"
7829     # For Solaris; some versions of Sun CC require a space after -R and
7830     # others require no space.  Words are not sufficient . . . .
7831     case `(uname -sr) 2>/dev/null` in
7832     "SunOS 5"*)
7833       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7834 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7835       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7836       cat >conftest.$ac_ext <<_ACEOF
7837 #line $LINENO "configure"
7838 /* confdefs.h.  */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h.  */
7843
7844 int
7845 main ()
7846 {
7847
7848   ;
7849   return 0;
7850 }
7851 _ACEOF
7852 rm -f conftest.$ac_objext conftest$ac_exeext
7853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7854   (eval $ac_link) 2>&5
7855   ac_status=$?
7856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857   (exit $ac_status); } &&
7858          { ac_try='test -s conftest$ac_exeext'
7859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7860   (eval $ac_try) 2>&5
7861   ac_status=$?
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); }; }; then
7864   ac_R_nospace=yes
7865 else
7866   echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7868
7869 ac_R_nospace=no
7870 fi
7871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7872       if test $ac_R_nospace = yes; then
7873         echo "$as_me:$LINENO: result: no" >&5
7874 echo "${ECHO_T}no" >&6
7875         X_LIBS="$X_LIBS -R$x_libraries"
7876       else
7877         LIBS="$ac_xsave_LIBS -R $x_libraries"
7878         cat >conftest.$ac_ext <<_ACEOF
7879 #line $LINENO "configure"
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885
7886 int
7887 main ()
7888 {
7889
7890   ;
7891   return 0;
7892 }
7893 _ACEOF
7894 rm -f conftest.$ac_objext conftest$ac_exeext
7895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7896   (eval $ac_link) 2>&5
7897   ac_status=$?
7898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899   (exit $ac_status); } &&
7900          { ac_try='test -s conftest$ac_exeext'
7901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902   (eval $ac_try) 2>&5
7903   ac_status=$?
7904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905   (exit $ac_status); }; }; then
7906   ac_R_space=yes
7907 else
7908   echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7910
7911 ac_R_space=no
7912 fi
7913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7914         if test $ac_R_space = yes; then
7915           echo "$as_me:$LINENO: result: yes" >&5
7916 echo "${ECHO_T}yes" >&6
7917           X_LIBS="$X_LIBS -R $x_libraries"
7918         else
7919           echo "$as_me:$LINENO: result: neither works" >&5
7920 echo "${ECHO_T}neither works" >&6
7921         fi
7922       fi
7923       LIBS=$ac_xsave_LIBS
7924     esac
7925   fi
7926
7927   # Check for system-dependent libraries X programs must link with.
7928   # Do this before checking for the system-independent R6 libraries
7929   # (-lICE), since we may need -lsocket or whatever for X linking.
7930
7931   if test "$ISC" = yes; then
7932     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7933   else
7934     # Martyn Johnson says this is needed for Ultrix, if the X
7935     # libraries were built with DECnet support.  And Karl Berry says
7936     # the Alpha needs dnet_stub (dnet does not exist).
7937     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7938     cat >conftest.$ac_ext <<_ACEOF
7939 #line $LINENO "configure"
7940 /* confdefs.h.  */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h.  */
7945
7946 /* Override any gcc2 internal prototype to avoid an error.  */
7947 #ifdef __cplusplus
7948 extern "C"
7949 #endif
7950 /* We use char because int might match the return type of a gcc2
7951    builtin and then its argument prototype would still apply.  */
7952 char XOpenDisplay ();
7953 int
7954 main ()
7955 {
7956 XOpenDisplay ();
7957   ;
7958   return 0;
7959 }
7960 _ACEOF
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7963   (eval $ac_link) 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); } &&
7967          { ac_try='test -s conftest$ac_exeext'
7968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969   (eval $ac_try) 2>&5
7970   ac_status=$?
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); }; }; then
7973   :
7974 else
7975   echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7977
7978 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7979 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7980 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   ac_check_lib_save_LIBS=$LIBS
7984 LIBS="-ldnet  $LIBS"
7985 cat >conftest.$ac_ext <<_ACEOF
7986 #line $LINENO "configure"
7987 /* confdefs.h.  */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h.  */
7992
7993 /* Override any gcc2 internal prototype to avoid an error.  */
7994 #ifdef __cplusplus
7995 extern "C"
7996 #endif
7997 /* We use char because int might match the return type of a gcc2
7998    builtin and then its argument prototype would still apply.  */
7999 char dnet_ntoa ();
8000 int
8001 main ()
8002 {
8003 dnet_ntoa ();
8004   ;
8005   return 0;
8006 }
8007 _ACEOF
8008 rm -f conftest.$ac_objext conftest$ac_exeext
8009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8010   (eval $ac_link) 2>&5
8011   ac_status=$?
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); } &&
8014          { ac_try='test -s conftest$ac_exeext'
8015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016   (eval $ac_try) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); }; }; then
8020   ac_cv_lib_dnet_dnet_ntoa=yes
8021 else
8022   echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025 ac_cv_lib_dnet_dnet_ntoa=no
8026 fi
8027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8028 LIBS=$ac_check_lib_save_LIBS
8029 fi
8030 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8031 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8032 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8033   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8034 fi
8035
8036     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8037       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8038 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8039 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8040   echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042   ac_check_lib_save_LIBS=$LIBS
8043 LIBS="-ldnet_stub  $LIBS"
8044 cat >conftest.$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8046 /* confdefs.h.  */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h.  */
8051
8052 /* Override any gcc2 internal prototype to avoid an error.  */
8053 #ifdef __cplusplus
8054 extern "C"
8055 #endif
8056 /* We use char because int might match the return type of a gcc2
8057    builtin and then its argument prototype would still apply.  */
8058 char dnet_ntoa ();
8059 int
8060 main ()
8061 {
8062 dnet_ntoa ();
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 rm -f conftest.$ac_objext conftest$ac_exeext
8068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8069   (eval $ac_link) 2>&5
8070   ac_status=$?
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); } &&
8073          { ac_try='test -s conftest$ac_exeext'
8074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075   (eval $ac_try) 2>&5
8076   ac_status=$?
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); }; }; then
8079   ac_cv_lib_dnet_stub_dnet_ntoa=yes
8080 else
8081   echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8083
8084 ac_cv_lib_dnet_stub_dnet_ntoa=no
8085 fi
8086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8087 LIBS=$ac_check_lib_save_LIBS
8088 fi
8089 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8090 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8091 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8092   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8093 fi
8094
8095     fi
8096 fi
8097 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8098     LIBS="$ac_xsave_LIBS"
8099
8100     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8101     # to get the SysV transport functions.
8102     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8103     # needs -lnsl.
8104     # The nsl library prevents programs from opening the X display
8105     # on Irix 5.2, according to T.E. Dickey.
8106     # The functions gethostbyname, getservbyname, and inet_addr are
8107     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8108     echo "$as_me:$LINENO: checking for gethostbyname" >&5
8109 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8110 if test "${ac_cv_func_gethostbyname+set}" = set; then
8111   echo $ECHO_N "(cached) $ECHO_C" >&6
8112 else
8113   cat >conftest.$ac_ext <<_ACEOF
8114 #line $LINENO "configure"
8115 /* confdefs.h.  */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h.  */
8120 /* System header to define __stub macros and hopefully few prototypes,
8121     which can conflict with char gethostbyname (); below.
8122     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8123     <limits.h> exists even on freestanding compilers.  */
8124 #ifdef __STDC__
8125 # include <limits.h>
8126 #else
8127 # include <assert.h>
8128 #endif
8129 /* Override any gcc2 internal prototype to avoid an error.  */
8130 #ifdef __cplusplus
8131 extern "C"
8132 {
8133 #endif
8134 /* We use char because int might match the return type of a gcc2
8135    builtin and then its argument prototype would still apply.  */
8136 char gethostbyname ();
8137 /* The GNU C library defines this for functions which it implements
8138     to always fail with ENOSYS.  Some functions are actually named
8139     something starting with __ and the normal name is an alias.  */
8140 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8141 choke me
8142 #else
8143 char (*f) () = gethostbyname;
8144 #endif
8145 #ifdef __cplusplus
8146 }
8147 #endif
8148
8149 int
8150 main ()
8151 {
8152 return f != gethostbyname;
8153   ;
8154   return 0;
8155 }
8156 _ACEOF
8157 rm -f conftest.$ac_objext conftest$ac_exeext
8158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8159   (eval $ac_link) 2>&5
8160   ac_status=$?
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); } &&
8163          { ac_try='test -s conftest$ac_exeext'
8164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165   (eval $ac_try) 2>&5
8166   ac_status=$?
8167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); }; }; then
8169   ac_cv_func_gethostbyname=yes
8170 else
8171   echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8173
8174 ac_cv_func_gethostbyname=no
8175 fi
8176 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8177 fi
8178 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8179 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8180
8181     if test $ac_cv_func_gethostbyname = no; then
8182       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8183 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8184 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8185   echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187   ac_check_lib_save_LIBS=$LIBS
8188 LIBS="-lnsl  $LIBS"
8189 cat >conftest.$ac_ext <<_ACEOF
8190 #line $LINENO "configure"
8191 /* confdefs.h.  */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h.  */
8196
8197 /* Override any gcc2 internal prototype to avoid an error.  */
8198 #ifdef __cplusplus
8199 extern "C"
8200 #endif
8201 /* We use char because int might match the return type of a gcc2
8202    builtin and then its argument prototype would still apply.  */
8203 char gethostbyname ();
8204 int
8205 main ()
8206 {
8207 gethostbyname ();
8208   ;
8209   return 0;
8210 }
8211 _ACEOF
8212 rm -f conftest.$ac_objext conftest$ac_exeext
8213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8214   (eval $ac_link) 2>&5
8215   ac_status=$?
8216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217   (exit $ac_status); } &&
8218          { ac_try='test -s conftest$ac_exeext'
8219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220   (eval $ac_try) 2>&5
8221   ac_status=$?
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); }; }; then
8224   ac_cv_lib_nsl_gethostbyname=yes
8225 else
8226   echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8228
8229 ac_cv_lib_nsl_gethostbyname=no
8230 fi
8231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8232 LIBS=$ac_check_lib_save_LIBS
8233 fi
8234 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8235 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8236 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8237   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8238 fi
8239
8240       if test $ac_cv_lib_nsl_gethostbyname = no; then
8241         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8242 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8243 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8244   echo $ECHO_N "(cached) $ECHO_C" >&6
8245 else
8246   ac_check_lib_save_LIBS=$LIBS
8247 LIBS="-lbsd  $LIBS"
8248 cat >conftest.$ac_ext <<_ACEOF
8249 #line $LINENO "configure"
8250 /* confdefs.h.  */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h.  */
8255
8256 /* Override any gcc2 internal prototype to avoid an error.  */
8257 #ifdef __cplusplus
8258 extern "C"
8259 #endif
8260 /* We use char because int might match the return type of a gcc2
8261    builtin and then its argument prototype would still apply.  */
8262 char gethostbyname ();
8263 int
8264 main ()
8265 {
8266 gethostbyname ();
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 rm -f conftest.$ac_objext conftest$ac_exeext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8273   (eval $ac_link) 2>&5
8274   ac_status=$?
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); } &&
8277          { ac_try='test -s conftest$ac_exeext'
8278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279   (eval $ac_try) 2>&5
8280   ac_status=$?
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); }; }; then
8283   ac_cv_lib_bsd_gethostbyname=yes
8284 else
8285   echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8287
8288 ac_cv_lib_bsd_gethostbyname=no
8289 fi
8290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8291 LIBS=$ac_check_lib_save_LIBS
8292 fi
8293 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8294 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8295 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8296   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8297 fi
8298
8299       fi
8300     fi
8301
8302     # lieder@skyler.mavd.honeywell.com says without -lsocket,
8303     # socket/setsockopt and other routines are undefined under SCO ODT
8304     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
8305     # on later versions), says Simon Leinen: it contains gethostby*
8306     # variants that don't use the name server (or something).  -lsocket
8307     # must be given before -lnsl if both are needed.  We assume that
8308     # if connect needs -lnsl, so does gethostbyname.
8309     echo "$as_me:$LINENO: checking for connect" >&5
8310 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8311 if test "${ac_cv_func_connect+set}" = set; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 else
8314   cat >conftest.$ac_ext <<_ACEOF
8315 #line $LINENO "configure"
8316 /* confdefs.h.  */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h.  */
8321 /* System header to define __stub macros and hopefully few prototypes,
8322     which can conflict with char connect (); below.
8323     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8324     <limits.h> exists even on freestanding compilers.  */
8325 #ifdef __STDC__
8326 # include <limits.h>
8327 #else
8328 # include <assert.h>
8329 #endif
8330 /* Override any gcc2 internal prototype to avoid an error.  */
8331 #ifdef __cplusplus
8332 extern "C"
8333 {
8334 #endif
8335 /* We use char because int might match the return type of a gcc2
8336    builtin and then its argument prototype would still apply.  */
8337 char connect ();
8338 /* The GNU C library defines this for functions which it implements
8339     to always fail with ENOSYS.  Some functions are actually named
8340     something starting with __ and the normal name is an alias.  */
8341 #if defined (__stub_connect) || defined (__stub___connect)
8342 choke me
8343 #else
8344 char (*f) () = connect;
8345 #endif
8346 #ifdef __cplusplus
8347 }
8348 #endif
8349
8350 int
8351 main ()
8352 {
8353 return f != connect;
8354   ;
8355   return 0;
8356 }
8357 _ACEOF
8358 rm -f conftest.$ac_objext conftest$ac_exeext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8360   (eval $ac_link) 2>&5
8361   ac_status=$?
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } &&
8364          { ac_try='test -s conftest$ac_exeext'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; }; then
8370   ac_cv_func_connect=yes
8371 else
8372   echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8374
8375 ac_cv_func_connect=no
8376 fi
8377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8378 fi
8379 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8380 echo "${ECHO_T}$ac_cv_func_connect" >&6
8381
8382     if test $ac_cv_func_connect = no; then
8383       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8384 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8385 if test "${ac_cv_lib_socket_connect+set}" = set; then
8386   echo $ECHO_N "(cached) $ECHO_C" >&6
8387 else
8388   ac_check_lib_save_LIBS=$LIBS
8389 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8390 cat >conftest.$ac_ext <<_ACEOF
8391 #line $LINENO "configure"
8392 /* confdefs.h.  */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h.  */
8397
8398 /* Override any gcc2 internal prototype to avoid an error.  */
8399 #ifdef __cplusplus
8400 extern "C"
8401 #endif
8402 /* We use char because int might match the return type of a gcc2
8403    builtin and then its argument prototype would still apply.  */
8404 char connect ();
8405 int
8406 main ()
8407 {
8408 connect ();
8409   ;
8410   return 0;
8411 }
8412 _ACEOF
8413 rm -f conftest.$ac_objext conftest$ac_exeext
8414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8415   (eval $ac_link) 2>&5
8416   ac_status=$?
8417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418   (exit $ac_status); } &&
8419          { ac_try='test -s conftest$ac_exeext'
8420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421   (eval $ac_try) 2>&5
8422   ac_status=$?
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); }; }; then
8425   ac_cv_lib_socket_connect=yes
8426 else
8427   echo "$as_me: failed program was:" >&5
8428 sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 ac_cv_lib_socket_connect=no
8431 fi
8432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8433 LIBS=$ac_check_lib_save_LIBS
8434 fi
8435 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8436 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8437 if test $ac_cv_lib_socket_connect = yes; then
8438   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8439 fi
8440
8441     fi
8442
8443     # Guillermo Gomez says -lposix is necessary on A/UX.
8444     echo "$as_me:$LINENO: checking for remove" >&5
8445 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8446 if test "${ac_cv_func_remove+set}" = set; then
8447   echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449   cat >conftest.$ac_ext <<_ACEOF
8450 #line $LINENO "configure"
8451 /* confdefs.h.  */
8452 _ACEOF
8453 cat confdefs.h >>conftest.$ac_ext
8454 cat >>conftest.$ac_ext <<_ACEOF
8455 /* end confdefs.h.  */
8456 /* System header to define __stub macros and hopefully few prototypes,
8457     which can conflict with char remove (); below.
8458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8459     <limits.h> exists even on freestanding compilers.  */
8460 #ifdef __STDC__
8461 # include <limits.h>
8462 #else
8463 # include <assert.h>
8464 #endif
8465 /* Override any gcc2 internal prototype to avoid an error.  */
8466 #ifdef __cplusplus
8467 extern "C"
8468 {
8469 #endif
8470 /* We use char because int might match the return type of a gcc2
8471    builtin and then its argument prototype would still apply.  */
8472 char remove ();
8473 /* The GNU C library defines this for functions which it implements
8474     to always fail with ENOSYS.  Some functions are actually named
8475     something starting with __ and the normal name is an alias.  */
8476 #if defined (__stub_remove) || defined (__stub___remove)
8477 choke me
8478 #else
8479 char (*f) () = remove;
8480 #endif
8481 #ifdef __cplusplus
8482 }
8483 #endif
8484
8485 int
8486 main ()
8487 {
8488 return f != remove;
8489   ;
8490   return 0;
8491 }
8492 _ACEOF
8493 rm -f conftest.$ac_objext conftest$ac_exeext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8495   (eval $ac_link) 2>&5
8496   ac_status=$?
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); } &&
8499          { ac_try='test -s conftest$ac_exeext'
8500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501   (eval $ac_try) 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); }; }; then
8505   ac_cv_func_remove=yes
8506 else
8507   echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8509
8510 ac_cv_func_remove=no
8511 fi
8512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8513 fi
8514 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8515 echo "${ECHO_T}$ac_cv_func_remove" >&6
8516
8517     if test $ac_cv_func_remove = no; then
8518       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8519 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8520 if test "${ac_cv_lib_posix_remove+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523   ac_check_lib_save_LIBS=$LIBS
8524 LIBS="-lposix  $LIBS"
8525 cat >conftest.$ac_ext <<_ACEOF
8526 #line $LINENO "configure"
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532
8533 /* Override any gcc2 internal prototype to avoid an error.  */
8534 #ifdef __cplusplus
8535 extern "C"
8536 #endif
8537 /* We use char because int might match the return type of a gcc2
8538    builtin and then its argument prototype would still apply.  */
8539 char remove ();
8540 int
8541 main ()
8542 {
8543 remove ();
8544   ;
8545   return 0;
8546 }
8547 _ACEOF
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550   (eval $ac_link) 2>&5
8551   ac_status=$?
8552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); } &&
8554          { ac_try='test -s conftest$ac_exeext'
8555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556   (eval $ac_try) 2>&5
8557   ac_status=$?
8558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559   (exit $ac_status); }; }; then
8560   ac_cv_lib_posix_remove=yes
8561 else
8562   echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8564
8565 ac_cv_lib_posix_remove=no
8566 fi
8567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8568 LIBS=$ac_check_lib_save_LIBS
8569 fi
8570 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8571 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8572 if test $ac_cv_lib_posix_remove = yes; then
8573   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8574 fi
8575
8576     fi
8577
8578     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8579     echo "$as_me:$LINENO: checking for shmat" >&5
8580 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8581 if test "${ac_cv_func_shmat+set}" = set; then
8582   echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584   cat >conftest.$ac_ext <<_ACEOF
8585 #line $LINENO "configure"
8586 /* confdefs.h.  */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h.  */
8591 /* System header to define __stub macros and hopefully few prototypes,
8592     which can conflict with char shmat (); below.
8593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8594     <limits.h> exists even on freestanding compilers.  */
8595 #ifdef __STDC__
8596 # include <limits.h>
8597 #else
8598 # include <assert.h>
8599 #endif
8600 /* Override any gcc2 internal prototype to avoid an error.  */
8601 #ifdef __cplusplus
8602 extern "C"
8603 {
8604 #endif
8605 /* We use char because int might match the return type of a gcc2
8606    builtin and then its argument prototype would still apply.  */
8607 char shmat ();
8608 /* The GNU C library defines this for functions which it implements
8609     to always fail with ENOSYS.  Some functions are actually named
8610     something starting with __ and the normal name is an alias.  */
8611 #if defined (__stub_shmat) || defined (__stub___shmat)
8612 choke me
8613 #else
8614 char (*f) () = shmat;
8615 #endif
8616 #ifdef __cplusplus
8617 }
8618 #endif
8619
8620 int
8621 main ()
8622 {
8623 return f != shmat;
8624   ;
8625   return 0;
8626 }
8627 _ACEOF
8628 rm -f conftest.$ac_objext conftest$ac_exeext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8630   (eval $ac_link) 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); } &&
8634          { ac_try='test -s conftest$ac_exeext'
8635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8636   (eval $ac_try) 2>&5
8637   ac_status=$?
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); }; }; then
8640   ac_cv_func_shmat=yes
8641 else
8642   echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645 ac_cv_func_shmat=no
8646 fi
8647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8648 fi
8649 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8650 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8651
8652     if test $ac_cv_func_shmat = no; then
8653       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8654 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8655 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8656   echo $ECHO_N "(cached) $ECHO_C" >&6
8657 else
8658   ac_check_lib_save_LIBS=$LIBS
8659 LIBS="-lipc  $LIBS"
8660 cat >conftest.$ac_ext <<_ACEOF
8661 #line $LINENO "configure"
8662 /* confdefs.h.  */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h.  */
8667
8668 /* Override any gcc2 internal prototype to avoid an error.  */
8669 #ifdef __cplusplus
8670 extern "C"
8671 #endif
8672 /* We use char because int might match the return type of a gcc2
8673    builtin and then its argument prototype would still apply.  */
8674 char shmat ();
8675 int
8676 main ()
8677 {
8678 shmat ();
8679   ;
8680   return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext conftest$ac_exeext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685   (eval $ac_link) 2>&5
8686   ac_status=$?
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); } &&
8689          { ac_try='test -s conftest$ac_exeext'
8690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691   (eval $ac_try) 2>&5
8692   ac_status=$?
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); }; }; then
8695   ac_cv_lib_ipc_shmat=yes
8696 else
8697   echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8699
8700 ac_cv_lib_ipc_shmat=no
8701 fi
8702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8703 LIBS=$ac_check_lib_save_LIBS
8704 fi
8705 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8706 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8707 if test $ac_cv_lib_ipc_shmat = yes; then
8708   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8709 fi
8710
8711     fi
8712   fi
8713
8714   # Check for libraries that X11R6 Xt/Xaw programs need.
8715   ac_save_LDFLAGS=$LDFLAGS
8716   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8717   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8718   # check for ICE first), but we must link in the order -lSM -lICE or
8719   # we get undefined symbols.  So assume we have SM if we have ICE.
8720   # These have to be linked with before -lX11, unlike the other
8721   # libraries we check for below, so use a different variable.
8722   # John Interrante, Karl Berry
8723   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8724 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8725 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   ac_check_lib_save_LIBS=$LIBS
8729 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8730 cat >conftest.$ac_ext <<_ACEOF
8731 #line $LINENO "configure"
8732 /* confdefs.h.  */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h.  */
8737
8738 /* Override any gcc2 internal prototype to avoid an error.  */
8739 #ifdef __cplusplus
8740 extern "C"
8741 #endif
8742 /* We use char because int might match the return type of a gcc2
8743    builtin and then its argument prototype would still apply.  */
8744 char IceConnectionNumber ();
8745 int
8746 main ()
8747 {
8748 IceConnectionNumber ();
8749   ;
8750   return 0;
8751 }
8752 _ACEOF
8753 rm -f conftest.$ac_objext conftest$ac_exeext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8755   (eval $ac_link) 2>&5
8756   ac_status=$?
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); } &&
8759          { ac_try='test -s conftest$ac_exeext'
8760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761   (eval $ac_try) 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); }; }; then
8765   ac_cv_lib_ICE_IceConnectionNumber=yes
8766 else
8767   echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8769
8770 ac_cv_lib_ICE_IceConnectionNumber=no
8771 fi
8772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8773 LIBS=$ac_check_lib_save_LIBS
8774 fi
8775 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8776 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8777 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8778   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8779 fi
8780
8781   LDFLAGS=$ac_save_LDFLAGS
8782
8783 fi
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808 for ac_header in \
8809         assert.h \
8810         fcntl.h \
8811         grp.h \
8812         pwd.h \
8813         libc.h \
8814         limits.h \
8815         stdarg.h \
8816         stdlib.h \
8817         stdint.h \
8818         string.h \
8819         termios.h \
8820         unistd.h \
8821         sys/byteorder.h \
8822         sys/ioctl.h \
8823         sys/select.h \
8824         sys/sockio.h \
8825         sys/time.h \
8826         sys/socket.h \
8827         arpa/nameser.h \
8828         resolv.h \
8829         mtio.h \
8830         sys/mtio.h \
8831
8832 do
8833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8835   echo "$as_me:$LINENO: checking for $ac_header" >&5
8836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8838   echo $ECHO_N "(cached) $ECHO_C" >&6
8839 fi
8840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8842 else
8843   # Is the header compilable?
8844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8846 cat >conftest.$ac_ext <<_ACEOF
8847 #line $LINENO "configure"
8848 /* confdefs.h.  */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h.  */
8853 $ac_includes_default
8854 #include <$ac_header>
8855 _ACEOF
8856 rm -f conftest.$ac_objext
8857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8858   (eval $ac_compile) 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); } &&
8862          { ac_try='test -s conftest.$ac_objext'
8863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8864   (eval $ac_try) 2>&5
8865   ac_status=$?
8866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); }; }; then
8868   ac_header_compiler=yes
8869 else
8870   echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8872
8873 ac_header_compiler=no
8874 fi
8875 rm -f conftest.$ac_objext conftest.$ac_ext
8876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8877 echo "${ECHO_T}$ac_header_compiler" >&6
8878
8879 # Is the header present?
8880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889 #include <$ac_header>
8890 _ACEOF
8891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8892   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8893   ac_status=$?
8894   grep -v '^ *+' conftest.er1 >conftest.err
8895   rm -f conftest.er1
8896   cat conftest.err >&5
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); } >/dev/null; then
8899   if test -s conftest.err; then
8900     ac_cpp_err=$ac_c_preproc_warn_flag
8901   else
8902     ac_cpp_err=
8903   fi
8904 else
8905   ac_cpp_err=yes
8906 fi
8907 if test -z "$ac_cpp_err"; then
8908   ac_header_preproc=yes
8909 else
8910   echo "$as_me: failed program was:" >&5
8911 sed 's/^/| /' conftest.$ac_ext >&5
8912
8913   ac_header_preproc=no
8914 fi
8915 rm -f conftest.err conftest.$ac_ext
8916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8917 echo "${ECHO_T}$ac_header_preproc" >&6
8918
8919 # So?  What about this header?
8920 case $ac_header_compiler:$ac_header_preproc in
8921   yes:no )
8922     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8926     (
8927       cat <<\_ASBOX
8928 ## ------------------------------------ ##
8929 ## Report this to bug-autoconf@gnu.org. ##
8930 ## ------------------------------------ ##
8931 _ASBOX
8932     ) |
8933       sed "s/^/$as_me: WARNING:     /" >&2
8934     ;;
8935   no:yes )
8936     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8938     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8942     (
8943       cat <<\_ASBOX
8944 ## ------------------------------------ ##
8945 ## Report this to bug-autoconf@gnu.org. ##
8946 ## ------------------------------------ ##
8947 _ASBOX
8948     ) |
8949       sed "s/^/$as_me: WARNING:     /" >&2
8950     ;;
8951 esac
8952 echo "$as_me:$LINENO: checking for $ac_header" >&5
8953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8955   echo $ECHO_N "(cached) $ECHO_C" >&6
8956 else
8957   eval "$as_ac_Header=$ac_header_preproc"
8958 fi
8959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8961
8962 fi
8963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8964   cat >>confdefs.h <<_ACEOF
8965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8966 _ACEOF
8967
8968 fi
8969
8970 done
8971
8972 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8973 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8974 if test "${ac_cv_header_stdc+set}" = set; then
8975   echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977   cat >conftest.$ac_ext <<_ACEOF
8978 #line $LINENO "configure"
8979 /* confdefs.h.  */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h.  */
8984 #include <stdlib.h>
8985 #include <stdarg.h>
8986 #include <string.h>
8987 #include <float.h>
8988
8989 int
8990 main ()
8991 {
8992
8993   ;
8994   return 0;
8995 }
8996 _ACEOF
8997 rm -f conftest.$ac_objext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8999   (eval $ac_compile) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); } &&
9003          { ac_try='test -s conftest.$ac_objext'
9004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005   (eval $ac_try) 2>&5
9006   ac_status=$?
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); }; }; then
9009   ac_cv_header_stdc=yes
9010 else
9011   echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 ac_cv_header_stdc=no
9015 fi
9016 rm -f conftest.$ac_objext conftest.$ac_ext
9017
9018 if test $ac_cv_header_stdc = yes; then
9019   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9020   cat >conftest.$ac_ext <<_ACEOF
9021 #line $LINENO "configure"
9022 /* confdefs.h.  */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h.  */
9027 #include <string.h>
9028
9029 _ACEOF
9030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9031   $EGREP "memchr" >/dev/null 2>&1; then
9032   :
9033 else
9034   ac_cv_header_stdc=no
9035 fi
9036 rm -f conftest*
9037
9038 fi
9039
9040 if test $ac_cv_header_stdc = yes; then
9041   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9042   cat >conftest.$ac_ext <<_ACEOF
9043 #line $LINENO "configure"
9044 /* confdefs.h.  */
9045 _ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h.  */
9049 #include <stdlib.h>
9050
9051 _ACEOF
9052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9053   $EGREP "free" >/dev/null 2>&1; then
9054   :
9055 else
9056   ac_cv_header_stdc=no
9057 fi
9058 rm -f conftest*
9059
9060 fi
9061
9062 if test $ac_cv_header_stdc = yes; then
9063   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9064   if test "$cross_compiling" = yes; then
9065   :
9066 else
9067   cat >conftest.$ac_ext <<_ACEOF
9068 #line $LINENO "configure"
9069 /* confdefs.h.  */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h.  */
9074 #include <ctype.h>
9075 #if ((' ' & 0x0FF) == 0x020)
9076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9078 #else
9079 # define ISLOWER(c) \
9080                    (('a' <= (c) && (c) <= 'i') \
9081                      || ('j' <= (c) && (c) <= 'r') \
9082                      || ('s' <= (c) && (c) <= 'z'))
9083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9084 #endif
9085
9086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9087 int
9088 main ()
9089 {
9090   int i;
9091   for (i = 0; i < 256; i++)
9092     if (XOR (islower (i), ISLOWER (i))
9093         || toupper (i) != TOUPPER (i))
9094       exit(2);
9095   exit (0);
9096 }
9097 _ACEOF
9098 rm -f conftest$ac_exeext
9099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9100   (eval $ac_link) 2>&5
9101   ac_status=$?
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105   (eval $ac_try) 2>&5
9106   ac_status=$?
9107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108   (exit $ac_status); }; }; then
9109   :
9110 else
9111   echo "$as_me: program exited with status $ac_status" >&5
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9114
9115 ( exit $ac_status )
9116 ac_cv_header_stdc=no
9117 fi
9118 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9119 fi
9120 fi
9121 fi
9122 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9123 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9124 if test $ac_cv_header_stdc = yes; then
9125
9126 cat >>confdefs.h <<\_ACEOF
9127 #define STDC_HEADERS 1
9128 _ACEOF
9129
9130 fi
9131
9132 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9133 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9134 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9135   echo $ECHO_N "(cached) $ECHO_C" >&6
9136 else
9137   cat >conftest.$ac_ext <<_ACEOF
9138 #line $LINENO "configure"
9139 /* confdefs.h.  */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h.  */
9144 #include <sys/types.h>
9145 int
9146 main ()
9147 {
9148 return makedev(0, 0);
9149   ;
9150   return 0;
9151 }
9152 _ACEOF
9153 rm -f conftest.$ac_objext conftest$ac_exeext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9155   (eval $ac_link) 2>&5
9156   ac_status=$?
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); } &&
9159          { ac_try='test -s conftest$ac_exeext'
9160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161   (eval $ac_try) 2>&5
9162   ac_status=$?
9163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164   (exit $ac_status); }; }; then
9165   ac_cv_header_sys_types_h_makedev=yes
9166 else
9167   echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9169
9170 ac_cv_header_sys_types_h_makedev=no
9171 fi
9172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9173
9174 fi
9175 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9176 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9177
9178 if test $ac_cv_header_sys_types_h_makedev = no; then
9179 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9180   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9181 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9182 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9183   echo $ECHO_N "(cached) $ECHO_C" >&6
9184 fi
9185 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9186 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9187 else
9188   # Is the header compilable?
9189 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9190 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9191 cat >conftest.$ac_ext <<_ACEOF
9192 #line $LINENO "configure"
9193 /* confdefs.h.  */
9194 _ACEOF
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h.  */
9198 $ac_includes_default
9199 #include <sys/mkdev.h>
9200 _ACEOF
9201 rm -f conftest.$ac_objext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9203   (eval $ac_compile) 2>&5
9204   ac_status=$?
9205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); } &&
9207          { ac_try='test -s conftest.$ac_objext'
9208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209   (eval $ac_try) 2>&5
9210   ac_status=$?
9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); }; }; then
9213   ac_header_compiler=yes
9214 else
9215   echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9217
9218 ac_header_compiler=no
9219 fi
9220 rm -f conftest.$ac_objext conftest.$ac_ext
9221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9222 echo "${ECHO_T}$ac_header_compiler" >&6
9223
9224 # Is the header present?
9225 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9226 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9227 cat >conftest.$ac_ext <<_ACEOF
9228 #line $LINENO "configure"
9229 /* confdefs.h.  */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h.  */
9234 #include <sys/mkdev.h>
9235 _ACEOF
9236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9237   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9238   ac_status=$?
9239   grep -v '^ *+' conftest.er1 >conftest.err
9240   rm -f conftest.er1
9241   cat conftest.err >&5
9242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243   (exit $ac_status); } >/dev/null; then
9244   if test -s conftest.err; then
9245     ac_cpp_err=$ac_c_preproc_warn_flag
9246   else
9247     ac_cpp_err=
9248   fi
9249 else
9250   ac_cpp_err=yes
9251 fi
9252 if test -z "$ac_cpp_err"; then
9253   ac_header_preproc=yes
9254 else
9255   echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9257
9258   ac_header_preproc=no
9259 fi
9260 rm -f conftest.err conftest.$ac_ext
9261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9262 echo "${ECHO_T}$ac_header_preproc" >&6
9263
9264 # So?  What about this header?
9265 case $ac_header_compiler:$ac_header_preproc in
9266   yes:no )
9267     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9268 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9269     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9270 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9271     (
9272       cat <<\_ASBOX
9273 ## ------------------------------------ ##
9274 ## Report this to bug-autoconf@gnu.org. ##
9275 ## ------------------------------------ ##
9276 _ASBOX
9277     ) |
9278       sed "s/^/$as_me: WARNING:     /" >&2
9279     ;;
9280   no:yes )
9281     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9282 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9283     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9284 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9285     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9286 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9287     (
9288       cat <<\_ASBOX
9289 ## ------------------------------------ ##
9290 ## Report this to bug-autoconf@gnu.org. ##
9291 ## ------------------------------------ ##
9292 _ASBOX
9293     ) |
9294       sed "s/^/$as_me: WARNING:     /" >&2
9295     ;;
9296 esac
9297 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9298 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9299 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9300   echo $ECHO_N "(cached) $ECHO_C" >&6
9301 else
9302   ac_cv_header_sys_mkdev_h=$ac_header_preproc
9303 fi
9304 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9305 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9306
9307 fi
9308 if test $ac_cv_header_sys_mkdev_h = yes; then
9309
9310 cat >>confdefs.h <<\_ACEOF
9311 #define MAJOR_IN_MKDEV 1
9312 _ACEOF
9313
9314 fi
9315
9316
9317
9318   if test $ac_cv_header_sys_mkdev_h = no; then
9319     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9320   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9321 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9322 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9323   echo $ECHO_N "(cached) $ECHO_C" >&6
9324 fi
9325 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9326 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9327 else
9328   # Is the header compilable?
9329 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9330 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9331 cat >conftest.$ac_ext <<_ACEOF
9332 #line $LINENO "configure"
9333 /* confdefs.h.  */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h.  */
9338 $ac_includes_default
9339 #include <sys/sysmacros.h>
9340 _ACEOF
9341 rm -f conftest.$ac_objext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9343   (eval $ac_compile) 2>&5
9344   ac_status=$?
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); } &&
9347          { ac_try='test -s conftest.$ac_objext'
9348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349   (eval $ac_try) 2>&5
9350   ac_status=$?
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); }; }; then
9353   ac_header_compiler=yes
9354 else
9355   echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9357
9358 ac_header_compiler=no
9359 fi
9360 rm -f conftest.$ac_objext conftest.$ac_ext
9361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9362 echo "${ECHO_T}$ac_header_compiler" >&6
9363
9364 # Is the header present?
9365 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9366 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9367 cat >conftest.$ac_ext <<_ACEOF
9368 #line $LINENO "configure"
9369 /* confdefs.h.  */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h.  */
9374 #include <sys/sysmacros.h>
9375 _ACEOF
9376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9378   ac_status=$?
9379   grep -v '^ *+' conftest.er1 >conftest.err
9380   rm -f conftest.er1
9381   cat conftest.err >&5
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); } >/dev/null; then
9384   if test -s conftest.err; then
9385     ac_cpp_err=$ac_c_preproc_warn_flag
9386   else
9387     ac_cpp_err=
9388   fi
9389 else
9390   ac_cpp_err=yes
9391 fi
9392 if test -z "$ac_cpp_err"; then
9393   ac_header_preproc=yes
9394 else
9395   echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9397
9398   ac_header_preproc=no
9399 fi
9400 rm -f conftest.err conftest.$ac_ext
9401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9402 echo "${ECHO_T}$ac_header_preproc" >&6
9403
9404 # So?  What about this header?
9405 case $ac_header_compiler:$ac_header_preproc in
9406   yes:no )
9407     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9408 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9409     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9410 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9411     (
9412       cat <<\_ASBOX
9413 ## ------------------------------------ ##
9414 ## Report this to bug-autoconf@gnu.org. ##
9415 ## ------------------------------------ ##
9416 _ASBOX
9417     ) |
9418       sed "s/^/$as_me: WARNING:     /" >&2
9419     ;;
9420   no:yes )
9421     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9422 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9423     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9424 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9425     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9426 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9427     (
9428       cat <<\_ASBOX
9429 ## ------------------------------------ ##
9430 ## Report this to bug-autoconf@gnu.org. ##
9431 ## ------------------------------------ ##
9432 _ASBOX
9433     ) |
9434       sed "s/^/$as_me: WARNING:     /" >&2
9435     ;;
9436 esac
9437 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9438 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9439 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9440   echo $ECHO_N "(cached) $ECHO_C" >&6
9441 else
9442   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9443 fi
9444 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9445 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9446
9447 fi
9448 if test $ac_cv_header_sys_sysmacros_h = yes; then
9449
9450 cat >>confdefs.h <<\_ACEOF
9451 #define MAJOR_IN_SYSMACROS 1
9452 _ACEOF
9453
9454 fi
9455
9456
9457   fi
9458 fi
9459
9460
9461
9462
9463
9464
9465 ac_header_dirent=no
9466 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9467   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9468 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9469 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9471   echo $ECHO_N "(cached) $ECHO_C" >&6
9472 else
9473   cat >conftest.$ac_ext <<_ACEOF
9474 #line $LINENO "configure"
9475 /* confdefs.h.  */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h.  */
9480 #include <sys/types.h>
9481 #include <$ac_hdr>
9482
9483 int
9484 main ()
9485 {
9486 if ((DIR *) 0)
9487 return 0;
9488   ;
9489   return 0;
9490 }
9491 _ACEOF
9492 rm -f conftest.$ac_objext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9494   (eval $ac_compile) 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); } &&
9498          { ac_try='test -s conftest.$ac_objext'
9499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500   (eval $ac_try) 2>&5
9501   ac_status=$?
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); }; }; then
9504   eval "$as_ac_Header=yes"
9505 else
9506   echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9508
9509 eval "$as_ac_Header=no"
9510 fi
9511 rm -f conftest.$ac_objext conftest.$ac_ext
9512 fi
9513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9516   cat >>confdefs.h <<_ACEOF
9517 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9518 _ACEOF
9519
9520 ac_header_dirent=$ac_hdr; break
9521 fi
9522
9523 done
9524 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9525 if test $ac_header_dirent = dirent.h; then
9526   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9527 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9528 if test "${ac_cv_search_opendir+set}" = set; then
9529   echo $ECHO_N "(cached) $ECHO_C" >&6
9530 else
9531   ac_func_search_save_LIBS=$LIBS
9532 ac_cv_search_opendir=no
9533 cat >conftest.$ac_ext <<_ACEOF
9534 #line $LINENO "configure"
9535 /* confdefs.h.  */
9536 _ACEOF
9537 cat confdefs.h >>conftest.$ac_ext
9538 cat >>conftest.$ac_ext <<_ACEOF
9539 /* end confdefs.h.  */
9540
9541 /* Override any gcc2 internal prototype to avoid an error.  */
9542 #ifdef __cplusplus
9543 extern "C"
9544 #endif
9545 /* We use char because int might match the return type of a gcc2
9546    builtin and then its argument prototype would still apply.  */
9547 char opendir ();
9548 int
9549 main ()
9550 {
9551 opendir ();
9552   ;
9553   return 0;
9554 }
9555 _ACEOF
9556 rm -f conftest.$ac_objext conftest$ac_exeext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558   (eval $ac_link) 2>&5
9559   ac_status=$?
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); } &&
9562          { ac_try='test -s conftest$ac_exeext'
9563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564   (eval $ac_try) 2>&5
9565   ac_status=$?
9566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567   (exit $ac_status); }; }; then
9568   ac_cv_search_opendir="none required"
9569 else
9570   echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.$ac_ext >&5
9572
9573 fi
9574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9575 if test "$ac_cv_search_opendir" = no; then
9576   for ac_lib in dir; do
9577     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9578     cat >conftest.$ac_ext <<_ACEOF
9579 #line $LINENO "configure"
9580 /* confdefs.h.  */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h.  */
9585
9586 /* Override any gcc2 internal prototype to avoid an error.  */
9587 #ifdef __cplusplus
9588 extern "C"
9589 #endif
9590 /* We use char because int might match the return type of a gcc2
9591    builtin and then its argument prototype would still apply.  */
9592 char opendir ();
9593 int
9594 main ()
9595 {
9596 opendir ();
9597   ;
9598   return 0;
9599 }
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603   (eval $ac_link) 2>&5
9604   ac_status=$?
9605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606   (exit $ac_status); } &&
9607          { ac_try='test -s conftest$ac_exeext'
9608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609   (eval $ac_try) 2>&5
9610   ac_status=$?
9611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612   (exit $ac_status); }; }; then
9613   ac_cv_search_opendir="-l$ac_lib"
9614 break
9615 else
9616   echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9618
9619 fi
9620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9621   done
9622 fi
9623 LIBS=$ac_func_search_save_LIBS
9624 fi
9625 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9626 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9627 if test "$ac_cv_search_opendir" != no; then
9628   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9629
9630 fi
9631
9632 else
9633   echo "$as_me:$LINENO: checking for library containing opendir" >&5
9634 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9635 if test "${ac_cv_search_opendir+set}" = set; then
9636   echo $ECHO_N "(cached) $ECHO_C" >&6
9637 else
9638   ac_func_search_save_LIBS=$LIBS
9639 ac_cv_search_opendir=no
9640 cat >conftest.$ac_ext <<_ACEOF
9641 #line $LINENO "configure"
9642 /* confdefs.h.  */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h.  */
9647
9648 /* Override any gcc2 internal prototype to avoid an error.  */
9649 #ifdef __cplusplus
9650 extern "C"
9651 #endif
9652 /* We use char because int might match the return type of a gcc2
9653    builtin and then its argument prototype would still apply.  */
9654 char opendir ();
9655 int
9656 main ()
9657 {
9658 opendir ();
9659   ;
9660   return 0;
9661 }
9662 _ACEOF
9663 rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9665   (eval $ac_link) 2>&5
9666   ac_status=$?
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); } &&
9669          { ac_try='test -s conftest$ac_exeext'
9670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671   (eval $ac_try) 2>&5
9672   ac_status=$?
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); }; }; then
9675   ac_cv_search_opendir="none required"
9676 else
9677   echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9679
9680 fi
9681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9682 if test "$ac_cv_search_opendir" = no; then
9683   for ac_lib in x; do
9684     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9685     cat >conftest.$ac_ext <<_ACEOF
9686 #line $LINENO "configure"
9687 /* confdefs.h.  */
9688 _ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h.  */
9692
9693 /* Override any gcc2 internal prototype to avoid an error.  */
9694 #ifdef __cplusplus
9695 extern "C"
9696 #endif
9697 /* We use char because int might match the return type of a gcc2
9698    builtin and then its argument prototype would still apply.  */
9699 char opendir ();
9700 int
9701 main ()
9702 {
9703 opendir ();
9704   ;
9705   return 0;
9706 }
9707 _ACEOF
9708 rm -f conftest.$ac_objext conftest$ac_exeext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9710   (eval $ac_link) 2>&5
9711   ac_status=$?
9712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713   (exit $ac_status); } &&
9714          { ac_try='test -s conftest$ac_exeext'
9715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716   (eval $ac_try) 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); }; }; then
9720   ac_cv_search_opendir="-l$ac_lib"
9721 break
9722 else
9723   echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726 fi
9727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9728   done
9729 fi
9730 LIBS=$ac_func_search_save_LIBS
9731 fi
9732 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9733 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9734 if test "$ac_cv_search_opendir" != no; then
9735   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9736
9737 fi
9738
9739 fi
9740
9741 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9742 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9743 if test "${ac_cv_header_stat_broken+set}" = set; then
9744   echo $ECHO_N "(cached) $ECHO_C" >&6
9745 else
9746   cat >conftest.$ac_ext <<_ACEOF
9747 #line $LINENO "configure"
9748 /* confdefs.h.  */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h.  */
9753 #include <sys/types.h>
9754 #include <sys/stat.h>
9755
9756 #if defined(S_ISBLK) && defined(S_IFDIR)
9757 # if S_ISBLK (S_IFDIR)
9758 You lose.
9759 # endif
9760 #endif
9761
9762 #if defined(S_ISBLK) && defined(S_IFCHR)
9763 # if S_ISBLK (S_IFCHR)
9764 You lose.
9765 # endif
9766 #endif
9767
9768 #if defined(S_ISLNK) && defined(S_IFREG)
9769 # if S_ISLNK (S_IFREG)
9770 You lose.
9771 # endif
9772 #endif
9773
9774 #if defined(S_ISSOCK) && defined(S_IFREG)
9775 # if S_ISSOCK (S_IFREG)
9776 You lose.
9777 # endif
9778 #endif
9779
9780 _ACEOF
9781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9782   $EGREP "You lose" >/dev/null 2>&1; then
9783   ac_cv_header_stat_broken=yes
9784 else
9785   ac_cv_header_stat_broken=no
9786 fi
9787 rm -f conftest*
9788
9789 fi
9790 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9791 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9792 if test $ac_cv_header_stat_broken = yes; then
9793
9794 cat >>confdefs.h <<\_ACEOF
9795 #define STAT_MACROS_BROKEN 1
9796 _ACEOF
9797
9798 fi
9799
9800 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9801 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9802 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9803   echo $ECHO_N "(cached) $ECHO_C" >&6
9804 else
9805   cat >conftest.$ac_ext <<_ACEOF
9806 #line $LINENO "configure"
9807 /* confdefs.h.  */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h.  */
9812 #include <sys/types.h>
9813 #include <sys/wait.h>
9814 #ifndef WEXITSTATUS
9815 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9816 #endif
9817 #ifndef WIFEXITED
9818 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9819 #endif
9820
9821 int
9822 main ()
9823 {
9824   int s;
9825   wait (&s);
9826   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9827   ;
9828   return 0;
9829 }
9830 _ACEOF
9831 rm -f conftest.$ac_objext
9832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9833   (eval $ac_compile) 2>&5
9834   ac_status=$?
9835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836   (exit $ac_status); } &&
9837          { ac_try='test -s conftest.$ac_objext'
9838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9839   (eval $ac_try) 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; }; then
9843   ac_cv_header_sys_wait_h=yes
9844 else
9845   echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848 ac_cv_header_sys_wait_h=no
9849 fi
9850 rm -f conftest.$ac_objext conftest.$ac_ext
9851 fi
9852 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9853 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9854 if test $ac_cv_header_sys_wait_h = yes; then
9855
9856 cat >>confdefs.h <<\_ACEOF
9857 #define HAVE_SYS_WAIT_H 1
9858 _ACEOF
9859
9860 fi
9861
9862 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9863 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9864 if test "${ac_cv_header_time+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   cat >conftest.$ac_ext <<_ACEOF
9868 #line $LINENO "configure"
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874 #include <sys/types.h>
9875 #include <sys/time.h>
9876 #include <time.h>
9877
9878 int
9879 main ()
9880 {
9881 if ((struct tm *) 0)
9882 return 0;
9883   ;
9884   return 0;
9885 }
9886 _ACEOF
9887 rm -f conftest.$ac_objext
9888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9889   (eval $ac_compile) 2>&5
9890   ac_status=$?
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); } &&
9893          { ac_try='test -s conftest.$ac_objext'
9894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895   (eval $ac_try) 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; }; then
9899   ac_cv_header_time=yes
9900 else
9901   echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904 ac_cv_header_time=no
9905 fi
9906 rm -f conftest.$ac_objext conftest.$ac_ext
9907 fi
9908 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9909 echo "${ECHO_T}$ac_cv_header_time" >&6
9910 if test $ac_cv_header_time = yes; then
9911
9912 cat >>confdefs.h <<\_ACEOF
9913 #define TIME_WITH_SYS_TIME 1
9914 _ACEOF
9915
9916 fi
9917
9918
9919 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9920 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9921 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9922   echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924   cat >conftest.$ac_ext <<_ACEOF
9925 #line $LINENO "configure"
9926 /* confdefs.h.  */
9927 _ACEOF
9928 cat confdefs.h >>conftest.$ac_ext
9929 cat >>conftest.$ac_ext <<_ACEOF
9930 /* end confdefs.h.  */
9931 $ac_includes_default
9932 int
9933 main ()
9934 {
9935 static struct stat ac_aggr;
9936 if (ac_aggr.st_blksize)
9937 return 0;
9938   ;
9939   return 0;
9940 }
9941 _ACEOF
9942 rm -f conftest.$ac_objext
9943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9944   (eval $ac_compile) 2>&5
9945   ac_status=$?
9946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947   (exit $ac_status); } &&
9948          { ac_try='test -s conftest.$ac_objext'
9949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950   (eval $ac_try) 2>&5
9951   ac_status=$?
9952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953   (exit $ac_status); }; }; then
9954   ac_cv_member_struct_stat_st_blksize=yes
9955 else
9956   echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959 cat >conftest.$ac_ext <<_ACEOF
9960 #line $LINENO "configure"
9961 /* confdefs.h.  */
9962 _ACEOF
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h.  */
9966 $ac_includes_default
9967 int
9968 main ()
9969 {
9970 static struct stat ac_aggr;
9971 if (sizeof ac_aggr.st_blksize)
9972 return 0;
9973   ;
9974   return 0;
9975 }
9976 _ACEOF
9977 rm -f conftest.$ac_objext
9978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9979   (eval $ac_compile) 2>&5
9980   ac_status=$?
9981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982   (exit $ac_status); } &&
9983          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9989   ac_cv_member_struct_stat_st_blksize=yes
9990 else
9991   echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9993
9994 ac_cv_member_struct_stat_st_blksize=no
9995 fi
9996 rm -f conftest.$ac_objext conftest.$ac_ext
9997 fi
9998 rm -f conftest.$ac_objext conftest.$ac_ext
9999 fi
10000 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10001 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10002 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10003
10004 cat >>confdefs.h <<_ACEOF
10005 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10006 _ACEOF
10007
10008
10009 cat >>confdefs.h <<\_ACEOF
10010 #define HAVE_ST_BLKSIZE 1
10011 _ACEOF
10012
10013 fi
10014
10015
10016 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10017 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10018 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10019   echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021   cat >conftest.$ac_ext <<_ACEOF
10022 #line $LINENO "configure"
10023 /* confdefs.h.  */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h.  */
10028 $ac_includes_default
10029 int
10030 main ()
10031 {
10032 static struct stat ac_aggr;
10033 if (ac_aggr.st_blocks)
10034 return 0;
10035   ;
10036   return 0;
10037 }
10038 _ACEOF
10039 rm -f conftest.$ac_objext
10040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10041   (eval $ac_compile) 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); } &&
10045          { ac_try='test -s conftest.$ac_objext'
10046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10047   (eval $ac_try) 2>&5
10048   ac_status=$?
10049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050   (exit $ac_status); }; }; then
10051   ac_cv_member_struct_stat_st_blocks=yes
10052 else
10053   echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10055
10056 cat >conftest.$ac_ext <<_ACEOF
10057 #line $LINENO "configure"
10058 /* confdefs.h.  */
10059 _ACEOF
10060 cat confdefs.h >>conftest.$ac_ext
10061 cat >>conftest.$ac_ext <<_ACEOF
10062 /* end confdefs.h.  */
10063 $ac_includes_default
10064 int
10065 main ()
10066 {
10067 static struct stat ac_aggr;
10068 if (sizeof ac_aggr.st_blocks)
10069 return 0;
10070   ;
10071   return 0;
10072 }
10073 _ACEOF
10074 rm -f conftest.$ac_objext
10075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10076   (eval $ac_compile) 2>&5
10077   ac_status=$?
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); } &&
10080          { ac_try='test -s conftest.$ac_objext'
10081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082   (eval $ac_try) 2>&5
10083   ac_status=$?
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); }; }; then
10086   ac_cv_member_struct_stat_st_blocks=yes
10087 else
10088   echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10090
10091 ac_cv_member_struct_stat_st_blocks=no
10092 fi
10093 rm -f conftest.$ac_objext conftest.$ac_ext
10094 fi
10095 rm -f conftest.$ac_objext conftest.$ac_ext
10096 fi
10097 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10098 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10099 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10100
10101 cat >>confdefs.h <<_ACEOF
10102 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10103 _ACEOF
10104
10105
10106 cat >>confdefs.h <<\_ACEOF
10107 #define HAVE_ST_BLOCKS 1
10108 _ACEOF
10109
10110 else
10111   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10112 fi
10113
10114
10115 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10116 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10117 if test "${ac_cv_struct_tm+set}" = set; then
10118   echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120   cat >conftest.$ac_ext <<_ACEOF
10121 #line $LINENO "configure"
10122 /* confdefs.h.  */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h.  */
10127 #include <sys/types.h>
10128 #include <time.h>
10129
10130 int
10131 main ()
10132 {
10133 struct tm *tp; tp->tm_sec;
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 rm -f conftest.$ac_objext
10139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10140   (eval $ac_compile) 2>&5
10141   ac_status=$?
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } &&
10144          { ac_try='test -s conftest.$ac_objext'
10145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146   (eval $ac_try) 2>&5
10147   ac_status=$?
10148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149   (exit $ac_status); }; }; then
10150   ac_cv_struct_tm=time.h
10151 else
10152   echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10154
10155 ac_cv_struct_tm=sys/time.h
10156 fi
10157 rm -f conftest.$ac_objext conftest.$ac_ext
10158 fi
10159 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10160 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10161 if test $ac_cv_struct_tm = sys/time.h; then
10162
10163 cat >>confdefs.h <<\_ACEOF
10164 #define TM_IN_SYS_TIME 1
10165 _ACEOF
10166
10167 fi
10168
10169 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10170 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10171 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10172   echo $ECHO_N "(cached) $ECHO_C" >&6
10173 else
10174   cat >conftest.$ac_ext <<_ACEOF
10175 #line $LINENO "configure"
10176 /* confdefs.h.  */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h.  */
10181 #include <sys/types.h>
10182 #include <$ac_cv_struct_tm>
10183
10184
10185 int
10186 main ()
10187 {
10188 static struct tm ac_aggr;
10189 if (ac_aggr.tm_zone)
10190 return 0;
10191   ;
10192   return 0;
10193 }
10194 _ACEOF
10195 rm -f conftest.$ac_objext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197   (eval $ac_compile) 2>&5
10198   ac_status=$?
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); } &&
10201          { ac_try='test -s conftest.$ac_objext'
10202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203   (eval $ac_try) 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); }; }; then
10207   ac_cv_member_struct_tm_tm_zone=yes
10208 else
10209   echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10211
10212 cat >conftest.$ac_ext <<_ACEOF
10213 #line $LINENO "configure"
10214 /* confdefs.h.  */
10215 _ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h.  */
10219 #include <sys/types.h>
10220 #include <$ac_cv_struct_tm>
10221
10222
10223 int
10224 main ()
10225 {
10226 static struct tm ac_aggr;
10227 if (sizeof ac_aggr.tm_zone)
10228 return 0;
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235   (eval $ac_compile) 2>&5
10236   ac_status=$?
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); } &&
10239          { ac_try='test -s conftest.$ac_objext'
10240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241   (eval $ac_try) 2>&5
10242   ac_status=$?
10243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244   (exit $ac_status); }; }; then
10245   ac_cv_member_struct_tm_tm_zone=yes
10246 else
10247   echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 ac_cv_member_struct_tm_tm_zone=no
10251 fi
10252 rm -f conftest.$ac_objext conftest.$ac_ext
10253 fi
10254 rm -f conftest.$ac_objext conftest.$ac_ext
10255 fi
10256 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10257 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10258 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10259
10260 cat >>confdefs.h <<_ACEOF
10261 #define HAVE_STRUCT_TM_TM_ZONE 1
10262 _ACEOF
10263
10264
10265 fi
10266
10267 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10268
10269 cat >>confdefs.h <<\_ACEOF
10270 #define HAVE_TM_ZONE 1
10271 _ACEOF
10272
10273 else
10274   echo "$as_me:$LINENO: checking for tzname" >&5
10275 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10276 if test "${ac_cv_var_tzname+set}" = set; then
10277   echo $ECHO_N "(cached) $ECHO_C" >&6
10278 else
10279   cat >conftest.$ac_ext <<_ACEOF
10280 #line $LINENO "configure"
10281 /* confdefs.h.  */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h.  */
10286 #include <time.h>
10287 #ifndef tzname /* For SGI.  */
10288 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
10289 #endif
10290
10291 int
10292 main ()
10293 {
10294 atoi(*tzname);
10295   ;
10296   return 0;
10297 }
10298 _ACEOF
10299 rm -f conftest.$ac_objext conftest$ac_exeext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10301   (eval $ac_link) 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); } &&
10305          { ac_try='test -s conftest$ac_exeext'
10306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307   (eval $ac_try) 2>&5
10308   ac_status=$?
10309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310   (exit $ac_status); }; }; then
10311   ac_cv_var_tzname=yes
10312 else
10313   echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10315
10316 ac_cv_var_tzname=no
10317 fi
10318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10319 fi
10320 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10321 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10322   if test $ac_cv_var_tzname = yes; then
10323
10324 cat >>confdefs.h <<\_ACEOF
10325 #define HAVE_TZNAME 1
10326 _ACEOF
10327
10328   fi
10329 fi
10330
10331
10332 echo "$as_me:$LINENO: checking for utime.h" >&5
10333 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10334 if test "${ba_cv_header_utime_h+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   cat >conftest.$ac_ext <<_ACEOF
10338 #line $LINENO "configure"
10339 /* confdefs.h.  */
10340 _ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h.  */
10344
10345 #include <sys/types.h>
10346 #include <utime.h>
10347 int
10348 main ()
10349 {
10350 struct utimbuf foo
10351   ;
10352   return 0;
10353 }
10354 _ACEOF
10355 rm -f conftest.$ac_objext
10356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10357   (eval $ac_compile) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); } &&
10361          { ac_try='test -s conftest.$ac_objext'
10362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363   (eval $ac_try) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; }; then
10367   ba_cv_header_utime_h=yes
10368 else
10369   echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10371
10372 ba_cv_header_utime_h=no
10373 fi
10374 rm -f conftest.$ac_objext conftest.$ac_ext
10375 fi
10376 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10377 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10378 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10379 #define HAVE_UTIME_H 1
10380 _ACEOF
10381
10382
10383 echo "$as_me:$LINENO: checking for socklen_t" >&5
10384 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10385 if test "${ba_cv_header_socklen_t+set}" = set; then
10386   echo $ECHO_N "(cached) $ECHO_C" >&6
10387 else
10388   cat >conftest.$ac_ext <<_ACEOF
10389 #line $LINENO "configure"
10390 /* confdefs.h.  */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h.  */
10395
10396 #include <sys/types.h>
10397 #include <sys/socket.h>
10398 int
10399 main ()
10400 {
10401 socklen_t x
10402   ;
10403   return 0;
10404 }
10405 _ACEOF
10406 rm -f conftest.$ac_objext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10408   (eval $ac_compile) 2>&5
10409   ac_status=$?
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } &&
10412          { ac_try='test -s conftest.$ac_objext'
10413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414   (eval $ac_try) 2>&5
10415   ac_status=$?
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); }; }; then
10418   ba_cv_header_socklen_t=yes
10419 else
10420   echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10422
10423 ba_cv_header_socklen_t=no
10424 fi
10425 rm -f conftest.$ac_objext conftest.$ac_ext
10426 fi
10427 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10428 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10429 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10430 #define HAVE_SOCKLEN_T 1
10431 _ACEOF
10432
10433
10434 echo "$as_me:$LINENO: checking for bigendian" >&5
10435 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10436 if test "${ba_cv_bigendian+set}" = set; then
10437   echo $ECHO_N "(cached) $ECHO_C" >&6
10438 else
10439   if test "$cross_compiling" = yes; then
10440   ba_cv_bigendian=no
10441 else
10442   cat >conftest.$ac_ext <<_ACEOF
10443 #line $LINENO "configure"
10444 /* confdefs.h.  */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h.  */
10449 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10450 _ACEOF
10451 rm -f conftest$ac_exeext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453   (eval $ac_link) 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458   (eval $ac_try) 2>&5
10459   ac_status=$?
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); }; }; then
10462   ba_cv_bigendian=yes
10463 else
10464   echo "$as_me: program exited with status $ac_status" >&5
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10467
10468 ( exit $ac_status )
10469 ba_cv_bigendian=no
10470 fi
10471 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10472 fi
10473 fi
10474 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10475 echo "${ECHO_T}$ba_cv_bigendian" >&6
10476 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10477 #define HAVE_BIGENDIAN 1
10478 _ACEOF
10479
10480
10481
10482 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10483 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10484 if test "${ac_cv_c_const+set}" = set; then
10485   echo $ECHO_N "(cached) $ECHO_C" >&6
10486 else
10487   cat >conftest.$ac_ext <<_ACEOF
10488 #line $LINENO "configure"
10489 /* confdefs.h.  */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h.  */
10494
10495 int
10496 main ()
10497 {
10498 /* FIXME: Include the comments suggested by Paul. */
10499 #ifndef __cplusplus
10500   /* Ultrix mips cc rejects this.  */
10501   typedef int charset[2];
10502   const charset x;
10503   /* SunOS 4.1.1 cc rejects this.  */
10504   char const *const *ccp;
10505   char **p;
10506   /* NEC SVR4.0.2 mips cc rejects this.  */
10507   struct point {int x, y;};
10508   static struct point const zero = {0,0};
10509   /* AIX XL C 1.02.0.0 rejects this.
10510      It does not let you subtract one const X* pointer from another in
10511      an arm of an if-expression whose if-part is not a constant
10512      expression */
10513   const char *g = "string";
10514   ccp = &g + (g ? g-g : 0);
10515   /* HPUX 7.0 cc rejects these. */
10516   ++ccp;
10517   p = (char**) ccp;
10518   ccp = (char const *const *) p;
10519   { /* SCO 3.2v4 cc rejects this.  */
10520     char *t;
10521     char const *s = 0 ? (char *) 0 : (char const *) 0;
10522
10523     *t++ = 0;
10524   }
10525   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10526     int x[] = {25, 17};
10527     const int *foo = &x[0];
10528     ++foo;
10529   }
10530   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10531     typedef const int *iptr;
10532     iptr p = 0;
10533     ++p;
10534   }
10535   { /* AIX XL C 1.02.0.0 rejects this saying
10536        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10537     struct s { int j; const int *ap[3]; };
10538     struct s *b; b->j = 5;
10539   }
10540   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10541     const int foo = 10;
10542   }
10543 #endif
10544
10545   ;
10546   return 0;
10547 }
10548 _ACEOF
10549 rm -f conftest.$ac_objext
10550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10551   (eval $ac_compile) 2>&5
10552   ac_status=$?
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); } &&
10555          { ac_try='test -s conftest.$ac_objext'
10556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557   (eval $ac_try) 2>&5
10558   ac_status=$?
10559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560   (exit $ac_status); }; }; then
10561   ac_cv_c_const=yes
10562 else
10563   echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 ac_cv_c_const=no
10567 fi
10568 rm -f conftest.$ac_objext conftest.$ac_ext
10569 fi
10570 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10571 echo "${ECHO_T}$ac_cv_c_const" >&6
10572 if test $ac_cv_c_const = no; then
10573
10574 cat >>confdefs.h <<\_ACEOF
10575 #define const
10576 _ACEOF
10577
10578 fi
10579
10580
10581
10582 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10583 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10584 fstype=no
10585 # The order of these tests is important.
10586 cat >conftest.$ac_ext <<_ACEOF
10587 #line $LINENO "configure"
10588 /* confdefs.h.  */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h.  */
10593 #include <sys/statvfs.h>
10594 #include <sys/fstyp.h>
10595 _ACEOF
10596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10597   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10598   ac_status=$?
10599   grep -v '^ *+' conftest.er1 >conftest.err
10600   rm -f conftest.er1
10601   cat conftest.err >&5
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); } >/dev/null; then
10604   if test -s conftest.err; then
10605     ac_cpp_err=$ac_c_preproc_warn_flag
10606   else
10607     ac_cpp_err=
10608   fi
10609 else
10610   ac_cpp_err=yes
10611 fi
10612 if test -z "$ac_cpp_err"; then
10613   cat >>confdefs.h <<\_ACEOF
10614 #define FSTYPE_STATVFS 1
10615 _ACEOF
10616  fstype=SVR4
10617 else
10618   echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10620
10621
10622 fi
10623 rm -f conftest.err conftest.$ac_ext
10624 if test $fstype = no; then
10625 cat >conftest.$ac_ext <<_ACEOF
10626 #line $LINENO "configure"
10627 /* confdefs.h.  */
10628 _ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h.  */
10632 #include <sys/statfs.h>
10633 #include <sys/fstyp.h>
10634 _ACEOF
10635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10636   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10637   ac_status=$?
10638   grep -v '^ *+' conftest.er1 >conftest.err
10639   rm -f conftest.er1
10640   cat conftest.err >&5
10641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642   (exit $ac_status); } >/dev/null; then
10643   if test -s conftest.err; then
10644     ac_cpp_err=$ac_c_preproc_warn_flag
10645   else
10646     ac_cpp_err=
10647   fi
10648 else
10649   ac_cpp_err=yes
10650 fi
10651 if test -z "$ac_cpp_err"; then
10652   cat >>confdefs.h <<\_ACEOF
10653 #define FSTYPE_USG_STATFS 1
10654 _ACEOF
10655  fstype=SVR3
10656 else
10657   echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10659
10660
10661 fi
10662 rm -f conftest.err conftest.$ac_ext
10663 fi
10664 if test $fstype = no; then
10665 cat >conftest.$ac_ext <<_ACEOF
10666 #line $LINENO "configure"
10667 /* confdefs.h.  */
10668 _ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h.  */
10672 #include <sys/statfs.h>
10673 #include <sys/vmount.h>
10674 _ACEOF
10675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10676   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10677   ac_status=$?
10678   grep -v '^ *+' conftest.er1 >conftest.err
10679   rm -f conftest.er1
10680   cat conftest.err >&5
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); } >/dev/null; then
10683   if test -s conftest.err; then
10684     ac_cpp_err=$ac_c_preproc_warn_flag
10685   else
10686     ac_cpp_err=
10687   fi
10688 else
10689   ac_cpp_err=yes
10690 fi
10691 if test -z "$ac_cpp_err"; then
10692   cat >>confdefs.h <<\_ACEOF
10693 #define FSTYPE_AIX_STATFS 1
10694 _ACEOF
10695  fstype=AIX
10696 else
10697   echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10699
10700
10701 fi
10702 rm -f conftest.err conftest.$ac_ext
10703 fi
10704 if test $fstype = no; then
10705 cat >conftest.$ac_ext <<_ACEOF
10706 #line $LINENO "configure"
10707 /* confdefs.h.  */
10708 _ACEOF
10709 cat confdefs.h >>conftest.$ac_ext
10710 cat >>conftest.$ac_ext <<_ACEOF
10711 /* end confdefs.h.  */
10712 #include <mntent.h>
10713 _ACEOF
10714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10716   ac_status=$?
10717   grep -v '^ *+' conftest.er1 >conftest.err
10718   rm -f conftest.er1
10719   cat conftest.err >&5
10720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   (exit $ac_status); } >/dev/null; then
10722   if test -s conftest.err; then
10723     ac_cpp_err=$ac_c_preproc_warn_flag
10724   else
10725     ac_cpp_err=
10726   fi
10727 else
10728   ac_cpp_err=yes
10729 fi
10730 if test -z "$ac_cpp_err"; then
10731   cat >>confdefs.h <<\_ACEOF
10732 #define FSTYPE_MNTENT 1
10733 _ACEOF
10734  fstype=4.3BSD
10735 else
10736   echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10738
10739
10740 fi
10741 rm -f conftest.err conftest.$ac_ext
10742 fi
10743 if test $fstype = no; then
10744 cat >conftest.$ac_ext <<_ACEOF
10745 #line $LINENO "configure"
10746 /* confdefs.h.  */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h.  */
10751 #include <sys/mount.h>
10752
10753 _ACEOF
10754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10755   $EGREP "f_type;" >/dev/null 2>&1; then
10756   cat >>confdefs.h <<\_ACEOF
10757 #define FSTYPE_STATFS 1
10758 _ACEOF
10759  fstype=4.4BSD/OSF1
10760 fi
10761 rm -f conftest*
10762
10763 fi
10764 if test $fstype = no; then
10765 cat >conftest.$ac_ext <<_ACEOF
10766 #line $LINENO "configure"
10767 /* confdefs.h.  */
10768 _ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h.  */
10772 #include <sys/mount.h>
10773 #include <sys/fs_types.h>
10774 _ACEOF
10775 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10776   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10777   ac_status=$?
10778   grep -v '^ *+' conftest.er1 >conftest.err
10779   rm -f conftest.er1
10780   cat conftest.err >&5
10781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782   (exit $ac_status); } >/dev/null; then
10783   if test -s conftest.err; then
10784     ac_cpp_err=$ac_c_preproc_warn_flag
10785   else
10786     ac_cpp_err=
10787   fi
10788 else
10789   ac_cpp_err=yes
10790 fi
10791 if test -z "$ac_cpp_err"; then
10792   cat >>confdefs.h <<\_ACEOF
10793 #define FSTYPE_GETMNT 1
10794 _ACEOF
10795  fstype=Ultrix
10796 else
10797   echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10799
10800
10801 fi
10802 rm -f conftest.err conftest.$ac_ext
10803 fi
10804 echo "$as_me:$LINENO: result: $fstype" >&5
10805 echo "${ECHO_T}$fstype" >&6
10806
10807 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10808 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10809 if test "${ac_cv_type_signal+set}" = set; then
10810   echo $ECHO_N "(cached) $ECHO_C" >&6
10811 else
10812   cat >conftest.$ac_ext <<_ACEOF
10813 #line $LINENO "configure"
10814 /* confdefs.h.  */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h.  */
10819 #include <sys/types.h>
10820 #include <signal.h>
10821 #ifdef signal
10822 # undef signal
10823 #endif
10824 #ifdef __cplusplus
10825 extern "C" void (*signal (int, void (*)(int)))(int);
10826 #else
10827 void (*signal ()) ();
10828 #endif
10829
10830 int
10831 main ()
10832 {
10833 int i;
10834   ;
10835   return 0;
10836 }
10837 _ACEOF
10838 rm -f conftest.$ac_objext
10839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10840   (eval $ac_compile) 2>&5
10841   ac_status=$?
10842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843   (exit $ac_status); } &&
10844          { ac_try='test -s conftest.$ac_objext'
10845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10846   (eval $ac_try) 2>&5
10847   ac_status=$?
10848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849   (exit $ac_status); }; }; then
10850   ac_cv_type_signal=void
10851 else
10852   echo "$as_me: failed program was:" >&5
10853 sed 's/^/| /' conftest.$ac_ext >&5
10854
10855 ac_cv_type_signal=int
10856 fi
10857 rm -f conftest.$ac_objext conftest.$ac_ext
10858 fi
10859 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10860 echo "${ECHO_T}$ac_cv_type_signal" >&6
10861
10862 cat >>confdefs.h <<_ACEOF
10863 #define RETSIGTYPE $ac_cv_type_signal
10864 _ACEOF
10865
10866
10867
10868 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10869 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10870 if test "${bash_cv_signal_vintage+set}" = set; then
10871   echo $ECHO_N "(cached) $ECHO_C" >&6
10872 else
10873
10874   cat >conftest.$ac_ext <<_ACEOF
10875 #line $LINENO "configure"
10876 /* confdefs.h.  */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h.  */
10881 #include <signal.h>
10882 int
10883 main ()
10884 {
10885
10886     sigset_t ss;
10887     struct sigaction sa;
10888     sigemptyset(&ss); sigsuspend(&ss);
10889     sigaction(SIGINT, &sa, (struct sigaction *) 0);
10890     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10891
10892   ;
10893   return 0;
10894 }
10895 _ACEOF
10896 rm -f conftest.$ac_objext conftest$ac_exeext
10897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10898   (eval $ac_link) 2>&5
10899   ac_status=$?
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); } &&
10902          { ac_try='test -s conftest$ac_exeext'
10903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904   (eval $ac_try) 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; }; then
10908   bash_cv_signal_vintage=posix
10909 else
10910   echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10912
10913
10914     cat >conftest.$ac_ext <<_ACEOF
10915 #line $LINENO "configure"
10916 /* confdefs.h.  */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h.  */
10921 #include <signal.h>
10922 int
10923 main ()
10924 {
10925
10926         int mask = sigmask(SIGINT);
10927         sigsetmask(mask); sigblock(mask); sigpause(mask);
10928
10929   ;
10930   return 0;
10931 }
10932 _ACEOF
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10935   (eval $ac_link) 2>&5
10936   ac_status=$?
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); } &&
10939          { ac_try='test -s conftest$ac_exeext'
10940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941   (eval $ac_try) 2>&5
10942   ac_status=$?
10943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944   (exit $ac_status); }; }; then
10945   bash_cv_signal_vintage=4.2bsd
10946 else
10947   echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10949
10950
10951       cat >conftest.$ac_ext <<_ACEOF
10952 #line $LINENO "configure"
10953 /* confdefs.h.  */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h.  */
10958
10959         #include <signal.h>
10960         RETSIGTYPE foo() { }
10961 int
10962 main ()
10963 {
10964
10965                 int mask = sigmask(SIGINT);
10966                 sigset(SIGINT, foo); sigrelse(SIGINT);
10967                 sighold(SIGINT); sigpause(SIGINT);
10968
10969   ;
10970   return 0;
10971 }
10972 _ACEOF
10973 rm -f conftest.$ac_objext conftest$ac_exeext
10974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10975   (eval $ac_link) 2>&5
10976   ac_status=$?
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); } &&
10979          { ac_try='test -s conftest$ac_exeext'
10980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981   (eval $ac_try) 2>&5
10982   ac_status=$?
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); }; }; then
10985   bash_cv_signal_vintage=svr3
10986 else
10987   echo "$as_me: failed program was:" >&5
10988 sed 's/^/| /' conftest.$ac_ext >&5
10989
10990 bash_cv_signal_vintage=v7
10991
10992 fi
10993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10994
10995 fi
10996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10997
10998 fi
10999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11000
11001 fi
11002
11003 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11004 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11005 if test "$bash_cv_signal_vintage" = posix; then
11006 cat >>confdefs.h <<\_ACEOF
11007 #define HAVE_POSIX_SIGNALS 1
11008 _ACEOF
11009
11010 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11011 cat >>confdefs.h <<\_ACEOF
11012 #define HAVE_BSD_SIGNALS 1
11013 _ACEOF
11014
11015 elif test "$bash_cv_signal_vintage" = svr3; then
11016 cat >>confdefs.h <<\_ACEOF
11017 #define HAVE_USG_SIGHOLD 1
11018 _ACEOF
11019
11020 fi
11021
11022 echo "$as_me:$LINENO: checking for mode_t" >&5
11023 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11024 if test "${ac_cv_type_mode_t+set}" = set; then
11025   echo $ECHO_N "(cached) $ECHO_C" >&6
11026 else
11027   cat >conftest.$ac_ext <<_ACEOF
11028 #line $LINENO "configure"
11029 /* confdefs.h.  */
11030 _ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h.  */
11034 $ac_includes_default
11035 int
11036 main ()
11037 {
11038 if ((mode_t *) 0)
11039   return 0;
11040 if (sizeof (mode_t))
11041   return 0;
11042   ;
11043   return 0;
11044 }
11045 _ACEOF
11046 rm -f conftest.$ac_objext
11047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11048   (eval $ac_compile) 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); } &&
11052          { ac_try='test -s conftest.$ac_objext'
11053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054   (eval $ac_try) 2>&5
11055   ac_status=$?
11056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057   (exit $ac_status); }; }; then
11058   ac_cv_type_mode_t=yes
11059 else
11060   echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11062
11063 ac_cv_type_mode_t=no
11064 fi
11065 rm -f conftest.$ac_objext conftest.$ac_ext
11066 fi
11067 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11068 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11069 if test $ac_cv_type_mode_t = yes; then
11070   :
11071 else
11072
11073 cat >>confdefs.h <<_ACEOF
11074 #define mode_t int
11075 _ACEOF
11076
11077 fi
11078
11079 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11080 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11081 if test "${ac_cv_type_uid_t+set}" = set; then
11082   echo $ECHO_N "(cached) $ECHO_C" >&6
11083 else
11084   cat >conftest.$ac_ext <<_ACEOF
11085 #line $LINENO "configure"
11086 /* confdefs.h.  */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h.  */
11091 #include <sys/types.h>
11092
11093 _ACEOF
11094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11095   $EGREP "uid_t" >/dev/null 2>&1; then
11096   ac_cv_type_uid_t=yes
11097 else
11098   ac_cv_type_uid_t=no
11099 fi
11100 rm -f conftest*
11101
11102 fi
11103 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11104 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11105 if test $ac_cv_type_uid_t = no; then
11106
11107 cat >>confdefs.h <<\_ACEOF
11108 #define uid_t int
11109 _ACEOF
11110
11111
11112 cat >>confdefs.h <<\_ACEOF
11113 #define gid_t int
11114 _ACEOF
11115
11116 fi
11117
11118 echo "$as_me:$LINENO: checking for size_t" >&5
11119 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11120 if test "${ac_cv_type_size_t+set}" = set; then
11121   echo $ECHO_N "(cached) $ECHO_C" >&6
11122 else
11123   cat >conftest.$ac_ext <<_ACEOF
11124 #line $LINENO "configure"
11125 /* confdefs.h.  */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h.  */
11130 $ac_includes_default
11131 int
11132 main ()
11133 {
11134 if ((size_t *) 0)
11135   return 0;
11136 if (sizeof (size_t))
11137   return 0;
11138   ;
11139   return 0;
11140 }
11141 _ACEOF
11142 rm -f conftest.$ac_objext
11143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11144   (eval $ac_compile) 2>&5
11145   ac_status=$?
11146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147   (exit $ac_status); } &&
11148          { ac_try='test -s conftest.$ac_objext'
11149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150   (eval $ac_try) 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); }; }; then
11154   ac_cv_type_size_t=yes
11155 else
11156   echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11158
11159 ac_cv_type_size_t=no
11160 fi
11161 rm -f conftest.$ac_objext conftest.$ac_ext
11162 fi
11163 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11164 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11165 if test $ac_cv_type_size_t = yes; then
11166   :
11167 else
11168
11169 cat >>confdefs.h <<_ACEOF
11170 #define size_t unsigned
11171 _ACEOF
11172
11173 fi
11174
11175 echo "$as_me:$LINENO: checking for pid_t" >&5
11176 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11177 if test "${ac_cv_type_pid_t+set}" = set; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180   cat >conftest.$ac_ext <<_ACEOF
11181 #line $LINENO "configure"
11182 /* confdefs.h.  */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h.  */
11187 $ac_includes_default
11188 int
11189 main ()
11190 {
11191 if ((pid_t *) 0)
11192   return 0;
11193 if (sizeof (pid_t))
11194   return 0;
11195   ;
11196   return 0;
11197 }
11198 _ACEOF
11199 rm -f conftest.$ac_objext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11201   (eval $ac_compile) 2>&5
11202   ac_status=$?
11203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204   (exit $ac_status); } &&
11205          { ac_try='test -s conftest.$ac_objext'
11206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11207   (eval $ac_try) 2>&5
11208   ac_status=$?
11209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11210   (exit $ac_status); }; }; then
11211   ac_cv_type_pid_t=yes
11212 else
11213   echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11215
11216 ac_cv_type_pid_t=no
11217 fi
11218 rm -f conftest.$ac_objext conftest.$ac_ext
11219 fi
11220 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11221 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11222 if test $ac_cv_type_pid_t = yes; then
11223   :
11224 else
11225
11226 cat >>confdefs.h <<_ACEOF
11227 #define pid_t int
11228 _ACEOF
11229
11230 fi
11231
11232 echo "$as_me:$LINENO: checking for off_t" >&5
11233 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11234 if test "${ac_cv_type_off_t+set}" = set; then
11235   echo $ECHO_N "(cached) $ECHO_C" >&6
11236 else
11237   cat >conftest.$ac_ext <<_ACEOF
11238 #line $LINENO "configure"
11239 /* confdefs.h.  */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h.  */
11244 $ac_includes_default
11245 int
11246 main ()
11247 {
11248 if ((off_t *) 0)
11249   return 0;
11250 if (sizeof (off_t))
11251   return 0;
11252   ;
11253   return 0;
11254 }
11255 _ACEOF
11256 rm -f conftest.$ac_objext
11257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11258   (eval $ac_compile) 2>&5
11259   ac_status=$?
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); } &&
11262          { ac_try='test -s conftest.$ac_objext'
11263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264   (eval $ac_try) 2>&5
11265   ac_status=$?
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); }; }; then
11268   ac_cv_type_off_t=yes
11269 else
11270   echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11272
11273 ac_cv_type_off_t=no
11274 fi
11275 rm -f conftest.$ac_objext conftest.$ac_ext
11276 fi
11277 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11278 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11279 if test $ac_cv_type_off_t = yes; then
11280   :
11281 else
11282
11283 cat >>confdefs.h <<_ACEOF
11284 #define off_t long
11285 _ACEOF
11286
11287 fi
11288
11289 echo "$as_me:$LINENO: checking for ino_t" >&5
11290 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11291 if test "${ac_cv_type_ino_t+set}" = set; then
11292   echo $ECHO_N "(cached) $ECHO_C" >&6
11293 else
11294   cat >conftest.$ac_ext <<_ACEOF
11295 #line $LINENO "configure"
11296 /* confdefs.h.  */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h.  */
11301 $ac_includes_default
11302 int
11303 main ()
11304 {
11305 if ((ino_t *) 0)
11306   return 0;
11307 if (sizeof (ino_t))
11308   return 0;
11309   ;
11310   return 0;
11311 }
11312 _ACEOF
11313 rm -f conftest.$ac_objext
11314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11315   (eval $ac_compile) 2>&5
11316   ac_status=$?
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); } &&
11319          { ac_try='test -s conftest.$ac_objext'
11320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321   (eval $ac_try) 2>&5
11322   ac_status=$?
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); }; }; then
11325   ac_cv_type_ino_t=yes
11326 else
11327   echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11329
11330 ac_cv_type_ino_t=no
11331 fi
11332 rm -f conftest.$ac_objext conftest.$ac_ext
11333 fi
11334 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11335 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11336 if test $ac_cv_type_ino_t = yes; then
11337   :
11338 else
11339
11340 cat >>confdefs.h <<_ACEOF
11341 #define ino_t unsigned long
11342 _ACEOF
11343
11344 fi
11345
11346 echo "$as_me:$LINENO: checking for dev_t" >&5
11347 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11348 if test "${ac_cv_type_dev_t+set}" = set; then
11349   echo $ECHO_N "(cached) $ECHO_C" >&6
11350 else
11351   cat >conftest.$ac_ext <<_ACEOF
11352 #line $LINENO "configure"
11353 /* confdefs.h.  */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h.  */
11358 $ac_includes_default
11359 int
11360 main ()
11361 {
11362 if ((dev_t *) 0)
11363   return 0;
11364 if (sizeof (dev_t))
11365   return 0;
11366   ;
11367   return 0;
11368 }
11369 _ACEOF
11370 rm -f conftest.$ac_objext
11371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11372   (eval $ac_compile) 2>&5
11373   ac_status=$?
11374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375   (exit $ac_status); } &&
11376          { ac_try='test -s conftest.$ac_objext'
11377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378   (eval $ac_try) 2>&5
11379   ac_status=$?
11380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381   (exit $ac_status); }; }; then
11382   ac_cv_type_dev_t=yes
11383 else
11384   echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.$ac_ext >&5
11386
11387 ac_cv_type_dev_t=no
11388 fi
11389 rm -f conftest.$ac_objext conftest.$ac_ext
11390 fi
11391 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11392 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11393 if test $ac_cv_type_dev_t = yes; then
11394   :
11395 else
11396
11397 cat >>confdefs.h <<_ACEOF
11398 #define dev_t unsigned long
11399 _ACEOF
11400
11401 fi
11402
11403 echo "$as_me:$LINENO: checking for daddr_t" >&5
11404 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11405 if test "${ac_cv_type_daddr_t+set}" = set; then
11406   echo $ECHO_N "(cached) $ECHO_C" >&6
11407 else
11408   cat >conftest.$ac_ext <<_ACEOF
11409 #line $LINENO "configure"
11410 /* confdefs.h.  */
11411 _ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h.  */
11415 $ac_includes_default
11416 int
11417 main ()
11418 {
11419 if ((daddr_t *) 0)
11420   return 0;
11421 if (sizeof (daddr_t))
11422   return 0;
11423   ;
11424   return 0;
11425 }
11426 _ACEOF
11427 rm -f conftest.$ac_objext
11428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11429   (eval $ac_compile) 2>&5
11430   ac_status=$?
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); } &&
11433          { ac_try='test -s conftest.$ac_objext'
11434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435   (eval $ac_try) 2>&5
11436   ac_status=$?
11437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438   (exit $ac_status); }; }; then
11439   ac_cv_type_daddr_t=yes
11440 else
11441   echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11443
11444 ac_cv_type_daddr_t=no
11445 fi
11446 rm -f conftest.$ac_objext conftest.$ac_ext
11447 fi
11448 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11449 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11450 if test $ac_cv_type_daddr_t = yes; then
11451   :
11452 else
11453
11454 cat >>confdefs.h <<_ACEOF
11455 #define daddr_t long
11456 _ACEOF
11457
11458 fi
11459
11460 echo "$as_me:$LINENO: checking for major_t" >&5
11461 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11462 if test "${ac_cv_type_major_t+set}" = set; then
11463   echo $ECHO_N "(cached) $ECHO_C" >&6
11464 else
11465   cat >conftest.$ac_ext <<_ACEOF
11466 #line $LINENO "configure"
11467 /* confdefs.h.  */
11468 _ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h.  */
11472 $ac_includes_default
11473 int
11474 main ()
11475 {
11476 if ((major_t *) 0)
11477   return 0;
11478 if (sizeof (major_t))
11479   return 0;
11480   ;
11481   return 0;
11482 }
11483 _ACEOF
11484 rm -f conftest.$ac_objext
11485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11486   (eval $ac_compile) 2>&5
11487   ac_status=$?
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); } &&
11490          { ac_try='test -s conftest.$ac_objext'
11491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492   (eval $ac_try) 2>&5
11493   ac_status=$?
11494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495   (exit $ac_status); }; }; then
11496   ac_cv_type_major_t=yes
11497 else
11498   echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11500
11501 ac_cv_type_major_t=no
11502 fi
11503 rm -f conftest.$ac_objext conftest.$ac_ext
11504 fi
11505 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11506 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11507 if test $ac_cv_type_major_t = yes; then
11508   :
11509 else
11510
11511 cat >>confdefs.h <<_ACEOF
11512 #define major_t int
11513 _ACEOF
11514
11515 fi
11516
11517 echo "$as_me:$LINENO: checking for minor_t" >&5
11518 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11519 if test "${ac_cv_type_minor_t+set}" = set; then
11520   echo $ECHO_N "(cached) $ECHO_C" >&6
11521 else
11522   cat >conftest.$ac_ext <<_ACEOF
11523 #line $LINENO "configure"
11524 /* confdefs.h.  */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h.  */
11529 $ac_includes_default
11530 int
11531 main ()
11532 {
11533 if ((minor_t *) 0)
11534   return 0;
11535 if (sizeof (minor_t))
11536   return 0;
11537   ;
11538   return 0;
11539 }
11540 _ACEOF
11541 rm -f conftest.$ac_objext
11542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11543   (eval $ac_compile) 2>&5
11544   ac_status=$?
11545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546   (exit $ac_status); } &&
11547          { ac_try='test -s conftest.$ac_objext'
11548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549   (eval $ac_try) 2>&5
11550   ac_status=$?
11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552   (exit $ac_status); }; }; then
11553   ac_cv_type_minor_t=yes
11554 else
11555   echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11557
11558 ac_cv_type_minor_t=no
11559 fi
11560 rm -f conftest.$ac_objext conftest.$ac_ext
11561 fi
11562 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11563 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11564 if test $ac_cv_type_minor_t = yes; then
11565   :
11566 else
11567
11568 cat >>confdefs.h <<_ACEOF
11569 #define minor_t int
11570 _ACEOF
11571
11572 fi
11573
11574 echo "$as_me:$LINENO: checking for ssize_t" >&5
11575 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11576 if test "${ac_cv_type_ssize_t+set}" = set; then
11577   echo $ECHO_N "(cached) $ECHO_C" >&6
11578 else
11579   cat >conftest.$ac_ext <<_ACEOF
11580 #line $LINENO "configure"
11581 /* confdefs.h.  */
11582 _ACEOF
11583 cat confdefs.h >>conftest.$ac_ext
11584 cat >>conftest.$ac_ext <<_ACEOF
11585 /* end confdefs.h.  */
11586 $ac_includes_default
11587 int
11588 main ()
11589 {
11590 if ((ssize_t *) 0)
11591   return 0;
11592 if (sizeof (ssize_t))
11593   return 0;
11594   ;
11595   return 0;
11596 }
11597 _ACEOF
11598 rm -f conftest.$ac_objext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11600   (eval $ac_compile) 2>&5
11601   ac_status=$?
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); } &&
11604          { ac_try='test -s conftest.$ac_objext'
11605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606   (eval $ac_try) 2>&5
11607   ac_status=$?
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); }; }; then
11610   ac_cv_type_ssize_t=yes
11611 else
11612   echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11614
11615 ac_cv_type_ssize_t=no
11616 fi
11617 rm -f conftest.$ac_objext conftest.$ac_ext
11618 fi
11619 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11620 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11621 if test $ac_cv_type_ssize_t = yes; then
11622   :
11623 else
11624
11625 cat >>confdefs.h <<_ACEOF
11626 #define ssize_t int
11627 _ACEOF
11628
11629 fi
11630
11631 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11632 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11633 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11634   echo $ECHO_N "(cached) $ECHO_C" >&6
11635 else
11636   cat >conftest.$ac_ext <<_ACEOF
11637 #line $LINENO "configure"
11638 /* confdefs.h.  */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h.  */
11643 $ac_includes_default
11644 int
11645 main ()
11646 {
11647 static struct stat ac_aggr;
11648 if (ac_aggr.st_blocks)
11649 return 0;
11650   ;
11651   return 0;
11652 }
11653 _ACEOF
11654 rm -f conftest.$ac_objext
11655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11656   (eval $ac_compile) 2>&5
11657   ac_status=$?
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); } &&
11660          { ac_try='test -s conftest.$ac_objext'
11661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662   (eval $ac_try) 2>&5
11663   ac_status=$?
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); }; }; then
11666   ac_cv_member_struct_stat_st_blocks=yes
11667 else
11668   echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11670
11671 cat >conftest.$ac_ext <<_ACEOF
11672 #line $LINENO "configure"
11673 /* confdefs.h.  */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h.  */
11678 $ac_includes_default
11679 int
11680 main ()
11681 {
11682 static struct stat ac_aggr;
11683 if (sizeof ac_aggr.st_blocks)
11684 return 0;
11685   ;
11686   return 0;
11687 }
11688 _ACEOF
11689 rm -f conftest.$ac_objext
11690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11691   (eval $ac_compile) 2>&5
11692   ac_status=$?
11693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694   (exit $ac_status); } &&
11695          { ac_try='test -s conftest.$ac_objext'
11696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697   (eval $ac_try) 2>&5
11698   ac_status=$?
11699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700   (exit $ac_status); }; }; then
11701   ac_cv_member_struct_stat_st_blocks=yes
11702 else
11703   echo "$as_me: failed program was:" >&5
11704 sed 's/^/| /' conftest.$ac_ext >&5
11705
11706 ac_cv_member_struct_stat_st_blocks=no
11707 fi
11708 rm -f conftest.$ac_objext conftest.$ac_ext
11709 fi
11710 rm -f conftest.$ac_objext conftest.$ac_ext
11711 fi
11712 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11713 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11714 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11715
11716 cat >>confdefs.h <<_ACEOF
11717 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11718 _ACEOF
11719
11720
11721 cat >>confdefs.h <<\_ACEOF
11722 #define HAVE_ST_BLOCKS 1
11723 _ACEOF
11724
11725 else
11726   LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11727 fi
11728
11729
11730
11731 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11732 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11733 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11734   echo $ECHO_N "(cached) $ECHO_C" >&6
11735 else
11736   cat >conftest.$ac_ext <<_ACEOF
11737 #line $LINENO "configure"
11738 /* confdefs.h.  */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h.  */
11743 $ac_includes_default
11744 int
11745 main ()
11746 {
11747 static struct stat ac_aggr;
11748 if (ac_aggr.st_rdev)
11749 return 0;
11750   ;
11751   return 0;
11752 }
11753 _ACEOF
11754 rm -f conftest.$ac_objext
11755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756   (eval $ac_compile) 2>&5
11757   ac_status=$?
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); } &&
11760          { ac_try='test -s conftest.$ac_objext'
11761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762   (eval $ac_try) 2>&5
11763   ac_status=$?
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); }; }; then
11766   ac_cv_member_struct_stat_st_rdev=yes
11767 else
11768   echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771 cat >conftest.$ac_ext <<_ACEOF
11772 #line $LINENO "configure"
11773 /* confdefs.h.  */
11774 _ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h.  */
11778 $ac_includes_default
11779 int
11780 main ()
11781 {
11782 static struct stat ac_aggr;
11783 if (sizeof ac_aggr.st_rdev)
11784 return 0;
11785   ;
11786   return 0;
11787 }
11788 _ACEOF
11789 rm -f conftest.$ac_objext
11790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791   (eval $ac_compile) 2>&5
11792   ac_status=$?
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); } &&
11795          { ac_try='test -s conftest.$ac_objext'
11796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797   (eval $ac_try) 2>&5
11798   ac_status=$?
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); }; }; then
11801   ac_cv_member_struct_stat_st_rdev=yes
11802 else
11803   echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11805
11806 ac_cv_member_struct_stat_st_rdev=no
11807 fi
11808 rm -f conftest.$ac_objext conftest.$ac_ext
11809 fi
11810 rm -f conftest.$ac_objext conftest.$ac_ext
11811 fi
11812 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11813 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11814 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11815
11816 cat >>confdefs.h <<_ACEOF
11817 #define HAVE_STRUCT_STAT_ST_RDEV 1
11818 _ACEOF
11819
11820
11821 cat >>confdefs.h <<\_ACEOF
11822 #define HAVE_ST_RDEV 1
11823 _ACEOF
11824
11825 fi
11826
11827
11828 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11829 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11830 if test "${ac_cv_struct_tm+set}" = set; then
11831   echo $ECHO_N "(cached) $ECHO_C" >&6
11832 else
11833   cat >conftest.$ac_ext <<_ACEOF
11834 #line $LINENO "configure"
11835 /* confdefs.h.  */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h.  */
11840 #include <sys/types.h>
11841 #include <time.h>
11842
11843 int
11844 main ()
11845 {
11846 struct tm *tp; tp->tm_sec;
11847   ;
11848   return 0;
11849 }
11850 _ACEOF
11851 rm -f conftest.$ac_objext
11852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11853   (eval $ac_compile) 2>&5
11854   ac_status=$?
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); } &&
11857          { ac_try='test -s conftest.$ac_objext'
11858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11859   (eval $ac_try) 2>&5
11860   ac_status=$?
11861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862   (exit $ac_status); }; }; then
11863   ac_cv_struct_tm=time.h
11864 else
11865   echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11867
11868 ac_cv_struct_tm=sys/time.h
11869 fi
11870 rm -f conftest.$ac_objext conftest.$ac_ext
11871 fi
11872 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11873 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11874 if test $ac_cv_struct_tm = sys/time.h; then
11875
11876 cat >>confdefs.h <<\_ACEOF
11877 #define TM_IN_SYS_TIME 1
11878 _ACEOF
11879
11880 fi
11881
11882 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11883 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11884 if test "${ac_cv_c_const+set}" = set; then
11885   echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887   cat >conftest.$ac_ext <<_ACEOF
11888 #line $LINENO "configure"
11889 /* confdefs.h.  */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h.  */
11894
11895 int
11896 main ()
11897 {
11898 /* FIXME: Include the comments suggested by Paul. */
11899 #ifndef __cplusplus
11900   /* Ultrix mips cc rejects this.  */
11901   typedef int charset[2];
11902   const charset x;
11903   /* SunOS 4.1.1 cc rejects this.  */
11904   char const *const *ccp;
11905   char **p;
11906   /* NEC SVR4.0.2 mips cc rejects this.  */
11907   struct point {int x, y;};
11908   static struct point const zero = {0,0};
11909   /* AIX XL C 1.02.0.0 rejects this.
11910      It does not let you subtract one const X* pointer from another in
11911      an arm of an if-expression whose if-part is not a constant
11912      expression */
11913   const char *g = "string";
11914   ccp = &g + (g ? g-g : 0);
11915   /* HPUX 7.0 cc rejects these. */
11916   ++ccp;
11917   p = (char**) ccp;
11918   ccp = (char const *const *) p;
11919   { /* SCO 3.2v4 cc rejects this.  */
11920     char *t;
11921     char const *s = 0 ? (char *) 0 : (char const *) 0;
11922
11923     *t++ = 0;
11924   }
11925   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11926     int x[] = {25, 17};
11927     const int *foo = &x[0];
11928     ++foo;
11929   }
11930   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11931     typedef const int *iptr;
11932     iptr p = 0;
11933     ++p;
11934   }
11935   { /* AIX XL C 1.02.0.0 rejects this saying
11936        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11937     struct s { int j; const int *ap[3]; };
11938     struct s *b; b->j = 5;
11939   }
11940   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11941     const int foo = 10;
11942   }
11943 #endif
11944
11945   ;
11946   return 0;
11947 }
11948 _ACEOF
11949 rm -f conftest.$ac_objext
11950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11951   (eval $ac_compile) 2>&5
11952   ac_status=$?
11953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954   (exit $ac_status); } &&
11955          { ac_try='test -s conftest.$ac_objext'
11956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957   (eval $ac_try) 2>&5
11958   ac_status=$?
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); }; }; then
11961   ac_cv_c_const=yes
11962 else
11963   echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 ac_cv_c_const=no
11967 fi
11968 rm -f conftest.$ac_objext conftest.$ac_ext
11969 fi
11970 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11971 echo "${ECHO_T}$ac_cv_c_const" >&6
11972 if test $ac_cv_c_const = no; then
11973
11974 cat >>confdefs.h <<\_ACEOF
11975 #define const
11976 _ACEOF
11977
11978 fi
11979
11980
11981
11982 echo "$as_me:$LINENO: checking for char" >&5
11983 echo $ECHO_N "checking for char... $ECHO_C" >&6
11984 if test "${ac_cv_type_char+set}" = set; then
11985   echo $ECHO_N "(cached) $ECHO_C" >&6
11986 else
11987   cat >conftest.$ac_ext <<_ACEOF
11988 #line $LINENO "configure"
11989 /* confdefs.h.  */
11990 _ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h.  */
11994 $ac_includes_default
11995 int
11996 main ()
11997 {
11998 if ((char *) 0)
11999   return 0;
12000 if (sizeof (char))
12001   return 0;
12002   ;
12003   return 0;
12004 }
12005 _ACEOF
12006 rm -f conftest.$ac_objext
12007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12008   (eval $ac_compile) 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); } &&
12012          { ac_try='test -s conftest.$ac_objext'
12013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12014   (eval $ac_try) 2>&5
12015   ac_status=$?
12016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017   (exit $ac_status); }; }; then
12018   ac_cv_type_char=yes
12019 else
12020   echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 ac_cv_type_char=no
12024 fi
12025 rm -f conftest.$ac_objext conftest.$ac_ext
12026 fi
12027 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12028 echo "${ECHO_T}$ac_cv_type_char" >&6
12029
12030 echo "$as_me:$LINENO: checking size of char" >&5
12031 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12032 if test "${ac_cv_sizeof_char+set}" = set; then
12033   echo $ECHO_N "(cached) $ECHO_C" >&6
12034 else
12035   if test "$ac_cv_type_char" = yes; then
12036   # The cast to unsigned long works around a bug in the HP C Compiler
12037   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12038   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12039   # This bug is HP SR number 8606223364.
12040   if test "$cross_compiling" = yes; then
12041   # Depending upon the size, compute the lo and hi bounds.
12042 cat >conftest.$ac_ext <<_ACEOF
12043 #line $LINENO "configure"
12044 /* confdefs.h.  */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h.  */
12049 $ac_includes_default
12050 int
12051 main ()
12052 {
12053 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12054 test_array [0] = 0
12055
12056   ;
12057   return 0;
12058 }
12059 _ACEOF
12060 rm -f conftest.$ac_objext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12062   (eval $ac_compile) 2>&5
12063   ac_status=$?
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); } &&
12066          { ac_try='test -s conftest.$ac_objext'
12067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068   (eval $ac_try) 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); }; }; then
12072   ac_lo=0 ac_mid=0
12073   while :; do
12074     cat >conftest.$ac_ext <<_ACEOF
12075 #line $LINENO "configure"
12076 /* confdefs.h.  */
12077 _ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h.  */
12081 $ac_includes_default
12082 int
12083 main ()
12084 {
12085 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12086 test_array [0] = 0
12087
12088   ;
12089   return 0;
12090 }
12091 _ACEOF
12092 rm -f conftest.$ac_objext
12093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12094   (eval $ac_compile) 2>&5
12095   ac_status=$?
12096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097   (exit $ac_status); } &&
12098          { ac_try='test -s conftest.$ac_objext'
12099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100   (eval $ac_try) 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); }; }; then
12104   ac_hi=$ac_mid; break
12105 else
12106   echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12108
12109 ac_lo=`expr $ac_mid + 1`
12110                     if test $ac_lo -le $ac_mid; then
12111                       ac_lo= ac_hi=
12112                       break
12113                     fi
12114                     ac_mid=`expr 2 '*' $ac_mid + 1`
12115 fi
12116 rm -f conftest.$ac_objext conftest.$ac_ext
12117   done
12118 else
12119   echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12121
12122 cat >conftest.$ac_ext <<_ACEOF
12123 #line $LINENO "configure"
12124 /* confdefs.h.  */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h.  */
12129 $ac_includes_default
12130 int
12131 main ()
12132 {
12133 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12134 test_array [0] = 0
12135
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 rm -f conftest.$ac_objext
12141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12142   (eval $ac_compile) 2>&5
12143   ac_status=$?
12144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145   (exit $ac_status); } &&
12146          { ac_try='test -s conftest.$ac_objext'
12147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12148   (eval $ac_try) 2>&5
12149   ac_status=$?
12150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151   (exit $ac_status); }; }; then
12152   ac_hi=-1 ac_mid=-1
12153   while :; do
12154     cat >conftest.$ac_ext <<_ACEOF
12155 #line $LINENO "configure"
12156 /* confdefs.h.  */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h.  */
12161 $ac_includes_default
12162 int
12163 main ()
12164 {
12165 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12166 test_array [0] = 0
12167
12168   ;
12169   return 0;
12170 }
12171 _ACEOF
12172 rm -f conftest.$ac_objext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12174   (eval $ac_compile) 2>&5
12175   ac_status=$?
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } &&
12178          { ac_try='test -s conftest.$ac_objext'
12179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180   (eval $ac_try) 2>&5
12181   ac_status=$?
12182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183   (exit $ac_status); }; }; then
12184   ac_lo=$ac_mid; break
12185 else
12186   echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12188
12189 ac_hi=`expr '(' $ac_mid ')' - 1`
12190                        if test $ac_mid -le $ac_hi; then
12191                          ac_lo= ac_hi=
12192                          break
12193                        fi
12194                        ac_mid=`expr 2 '*' $ac_mid`
12195 fi
12196 rm -f conftest.$ac_objext conftest.$ac_ext
12197   done
12198 else
12199   echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12201
12202 ac_lo= ac_hi=
12203 fi
12204 rm -f conftest.$ac_objext conftest.$ac_ext
12205 fi
12206 rm -f conftest.$ac_objext conftest.$ac_ext
12207 # Binary search between lo and hi bounds.
12208 while test "x$ac_lo" != "x$ac_hi"; do
12209   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12210   cat >conftest.$ac_ext <<_ACEOF
12211 #line $LINENO "configure"
12212 /* confdefs.h.  */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h.  */
12217 $ac_includes_default
12218 int
12219 main ()
12220 {
12221 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12222 test_array [0] = 0
12223
12224   ;
12225   return 0;
12226 }
12227 _ACEOF
12228 rm -f conftest.$ac_objext
12229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12230   (eval $ac_compile) 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); } &&
12234          { ac_try='test -s conftest.$ac_objext'
12235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236   (eval $ac_try) 2>&5
12237   ac_status=$?
12238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); }; }; then
12240   ac_hi=$ac_mid
12241 else
12242   echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12244
12245 ac_lo=`expr '(' $ac_mid ')' + 1`
12246 fi
12247 rm -f conftest.$ac_objext conftest.$ac_ext
12248 done
12249 case $ac_lo in
12250 ?*) ac_cv_sizeof_char=$ac_lo;;
12251 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12252 See \`config.log' for more details." >&5
12253 echo "$as_me: error: cannot compute sizeof (char), 77
12254 See \`config.log' for more details." >&2;}
12255    { (exit 1); exit 1; }; } ;;
12256 esac
12257 else
12258   if test "$cross_compiling" = yes; then
12259   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12260 See \`config.log' for more details." >&5
12261 echo "$as_me: error: cannot run test program while cross compiling
12262 See \`config.log' for more details." >&2;}
12263    { (exit 1); exit 1; }; }
12264 else
12265   cat >conftest.$ac_ext <<_ACEOF
12266 #line $LINENO "configure"
12267 /* confdefs.h.  */
12268 _ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h.  */
12272 $ac_includes_default
12273 long longval () { return (long) (sizeof (char)); }
12274 unsigned long ulongval () { return (long) (sizeof (char)); }
12275 #include <stdio.h>
12276 #include <stdlib.h>
12277 int
12278 main ()
12279 {
12280
12281   FILE *f = fopen ("conftest.val", "w");
12282   if (! f)
12283     exit (1);
12284   if (((long) (sizeof (char))) < 0)
12285     {
12286       long i = longval ();
12287       if (i != ((long) (sizeof (char))))
12288         exit (1);
12289       fprintf (f, "%ld\n", i);
12290     }
12291   else
12292     {
12293       unsigned long i = ulongval ();
12294       if (i != ((long) (sizeof (char))))
12295         exit (1);
12296       fprintf (f, "%lu\n", i);
12297     }
12298   exit (ferror (f) || fclose (f) != 0);
12299
12300   ;
12301   return 0;
12302 }
12303 _ACEOF
12304 rm -f conftest$ac_exeext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12306   (eval $ac_link) 2>&5
12307   ac_status=$?
12308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311   (eval $ac_try) 2>&5
12312   ac_status=$?
12313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314   (exit $ac_status); }; }; then
12315   ac_cv_sizeof_char=`cat conftest.val`
12316 else
12317   echo "$as_me: program exited with status $ac_status" >&5
12318 echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12320
12321 ( exit $ac_status )
12322 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12323 See \`config.log' for more details." >&5
12324 echo "$as_me: error: cannot compute sizeof (char), 77
12325 See \`config.log' for more details." >&2;}
12326    { (exit 1); exit 1; }; }
12327 fi
12328 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12329 fi
12330 fi
12331 rm -f conftest.val
12332 else
12333   ac_cv_sizeof_char=0
12334 fi
12335 fi
12336 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12337 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12338 cat >>confdefs.h <<_ACEOF
12339 #define SIZEOF_CHAR $ac_cv_sizeof_char
12340 _ACEOF
12341
12342
12343 echo "$as_me:$LINENO: checking for short int" >&5
12344 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12345 if test "${ac_cv_type_short_int+set}" = set; then
12346   echo $ECHO_N "(cached) $ECHO_C" >&6
12347 else
12348   cat >conftest.$ac_ext <<_ACEOF
12349 #line $LINENO "configure"
12350 /* confdefs.h.  */
12351 _ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h.  */
12355 $ac_includes_default
12356 int
12357 main ()
12358 {
12359 if ((short int *) 0)
12360   return 0;
12361 if (sizeof (short int))
12362   return 0;
12363   ;
12364   return 0;
12365 }
12366 _ACEOF
12367 rm -f conftest.$ac_objext
12368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12369   (eval $ac_compile) 2>&5
12370   ac_status=$?
12371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372   (exit $ac_status); } &&
12373          { ac_try='test -s conftest.$ac_objext'
12374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375   (eval $ac_try) 2>&5
12376   ac_status=$?
12377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378   (exit $ac_status); }; }; then
12379   ac_cv_type_short_int=yes
12380 else
12381   echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12383
12384 ac_cv_type_short_int=no
12385 fi
12386 rm -f conftest.$ac_objext conftest.$ac_ext
12387 fi
12388 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12389 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12390
12391 echo "$as_me:$LINENO: checking size of short int" >&5
12392 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12393 if test "${ac_cv_sizeof_short_int+set}" = set; then
12394   echo $ECHO_N "(cached) $ECHO_C" >&6
12395 else
12396   if test "$ac_cv_type_short_int" = yes; then
12397   # The cast to unsigned long works around a bug in the HP C Compiler
12398   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12399   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12400   # This bug is HP SR number 8606223364.
12401   if test "$cross_compiling" = yes; then
12402   # Depending upon the size, compute the lo and hi bounds.
12403 cat >conftest.$ac_ext <<_ACEOF
12404 #line $LINENO "configure"
12405 /* confdefs.h.  */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h.  */
12410 $ac_includes_default
12411 int
12412 main ()
12413 {
12414 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12415 test_array [0] = 0
12416
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 rm -f conftest.$ac_objext
12422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12423   (eval $ac_compile) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); } &&
12427          { ac_try='test -s conftest.$ac_objext'
12428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429   (eval $ac_try) 2>&5
12430   ac_status=$?
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); }; }; then
12433   ac_lo=0 ac_mid=0
12434   while :; do
12435     cat >conftest.$ac_ext <<_ACEOF
12436 #line $LINENO "configure"
12437 /* confdefs.h.  */
12438 _ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h.  */
12442 $ac_includes_default
12443 int
12444 main ()
12445 {
12446 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12447 test_array [0] = 0
12448
12449   ;
12450   return 0;
12451 }
12452 _ACEOF
12453 rm -f conftest.$ac_objext
12454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12455   (eval $ac_compile) 2>&5
12456   ac_status=$?
12457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458   (exit $ac_status); } &&
12459          { ac_try='test -s conftest.$ac_objext'
12460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461   (eval $ac_try) 2>&5
12462   ac_status=$?
12463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464   (exit $ac_status); }; }; then
12465   ac_hi=$ac_mid; break
12466 else
12467   echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12469
12470 ac_lo=`expr $ac_mid + 1`
12471                     if test $ac_lo -le $ac_mid; then
12472                       ac_lo= ac_hi=
12473                       break
12474                     fi
12475                     ac_mid=`expr 2 '*' $ac_mid + 1`
12476 fi
12477 rm -f conftest.$ac_objext conftest.$ac_ext
12478   done
12479 else
12480   echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12482
12483 cat >conftest.$ac_ext <<_ACEOF
12484 #line $LINENO "configure"
12485 /* confdefs.h.  */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h.  */
12490 $ac_includes_default
12491 int
12492 main ()
12493 {
12494 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12495 test_array [0] = 0
12496
12497   ;
12498   return 0;
12499 }
12500 _ACEOF
12501 rm -f conftest.$ac_objext
12502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12503   (eval $ac_compile) 2>&5
12504   ac_status=$?
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); } &&
12507          { ac_try='test -s conftest.$ac_objext'
12508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509   (eval $ac_try) 2>&5
12510   ac_status=$?
12511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512   (exit $ac_status); }; }; then
12513   ac_hi=-1 ac_mid=-1
12514   while :; do
12515     cat >conftest.$ac_ext <<_ACEOF
12516 #line $LINENO "configure"
12517 /* confdefs.h.  */
12518 _ACEOF
12519 cat confdefs.h >>conftest.$ac_ext
12520 cat >>conftest.$ac_ext <<_ACEOF
12521 /* end confdefs.h.  */
12522 $ac_includes_default
12523 int
12524 main ()
12525 {
12526 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12527 test_array [0] = 0
12528
12529   ;
12530   return 0;
12531 }
12532 _ACEOF
12533 rm -f conftest.$ac_objext
12534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12535   (eval $ac_compile) 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); } &&
12539          { ac_try='test -s conftest.$ac_objext'
12540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541   (eval $ac_try) 2>&5
12542   ac_status=$?
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); }; }; then
12545   ac_lo=$ac_mid; break
12546 else
12547   echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12549
12550 ac_hi=`expr '(' $ac_mid ')' - 1`
12551                        if test $ac_mid -le $ac_hi; then
12552                          ac_lo= ac_hi=
12553                          break
12554                        fi
12555                        ac_mid=`expr 2 '*' $ac_mid`
12556 fi
12557 rm -f conftest.$ac_objext conftest.$ac_ext
12558   done
12559 else
12560   echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12562
12563 ac_lo= ac_hi=
12564 fi
12565 rm -f conftest.$ac_objext conftest.$ac_ext
12566 fi
12567 rm -f conftest.$ac_objext conftest.$ac_ext
12568 # Binary search between lo and hi bounds.
12569 while test "x$ac_lo" != "x$ac_hi"; do
12570   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12571   cat >conftest.$ac_ext <<_ACEOF
12572 #line $LINENO "configure"
12573 /* confdefs.h.  */
12574 _ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h.  */
12578 $ac_includes_default
12579 int
12580 main ()
12581 {
12582 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12583 test_array [0] = 0
12584
12585   ;
12586   return 0;
12587 }
12588 _ACEOF
12589 rm -f conftest.$ac_objext
12590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12591   (eval $ac_compile) 2>&5
12592   ac_status=$?
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); } &&
12595          { ac_try='test -s conftest.$ac_objext'
12596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597   (eval $ac_try) 2>&5
12598   ac_status=$?
12599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); }; }; then
12601   ac_hi=$ac_mid
12602 else
12603   echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12605
12606 ac_lo=`expr '(' $ac_mid ')' + 1`
12607 fi
12608 rm -f conftest.$ac_objext conftest.$ac_ext
12609 done
12610 case $ac_lo in
12611 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12612 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12613 See \`config.log' for more details." >&5
12614 echo "$as_me: error: cannot compute sizeof (short int), 77
12615 See \`config.log' for more details." >&2;}
12616    { (exit 1); exit 1; }; } ;;
12617 esac
12618 else
12619   if test "$cross_compiling" = yes; then
12620   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12621 See \`config.log' for more details." >&5
12622 echo "$as_me: error: cannot run test program while cross compiling
12623 See \`config.log' for more details." >&2;}
12624    { (exit 1); exit 1; }; }
12625 else
12626   cat >conftest.$ac_ext <<_ACEOF
12627 #line $LINENO "configure"
12628 /* confdefs.h.  */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h.  */
12633 $ac_includes_default
12634 long longval () { return (long) (sizeof (short int)); }
12635 unsigned long ulongval () { return (long) (sizeof (short int)); }
12636 #include <stdio.h>
12637 #include <stdlib.h>
12638 int
12639 main ()
12640 {
12641
12642   FILE *f = fopen ("conftest.val", "w");
12643   if (! f)
12644     exit (1);
12645   if (((long) (sizeof (short int))) < 0)
12646     {
12647       long i = longval ();
12648       if (i != ((long) (sizeof (short int))))
12649         exit (1);
12650       fprintf (f, "%ld\n", i);
12651     }
12652   else
12653     {
12654       unsigned long i = ulongval ();
12655       if (i != ((long) (sizeof (short int))))
12656         exit (1);
12657       fprintf (f, "%lu\n", i);
12658     }
12659   exit (ferror (f) || fclose (f) != 0);
12660
12661   ;
12662   return 0;
12663 }
12664 _ACEOF
12665 rm -f conftest$ac_exeext
12666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12667   (eval $ac_link) 2>&5
12668   ac_status=$?
12669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672   (eval $ac_try) 2>&5
12673   ac_status=$?
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); }; }; then
12676   ac_cv_sizeof_short_int=`cat conftest.val`
12677 else
12678   echo "$as_me: program exited with status $ac_status" >&5
12679 echo "$as_me: failed program was:" >&5
12680 sed 's/^/| /' conftest.$ac_ext >&5
12681
12682 ( exit $ac_status )
12683 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12684 See \`config.log' for more details." >&5
12685 echo "$as_me: error: cannot compute sizeof (short int), 77
12686 See \`config.log' for more details." >&2;}
12687    { (exit 1); exit 1; }; }
12688 fi
12689 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12690 fi
12691 fi
12692 rm -f conftest.val
12693 else
12694   ac_cv_sizeof_short_int=0
12695 fi
12696 fi
12697 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12698 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12699 cat >>confdefs.h <<_ACEOF
12700 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12701 _ACEOF
12702
12703
12704 echo "$as_me:$LINENO: checking for int" >&5
12705 echo $ECHO_N "checking for int... $ECHO_C" >&6
12706 if test "${ac_cv_type_int+set}" = set; then
12707   echo $ECHO_N "(cached) $ECHO_C" >&6
12708 else
12709   cat >conftest.$ac_ext <<_ACEOF
12710 #line $LINENO "configure"
12711 /* confdefs.h.  */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h.  */
12716 $ac_includes_default
12717 int
12718 main ()
12719 {
12720 if ((int *) 0)
12721   return 0;
12722 if (sizeof (int))
12723   return 0;
12724   ;
12725   return 0;
12726 }
12727 _ACEOF
12728 rm -f conftest.$ac_objext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730   (eval $ac_compile) 2>&5
12731   ac_status=$?
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); } &&
12734          { ac_try='test -s conftest.$ac_objext'
12735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736   (eval $ac_try) 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); }; }; then
12740   ac_cv_type_int=yes
12741 else
12742   echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12744
12745 ac_cv_type_int=no
12746 fi
12747 rm -f conftest.$ac_objext conftest.$ac_ext
12748 fi
12749 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12750 echo "${ECHO_T}$ac_cv_type_int" >&6
12751
12752 echo "$as_me:$LINENO: checking size of int" >&5
12753 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12754 if test "${ac_cv_sizeof_int+set}" = set; then
12755   echo $ECHO_N "(cached) $ECHO_C" >&6
12756 else
12757   if test "$ac_cv_type_int" = yes; then
12758   # The cast to unsigned long works around a bug in the HP C Compiler
12759   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12760   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12761   # This bug is HP SR number 8606223364.
12762   if test "$cross_compiling" = yes; then
12763   # Depending upon the size, compute the lo and hi bounds.
12764 cat >conftest.$ac_ext <<_ACEOF
12765 #line $LINENO "configure"
12766 /* confdefs.h.  */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h.  */
12771 $ac_includes_default
12772 int
12773 main ()
12774 {
12775 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12776 test_array [0] = 0
12777
12778   ;
12779   return 0;
12780 }
12781 _ACEOF
12782 rm -f conftest.$ac_objext
12783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12784   (eval $ac_compile) 2>&5
12785   ac_status=$?
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); } &&
12788          { ac_try='test -s conftest.$ac_objext'
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   ac_lo=0 ac_mid=0
12795   while :; do
12796     cat >conftest.$ac_ext <<_ACEOF
12797 #line $LINENO "configure"
12798 /* confdefs.h.  */
12799 _ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h.  */
12803 $ac_includes_default
12804 int
12805 main ()
12806 {
12807 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12808 test_array [0] = 0
12809
12810   ;
12811   return 0;
12812 }
12813 _ACEOF
12814 rm -f conftest.$ac_objext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12816   (eval $ac_compile) 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); } &&
12820          { ac_try='test -s conftest.$ac_objext'
12821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12822   (eval $ac_try) 2>&5
12823   ac_status=$?
12824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); }; }; then
12826   ac_hi=$ac_mid; break
12827 else
12828   echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12830
12831 ac_lo=`expr $ac_mid + 1`
12832                     if test $ac_lo -le $ac_mid; then
12833                       ac_lo= ac_hi=
12834                       break
12835                     fi
12836                     ac_mid=`expr 2 '*' $ac_mid + 1`
12837 fi
12838 rm -f conftest.$ac_objext conftest.$ac_ext
12839   done
12840 else
12841   echo "$as_me: failed program was:" >&5
12842 sed 's/^/| /' conftest.$ac_ext >&5
12843
12844 cat >conftest.$ac_ext <<_ACEOF
12845 #line $LINENO "configure"
12846 /* confdefs.h.  */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h.  */
12851 $ac_includes_default
12852 int
12853 main ()
12854 {
12855 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12856 test_array [0] = 0
12857
12858   ;
12859   return 0;
12860 }
12861 _ACEOF
12862 rm -f conftest.$ac_objext
12863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864   (eval $ac_compile) 2>&5
12865   ac_status=$?
12866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867   (exit $ac_status); } &&
12868          { ac_try='test -s conftest.$ac_objext'
12869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12870   (eval $ac_try) 2>&5
12871   ac_status=$?
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); }; }; then
12874   ac_hi=-1 ac_mid=-1
12875   while :; do
12876     cat >conftest.$ac_ext <<_ACEOF
12877 #line $LINENO "configure"
12878 /* confdefs.h.  */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h.  */
12883 $ac_includes_default
12884 int
12885 main ()
12886 {
12887 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12888 test_array [0] = 0
12889
12890   ;
12891   return 0;
12892 }
12893 _ACEOF
12894 rm -f conftest.$ac_objext
12895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12896   (eval $ac_compile) 2>&5
12897   ac_status=$?
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); } &&
12900          { ac_try='test -s conftest.$ac_objext'
12901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902   (eval $ac_try) 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; }; then
12906   ac_lo=$ac_mid; break
12907 else
12908   echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12910
12911 ac_hi=`expr '(' $ac_mid ')' - 1`
12912                        if test $ac_mid -le $ac_hi; then
12913                          ac_lo= ac_hi=
12914                          break
12915                        fi
12916                        ac_mid=`expr 2 '*' $ac_mid`
12917 fi
12918 rm -f conftest.$ac_objext conftest.$ac_ext
12919   done
12920 else
12921   echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12923
12924 ac_lo= ac_hi=
12925 fi
12926 rm -f conftest.$ac_objext conftest.$ac_ext
12927 fi
12928 rm -f conftest.$ac_objext conftest.$ac_ext
12929 # Binary search between lo and hi bounds.
12930 while test "x$ac_lo" != "x$ac_hi"; do
12931   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12932   cat >conftest.$ac_ext <<_ACEOF
12933 #line $LINENO "configure"
12934 /* confdefs.h.  */
12935 _ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h.  */
12939 $ac_includes_default
12940 int
12941 main ()
12942 {
12943 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12944 test_array [0] = 0
12945
12946   ;
12947   return 0;
12948 }
12949 _ACEOF
12950 rm -f conftest.$ac_objext
12951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12952   (eval $ac_compile) 2>&5
12953   ac_status=$?
12954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955   (exit $ac_status); } &&
12956          { ac_try='test -s conftest.$ac_objext'
12957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958   (eval $ac_try) 2>&5
12959   ac_status=$?
12960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961   (exit $ac_status); }; }; then
12962   ac_hi=$ac_mid
12963 else
12964   echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12966
12967 ac_lo=`expr '(' $ac_mid ')' + 1`
12968 fi
12969 rm -f conftest.$ac_objext conftest.$ac_ext
12970 done
12971 case $ac_lo in
12972 ?*) ac_cv_sizeof_int=$ac_lo;;
12973 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12974 See \`config.log' for more details." >&5
12975 echo "$as_me: error: cannot compute sizeof (int), 77
12976 See \`config.log' for more details." >&2;}
12977    { (exit 1); exit 1; }; } ;;
12978 esac
12979 else
12980   if test "$cross_compiling" = yes; then
12981   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12982 See \`config.log' for more details." >&5
12983 echo "$as_me: error: cannot run test program while cross compiling
12984 See \`config.log' for more details." >&2;}
12985    { (exit 1); exit 1; }; }
12986 else
12987   cat >conftest.$ac_ext <<_ACEOF
12988 #line $LINENO "configure"
12989 /* confdefs.h.  */
12990 _ACEOF
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h.  */
12994 $ac_includes_default
12995 long longval () { return (long) (sizeof (int)); }
12996 unsigned long ulongval () { return (long) (sizeof (int)); }
12997 #include <stdio.h>
12998 #include <stdlib.h>
12999 int
13000 main ()
13001 {
13002
13003   FILE *f = fopen ("conftest.val", "w");
13004   if (! f)
13005     exit (1);
13006   if (((long) (sizeof (int))) < 0)
13007     {
13008       long i = longval ();
13009       if (i != ((long) (sizeof (int))))
13010         exit (1);
13011       fprintf (f, "%ld\n", i);
13012     }
13013   else
13014     {
13015       unsigned long i = ulongval ();
13016       if (i != ((long) (sizeof (int))))
13017         exit (1);
13018       fprintf (f, "%lu\n", i);
13019     }
13020   exit (ferror (f) || fclose (f) != 0);
13021
13022   ;
13023   return 0;
13024 }
13025 _ACEOF
13026 rm -f conftest$ac_exeext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13028   (eval $ac_link) 2>&5
13029   ac_status=$?
13030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033   (eval $ac_try) 2>&5
13034   ac_status=$?
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); }; }; then
13037   ac_cv_sizeof_int=`cat conftest.val`
13038 else
13039   echo "$as_me: program exited with status $ac_status" >&5
13040 echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13042
13043 ( exit $ac_status )
13044 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13045 See \`config.log' for more details." >&5
13046 echo "$as_me: error: cannot compute sizeof (int), 77
13047 See \`config.log' for more details." >&2;}
13048    { (exit 1); exit 1; }; }
13049 fi
13050 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13051 fi
13052 fi
13053 rm -f conftest.val
13054 else
13055   ac_cv_sizeof_int=0
13056 fi
13057 fi
13058 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13059 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13060 cat >>confdefs.h <<_ACEOF
13061 #define SIZEOF_INT $ac_cv_sizeof_int
13062 _ACEOF
13063
13064
13065 echo "$as_me:$LINENO: checking for long int" >&5
13066 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13067 if test "${ac_cv_type_long_int+set}" = set; then
13068   echo $ECHO_N "(cached) $ECHO_C" >&6
13069 else
13070   cat >conftest.$ac_ext <<_ACEOF
13071 #line $LINENO "configure"
13072 /* confdefs.h.  */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h.  */
13077 $ac_includes_default
13078 int
13079 main ()
13080 {
13081 if ((long int *) 0)
13082   return 0;
13083 if (sizeof (long int))
13084   return 0;
13085   ;
13086   return 0;
13087 }
13088 _ACEOF
13089 rm -f conftest.$ac_objext
13090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13091   (eval $ac_compile) 2>&5
13092   ac_status=$?
13093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094   (exit $ac_status); } &&
13095          { ac_try='test -s conftest.$ac_objext'
13096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097   (eval $ac_try) 2>&5
13098   ac_status=$?
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); }; }; then
13101   ac_cv_type_long_int=yes
13102 else
13103   echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13105
13106 ac_cv_type_long_int=no
13107 fi
13108 rm -f conftest.$ac_objext conftest.$ac_ext
13109 fi
13110 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13111 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13112
13113 echo "$as_me:$LINENO: checking size of long int" >&5
13114 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13115 if test "${ac_cv_sizeof_long_int+set}" = set; then
13116   echo $ECHO_N "(cached) $ECHO_C" >&6
13117 else
13118   if test "$ac_cv_type_long_int" = yes; then
13119   # The cast to unsigned long works around a bug in the HP C Compiler
13120   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13121   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13122   # This bug is HP SR number 8606223364.
13123   if test "$cross_compiling" = yes; then
13124   # Depending upon the size, compute the lo and hi bounds.
13125 cat >conftest.$ac_ext <<_ACEOF
13126 #line $LINENO "configure"
13127 /* confdefs.h.  */
13128 _ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h.  */
13132 $ac_includes_default
13133 int
13134 main ()
13135 {
13136 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13137 test_array [0] = 0
13138
13139   ;
13140   return 0;
13141 }
13142 _ACEOF
13143 rm -f conftest.$ac_objext
13144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13145   (eval $ac_compile) 2>&5
13146   ac_status=$?
13147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13148   (exit $ac_status); } &&
13149          { ac_try='test -s conftest.$ac_objext'
13150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13151   (eval $ac_try) 2>&5
13152   ac_status=$?
13153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154   (exit $ac_status); }; }; then
13155   ac_lo=0 ac_mid=0
13156   while :; do
13157     cat >conftest.$ac_ext <<_ACEOF
13158 #line $LINENO "configure"
13159 /* confdefs.h.  */
13160 _ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h.  */
13164 $ac_includes_default
13165 int
13166 main ()
13167 {
13168 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13169 test_array [0] = 0
13170
13171   ;
13172   return 0;
13173 }
13174 _ACEOF
13175 rm -f conftest.$ac_objext
13176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13177   (eval $ac_compile) 2>&5
13178   ac_status=$?
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); } &&
13181          { ac_try='test -s conftest.$ac_objext'
13182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183   (eval $ac_try) 2>&5
13184   ac_status=$?
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); }; }; then
13187   ac_hi=$ac_mid; break
13188 else
13189   echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.$ac_ext >&5
13191
13192 ac_lo=`expr $ac_mid + 1`
13193                     if test $ac_lo -le $ac_mid; then
13194                       ac_lo= ac_hi=
13195                       break
13196                     fi
13197                     ac_mid=`expr 2 '*' $ac_mid + 1`
13198 fi
13199 rm -f conftest.$ac_objext conftest.$ac_ext
13200   done
13201 else
13202   echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13204
13205 cat >conftest.$ac_ext <<_ACEOF
13206 #line $LINENO "configure"
13207 /* confdefs.h.  */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h.  */
13212 $ac_includes_default
13213 int
13214 main ()
13215 {
13216 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13217 test_array [0] = 0
13218
13219   ;
13220   return 0;
13221 }
13222 _ACEOF
13223 rm -f conftest.$ac_objext
13224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13225   (eval $ac_compile) 2>&5
13226   ac_status=$?
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); } &&
13229          { ac_try='test -s conftest.$ac_objext'
13230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13231   (eval $ac_try) 2>&5
13232   ac_status=$?
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); }; }; then
13235   ac_hi=-1 ac_mid=-1
13236   while :; do
13237     cat >conftest.$ac_ext <<_ACEOF
13238 #line $LINENO "configure"
13239 /* confdefs.h.  */
13240 _ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h.  */
13244 $ac_includes_default
13245 int
13246 main ()
13247 {
13248 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13249 test_array [0] = 0
13250
13251   ;
13252   return 0;
13253 }
13254 _ACEOF
13255 rm -f conftest.$ac_objext
13256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13257   (eval $ac_compile) 2>&5
13258   ac_status=$?
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); } &&
13261          { ac_try='test -s conftest.$ac_objext'
13262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263   (eval $ac_try) 2>&5
13264   ac_status=$?
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); }; }; then
13267   ac_lo=$ac_mid; break
13268 else
13269   echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272 ac_hi=`expr '(' $ac_mid ')' - 1`
13273                        if test $ac_mid -le $ac_hi; then
13274                          ac_lo= ac_hi=
13275                          break
13276                        fi
13277                        ac_mid=`expr 2 '*' $ac_mid`
13278 fi
13279 rm -f conftest.$ac_objext conftest.$ac_ext
13280   done
13281 else
13282   echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13284
13285 ac_lo= ac_hi=
13286 fi
13287 rm -f conftest.$ac_objext conftest.$ac_ext
13288 fi
13289 rm -f conftest.$ac_objext conftest.$ac_ext
13290 # Binary search between lo and hi bounds.
13291 while test "x$ac_lo" != "x$ac_hi"; do
13292   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13293   cat >conftest.$ac_ext <<_ACEOF
13294 #line $LINENO "configure"
13295 /* confdefs.h.  */
13296 _ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h.  */
13300 $ac_includes_default
13301 int
13302 main ()
13303 {
13304 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13305 test_array [0] = 0
13306
13307   ;
13308   return 0;
13309 }
13310 _ACEOF
13311 rm -f conftest.$ac_objext
13312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13313   (eval $ac_compile) 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); } &&
13317          { ac_try='test -s conftest.$ac_objext'
13318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13319   (eval $ac_try) 2>&5
13320   ac_status=$?
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); }; }; then
13323   ac_hi=$ac_mid
13324 else
13325   echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13327
13328 ac_lo=`expr '(' $ac_mid ')' + 1`
13329 fi
13330 rm -f conftest.$ac_objext conftest.$ac_ext
13331 done
13332 case $ac_lo in
13333 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13334 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13335 See \`config.log' for more details." >&5
13336 echo "$as_me: error: cannot compute sizeof (long int), 77
13337 See \`config.log' for more details." >&2;}
13338    { (exit 1); exit 1; }; } ;;
13339 esac
13340 else
13341   if test "$cross_compiling" = yes; then
13342   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13343 See \`config.log' for more details." >&5
13344 echo "$as_me: error: cannot run test program while cross compiling
13345 See \`config.log' for more details." >&2;}
13346    { (exit 1); exit 1; }; }
13347 else
13348   cat >conftest.$ac_ext <<_ACEOF
13349 #line $LINENO "configure"
13350 /* confdefs.h.  */
13351 _ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h.  */
13355 $ac_includes_default
13356 long longval () { return (long) (sizeof (long int)); }
13357 unsigned long ulongval () { return (long) (sizeof (long int)); }
13358 #include <stdio.h>
13359 #include <stdlib.h>
13360 int
13361 main ()
13362 {
13363
13364   FILE *f = fopen ("conftest.val", "w");
13365   if (! f)
13366     exit (1);
13367   if (((long) (sizeof (long int))) < 0)
13368     {
13369       long i = longval ();
13370       if (i != ((long) (sizeof (long int))))
13371         exit (1);
13372       fprintf (f, "%ld\n", i);
13373     }
13374   else
13375     {
13376       unsigned long i = ulongval ();
13377       if (i != ((long) (sizeof (long int))))
13378         exit (1);
13379       fprintf (f, "%lu\n", i);
13380     }
13381   exit (ferror (f) || fclose (f) != 0);
13382
13383   ;
13384   return 0;
13385 }
13386 _ACEOF
13387 rm -f conftest$ac_exeext
13388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13389   (eval $ac_link) 2>&5
13390   ac_status=$?
13391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394   (eval $ac_try) 2>&5
13395   ac_status=$?
13396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397   (exit $ac_status); }; }; then
13398   ac_cv_sizeof_long_int=`cat conftest.val`
13399 else
13400   echo "$as_me: program exited with status $ac_status" >&5
13401 echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13403
13404 ( exit $ac_status )
13405 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13406 See \`config.log' for more details." >&5
13407 echo "$as_me: error: cannot compute sizeof (long int), 77
13408 See \`config.log' for more details." >&2;}
13409    { (exit 1); exit 1; }; }
13410 fi
13411 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13412 fi
13413 fi
13414 rm -f conftest.val
13415 else
13416   ac_cv_sizeof_long_int=0
13417 fi
13418 fi
13419 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13420 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13421 cat >>confdefs.h <<_ACEOF
13422 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13423 _ACEOF
13424
13425
13426 echo "$as_me:$LINENO: checking for long long int" >&5
13427 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13428 if test "${ac_cv_type_long_long_int+set}" = set; then
13429   echo $ECHO_N "(cached) $ECHO_C" >&6
13430 else
13431   cat >conftest.$ac_ext <<_ACEOF
13432 #line $LINENO "configure"
13433 /* confdefs.h.  */
13434 _ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h.  */
13438 $ac_includes_default
13439 int
13440 main ()
13441 {
13442 if ((long long int *) 0)
13443   return 0;
13444 if (sizeof (long long int))
13445   return 0;
13446   ;
13447   return 0;
13448 }
13449 _ACEOF
13450 rm -f conftest.$ac_objext
13451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13452   (eval $ac_compile) 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); } &&
13456          { ac_try='test -s conftest.$ac_objext'
13457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458   (eval $ac_try) 2>&5
13459   ac_status=$?
13460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461   (exit $ac_status); }; }; then
13462   ac_cv_type_long_long_int=yes
13463 else
13464   echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13466
13467 ac_cv_type_long_long_int=no
13468 fi
13469 rm -f conftest.$ac_objext conftest.$ac_ext
13470 fi
13471 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13472 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13473
13474 echo "$as_me:$LINENO: checking size of long long int" >&5
13475 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13476 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13477   echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479   if test "$ac_cv_type_long_long_int" = yes; then
13480   # The cast to unsigned long works around a bug in the HP C Compiler
13481   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13482   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13483   # This bug is HP SR number 8606223364.
13484   if test "$cross_compiling" = yes; then
13485   # Depending upon the size, compute the lo and hi bounds.
13486 cat >conftest.$ac_ext <<_ACEOF
13487 #line $LINENO "configure"
13488 /* confdefs.h.  */
13489 _ACEOF
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h.  */
13493 $ac_includes_default
13494 int
13495 main ()
13496 {
13497 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13498 test_array [0] = 0
13499
13500   ;
13501   return 0;
13502 }
13503 _ACEOF
13504 rm -f conftest.$ac_objext
13505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13506   (eval $ac_compile) 2>&5
13507   ac_status=$?
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); } &&
13510          { ac_try='test -s conftest.$ac_objext'
13511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512   (eval $ac_try) 2>&5
13513   ac_status=$?
13514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515   (exit $ac_status); }; }; then
13516   ac_lo=0 ac_mid=0
13517   while :; do
13518     cat >conftest.$ac_ext <<_ACEOF
13519 #line $LINENO "configure"
13520 /* confdefs.h.  */
13521 _ACEOF
13522 cat confdefs.h >>conftest.$ac_ext
13523 cat >>conftest.$ac_ext <<_ACEOF
13524 /* end confdefs.h.  */
13525 $ac_includes_default
13526 int
13527 main ()
13528 {
13529 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13530 test_array [0] = 0
13531
13532   ;
13533   return 0;
13534 }
13535 _ACEOF
13536 rm -f conftest.$ac_objext
13537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13538   (eval $ac_compile) 2>&5
13539   ac_status=$?
13540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541   (exit $ac_status); } &&
13542          { ac_try='test -s conftest.$ac_objext'
13543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13544   (eval $ac_try) 2>&5
13545   ac_status=$?
13546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); }; }; then
13548   ac_hi=$ac_mid; break
13549 else
13550   echo "$as_me: failed program was:" >&5
13551 sed 's/^/| /' conftest.$ac_ext >&5
13552
13553 ac_lo=`expr $ac_mid + 1`
13554                     if test $ac_lo -le $ac_mid; then
13555                       ac_lo= ac_hi=
13556                       break
13557                     fi
13558                     ac_mid=`expr 2 '*' $ac_mid + 1`
13559 fi
13560 rm -f conftest.$ac_objext conftest.$ac_ext
13561   done
13562 else
13563   echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13565
13566 cat >conftest.$ac_ext <<_ACEOF
13567 #line $LINENO "configure"
13568 /* confdefs.h.  */
13569 _ACEOF
13570 cat confdefs.h >>conftest.$ac_ext
13571 cat >>conftest.$ac_ext <<_ACEOF
13572 /* end confdefs.h.  */
13573 $ac_includes_default
13574 int
13575 main ()
13576 {
13577 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13578 test_array [0] = 0
13579
13580   ;
13581   return 0;
13582 }
13583 _ACEOF
13584 rm -f conftest.$ac_objext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13586   (eval $ac_compile) 2>&5
13587   ac_status=$?
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); } &&
13590          { ac_try='test -s conftest.$ac_objext'
13591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13592   (eval $ac_try) 2>&5
13593   ac_status=$?
13594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595   (exit $ac_status); }; }; then
13596   ac_hi=-1 ac_mid=-1
13597   while :; do
13598     cat >conftest.$ac_ext <<_ACEOF
13599 #line $LINENO "configure"
13600 /* confdefs.h.  */
13601 _ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h.  */
13605 $ac_includes_default
13606 int
13607 main ()
13608 {
13609 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13610 test_array [0] = 0
13611
13612   ;
13613   return 0;
13614 }
13615 _ACEOF
13616 rm -f conftest.$ac_objext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13618   (eval $ac_compile) 2>&5
13619   ac_status=$?
13620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621   (exit $ac_status); } &&
13622          { ac_try='test -s conftest.$ac_objext'
13623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13624   (eval $ac_try) 2>&5
13625   ac_status=$?
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); }; }; then
13628   ac_lo=$ac_mid; break
13629 else
13630   echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13632
13633 ac_hi=`expr '(' $ac_mid ')' - 1`
13634                        if test $ac_mid -le $ac_hi; then
13635                          ac_lo= ac_hi=
13636                          break
13637                        fi
13638                        ac_mid=`expr 2 '*' $ac_mid`
13639 fi
13640 rm -f conftest.$ac_objext conftest.$ac_ext
13641   done
13642 else
13643   echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13645
13646 ac_lo= ac_hi=
13647 fi
13648 rm -f conftest.$ac_objext conftest.$ac_ext
13649 fi
13650 rm -f conftest.$ac_objext conftest.$ac_ext
13651 # Binary search between lo and hi bounds.
13652 while test "x$ac_lo" != "x$ac_hi"; do
13653   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13654   cat >conftest.$ac_ext <<_ACEOF
13655 #line $LINENO "configure"
13656 /* confdefs.h.  */
13657 _ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h.  */
13661 $ac_includes_default
13662 int
13663 main ()
13664 {
13665 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13666 test_array [0] = 0
13667
13668   ;
13669   return 0;
13670 }
13671 _ACEOF
13672 rm -f conftest.$ac_objext
13673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13674   (eval $ac_compile) 2>&5
13675   ac_status=$?
13676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677   (exit $ac_status); } &&
13678          { ac_try='test -s conftest.$ac_objext'
13679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680   (eval $ac_try) 2>&5
13681   ac_status=$?
13682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683   (exit $ac_status); }; }; then
13684   ac_hi=$ac_mid
13685 else
13686   echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13688
13689 ac_lo=`expr '(' $ac_mid ')' + 1`
13690 fi
13691 rm -f conftest.$ac_objext conftest.$ac_ext
13692 done
13693 case $ac_lo in
13694 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13695 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13696 See \`config.log' for more details." >&5
13697 echo "$as_me: error: cannot compute sizeof (long long int), 77
13698 See \`config.log' for more details." >&2;}
13699    { (exit 1); exit 1; }; } ;;
13700 esac
13701 else
13702   if test "$cross_compiling" = yes; then
13703   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13704 See \`config.log' for more details." >&5
13705 echo "$as_me: error: cannot run test program while cross compiling
13706 See \`config.log' for more details." >&2;}
13707    { (exit 1); exit 1; }; }
13708 else
13709   cat >conftest.$ac_ext <<_ACEOF
13710 #line $LINENO "configure"
13711 /* confdefs.h.  */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h.  */
13716 $ac_includes_default
13717 long longval () { return (long) (sizeof (long long int)); }
13718 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13719 #include <stdio.h>
13720 #include <stdlib.h>
13721 int
13722 main ()
13723 {
13724
13725   FILE *f = fopen ("conftest.val", "w");
13726   if (! f)
13727     exit (1);
13728   if (((long) (sizeof (long long int))) < 0)
13729     {
13730       long i = longval ();
13731       if (i != ((long) (sizeof (long long int))))
13732         exit (1);
13733       fprintf (f, "%ld\n", i);
13734     }
13735   else
13736     {
13737       unsigned long i = ulongval ();
13738       if (i != ((long) (sizeof (long long int))))
13739         exit (1);
13740       fprintf (f, "%lu\n", i);
13741     }
13742   exit (ferror (f) || fclose (f) != 0);
13743
13744   ;
13745   return 0;
13746 }
13747 _ACEOF
13748 rm -f conftest$ac_exeext
13749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13750   (eval $ac_link) 2>&5
13751   ac_status=$?
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755   (eval $ac_try) 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; }; then
13759   ac_cv_sizeof_long_long_int=`cat conftest.val`
13760 else
13761   echo "$as_me: program exited with status $ac_status" >&5
13762 echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.$ac_ext >&5
13764
13765 ( exit $ac_status )
13766 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13767 See \`config.log' for more details." >&5
13768 echo "$as_me: error: cannot compute sizeof (long long int), 77
13769 See \`config.log' for more details." >&2;}
13770    { (exit 1); exit 1; }; }
13771 fi
13772 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13773 fi
13774 fi
13775 rm -f conftest.val
13776 else
13777   ac_cv_sizeof_long_long_int=0
13778 fi
13779 fi
13780 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13781 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13782 cat >>confdefs.h <<_ACEOF
13783 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13784 _ACEOF
13785
13786
13787 echo "$as_me:$LINENO: checking for int *" >&5
13788 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13789 if test "${ac_cv_type_int_p+set}" = set; then
13790   echo $ECHO_N "(cached) $ECHO_C" >&6
13791 else
13792   cat >conftest.$ac_ext <<_ACEOF
13793 #line $LINENO "configure"
13794 /* confdefs.h.  */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h.  */
13799 $ac_includes_default
13800 int
13801 main ()
13802 {
13803 if ((int * *) 0)
13804   return 0;
13805 if (sizeof (int *))
13806   return 0;
13807   ;
13808   return 0;
13809 }
13810 _ACEOF
13811 rm -f conftest.$ac_objext
13812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13813   (eval $ac_compile) 2>&5
13814   ac_status=$?
13815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); } &&
13817          { ac_try='test -s conftest.$ac_objext'
13818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819   (eval $ac_try) 2>&5
13820   ac_status=$?
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); }; }; then
13823   ac_cv_type_int_p=yes
13824 else
13825   echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13827
13828 ac_cv_type_int_p=no
13829 fi
13830 rm -f conftest.$ac_objext conftest.$ac_ext
13831 fi
13832 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13833 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13834
13835 echo "$as_me:$LINENO: checking size of int *" >&5
13836 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13837 if test "${ac_cv_sizeof_int_p+set}" = set; then
13838   echo $ECHO_N "(cached) $ECHO_C" >&6
13839 else
13840   if test "$ac_cv_type_int_p" = yes; then
13841   # The cast to unsigned long works around a bug in the HP C Compiler
13842   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13843   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13844   # This bug is HP SR number 8606223364.
13845   if test "$cross_compiling" = yes; then
13846   # Depending upon the size, compute the lo and hi bounds.
13847 cat >conftest.$ac_ext <<_ACEOF
13848 #line $LINENO "configure"
13849 /* confdefs.h.  */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h.  */
13854 $ac_includes_default
13855 int
13856 main ()
13857 {
13858 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13859 test_array [0] = 0
13860
13861   ;
13862   return 0;
13863 }
13864 _ACEOF
13865 rm -f conftest.$ac_objext
13866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13867   (eval $ac_compile) 2>&5
13868   ac_status=$?
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); } &&
13871          { ac_try='test -s conftest.$ac_objext'
13872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873   (eval $ac_try) 2>&5
13874   ac_status=$?
13875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876   (exit $ac_status); }; }; then
13877   ac_lo=0 ac_mid=0
13878   while :; do
13879     cat >conftest.$ac_ext <<_ACEOF
13880 #line $LINENO "configure"
13881 /* confdefs.h.  */
13882 _ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h.  */
13886 $ac_includes_default
13887 int
13888 main ()
13889 {
13890 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13891 test_array [0] = 0
13892
13893   ;
13894   return 0;
13895 }
13896 _ACEOF
13897 rm -f conftest.$ac_objext
13898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13899   (eval $ac_compile) 2>&5
13900   ac_status=$?
13901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902   (exit $ac_status); } &&
13903          { ac_try='test -s conftest.$ac_objext'
13904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905   (eval $ac_try) 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; }; then
13909   ac_hi=$ac_mid; break
13910 else
13911   echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13913
13914 ac_lo=`expr $ac_mid + 1`
13915                     if test $ac_lo -le $ac_mid; then
13916                       ac_lo= ac_hi=
13917                       break
13918                     fi
13919                     ac_mid=`expr 2 '*' $ac_mid + 1`
13920 fi
13921 rm -f conftest.$ac_objext conftest.$ac_ext
13922   done
13923 else
13924   echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13926
13927 cat >conftest.$ac_ext <<_ACEOF
13928 #line $LINENO "configure"
13929 /* confdefs.h.  */
13930 _ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h.  */
13934 $ac_includes_default
13935 int
13936 main ()
13937 {
13938 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13939 test_array [0] = 0
13940
13941   ;
13942   return 0;
13943 }
13944 _ACEOF
13945 rm -f conftest.$ac_objext
13946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13947   (eval $ac_compile) 2>&5
13948   ac_status=$?
13949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950   (exit $ac_status); } &&
13951          { ac_try='test -s conftest.$ac_objext'
13952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953   (eval $ac_try) 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); }; }; then
13957   ac_hi=-1 ac_mid=-1
13958   while :; do
13959     cat >conftest.$ac_ext <<_ACEOF
13960 #line $LINENO "configure"
13961 /* confdefs.h.  */
13962 _ACEOF
13963 cat confdefs.h >>conftest.$ac_ext
13964 cat >>conftest.$ac_ext <<_ACEOF
13965 /* end confdefs.h.  */
13966 $ac_includes_default
13967 int
13968 main ()
13969 {
13970 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13971 test_array [0] = 0
13972
13973   ;
13974   return 0;
13975 }
13976 _ACEOF
13977 rm -f conftest.$ac_objext
13978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13979   (eval $ac_compile) 2>&5
13980   ac_status=$?
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); } &&
13983          { ac_try='test -s conftest.$ac_objext'
13984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985   (eval $ac_try) 2>&5
13986   ac_status=$?
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); }; }; then
13989   ac_lo=$ac_mid; break
13990 else
13991   echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13993
13994 ac_hi=`expr '(' $ac_mid ')' - 1`
13995                        if test $ac_mid -le $ac_hi; then
13996                          ac_lo= ac_hi=
13997                          break
13998                        fi
13999                        ac_mid=`expr 2 '*' $ac_mid`
14000 fi
14001 rm -f conftest.$ac_objext conftest.$ac_ext
14002   done
14003 else
14004   echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14006
14007 ac_lo= ac_hi=
14008 fi
14009 rm -f conftest.$ac_objext conftest.$ac_ext
14010 fi
14011 rm -f conftest.$ac_objext conftest.$ac_ext
14012 # Binary search between lo and hi bounds.
14013 while test "x$ac_lo" != "x$ac_hi"; do
14014   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14015   cat >conftest.$ac_ext <<_ACEOF
14016 #line $LINENO "configure"
14017 /* confdefs.h.  */
14018 _ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h.  */
14022 $ac_includes_default
14023 int
14024 main ()
14025 {
14026 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14027 test_array [0] = 0
14028
14029   ;
14030   return 0;
14031 }
14032 _ACEOF
14033 rm -f conftest.$ac_objext
14034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14035   (eval $ac_compile) 2>&5
14036   ac_status=$?
14037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038   (exit $ac_status); } &&
14039          { ac_try='test -s conftest.$ac_objext'
14040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14041   (eval $ac_try) 2>&5
14042   ac_status=$?
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); }; }; then
14045   ac_hi=$ac_mid
14046 else
14047   echo "$as_me: failed program was:" >&5
14048 sed 's/^/| /' conftest.$ac_ext >&5
14049
14050 ac_lo=`expr '(' $ac_mid ')' + 1`
14051 fi
14052 rm -f conftest.$ac_objext conftest.$ac_ext
14053 done
14054 case $ac_lo in
14055 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14056 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14057 See \`config.log' for more details." >&5
14058 echo "$as_me: error: cannot compute sizeof (int *), 77
14059 See \`config.log' for more details." >&2;}
14060    { (exit 1); exit 1; }; } ;;
14061 esac
14062 else
14063   if test "$cross_compiling" = yes; then
14064   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14065 See \`config.log' for more details." >&5
14066 echo "$as_me: error: cannot run test program while cross compiling
14067 See \`config.log' for more details." >&2;}
14068    { (exit 1); exit 1; }; }
14069 else
14070   cat >conftest.$ac_ext <<_ACEOF
14071 #line $LINENO "configure"
14072 /* confdefs.h.  */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h.  */
14077 $ac_includes_default
14078 long longval () { return (long) (sizeof (int *)); }
14079 unsigned long ulongval () { return (long) (sizeof (int *)); }
14080 #include <stdio.h>
14081 #include <stdlib.h>
14082 int
14083 main ()
14084 {
14085
14086   FILE *f = fopen ("conftest.val", "w");
14087   if (! f)
14088     exit (1);
14089   if (((long) (sizeof (int *))) < 0)
14090     {
14091       long i = longval ();
14092       if (i != ((long) (sizeof (int *))))
14093         exit (1);
14094       fprintf (f, "%ld\n", i);
14095     }
14096   else
14097     {
14098       unsigned long i = ulongval ();
14099       if (i != ((long) (sizeof (int *))))
14100         exit (1);
14101       fprintf (f, "%lu\n", i);
14102     }
14103   exit (ferror (f) || fclose (f) != 0);
14104
14105   ;
14106   return 0;
14107 }
14108 _ACEOF
14109 rm -f conftest$ac_exeext
14110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14111   (eval $ac_link) 2>&5
14112   ac_status=$?
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116   (eval $ac_try) 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); }; }; then
14120   ac_cv_sizeof_int_p=`cat conftest.val`
14121 else
14122   echo "$as_me: program exited with status $ac_status" >&5
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14125
14126 ( exit $ac_status )
14127 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14128 See \`config.log' for more details." >&5
14129 echo "$as_me: error: cannot compute sizeof (int *), 77
14130 See \`config.log' for more details." >&2;}
14131    { (exit 1); exit 1; }; }
14132 fi
14133 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14134 fi
14135 fi
14136 rm -f conftest.val
14137 else
14138   ac_cv_sizeof_int_p=0
14139 fi
14140 fi
14141 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14142 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14143 cat >>confdefs.h <<_ACEOF
14144 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14145 _ACEOF
14146
14147
14148
14149 # Check for sys/types.h types
14150 echo "$as_me:$LINENO: checking for u_int type" >&5
14151 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14152 if test "${ac_cv_have_u_int+set}" = set; then
14153   echo $ECHO_N "(cached) $ECHO_C" >&6
14154 else
14155
14156     cat >conftest.$ac_ext <<_ACEOF
14157 #line $LINENO "configure"
14158 /* confdefs.h.  */
14159 _ACEOF
14160 cat confdefs.h >>conftest.$ac_ext
14161 cat >>conftest.$ac_ext <<_ACEOF
14162 /* end confdefs.h.  */
14163  #include <sys/types.h>
14164 int
14165 main ()
14166 {
14167  u_int a; a = 1;
14168   ;
14169   return 0;
14170 }
14171 _ACEOF
14172 rm -f conftest.$ac_objext
14173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14174   (eval $ac_compile) 2>&5
14175   ac_status=$?
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); } &&
14178          { ac_try='test -s conftest.$ac_objext'
14179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180   (eval $ac_try) 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); }; }; then
14184    ac_cv_have_u_int="yes"
14185 else
14186   echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14188
14189  ac_cv_have_u_int="no"
14190
14191 fi
14192 rm -f conftest.$ac_objext conftest.$ac_ext
14193
14194 fi
14195 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14196 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14197 if test "x$ac_cv_have_u_int" = "xyes" ; then
14198    cat >>confdefs.h <<\_ACEOF
14199 #define HAVE_U_INT 1
14200 _ACEOF
14201
14202    have_u_int=1
14203 fi
14204
14205 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14206 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14207 if test "${ac_cv_have_intmax_t+set}" = set; then
14208   echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210
14211    cat >conftest.$ac_ext <<_ACEOF
14212 #line $LINENO "configure"
14213 /* confdefs.h.  */
14214 _ACEOF
14215 cat confdefs.h >>conftest.$ac_ext
14216 cat >>conftest.$ac_ext <<_ACEOF
14217 /* end confdefs.h.  */
14218  #include <sys/types.h>
14219 int
14220 main ()
14221 {
14222  intmax_t a; a = 1;
14223   ;
14224   return 0;
14225 }
14226 _ACEOF
14227 rm -f conftest.$ac_objext
14228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14229   (eval $ac_compile) 2>&5
14230   ac_status=$?
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); } &&
14233          { ac_try='test -s conftest.$ac_objext'
14234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14235   (eval $ac_try) 2>&5
14236   ac_status=$?
14237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238   (exit $ac_status); }; }; then
14239    ac_cv_have_intmax_t="yes"
14240 else
14241   echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14243
14244
14245          cat >conftest.$ac_ext <<_ACEOF
14246 #line $LINENO "configure"
14247 /* confdefs.h.  */
14248 _ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h.  */
14252  #include <stdint.h>
14253 int
14254 main ()
14255 {
14256  intmax_t a; a = 1;
14257   ;
14258   return 0;
14259 }
14260 _ACEOF
14261 rm -f conftest.$ac_objext
14262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14263   (eval $ac_compile) 2>&5
14264   ac_status=$?
14265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266   (exit $ac_status); } &&
14267          { ac_try='test -s conftest.$ac_objext'
14268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269   (eval $ac_try) 2>&5
14270   ac_status=$?
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); }; }; then
14273    ac_cv_have_intmax_t="yes"
14274 else
14275   echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14277
14278  ac_cv_have_intmax_t="no"
14279
14280 fi
14281 rm -f conftest.$ac_objext conftest.$ac_ext
14282
14283
14284 fi
14285 rm -f conftest.$ac_objext conftest.$ac_ext
14286
14287
14288 fi
14289 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14290 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14291 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14292    cat >>confdefs.h <<\_ACEOF
14293 #define HAVE_INTMAX_T 1
14294 _ACEOF
14295
14296    have_intmax_t=1
14297 fi
14298
14299
14300 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14301 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14302 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14303   echo $ECHO_N "(cached) $ECHO_C" >&6
14304 else
14305
14306    cat >conftest.$ac_ext <<_ACEOF
14307 #line $LINENO "configure"
14308 /* confdefs.h.  */
14309 _ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h.  */
14313  #include <sys/types.h>
14314 int
14315 main ()
14316 {
14317  u_intmax_t a; a = 1;
14318   ;
14319   return 0;
14320 }
14321 _ACEOF
14322 rm -f conftest.$ac_objext
14323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14324   (eval $ac_compile) 2>&5
14325   ac_status=$?
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); } &&
14328          { ac_try='test -s conftest.$ac_objext'
14329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330   (eval $ac_try) 2>&5
14331   ac_status=$?
14332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333   (exit $ac_status); }; }; then
14334    ac_cv_have_u_intmax_t="yes"
14335 else
14336   echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14338
14339
14340          cat >conftest.$ac_ext <<_ACEOF
14341 #line $LINENO "configure"
14342 /* confdefs.h.  */
14343 _ACEOF
14344 cat confdefs.h >>conftest.$ac_ext
14345 cat >>conftest.$ac_ext <<_ACEOF
14346 /* end confdefs.h.  */
14347  #include <stdint.h>
14348 int
14349 main ()
14350 {
14351  u_intmax_t a; a = 1;
14352   ;
14353   return 0;
14354 }
14355 _ACEOF
14356 rm -f conftest.$ac_objext
14357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14358   (eval $ac_compile) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); } &&
14362          { ac_try='test -s conftest.$ac_objext'
14363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364   (eval $ac_try) 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); }; }; then
14368    ac_cv_have_u_intmax_t="yes"
14369 else
14370   echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14372
14373  ac_cv_have_u_intmax_t="no"
14374
14375 fi
14376 rm -f conftest.$ac_objext conftest.$ac_ext
14377
14378
14379 fi
14380 rm -f conftest.$ac_objext conftest.$ac_ext
14381
14382 fi
14383 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14384 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14385 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14386    cat >>confdefs.h <<\_ACEOF
14387 #define HAVE_U_INTMAX_T 1
14388 _ACEOF
14389
14390    have_u_intmax_t=1
14391 fi
14392
14393
14394 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14395 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14396 if test "${ac_cv_have_intxx_t+set}" = set; then
14397   echo $ECHO_N "(cached) $ECHO_C" >&6
14398 else
14399
14400    cat >conftest.$ac_ext <<_ACEOF
14401 #line $LINENO "configure"
14402 /* confdefs.h.  */
14403 _ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h.  */
14407  #include <sys/types.h>
14408 int
14409 main ()
14410 {
14411  int8_t a; int16_t b; int32_t c; a = b = c = 1;
14412   ;
14413   return 0;
14414 }
14415 _ACEOF
14416 rm -f conftest.$ac_objext
14417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14418   (eval $ac_compile) 2>&5
14419   ac_status=$?
14420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421   (exit $ac_status); } &&
14422          { ac_try='test -s conftest.$ac_objext'
14423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424   (eval $ac_try) 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); }; }; then
14428    ac_cv_have_intxx_t="yes"
14429 else
14430   echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14432
14433  ac_cv_have_intxx_t="no"
14434
14435 fi
14436 rm -f conftest.$ac_objext conftest.$ac_ext
14437
14438 fi
14439 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14440 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14441 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14442    cat >>confdefs.h <<\_ACEOF
14443 #define HAVE_INTXX_T 1
14444 _ACEOF
14445
14446    have_intxx_t=1
14447 fi
14448
14449 echo "$as_me:$LINENO: checking for int64_t type" >&5
14450 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14451 if test "${ac_cv_have_int64_t+set}" = set; then
14452   echo $ECHO_N "(cached) $ECHO_C" >&6
14453 else
14454
14455    cat >conftest.$ac_ext <<_ACEOF
14456 #line $LINENO "configure"
14457 /* confdefs.h.  */
14458 _ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h.  */
14462  #include <sys/types.h>
14463 int
14464 main ()
14465 {
14466  int64_t a; a = 1;
14467   ;
14468   return 0;
14469 }
14470 _ACEOF
14471 rm -f conftest.$ac_objext
14472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14473   (eval $ac_compile) 2>&5
14474   ac_status=$?
14475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); } &&
14477          { ac_try='test -s conftest.$ac_objext'
14478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14479   (eval $ac_try) 2>&5
14480   ac_status=$?
14481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482   (exit $ac_status); }; }; then
14483    ac_cv_have_int64_t="yes"
14484 else
14485   echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14487
14488  ac_cv_have_int64_t="no"
14489
14490 fi
14491 rm -f conftest.$ac_objext conftest.$ac_ext
14492
14493 fi
14494 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14495 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14496 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14497    cat >>confdefs.h <<\_ACEOF
14498 #define HAVE_INT64_T 1
14499 _ACEOF
14500
14501    have_int64_t=1
14502 fi
14503
14504 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14505 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14506 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14507   echo $ECHO_N "(cached) $ECHO_C" >&6
14508 else
14509
14510    cat >conftest.$ac_ext <<_ACEOF
14511 #line $LINENO "configure"
14512 /* confdefs.h.  */
14513 _ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h.  */
14517  #include <sys/types.h>
14518 int
14519 main ()
14520 {
14521  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14522   ;
14523   return 0;
14524 }
14525 _ACEOF
14526 rm -f conftest.$ac_objext
14527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14528   (eval $ac_compile) 2>&5
14529   ac_status=$?
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } &&
14532          { ac_try='test -s conftest.$ac_objext'
14533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534   (eval $ac_try) 2>&5
14535   ac_status=$?
14536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537   (exit $ac_status); }; }; then
14538    ac_cv_have_u_intxx_t="yes"
14539 else
14540   echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.$ac_ext >&5
14542
14543  ac_cv_have_u_intxx_t="no"
14544
14545 fi
14546 rm -f conftest.$ac_objext conftest.$ac_ext
14547
14548 fi
14549 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14550 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14551 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14552    cat >>confdefs.h <<\_ACEOF
14553 #define HAVE_U_INTXX_T 1
14554 _ACEOF
14555
14556    have_u_intxx_t=1
14557 fi
14558
14559 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14560 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14561 if test "${ac_cv_have_u_int64_t+set}" = set; then
14562   echo $ECHO_N "(cached) $ECHO_C" >&6
14563 else
14564
14565    cat >conftest.$ac_ext <<_ACEOF
14566 #line $LINENO "configure"
14567 /* confdefs.h.  */
14568 _ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h.  */
14572  #include <sys/types.h>
14573 int
14574 main ()
14575 {
14576  u_int64_t a; a = 1;
14577   ;
14578   return 0;
14579 }
14580 _ACEOF
14581 rm -f conftest.$ac_objext
14582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14583   (eval $ac_compile) 2>&5
14584   ac_status=$?
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); } &&
14587          { ac_try='test -s conftest.$ac_objext'
14588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14589   (eval $ac_try) 2>&5
14590   ac_status=$?
14591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592   (exit $ac_status); }; }; then
14593    ac_cv_have_u_int64_t="yes"
14594 else
14595   echo "$as_me: failed program was:" >&5
14596 sed 's/^/| /' conftest.$ac_ext >&5
14597
14598  ac_cv_have_u_int64_t="no"
14599
14600 fi
14601 rm -f conftest.$ac_objext conftest.$ac_ext
14602
14603 fi
14604 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14605 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14606 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14607    cat >>confdefs.h <<\_ACEOF
14608 #define HAVE_U_INT64_T 1
14609 _ACEOF
14610
14611    have_u_int64_t=1
14612 fi
14613
14614 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14615            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14616 then
14617    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14618 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14619    cat >conftest.$ac_ext <<_ACEOF
14620 #line $LINENO "configure"
14621 /* confdefs.h.  */
14622 _ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h.  */
14626  #include <sys/bitypes.h>
14627 int
14628 main ()
14629 {
14630  int8_t a; int16_t b; int32_t c;
14631         u_int8_t e; u_int16_t f; u_int32_t g;
14632         a = b = c = e = f = g = 1;
14633   ;
14634   return 0;
14635 }
14636 _ACEOF
14637 rm -f conftest.$ac_objext
14638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14639   (eval $ac_compile) 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); } &&
14643          { ac_try='test -s conftest.$ac_objext'
14644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14645   (eval $ac_try) 2>&5
14646   ac_status=$?
14647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648   (exit $ac_status); }; }; then
14649    cat >>confdefs.h <<\_ACEOF
14650 #define HAVE_U_INTXX_T 1
14651 _ACEOF
14652
14653         cat >>confdefs.h <<\_ACEOF
14654 #define HAVE_INTXX_T 1
14655 _ACEOF
14656
14657         cat >>confdefs.h <<\_ACEOF
14658 #define HAVE_SYS_BITYPES_H 1
14659 _ACEOF
14660
14661         echo "$as_me:$LINENO: result: yes" >&5
14662 echo "${ECHO_T}yes" >&6
14663 else
14664   echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667  echo "$as_me:$LINENO: result: no" >&5
14668 echo "${ECHO_T}no" >&6
14669
14670 fi
14671 rm -f conftest.$ac_objext conftest.$ac_ext
14672 fi
14673
14674 if test -z "$have_u_intxx_t" ; then
14675    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14676 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14677 if test "${ac_cv_have_uintxx_t+set}" = set; then
14678   echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680
14681       cat >conftest.$ac_ext <<_ACEOF
14682 #line $LINENO "configure"
14683 /* confdefs.h.  */
14684 _ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h.  */
14688  #include <sys/types.h>
14689 int
14690 main ()
14691 {
14692  uint8_t a; uint16_t b;
14693            uint32_t c; a = b = c = 1;
14694   ;
14695   return 0;
14696 }
14697 _ACEOF
14698 rm -f conftest.$ac_objext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14700   (eval $ac_compile) 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); } &&
14704          { ac_try='test -s conftest.$ac_objext'
14705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706   (eval $ac_try) 2>&5
14707   ac_status=$?
14708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709   (exit $ac_status); }; }; then
14710    ac_cv_have_uintxx_t="yes"
14711 else
14712   echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14714
14715  ac_cv_have_uintxx_t="no"
14716
14717 fi
14718 rm -f conftest.$ac_objext conftest.$ac_ext
14719
14720 fi
14721 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14722 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14723    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14724       cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_UINTXX_T 1
14726 _ACEOF
14727
14728    fi
14729 fi
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745 for ac_func in \
14746         fork \
14747         getcwd \
14748         gethostname \
14749         getpid \
14750         gettimeofday \
14751         setpgid \
14752         setpgrp \
14753         setsid \
14754         signal \
14755         strerror \
14756         strncmp \
14757         strncpy \
14758         vfprintf \
14759
14760 do
14761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14762 echo "$as_me:$LINENO: checking for $ac_func" >&5
14763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14764 if eval "test \"\${$as_ac_var+set}\" = set"; then
14765   echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767   cat >conftest.$ac_ext <<_ACEOF
14768 #line $LINENO "configure"
14769 /* confdefs.h.  */
14770 _ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h.  */
14774 /* System header to define __stub macros and hopefully few prototypes,
14775     which can conflict with char $ac_func (); below.
14776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14777     <limits.h> exists even on freestanding compilers.  */
14778 #ifdef __STDC__
14779 # include <limits.h>
14780 #else
14781 # include <assert.h>
14782 #endif
14783 /* Override any gcc2 internal prototype to avoid an error.  */
14784 #ifdef __cplusplus
14785 extern "C"
14786 {
14787 #endif
14788 /* We use char because int might match the return type of a gcc2
14789    builtin and then its argument prototype would still apply.  */
14790 char $ac_func ();
14791 /* The GNU C library defines this for functions which it implements
14792     to always fail with ENOSYS.  Some functions are actually named
14793     something starting with __ and the normal name is an alias.  */
14794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14795 choke me
14796 #else
14797 char (*f) () = $ac_func;
14798 #endif
14799 #ifdef __cplusplus
14800 }
14801 #endif
14802
14803 int
14804 main ()
14805 {
14806 return f != $ac_func;
14807   ;
14808   return 0;
14809 }
14810 _ACEOF
14811 rm -f conftest.$ac_objext conftest$ac_exeext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14813   (eval $ac_link) 2>&5
14814   ac_status=$?
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); } &&
14817          { ac_try='test -s conftest$ac_exeext'
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   eval "$as_ac_var=yes"
14824 else
14825   echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14827
14828 eval "$as_ac_var=no"
14829 fi
14830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14831 fi
14832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14834 if test `eval echo '${'$as_ac_var'}'` = yes; then
14835   cat >>confdefs.h <<_ACEOF
14836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14837 _ACEOF
14838
14839 else
14840   echo 'configure: cannot find needed function.'; exit 1
14841
14842 fi
14843 done
14844
14845
14846
14847 for ac_func in fchdir
14848 do
14849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14850 echo "$as_me:$LINENO: checking for $ac_func" >&5
14851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14852 if eval "test \"\${$as_ac_var+set}\" = set"; then
14853   echo $ECHO_N "(cached) $ECHO_C" >&6
14854 else
14855   cat >conftest.$ac_ext <<_ACEOF
14856 #line $LINENO "configure"
14857 /* confdefs.h.  */
14858 _ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h.  */
14862 /* System header to define __stub macros and hopefully few prototypes,
14863     which can conflict with char $ac_func (); below.
14864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14865     <limits.h> exists even on freestanding compilers.  */
14866 #ifdef __STDC__
14867 # include <limits.h>
14868 #else
14869 # include <assert.h>
14870 #endif
14871 /* Override any gcc2 internal prototype to avoid an error.  */
14872 #ifdef __cplusplus
14873 extern "C"
14874 {
14875 #endif
14876 /* We use char because int might match the return type of a gcc2
14877    builtin and then its argument prototype would still apply.  */
14878 char $ac_func ();
14879 /* The GNU C library defines this for functions which it implements
14880     to always fail with ENOSYS.  Some functions are actually named
14881     something starting with __ and the normal name is an alias.  */
14882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14883 choke me
14884 #else
14885 char (*f) () = $ac_func;
14886 #endif
14887 #ifdef __cplusplus
14888 }
14889 #endif
14890
14891 int
14892 main ()
14893 {
14894 return f != $ac_func;
14895   ;
14896   return 0;
14897 }
14898 _ACEOF
14899 rm -f conftest.$ac_objext conftest$ac_exeext
14900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14901   (eval $ac_link) 2>&5
14902   ac_status=$?
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); } &&
14905          { ac_try='test -s conftest$ac_exeext'
14906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907   (eval $ac_try) 2>&5
14908   ac_status=$?
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   (exit $ac_status); }; }; then
14911   eval "$as_ac_var=yes"
14912 else
14913   echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14915
14916 eval "$as_ac_var=no"
14917 fi
14918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14919 fi
14920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14922 if test `eval echo '${'$as_ac_var'}'` = yes; then
14923   cat >>confdefs.h <<_ACEOF
14924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14925 _ACEOF
14926  cat >>confdefs.h <<\_ACEOF
14927 #define HAVE_FCHDIR 1
14928 _ACEOF
14929
14930 fi
14931 done
14932
14933
14934 for ac_func in strtoll
14935 do
14936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14937 echo "$as_me:$LINENO: checking for $ac_func" >&5
14938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14939 if eval "test \"\${$as_ac_var+set}\" = set"; then
14940   echo $ECHO_N "(cached) $ECHO_C" >&6
14941 else
14942   cat >conftest.$ac_ext <<_ACEOF
14943 #line $LINENO "configure"
14944 /* confdefs.h.  */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h.  */
14949 /* System header to define __stub macros and hopefully few prototypes,
14950     which can conflict with char $ac_func (); below.
14951     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14952     <limits.h> exists even on freestanding compilers.  */
14953 #ifdef __STDC__
14954 # include <limits.h>
14955 #else
14956 # include <assert.h>
14957 #endif
14958 /* Override any gcc2 internal prototype to avoid an error.  */
14959 #ifdef __cplusplus
14960 extern "C"
14961 {
14962 #endif
14963 /* We use char because int might match the return type of a gcc2
14964    builtin and then its argument prototype would still apply.  */
14965 char $ac_func ();
14966 /* The GNU C library defines this for functions which it implements
14967     to always fail with ENOSYS.  Some functions are actually named
14968     something starting with __ and the normal name is an alias.  */
14969 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14970 choke me
14971 #else
14972 char (*f) () = $ac_func;
14973 #endif
14974 #ifdef __cplusplus
14975 }
14976 #endif
14977
14978 int
14979 main ()
14980 {
14981 return f != $ac_func;
14982   ;
14983   return 0;
14984 }
14985 _ACEOF
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14988   (eval $ac_link) 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); } &&
14992          { ac_try='test -s conftest$ac_exeext'
14993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994   (eval $ac_try) 2>&5
14995   ac_status=$?
14996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997   (exit $ac_status); }; }; then
14998   eval "$as_ac_var=yes"
14999 else
15000   echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15002
15003 eval "$as_ac_var=no"
15004 fi
15005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15006 fi
15007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15009 if test `eval echo '${'$as_ac_var'}'` = yes; then
15010   cat >>confdefs.h <<_ACEOF
15011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15012 _ACEOF
15013  cat >>confdefs.h <<\_ACEOF
15014 #define HAVE_STRTOLL 1
15015 _ACEOF
15016
15017 fi
15018 done
15019
15020
15021
15022 for ac_func in chflags
15023 do
15024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15025 echo "$as_me:$LINENO: checking for $ac_func" >&5
15026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15027 if eval "test \"\${$as_ac_var+set}\" = set"; then
15028   echo $ECHO_N "(cached) $ECHO_C" >&6
15029 else
15030   cat >conftest.$ac_ext <<_ACEOF
15031 #line $LINENO "configure"
15032 /* confdefs.h.  */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h.  */
15037 /* System header to define __stub macros and hopefully few prototypes,
15038     which can conflict with char $ac_func (); below.
15039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15040     <limits.h> exists even on freestanding compilers.  */
15041 #ifdef __STDC__
15042 # include <limits.h>
15043 #else
15044 # include <assert.h>
15045 #endif
15046 /* Override any gcc2 internal prototype to avoid an error.  */
15047 #ifdef __cplusplus
15048 extern "C"
15049 {
15050 #endif
15051 /* We use char because int might match the return type of a gcc2
15052    builtin and then its argument prototype would still apply.  */
15053 char $ac_func ();
15054 /* The GNU C library defines this for functions which it implements
15055     to always fail with ENOSYS.  Some functions are actually named
15056     something starting with __ and the normal name is an alias.  */
15057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15058 choke me
15059 #else
15060 char (*f) () = $ac_func;
15061 #endif
15062 #ifdef __cplusplus
15063 }
15064 #endif
15065
15066 int
15067 main ()
15068 {
15069 return f != $ac_func;
15070   ;
15071   return 0;
15072 }
15073 _ACEOF
15074 rm -f conftest.$ac_objext conftest$ac_exeext
15075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15076   (eval $ac_link) 2>&5
15077   ac_status=$?
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); } &&
15080          { ac_try='test -s conftest$ac_exeext'
15081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082   (eval $ac_try) 2>&5
15083   ac_status=$?
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); }; }; then
15086   eval "$as_ac_var=yes"
15087 else
15088   echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15090
15091 eval "$as_ac_var=no"
15092 fi
15093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15094 fi
15095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15097 if test `eval echo '${'$as_ac_var'}'` = yes; then
15098   cat >>confdefs.h <<_ACEOF
15099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15100 _ACEOF
15101
15102 fi
15103 done
15104
15105
15106
15107
15108
15109
15110 for ac_func in snprintf vsnprintf gethostid getdomainname
15111 do
15112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15113 echo "$as_me:$LINENO: checking for $ac_func" >&5
15114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15115 if eval "test \"\${$as_ac_var+set}\" = set"; then
15116   echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118   cat >conftest.$ac_ext <<_ACEOF
15119 #line $LINENO "configure"
15120 /* confdefs.h.  */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h.  */
15125 /* System header to define __stub macros and hopefully few prototypes,
15126     which can conflict with char $ac_func (); below.
15127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15128     <limits.h> exists even on freestanding compilers.  */
15129 #ifdef __STDC__
15130 # include <limits.h>
15131 #else
15132 # include <assert.h>
15133 #endif
15134 /* Override any gcc2 internal prototype to avoid an error.  */
15135 #ifdef __cplusplus
15136 extern "C"
15137 {
15138 #endif
15139 /* We use char because int might match the return type of a gcc2
15140    builtin and then its argument prototype would still apply.  */
15141 char $ac_func ();
15142 /* The GNU C library defines this for functions which it implements
15143     to always fail with ENOSYS.  Some functions are actually named
15144     something starting with __ and the normal name is an alias.  */
15145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15146 choke me
15147 #else
15148 char (*f) () = $ac_func;
15149 #endif
15150 #ifdef __cplusplus
15151 }
15152 #endif
15153
15154 int
15155 main ()
15156 {
15157 return f != $ac_func;
15158   ;
15159   return 0;
15160 }
15161 _ACEOF
15162 rm -f conftest.$ac_objext conftest$ac_exeext
15163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15164   (eval $ac_link) 2>&5
15165   ac_status=$?
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } &&
15168          { ac_try='test -s conftest$ac_exeext'
15169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170   (eval $ac_try) 2>&5
15171   ac_status=$?
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); }; }; then
15174   eval "$as_ac_var=yes"
15175 else
15176   echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15178
15179 eval "$as_ac_var=no"
15180 fi
15181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15182 fi
15183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15185 if test `eval echo '${'$as_ac_var'}'` = yes; then
15186   cat >>confdefs.h <<_ACEOF
15187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15188 _ACEOF
15189
15190 fi
15191 done
15192
15193
15194
15195
15196
15197
15198 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15199 do
15200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15201 echo "$as_me:$LINENO: checking for $ac_func" >&5
15202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15203 if eval "test \"\${$as_ac_var+set}\" = set"; then
15204   echo $ECHO_N "(cached) $ECHO_C" >&6
15205 else
15206   cat >conftest.$ac_ext <<_ACEOF
15207 #line $LINENO "configure"
15208 /* confdefs.h.  */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h.  */
15213 /* System header to define __stub macros and hopefully few prototypes,
15214     which can conflict with char $ac_func (); below.
15215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15216     <limits.h> exists even on freestanding compilers.  */
15217 #ifdef __STDC__
15218 # include <limits.h>
15219 #else
15220 # include <assert.h>
15221 #endif
15222 /* Override any gcc2 internal prototype to avoid an error.  */
15223 #ifdef __cplusplus
15224 extern "C"
15225 {
15226 #endif
15227 /* We use char because int might match the return type of a gcc2
15228    builtin and then its argument prototype would still apply.  */
15229 char $ac_func ();
15230 /* The GNU C library defines this for functions which it implements
15231     to always fail with ENOSYS.  Some functions are actually named
15232     something starting with __ and the normal name is an alias.  */
15233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15234 choke me
15235 #else
15236 char (*f) () = $ac_func;
15237 #endif
15238 #ifdef __cplusplus
15239 }
15240 #endif
15241
15242 int
15243 main ()
15244 {
15245 return f != $ac_func;
15246   ;
15247   return 0;
15248 }
15249 _ACEOF
15250 rm -f conftest.$ac_objext conftest$ac_exeext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252   (eval $ac_link) 2>&5
15253   ac_status=$?
15254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255   (exit $ac_status); } &&
15256          { ac_try='test -s conftest$ac_exeext'
15257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15258   (eval $ac_try) 2>&5
15259   ac_status=$?
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); }; }; then
15262   eval "$as_ac_var=yes"
15263 else
15264   echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15266
15267 eval "$as_ac_var=no"
15268 fi
15269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15270 fi
15271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15273 if test `eval echo '${'$as_ac_var'}'` = yes; then
15274   cat >>confdefs.h <<_ACEOF
15275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15276 _ACEOF
15277
15278 fi
15279 done
15280
15281
15282 # If resolver functions are not in libc check for -lnsl or -lresolv.
15283 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15284 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15285 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15286   echo $ECHO_N "(cached) $ECHO_C" >&6
15287 else
15288   cat >conftest.$ac_ext <<_ACEOF
15289 #line $LINENO "configure"
15290 /* confdefs.h.  */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h.  */
15295 /* System header to define __stub macros and hopefully few prototypes,
15296     which can conflict with char gethostbyname_r (); below.
15297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15298     <limits.h> exists even on freestanding compilers.  */
15299 #ifdef __STDC__
15300 # include <limits.h>
15301 #else
15302 # include <assert.h>
15303 #endif
15304 /* Override any gcc2 internal prototype to avoid an error.  */
15305 #ifdef __cplusplus
15306 extern "C"
15307 {
15308 #endif
15309 /* We use char because int might match the return type of a gcc2
15310    builtin and then its argument prototype would still apply.  */
15311 char gethostbyname_r ();
15312 /* The GNU C library defines this for functions which it implements
15313     to always fail with ENOSYS.  Some functions are actually named
15314     something starting with __ and the normal name is an alias.  */
15315 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15316 choke me
15317 #else
15318 char (*f) () = gethostbyname_r;
15319 #endif
15320 #ifdef __cplusplus
15321 }
15322 #endif
15323
15324 int
15325 main ()
15326 {
15327 return f != gethostbyname_r;
15328   ;
15329   return 0;
15330 }
15331 _ACEOF
15332 rm -f conftest.$ac_objext conftest$ac_exeext
15333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15334   (eval $ac_link) 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); } &&
15338          { ac_try='test -s conftest$ac_exeext'
15339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340   (eval $ac_try) 2>&5
15341   ac_status=$?
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); }; }; then
15344   ac_cv_func_gethostbyname_r=yes
15345 else
15346   echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15348
15349 ac_cv_func_gethostbyname_r=no
15350 fi
15351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15352 fi
15353 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15354 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15355 if test $ac_cv_func_gethostbyname_r = yes; then
15356   echo "$as_me:$LINENO: result: using libc's resolver" >&5
15357 echo "${ECHO_T}using libc's resolver" >&6
15358 else
15359
15360 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15361 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15362 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15363   echo $ECHO_N "(cached) $ECHO_C" >&6
15364 else
15365   ac_check_lib_save_LIBS=$LIBS
15366 LIBS="-lnsl  $LIBS"
15367 cat >conftest.$ac_ext <<_ACEOF
15368 #line $LINENO "configure"
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374
15375 /* Override any gcc2 internal prototype to avoid an error.  */
15376 #ifdef __cplusplus
15377 extern "C"
15378 #endif
15379 /* We use char because int might match the return type of a gcc2
15380    builtin and then its argument prototype would still apply.  */
15381 char gethostbyname_r ();
15382 int
15383 main ()
15384 {
15385 gethostbyname_r ();
15386   ;
15387   return 0;
15388 }
15389 _ACEOF
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15392   (eval $ac_link) 2>&5
15393   ac_status=$?
15394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395   (exit $ac_status); } &&
15396          { ac_try='test -s conftest$ac_exeext'
15397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398   (eval $ac_try) 2>&5
15399   ac_status=$?
15400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); }; }; then
15402   ac_cv_lib_nsl_gethostbyname_r=yes
15403 else
15404   echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15406
15407 ac_cv_lib_nsl_gethostbyname_r=no
15408 fi
15409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15410 LIBS=$ac_check_lib_save_LIBS
15411 fi
15412 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15413 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15414 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15415   cat >>confdefs.h <<_ACEOF
15416 #define HAVE_LIBNSL 1
15417 _ACEOF
15418
15419   LIBS="-lnsl $LIBS"
15420
15421 fi
15422
15423
15424 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15425 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15426 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15427   echo $ECHO_N "(cached) $ECHO_C" >&6
15428 else
15429   ac_check_lib_save_LIBS=$LIBS
15430 LIBS="-lresolv  $LIBS"
15431 cat >conftest.$ac_ext <<_ACEOF
15432 #line $LINENO "configure"
15433 /* confdefs.h.  */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h.  */
15438
15439 /* Override any gcc2 internal prototype to avoid an error.  */
15440 #ifdef __cplusplus
15441 extern "C"
15442 #endif
15443 /* We use char because int might match the return type of a gcc2
15444    builtin and then its argument prototype would still apply.  */
15445 char gethostbyname_r ();
15446 int
15447 main ()
15448 {
15449 gethostbyname_r ();
15450   ;
15451   return 0;
15452 }
15453 _ACEOF
15454 rm -f conftest.$ac_objext conftest$ac_exeext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456   (eval $ac_link) 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); } &&
15460          { ac_try='test -s conftest$ac_exeext'
15461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462   (eval $ac_try) 2>&5
15463   ac_status=$?
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); }; }; then
15466   ac_cv_lib_resolv_gethostbyname_r=yes
15467 else
15468   echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15470
15471 ac_cv_lib_resolv_gethostbyname_r=no
15472 fi
15473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15474 LIBS=$ac_check_lib_save_LIBS
15475 fi
15476 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15477 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15478 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15479   cat >>confdefs.h <<_ACEOF
15480 #define HAVE_LIBRESOLV 1
15481 _ACEOF
15482
15483   LIBS="-lresolv $LIBS"
15484
15485 fi
15486
15487 fi
15488
15489
15490
15491 # Find where sockets are (especially for Solaris)
15492 echo "$as_me:$LINENO: checking for socket" >&5
15493 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15494 if test "${ac_cv_func_socket+set}" = set; then
15495   echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497   cat >conftest.$ac_ext <<_ACEOF
15498 #line $LINENO "configure"
15499 /* confdefs.h.  */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h.  */
15504 /* System header to define __stub macros and hopefully few prototypes,
15505     which can conflict with char socket (); below.
15506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15507     <limits.h> exists even on freestanding compilers.  */
15508 #ifdef __STDC__
15509 # include <limits.h>
15510 #else
15511 # include <assert.h>
15512 #endif
15513 /* Override any gcc2 internal prototype to avoid an error.  */
15514 #ifdef __cplusplus
15515 extern "C"
15516 {
15517 #endif
15518 /* We use char because int might match the return type of a gcc2
15519    builtin and then its argument prototype would still apply.  */
15520 char socket ();
15521 /* The GNU C library defines this for functions which it implements
15522     to always fail with ENOSYS.  Some functions are actually named
15523     something starting with __ and the normal name is an alias.  */
15524 #if defined (__stub_socket) || defined (__stub___socket)
15525 choke me
15526 #else
15527 char (*f) () = socket;
15528 #endif
15529 #ifdef __cplusplus
15530 }
15531 #endif
15532
15533 int
15534 main ()
15535 {
15536 return f != socket;
15537   ;
15538   return 0;
15539 }
15540 _ACEOF
15541 rm -f conftest.$ac_objext conftest$ac_exeext
15542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15543   (eval $ac_link) 2>&5
15544   ac_status=$?
15545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); } &&
15547          { ac_try='test -s conftest$ac_exeext'
15548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549   (eval $ac_try) 2>&5
15550   ac_status=$?
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); }; }; then
15553   ac_cv_func_socket=yes
15554 else
15555   echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15557
15558 ac_cv_func_socket=no
15559 fi
15560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15561 fi
15562 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15563 echo "${ECHO_T}$ac_cv_func_socket" >&6
15564 if test $ac_cv_func_socket = yes; then
15565   echo "$as_me:$LINENO: result: using libc's socket" >&5
15566 echo "${ECHO_T}using libc's socket" >&6
15567 else
15568
15569 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15570 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15571 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15572   echo $ECHO_N "(cached) $ECHO_C" >&6
15573 else
15574   ac_check_lib_save_LIBS=$LIBS
15575 LIBS="-lxnet  $LIBS"
15576 cat >conftest.$ac_ext <<_ACEOF
15577 #line $LINENO "configure"
15578 /* confdefs.h.  */
15579 _ACEOF
15580 cat confdefs.h >>conftest.$ac_ext
15581 cat >>conftest.$ac_ext <<_ACEOF
15582 /* end confdefs.h.  */
15583
15584 /* Override any gcc2 internal prototype to avoid an error.  */
15585 #ifdef __cplusplus
15586 extern "C"
15587 #endif
15588 /* We use char because int might match the return type of a gcc2
15589    builtin and then its argument prototype would still apply.  */
15590 char socket ();
15591 int
15592 main ()
15593 {
15594 socket ();
15595   ;
15596   return 0;
15597 }
15598 _ACEOF
15599 rm -f conftest.$ac_objext conftest$ac_exeext
15600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15601   (eval $ac_link) 2>&5
15602   ac_status=$?
15603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604   (exit $ac_status); } &&
15605          { ac_try='test -s conftest$ac_exeext'
15606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607   (eval $ac_try) 2>&5
15608   ac_status=$?
15609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610   (exit $ac_status); }; }; then
15611   ac_cv_lib_xnet_socket=yes
15612 else
15613   echo "$as_me: failed program was:" >&5
15614 sed 's/^/| /' conftest.$ac_ext >&5
15615
15616 ac_cv_lib_xnet_socket=no
15617 fi
15618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15619 LIBS=$ac_check_lib_save_LIBS
15620 fi
15621 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15622 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15623 if test $ac_cv_lib_xnet_socket = yes; then
15624   cat >>confdefs.h <<_ACEOF
15625 #define HAVE_LIBXNET 1
15626 _ACEOF
15627
15628   LIBS="-lxnet $LIBS"
15629
15630 fi
15631
15632
15633 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15634 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15635 if test "${ac_cv_lib_socket_socket+set}" = set; then
15636   echo $ECHO_N "(cached) $ECHO_C" >&6
15637 else
15638   ac_check_lib_save_LIBS=$LIBS
15639 LIBS="-lsocket  $LIBS"
15640 cat >conftest.$ac_ext <<_ACEOF
15641 #line $LINENO "configure"
15642 /* confdefs.h.  */
15643 _ACEOF
15644 cat confdefs.h >>conftest.$ac_ext
15645 cat >>conftest.$ac_ext <<_ACEOF
15646 /* end confdefs.h.  */
15647
15648 /* Override any gcc2 internal prototype to avoid an error.  */
15649 #ifdef __cplusplus
15650 extern "C"
15651 #endif
15652 /* We use char because int might match the return type of a gcc2
15653    builtin and then its argument prototype would still apply.  */
15654 char socket ();
15655 int
15656 main ()
15657 {
15658 socket ();
15659   ;
15660   return 0;
15661 }
15662 _ACEOF
15663 rm -f conftest.$ac_objext conftest$ac_exeext
15664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15665   (eval $ac_link) 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); } &&
15669          { ac_try='test -s conftest$ac_exeext'
15670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671   (eval $ac_try) 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; }; then
15675   ac_cv_lib_socket_socket=yes
15676 else
15677   echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15679
15680 ac_cv_lib_socket_socket=no
15681 fi
15682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15683 LIBS=$ac_check_lib_save_LIBS
15684 fi
15685 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15686 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15687 if test $ac_cv_lib_socket_socket = yes; then
15688   cat >>confdefs.h <<_ACEOF
15689 #define HAVE_LIBSOCKET 1
15690 _ACEOF
15691
15692   LIBS="-lsocket $LIBS"
15693
15694 fi
15695
15696
15697 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15698 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15699 if test "${ac_cv_lib_inet_socket+set}" = set; then
15700   echo $ECHO_N "(cached) $ECHO_C" >&6
15701 else
15702   ac_check_lib_save_LIBS=$LIBS
15703 LIBS="-linet  $LIBS"
15704 cat >conftest.$ac_ext <<_ACEOF
15705 #line $LINENO "configure"
15706 /* confdefs.h.  */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h.  */
15711
15712 /* Override any gcc2 internal prototype to avoid an error.  */
15713 #ifdef __cplusplus
15714 extern "C"
15715 #endif
15716 /* We use char because int might match the return type of a gcc2
15717    builtin and then its argument prototype would still apply.  */
15718 char socket ();
15719 int
15720 main ()
15721 {
15722 socket ();
15723   ;
15724   return 0;
15725 }
15726 _ACEOF
15727 rm -f conftest.$ac_objext conftest$ac_exeext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729   (eval $ac_link) 2>&5
15730   ac_status=$?
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); } &&
15733          { ac_try='test -s conftest$ac_exeext'
15734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735   (eval $ac_try) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; }; then
15739   ac_cv_lib_inet_socket=yes
15740 else
15741   echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15743
15744 ac_cv_lib_inet_socket=no
15745 fi
15746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15747 LIBS=$ac_check_lib_save_LIBS
15748 fi
15749 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15750 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15751 if test $ac_cv_lib_inet_socket = yes; then
15752   cat >>confdefs.h <<_ACEOF
15753 #define HAVE_LIBINET 1
15754 _ACEOF
15755
15756   LIBS="-linet $LIBS"
15757
15758 fi
15759
15760 fi
15761
15762
15763
15764 for ac_func in inet_pton
15765 do
15766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15767 echo "$as_me:$LINENO: checking for $ac_func" >&5
15768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15769 if eval "test \"\${$as_ac_var+set}\" = set"; then
15770   echo $ECHO_N "(cached) $ECHO_C" >&6
15771 else
15772   cat >conftest.$ac_ext <<_ACEOF
15773 #line $LINENO "configure"
15774 /* confdefs.h.  */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h.  */
15779 /* System header to define __stub macros and hopefully few prototypes,
15780     which can conflict with char $ac_func (); below.
15781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15782     <limits.h> exists even on freestanding compilers.  */
15783 #ifdef __STDC__
15784 # include <limits.h>
15785 #else
15786 # include <assert.h>
15787 #endif
15788 /* Override any gcc2 internal prototype to avoid an error.  */
15789 #ifdef __cplusplus
15790 extern "C"
15791 {
15792 #endif
15793 /* We use char because int might match the return type of a gcc2
15794    builtin and then its argument prototype would still apply.  */
15795 char $ac_func ();
15796 /* The GNU C library defines this for functions which it implements
15797     to always fail with ENOSYS.  Some functions are actually named
15798     something starting with __ and the normal name is an alias.  */
15799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15800 choke me
15801 #else
15802 char (*f) () = $ac_func;
15803 #endif
15804 #ifdef __cplusplus
15805 }
15806 #endif
15807
15808 int
15809 main ()
15810 {
15811 return f != $ac_func;
15812   ;
15813   return 0;
15814 }
15815 _ACEOF
15816 rm -f conftest.$ac_objext conftest$ac_exeext
15817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15818   (eval $ac_link) 2>&5
15819   ac_status=$?
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); } &&
15822          { ac_try='test -s conftest$ac_exeext'
15823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824   (eval $ac_try) 2>&5
15825   ac_status=$?
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); }; }; then
15828   eval "$as_ac_var=yes"
15829 else
15830   echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15832
15833 eval "$as_ac_var=no"
15834 fi
15835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15836 fi
15837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15839 if test `eval echo '${'$as_ac_var'}'` = yes; then
15840   cat >>confdefs.h <<_ACEOF
15841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15842 _ACEOF
15843  cat >>confdefs.h <<\_ACEOF
15844 #define HAVE_INET_PTON 1
15845 _ACEOF
15846
15847 fi
15848 done
15849
15850
15851
15852 for ac_func in strftime
15853 do
15854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15855 echo "$as_me:$LINENO: checking for $ac_func" >&5
15856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15857 if eval "test \"\${$as_ac_var+set}\" = set"; then
15858   echo $ECHO_N "(cached) $ECHO_C" >&6
15859 else
15860   cat >conftest.$ac_ext <<_ACEOF
15861 #line $LINENO "configure"
15862 /* confdefs.h.  */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h.  */
15867 /* System header to define __stub macros and hopefully few prototypes,
15868     which can conflict with char $ac_func (); below.
15869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15870     <limits.h> exists even on freestanding compilers.  */
15871 #ifdef __STDC__
15872 # include <limits.h>
15873 #else
15874 # include <assert.h>
15875 #endif
15876 /* Override any gcc2 internal prototype to avoid an error.  */
15877 #ifdef __cplusplus
15878 extern "C"
15879 {
15880 #endif
15881 /* We use char because int might match the return type of a gcc2
15882    builtin and then its argument prototype would still apply.  */
15883 char $ac_func ();
15884 /* The GNU C library defines this for functions which it implements
15885     to always fail with ENOSYS.  Some functions are actually named
15886     something starting with __ and the normal name is an alias.  */
15887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15888 choke me
15889 #else
15890 char (*f) () = $ac_func;
15891 #endif
15892 #ifdef __cplusplus
15893 }
15894 #endif
15895
15896 int
15897 main ()
15898 {
15899 return f != $ac_func;
15900   ;
15901   return 0;
15902 }
15903 _ACEOF
15904 rm -f conftest.$ac_objext conftest$ac_exeext
15905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15906   (eval $ac_link) 2>&5
15907   ac_status=$?
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); } &&
15910          { ac_try='test -s conftest$ac_exeext'
15911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15912   (eval $ac_try) 2>&5
15913   ac_status=$?
15914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915   (exit $ac_status); }; }; then
15916   eval "$as_ac_var=yes"
15917 else
15918   echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 eval "$as_ac_var=no"
15922 fi
15923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15924 fi
15925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15927 if test `eval echo '${'$as_ac_var'}'` = yes; then
15928   cat >>confdefs.h <<_ACEOF
15929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15930 _ACEOF
15931
15932 else
15933   # strftime is in -lintl on SCO UNIX.
15934 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15935 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15936 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15937   echo $ECHO_N "(cached) $ECHO_C" >&6
15938 else
15939   ac_check_lib_save_LIBS=$LIBS
15940 LIBS="-lintl  $LIBS"
15941 cat >conftest.$ac_ext <<_ACEOF
15942 #line $LINENO "configure"
15943 /* confdefs.h.  */
15944 _ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h.  */
15948
15949 /* Override any gcc2 internal prototype to avoid an error.  */
15950 #ifdef __cplusplus
15951 extern "C"
15952 #endif
15953 /* We use char because int might match the return type of a gcc2
15954    builtin and then its argument prototype would still apply.  */
15955 char strftime ();
15956 int
15957 main ()
15958 {
15959 strftime ();
15960   ;
15961   return 0;
15962 }
15963 _ACEOF
15964 rm -f conftest.$ac_objext conftest$ac_exeext
15965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15966   (eval $ac_link) 2>&5
15967   ac_status=$?
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); } &&
15970          { ac_try='test -s conftest$ac_exeext'
15971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15972   (eval $ac_try) 2>&5
15973   ac_status=$?
15974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975   (exit $ac_status); }; }; then
15976   ac_cv_lib_intl_strftime=yes
15977 else
15978   echo "$as_me: failed program was:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15980
15981 ac_cv_lib_intl_strftime=no
15982 fi
15983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15984 LIBS=$ac_check_lib_save_LIBS
15985 fi
15986 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15987 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15988 if test $ac_cv_lib_intl_strftime = yes; then
15989   cat >>confdefs.h <<\_ACEOF
15990 #define HAVE_STRFTIME 1
15991 _ACEOF
15992
15993 LIBS="-lintl $LIBS"
15994 fi
15995
15996 fi
15997 done
15998
15999
16000 for ac_func in vprintf
16001 do
16002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16003 echo "$as_me:$LINENO: checking for $ac_func" >&5
16004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16005 if eval "test \"\${$as_ac_var+set}\" = set"; then
16006   echo $ECHO_N "(cached) $ECHO_C" >&6
16007 else
16008   cat >conftest.$ac_ext <<_ACEOF
16009 #line $LINENO "configure"
16010 /* confdefs.h.  */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h.  */
16015 /* System header to define __stub macros and hopefully few prototypes,
16016     which can conflict with char $ac_func (); below.
16017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16018     <limits.h> exists even on freestanding compilers.  */
16019 #ifdef __STDC__
16020 # include <limits.h>
16021 #else
16022 # include <assert.h>
16023 #endif
16024 /* Override any gcc2 internal prototype to avoid an error.  */
16025 #ifdef __cplusplus
16026 extern "C"
16027 {
16028 #endif
16029 /* We use char because int might match the return type of a gcc2
16030    builtin and then its argument prototype would still apply.  */
16031 char $ac_func ();
16032 /* The GNU C library defines this for functions which it implements
16033     to always fail with ENOSYS.  Some functions are actually named
16034     something starting with __ and the normal name is an alias.  */
16035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16036 choke me
16037 #else
16038 char (*f) () = $ac_func;
16039 #endif
16040 #ifdef __cplusplus
16041 }
16042 #endif
16043
16044 int
16045 main ()
16046 {
16047 return f != $ac_func;
16048   ;
16049   return 0;
16050 }
16051 _ACEOF
16052 rm -f conftest.$ac_objext conftest$ac_exeext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16054   (eval $ac_link) 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); } &&
16058          { ac_try='test -s conftest$ac_exeext'
16059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16060   (eval $ac_try) 2>&5
16061   ac_status=$?
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); }; }; then
16064   eval "$as_ac_var=yes"
16065 else
16066   echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16068
16069 eval "$as_ac_var=no"
16070 fi
16071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16072 fi
16073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16075 if test `eval echo '${'$as_ac_var'}'` = yes; then
16076   cat >>confdefs.h <<_ACEOF
16077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16078 _ACEOF
16079
16080 echo "$as_me:$LINENO: checking for _doprnt" >&5
16081 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16082 if test "${ac_cv_func__doprnt+set}" = set; then
16083   echo $ECHO_N "(cached) $ECHO_C" >&6
16084 else
16085   cat >conftest.$ac_ext <<_ACEOF
16086 #line $LINENO "configure"
16087 /* confdefs.h.  */
16088 _ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h.  */
16092 /* System header to define __stub macros and hopefully few prototypes,
16093     which can conflict with char _doprnt (); below.
16094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16095     <limits.h> exists even on freestanding compilers.  */
16096 #ifdef __STDC__
16097 # include <limits.h>
16098 #else
16099 # include <assert.h>
16100 #endif
16101 /* Override any gcc2 internal prototype to avoid an error.  */
16102 #ifdef __cplusplus
16103 extern "C"
16104 {
16105 #endif
16106 /* We use char because int might match the return type of a gcc2
16107    builtin and then its argument prototype would still apply.  */
16108 char _doprnt ();
16109 /* The GNU C library defines this for functions which it implements
16110     to always fail with ENOSYS.  Some functions are actually named
16111     something starting with __ and the normal name is an alias.  */
16112 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16113 choke me
16114 #else
16115 char (*f) () = _doprnt;
16116 #endif
16117 #ifdef __cplusplus
16118 }
16119 #endif
16120
16121 int
16122 main ()
16123 {
16124 return f != _doprnt;
16125   ;
16126   return 0;
16127 }
16128 _ACEOF
16129 rm -f conftest.$ac_objext conftest$ac_exeext
16130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16131   (eval $ac_link) 2>&5
16132   ac_status=$?
16133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134   (exit $ac_status); } &&
16135          { ac_try='test -s conftest$ac_exeext'
16136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16137   (eval $ac_try) 2>&5
16138   ac_status=$?
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); }; }; then
16141   ac_cv_func__doprnt=yes
16142 else
16143   echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16145
16146 ac_cv_func__doprnt=no
16147 fi
16148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16149 fi
16150 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16151 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16152 if test $ac_cv_func__doprnt = yes; then
16153
16154 cat >>confdefs.h <<\_ACEOF
16155 #define HAVE_DOPRNT 1
16156 _ACEOF
16157
16158 fi
16159
16160 fi
16161 done
16162
16163
16164 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16165 # for constant arguments.  Useless!
16166 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16167 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16168 if test "${ac_cv_working_alloca_h+set}" = set; then
16169   echo $ECHO_N "(cached) $ECHO_C" >&6
16170 else
16171   cat >conftest.$ac_ext <<_ACEOF
16172 #line $LINENO "configure"
16173 /* confdefs.h.  */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h.  */
16178 #include <alloca.h>
16179 int
16180 main ()
16181 {
16182 char *p = (char *) alloca (2 * sizeof (int));
16183   ;
16184   return 0;
16185 }
16186 _ACEOF
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189   (eval $ac_link) 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); } &&
16193          { ac_try='test -s conftest$ac_exeext'
16194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195   (eval $ac_try) 2>&5
16196   ac_status=$?
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); }; }; then
16199   ac_cv_working_alloca_h=yes
16200 else
16201   echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16203
16204 ac_cv_working_alloca_h=no
16205 fi
16206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16207 fi
16208 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16209 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16210 if test $ac_cv_working_alloca_h = yes; then
16211
16212 cat >>confdefs.h <<\_ACEOF
16213 #define HAVE_ALLOCA_H 1
16214 _ACEOF
16215
16216 fi
16217
16218 echo "$as_me:$LINENO: checking for alloca" >&5
16219 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16220 if test "${ac_cv_func_alloca_works+set}" = set; then
16221   echo $ECHO_N "(cached) $ECHO_C" >&6
16222 else
16223   cat >conftest.$ac_ext <<_ACEOF
16224 #line $LINENO "configure"
16225 /* confdefs.h.  */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h.  */
16230 #ifdef __GNUC__
16231 # define alloca __builtin_alloca
16232 #else
16233 # ifdef _MSC_VER
16234 #  include <malloc.h>
16235 #  define alloca _alloca
16236 # else
16237 #  if HAVE_ALLOCA_H
16238 #   include <alloca.h>
16239 #  else
16240 #   ifdef _AIX
16241  #pragma alloca
16242 #   else
16243 #    ifndef alloca /* predefined by HP cc +Olibcalls */
16244 char *alloca ();
16245 #    endif
16246 #   endif
16247 #  endif
16248 # endif
16249 #endif
16250
16251 int
16252 main ()
16253 {
16254 char *p = (char *) alloca (1);
16255   ;
16256   return 0;
16257 }
16258 _ACEOF
16259 rm -f conftest.$ac_objext conftest$ac_exeext
16260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16261   (eval $ac_link) 2>&5
16262   ac_status=$?
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); } &&
16265          { ac_try='test -s conftest$ac_exeext'
16266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16267   (eval $ac_try) 2>&5
16268   ac_status=$?
16269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16270   (exit $ac_status); }; }; then
16271   ac_cv_func_alloca_works=yes
16272 else
16273   echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16275
16276 ac_cv_func_alloca_works=no
16277 fi
16278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16279 fi
16280 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16281 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16282
16283 if test $ac_cv_func_alloca_works = yes; then
16284
16285 cat >>confdefs.h <<\_ACEOF
16286 #define HAVE_ALLOCA 1
16287 _ACEOF
16288
16289 else
16290   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16291 # that cause trouble.  Some versions do not even contain alloca or
16292 # contain a buggy version.  If you still want to use their alloca,
16293 # use ar to extract alloca.o from them instead of compiling alloca.c.
16294
16295 ALLOCA=alloca.$ac_objext
16296
16297 cat >>confdefs.h <<\_ACEOF
16298 #define C_ALLOCA 1
16299 _ACEOF
16300
16301
16302 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16303 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16304 if test "${ac_cv_os_cray+set}" = set; then
16305   echo $ECHO_N "(cached) $ECHO_C" >&6
16306 else
16307   cat >conftest.$ac_ext <<_ACEOF
16308 #line $LINENO "configure"
16309 /* confdefs.h.  */
16310 _ACEOF
16311 cat confdefs.h >>conftest.$ac_ext
16312 cat >>conftest.$ac_ext <<_ACEOF
16313 /* end confdefs.h.  */
16314 #if defined(CRAY) && ! defined(CRAY2)
16315 webecray
16316 #else
16317 wenotbecray
16318 #endif
16319
16320 _ACEOF
16321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16322   $EGREP "webecray" >/dev/null 2>&1; then
16323   ac_cv_os_cray=yes
16324 else
16325   ac_cv_os_cray=no
16326 fi
16327 rm -f conftest*
16328
16329 fi
16330 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16331 echo "${ECHO_T}$ac_cv_os_cray" >&6
16332 if test $ac_cv_os_cray = yes; then
16333   for ac_func in _getb67 GETB67 getb67; do
16334     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16335 echo "$as_me:$LINENO: checking for $ac_func" >&5
16336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16337 if eval "test \"\${$as_ac_var+set}\" = set"; then
16338   echo $ECHO_N "(cached) $ECHO_C" >&6
16339 else
16340   cat >conftest.$ac_ext <<_ACEOF
16341 #line $LINENO "configure"
16342 /* confdefs.h.  */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h.  */
16347 /* System header to define __stub macros and hopefully few prototypes,
16348     which can conflict with char $ac_func (); below.
16349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16350     <limits.h> exists even on freestanding compilers.  */
16351 #ifdef __STDC__
16352 # include <limits.h>
16353 #else
16354 # include <assert.h>
16355 #endif
16356 /* Override any gcc2 internal prototype to avoid an error.  */
16357 #ifdef __cplusplus
16358 extern "C"
16359 {
16360 #endif
16361 /* We use char because int might match the return type of a gcc2
16362    builtin and then its argument prototype would still apply.  */
16363 char $ac_func ();
16364 /* The GNU C library defines this for functions which it implements
16365     to always fail with ENOSYS.  Some functions are actually named
16366     something starting with __ and the normal name is an alias.  */
16367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16368 choke me
16369 #else
16370 char (*f) () = $ac_func;
16371 #endif
16372 #ifdef __cplusplus
16373 }
16374 #endif
16375
16376 int
16377 main ()
16378 {
16379 return f != $ac_func;
16380   ;
16381   return 0;
16382 }
16383 _ACEOF
16384 rm -f conftest.$ac_objext conftest$ac_exeext
16385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16386   (eval $ac_link) 2>&5
16387   ac_status=$?
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); } &&
16390          { ac_try='test -s conftest$ac_exeext'
16391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392   (eval $ac_try) 2>&5
16393   ac_status=$?
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); }; }; then
16396   eval "$as_ac_var=yes"
16397 else
16398   echo "$as_me: failed program was:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16400
16401 eval "$as_ac_var=no"
16402 fi
16403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16404 fi
16405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16407 if test `eval echo '${'$as_ac_var'}'` = yes; then
16408
16409 cat >>confdefs.h <<_ACEOF
16410 #define CRAY_STACKSEG_END $ac_func
16411 _ACEOF
16412
16413     break
16414 fi
16415
16416   done
16417 fi
16418
16419 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16420 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16421 if test "${ac_cv_c_stack_direction+set}" = set; then
16422   echo $ECHO_N "(cached) $ECHO_C" >&6
16423 else
16424   if test "$cross_compiling" = yes; then
16425   ac_cv_c_stack_direction=0
16426 else
16427   cat >conftest.$ac_ext <<_ACEOF
16428 #line $LINENO "configure"
16429 /* confdefs.h.  */
16430 _ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h.  */
16434 int
16435 find_stack_direction ()
16436 {
16437   static char *addr = 0;
16438   auto char dummy;
16439   if (addr == 0)
16440     {
16441       addr = &dummy;
16442       return find_stack_direction ();
16443     }
16444   else
16445     return (&dummy > addr) ? 1 : -1;
16446 }
16447
16448 int
16449 main ()
16450 {
16451   exit (find_stack_direction () < 0);
16452 }
16453 _ACEOF
16454 rm -f conftest$ac_exeext
16455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16456   (eval $ac_link) 2>&5
16457   ac_status=$?
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461   (eval $ac_try) 2>&5
16462   ac_status=$?
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); }; }; then
16465   ac_cv_c_stack_direction=1
16466 else
16467   echo "$as_me: program exited with status $ac_status" >&5
16468 echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16470
16471 ( exit $ac_status )
16472 ac_cv_c_stack_direction=-1
16473 fi
16474 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16475 fi
16476 fi
16477 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16478 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16479
16480 cat >>confdefs.h <<_ACEOF
16481 #define STACK_DIRECTION $ac_cv_c_stack_direction
16482 _ACEOF
16483
16484
16485 fi
16486
16487 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16488 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16489 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16490 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16491   echo $ECHO_N "(cached) $ECHO_C" >&6
16492 else
16493   ac_check_lib_save_LIBS=$LIBS
16494 LIBS="-lsun  $LIBS"
16495 cat >conftest.$ac_ext <<_ACEOF
16496 #line $LINENO "configure"
16497 /* confdefs.h.  */
16498 _ACEOF
16499 cat confdefs.h >>conftest.$ac_ext
16500 cat >>conftest.$ac_ext <<_ACEOF
16501 /* end confdefs.h.  */
16502
16503 /* Override any gcc2 internal prototype to avoid an error.  */
16504 #ifdef __cplusplus
16505 extern "C"
16506 #endif
16507 /* We use char because int might match the return type of a gcc2
16508    builtin and then its argument prototype would still apply.  */
16509 char getmntent ();
16510 int
16511 main ()
16512 {
16513 getmntent ();
16514   ;
16515   return 0;
16516 }
16517 _ACEOF
16518 rm -f conftest.$ac_objext conftest$ac_exeext
16519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16520   (eval $ac_link) 2>&5
16521   ac_status=$?
16522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523   (exit $ac_status); } &&
16524          { ac_try='test -s conftest$ac_exeext'
16525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526   (eval $ac_try) 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; }; then
16530   ac_cv_lib_sun_getmntent=yes
16531 else
16532   echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16534
16535 ac_cv_lib_sun_getmntent=no
16536 fi
16537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16538 LIBS=$ac_check_lib_save_LIBS
16539 fi
16540 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16541 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16542 if test $ac_cv_lib_sun_getmntent = yes; then
16543   LIBS="-lsun $LIBS"
16544 else
16545   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16546 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16547 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16548   echo $ECHO_N "(cached) $ECHO_C" >&6
16549 else
16550   ac_check_lib_save_LIBS=$LIBS
16551 LIBS="-lseq  $LIBS"
16552 cat >conftest.$ac_ext <<_ACEOF
16553 #line $LINENO "configure"
16554 /* confdefs.h.  */
16555 _ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h.  */
16559
16560 /* Override any gcc2 internal prototype to avoid an error.  */
16561 #ifdef __cplusplus
16562 extern "C"
16563 #endif
16564 /* We use char because int might match the return type of a gcc2
16565    builtin and then its argument prototype would still apply.  */
16566 char getmntent ();
16567 int
16568 main ()
16569 {
16570 getmntent ();
16571   ;
16572   return 0;
16573 }
16574 _ACEOF
16575 rm -f conftest.$ac_objext conftest$ac_exeext
16576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16577   (eval $ac_link) 2>&5
16578   ac_status=$?
16579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580   (exit $ac_status); } &&
16581          { ac_try='test -s conftest$ac_exeext'
16582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583   (eval $ac_try) 2>&5
16584   ac_status=$?
16585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586   (exit $ac_status); }; }; then
16587   ac_cv_lib_seq_getmntent=yes
16588 else
16589   echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16591
16592 ac_cv_lib_seq_getmntent=no
16593 fi
16594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16595 LIBS=$ac_check_lib_save_LIBS
16596 fi
16597 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16598 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16599 if test $ac_cv_lib_seq_getmntent = yes; then
16600   LIBS="-lseq $LIBS"
16601 else
16602   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16603 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16604 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16605   echo $ECHO_N "(cached) $ECHO_C" >&6
16606 else
16607   ac_check_lib_save_LIBS=$LIBS
16608 LIBS="-lgen  $LIBS"
16609 cat >conftest.$ac_ext <<_ACEOF
16610 #line $LINENO "configure"
16611 /* confdefs.h.  */
16612 _ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h.  */
16616
16617 /* Override any gcc2 internal prototype to avoid an error.  */
16618 #ifdef __cplusplus
16619 extern "C"
16620 #endif
16621 /* We use char because int might match the return type of a gcc2
16622    builtin and then its argument prototype would still apply.  */
16623 char getmntent ();
16624 int
16625 main ()
16626 {
16627 getmntent ();
16628   ;
16629   return 0;
16630 }
16631 _ACEOF
16632 rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16634   (eval $ac_link) 2>&5
16635   ac_status=$?
16636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637   (exit $ac_status); } &&
16638          { ac_try='test -s conftest$ac_exeext'
16639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640   (eval $ac_try) 2>&5
16641   ac_status=$?
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); }; }; then
16644   ac_cv_lib_gen_getmntent=yes
16645 else
16646   echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16648
16649 ac_cv_lib_gen_getmntent=no
16650 fi
16651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16652 LIBS=$ac_check_lib_save_LIBS
16653 fi
16654 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16655 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16656 if test $ac_cv_lib_gen_getmntent = yes; then
16657   LIBS="-lgen $LIBS"
16658 fi
16659
16660 fi
16661
16662 fi
16663
16664
16665 for ac_func in getmntent
16666 do
16667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16668 echo "$as_me:$LINENO: checking for $ac_func" >&5
16669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16670 if eval "test \"\${$as_ac_var+set}\" = set"; then
16671   echo $ECHO_N "(cached) $ECHO_C" >&6
16672 else
16673   cat >conftest.$ac_ext <<_ACEOF
16674 #line $LINENO "configure"
16675 /* confdefs.h.  */
16676 _ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h.  */
16680 /* System header to define __stub macros and hopefully few prototypes,
16681     which can conflict with char $ac_func (); below.
16682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16683     <limits.h> exists even on freestanding compilers.  */
16684 #ifdef __STDC__
16685 # include <limits.h>
16686 #else
16687 # include <assert.h>
16688 #endif
16689 /* Override any gcc2 internal prototype to avoid an error.  */
16690 #ifdef __cplusplus
16691 extern "C"
16692 {
16693 #endif
16694 /* We use char because int might match the return type of a gcc2
16695    builtin and then its argument prototype would still apply.  */
16696 char $ac_func ();
16697 /* The GNU C library defines this for functions which it implements
16698     to always fail with ENOSYS.  Some functions are actually named
16699     something starting with __ and the normal name is an alias.  */
16700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16701 choke me
16702 #else
16703 char (*f) () = $ac_func;
16704 #endif
16705 #ifdef __cplusplus
16706 }
16707 #endif
16708
16709 int
16710 main ()
16711 {
16712 return f != $ac_func;
16713   ;
16714   return 0;
16715 }
16716 _ACEOF
16717 rm -f conftest.$ac_objext conftest$ac_exeext
16718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16719   (eval $ac_link) 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); } &&
16723          { ac_try='test -s conftest$ac_exeext'
16724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725   (eval $ac_try) 2>&5
16726   ac_status=$?
16727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728   (exit $ac_status); }; }; then
16729   eval "$as_ac_var=yes"
16730 else
16731   echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16733
16734 eval "$as_ac_var=no"
16735 fi
16736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16737 fi
16738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16740 if test `eval echo '${'$as_ac_var'}'` = yes; then
16741   cat >>confdefs.h <<_ACEOF
16742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16743 _ACEOF
16744
16745 fi
16746 done
16747
16748
16749 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16750 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16751 if test "${ac_cv_func_closedir_void+set}" = set; then
16752   echo $ECHO_N "(cached) $ECHO_C" >&6
16753 else
16754   if test "$cross_compiling" = yes; then
16755   ac_cv_func_closedir_void=yes
16756 else
16757   cat >conftest.$ac_ext <<_ACEOF
16758 #line $LINENO "configure"
16759 /* confdefs.h.  */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h.  */
16764 $ac_includes_default
16765 #include <$ac_header_dirent>
16766 #ifndef __cplusplus
16767 int closedir ();
16768 #endif
16769
16770 int
16771 main ()
16772 {
16773 exit (closedir (opendir (".")) != 0);
16774   ;
16775   return 0;
16776 }
16777 _ACEOF
16778 rm -f conftest$ac_exeext
16779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16780   (eval $ac_link) 2>&5
16781   ac_status=$?
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16785   (eval $ac_try) 2>&5
16786   ac_status=$?
16787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788   (exit $ac_status); }; }; then
16789   ac_cv_func_closedir_void=no
16790 else
16791   echo "$as_me: program exited with status $ac_status" >&5
16792 echo "$as_me: failed program was:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16794
16795 ( exit $ac_status )
16796 ac_cv_func_closedir_void=yes
16797 fi
16798 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16799 fi
16800 fi
16801 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16802 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16803 if test $ac_cv_func_closedir_void = yes; then
16804
16805 cat >>confdefs.h <<\_ACEOF
16806 #define CLOSEDIR_VOID 1
16807 _ACEOF
16808
16809 fi
16810
16811 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16812 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16813 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16814   echo $ECHO_N "(cached) $ECHO_C" >&6
16815 else
16816   if test "$cross_compiling" = yes; then
16817   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16818 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16819    { (exit 1); exit 1; }; }
16820 else
16821   cat >conftest.$ac_ext <<_ACEOF
16822 #line $LINENO "configure"
16823 /* confdefs.h.  */
16824 _ACEOF
16825 cat confdefs.h >>conftest.$ac_ext
16826 cat >>conftest.$ac_ext <<_ACEOF
16827 /* end confdefs.h.  */
16828 #if HAVE_UNISTD_H
16829 # include <unistd.h>
16830 #endif
16831
16832 int
16833 main ()
16834 {
16835 /* If this system has a BSD-style setpgrp which takes arguments,
16836   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16837   exit successfully. */
16838   exit (setpgrp (1,1) == -1 ? 0 : 1);
16839   ;
16840   return 0;
16841 }
16842 _ACEOF
16843 rm -f conftest$ac_exeext
16844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16845   (eval $ac_link) 2>&5
16846   ac_status=$?
16847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16850   (eval $ac_try) 2>&5
16851   ac_status=$?
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); }; }; then
16854   ac_cv_func_setpgrp_void=no
16855 else
16856   echo "$as_me: program exited with status $ac_status" >&5
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16859
16860 ( exit $ac_status )
16861 ac_cv_func_setpgrp_void=yes
16862 fi
16863 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16864 fi
16865 fi
16866 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16867 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16868 if test $ac_cv_func_setpgrp_void = yes; then
16869
16870 cat >>confdefs.h <<\_ACEOF
16871 #define SETPGRP_VOID 1
16872 _ACEOF
16873
16874 fi
16875                       echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16876 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16877 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16878   echo $ECHO_N "(cached) $ECHO_C" >&6
16879 else
16880   # Some versions of Solaris, SCO, and the GNU C Library
16881    # have a broken or incompatible fnmatch.
16882    # So we run a test program.  If we are cross-compiling, take no chance.
16883    # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16884    if test "$cross_compiling" = yes; then
16885   ac_cv_func_fnmatch_works=cross
16886 else
16887   cat >conftest.$ac_ext <<_ACEOF
16888 #line $LINENO "configure"
16889 /* confdefs.h.  */
16890 _ACEOF
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h.  */
16894 #include <fnmatch.h>
16895 #          define y(a, b, c) (fnmatch (a, b, c) == 0)
16896 #          define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16897
16898 int
16899 main ()
16900 {
16901 exit
16902            (!(y ("a*", "abc", 0)
16903               && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16904               && y ("a\\\\bc", "abc", 0)
16905               && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16906               && y ("*x", ".x", 0)
16907               && n ("*x", ".x", FNM_PERIOD)
16908               && 1));
16909   ;
16910   return 0;
16911 }
16912 _ACEOF
16913 rm -f conftest$ac_exeext
16914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16915   (eval $ac_link) 2>&5
16916   ac_status=$?
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920   (eval $ac_try) 2>&5
16921   ac_status=$?
16922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923   (exit $ac_status); }; }; then
16924   ac_cv_func_fnmatch_works=yes
16925 else
16926   echo "$as_me: program exited with status $ac_status" >&5
16927 echo "$as_me: failed program was:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16929
16930 ( exit $ac_status )
16931 ac_cv_func_fnmatch_works=no
16932 fi
16933 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16934 fi
16935 fi
16936 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16937 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16938 if test $ac_cv_func_fnmatch_works = yes; then
16939
16940 cat >>confdefs.h <<\_ACEOF
16941 #define HAVE_FNMATCH 1
16942 _ACEOF
16943
16944 fi
16945
16946
16947
16948
16949
16950 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16951 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16952 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16953   echo $ECHO_N "(cached) $ECHO_C" >&6
16954 else
16955   ac_check_lib_save_LIBS=$LIBS
16956 LIBS="-lxpg4  $LIBS"
16957 cat >conftest.$ac_ext <<_ACEOF
16958 #line $LINENO "configure"
16959 /* confdefs.h.  */
16960 _ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h.  */
16964
16965 /* Override any gcc2 internal prototype to avoid an error.  */
16966 #ifdef __cplusplus
16967 extern "C"
16968 #endif
16969 /* We use char because int might match the return type of a gcc2
16970    builtin and then its argument prototype would still apply.  */
16971 char setlocale ();
16972 int
16973 main ()
16974 {
16975 setlocale ();
16976   ;
16977   return 0;
16978 }
16979 _ACEOF
16980 rm -f conftest.$ac_objext conftest$ac_exeext
16981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16982   (eval $ac_link) 2>&5
16983   ac_status=$?
16984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985   (exit $ac_status); } &&
16986          { ac_try='test -s conftest$ac_exeext'
16987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988   (eval $ac_try) 2>&5
16989   ac_status=$?
16990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); }; }; then
16992   ac_cv_lib_xpg4_setlocale=yes
16993 else
16994   echo "$as_me: failed program was:" >&5
16995 sed 's/^/| /' conftest.$ac_ext >&5
16996
16997 ac_cv_lib_xpg4_setlocale=no
16998 fi
16999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17000 LIBS=$ac_check_lib_save_LIBS
17001 fi
17002 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17003 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17004 if test $ac_cv_lib_xpg4_setlocale = yes; then
17005   LIBS="$LIBS -lxpg4"
17006 fi
17007
17008
17009
17010
17011 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17012 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17013 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17014   echo $ECHO_N "(cached) $ECHO_C" >&6
17015 else
17016   ac_check_lib_save_LIBS=$LIBS
17017 LIBS="-lsun  $LIBS"
17018 cat >conftest.$ac_ext <<_ACEOF
17019 #line $LINENO "configure"
17020 /* confdefs.h.  */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h.  */
17025
17026 /* Override any gcc2 internal prototype to avoid an error.  */
17027 #ifdef __cplusplus
17028 extern "C"
17029 #endif
17030 /* We use char because int might match the return type of a gcc2
17031    builtin and then its argument prototype would still apply.  */
17032 char getpwnam ();
17033 int
17034 main ()
17035 {
17036 getpwnam ();
17037   ;
17038   return 0;
17039 }
17040 _ACEOF
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17043   (eval $ac_link) 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); } &&
17047          { ac_try='test -s conftest$ac_exeext'
17048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049   (eval $ac_try) 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }; }; then
17053   ac_cv_lib_sun_getpwnam=yes
17054 else
17055   echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17057
17058 ac_cv_lib_sun_getpwnam=no
17059 fi
17060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17061 LIBS=$ac_check_lib_save_LIBS
17062 fi
17063 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17064 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17065 if test $ac_cv_lib_sun_getpwnam = yes; then
17066   cat >>confdefs.h <<_ACEOF
17067 #define HAVE_LIBSUN 1
17068 _ACEOF
17069
17070   LIBS="-lsun $LIBS"
17071
17072 fi
17073
17074
17075
17076 for ac_header in zlib.h
17077 do
17078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17080   echo "$as_me:$LINENO: checking for $ac_header" >&5
17081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17083   echo $ECHO_N "(cached) $ECHO_C" >&6
17084 fi
17085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17087 else
17088   # Is the header compilable?
17089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17091 cat >conftest.$ac_ext <<_ACEOF
17092 #line $LINENO "configure"
17093 /* confdefs.h.  */
17094 _ACEOF
17095 cat confdefs.h >>conftest.$ac_ext
17096 cat >>conftest.$ac_ext <<_ACEOF
17097 /* end confdefs.h.  */
17098 $ac_includes_default
17099 #include <$ac_header>
17100 _ACEOF
17101 rm -f conftest.$ac_objext
17102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17103   (eval $ac_compile) 2>&5
17104   ac_status=$?
17105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106   (exit $ac_status); } &&
17107          { ac_try='test -s conftest.$ac_objext'
17108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109   (eval $ac_try) 2>&5
17110   ac_status=$?
17111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112   (exit $ac_status); }; }; then
17113   ac_header_compiler=yes
17114 else
17115   echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17117
17118 ac_header_compiler=no
17119 fi
17120 rm -f conftest.$ac_objext conftest.$ac_ext
17121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17122 echo "${ECHO_T}$ac_header_compiler" >&6
17123
17124 # Is the header present?
17125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17127 cat >conftest.$ac_ext <<_ACEOF
17128 #line $LINENO "configure"
17129 /* confdefs.h.  */
17130 _ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h.  */
17134 #include <$ac_header>
17135 _ACEOF
17136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17138   ac_status=$?
17139   grep -v '^ *+' conftest.er1 >conftest.err
17140   rm -f conftest.er1
17141   cat conftest.err >&5
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); } >/dev/null; then
17144   if test -s conftest.err; then
17145     ac_cpp_err=$ac_c_preproc_warn_flag
17146   else
17147     ac_cpp_err=
17148   fi
17149 else
17150   ac_cpp_err=yes
17151 fi
17152 if test -z "$ac_cpp_err"; then
17153   ac_header_preproc=yes
17154 else
17155   echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17157
17158   ac_header_preproc=no
17159 fi
17160 rm -f conftest.err conftest.$ac_ext
17161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17162 echo "${ECHO_T}$ac_header_preproc" >&6
17163
17164 # So?  What about this header?
17165 case $ac_header_compiler:$ac_header_preproc in
17166   yes:no )
17167     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17169     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17171     (
17172       cat <<\_ASBOX
17173 ## ------------------------------------ ##
17174 ## Report this to bug-autoconf@gnu.org. ##
17175 ## ------------------------------------ ##
17176 _ASBOX
17177     ) |
17178       sed "s/^/$as_me: WARNING:     /" >&2
17179     ;;
17180   no:yes )
17181     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17183     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17187     (
17188       cat <<\_ASBOX
17189 ## ------------------------------------ ##
17190 ## Report this to bug-autoconf@gnu.org. ##
17191 ## ------------------------------------ ##
17192 _ASBOX
17193     ) |
17194       sed "s/^/$as_me: WARNING:     /" >&2
17195     ;;
17196 esac
17197 echo "$as_me:$LINENO: checking for $ac_header" >&5
17198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17199 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17200   echo $ECHO_N "(cached) $ECHO_C" >&6
17201 else
17202   eval "$as_ac_Header=$ac_header_preproc"
17203 fi
17204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17206
17207 fi
17208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17209   cat >>confdefs.h <<_ACEOF
17210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17211 _ACEOF
17212
17213 fi
17214
17215 done
17216
17217 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17218 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17219 if test "${ac_cv_lib_z_deflate+set}" = set; then
17220   echo $ECHO_N "(cached) $ECHO_C" >&6
17221 else
17222   ac_check_lib_save_LIBS=$LIBS
17223 LIBS="-lz  $LIBS"
17224 cat >conftest.$ac_ext <<_ACEOF
17225 #line $LINENO "configure"
17226 /* confdefs.h.  */
17227 _ACEOF
17228 cat confdefs.h >>conftest.$ac_ext
17229 cat >>conftest.$ac_ext <<_ACEOF
17230 /* end confdefs.h.  */
17231
17232 /* Override any gcc2 internal prototype to avoid an error.  */
17233 #ifdef __cplusplus
17234 extern "C"
17235 #endif
17236 /* We use char because int might match the return type of a gcc2
17237    builtin and then its argument prototype would still apply.  */
17238 char deflate ();
17239 int
17240 main ()
17241 {
17242 deflate ();
17243   ;
17244   return 0;
17245 }
17246 _ACEOF
17247 rm -f conftest.$ac_objext conftest$ac_exeext
17248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17249   (eval $ac_link) 2>&5
17250   ac_status=$?
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); } &&
17253          { ac_try='test -s conftest$ac_exeext'
17254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255   (eval $ac_try) 2>&5
17256   ac_status=$?
17257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258   (exit $ac_status); }; }; then
17259   ac_cv_lib_z_deflate=yes
17260 else
17261   echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17263
17264 ac_cv_lib_z_deflate=no
17265 fi
17266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17267 LIBS=$ac_check_lib_save_LIBS
17268 fi
17269 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17270 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17271 if test $ac_cv_lib_z_deflate = yes; then
17272   FDLIBS="-lz"
17273 fi
17274
17275 have_zlib=no
17276 if test x$FDLIBS = x-lz; then
17277   cat >>confdefs.h <<\_ACEOF
17278 #define HAVE_LIBZ 1
17279 _ACEOF
17280
17281   have_zlib=yes
17282 fi
17283
17284 PTHREAD_LIB=""
17285 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17286 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17287 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17288   echo $ECHO_N "(cached) $ECHO_C" >&6
17289 else
17290   ac_check_lib_save_LIBS=$LIBS
17291 LIBS="-lpthread  $LIBS"
17292 cat >conftest.$ac_ext <<_ACEOF
17293 #line $LINENO "configure"
17294 /* confdefs.h.  */
17295 _ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h.  */
17299
17300 /* Override any gcc2 internal prototype to avoid an error.  */
17301 #ifdef __cplusplus
17302 extern "C"
17303 #endif
17304 /* We use char because int might match the return type of a gcc2
17305    builtin and then its argument prototype would still apply.  */
17306 char pthread_create ();
17307 int
17308 main ()
17309 {
17310 pthread_create ();
17311   ;
17312   return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17317   (eval $ac_link) 2>&5
17318   ac_status=$?
17319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320   (exit $ac_status); } &&
17321          { ac_try='test -s conftest$ac_exeext'
17322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323   (eval $ac_try) 2>&5
17324   ac_status=$?
17325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326   (exit $ac_status); }; }; then
17327   ac_cv_lib_pthread_pthread_create=yes
17328 else
17329   echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17331
17332 ac_cv_lib_pthread_pthread_create=no
17333 fi
17334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17335 LIBS=$ac_check_lib_save_LIBS
17336 fi
17337 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17338 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17339 if test $ac_cv_lib_pthread_pthread_create = yes; then
17340   PTHREAD_LIB="-lpthread"
17341 else
17342   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17343 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17344 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17345   echo $ECHO_N "(cached) $ECHO_C" >&6
17346 else
17347   ac_check_lib_save_LIBS=$LIBS
17348 LIBS="-lpthreads  $LIBS"
17349 cat >conftest.$ac_ext <<_ACEOF
17350 #line $LINENO "configure"
17351 /* confdefs.h.  */
17352 _ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h.  */
17356
17357 /* Override any gcc2 internal prototype to avoid an error.  */
17358 #ifdef __cplusplus
17359 extern "C"
17360 #endif
17361 /* We use char because int might match the return type of a gcc2
17362    builtin and then its argument prototype would still apply.  */
17363 char pthread_create ();
17364 int
17365 main ()
17366 {
17367 pthread_create ();
17368   ;
17369   return 0;
17370 }
17371 _ACEOF
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17374   (eval $ac_link) 2>&5
17375   ac_status=$?
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); } &&
17378          { ac_try='test -s conftest$ac_exeext'
17379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380   (eval $ac_try) 2>&5
17381   ac_status=$?
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); }; }; then
17384   ac_cv_lib_pthreads_pthread_create=yes
17385 else
17386   echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17388
17389 ac_cv_lib_pthreads_pthread_create=no
17390 fi
17391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17392 LIBS=$ac_check_lib_save_LIBS
17393 fi
17394 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17395 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17396 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17397   PTHREAD_LIB="-lpthreads"
17398 else
17399   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17400 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17401 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17402   echo $ECHO_N "(cached) $ECHO_C" >&6
17403 else
17404   ac_check_lib_save_LIBS=$LIBS
17405 LIBS="-lc_r  $LIBS"
17406 cat >conftest.$ac_ext <<_ACEOF
17407 #line $LINENO "configure"
17408 /* confdefs.h.  */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h.  */
17413
17414 /* Override any gcc2 internal prototype to avoid an error.  */
17415 #ifdef __cplusplus
17416 extern "C"
17417 #endif
17418 /* We use char because int might match the return type of a gcc2
17419    builtin and then its argument prototype would still apply.  */
17420 char pthread_create ();
17421 int
17422 main ()
17423 {
17424 pthread_create ();
17425   ;
17426   return 0;
17427 }
17428 _ACEOF
17429 rm -f conftest.$ac_objext conftest$ac_exeext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17431   (eval $ac_link) 2>&5
17432   ac_status=$?
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); } &&
17435          { ac_try='test -s conftest$ac_exeext'
17436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437   (eval $ac_try) 2>&5
17438   ac_status=$?
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); }; }; then
17441   ac_cv_lib_c_r_pthread_create=yes
17442 else
17443   echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17445
17446 ac_cv_lib_c_r_pthread_create=no
17447 fi
17448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17449 LIBS=$ac_check_lib_save_LIBS
17450 fi
17451 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17452 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17453 if test $ac_cv_lib_c_r_pthread_create = yes; then
17454   PTHREAD_LIB="-lc_r"
17455 else
17456   echo "$as_me:$LINENO: checking for pthread_create" >&5
17457 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17458 if test "${ac_cv_func_pthread_create+set}" = set; then
17459   echo $ECHO_N "(cached) $ECHO_C" >&6
17460 else
17461   cat >conftest.$ac_ext <<_ACEOF
17462 #line $LINENO "configure"
17463 /* confdefs.h.  */
17464 _ACEOF
17465 cat confdefs.h >>conftest.$ac_ext
17466 cat >>conftest.$ac_ext <<_ACEOF
17467 /* end confdefs.h.  */
17468 /* System header to define __stub macros and hopefully few prototypes,
17469     which can conflict with char pthread_create (); below.
17470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17471     <limits.h> exists even on freestanding compilers.  */
17472 #ifdef __STDC__
17473 # include <limits.h>
17474 #else
17475 # include <assert.h>
17476 #endif
17477 /* Override any gcc2 internal prototype to avoid an error.  */
17478 #ifdef __cplusplus
17479 extern "C"
17480 {
17481 #endif
17482 /* We use char because int might match the return type of a gcc2
17483    builtin and then its argument prototype would still apply.  */
17484 char pthread_create ();
17485 /* The GNU C library defines this for functions which it implements
17486     to always fail with ENOSYS.  Some functions are actually named
17487     something starting with __ and the normal name is an alias.  */
17488 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17489 choke me
17490 #else
17491 char (*f) () = pthread_create;
17492 #endif
17493 #ifdef __cplusplus
17494 }
17495 #endif
17496
17497 int
17498 main ()
17499 {
17500 return f != pthread_create;
17501   ;
17502   return 0;
17503 }
17504 _ACEOF
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17507   (eval $ac_link) 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); } &&
17511          { ac_try='test -s conftest$ac_exeext'
17512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513   (eval $ac_try) 2>&5
17514   ac_status=$?
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); }; }; then
17517   ac_cv_func_pthread_create=yes
17518 else
17519   echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17521
17522 ac_cv_func_pthread_create=no
17523 fi
17524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17525 fi
17526 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17527 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17528
17529
17530 fi
17531
17532
17533 fi
17534
17535
17536 fi
17537
17538
17539
17540 cat >>confdefs.h <<\_ACEOF
17541 #define FDLIBS 1
17542 _ACEOF
17543
17544
17545
17546 CFLAGS=${CFLAGS--O}
17547 LDFLAGS=${LDFLAGS--O}
17548 DB_LIBS="${SQL_LFLAGS}"
17549
17550 CPPFLAGS="$CPPFLAGS"
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565 OBJLIST=
17566
17567
17568 lld="lld"
17569 llu="llu"
17570
17571 WCFLAGS=
17572 WLDFLAGS=
17573
17574 #
17575 # Finally we set appropriate distribution specific
17576 #  variables and defaults
17577 #
17578 # PFILES are platform specific files
17579 PFILES="platforms/Makefile"
17580 PSCMD="ps -e"
17581 WIN32=
17582 hostname=`uname -n`
17583 case "$DISTNAME" in
17584 aix)
17585         DISTVER=`uname -r`
17586         PSCMD="ps -e -o pid,comm"
17587         PFILES="${PFILES} \
17588            platforms/aix/Makefile"
17589         TAPEDRIVE="/dev/rmt0.1"
17590   ;;
17591 alpha)
17592         DISTVER=`uname -r`
17593         PTHREAD_LIB="-lpthread -lexc"
17594         if test "${CC}" = "gcc" ; then
17595            lld="lld"
17596            llu="llu"
17597         else
17598            lld="ld"
17599            llu="lu"
17600         fi
17601         TAPEDRIVE="/dev/nrmt0"
17602   ;;
17603 bsdi)
17604         DISTVER=`uname -a |awk '{print $3}'`
17605         TAPEDRIVE="/dev/nrmt0"
17606         PTHREAD_LIB="-pthread"
17607         CFLAGS="${CFLAGS} -pthread"
17608         PSCMD="ps -x -o pid,command"
17609         lld="qd"
17610         llu="qu"
17611         PFILES="${PFILES} \
17612             platforms/bsdi/Makefile \
17613             platforms/bsdi/bacula-fd \
17614             platforms/bsdi/bacula-sd \
17615             platforms/bsdi/bacula-dir"
17616         hostname=`hostname -s`
17617         largefile_support="yes"
17618   ;;
17619 cygwin)
17620         DISTVER=`uname -a |awk '{print $3}'`
17621         TAPEDRIVE="/dev/nrst0"
17622         WIN32=win32
17623         WCFLAGS="-mwindows"
17624         WLDFLAGS="-mwindows"
17625   ;;
17626 darwin)
17627         DISTVER=`uname -r`
17628         TAPEDRIVE="/dev/nst0"
17629         PSCMD="ps -e -o pid,command"
17630         hostname=`hostname -s`
17631         PFILES="${PFILES} \
17632            platforms/darwin/Makefile"
17633   ;;
17634 debian)
17635         DISTVER=`cat /etc/debian_version`
17636         TAPEDRIVE="/dev/nrst0"
17637         PSCMD="ps -e -o pid,command"
17638         hostname=`hostname -s`
17639   ;;
17640 freebsd)
17641         DISTVER=`uname -a |awk '{print $3}'`
17642         VER=`echo $DISTVER | cut -c 1`
17643         if test x$VER = x4 ; then
17644            PTHREAD_LIB="-pthread"
17645            CFLAGS="${CFLAGS} -pthread"
17646         fi
17647         lld="qd"
17648         llu="qu"
17649         TAPEDRIVE="/dev/nrsa0"
17650         PSCMD="ps -x -o pid,command"
17651         PFILES="${PFILES} \
17652             platforms/freebsd/Makefile \
17653             platforms/freebsd/bacula-fd \
17654             platforms/freebsd/bacula-sd \
17655             platforms/freebsd/bacula-dir"
17656         hostname=`hostname -s`
17657         largefile_support="yes"
17658   ;;
17659 hpux)
17660         DISTVER=`uname -r`
17661         TAPEDRIVE="/dev/rmt/0hnb"
17662   ;;
17663 irix)
17664         DISTVER=`uname -r`
17665         TAPEDRIVE="/dev/rmt/0cbn"
17666         PSCMD="ps -e -o pid,comm"
17667         PFILES="${PFILES} \
17668             platforms/irix/Makefile \
17669             platforms/irix/bacula-fd \
17670             platforms/irix/bacula-sd \
17671             platforms/irix/bacula-dir"
17672   ;;
17673 netbsd)
17674         DISTVER=`uname -a |awk '{print $3}'`
17675         lld="qd"
17676         llu="qu"
17677         TAPEDRIVE="/dev/nrst0"
17678         PSCMD="ps -a -o pid,command"
17679         PTHREAD_LIB="-pthread"
17680         CFLAGS="${CFLAGS} -pthread"
17681   ;;
17682 openbsd)
17683         DISTVER=`uname -a |awk '{print $3}'`
17684         lld="qd"
17685         llu="qu"
17686         TAPEDRIVE="/dev/nrst0"
17687         PSCMD="ps -a -o pid,command"
17688         PTHREAD_LIB="-pthread"
17689         CFLAGS="${CFLAGS} -pthread"
17690         PFILES="${PFILES} \
17691             platforms/openbsd/Makefile \
17692             platforms/openbsd/bacula-fd \
17693             platforms/openbsd/bacula-sd \
17694             platforms/openbsd/bacula-dir"
17695   ;;
17696 redhat)
17697         DISTVER=`cat /etc/redhat-release | grep release |\
17698            cut -f 5 -d ' '`
17699         TAPEDRIVE="/dev/nst0"
17700         PSCMD="ps -e -o pid,command"
17701         PFILES="${PFILES} \
17702             platforms/redhat/Makefile \
17703             platforms/redhat/bacula-fd \
17704             platforms/redhat/bacula-sd \
17705             platforms/redhat/bacula-dir \
17706             platforms/redhat/bacula.spec \
17707             "
17708         hostname=`hostname -s`
17709   ;;
17710 mandrake)
17711         DISTVER=`cat /etc/mandrake-release | grep release |\
17712            cut -f 5 -d ' '`
17713         TAPEDRIVE="/dev/nst0"
17714         PSCMD="ps -e -o pid,command"
17715         PFILES="${PFILES} \
17716             platforms/mandrake/Makefile \
17717             platforms/mandrake/bacula-fd \
17718             platforms/mandrake/bacula-sd \
17719             platforms/mandrake/bacula-dir \
17720             platforms/mandrake/bacula.spec \
17721             "
17722         hostname=`hostname -s`
17723   ;;
17724 gentoo)
17725         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17726         TAPEDRIVE="/dev/nst0"
17727         PSCMD="ps -e -o pid,command"
17728         PFILES="${PFILES} \
17729             platforms/gentoo/Makefile \
17730             platforms/gentoo/bacula-fd \
17731             platforms/gentoo/bacula-sd \
17732             platforms/gentoo/bacula-dir"
17733         hostname=`hostname -s`
17734   ;;
17735
17736 slackware)
17737         DISTVER=`cat /etc/slackware-version`
17738         TAPEDRIVE="/dev/nst0"
17739         PSCMD="ps -e -o pid,command"
17740         hostname=`hostname -s`
17741   ;;
17742 solaris)
17743         DISTVER=`uname -r`
17744         TAPEDRIVE="/dev/rmt/0cbn"
17745         PSCMD="ps -e -o pid,comm"
17746         PFILES="${PFILES} \
17747             platforms/solaris/Makefile \
17748             platforms/solaris/bacula-fd \
17749             platforms/solaris/bacula-sd \
17750             platforms/solaris/bacula-dir"
17751         if test x$DISTVER = x5.6 ; then
17752             cat >>confdefs.h <<\_ACEOF
17753 #define HAVE_OLD_SOCKOPT 1
17754 _ACEOF
17755
17756         fi
17757   ;;
17758 suse)
17759         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17760             cut -f 3 -d ' '`
17761         TAPEDRIVE="/dev/nst0"
17762         PSCMD="ps -e -o pid,command"
17763         hostname=`hostname -s`
17764         PFILES="${PFILES} \
17765             platforms/suse/Makefile \
17766             platforms/suse/bacula-fd \
17767             platforms/suse/bacula-sd \
17768             platforms/suse/bacula-dir"
17769   ;;
17770 suse5)
17771         DISTNAME=suse
17772         DISTVER=5.x
17773         TAPEDRIVE="/dev/nst0"
17774         PSCMD="ps -e -o pid,command"
17775         hostname=`hostname -s`
17776         PFILES="${PFILES} \
17777             platforms/suse/Makefile \
17778             platforms/suse/bacula-fd \
17779             platforms/suse/bacula-sd \
17780             platforms/suse/bacula-dir"
17781   ;;
17782 unknown)
17783         DISTVER=unknown
17784         TAPEDRIVE="/dev/nst0"
17785   ;;
17786 *)
17787   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17788   ;;
17789 esac
17790
17791
17792
17793 LIBS="$PTHREAD_LIB $LIBS"
17794
17795 cat >>confdefs.h <<_ACEOF
17796 #define lld "$lld"
17797 _ACEOF
17798
17799 cat >>confdefs.h <<_ACEOF
17800 #define llu "$llu"
17801 _ACEOF
17802
17803
17804
17805
17806
17807
17808
17809 MCOMMON=./autoconf/Make.common
17810
17811
17812 if test "x${subsysdir}" = "x${sbindir}" ; then
17813    echo " "
17814    echo " "
17815    echo "You have set both --sbindir and --with-subsys-dir"
17816    echo "  equal to: ${subsysdir} "
17817    echo "This is not permitted. Please reconfigure."
17818    echo " "
17819    echo "Aborting configuration ..."
17820    echo " "
17821    echo " "
17822    exit 1
17823 fi
17824
17825                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/tconsole/Makefile 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/make_postgresql_tables src/cats/drop_postgresql_tables src/cats/create_postgresql_database src/cats/grant_postgresql_privileges src/cats/make_mysql_tables src/cats/drop_mysql_tables src/cats/update_mysql_tables src/cats/create_mysql_database src/cats/grant_mysql_privileges src/cats/make_sqlite_tables src/cats/drop_sqlite_tables src/cats/update_sqlite_tables src/cats/create_sqlite_database  src/cats/grant_sqlite_privileges src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/make_bdb_tables src/cats/drop_bdb_tables src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/update_bacula_tables src/findlib/Makefile src/tools/Makefile $PFILES"
17826           ac_config_commands="$ac_config_commands default"
17827 cat >confcache <<\_ACEOF
17828 # This file is a shell script that caches the results of configure
17829 # tests run on this system so they can be shared between configure
17830 # scripts and configure runs, see configure's option --config-cache.
17831 # It is not useful on other systems.  If it contains results you don't
17832 # want to keep, you may remove or edit it.
17833 #
17834 # config.status only pays attention to the cache file if you give it
17835 # the --recheck option to rerun configure.
17836 #
17837 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17838 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17839 # following values.
17840
17841 _ACEOF
17842
17843 # The following way of writing the cache mishandles newlines in values,
17844 # but we know of no workaround that is simple, portable, and efficient.
17845 # So, don't put newlines in cache variables' values.
17846 # Ultrix sh set writes to stderr and can't be redirected directly,
17847 # and sets the high bit in the cache file unless we assign to the vars.
17848 {
17849   (set) 2>&1 |
17850     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17851     *ac_space=\ *)
17852       # `set' does not quote correctly, so add quotes (double-quote
17853       # substitution turns \\\\ into \\, and sed turns \\ into \).
17854       sed -n \
17855         "s/'/'\\\\''/g;
17856           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17857       ;;
17858     *)
17859       # `set' quotes correctly as required by POSIX, so do not add quotes.
17860       sed -n \
17861         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17862       ;;
17863     esac;
17864 } |
17865   sed '
17866      t clear
17867      : clear
17868      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17869      t end
17870      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17871      : end' >>confcache
17872 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17873   if test -w $cache_file; then
17874     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17875     cat confcache >$cache_file
17876   else
17877     echo "not updating unwritable cache $cache_file"
17878   fi
17879 fi
17880 rm -f confcache
17881
17882 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17883 # Let make expand exec_prefix.
17884 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17885
17886 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17887 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17888 # trailing colons and then remove the whole line if VPATH becomes empty
17889 # (actually we leave an empty line to preserve line numbers).
17890 if test "x$srcdir" = x.; then
17891   ac_vpsub='/^[         ]*VPATH[        ]*=/{
17892 s/:*\$(srcdir):*/:/;
17893 s/:*\${srcdir}:*/:/;
17894 s/:*@srcdir@:*/:/;
17895 s/^\([^=]*=[    ]*\):*/\1/;
17896 s/:*$//;
17897 s/^[^=]*=[      ]*$//;
17898 }'
17899 fi
17900
17901 DEFS=-DHAVE_CONFIG_H
17902
17903 ac_libobjs=
17904 ac_ltlibobjs=
17905 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17906   # 1. Remove the extension, and $U if already installed.
17907   ac_i=`echo "$ac_i" |
17908          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17909   # 2. Add them.
17910   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17911   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17912 done
17913 LIBOBJS=$ac_libobjs
17914
17915 LTLIBOBJS=$ac_ltlibobjs
17916
17917
17918
17919 : ${CONFIG_STATUS=./config.status}
17920 ac_clean_files_save=$ac_clean_files
17921 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17922 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17923 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17924 cat >$CONFIG_STATUS <<_ACEOF
17925 #! $SHELL
17926 # Generated by $as_me.
17927 # Run this file to recreate the current configuration.
17928 # Compiler output produced by configure, useful for debugging
17929 # configure, is in config.log if it exists.
17930
17931 debug=false
17932 ac_cs_recheck=false
17933 ac_cs_silent=false
17934 SHELL=\${CONFIG_SHELL-$SHELL}
17935 _ACEOF
17936
17937 cat >>$CONFIG_STATUS <<\_ACEOF
17938 ## --------------------- ##
17939 ## M4sh Initialization.  ##
17940 ## --------------------- ##
17941
17942 # Be Bourne compatible
17943 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17944   emulate sh
17945   NULLCMD=:
17946   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17947   # is contrary to our usage.  Disable this feature.
17948   alias -g '${1+"$@"}'='"$@"'
17949 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17950   set -o posix
17951 fi
17952
17953 # Support unset when possible.
17954 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17955   as_unset=unset
17956 else
17957   as_unset=false
17958 fi
17959
17960
17961 # Work around bugs in pre-3.0 UWIN ksh.
17962 $as_unset ENV MAIL MAILPATH
17963 PS1='$ '
17964 PS2='> '
17965 PS4='+ '
17966
17967 # NLS nuisances.
17968 for as_var in \
17969   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17970   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17971   LC_TELEPHONE LC_TIME
17972 do
17973   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17974     eval $as_var=C; export $as_var
17975   else
17976     $as_unset $as_var
17977   fi
17978 done
17979
17980 # Required to use basename.
17981 if expr a : '\(a\)' >/dev/null 2>&1; then
17982   as_expr=expr
17983 else
17984   as_expr=false
17985 fi
17986
17987 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17988   as_basename=basename
17989 else
17990   as_basename=false
17991 fi
17992
17993
17994 # Name of the executable.
17995 as_me=`$as_basename "$0" ||
17996 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17997          X"$0" : 'X\(//\)$' \| \
17998          X"$0" : 'X\(/\)$' \| \
17999          .     : '\(.\)' 2>/dev/null ||
18000 echo X/"$0" |
18001     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18002           /^X\/\(\/\/\)$/{ s//\1/; q; }
18003           /^X\/\(\/\).*/{ s//\1/; q; }
18004           s/.*/./; q'`
18005
18006
18007 # PATH needs CR, and LINENO needs CR and PATH.
18008 # Avoid depending upon Character Ranges.
18009 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18010 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18011 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18012 as_cr_digits='0123456789'
18013 as_cr_alnum=$as_cr_Letters$as_cr_digits
18014
18015 # The user is always right.
18016 if test "${PATH_SEPARATOR+set}" != set; then
18017   echo "#! /bin/sh" >conf$$.sh
18018   echo  "exit 0"   >>conf$$.sh
18019   chmod +x conf$$.sh
18020   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18021     PATH_SEPARATOR=';'
18022   else
18023     PATH_SEPARATOR=:
18024   fi
18025   rm -f conf$$.sh
18026 fi
18027
18028
18029   as_lineno_1=$LINENO
18030   as_lineno_2=$LINENO
18031   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18032   test "x$as_lineno_1" != "x$as_lineno_2" &&
18033   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18034   # Find who we are.  Look in the path if we contain no path at all
18035   # relative or not.
18036   case $0 in
18037     *[\\/]* ) as_myself=$0 ;;
18038     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18039 for as_dir in $PATH
18040 do
18041   IFS=$as_save_IFS
18042   test -z "$as_dir" && as_dir=.
18043   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18044 done
18045
18046        ;;
18047   esac
18048   # We did not find ourselves, most probably we were run as `sh COMMAND'
18049   # in which case we are not to be found in the path.
18050   if test "x$as_myself" = x; then
18051     as_myself=$0
18052   fi
18053   if test ! -f "$as_myself"; then
18054     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18055 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18056    { (exit 1); exit 1; }; }
18057   fi
18058   case $CONFIG_SHELL in
18059   '')
18060     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18061 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18062 do
18063   IFS=$as_save_IFS
18064   test -z "$as_dir" && as_dir=.
18065   for as_base in sh bash ksh sh5; do
18066          case $as_dir in
18067          /*)
18068            if ("$as_dir/$as_base" -c '
18069   as_lineno_1=$LINENO
18070   as_lineno_2=$LINENO
18071   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18072   test "x$as_lineno_1" != "x$as_lineno_2" &&
18073   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18074              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18075              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18076              CONFIG_SHELL=$as_dir/$as_base
18077              export CONFIG_SHELL
18078              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18079            fi;;
18080          esac
18081        done
18082 done
18083 ;;
18084   esac
18085
18086   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18087   # uniformly replaced by the line number.  The first 'sed' inserts a
18088   # line-number line before each line; the second 'sed' does the real
18089   # work.  The second script uses 'N' to pair each line-number line
18090   # with the numbered line, and appends trailing '-' during
18091   # substitution so that $LINENO is not a special case at line end.
18092   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18093   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18094   sed '=' <$as_myself |
18095     sed '
18096       N
18097       s,$,-,
18098       : loop
18099       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18100       t loop
18101       s,-$,,
18102       s,^['$as_cr_digits']*\n,,
18103     ' >$as_me.lineno &&
18104   chmod +x $as_me.lineno ||
18105     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18106 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18107    { (exit 1); exit 1; }; }
18108
18109   # Don't try to exec as it changes $[0], causing all sort of problems
18110   # (the dirname of $[0] is not the place where we might find the
18111   # original and so on.  Autoconf is especially sensible to this).
18112   . ./$as_me.lineno
18113   # Exit status is that of the last command.
18114   exit
18115 }
18116
18117
18118 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18119   *c*,-n*) ECHO_N= ECHO_C='
18120 ' ECHO_T='      ' ;;
18121   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18122   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18123 esac
18124
18125 if expr a : '\(a\)' >/dev/null 2>&1; then
18126   as_expr=expr
18127 else
18128   as_expr=false
18129 fi
18130
18131 rm -f conf$$ conf$$.exe conf$$.file
18132 echo >conf$$.file
18133 if ln -s conf$$.file conf$$ 2>/dev/null; then
18134   # We could just check for DJGPP; but this test a) works b) is more generic
18135   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18136   if test -f conf$$.exe; then
18137     # Don't use ln at all; we don't have any links
18138     as_ln_s='cp -p'
18139   else
18140     as_ln_s='ln -s'
18141   fi
18142 elif ln conf$$.file conf$$ 2>/dev/null; then
18143   as_ln_s=ln
18144 else
18145   as_ln_s='cp -p'
18146 fi
18147 rm -f conf$$ conf$$.exe conf$$.file
18148
18149 if mkdir -p . 2>/dev/null; then
18150   as_mkdir_p=:
18151 else
18152   as_mkdir_p=false
18153 fi
18154
18155 as_executable_p="test -f"
18156
18157 # Sed expression to map a string onto a valid CPP name.
18158 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18159
18160 # Sed expression to map a string onto a valid variable name.
18161 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18162
18163
18164 # IFS
18165 # We need space, tab and new line, in precisely that order.
18166 as_nl='
18167 '
18168 IFS="   $as_nl"
18169
18170 # CDPATH.
18171 $as_unset CDPATH
18172
18173 exec 6>&1
18174
18175 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18176 # report actual input values of CONFIG_FILES etc. instead of their
18177 # values after options handling.  Logging --version etc. is OK.
18178 exec 5>>config.log
18179 {
18180   echo
18181   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18182 ## Running $as_me. ##
18183 _ASBOX
18184 } >&5
18185 cat >&5 <<_CSEOF
18186
18187 This file was extended by $as_me, which was
18188 generated by GNU Autoconf 2.57.  Invocation command line was
18189
18190   CONFIG_FILES    = $CONFIG_FILES
18191   CONFIG_HEADERS  = $CONFIG_HEADERS
18192   CONFIG_LINKS    = $CONFIG_LINKS
18193   CONFIG_COMMANDS = $CONFIG_COMMANDS
18194   $ $0 $@
18195
18196 _CSEOF
18197 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18198 echo >&5
18199 _ACEOF
18200
18201 # Files that config.status was made for.
18202 if test -n "$ac_config_files"; then
18203   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18204 fi
18205
18206 if test -n "$ac_config_headers"; then
18207   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18208 fi
18209
18210 if test -n "$ac_config_links"; then
18211   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18212 fi
18213
18214 if test -n "$ac_config_commands"; then
18215   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18216 fi
18217
18218 cat >>$CONFIG_STATUS <<\_ACEOF
18219
18220 ac_cs_usage="\
18221 \`$as_me' instantiates files from templates according to the
18222 current configuration.
18223
18224 Usage: $0 [OPTIONS] [FILE]...
18225
18226   -h, --help       print this help, then exit
18227   -V, --version    print version number, then exit
18228   -q, --quiet      do not print progress messages
18229   -d, --debug      don't remove temporary files
18230       --recheck    update $as_me by reconfiguring in the same conditions
18231   --file=FILE[:TEMPLATE]
18232                    instantiate the configuration file FILE
18233   --header=FILE[:TEMPLATE]
18234                    instantiate the configuration header FILE
18235
18236 Configuration files:
18237 $config_files
18238
18239 Configuration headers:
18240 $config_headers
18241
18242 Configuration commands:
18243 $config_commands
18244
18245 Report bugs to <bug-autoconf@gnu.org>."
18246 _ACEOF
18247
18248 cat >>$CONFIG_STATUS <<_ACEOF
18249 ac_cs_version="\\
18250 config.status
18251 configured by $0, generated by GNU Autoconf 2.57,
18252   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18253
18254 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18255 Free Software Foundation, Inc.
18256 This config.status script is free software; the Free Software Foundation
18257 gives unlimited permission to copy, distribute and modify it."
18258 srcdir=$srcdir
18259 INSTALL="$INSTALL"
18260 _ACEOF
18261
18262 cat >>$CONFIG_STATUS <<\_ACEOF
18263 # If no file are specified by the user, then we need to provide default
18264 # value.  By we need to know if files were specified by the user.
18265 ac_need_defaults=:
18266 while test $# != 0
18267 do
18268   case $1 in
18269   --*=*)
18270     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18271     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18272     ac_shift=:
18273     ;;
18274   -*)
18275     ac_option=$1
18276     ac_optarg=$2
18277     ac_shift=shift
18278     ;;
18279   *) # This is not an option, so the user has probably given explicit
18280      # arguments.
18281      ac_option=$1
18282      ac_need_defaults=false;;
18283   esac
18284
18285   case $ac_option in
18286   # Handling of the options.
18287 _ACEOF
18288 cat >>$CONFIG_STATUS <<\_ACEOF
18289   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18290     ac_cs_recheck=: ;;
18291   --version | --vers* | -V )
18292     echo "$ac_cs_version"; exit 0 ;;
18293   --he | --h)
18294     # Conflict between --help and --header
18295     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18296 Try \`$0 --help' for more information." >&5
18297 echo "$as_me: error: ambiguous option: $1
18298 Try \`$0 --help' for more information." >&2;}
18299    { (exit 1); exit 1; }; };;
18300   --help | --hel | -h )
18301     echo "$ac_cs_usage"; exit 0 ;;
18302   --debug | --d* | -d )
18303     debug=: ;;
18304   --file | --fil | --fi | --f )
18305     $ac_shift
18306     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18307     ac_need_defaults=false;;
18308   --header | --heade | --head | --hea )
18309     $ac_shift
18310     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18311     ac_need_defaults=false;;
18312   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18313   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18314     ac_cs_silent=: ;;
18315
18316   # This is an error.
18317   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18318 Try \`$0 --help' for more information." >&5
18319 echo "$as_me: error: unrecognized option: $1
18320 Try \`$0 --help' for more information." >&2;}
18321    { (exit 1); exit 1; }; } ;;
18322
18323   *) ac_config_targets="$ac_config_targets $1" ;;
18324
18325   esac
18326   shift
18327 done
18328
18329 ac_configure_extra_args=
18330
18331 if $ac_cs_silent; then
18332   exec 6>/dev/null
18333   ac_configure_extra_args="$ac_configure_extra_args --silent"
18334 fi
18335
18336 _ACEOF
18337 cat >>$CONFIG_STATUS <<_ACEOF
18338 if \$ac_cs_recheck; then
18339   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18340   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18341 fi
18342
18343 _ACEOF
18344
18345
18346
18347
18348
18349 cat >>$CONFIG_STATUS <<\_ACEOF
18350 for ac_config_target in $ac_config_targets
18351 do
18352   case "$ac_config_target" in
18353   # Handling of arguments.
18354   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18355   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18356   "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18357   "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18358   "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18359   "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18360   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18361   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18362   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18363   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18364   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18365   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18366   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18367   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18368   "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18369   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18370   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18371   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18372   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18373   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18374   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18375   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18376   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18377   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18378   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18379   "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18380   "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18381   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18382   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18383   "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18384   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18385   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18386   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18387   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18388   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18389   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18390   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18391   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18392   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18393   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18394   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18395   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18396   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18397   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18398   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18399   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18400   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18401   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18402   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18403   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18404   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18405   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18406   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18407   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18408   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18409   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18410   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18411   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18412   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18413   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18414   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18415   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18416   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18417   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18418   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18419   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18420   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18421   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18422   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18423 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18424    { (exit 1); exit 1; }; };;
18425   esac
18426 done
18427
18428 # If the user did not use the arguments to specify the items to instantiate,
18429 # then the envvar interface is used.  Set only those that are not.
18430 # We use the long form for the default assignment because of an extremely
18431 # bizarre bug on SunOS 4.1.3.
18432 if $ac_need_defaults; then
18433   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18434   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18435   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18436 fi
18437
18438 # Have a temporary directory for convenience.  Make it in the build tree
18439 # simply because there is no reason to put it here, and in addition,
18440 # creating and moving files from /tmp can sometimes cause problems.
18441 # Create a temporary directory, and hook for its removal unless debugging.
18442 $debug ||
18443 {
18444   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18445   trap '{ (exit 1); exit 1; }' 1 2 13 15
18446 }
18447
18448 # Create a (secure) tmp directory for tmp files.
18449
18450 {
18451   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18452   test -n "$tmp" && test -d "$tmp"
18453 }  ||
18454 {
18455   tmp=./confstat$$-$RANDOM
18456   (umask 077 && mkdir $tmp)
18457 } ||
18458 {
18459    echo "$me: cannot create a temporary directory in ." >&2
18460    { (exit 1); exit 1; }
18461 }
18462
18463 _ACEOF
18464
18465 cat >>$CONFIG_STATUS <<_ACEOF
18466
18467 #
18468 # CONFIG_FILES section.
18469 #
18470
18471 # No need to generate the scripts if there are no CONFIG_FILES.
18472 # This happens for instance when ./config.status config.h
18473 if test -n "\$CONFIG_FILES"; then
18474   # Protect against being on the right side of a sed subst in config.status.
18475   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18476    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18477 s,@SHELL@,$SHELL,;t t
18478 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18479 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18480 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18481 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18482 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18483 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18484 s,@exec_prefix@,$exec_prefix,;t t
18485 s,@prefix@,$prefix,;t t
18486 s,@program_transform_name@,$program_transform_name,;t t
18487 s,@bindir@,$bindir,;t t
18488 s,@sbindir@,$sbindir,;t t
18489 s,@libexecdir@,$libexecdir,;t t
18490 s,@datadir@,$datadir,;t t
18491 s,@sysconfdir@,$sysconfdir,;t t
18492 s,@sharedstatedir@,$sharedstatedir,;t t
18493 s,@localstatedir@,$localstatedir,;t t
18494 s,@libdir@,$libdir,;t t
18495 s,@includedir@,$includedir,;t t
18496 s,@oldincludedir@,$oldincludedir,;t t
18497 s,@infodir@,$infodir,;t t
18498 s,@mandir@,$mandir,;t t
18499 s,@build_alias@,$build_alias,;t t
18500 s,@host_alias@,$host_alias,;t t
18501 s,@target_alias@,$target_alias,;t t
18502 s,@DEFS@,$DEFS,;t t
18503 s,@ECHO_C@,$ECHO_C,;t t
18504 s,@ECHO_N@,$ECHO_N,;t t
18505 s,@ECHO_T@,$ECHO_T,;t t
18506 s,@LIBS@,$LIBS,;t t
18507 s,@BUILD_DIR@,$BUILD_DIR,;t t
18508 s,@TRUEPRG@,$TRUEPRG,;t t
18509 s,@FALSEPRG@,$FALSEPRG,;t t
18510 s,@build@,$build,;t t
18511 s,@build_cpu@,$build_cpu,;t t
18512 s,@build_vendor@,$build_vendor,;t t
18513 s,@build_os@,$build_os,;t t
18514 s,@host@,$host,;t t
18515 s,@host_cpu@,$host_cpu,;t t
18516 s,@host_vendor@,$host_vendor,;t t
18517 s,@host_os@,$host_os,;t t
18518 s,@VERSION@,$VERSION,;t t
18519 s,@DATE@,$DATE,;t t
18520 s,@LSMDATE@,$LSMDATE,;t t
18521 s,@CC@,$CC,;t t
18522 s,@CFLAGS@,$CFLAGS,;t t
18523 s,@LDFLAGS@,$LDFLAGS,;t t
18524 s,@CPPFLAGS@,$CPPFLAGS,;t t
18525 s,@ac_ct_CC@,$ac_ct_CC,;t t
18526 s,@EXEEXT@,$EXEEXT,;t t
18527 s,@OBJEXT@,$OBJEXT,;t t
18528 s,@CXX@,$CXX,;t t
18529 s,@CXXFLAGS@,$CXXFLAGS,;t t
18530 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18531 s,@CPP@,$CPP,;t t
18532 s,@EGREP@,$EGREP,;t t
18533 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18534 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18535 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18536 s,@RANLIB@,$RANLIB,;t t
18537 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18538 s,@MV@,$MV,;t t
18539 s,@RM@,$RM,;t t
18540 s,@CP@,$CP,;t t
18541 s,@SED@,$SED,;t t
18542 s,@AWK@,$AWK,;t t
18543 s,@ECHO@,$ECHO,;t t
18544 s,@CMP@,$CMP,;t t
18545 s,@TBL@,$TBL,;t t
18546 s,@AR@,$AR,;t t
18547 s,@OPENSSL@,$OPENSSL,;t t
18548 s,@MTX@,$MTX,;t t
18549 s,@PKGCONFIG@,$PKGCONFIG,;t t
18550 s,@ARFLAGS@,$ARFLAGS,;t t
18551 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18552 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18553 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18554 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18555 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18556 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18557 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18558 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18559 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18560 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18561 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18562 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18563 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18564 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18565 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18566 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18567 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18568 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18569 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18570 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18571 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18572 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18573 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18574 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18575 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18576 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18577 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18578 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18579 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18580 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18581 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18582 s,@MSGFMT@,$MSGFMT,;t t
18583 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18584 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18585 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18586 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18587 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18588 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18589 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18590 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18591 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18592 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18593 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18594 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18595 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18596 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18597 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18598 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18599 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18600 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18601 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18602 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18603 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18604 s,@GNOME_DIR@,$GNOME_DIR,;t t
18605 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18606 s,@STATIC_FD@,$STATIC_FD,;t t
18607 s,@STATIC_SD@,$STATIC_SD,;t t
18608 s,@STATIC_DIR@,$STATIC_DIR,;t t
18609 s,@STATIC_CONS@,$STATIC_CONS,;t t
18610 s,@ALL_DIRS@,$ALL_DIRS,;t t
18611 s,@CONS_INC@,$CONS_INC,;t t
18612 s,@CONS_OBJ@,$CONS_OBJ,;t t
18613 s,@CONS_SRC@,$CONS_SRC,;t t
18614 s,@CONS_LIBS@,$CONS_LIBS,;t t
18615 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18616 s,@READLINE_SRC@,$READLINE_SRC,;t t
18617 s,@working_dir@,$working_dir,;t t
18618 s,@scriptdir@,$scriptdir,;t t
18619 s,@dump_email@,$dump_email,;t t
18620 s,@job_email@,$job_email,;t t
18621 s,@smtp_host@,$smtp_host,;t t
18622 s,@piddir@,$piddir,;t t
18623 s,@subsysdir@,$subsysdir,;t t
18624 s,@baseport@,$baseport,;t t
18625 s,@dir_port@,$dir_port,;t t
18626 s,@fd_port@,$fd_port,;t t
18627 s,@sd_port@,$sd_port,;t t
18628 s,@dir_password@,$dir_password,;t t
18629 s,@fd_password@,$fd_password,;t t
18630 s,@sd_password@,$sd_password,;t t
18631 s,@dir_user@,$dir_user,;t t
18632 s,@dir_group@,$dir_group,;t t
18633 s,@sd_user@,$sd_user,;t t
18634 s,@sd_group@,$sd_group,;t t
18635 s,@fd_user@,$fd_user,;t t
18636 s,@fd_group@,$fd_group,;t t
18637 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18638 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18639 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18640 s,@cats@,$cats,;t t
18641 s,@DB_NAME@,$DB_NAME,;t t
18642 s,@GETCONF@,$GETCONF,;t t
18643 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18644 s,@X_CFLAGS@,$X_CFLAGS,;t t
18645 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18646 s,@X_LIBS@,$X_LIBS,;t t
18647 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18648 s,@LIBOBJS@,$LIBOBJS,;t t
18649 s,@ALLOCA@,$ALLOCA,;t t
18650 s,@FDLIBS@,$FDLIBS,;t t
18651 s,@DEBUG@,$DEBUG,;t t
18652 s,@DINCLUDE@,$DINCLUDE,;t t
18653 s,@DLIB@,$DLIB,;t t
18654 s,@DB_LIBS@,$DB_LIBS,;t t
18655 s,@WCFLAGS@,$WCFLAGS,;t t
18656 s,@WLDFLAGS@,$WLDFLAGS,;t t
18657 s,@OBJLIST@,$OBJLIST,;t t
18658 s,@hostname@,$hostname,;t t
18659 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18660 s,@PSCMD@,$PSCMD,;t t
18661 s,@WIN32@,$WIN32,;t t
18662 s,@DISTNAME@,$DISTNAME,;t t
18663 s,@DISTVER@,$DISTVER,;t t
18664 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18665 /@MCOMMON@/r $MCOMMON
18666 s,@MCOMMON@,,;t t
18667 CEOF
18668
18669 _ACEOF
18670
18671   cat >>$CONFIG_STATUS <<\_ACEOF
18672   # Split the substitutions into bite-sized pieces for seds with
18673   # small command number limits, like on Digital OSF/1 and HP-UX.
18674   ac_max_sed_lines=48
18675   ac_sed_frag=1 # Number of current file.
18676   ac_beg=1 # First line for current file.
18677   ac_end=$ac_max_sed_lines # Line after last line for current file.
18678   ac_more_lines=:
18679   ac_sed_cmds=
18680   while $ac_more_lines; do
18681     if test $ac_beg -gt 1; then
18682       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18683     else
18684       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18685     fi
18686     if test ! -s $tmp/subs.frag; then
18687       ac_more_lines=false
18688     else
18689       # The purpose of the label and of the branching condition is to
18690       # speed up the sed processing (if there are no `@' at all, there
18691       # is no need to browse any of the substitutions).
18692       # These are the two extra sed commands mentioned above.
18693       (echo ':t
18694   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18695       if test -z "$ac_sed_cmds"; then
18696         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18697       else
18698         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18699       fi
18700       ac_sed_frag=`expr $ac_sed_frag + 1`
18701       ac_beg=$ac_end
18702       ac_end=`expr $ac_end + $ac_max_sed_lines`
18703     fi
18704   done
18705   if test -z "$ac_sed_cmds"; then
18706     ac_sed_cmds=cat
18707   fi
18708 fi # test -n "$CONFIG_FILES"
18709
18710 _ACEOF
18711 cat >>$CONFIG_STATUS <<\_ACEOF
18712 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18713   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18714   case $ac_file in
18715   - | *:- | *:-:* ) # input from stdin
18716         cat >$tmp/stdin
18717         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18718         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18719   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18720         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18721   * )   ac_file_in=$ac_file.in ;;
18722   esac
18723
18724   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18725   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18726 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18727          X"$ac_file" : 'X\(//\)[^/]' \| \
18728          X"$ac_file" : 'X\(//\)$' \| \
18729          X"$ac_file" : 'X\(/\)' \| \
18730          .     : '\(.\)' 2>/dev/null ||
18731 echo X"$ac_file" |
18732     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18733           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18734           /^X\(\/\/\)$/{ s//\1/; q; }
18735           /^X\(\/\).*/{ s//\1/; q; }
18736           s/.*/./; q'`
18737   { if $as_mkdir_p; then
18738     mkdir -p "$ac_dir"
18739   else
18740     as_dir="$ac_dir"
18741     as_dirs=
18742     while test ! -d "$as_dir"; do
18743       as_dirs="$as_dir $as_dirs"
18744       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18745 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18746          X"$as_dir" : 'X\(//\)[^/]' \| \
18747          X"$as_dir" : 'X\(//\)$' \| \
18748          X"$as_dir" : 'X\(/\)' \| \
18749          .     : '\(.\)' 2>/dev/null ||
18750 echo X"$as_dir" |
18751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18752           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18753           /^X\(\/\/\)$/{ s//\1/; q; }
18754           /^X\(\/\).*/{ s//\1/; q; }
18755           s/.*/./; q'`
18756     done
18757     test ! -n "$as_dirs" || mkdir $as_dirs
18758   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18759 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18760    { (exit 1); exit 1; }; }; }
18761
18762   ac_builddir=.
18763
18764 if test "$ac_dir" != .; then
18765   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18766   # A "../" for each directory in $ac_dir_suffix.
18767   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18768 else
18769   ac_dir_suffix= ac_top_builddir=
18770 fi
18771
18772 case $srcdir in
18773   .)  # No --srcdir option.  We are building in place.
18774     ac_srcdir=.
18775     if test -z "$ac_top_builddir"; then
18776        ac_top_srcdir=.
18777     else
18778        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18779     fi ;;
18780   [\\/]* | ?:[\\/]* )  # Absolute path.
18781     ac_srcdir=$srcdir$ac_dir_suffix;
18782     ac_top_srcdir=$srcdir ;;
18783   *) # Relative path.
18784     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18785     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18786 esac
18787 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18788 # absolute.
18789 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18790 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18791 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18792 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18793
18794
18795   case $INSTALL in
18796   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18797   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18798   esac
18799
18800   if test x"$ac_file" != x-; then
18801     { echo "$as_me:$LINENO: creating $ac_file" >&5
18802 echo "$as_me: creating $ac_file" >&6;}
18803     rm -f "$ac_file"
18804   fi
18805   # Let's still pretend it is `configure' which instantiates (i.e., don't
18806   # use $as_me), people would be surprised to read:
18807   #    /* config.h.  Generated by config.status.  */
18808   if test x"$ac_file" = x-; then
18809     configure_input=
18810   else
18811     configure_input="$ac_file.  "
18812   fi
18813   configure_input=$configure_input"Generated from `echo $ac_file_in |
18814                                      sed 's,.*/,,'` by configure."
18815
18816   # First look for the input files in the build tree, otherwise in the
18817   # src tree.
18818   ac_file_inputs=`IFS=:
18819     for f in $ac_file_in; do
18820       case $f in
18821       -) echo $tmp/stdin ;;
18822       [\\/$]*)
18823          # Absolute (can't be DOS-style, as IFS=:)
18824          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18825 echo "$as_me: error: cannot find input file: $f" >&2;}
18826    { (exit 1); exit 1; }; }
18827          echo $f;;
18828       *) # Relative
18829          if test -f "$f"; then
18830            # Build tree
18831            echo $f
18832          elif test -f "$srcdir/$f"; then
18833            # Source tree
18834            echo $srcdir/$f
18835          else
18836            # /dev/null tree
18837            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18838 echo "$as_me: error: cannot find input file: $f" >&2;}
18839    { (exit 1); exit 1; }; }
18840          fi;;
18841       esac
18842     done` || { (exit 1); exit 1; }
18843 _ACEOF
18844 cat >>$CONFIG_STATUS <<_ACEOF
18845   sed "$ac_vpsub
18846 $extrasub
18847 _ACEOF
18848 cat >>$CONFIG_STATUS <<\_ACEOF
18849 :t
18850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18851 s,@configure_input@,$configure_input,;t t
18852 s,@srcdir@,$ac_srcdir,;t t
18853 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18854 s,@top_srcdir@,$ac_top_srcdir,;t t
18855 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18856 s,@builddir@,$ac_builddir,;t t
18857 s,@abs_builddir@,$ac_abs_builddir,;t t
18858 s,@top_builddir@,$ac_top_builddir,;t t
18859 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18860 s,@INSTALL@,$ac_INSTALL,;t t
18861 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18862   rm -f $tmp/stdin
18863   if test x"$ac_file" != x-; then
18864     mv $tmp/out $ac_file
18865   else
18866     cat $tmp/out
18867     rm -f $tmp/out
18868   fi
18869
18870 done
18871 _ACEOF
18872 cat >>$CONFIG_STATUS <<\_ACEOF
18873
18874 #
18875 # CONFIG_HEADER section.
18876 #
18877
18878 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18879 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18880 #
18881 # ac_d sets the value in "#define NAME VALUE" lines.
18882 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18883 ac_dB='[        ].*$,\1#\2'
18884 ac_dC=' '
18885 ac_dD=',;t'
18886 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18887 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18888 ac_uB='$,\1#\2define\3'
18889 ac_uC=' '
18890 ac_uD=',;t'
18891
18892 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18893   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18894   case $ac_file in
18895   - | *:- | *:-:* ) # input from stdin
18896         cat >$tmp/stdin
18897         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18898         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18899   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18900         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18901   * )   ac_file_in=$ac_file.in ;;
18902   esac
18903
18904   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18905 echo "$as_me: creating $ac_file" >&6;}
18906
18907   # First look for the input files in the build tree, otherwise in the
18908   # src tree.
18909   ac_file_inputs=`IFS=:
18910     for f in $ac_file_in; do
18911       case $f in
18912       -) echo $tmp/stdin ;;
18913       [\\/$]*)
18914          # Absolute (can't be DOS-style, as IFS=:)
18915          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18916 echo "$as_me: error: cannot find input file: $f" >&2;}
18917    { (exit 1); exit 1; }; }
18918          echo $f;;
18919       *) # Relative
18920          if test -f "$f"; then
18921            # Build tree
18922            echo $f
18923          elif test -f "$srcdir/$f"; then
18924            # Source tree
18925            echo $srcdir/$f
18926          else
18927            # /dev/null tree
18928            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18929 echo "$as_me: error: cannot find input file: $f" >&2;}
18930    { (exit 1); exit 1; }; }
18931          fi;;
18932       esac
18933     done` || { (exit 1); exit 1; }
18934   # Remove the trailing spaces.
18935   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
18936
18937 _ACEOF
18938
18939 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18940 # `conftest.undefs', that substitutes the proper values into
18941 # config.h.in to produce config.h.  The first handles `#define'
18942 # templates, and the second `#undef' templates.
18943 # And first: Protect against being on the right side of a sed subst in
18944 # config.status.  Protect against being in an unquoted here document
18945 # in config.status.
18946 rm -f conftest.defines conftest.undefs
18947 # Using a here document instead of a string reduces the quoting nightmare.
18948 # Putting comments in sed scripts is not portable.
18949 #
18950 # `end' is used to avoid that the second main sed command (meant for
18951 # 0-ary CPP macros) applies to n-ary macro definitions.
18952 # See the Autoconf documentation for `clear'.
18953 cat >confdef2sed.sed <<\_ACEOF
18954 s/[\\&,]/\\&/g
18955 s,[\\$`],\\&,g
18956 t clear
18957 : clear
18958 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18959 t end
18960 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18961 : end
18962 _ACEOF
18963 # If some macros were called several times there might be several times
18964 # the same #defines, which is useless.  Nevertheless, we may not want to
18965 # sort them, since we want the *last* AC-DEFINE to be honored.
18966 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18967 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18968 rm -f confdef2sed.sed
18969
18970 # This sed command replaces #undef with comments.  This is necessary, for
18971 # example, in the case of _POSIX_SOURCE, which is predefined and required
18972 # on some systems where configure will not decide to define it.
18973 cat >>conftest.undefs <<\_ACEOF
18974 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18975 _ACEOF
18976
18977 # Break up conftest.defines because some shells have a limit on the size
18978 # of here documents, and old seds have small limits too (100 cmds).
18979 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18980 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18981 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18982 echo '  :' >>$CONFIG_STATUS
18983 rm -f conftest.tail
18984 while grep . conftest.defines >/dev/null
18985 do
18986   # Write a limited-size here document to $tmp/defines.sed.
18987   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18988   # Speed up: don't consider the non `#define' lines.
18989   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
18990   # Work around the forget-to-reset-the-flag bug.
18991   echo 't clr' >>$CONFIG_STATUS
18992   echo ': clr' >>$CONFIG_STATUS
18993   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18994   echo 'CEOF
18995   sed -f $tmp/defines.sed $tmp/in >$tmp/out
18996   rm -f $tmp/in
18997   mv $tmp/out $tmp/in
18998 ' >>$CONFIG_STATUS
18999   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19000   rm -f conftest.defines
19001   mv conftest.tail conftest.defines
19002 done
19003 rm -f conftest.defines
19004 echo '  fi # grep' >>$CONFIG_STATUS
19005 echo >>$CONFIG_STATUS
19006
19007 # Break up conftest.undefs because some shells have a limit on the size
19008 # of here documents, and old seds have small limits too (100 cmds).
19009 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19010 rm -f conftest.tail
19011 while grep . conftest.undefs >/dev/null
19012 do
19013   # Write a limited-size here document to $tmp/undefs.sed.
19014   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19015   # Speed up: don't consider the non `#undef'
19016   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19017   # Work around the forget-to-reset-the-flag bug.
19018   echo 't clr' >>$CONFIG_STATUS
19019   echo ': clr' >>$CONFIG_STATUS
19020   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19021   echo 'CEOF
19022   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19023   rm -f $tmp/in
19024   mv $tmp/out $tmp/in
19025 ' >>$CONFIG_STATUS
19026   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19027   rm -f conftest.undefs
19028   mv conftest.tail conftest.undefs
19029 done
19030 rm -f conftest.undefs
19031
19032 cat >>$CONFIG_STATUS <<\_ACEOF
19033   # Let's still pretend it is `configure' which instantiates (i.e., don't
19034   # use $as_me), people would be surprised to read:
19035   #    /* config.h.  Generated by config.status.  */
19036   if test x"$ac_file" = x-; then
19037     echo "/* Generated by configure.  */" >$tmp/config.h
19038   else
19039     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19040   fi
19041   cat $tmp/in >>$tmp/config.h
19042   rm -f $tmp/in
19043   if test x"$ac_file" != x-; then
19044     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19045       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19046 echo "$as_me: $ac_file is unchanged" >&6;}
19047     else
19048       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19049 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19050          X"$ac_file" : 'X\(//\)[^/]' \| \
19051          X"$ac_file" : 'X\(//\)$' \| \
19052          X"$ac_file" : 'X\(/\)' \| \
19053          .     : '\(.\)' 2>/dev/null ||
19054 echo X"$ac_file" |
19055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19056           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19057           /^X\(\/\/\)$/{ s//\1/; q; }
19058           /^X\(\/\).*/{ s//\1/; q; }
19059           s/.*/./; q'`
19060       { if $as_mkdir_p; then
19061     mkdir -p "$ac_dir"
19062   else
19063     as_dir="$ac_dir"
19064     as_dirs=
19065     while test ! -d "$as_dir"; do
19066       as_dirs="$as_dir $as_dirs"
19067       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19069          X"$as_dir" : 'X\(//\)[^/]' \| \
19070          X"$as_dir" : 'X\(//\)$' \| \
19071          X"$as_dir" : 'X\(/\)' \| \
19072          .     : '\(.\)' 2>/dev/null ||
19073 echo X"$as_dir" |
19074     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19075           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19076           /^X\(\/\/\)$/{ s//\1/; q; }
19077           /^X\(\/\).*/{ s//\1/; q; }
19078           s/.*/./; q'`
19079     done
19080     test ! -n "$as_dirs" || mkdir $as_dirs
19081   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19082 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19083    { (exit 1); exit 1; }; }; }
19084
19085       rm -f $ac_file
19086       mv $tmp/config.h $ac_file
19087     fi
19088   else
19089     cat $tmp/config.h
19090     rm -f $tmp/config.h
19091   fi
19092 done
19093 _ACEOF
19094 cat >>$CONFIG_STATUS <<\_ACEOF
19095
19096 #
19097 # CONFIG_COMMANDS section.
19098 #
19099 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19100   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19101   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19102   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19103 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19104          X"$ac_dest" : 'X\(//\)[^/]' \| \
19105          X"$ac_dest" : 'X\(//\)$' \| \
19106          X"$ac_dest" : 'X\(/\)' \| \
19107          .     : '\(.\)' 2>/dev/null ||
19108 echo X"$ac_dest" |
19109     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19110           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19111           /^X\(\/\/\)$/{ s//\1/; q; }
19112           /^X\(\/\).*/{ s//\1/; q; }
19113           s/.*/./; q'`
19114   ac_builddir=.
19115
19116 if test "$ac_dir" != .; then
19117   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19118   # A "../" for each directory in $ac_dir_suffix.
19119   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19120 else
19121   ac_dir_suffix= ac_top_builddir=
19122 fi
19123
19124 case $srcdir in
19125   .)  # No --srcdir option.  We are building in place.
19126     ac_srcdir=.
19127     if test -z "$ac_top_builddir"; then
19128        ac_top_srcdir=.
19129     else
19130        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19131     fi ;;
19132   [\\/]* | ?:[\\/]* )  # Absolute path.
19133     ac_srcdir=$srcdir$ac_dir_suffix;
19134     ac_top_srcdir=$srcdir ;;
19135   *) # Relative path.
19136     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19137     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19138 esac
19139 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19140 # absolute.
19141 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19142 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19143 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19144 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19145
19146
19147   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19148 echo "$as_me: executing $ac_dest commands" >&6;}
19149   case $ac_dest in
19150     default ) (echo "Doing make of dependencies"; make depend;)
19151  ;;
19152   esac
19153 done
19154 _ACEOF
19155
19156 cat >>$CONFIG_STATUS <<\_ACEOF
19157
19158 { (exit 0); exit 0; }
19159 _ACEOF
19160 chmod +x $CONFIG_STATUS
19161 ac_clean_files=$ac_clean_files_save
19162
19163
19164 # configure is writing to config.log, and then calls config.status.
19165 # config.status does its own redirection, appending to config.log.
19166 # Unfortunately, on DOS this fails, as config.log is still kept open
19167 # by configure, so config.status won't be able to write to it; its
19168 # output is simply discarded.  So we exec the FD to /dev/null,
19169 # effectively closing config.log, so it can be properly (re)opened and
19170 # appended to by config.status.  When coming back to configure, we
19171 # need to make the FD available again.
19172 if test "$no_create" != yes; then
19173   ac_cs_success=:
19174   ac_config_status_args=
19175   test "$silent" = yes &&
19176     ac_config_status_args="$ac_config_status_args --quiet"
19177   exec 5>/dev/null
19178   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19179   exec 5>>config.log
19180   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19181   # would make configure fail if this is the last instruction.
19182   $ac_cs_success || { (exit 1); exit 1; }
19183 fi
19184
19185
19186 cd scripts
19187 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19188 chmod 755 bconsole gconsole mtx-changer
19189 cd ..
19190 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
19191 chmod 755 src/cats/make_postgresql_tables src/cats/drop_postgresql_tables
19192 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
19193 chmod 755 src/cats/create_postgresql_database
19194 chmod 755 src/cats/create_mysql_database
19195 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
19196 chmod 755 src/cats/grant_postgresql_privileges
19197 chmod 755 src/cats/grant_mysql_privileges
19198 chmod 755 src/cats/grant_sqlite_privileges
19199 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
19200 chmod 755 src/cats/update_sqlite_tables
19201 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
19202 chmod 755 src/cats/update_mysql_tables
19203 chmod 755 src/cats/update_bacula_tables src/cats/update_mysql_tables
19204 chmod 755 src/cats/create_sqlite_database
19205 chmod 755 src/cats/sqlite
19206 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
19207 chmod 755 src/cats/create_bdb_database
19208
19209 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19210    largefile_support="yes"
19211 fi
19212
19213 #
19214 # A whole lot of hand springs to get the compiler version.
19215 #  This is because gcc changed the output in version 3.0
19216 #
19217 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19218 if test "x${CCVERSION}" = "x" ; then
19219   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19220 fi
19221 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19222 if test x"${CXXVERSION}" = x ; then
19223   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19224 fi
19225
19226 if test "x${subsysdir}" = "x${sbindir}" ; then
19227    echo " "
19228    echo " "
19229    echo "You have set --sbindir and --with-subsys-dir"
19230    echo "  both equal to: ${subsysdir} "
19231    echo "  This is not permitted. Please reconfigure."
19232    echo "Aborting configuration ..."
19233    echo " "
19234    echo " "
19235    exit 1
19236 fi
19237
19238 echo "
19239 Configuration on `date`:
19240
19241   Host:                       $host -- ${DISTNAME} ${DISTVER}
19242   Bacula version:             ${VERSION} (${DATE})
19243   Source code location:       ${srcdir}
19244   Install binaries:           ${sbindir}
19245   Install config files:       ${sysconfdir}
19246   Scripts directory:          ${scriptdir}
19247   Working directory:          ${working_dir}
19248   PID directory:              ${piddir}
19249   Subsys directory:           ${subsysdir}
19250   C Compiler:                 ${CC} ${CCVERSION}
19251   C++ Compiler:               ${CXX} ${CXXVERSION}
19252   Compiler flags:             ${WCFLAGS} ${CFLAGS}
19253   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
19254   Libraries:                  ${LIBS}
19255   Statically Linked Tools:    ${support_static_tools}
19256   Statically Linked FD:       ${support_static_fd}
19257   Statically Linked SD:       ${support_static_sd}
19258   Statically Linked DIR:      ${support_static_dir}
19259   Statically Linked CONS:     ${support_static_cons}
19260   Database type:              ${db_name}
19261   Database lib:               ${DB_LIBS}
19262
19263   Job Output Email:           ${job_email}
19264   Traceback Email:            ${dump_email}
19265   SMTP Host Address:          ${smtp_host}
19266
19267   Director Port:              ${dir_port}
19268   File daemon Port:           ${fd_port}
19269   Storage daemon Port:        ${sd_port}
19270
19271   Director User:              ${dir_user}
19272   Director Group:             ${dir_group}
19273   Storage Daemon User:        ${dir_user}
19274   Storage DaemonGroup:        ${dir_group}
19275   File Daemon User:           ${dir_user}
19276   File Daemon Group:          ${dir_group}
19277
19278   SQL binaries Directory      ${SQL_BINDIR}
19279
19280   Large file support:         $largefile_support
19281   Bacula conio support:       ${got_conio} ${CONS_LIBS}
19282   readline support:           ${got_readline} ${PRTREADLINE_SRC}
19283   TCP Wrappers support:       ${TCPW_MSG}
19284   ZLIB support:               ${have_zlib}
19285   enable-smartalloc:          ${support_smartalloc}
19286   enable-gnome:               ${support_gnome} ${gnome_version}
19287   client-only:                ${build_client_only}
19288
19289   " > config.out
19290
19291 cat config.out
19292
19293 # old stuff
19294 # cweb support:               ${got_cweb} ${CWEB_SRC}
19295 # gmp support:                ${got_gmp} ${GMP_SRC}